primevue 3.43.0 → 3.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. package/accordion/Accordion.d.ts +4 -0
  2. package/accordion/accordion.cjs.js +2 -2
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.esm.js +2 -2
  5. package/accordion/accordion.esm.min.js +1 -1
  6. package/accordion/accordion.js +2 -2
  7. package/accordion/accordion.min.js +1 -1
  8. package/accordiontab/AccordionTab.d.ts +4 -0
  9. package/animateonscroll/animateonscroll.cjs.js +2 -2
  10. package/animateonscroll/animateonscroll.cjs.min.js +1 -1
  11. package/animateonscroll/animateonscroll.esm.js +2 -2
  12. package/animateonscroll/animateonscroll.esm.min.js +1 -1
  13. package/animateonscroll/animateonscroll.js +2 -2
  14. package/animateonscroll/animateonscroll.min.js +1 -1
  15. package/autocomplete/AutoComplete.d.ts +4 -0
  16. package/autocomplete/AutoComplete.vue +2 -1
  17. package/autocomplete/autocomplete.cjs.js +5 -3
  18. package/autocomplete/autocomplete.cjs.min.js +1 -1
  19. package/autocomplete/autocomplete.esm.js +5 -3
  20. package/autocomplete/autocomplete.esm.min.js +1 -1
  21. package/autocomplete/autocomplete.js +5 -3
  22. package/autocomplete/autocomplete.min.js +1 -1
  23. package/avatar/Avatar.d.ts +4 -0
  24. package/badgedirective/BadgeDirective.d.ts +4 -0
  25. package/badgedirective/badgedirective.cjs.js +2 -2
  26. package/badgedirective/badgedirective.cjs.min.js +1 -1
  27. package/badgedirective/badgedirective.esm.js +2 -2
  28. package/badgedirective/badgedirective.esm.min.js +1 -1
  29. package/badgedirective/badgedirective.js +2 -2
  30. package/badgedirective/badgedirective.min.js +1 -1
  31. package/base/style/basestyle.cjs.js +2 -2
  32. package/base/style/basestyle.cjs.min.js +1 -1
  33. package/base/style/basestyle.esm.js +2 -2
  34. package/base/style/basestyle.esm.min.js +1 -1
  35. package/base/style/basestyle.js +2 -2
  36. package/base/style/basestyle.min.js +1 -1
  37. package/basecomponent/BaseComponent.vue +3 -1
  38. package/basecomponent/basecomponent.cjs.js +7 -5
  39. package/basecomponent/basecomponent.cjs.min.js +1 -1
  40. package/basecomponent/basecomponent.esm.js +7 -5
  41. package/basecomponent/basecomponent.esm.min.js +1 -1
  42. package/basecomponent/basecomponent.js +7 -5
  43. package/basecomponent/basecomponent.min.js +1 -1
  44. package/basecomponent/style/basecomponentstyle.cjs.js +2 -2
  45. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  46. package/basecomponent/style/basecomponentstyle.esm.js +2 -2
  47. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  48. package/basecomponent/style/basecomponentstyle.js +2 -2
  49. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  50. package/basedirective/basedirective.cjs.js +2 -3
  51. package/basedirective/basedirective.cjs.min.js +1 -1
  52. package/basedirective/basedirective.esm.js +2 -3
  53. package/basedirective/basedirective.esm.min.js +1 -1
  54. package/basedirective/basedirective.js +2 -3
  55. package/basedirective/basedirective.min.js +1 -1
  56. package/blockui/BlockUI.d.ts +4 -0
  57. package/breadcrumb/Breadcrumb.d.ts +4 -0
  58. package/button/style/buttonstyle.cjs.js +2 -2
  59. package/button/style/buttonstyle.cjs.min.js +1 -1
  60. package/button/style/buttonstyle.esm.js +2 -2
  61. package/button/style/buttonstyle.esm.min.js +1 -1
  62. package/button/style/buttonstyle.js +2 -2
  63. package/button/style/buttonstyle.min.js +1 -1
  64. package/calendar/Calendar.d.ts +8 -0
  65. package/calendar/Calendar.vue +26 -13
  66. package/calendar/calendar.cjs.js +26 -15
  67. package/calendar/calendar.cjs.min.js +1 -1
  68. package/calendar/calendar.esm.js +26 -15
  69. package/calendar/calendar.esm.min.js +1 -1
  70. package/calendar/calendar.js +26 -15
  71. package/calendar/calendar.min.js +1 -1
  72. package/carousel/Carousel.d.ts +4 -0
  73. package/carousel/carousel.cjs.js +2 -2
  74. package/carousel/carousel.cjs.min.js +1 -1
  75. package/carousel/carousel.esm.js +2 -2
  76. package/carousel/carousel.esm.min.js +1 -1
  77. package/carousel/carousel.js +2 -2
  78. package/carousel/carousel.min.js +1 -1
  79. package/cascadeselect/CascadeSelect.d.ts +4 -0
  80. package/cascadeselect/CascadeSelect.vue +1 -1
  81. package/cascadeselect/CascadeSelectSub.vue +4 -1
  82. package/cascadeselect/cascadeselect.cjs.js +7 -4
  83. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  84. package/cascadeselect/cascadeselect.esm.js +7 -4
  85. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  86. package/cascadeselect/cascadeselect.js +7 -4
  87. package/cascadeselect/cascadeselect.min.js +1 -1
  88. package/chart/Chart.d.ts +4 -0
  89. package/chart/chart.cjs.js +2 -2
  90. package/chart/chart.cjs.min.js +1 -1
  91. package/chart/chart.esm.js +2 -2
  92. package/chart/chart.esm.min.js +1 -1
  93. package/chart/chart.js +2 -2
  94. package/chart/chart.min.js +1 -1
  95. package/checkbox/Checkbox.d.ts +4 -0
  96. package/checkbox/checkbox.cjs.js +2 -2
  97. package/checkbox/checkbox.cjs.min.js +1 -1
  98. package/checkbox/checkbox.esm.js +2 -2
  99. package/checkbox/checkbox.esm.min.js +1 -1
  100. package/checkbox/checkbox.js +2 -2
  101. package/checkbox/checkbox.min.js +1 -1
  102. package/chip/Chip.d.ts +4 -0
  103. package/chips/Chips.d.ts +4 -0
  104. package/chips/chips.cjs.js +2 -2
  105. package/chips/chips.cjs.min.js +1 -1
  106. package/chips/chips.esm.js +2 -2
  107. package/chips/chips.esm.min.js +1 -1
  108. package/chips/chips.js +2 -2
  109. package/chips/chips.min.js +1 -1
  110. package/colorpicker/ColorPicker.d.ts +4 -0
  111. package/column/Column.d.ts +4 -0
  112. package/columngroup/ColumnGroup.d.ts +4 -0
  113. package/config/config.cjs.js +2 -2
  114. package/config/config.cjs.min.js +1 -1
  115. package/config/config.esm.js +2 -2
  116. package/config/config.esm.min.js +1 -1
  117. package/config/config.js +2 -2
  118. package/config/config.min.js +1 -1
  119. package/confirmdialog/ConfirmDialog.d.ts +4 -0
  120. package/confirmpopup/ConfirmPopup.d.ts +4 -0
  121. package/confirmpopup/confirmpopup.cjs.js +2 -2
  122. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  123. package/confirmpopup/confirmpopup.esm.js +2 -2
  124. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  125. package/confirmpopup/confirmpopup.js +2 -2
  126. package/confirmpopup/confirmpopup.min.js +1 -1
  127. package/contextmenu/ContextMenu.d.ts +4 -0
  128. package/contextmenu/contextmenu.cjs.js +2 -2
  129. package/contextmenu/contextmenu.cjs.min.js +1 -1
  130. package/contextmenu/contextmenu.esm.js +2 -2
  131. package/contextmenu/contextmenu.esm.min.js +1 -1
  132. package/contextmenu/contextmenu.js +2 -2
  133. package/contextmenu/contextmenu.min.js +1 -1
  134. package/core/core.js +84 -127
  135. package/core/core.min.js +23 -23
  136. package/datatable/DataTable.d.ts +4 -0
  137. package/datatable/RowCheckbox.vue +1 -0
  138. package/datatable/datatable.cjs.js +21 -20
  139. package/datatable/datatable.cjs.min.js +1 -1
  140. package/datatable/datatable.esm.js +21 -20
  141. package/datatable/datatable.esm.min.js +1 -1
  142. package/datatable/datatable.js +21 -20
  143. package/datatable/datatable.min.js +1 -1
  144. package/dataview/DataView.d.ts +4 -0
  145. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +4 -0
  146. package/deferredcontent/DeferredContent.d.ts +4 -0
  147. package/dialog/dialog.cjs.js +2 -2
  148. package/dialog/dialog.cjs.min.js +1 -1
  149. package/dialog/dialog.esm.js +2 -2
  150. package/dialog/dialog.esm.min.js +1 -1
  151. package/dialog/dialog.js +2 -2
  152. package/dialog/dialog.min.js +1 -1
  153. package/divider/Divider.d.ts +4 -0
  154. package/dock/Dock.d.ts +4 -0
  155. package/dropdown/Dropdown.vue +3 -1
  156. package/dropdown/dropdown.cjs.js +6 -5
  157. package/dropdown/dropdown.cjs.min.js +1 -1
  158. package/dropdown/dropdown.esm.js +6 -5
  159. package/dropdown/dropdown.esm.min.js +1 -1
  160. package/dropdown/dropdown.js +6 -5
  161. package/dropdown/dropdown.min.js +1 -1
  162. package/dropdown/style/dropdownstyle.cjs.js +1 -1
  163. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  164. package/dropdown/style/dropdownstyle.esm.js +1 -1
  165. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  166. package/dropdown/style/dropdownstyle.js +1 -1
  167. package/dropdown/style/dropdownstyle.min.js +1 -1
  168. package/dynamicdialog/DynamicDialog.vue +1 -1
  169. package/dynamicdialog/dynamicdialog.cjs.js +1 -3
  170. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  171. package/dynamicdialog/dynamicdialog.esm.js +1 -3
  172. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  173. package/dynamicdialog/dynamicdialog.js +1 -3
  174. package/dynamicdialog/dynamicdialog.min.js +1 -1
  175. package/editor/Editor.d.ts +4 -0
  176. package/editor/editor.cjs.js +2 -2
  177. package/editor/editor.cjs.min.js +1 -1
  178. package/editor/editor.esm.js +2 -2
  179. package/editor/editor.esm.min.js +1 -1
  180. package/editor/editor.js +2 -2
  181. package/editor/editor.min.js +1 -1
  182. package/fieldset/Fieldset.d.ts +4 -0
  183. package/fieldset/fieldset.cjs.js +2 -2
  184. package/fieldset/fieldset.cjs.min.js +1 -1
  185. package/fieldset/fieldset.esm.js +2 -2
  186. package/fieldset/fieldset.esm.min.js +1 -1
  187. package/fieldset/fieldset.js +2 -2
  188. package/fieldset/fieldset.min.js +1 -1
  189. package/fileupload/FileUpload.d.ts +4 -0
  190. package/galleria/Galleria.d.ts +4 -0
  191. package/galleria/galleria.cjs.js +6 -6
  192. package/galleria/galleria.cjs.min.js +1 -1
  193. package/galleria/galleria.esm.js +6 -6
  194. package/galleria/galleria.esm.min.js +1 -1
  195. package/galleria/galleria.js +6 -6
  196. package/galleria/galleria.min.js +1 -1
  197. package/image/Image.d.ts +4 -0
  198. package/image/image.cjs.js +2 -2
  199. package/image/image.cjs.min.js +1 -1
  200. package/image/image.esm.js +2 -2
  201. package/image/image.esm.min.js +1 -1
  202. package/image/image.js +2 -2
  203. package/image/image.min.js +1 -1
  204. package/inlinemessage/InlineMessage.d.ts +4 -0
  205. package/inplace/Inplace.d.ts +4 -0
  206. package/inplace/inplace.cjs.js +2 -2
  207. package/inplace/inplace.cjs.min.js +1 -1
  208. package/inplace/inplace.esm.js +2 -2
  209. package/inplace/inplace.esm.min.js +1 -1
  210. package/inplace/inplace.js +2 -2
  211. package/inplace/inplace.min.js +1 -1
  212. package/inputgroup/InputGroup.d.ts +4 -0
  213. package/inputgroupaddon/InputGroupAddon.d.ts +4 -0
  214. package/inputmask/InputMask.d.ts +4 -0
  215. package/inputnumber/inputnumber.cjs.js +2 -2
  216. package/inputnumber/inputnumber.cjs.min.js +1 -1
  217. package/inputnumber/inputnumber.esm.js +2 -2
  218. package/inputnumber/inputnumber.esm.min.js +1 -1
  219. package/inputnumber/inputnumber.js +2 -2
  220. package/inputnumber/inputnumber.min.js +1 -1
  221. package/inputswitch/InputSwitch.d.ts +4 -0
  222. package/inputswitch/inputswitch.cjs.js +2 -2
  223. package/inputswitch/inputswitch.cjs.min.js +1 -1
  224. package/inputswitch/inputswitch.esm.js +2 -2
  225. package/inputswitch/inputswitch.esm.min.js +1 -1
  226. package/inputswitch/inputswitch.js +2 -2
  227. package/inputswitch/inputswitch.min.js +1 -1
  228. package/knob/Knob.d.ts +4 -0
  229. package/listbox/Listbox.d.ts +4 -0
  230. package/listbox/listbox.cjs.js +2 -2
  231. package/listbox/listbox.cjs.min.js +1 -1
  232. package/listbox/listbox.esm.js +2 -2
  233. package/listbox/listbox.esm.min.js +1 -1
  234. package/listbox/listbox.js +2 -2
  235. package/listbox/listbox.min.js +1 -1
  236. package/megamenu/MegaMenu.d.ts +4 -0
  237. package/menu/Menu.d.ts +4 -0
  238. package/menu/menu.cjs.js +2 -2
  239. package/menu/menu.cjs.min.js +1 -1
  240. package/menu/menu.esm.js +2 -2
  241. package/menu/menu.esm.min.js +1 -1
  242. package/menu/menu.js +2 -2
  243. package/menu/menu.min.js +1 -1
  244. package/menubar/Menubar.d.ts +4 -0
  245. package/menubar/menubar.cjs.js +2 -2
  246. package/menubar/menubar.cjs.min.js +1 -1
  247. package/menubar/menubar.esm.js +2 -2
  248. package/menubar/menubar.esm.min.js +1 -1
  249. package/menubar/menubar.js +2 -2
  250. package/menubar/menubar.min.js +1 -1
  251. package/message/message.cjs.js +2 -2
  252. package/message/message.cjs.min.js +1 -1
  253. package/message/message.esm.js +2 -2
  254. package/message/message.esm.min.js +1 -1
  255. package/message/message.js +2 -2
  256. package/message/message.min.js +1 -1
  257. package/multiselect/MultiSelect.d.ts +4 -0
  258. package/multiselect/multiselect.cjs.js +4 -4
  259. package/multiselect/multiselect.cjs.min.js +1 -1
  260. package/multiselect/multiselect.esm.js +4 -4
  261. package/multiselect/multiselect.esm.min.js +1 -1
  262. package/multiselect/multiselect.js +4 -4
  263. package/multiselect/multiselect.min.js +1 -1
  264. package/orderlist/OrderList.d.ts +4 -0
  265. package/orderlist/orderlist.cjs.js +2 -2
  266. package/orderlist/orderlist.cjs.min.js +1 -1
  267. package/orderlist/orderlist.esm.js +2 -2
  268. package/orderlist/orderlist.esm.min.js +1 -1
  269. package/orderlist/orderlist.js +2 -2
  270. package/orderlist/orderlist.min.js +1 -1
  271. package/organizationchart/OrganizationChart.d.ts +4 -0
  272. package/organizationchart/organizationchart.cjs.js +2 -2
  273. package/organizationchart/organizationchart.cjs.min.js +1 -1
  274. package/organizationchart/organizationchart.esm.js +2 -2
  275. package/organizationchart/organizationchart.esm.min.js +1 -1
  276. package/organizationchart/organizationchart.js +2 -2
  277. package/organizationchart/organizationchart.min.js +1 -1
  278. package/overlaypanel/OverlayPanel.d.ts +4 -0
  279. package/overlaypanel/overlaypanel.cjs.js +2 -2
  280. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  281. package/overlaypanel/overlaypanel.esm.js +2 -2
  282. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  283. package/overlaypanel/overlaypanel.js +2 -2
  284. package/overlaypanel/overlaypanel.min.js +1 -1
  285. package/package.json +1 -1
  286. package/paginator/style/paginatorstyle.cjs.js +2 -2
  287. package/paginator/style/paginatorstyle.cjs.min.js +1 -1
  288. package/paginator/style/paginatorstyle.esm.js +2 -2
  289. package/paginator/style/paginatorstyle.esm.min.js +1 -1
  290. package/paginator/style/paginatorstyle.js +2 -2
  291. package/paginator/style/paginatorstyle.min.js +1 -1
  292. package/panel/Panel.d.ts +4 -0
  293. package/panel/panel.cjs.js +2 -2
  294. package/panel/panel.cjs.min.js +1 -1
  295. package/panel/panel.esm.js +2 -2
  296. package/panel/panel.esm.min.js +1 -1
  297. package/panel/panel.js +2 -2
  298. package/panel/panel.min.js +1 -1
  299. package/panelmenu/PanelMenu.d.ts +4 -0
  300. package/panelmenu/panelmenu.cjs.js +2 -2
  301. package/panelmenu/panelmenu.cjs.min.js +1 -1
  302. package/panelmenu/panelmenu.esm.js +2 -2
  303. package/panelmenu/panelmenu.esm.min.js +1 -1
  304. package/panelmenu/panelmenu.js +2 -2
  305. package/panelmenu/panelmenu.min.js +1 -1
  306. package/passthrough/index.cjs.js +2 -2
  307. package/passthrough/index.cjs.min.js +1 -1
  308. package/passthrough/index.esm.js +2 -2
  309. package/passthrough/index.esm.min.js +1 -1
  310. package/passthrough/index.js +2 -2
  311. package/passthrough/index.min.js +1 -1
  312. package/passthrough/tailwind/index.cjs.js +2 -71
  313. package/passthrough/tailwind/index.cjs.min.js +1 -1
  314. package/passthrough/tailwind/index.esm.js +2 -71
  315. package/passthrough/tailwind/index.esm.min.js +1 -1
  316. package/passthrough/tailwind/index.js +2 -71
  317. package/passthrough/tailwind/index.min.js +1 -1
  318. package/password/Password.d.ts +4 -0
  319. package/password/password.cjs.js +2 -4
  320. package/password/password.cjs.min.js +1 -1
  321. package/password/password.esm.js +2 -4
  322. package/password/password.esm.min.js +1 -1
  323. package/password/password.js +2 -4
  324. package/password/password.min.js +1 -1
  325. package/picklist/PickList.d.ts +4 -0
  326. package/picklist/picklist.cjs.js +2 -2
  327. package/picklist/picklist.cjs.min.js +1 -1
  328. package/picklist/picklist.esm.js +2 -2
  329. package/picklist/picklist.esm.min.js +1 -1
  330. package/picklist/picklist.js +2 -2
  331. package/picklist/picklist.min.js +1 -1
  332. package/progressspinner/ProgressSpinner.d.ts +4 -0
  333. package/radiobutton/RadioButton.d.ts +4 -0
  334. package/radiobutton/radiobutton.cjs.js +2 -2
  335. package/radiobutton/radiobutton.cjs.min.js +1 -1
  336. package/radiobutton/radiobutton.esm.js +2 -2
  337. package/radiobutton/radiobutton.esm.min.js +1 -1
  338. package/radiobutton/radiobutton.js +2 -2
  339. package/radiobutton/radiobutton.min.js +1 -1
  340. package/rating/Rating.d.ts +4 -0
  341. package/row/Row.d.ts +4 -0
  342. package/scrollpanel/ScrollPanel.d.ts +4 -0
  343. package/scrollpanel/ScrollPanel.vue +8 -1
  344. package/scrollpanel/scrollpanel.cjs.js +14 -5
  345. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  346. package/scrollpanel/scrollpanel.esm.js +14 -5
  347. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  348. package/scrollpanel/scrollpanel.js +14 -5
  349. package/scrollpanel/scrollpanel.min.js +1 -1
  350. package/scrolltop/ScrollTop.d.ts +4 -0
  351. package/selectbutton/SelectButton.d.ts +4 -0
  352. package/sidebar/Sidebar.d.ts +4 -0
  353. package/sidebar/sidebar.cjs.js +2 -2
  354. package/sidebar/sidebar.cjs.min.js +1 -1
  355. package/sidebar/sidebar.esm.js +2 -2
  356. package/sidebar/sidebar.esm.min.js +1 -1
  357. package/sidebar/sidebar.js +2 -2
  358. package/sidebar/sidebar.min.js +1 -1
  359. package/skeleton/Skeleton.d.ts +4 -0
  360. package/slider/Slider.d.ts +4 -0
  361. package/speeddial/SpeedDial.d.ts +4 -0
  362. package/speeddial/speeddial.cjs.js +2 -2
  363. package/speeddial/speeddial.cjs.min.js +1 -1
  364. package/speeddial/speeddial.esm.js +2 -2
  365. package/speeddial/speeddial.esm.min.js +1 -1
  366. package/speeddial/speeddial.js +2 -2
  367. package/speeddial/speeddial.min.js +1 -1
  368. package/speeddial/style/speeddialstyle.cjs.js +2 -2
  369. package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
  370. package/speeddial/style/speeddialstyle.esm.js +2 -2
  371. package/speeddial/style/speeddialstyle.esm.min.js +1 -1
  372. package/speeddial/style/speeddialstyle.js +2 -2
  373. package/speeddial/style/speeddialstyle.min.js +1 -1
  374. package/splitbutton/SplitButton.d.ts +4 -0
  375. package/splitbutton/style/splitbuttonstyle.cjs.js +2 -2
  376. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  377. package/splitbutton/style/splitbuttonstyle.esm.js +2 -2
  378. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  379. package/splitbutton/style/splitbuttonstyle.js +2 -2
  380. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  381. package/splitter/Splitter.d.ts +4 -0
  382. package/splitterpanel/SplitterPanel.d.ts +4 -0
  383. package/steps/Steps.d.ts +4 -0
  384. package/tabmenu/TabMenu.d.ts +4 -0
  385. package/tabpanel/TabPanel.d.ts +4 -0
  386. package/tabview/tabview.cjs.js +2 -2
  387. package/tabview/tabview.cjs.min.js +1 -1
  388. package/tabview/tabview.esm.js +2 -2
  389. package/tabview/tabview.esm.min.js +1 -1
  390. package/tabview/tabview.js +2 -2
  391. package/tabview/tabview.min.js +1 -1
  392. package/tag/Tag.d.ts +4 -0
  393. package/terminal/Terminal.d.ts +4 -0
  394. package/textarea/Textarea.d.ts +4 -0
  395. package/tieredmenu/tieredmenu.cjs.js +2 -2
  396. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  397. package/tieredmenu/tieredmenu.esm.js +2 -2
  398. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  399. package/tieredmenu/tieredmenu.js +2 -2
  400. package/tieredmenu/tieredmenu.min.js +1 -1
  401. package/timeline/Timeline.d.ts +4 -0
  402. package/toast/Toast.d.ts +4 -0
  403. package/toast/style/toaststyle.cjs.js +2 -2
  404. package/toast/style/toaststyle.cjs.min.js +1 -1
  405. package/toast/style/toaststyle.esm.js +2 -2
  406. package/toast/style/toaststyle.esm.min.js +1 -1
  407. package/toast/style/toaststyle.js +2 -2
  408. package/toast/style/toaststyle.min.js +1 -1
  409. package/toast/toast.cjs.js +4 -4
  410. package/toast/toast.cjs.min.js +1 -1
  411. package/toast/toast.esm.js +4 -4
  412. package/toast/toast.esm.min.js +1 -1
  413. package/toast/toast.js +4 -4
  414. package/toast/toast.min.js +1 -1
  415. package/togglebutton/ToggleButton.d.ts +4 -0
  416. package/togglebutton/togglebutton.cjs.js +2 -2
  417. package/togglebutton/togglebutton.cjs.min.js +1 -1
  418. package/togglebutton/togglebutton.esm.js +2 -2
  419. package/togglebutton/togglebutton.esm.min.js +1 -1
  420. package/togglebutton/togglebutton.js +2 -2
  421. package/togglebutton/togglebutton.min.js +1 -1
  422. package/toolbar/Toolbar.d.ts +4 -0
  423. package/tooltip/Tooltip.d.ts +4 -0
  424. package/tree/tree.cjs.js +4 -4
  425. package/tree/tree.cjs.min.js +1 -1
  426. package/tree/tree.esm.js +4 -4
  427. package/tree/tree.esm.min.js +1 -1
  428. package/tree/tree.js +4 -4
  429. package/tree/tree.min.js +1 -1
  430. package/treeselect/TreeSelect.d.ts +4 -0
  431. package/treeselect/treeselect.cjs.js +4 -4
  432. package/treeselect/treeselect.cjs.min.js +1 -1
  433. package/treeselect/treeselect.esm.js +4 -4
  434. package/treeselect/treeselect.esm.min.js +1 -1
  435. package/treeselect/treeselect.js +4 -4
  436. package/treeselect/treeselect.min.js +1 -1
  437. package/treetable/TreeTable.d.ts +4 -0
  438. package/treetable/treetable.cjs.js +12 -12
  439. package/treetable/treetable.cjs.min.js +1 -1
  440. package/treetable/treetable.esm.js +12 -12
  441. package/treetable/treetable.esm.min.js +1 -1
  442. package/treetable/treetable.js +12 -12
  443. package/treetable/treetable.min.js +1 -1
  444. package/tristatecheckbox/TriStateCheckbox.d.ts +4 -0
  445. package/tristatecheckbox/tristatecheckbox.cjs.js +2 -2
  446. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  447. package/tristatecheckbox/tristatecheckbox.esm.js +2 -2
  448. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  449. package/tristatecheckbox/tristatecheckbox.js +2 -2
  450. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  451. package/usestyle/usestyle.cjs.js +2 -2
  452. package/usestyle/usestyle.cjs.min.js +1 -1
  453. package/usestyle/usestyle.esm.js +2 -2
  454. package/usestyle/usestyle.esm.min.js +1 -1
  455. package/usestyle/usestyle.js +2 -2
  456. package/usestyle/usestyle.min.js +1 -1
  457. package/utils/Utils.d.ts +1 -0
  458. package/utils/utils.cjs.js +27 -3
  459. package/utils/utils.cjs.min.js +1 -1
  460. package/utils/utils.esm.js +27 -3
  461. package/utils/utils.esm.min.js +1 -1
  462. package/utils/utils.js +27 -3
  463. package/utils/utils.min.js +1 -1
  464. package/virtualscroller/VirtualScroller.d.ts +4 -0
  465. package/virtualscroller/VirtualScroller.vue +1 -1
  466. package/virtualscroller/virtualscroller.cjs.js +5 -5
  467. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  468. package/virtualscroller/virtualscroller.esm.js +5 -5
  469. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  470. package/virtualscroller/virtualscroller.js +5 -5
  471. package/virtualscroller/virtualscroller.min.js +1 -1
  472. package/web-types.json +1 -1
@@ -183,8 +183,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
183
183
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
184
184
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
185
185
  function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
186
- function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
187
- function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
186
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : String(i); }
187
+ function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
188
188
  var script = {
189
189
  name: 'Dropdown',
190
190
  "extends": script$1,
@@ -318,7 +318,7 @@ var script = {
318
318
  this.$emit('blur', event);
319
319
  },
320
320
  onKeyDown: function onKeyDown(event) {
321
- if (this.disabled) {
321
+ if (this.disabled || DomHandler.isAndroid()) {
322
322
  event.preventDefault();
323
323
  return;
324
324
  }
@@ -382,6 +382,7 @@ var script = {
382
382
  var matched = this.searchOptions(event, value);
383
383
  !matched && (this.focusedOptionIndex = -1);
384
384
  this.updateModel(event, value);
385
+ !this.overlayVisible && ObjectUtils.isNotEmpty(value) && this.show();
385
386
  },
386
387
  onContainerClick: function onContainerClick(event) {
387
388
  if (this.disabled || this.loading) {
@@ -906,8 +907,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
906
907
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
907
908
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
908
909
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
909
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
910
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
910
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
911
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
911
912
  var _hoisted_1 = ["id"];
912
913
  var _hoisted_2 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
913
914
  var _hoisted_3 = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"];
@@ -1 +1 @@
1
- import{FilterService as e}from"primevue/api";import t from"primevue/icons/chevrondown";import i from"primevue/icons/filter";import n from"primevue/icons/spinner";import o from"primevue/icons/times";import s from"primevue/overlayeventbus";import r from"primevue/portal";import l from"primevue/ripple";import{UniqueComponentId as a,ZIndexUtils as c,ObjectUtils as u,DomHandler as d,ConnectedOverlayScrollHandler as p}from"primevue/utils";import h from"primevue/virtualscroller";import f from"primevue/basecomponent";import y from"primevue/dropdown/style";import{resolveComponent as b,resolveDirective as v,openBlock as O,createElementBlock as g,mergeProps as m,renderSlot as I,createTextVNode as x,toDisplayString as S,normalizeClass as w,createBlock as F,resolveDynamicComponent as L,createCommentVNode as V,createElementVNode as k,createVNode as C,withCtx as D,Transition as M,createSlots as K,Fragment as E,renderList as P,withDirectives as T}from"vue";function $(e){return $="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},$(e)}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){if(e){if("string"==typeof e)return B(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?B(e,t):void 0}}function H(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function G(e){if(Array.isArray(e))return B(e)}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function R(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?R(Object(i),!0).forEach((function(t){U(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):R(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function U(e,t,i){return(t=_(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _(e){var t=N(e,"string");return"symbol"===$(t)?t:String(t)}function N(e,t){if("object"!==$(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var q={name:"Dropdown",extends:{name:"BaseDropdown",extends:f,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:String,default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:y,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||a()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||a(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(c.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?u.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?u.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?u.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTItemOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&u.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return u.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return u.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&d.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&d.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&u.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}},onEditableInput:function(e){var t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t)},onContainerClick:function(e){this.disabled||this.loading||"INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]')||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0))},onClearClick:function(e){this.updateModel(e,null)},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?d.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;d.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?d.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;d.focus(t)},onOptionSelect:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.getOptionValue(t);this.updateModel(e,n),i&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){s.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onDeleteKey:function(e){this.showClear&&(this.updateModel(e,null),e.preventDefault())},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(i,i),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(d.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){c.set("overlay",e,this.$primevue.config.zIndex.overlay),d.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&d.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){c.clear(e)},alignOverlay:function(){"self"===this.appendTo?d.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=d.getOuterWidth(this.$el)+"px",d.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&!e.$el.contains(t.target)&&!e.overlay.contains(t.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new p(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!d.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},hasFocusableElements:function(){return d.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return u.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&u.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return u.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?u.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,o=!1;return-1!==(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return i.isOptionMatched(e)})))&&(o=!0),-1===n&&-1===this.focusedOptionIndex&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),o},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=d.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,i=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=e.filter(i,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var i,s=t.getOptionGroupChildren(e).filter((function(e){return n.includes(e)}));s.length>0&&o.push(z(z({},e),{},U({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",G(i=s)||H(i)||j(i)||A())))})),this.flatOptions(o)}return n}return i},hasSelectedOption:function(){return u.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return u.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:l},components:{VirtualScroller:h,Portal:r,TimesIcon:o,ChevronDownIcon:t,SpinnerIcon:n,FilterIcon:i}};function W(e){return W="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},W(e)}function J(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 Q(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?J(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):J(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function X(e,t,i){return(t=Y(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Y(e){var t=Z(e,"string");return"symbol"===W(t)?t:String(t)}function Z(e,t){if("object"!==W(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ee=["id"],te=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],ie=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],ne=["value","placeholder","aria-owns","aria-activedescendant"],oe=["id"],se=["id"],re=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];q.render=function(e,t,i,n,o,s){var r=b("SpinnerIcon"),l=b("VirtualScroller"),a=b("Portal"),c=v("ripple");return O(),g("div",m({ref:"container",id:o.id,class:e.cx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"dropdown"}),[e.editable?(O(),g("input",m({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onEditableInput&&s.onEditableInput.apply(s,arguments)})},Q(Q({},e.inputProps),e.ptm("input"))),null,16,te)):(O(),g("span",m({key:1,ref:"focusInput",id:e.inputId,class:[e.cx("input"),e.inputClass],style:e.inputStyle,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel||("p-emptylabel"===s.label?void 0:s.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[4]||(t[4]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[5]||(t[5]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[6]||(t[6]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)})},Q(Q({},e.inputProps),e.ptm("input"))),[I(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return[x(S("p-emptylabel"===s.label?" ":s.label||"empty"),1)]}))],16,ie)),e.showClear&&null!=e.modelValue?I(e.$slots,"clearicon",{key:2,class:w(e.cx("clearIcon")),onClick:s.onClearClick,clearCallback:s.onClearClick},(function(){return[(O(),F(L(e.clearIcon?"i":"TimesIcon"),m({ref:"clearIcon",class:[e.cx("clearIcon"),e.clearIcon],onClick:s.onClearClick},Q(Q({},e.clearIconProps),e.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]})):V("",!0),k("div",m({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?I(e.$slots,"loadingicon",{key:0,class:w(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(O(),g("span",m({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(O(),F(r,m({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):I(e.$slots,"dropdownicon",{key:1,class:w(e.cx("dropdownIcon"))},(function(){return[(O(),F(L(e.dropdownIcon?"span":"ChevronDownIcon"),m({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),C(a,{appendTo:e.appendTo},{default:D((function(){return[C(M,m({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:D((function(){return[o.overlayVisible?(O(),g("div",m({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:e.panelStyle,onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},Q(Q({},e.panelProps),e.ptm("panel"))),[k("span",m({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[7]||(t[7]=function(){return s.onFirstHiddenFocus&&s.onFirstHiddenFocus.apply(s,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),I(e.$slots,"header",{value:e.modelValue,options:s.visibleOptions}),e.filter?(O(),g("div",m({key:0,class:e.cx("header")},e.ptm("header")),[k("div",m({class:e.cx("filterContainer")},e.ptm("filterContainer")),[k("input",m({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[8]||(t[8]=function(){return s.onFilterUpdated&&s.onFilterUpdated.apply(s,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":s.focusedOptionId,onKeydown:t[9]||(t[9]=function(){return s.onFilterKeyDown&&s.onFilterKeyDown.apply(s,arguments)}),onBlur:t[10]||(t[10]=function(){return s.onFilterBlur&&s.onFilterBlur.apply(s,arguments)}),onInput:t[11]||(t[11]=function(){return s.onFilterChange&&s.onFilterChange.apply(s,arguments)})},Q(Q({},e.filterInputProps),e.ptm("filterInput"))),null,16,ne),I(e.$slots,"filtericon",{class:w(e.cx("filterIcon"))},(function(){return[(O(),F(L(e.filterIcon?"span":"FilterIcon"),m({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16),k("span",m({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),S(s.filterResultMessageText),17)],16)):V("",!0),k("div",m({class:e.cx("wrapper"),style:{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[C(l,m({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{items:s.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),K({content:D((function(t){var i=t.styleClass,n=t.contentRef,r=t.items,l=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[k("ul",m({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(O(!0),g(E,null,P(r,(function(t,i){return O(),g(E,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,l))},[s.isOptionGroup(t)?(O(),g("li",m({key:0,id:o.id+"_"+s.getOptionIndex(i,l),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[I(e.$slots,"optiongroup",{option:t.optionGroup,index:s.getOptionIndex(i,l)},(function(){return[x(S(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,se)):T((O(),g("li",m({key:1,id:o.id+"_"+s.getOptionIndex(i,l),class:e.cx("item",{option:t,focusedOption:s.getOptionIndex(i,l)}),style:{height:u?u+"px":void 0},role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,l)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,l))},"data-p-highlight":s.isSelected(t),"data-p-focused":o.focusedOptionIndex===s.getOptionIndex(i,l),"data-p-disabled":s.isOptionDisabled(t)},s.getPTItemOptions(t,l,i,"item")),[I(e.$slots,"option",{option:t,index:s.getOptionIndex(i,l)},(function(){return[x(S(s.getOptionLabel(t)),1)]}))],16,re)),[[c]])],64)})),128)),o.filterValue&&(!r||r&&0===r.length)?(O(),g("li",m({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[I(e.$slots,"emptyfilter",{},(function(){return[x(S(s.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(O(),g("li",m({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[I(e.$slots,"empty",{},(function(){return[x(S(s.emptyMessageText),1)]}))],16)):V("",!0)],16,oe)]})),_:2},[e.$slots.loader?{name:"loader",fn:D((function(t){return[I(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),I(e.$slots,"footer",{value:e.modelValue,options:s.visibleOptions}),!e.options||e.options&&0===e.options.length?(O(),g("span",m({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),S(s.emptyMessageText),17)):V("",!0),k("span",m({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),S(s.selectedMessageText),17),k("span",m({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[12]||(t[12]=function(){return s.onLastHiddenFocus&&s.onLastHiddenFocus.apply(s,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):V("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16,ee)};export{q as default};
1
+ import{FilterService as e}from"primevue/api";import t from"primevue/icons/chevrondown";import i from"primevue/icons/filter";import n from"primevue/icons/spinner";import o from"primevue/icons/times";import s from"primevue/overlayeventbus";import r from"primevue/portal";import l from"primevue/ripple";import{UniqueComponentId as a,ZIndexUtils as c,ObjectUtils as u,DomHandler as d,ConnectedOverlayScrollHandler as p}from"primevue/utils";import h from"primevue/virtualscroller";import f from"primevue/basecomponent";import y from"primevue/dropdown/style";import{resolveComponent as b,resolveDirective as v,openBlock as O,createElementBlock as m,mergeProps as g,renderSlot as I,createTextVNode as x,toDisplayString as S,normalizeClass as w,createBlock as F,resolveDynamicComponent as L,createCommentVNode as V,createElementVNode as k,createVNode as C,withCtx as D,Transition as M,createSlots as K,Fragment as E,renderList as P,withDirectives as T}from"vue";function $(e){return $="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},$(e)}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){if(e){if("string"==typeof e)return B(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?B(e,t):void 0}}function H(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function G(e){if(Array.isArray(e))return B(e)}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function R(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?R(Object(i),!0).forEach((function(t){U(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):R(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function U(e,t,i){var n;return(t="symbol"==$(n=N(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function N(e,t){if("object"!=$(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var _={name:"Dropdown",extends:{name:"BaseDropdown",extends:f,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:String,default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:y,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||a()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||a(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(c.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?u.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?u.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?u.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTItemOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&u.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return u.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return u.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&d.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&d.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled||d.isAndroid())e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&u.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}},onEditableInput:function(e){var t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t),!this.overlayVisible&&u.isNotEmpty(t)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||"INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]')||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0))},onClearClick:function(e){this.updateModel(e,null)},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?d.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;d.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?d.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;d.focus(t)},onOptionSelect:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.getOptionValue(t);this.updateModel(e,n),i&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){s.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onDeleteKey:function(e){this.showClear&&(this.updateModel(e,null),e.preventDefault())},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(i,i),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(d.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){c.set("overlay",e,this.$primevue.config.zIndex.overlay),d.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&d.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){c.clear(e)},alignOverlay:function(){"self"===this.appendTo?d.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=d.getOuterWidth(this.$el)+"px",d.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&!e.$el.contains(t.target)&&!e.overlay.contains(t.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new p(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!d.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},hasFocusableElements:function(){return d.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return u.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&u.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return u.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?u.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,o=!1;return-1!==(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return i.isOptionMatched(e)})))&&(o=!0),-1===n&&-1===this.focusedOptionIndex&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),o},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=d.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,i=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=e.filter(i,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var i,s=t.getOptionGroupChildren(e).filter((function(e){return n.includes(e)}));s.length>0&&o.push(z(z({},e),{},U({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",G(i=s)||H(i)||j(i)||A())))})),this.flatOptions(o)}return n}return i},hasSelectedOption:function(){return u.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return u.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:l},components:{VirtualScroller:h,Portal:r,TimesIcon:o,ChevronDownIcon:t,SpinnerIcon:n,FilterIcon:i}};function q(e){return q="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},q(e)}function W(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 J(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?W(Object(i),!0).forEach((function(t){Q(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):W(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Q(e,t,i){var n;return(t="symbol"==q(n=X(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function X(e,t){if("object"!=q(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Y=["id"],Z=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],ee=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],te=["value","placeholder","aria-owns","aria-activedescendant"],ie=["id"],ne=["id"],oe=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];_.render=function(e,t,i,n,o,s){var r=b("SpinnerIcon"),l=b("VirtualScroller"),a=b("Portal"),c=v("ripple");return O(),m("div",g({ref:"container",id:o.id,class:e.cx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"dropdown"}),[e.editable?(O(),m("input",g({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onEditableInput&&s.onEditableInput.apply(s,arguments)})},J(J({},e.inputProps),e.ptm("input"))),null,16,Z)):(O(),m("span",g({key:1,ref:"focusInput",id:e.inputId,class:[e.cx("input"),e.inputClass],style:e.inputStyle,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel||("p-emptylabel"===s.label?void 0:s.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[4]||(t[4]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[5]||(t[5]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[6]||(t[6]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)})},J(J({},e.inputProps),e.ptm("input"))),[I(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return[x(S("p-emptylabel"===s.label?" ":s.label||"empty"),1)]}))],16,ee)),e.showClear&&null!=e.modelValue?I(e.$slots,"clearicon",{key:2,class:w(e.cx("clearIcon")),onClick:s.onClearClick,clearCallback:s.onClearClick},(function(){return[(O(),F(L(e.clearIcon?"i":"TimesIcon"),g({ref:"clearIcon",class:[e.cx("clearIcon"),e.clearIcon],onClick:s.onClearClick},J(J({},e.clearIconProps),e.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]})):V("",!0),k("div",g({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?I(e.$slots,"loadingicon",{key:0,class:w(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(O(),m("span",g({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(O(),F(r,g({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):I(e.$slots,"dropdownicon",{key:1,class:w(e.cx("dropdownIcon"))},(function(){return[(O(),F(L(e.dropdownIcon?"span":"ChevronDownIcon"),g({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),C(a,{appendTo:e.appendTo},{default:D((function(){return[C(M,g({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:D((function(){return[o.overlayVisible?(O(),m("div",g({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:e.panelStyle,onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},J(J({},e.panelProps),e.ptm("panel"))),[k("span",g({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[7]||(t[7]=function(){return s.onFirstHiddenFocus&&s.onFirstHiddenFocus.apply(s,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),I(e.$slots,"header",{value:e.modelValue,options:s.visibleOptions}),e.filter?(O(),m("div",g({key:0,class:e.cx("header")},e.ptm("header")),[k("div",g({class:e.cx("filterContainer")},e.ptm("filterContainer")),[k("input",g({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[8]||(t[8]=function(){return s.onFilterUpdated&&s.onFilterUpdated.apply(s,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":s.focusedOptionId,onKeydown:t[9]||(t[9]=function(){return s.onFilterKeyDown&&s.onFilterKeyDown.apply(s,arguments)}),onBlur:t[10]||(t[10]=function(){return s.onFilterBlur&&s.onFilterBlur.apply(s,arguments)}),onInput:t[11]||(t[11]=function(){return s.onFilterChange&&s.onFilterChange.apply(s,arguments)})},J(J({},e.filterInputProps),e.ptm("filterInput"))),null,16,te),I(e.$slots,"filtericon",{class:w(e.cx("filterIcon"))},(function(){return[(O(),F(L(e.filterIcon?"span":"FilterIcon"),g({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16),k("span",g({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),S(s.filterResultMessageText),17)],16)):V("",!0),k("div",g({class:e.cx("wrapper"),style:{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[C(l,g({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{items:s.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),K({content:D((function(t){var i=t.styleClass,n=t.contentRef,r=t.items,l=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[k("ul",g({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(O(!0),m(E,null,P(r,(function(t,i){return O(),m(E,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,l))},[s.isOptionGroup(t)?(O(),m("li",g({key:0,id:o.id+"_"+s.getOptionIndex(i,l),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[I(e.$slots,"optiongroup",{option:t.optionGroup,index:s.getOptionIndex(i,l)},(function(){return[x(S(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,ne)):T((O(),m("li",g({key:1,id:o.id+"_"+s.getOptionIndex(i,l),class:e.cx("item",{option:t,focusedOption:s.getOptionIndex(i,l)}),style:{height:u?u+"px":void 0},role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,l)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,l))},"data-p-highlight":s.isSelected(t),"data-p-focused":o.focusedOptionIndex===s.getOptionIndex(i,l),"data-p-disabled":s.isOptionDisabled(t)},s.getPTItemOptions(t,l,i,"item")),[I(e.$slots,"option",{option:t,index:s.getOptionIndex(i,l)},(function(){return[x(S(s.getOptionLabel(t)),1)]}))],16,oe)),[[c]])],64)})),128)),o.filterValue&&(!r||r&&0===r.length)?(O(),m("li",g({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[I(e.$slots,"emptyfilter",{},(function(){return[x(S(s.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(O(),m("li",g({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[I(e.$slots,"empty",{},(function(){return[x(S(s.emptyMessageText),1)]}))],16)):V("",!0)],16,ie)]})),_:2},[e.$slots.loader?{name:"loader",fn:D((function(t){return[I(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),I(e.$slots,"footer",{value:e.modelValue,options:s.visibleOptions}),!e.options||e.options&&0===e.options.length?(O(),m("span",g({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),S(s.emptyMessageText),17)):V("",!0),k("span",g({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),S(s.selectedMessageText),17),k("span",g({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[12]||(t[12]=function(){return s.onLastHiddenFocus&&s.onLastHiddenFocus.apply(s,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):V("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16,Y)};export{_ as default};
@@ -186,8 +186,8 @@ this.primevue.dropdown = (function (api, ChevronDownIcon, FilterIcon, SpinnerIco
186
186
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
187
187
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
188
188
  function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
189
- function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
190
- function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
189
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : String(i); }
190
+ function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
191
191
  var script = {
192
192
  name: 'Dropdown',
193
193
  "extends": script$1,
@@ -321,7 +321,7 @@ this.primevue.dropdown = (function (api, ChevronDownIcon, FilterIcon, SpinnerIco
321
321
  this.$emit('blur', event);
322
322
  },
323
323
  onKeyDown: function onKeyDown(event) {
324
- if (this.disabled) {
324
+ if (this.disabled || utils.DomHandler.isAndroid()) {
325
325
  event.preventDefault();
326
326
  return;
327
327
  }
@@ -385,6 +385,7 @@ this.primevue.dropdown = (function (api, ChevronDownIcon, FilterIcon, SpinnerIco
385
385
  var matched = this.searchOptions(event, value);
386
386
  !matched && (this.focusedOptionIndex = -1);
387
387
  this.updateModel(event, value);
388
+ !this.overlayVisible && utils.ObjectUtils.isNotEmpty(value) && this.show();
388
389
  },
389
390
  onContainerClick: function onContainerClick(event) {
390
391
  if (this.disabled || this.loading) {
@@ -909,8 +910,8 @@ this.primevue.dropdown = (function (api, ChevronDownIcon, FilterIcon, SpinnerIco
909
910
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
910
911
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
911
912
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
912
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
913
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
913
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
914
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
914
915
  var _hoisted_1 = ["id"];
915
916
  var _hoisted_2 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
916
917
  var _hoisted_3 = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"];
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.dropdown=function(e,t,i,n,o,r,s,l,a,c,u,d,p){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=h(t),y=h(i),b=h(n),v=h(o),m=h(r),O=h(s),g=h(l),I=h(c);function x(e){return x="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},x(e)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){if(e){if("string"==typeof e)return F(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?F(e,t):void 0}}function k(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function V(e){if(Array.isArray(e))return F(e)}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function D(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 L(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?D(Object(i),!0).forEach((function(t){C(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function C(e,t,i){return(t=E(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e){var t=P(e,"string");return"symbol"===x(t)?t:String(t)}function P(e,t){if("object"!==x(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var M={name:"Dropdown",extends:{name:"BaseDropdown",extends:h(u).default,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:String,default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:h(d).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||a.UniqueComponentId()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||a.UniqueComponentId(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(a.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?a.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?a.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?a.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTItemOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&a.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return a.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return a.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&a.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&a.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&a.ObjectUtils.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}},onEditableInput:function(e){var t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t)},onContainerClick:function(e){this.disabled||this.loading||"INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]')||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0))},onClearClick:function(e){this.updateModel(e,null)},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?a.DomHandler.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;a.DomHandler.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?a.DomHandler.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;a.DomHandler.focus(t)},onOptionSelect:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.getOptionValue(t);this.updateModel(e,n),i&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){m.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onDeleteKey:function(e){this.showClear&&(this.updateModel(e,null),e.preventDefault())},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(i,i),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(a.DomHandler.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){a.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),a.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&a.DomHandler.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){a.ZIndexUtils.clear(e)},alignOverlay:function(){"self"===this.appendTo?a.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=a.DomHandler.getOuterWidth(this.$el)+"px",a.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&!e.$el.contains(t.target)&&!e.overlay.contains(t.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new a.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!a.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},hasFocusableElements:function(){return a.DomHandler.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return a.ObjectUtils.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&a.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return a.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?a.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,o=!1;return-1!==(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return i.isOptionMatched(e)})))&&(o=!0),-1===n&&-1===this.focusedOptionIndex&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),o},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=a.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,i=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=e.FilterService.filter(i,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var i,r=t.getOptionGroupChildren(e).filter((function(e){return n.includes(e)}));r.length>0&&o.push(L(L({},e),{},C({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",V(i=r)||k(i)||w(i)||S())))})),this.flatOptions(o)}return n}return i},hasSelectedOption:function(){return a.ObjectUtils.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return a.ObjectUtils.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:g.default},components:{VirtualScroller:I.default,Portal:O.default,TimesIcon:v.default,ChevronDownIcon:f.default,SpinnerIcon:b.default,FilterIcon:y.default}};function K(e){return K="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},K(e)}function B(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 T(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?B(Object(i),!0).forEach((function(t){j(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function j(e,t,i){return(t=$(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function $(e){var t=H(e,"string");return"symbol"===K(t)?t:String(t)}function H(e,t){if("object"!==K(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var A=["id"],U=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],N=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],G=["value","placeholder","aria-owns","aria-activedescendant"],z=["id"],R=["id"],_=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];return M.render=function(e,t,i,n,o,r){var s=p.resolveComponent("SpinnerIcon"),l=p.resolveComponent("VirtualScroller"),a=p.resolveComponent("Portal"),c=p.resolveDirective("ripple");return p.openBlock(),p.createElementBlock("div",p.mergeProps({ref:"container",id:o.id,class:e.cx("root"),onClick:t[15]||(t[15]=function(){return r.onContainerClick&&r.onContainerClick.apply(r,arguments)})},e.ptm("root"),{"data-pc-name":"dropdown"}),[e.editable?(p.openBlock(),p.createElementBlock("input",p.mergeProps({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:r.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?r.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return r.onFocus&&r.onFocus.apply(r,arguments)}),onBlur:t[1]||(t[1]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),onKeydown:t[2]||(t[2]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)}),onInput:t[3]||(t[3]=function(){return r.onEditableInput&&r.onEditableInput.apply(r,arguments)})},T(T({},e.inputProps),e.ptm("input"))),null,16,U)):(p.openBlock(),p.createElementBlock("span",p.mergeProps({key:1,ref:"focusInput",id:e.inputId,class:[e.cx("input"),e.inputClass],style:e.inputStyle,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel||("p-emptylabel"===r.label?void 0:r.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[4]||(t[4]=function(){return r.onFocus&&r.onFocus.apply(r,arguments)}),onBlur:t[5]||(t[5]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),onKeydown:t[6]||(t[6]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)})},T(T({},e.inputProps),e.ptm("input"))),[p.renderSlot(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return[p.createTextVNode(p.toDisplayString("p-emptylabel"===r.label?" ":r.label||"empty"),1)]}))],16,N)),e.showClear&&null!=e.modelValue?p.renderSlot(e.$slots,"clearicon",{key:2,class:p.normalizeClass(e.cx("clearIcon")),onClick:r.onClearClick,clearCallback:r.onClearClick},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.clearIcon?"i":"TimesIcon"),p.mergeProps({ref:"clearIcon",class:[e.cx("clearIcon"),e.clearIcon],onClick:r.onClearClick},T(T({},e.clearIconProps),e.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]})):p.createCommentVNode("",!0),p.createElementVNode("div",p.mergeProps({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?p.renderSlot(e.$slots,"loadingicon",{key:0,class:p.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(p.openBlock(),p.createElementBlock("span",p.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(p.openBlock(),p.createBlock(s,p.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):p.renderSlot(e.$slots,"dropdownicon",{key:1,class:p.normalizeClass(e.cx("dropdownIcon"))},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),p.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),p.createVNode(a,{appendTo:e.appendTo},{default:p.withCtx((function(){return[p.createVNode(p.Transition,p.mergeProps({name:"p-connected-overlay",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},e.ptm("transition")),{default:p.withCtx((function(){return[o.overlayVisible?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,ref:r.overlayRef,class:[e.cx("panel"),e.panelClass],style:e.panelStyle,onClick:t[13]||(t[13]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),onKeydown:t[14]||(t[14]=function(){return r.onOverlayKeyDown&&r.onOverlayKeyDown.apply(r,arguments)})},T(T({},e.panelProps),e.ptm("panel"))),[p.createElementVNode("span",p.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[7]||(t[7]=function(){return r.onFirstHiddenFocus&&r.onFirstHiddenFocus.apply(r,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),p.renderSlot(e.$slots,"header",{value:e.modelValue,options:r.visibleOptions}),e.filter?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[p.createElementVNode("div",p.mergeProps({class:e.cx("filterContainer")},e.ptm("filterContainer")),[p.createElementVNode("input",p.mergeProps({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[8]||(t[8]=function(){return r.onFilterUpdated&&r.onFilterUpdated.apply(r,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":r.focusedOptionId,onKeydown:t[9]||(t[9]=function(){return r.onFilterKeyDown&&r.onFilterKeyDown.apply(r,arguments)}),onBlur:t[10]||(t[10]=function(){return r.onFilterBlur&&r.onFilterBlur.apply(r,arguments)}),onInput:t[11]||(t[11]=function(){return r.onFilterChange&&r.onFilterChange.apply(r,arguments)})},T(T({},e.filterInputProps),e.ptm("filterInput"))),null,16,G),p.renderSlot(e.$slots,"filtericon",{class:p.normalizeClass(e.cx("filterIcon"))},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.filterIcon?"span":"FilterIcon"),p.mergeProps({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16),p.createElementVNode("span",p.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),p.toDisplayString(r.filterResultMessageText),17)],16)):p.createCommentVNode("",!0),p.createElementVNode("div",p.mergeProps({class:e.cx("wrapper"),style:{"max-height":r.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[p.createVNode(l,p.mergeProps({ref:r.virtualScrollerRef},e.virtualScrollerOptions,{items:r.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),p.createSlots({content:p.withCtx((function(t){var i=t.styleClass,n=t.contentRef,s=t.items,l=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[p.createElementVNode("ul",p.mergeProps({ref:function(e){return r.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(s,(function(t,i){return p.openBlock(),p.createElementBlock(p.Fragment,{key:r.getOptionRenderKey(t,r.getOptionIndex(i,l))},[r.isOptionGroup(t)?(p.openBlock(),p.createElementBlock("li",p.mergeProps({key:0,id:o.id+"_"+r.getOptionIndex(i,l),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[p.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,index:r.getOptionIndex(i,l)},(function(){return[p.createTextVNode(p.toDisplayString(r.getOptionGroupLabel(t.optionGroup)),1)]}))],16,R)):p.withDirectives((p.openBlock(),p.createElementBlock("li",p.mergeProps({key:1,id:o.id+"_"+r.getOptionIndex(i,l),class:e.cx("item",{option:t,focusedOption:r.getOptionIndex(i,l)}),style:{height:u?u+"px":void 0},role:"option","aria-label":r.getOptionLabel(t),"aria-selected":r.isSelected(t),"aria-disabled":r.isOptionDisabled(t),"aria-setsize":r.ariaSetSize,"aria-posinset":r.getAriaPosInset(r.getOptionIndex(i,l)),onClick:function(e){return r.onOptionSelect(e,t)},onMousemove:function(e){return r.onOptionMouseMove(e,r.getOptionIndex(i,l))},"data-p-highlight":r.isSelected(t),"data-p-focused":o.focusedOptionIndex===r.getOptionIndex(i,l),"data-p-disabled":r.isOptionDisabled(t)},r.getPTItemOptions(t,l,i,"item")),[p.renderSlot(e.$slots,"option",{option:t,index:r.getOptionIndex(i,l)},(function(){return[p.createTextVNode(p.toDisplayString(r.getOptionLabel(t)),1)]}))],16,_)),[[c]])],64)})),128)),o.filterValue&&(!s||s&&0===s.length)?(p.openBlock(),p.createElementBlock("li",p.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[p.renderSlot(e.$slots,"emptyfilter",{},(function(){return[p.createTextVNode(p.toDisplayString(r.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(p.openBlock(),p.createElementBlock("li",p.mergeProps({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[p.renderSlot(e.$slots,"empty",{},(function(){return[p.createTextVNode(p.toDisplayString(r.emptyMessageText),1)]}))],16)):p.createCommentVNode("",!0)],16,z)]})),_:2},[e.$slots.loader?{name:"loader",fn:p.withCtx((function(t){return[p.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),p.renderSlot(e.$slots,"footer",{value:e.modelValue,options:r.visibleOptions}),!e.options||e.options&&0===e.options.length?(p.openBlock(),p.createElementBlock("span",p.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),p.toDisplayString(r.emptyMessageText),17)):p.createCommentVNode("",!0),p.createElementVNode("span",p.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),p.toDisplayString(r.selectedMessageText),17),p.createElementVNode("span",p.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[12]||(t[12]=function(){return r.onLastHiddenFocus&&r.onLastHiddenFocus.apply(r,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):p.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16,A)},M}(primevue.api,primevue.icons.chevrondown,primevue.icons.filter,primevue.icons.spinner,primevue.icons.times,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.virtualscroller,primevue.basecomponent,primevue.dropdown.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.dropdown=function(e,t,i,n,o,r,s,l,a,c,u,d,p){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=h(t),y=h(i),b=h(n),v=h(o),m=h(r),O=h(s),g=h(l),I=h(c);function x(e){return x="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},x(e)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){if(e){if("string"==typeof e)return F(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?F(e,t):void 0}}function k(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function V(e){if(Array.isArray(e))return F(e)}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function D(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 L(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?D(Object(i),!0).forEach((function(t){C(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function C(e,t,i){var n;return(t="symbol"==x(n=E(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e,t){if("object"!=x(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var P={name:"Dropdown",extends:{name:"BaseDropdown",extends:h(u).default,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:String,default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:h(d).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||a.UniqueComponentId()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||a.UniqueComponentId(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(a.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?a.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?a.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?a.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTItemOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&a.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return a.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return a.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&a.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&a.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled||a.DomHandler.isAndroid())e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&a.ObjectUtils.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}},onEditableInput:function(e){var t=e.target.value;this.searchValue="",!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t),!this.overlayVisible&&a.ObjectUtils.isNotEmpty(t)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||"INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]')||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0))},onClearClick:function(e){this.updateModel(e,null)},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?a.DomHandler.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;a.DomHandler.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?a.DomHandler.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;a.DomHandler.focus(t)},onOptionSelect:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.getOptionValue(t);this.updateModel(e,n),i&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){m.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onDeleteKey:function(e){this.showClear&&(this.updateModel(e,null),e.preventDefault())},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(i,i),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(a.DomHandler.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){a.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),a.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&a.DomHandler.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){a.ZIndexUtils.clear(e)},alignOverlay:function(){"self"===this.appendTo?a.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=a.DomHandler.getOuterWidth(this.$el)+"px",a.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&!e.$el.contains(t.target)&&!e.overlay.contains(t.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new a.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!a.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},hasFocusableElements:function(){return a.DomHandler.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return a.ObjectUtils.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&a.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return a.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?a.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,o=!1;return-1!==(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return i.isOptionMatched(e)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return i.isOptionMatched(e)})))&&(o=!0),-1===n&&-1===this.focusedOptionIndex&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),o},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=a.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,i=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=e.FilterService.filter(i,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var i,r=t.getOptionGroupChildren(e).filter((function(e){return n.includes(e)}));r.length>0&&o.push(L(L({},e),{},C({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",V(i=r)||k(i)||w(i)||S())))})),this.flatOptions(o)}return n}return i},hasSelectedOption:function(){return a.ObjectUtils.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return a.ObjectUtils.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:g.default},components:{VirtualScroller:I.default,Portal:O.default,TimesIcon:v.default,ChevronDownIcon:f.default,SpinnerIcon:b.default,FilterIcon:y.default}};function M(e){return M="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},M(e)}function K(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 B(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?K(Object(i),!0).forEach((function(t){T(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):K(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function T(e,t,i){var n;return(t="symbol"==M(n=j(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function j(e,t){if("object"!=M(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var H=["id"],$=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],A=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],U=["value","placeholder","aria-owns","aria-activedescendant"],N=["id"],G=["id"],z=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];return P.render=function(e,t,i,n,o,r){var s=p.resolveComponent("SpinnerIcon"),l=p.resolveComponent("VirtualScroller"),a=p.resolveComponent("Portal"),c=p.resolveDirective("ripple");return p.openBlock(),p.createElementBlock("div",p.mergeProps({ref:"container",id:o.id,class:e.cx("root"),onClick:t[15]||(t[15]=function(){return r.onContainerClick&&r.onContainerClick.apply(r,arguments)})},e.ptm("root"),{"data-pc-name":"dropdown"}),[e.editable?(p.openBlock(),p.createElementBlock("input",p.mergeProps({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:r.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?r.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return r.onFocus&&r.onFocus.apply(r,arguments)}),onBlur:t[1]||(t[1]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),onKeydown:t[2]||(t[2]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)}),onInput:t[3]||(t[3]=function(){return r.onEditableInput&&r.onEditableInput.apply(r,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,$)):(p.openBlock(),p.createElementBlock("span",p.mergeProps({key:1,ref:"focusInput",id:e.inputId,class:[e.cx("input"),e.inputClass],style:e.inputStyle,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel||("p-emptylabel"===r.label?void 0:r.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[4]||(t[4]=function(){return r.onFocus&&r.onFocus.apply(r,arguments)}),onBlur:t[5]||(t[5]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),onKeydown:t[6]||(t[6]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)})},B(B({},e.inputProps),e.ptm("input"))),[p.renderSlot(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return[p.createTextVNode(p.toDisplayString("p-emptylabel"===r.label?" ":r.label||"empty"),1)]}))],16,A)),e.showClear&&null!=e.modelValue?p.renderSlot(e.$slots,"clearicon",{key:2,class:p.normalizeClass(e.cx("clearIcon")),onClick:r.onClearClick,clearCallback:r.onClearClick},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.clearIcon?"i":"TimesIcon"),p.mergeProps({ref:"clearIcon",class:[e.cx("clearIcon"),e.clearIcon],onClick:r.onClearClick},B(B({},e.clearIconProps),e.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]})):p.createCommentVNode("",!0),p.createElementVNode("div",p.mergeProps({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?p.renderSlot(e.$slots,"loadingicon",{key:0,class:p.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(p.openBlock(),p.createElementBlock("span",p.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(p.openBlock(),p.createBlock(s,p.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):p.renderSlot(e.$slots,"dropdownicon",{key:1,class:p.normalizeClass(e.cx("dropdownIcon"))},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),p.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),p.createVNode(a,{appendTo:e.appendTo},{default:p.withCtx((function(){return[p.createVNode(p.Transition,p.mergeProps({name:"p-connected-overlay",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},e.ptm("transition")),{default:p.withCtx((function(){return[o.overlayVisible?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,ref:r.overlayRef,class:[e.cx("panel"),e.panelClass],style:e.panelStyle,onClick:t[13]||(t[13]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),onKeydown:t[14]||(t[14]=function(){return r.onOverlayKeyDown&&r.onOverlayKeyDown.apply(r,arguments)})},B(B({},e.panelProps),e.ptm("panel"))),[p.createElementVNode("span",p.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[7]||(t[7]=function(){return r.onFirstHiddenFocus&&r.onFirstHiddenFocus.apply(r,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),p.renderSlot(e.$slots,"header",{value:e.modelValue,options:r.visibleOptions}),e.filter?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[p.createElementVNode("div",p.mergeProps({class:e.cx("filterContainer")},e.ptm("filterContainer")),[p.createElementVNode("input",p.mergeProps({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[8]||(t[8]=function(){return r.onFilterUpdated&&r.onFilterUpdated.apply(r,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":r.focusedOptionId,onKeydown:t[9]||(t[9]=function(){return r.onFilterKeyDown&&r.onFilterKeyDown.apply(r,arguments)}),onBlur:t[10]||(t[10]=function(){return r.onFilterBlur&&r.onFilterBlur.apply(r,arguments)}),onInput:t[11]||(t[11]=function(){return r.onFilterChange&&r.onFilterChange.apply(r,arguments)})},B(B({},e.filterInputProps),e.ptm("filterInput"))),null,16,U),p.renderSlot(e.$slots,"filtericon",{class:p.normalizeClass(e.cx("filterIcon"))},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(e.filterIcon?"span":"FilterIcon"),p.mergeProps({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16),p.createElementVNode("span",p.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),p.toDisplayString(r.filterResultMessageText),17)],16)):p.createCommentVNode("",!0),p.createElementVNode("div",p.mergeProps({class:e.cx("wrapper"),style:{"max-height":r.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[p.createVNode(l,p.mergeProps({ref:r.virtualScrollerRef},e.virtualScrollerOptions,{items:r.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),p.createSlots({content:p.withCtx((function(t){var i=t.styleClass,n=t.contentRef,s=t.items,l=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[p.createElementVNode("ul",p.mergeProps({ref:function(e){return r.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(s,(function(t,i){return p.openBlock(),p.createElementBlock(p.Fragment,{key:r.getOptionRenderKey(t,r.getOptionIndex(i,l))},[r.isOptionGroup(t)?(p.openBlock(),p.createElementBlock("li",p.mergeProps({key:0,id:o.id+"_"+r.getOptionIndex(i,l),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[p.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,index:r.getOptionIndex(i,l)},(function(){return[p.createTextVNode(p.toDisplayString(r.getOptionGroupLabel(t.optionGroup)),1)]}))],16,G)):p.withDirectives((p.openBlock(),p.createElementBlock("li",p.mergeProps({key:1,id:o.id+"_"+r.getOptionIndex(i,l),class:e.cx("item",{option:t,focusedOption:r.getOptionIndex(i,l)}),style:{height:u?u+"px":void 0},role:"option","aria-label":r.getOptionLabel(t),"aria-selected":r.isSelected(t),"aria-disabled":r.isOptionDisabled(t),"aria-setsize":r.ariaSetSize,"aria-posinset":r.getAriaPosInset(r.getOptionIndex(i,l)),onClick:function(e){return r.onOptionSelect(e,t)},onMousemove:function(e){return r.onOptionMouseMove(e,r.getOptionIndex(i,l))},"data-p-highlight":r.isSelected(t),"data-p-focused":o.focusedOptionIndex===r.getOptionIndex(i,l),"data-p-disabled":r.isOptionDisabled(t)},r.getPTItemOptions(t,l,i,"item")),[p.renderSlot(e.$slots,"option",{option:t,index:r.getOptionIndex(i,l)},(function(){return[p.createTextVNode(p.toDisplayString(r.getOptionLabel(t)),1)]}))],16,z)),[[c]])],64)})),128)),o.filterValue&&(!s||s&&0===s.length)?(p.openBlock(),p.createElementBlock("li",p.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[p.renderSlot(e.$slots,"emptyfilter",{},(function(){return[p.createTextVNode(p.toDisplayString(r.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(p.openBlock(),p.createElementBlock("li",p.mergeProps({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[p.renderSlot(e.$slots,"empty",{},(function(){return[p.createTextVNode(p.toDisplayString(r.emptyMessageText),1)]}))],16)):p.createCommentVNode("",!0)],16,N)]})),_:2},[e.$slots.loader?{name:"loader",fn:p.withCtx((function(t){return[p.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),p.renderSlot(e.$slots,"footer",{value:e.modelValue,options:r.visibleOptions}),!e.options||e.options&&0===e.options.length?(p.openBlock(),p.createElementBlock("span",p.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),p.toDisplayString(r.emptyMessageText),17)):p.createCommentVNode("",!0),p.createElementVNode("span",p.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),p.toDisplayString(r.selectedMessageText),17),p.createElementVNode("span",p.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[12]||(t[12]=function(){return r.onLastHiddenFocus&&r.onLastHiddenFocus.apply(r,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):p.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16,H)},P}(primevue.api,primevue.icons.chevrondown,primevue.icons.filter,primevue.icons.spinner,primevue.icons.times,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.virtualscroller,primevue.basecomponent,primevue.dropdown.style,Vue);
@@ -14,7 +14,7 @@ var classes = {
14
14
  state = _ref.state;
15
15
  return ['p-dropdown p-component p-inputwrapper', {
16
16
  'p-disabled': props.disabled,
17
- 'p-dropdown-clearable': props.showClear && !props.disabled,
17
+ 'p-dropdown-clearable': props.showClear,
18
18
  'p-focus': state.focused,
19
19
  'p-inputwrapper-filled': instance.hasSelectedOption,
20
20
  'p-inputwrapper-focus': state.focused || state.overlayVisible,
@@ -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:"dropdown",css:"\n@layer primevue {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n\n .p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n\n .p-dropdown-label-empty {\n overflow: hidden;\n opacity: 0;\n }\n\n input.p-dropdown-label {\n cursor: default;\n }\n\n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n\n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n\n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n\n .p-dropdown-item-group {\n cursor: auto;\n }\n\n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-dropdown-filter {\n width: 100%;\n }\n\n .p-dropdown-filter-container {\n position: relative;\n }\n\n .p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-fluid .p-dropdown {\n display: flex;\n }\n\n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n",classes:{root:function(n){var e=n.props,o=n.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":e.disabled,"p-dropdown-clearable":e.showClear&&!e.disabled,"p-focus":o.focused,"p-inputwrapper-filled":n.instance.hasSelectedOption,"p-inputwrapper-focus":o.focused||o.overlayVisible,"p-overlay-open":o.overlayVisible}]},input:function(n){var e=n.instance,o=n.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!o.editable&&e.label===o.placeholder,"p-dropdown-label-empty":!(o.editable||e.$slots.value||"p-emptylabel"!==e.label&&0!==e.label.length)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(n){var e=n.instance;return["p-dropdown-panel p-component",{"p-input-filled":"filled"===e.$primevue.config.inputStyle,"p-ripple-disabled":!1===e.$primevue.config.ripple}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:"p-dropdown-filter p-inputtext p-component",filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",item:function(n){var e=n.instance,o=n.state,p=n.option,r=n.focusedOption;return["p-dropdown-item",{"p-highlight":e.isSelected(p),"p-focus":o.focusedOptionIndex===r,"p-disabled":e.isOptionDisabled(p)}]},emptyMessage:"p-dropdown-empty-message"}});module.exports=e;
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:"dropdown",css:"\n@layer primevue {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n\n .p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n\n .p-dropdown-label-empty {\n overflow: hidden;\n opacity: 0;\n }\n\n input.p-dropdown-label {\n cursor: default;\n }\n\n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n\n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n\n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n\n .p-dropdown-item-group {\n cursor: auto;\n }\n\n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-dropdown-filter {\n width: 100%;\n }\n\n .p-dropdown-filter-container {\n position: relative;\n }\n\n .p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-fluid .p-dropdown {\n display: flex;\n }\n\n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n",classes:{root:function(n){var e=n.props,o=n.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":e.disabled,"p-dropdown-clearable":e.showClear,"p-focus":o.focused,"p-inputwrapper-filled":n.instance.hasSelectedOption,"p-inputwrapper-focus":o.focused||o.overlayVisible,"p-overlay-open":o.overlayVisible}]},input:function(n){var e=n.instance,o=n.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!o.editable&&e.label===o.placeholder,"p-dropdown-label-empty":!(o.editable||e.$slots.value||"p-emptylabel"!==e.label&&0!==e.label.length)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(n){var e=n.instance;return["p-dropdown-panel p-component",{"p-input-filled":"filled"===e.$primevue.config.inputStyle,"p-ripple-disabled":!1===e.$primevue.config.ripple}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:"p-dropdown-filter p-inputtext p-component",filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",item:function(n){var e=n.instance,o=n.state,p=n.option,r=n.focusedOption;return["p-dropdown-item",{"p-highlight":e.isSelected(p),"p-focus":o.focusedOptionIndex===r,"p-disabled":e.isOptionDisabled(p)}]},emptyMessage:"p-dropdown-empty-message"}});module.exports=e;
@@ -8,7 +8,7 @@ var classes = {
8
8
  state = _ref.state;
9
9
  return ['p-dropdown p-component p-inputwrapper', {
10
10
  'p-disabled': props.disabled,
11
- 'p-dropdown-clearable': props.showClear && !props.disabled,
11
+ 'p-dropdown-clearable': props.showClear,
12
12
  'p-focus': state.focused,
13
13
  'p-inputwrapper-filled': instance.hasSelectedOption,
14
14
  'p-inputwrapper-focus': state.focused || state.overlayVisible,
@@ -1 +1 @@
1
- import n from"primevue/base/style";var e=n.extend({name:"dropdown",css:"\n@layer primevue {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n\n .p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n\n .p-dropdown-label-empty {\n overflow: hidden;\n opacity: 0;\n }\n\n input.p-dropdown-label {\n cursor: default;\n }\n\n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n\n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n\n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n\n .p-dropdown-item-group {\n cursor: auto;\n }\n\n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-dropdown-filter {\n width: 100%;\n }\n\n .p-dropdown-filter-container {\n position: relative;\n }\n\n .p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-fluid .p-dropdown {\n display: flex;\n }\n\n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n",classes:{root:function(n){var e=n.props,o=n.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":e.disabled,"p-dropdown-clearable":e.showClear&&!e.disabled,"p-focus":o.focused,"p-inputwrapper-filled":n.instance.hasSelectedOption,"p-inputwrapper-focus":o.focused||o.overlayVisible,"p-overlay-open":o.overlayVisible}]},input:function(n){var e=n.instance,o=n.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!o.editable&&e.label===o.placeholder,"p-dropdown-label-empty":!(o.editable||e.$slots.value||"p-emptylabel"!==e.label&&0!==e.label.length)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(n){var e=n.instance;return["p-dropdown-panel p-component",{"p-input-filled":"filled"===e.$primevue.config.inputStyle,"p-ripple-disabled":!1===e.$primevue.config.ripple}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:"p-dropdown-filter p-inputtext p-component",filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",item:function(n){var e=n.instance,o=n.state,p=n.option,r=n.focusedOption;return["p-dropdown-item",{"p-highlight":e.isSelected(p),"p-focus":o.focusedOptionIndex===r,"p-disabled":e.isOptionDisabled(p)}]},emptyMessage:"p-dropdown-empty-message"}});export{e as default};
1
+ import n from"primevue/base/style";var e=n.extend({name:"dropdown",css:"\n@layer primevue {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n\n .p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n\n .p-dropdown-label-empty {\n overflow: hidden;\n opacity: 0;\n }\n\n input.p-dropdown-label {\n cursor: default;\n }\n\n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n\n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n\n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n\n .p-dropdown-item-group {\n cursor: auto;\n }\n\n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-dropdown-filter {\n width: 100%;\n }\n\n .p-dropdown-filter-container {\n position: relative;\n }\n\n .p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-fluid .p-dropdown {\n display: flex;\n }\n\n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n",classes:{root:function(n){var e=n.props,o=n.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":e.disabled,"p-dropdown-clearable":e.showClear,"p-focus":o.focused,"p-inputwrapper-filled":n.instance.hasSelectedOption,"p-inputwrapper-focus":o.focused||o.overlayVisible,"p-overlay-open":o.overlayVisible}]},input:function(n){var e=n.instance,o=n.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!o.editable&&e.label===o.placeholder,"p-dropdown-label-empty":!(o.editable||e.$slots.value||"p-emptylabel"!==e.label&&0!==e.label.length)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(n){var e=n.instance;return["p-dropdown-panel p-component",{"p-input-filled":"filled"===e.$primevue.config.inputStyle,"p-ripple-disabled":!1===e.$primevue.config.ripple}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:"p-dropdown-filter p-inputtext p-component",filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",item:function(n){var e=n.instance,o=n.state,p=n.option,r=n.focusedOption;return["p-dropdown-item",{"p-highlight":e.isSelected(p),"p-focus":o.focusedOptionIndex===r,"p-disabled":e.isOptionDisabled(p)}]},emptyMessage:"p-dropdown-empty-message"}});export{e as default};
@@ -15,7 +15,7 @@ this.primevue.dropdown.style = (function (BaseStyle) {
15
15
  state = _ref.state;
16
16
  return ['p-dropdown p-component p-inputwrapper', {
17
17
  'p-disabled': props.disabled,
18
- 'p-dropdown-clearable': props.showClear && !props.disabled,
18
+ 'p-dropdown-clearable': props.showClear,
19
19
  'p-focus': state.focused,
20
20
  'p-inputwrapper-filled': instance.hasSelectedOption,
21
21
  'p-inputwrapper-focus': state.focused || state.overlayVisible,
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.dropdown=this.primevue.dropdown||{},this.primevue.dropdown.style=function(n){"use strict";function e(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}return e(primevue.base.style).default.extend({name:"dropdown",css:"\n@layer primevue {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n\n .p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n\n .p-dropdown-label-empty {\n overflow: hidden;\n opacity: 0;\n }\n\n input.p-dropdown-label {\n cursor: default;\n }\n\n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n\n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n\n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n\n .p-dropdown-item-group {\n cursor: auto;\n }\n\n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-dropdown-filter {\n width: 100%;\n }\n\n .p-dropdown-filter-container {\n position: relative;\n }\n\n .p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-fluid .p-dropdown {\n display: flex;\n }\n\n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n",classes:{root:function(n){var e=n.props,o=n.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":e.disabled,"p-dropdown-clearable":e.showClear&&!e.disabled,"p-focus":o.focused,"p-inputwrapper-filled":n.instance.hasSelectedOption,"p-inputwrapper-focus":o.focused||o.overlayVisible,"p-overlay-open":o.overlayVisible}]},input:function(n){var e=n.instance,o=n.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!o.editable&&e.label===o.placeholder,"p-dropdown-label-empty":!(o.editable||e.$slots.value||"p-emptylabel"!==e.label&&0!==e.label.length)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(n){var e=n.instance;return["p-dropdown-panel p-component",{"p-input-filled":"filled"===e.$primevue.config.inputStyle,"p-ripple-disabled":!1===e.$primevue.config.ripple}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:"p-dropdown-filter p-inputtext p-component",filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",item:function(n){var e=n.instance,o=n.state,p=n.option,r=n.focusedOption;return["p-dropdown-item",{"p-highlight":e.isSelected(p),"p-focus":o.focusedOptionIndex===r,"p-disabled":e.isOptionDisabled(p)}]},emptyMessage:"p-dropdown-empty-message"}})}();
1
+ this.primevue=this.primevue||{},this.primevue.dropdown=this.primevue.dropdown||{},this.primevue.dropdown.style=function(n){"use strict";function e(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}return e(primevue.base.style).default.extend({name:"dropdown",css:"\n@layer primevue {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n\n .p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n\n .p-dropdown-label-empty {\n overflow: hidden;\n opacity: 0;\n }\n\n input.p-dropdown-label {\n cursor: default;\n }\n\n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n\n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n\n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n\n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n\n .p-dropdown-item-group {\n cursor: auto;\n }\n\n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .p-dropdown-filter {\n width: 100%;\n }\n\n .p-dropdown-filter-container {\n position: relative;\n }\n\n .p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n\n .p-fluid .p-dropdown {\n display: flex;\n }\n\n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n",classes:{root:function(n){var e=n.props,o=n.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":e.disabled,"p-dropdown-clearable":e.showClear,"p-focus":o.focused,"p-inputwrapper-filled":n.instance.hasSelectedOption,"p-inputwrapper-focus":o.focused||o.overlayVisible,"p-overlay-open":o.overlayVisible}]},input:function(n){var e=n.instance,o=n.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!o.editable&&e.label===o.placeholder,"p-dropdown-label-empty":!(o.editable||e.$slots.value||"p-emptylabel"!==e.label&&0!==e.label.length)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(n){var e=n.instance;return["p-dropdown-panel p-component",{"p-input-filled":"filled"===e.$primevue.config.inputStyle,"p-ripple-disabled":!1===e.$primevue.config.ripple}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:"p-dropdown-filter p-inputtext p-component",filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",item:function(n){var e=n.instance,o=n.state,p=n.option,r=n.focusedOption;return["p-dropdown-item",{"p-highlight":e.isSelected(p),"p-focus":o.focusedOptionIndex===r,"p-disabled":e.isOptionDisabled(p)}]},emptyMessage:"p-dropdown-empty-message"}})}();
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <template v-for="(instance, key) in instanceMap" :key="key">
3
- <DDialog v-model:visible="instance.visible" :_instance="instance" v-bind="instance.options.props" :pt="pt" :unstyled="unstyled" @hide="onDialogHide(instance)" @after-hide="onDialogAfterHide">
3
+ <DDialog v-model:visible="instance.visible" :_instance="instance" v-bind="instance.options.props" @hide="onDialogHide(instance)" @after-hide="onDialogAfterHide">
4
4
  <template v-if="instance.options.templates && instance.options.templates.header" #header>
5
5
  <component v-for="(header, index) in getTemplateItems(instance.options.templates.header)" :is="header" :key="index + '_header'" v-bind="instance.options.emits"></component>
6
6
  </template>
@@ -98,8 +98,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
98
98
  },
99
99
  _instance: instance
100
100
  }, instance.options.props, {
101
- pt: _ctx.pt,
102
- unstyled: _ctx.unstyled,
103
101
  onHide: function onHide($event) {
104
102
  return $options.onDialogHide(instance);
105
103
  },
@@ -129,7 +127,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
129
127
  }), 128))];
130
128
  }),
131
129
  key: "1"
132
- } : undefined]), 1040, ["visible", "onUpdate:visible", "_instance", "pt", "unstyled", "onHide", "onAfterHide"]);
130
+ } : undefined]), 1040, ["visible", "onUpdate:visible", "_instance", "onHide", "onAfterHide"]);
133
131
  }), 128);
134
132
  }
135
133
 
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/dialog"),n=require("primevue/dynamicdialogeventbus"),t=require("primevue/utils"),o=require("primevue/basecomponent"),i=require("primevue/dynamicdialog/style"),r=require("vue");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(e),a=s(n),c={name:"DynamicDialog",extends:{name:"BaseDynamicDialog",extends:s(o).default,props:{},style:s(i).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{instanceMap:{}}},openListener:null,closeListener:null,currentInstance:null,mounted:function(){var e=this;this.openListener=function(n){var o=n.instance,i=t.UniqueComponentId()+"_dynamic_dialog";o.visible=!0,o.key=i,e.instanceMap[i]=o},this.closeListener=function(n){var t=n.params,o=e.instanceMap[n.instance.key];o&&(o.visible=!1,o.options.onClose&&o.options.onClose({data:t,type:"config-close"}),e.currentInstance=o)},a.default.on("open",this.openListener),a.default.on("close",this.closeListener)},beforeUnmount:function(){a.default.off("open",this.openListener),a.default.off("close",this.closeListener)},methods:{onDialogHide:function(e){!this.currentInstance&&e.options.onClose&&e.options.onClose({type:"dialog-close"})},onDialogAfterHide:function(){this.currentInstance&&delete this.currentInstance,this.currentInstance=null},getTemplateItems:function(e){return Array.isArray(e)?e:[e]}},components:{DDialog:l.default}};c.render=function(e,n,t,o,i,s){var l=r.resolveComponent("DDialog");return r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.instanceMap,(function(n,t){return r.openBlock(),r.createBlock(l,r.mergeProps({key:t,visible:n.visible,"onUpdate:visible":function(e){return n.visible=e},_instance:n},n.options.props,{pt:e.pt,unstyled:e.unstyled,onHide:function(e){return s.onDialogHide(n)},onAfterHide:s.onDialogAfterHide}),r.createSlots({default:r.withCtx((function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.content),r.normalizeProps(r.guardReactiveProps(n.options.emits)),null,16))]})),_:2},[n.options.templates&&n.options.templates.header?{name:"header",fn:r.withCtx((function(){return[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.getTemplateItems(n.options.templates.header),(function(e,t){return r.openBlock(),r.createBlock(r.resolveDynamicComponent(e),r.mergeProps({key:t+"_header"},n.options.emits),null,16)})),128))]})),key:"0"}:void 0,n.options.templates&&n.options.templates.footer?{name:"footer",fn:r.withCtx((function(){return[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.getTemplateItems(n.options.templates.footer),(function(e,t){return r.openBlock(),r.createBlock(r.resolveDynamicComponent(e),r.mergeProps({key:t+"_footer"},n.options.emits),null,16)})),128))]})),key:"1"}:void 0]),1040,["visible","onUpdate:visible","_instance","pt","unstyled","onHide","onAfterHide"])})),128)},module.exports=c;
1
+ "use strict";var e=require("primevue/dialog"),n=require("primevue/dynamicdialogeventbus"),t=require("primevue/utils"),o=require("primevue/basecomponent"),i=require("primevue/dynamicdialog/style"),r=require("vue");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(e),l=s(n),c={name:"DynamicDialog",extends:{name:"BaseDynamicDialog",extends:s(o).default,props:{},style:s(i).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{instanceMap:{}}},openListener:null,closeListener:null,currentInstance:null,mounted:function(){var e=this;this.openListener=function(n){var o=n.instance,i=t.UniqueComponentId()+"_dynamic_dialog";o.visible=!0,o.key=i,e.instanceMap[i]=o},this.closeListener=function(n){var t=n.params,o=e.instanceMap[n.instance.key];o&&(o.visible=!1,o.options.onClose&&o.options.onClose({data:t,type:"config-close"}),e.currentInstance=o)},l.default.on("open",this.openListener),l.default.on("close",this.closeListener)},beforeUnmount:function(){l.default.off("open",this.openListener),l.default.off("close",this.closeListener)},methods:{onDialogHide:function(e){!this.currentInstance&&e.options.onClose&&e.options.onClose({type:"dialog-close"})},onDialogAfterHide:function(){this.currentInstance&&delete this.currentInstance,this.currentInstance=null},getTemplateItems:function(e){return Array.isArray(e)?e:[e]}},components:{DDialog:a.default}};c.render=function(e,n,t,o,i,s){var a=r.resolveComponent("DDialog");return r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.instanceMap,(function(e,n){return r.openBlock(),r.createBlock(a,r.mergeProps({key:n,visible:e.visible,"onUpdate:visible":function(n){return e.visible=n},_instance:e},e.options.props,{onHide:function(n){return s.onDialogHide(e)},onAfterHide:s.onDialogAfterHide}),r.createSlots({default:r.withCtx((function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.content),r.normalizeProps(r.guardReactiveProps(e.options.emits)),null,16))]})),_:2},[e.options.templates&&e.options.templates.header?{name:"header",fn:r.withCtx((function(){return[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.getTemplateItems(e.options.templates.header),(function(n,t){return r.openBlock(),r.createBlock(r.resolveDynamicComponent(n),r.mergeProps({key:t+"_header"},e.options.emits),null,16)})),128))]})),key:"0"}:void 0,e.options.templates&&e.options.templates.footer?{name:"footer",fn:r.withCtx((function(){return[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.getTemplateItems(e.options.templates.footer),(function(n,t){return r.openBlock(),r.createBlock(r.resolveDynamicComponent(n),r.mergeProps({key:t+"_footer"},e.options.emits),null,16)})),128))]})),key:"1"}:void 0]),1040,["visible","onUpdate:visible","_instance","onHide","onAfterHide"])})),128)},module.exports=c;