primevue 3.42.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 (552) hide show
  1. package/accordion/Accordion.d.ts +8 -0
  2. package/accordion/Accordion.vue +1 -0
  3. package/accordion/accordion.cjs.js +3 -2
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +3 -2
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +3 -2
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/AccordionTab.d.ts +6 -3
  10. package/animateonscroll/animateonscroll.cjs.js +2 -2
  11. package/animateonscroll/animateonscroll.cjs.min.js +1 -1
  12. package/animateonscroll/animateonscroll.esm.js +2 -2
  13. package/animateonscroll/animateonscroll.esm.min.js +1 -1
  14. package/animateonscroll/animateonscroll.js +2 -2
  15. package/animateonscroll/animateonscroll.min.js +1 -1
  16. package/api/api.cjs.js +6 -6
  17. package/api/api.cjs.min.js +1 -1
  18. package/api/api.esm.js +6 -6
  19. package/api/api.esm.min.js +1 -1
  20. package/api/api.js +6 -6
  21. package/api/api.min.js +1 -1
  22. package/autocomplete/AutoComplete.d.ts +25 -2
  23. package/autocomplete/AutoComplete.vue +2 -1
  24. package/autocomplete/autocomplete.cjs.js +5 -3
  25. package/autocomplete/autocomplete.cjs.min.js +1 -1
  26. package/autocomplete/autocomplete.esm.js +5 -3
  27. package/autocomplete/autocomplete.esm.min.js +1 -1
  28. package/autocomplete/autocomplete.js +5 -3
  29. package/autocomplete/autocomplete.min.js +1 -1
  30. package/avatar/Avatar.d.ts +6 -3
  31. package/avatar/Avatar.vue +4 -11
  32. package/avatar/avatar.cjs.js +4 -11
  33. package/avatar/avatar.cjs.min.js +1 -1
  34. package/avatar/avatar.esm.js +4 -11
  35. package/avatar/avatar.esm.min.js +1 -1
  36. package/avatar/avatar.js +4 -11
  37. package/avatar/avatar.min.js +1 -1
  38. package/badge/Badge.d.ts +8 -4
  39. package/badgedirective/BadgeDirective.d.ts +8 -0
  40. package/badgedirective/badgedirective.cjs.js +2 -2
  41. package/badgedirective/badgedirective.cjs.min.js +1 -1
  42. package/badgedirective/badgedirective.esm.js +2 -2
  43. package/badgedirective/badgedirective.esm.min.js +1 -1
  44. package/badgedirective/badgedirective.js +2 -2
  45. package/badgedirective/badgedirective.min.js +1 -1
  46. package/base/style/basestyle.cjs.js +2 -2
  47. package/base/style/basestyle.cjs.min.js +1 -1
  48. package/base/style/basestyle.esm.js +2 -2
  49. package/base/style/basestyle.esm.min.js +1 -1
  50. package/base/style/basestyle.js +2 -2
  51. package/base/style/basestyle.min.js +1 -1
  52. package/basecomponent/BaseComponent.vue +16 -1
  53. package/basecomponent/basecomponent.cjs.js +14 -5
  54. package/basecomponent/basecomponent.cjs.min.js +1 -1
  55. package/basecomponent/basecomponent.esm.js +14 -5
  56. package/basecomponent/basecomponent.esm.min.js +1 -1
  57. package/basecomponent/basecomponent.js +14 -5
  58. package/basecomponent/basecomponent.min.js +1 -1
  59. package/basecomponent/style/basecomponentstyle.cjs.js +2 -2
  60. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  61. package/basecomponent/style/basecomponentstyle.esm.js +2 -2
  62. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  63. package/basecomponent/style/basecomponentstyle.js +2 -2
  64. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  65. package/basedirective/basedirective.cjs.js +2 -3
  66. package/basedirective/basedirective.cjs.min.js +1 -1
  67. package/basedirective/basedirective.esm.js +2 -3
  68. package/basedirective/basedirective.esm.min.js +1 -1
  69. package/basedirective/basedirective.js +2 -3
  70. package/basedirective/basedirective.min.js +1 -1
  71. package/blockui/BlockUI.d.ts +8 -0
  72. package/breadcrumb/Breadcrumb.d.ts +8 -0
  73. package/button/Button.d.ts +10 -10
  74. package/button/Button.vue +1 -5
  75. package/button/button.cjs.js +1 -6
  76. package/button/button.cjs.min.js +1 -1
  77. package/button/button.esm.js +1 -6
  78. package/button/button.esm.min.js +1 -1
  79. package/button/button.js +1 -6
  80. package/button/button.min.js +1 -1
  81. package/button/style/buttonstyle.cjs.js +2 -2
  82. package/button/style/buttonstyle.cjs.min.js +1 -1
  83. package/button/style/buttonstyle.esm.js +2 -2
  84. package/button/style/buttonstyle.esm.min.js +1 -1
  85. package/button/style/buttonstyle.js +2 -2
  86. package/button/style/buttonstyle.min.js +1 -1
  87. package/calendar/Calendar.d.ts +37 -11
  88. package/calendar/Calendar.vue +9 -5
  89. package/calendar/calendar.cjs.js +10 -8
  90. package/calendar/calendar.cjs.min.js +1 -1
  91. package/calendar/calendar.esm.js +10 -8
  92. package/calendar/calendar.esm.min.js +1 -1
  93. package/calendar/calendar.js +10 -8
  94. package/calendar/calendar.min.js +1 -1
  95. package/carousel/Carousel.d.ts +8 -0
  96. package/carousel/Carousel.vue +4 -2
  97. package/carousel/carousel.cjs.js +5 -3
  98. package/carousel/carousel.cjs.min.js +1 -1
  99. package/carousel/carousel.esm.js +5 -3
  100. package/carousel/carousel.esm.min.js +1 -1
  101. package/carousel/carousel.js +5 -3
  102. package/carousel/carousel.min.js +1 -1
  103. package/cascadeselect/CascadeSelect.d.ts +8 -0
  104. package/cascadeselect/CascadeSelect.vue +1 -1
  105. package/cascadeselect/CascadeSelectSub.vue +4 -1
  106. package/cascadeselect/cascadeselect.cjs.js +7 -4
  107. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  108. package/cascadeselect/cascadeselect.esm.js +7 -4
  109. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  110. package/cascadeselect/cascadeselect.js +7 -4
  111. package/cascadeselect/cascadeselect.min.js +1 -1
  112. package/chart/Chart.d.ts +8 -0
  113. package/chart/Chart.vue +1 -1
  114. package/chart/chart.cjs.js +4 -3
  115. package/chart/chart.cjs.min.js +1 -1
  116. package/chart/chart.esm.js +4 -3
  117. package/chart/chart.esm.min.js +1 -1
  118. package/chart/chart.js +4 -3
  119. package/chart/chart.min.js +1 -1
  120. package/chart/style/chartstyle.cjs.js +6 -2
  121. package/chart/style/chartstyle.cjs.min.js +1 -1
  122. package/chart/style/chartstyle.esm.js +6 -2
  123. package/chart/style/chartstyle.esm.min.js +1 -1
  124. package/chart/style/chartstyle.js +6 -2
  125. package/chart/style/chartstyle.min.js +1 -1
  126. package/checkbox/Checkbox.d.ts +8 -0
  127. package/checkbox/checkbox.cjs.js +2 -2
  128. package/checkbox/checkbox.cjs.min.js +1 -1
  129. package/checkbox/checkbox.esm.js +2 -2
  130. package/checkbox/checkbox.esm.min.js +1 -1
  131. package/checkbox/checkbox.js +2 -2
  132. package/checkbox/checkbox.min.js +1 -1
  133. package/chip/Chip.d.ts +8 -0
  134. package/chips/Chips.d.ts +8 -0
  135. package/chips/chips.cjs.js +2 -2
  136. package/chips/chips.cjs.min.js +1 -1
  137. package/chips/chips.esm.js +2 -2
  138. package/chips/chips.esm.min.js +1 -1
  139. package/chips/chips.js +2 -2
  140. package/chips/chips.min.js +1 -1
  141. package/colorpicker/ColorPicker.d.ts +8 -0
  142. package/column/Column.d.ts +31 -13
  143. package/columngroup/ColumnGroup.d.ts +6 -3
  144. package/config/config.cjs.js +3 -3
  145. package/config/config.cjs.min.js +1 -1
  146. package/config/config.esm.js +3 -3
  147. package/config/config.esm.min.js +1 -1
  148. package/config/config.js +3 -3
  149. package/config/config.min.js +1 -1
  150. package/confirmdialog/ConfirmDialog.d.ts +24 -2
  151. package/confirmpopup/ConfirmPopup.d.ts +24 -2
  152. package/confirmpopup/confirmpopup.cjs.js +2 -2
  153. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  154. package/confirmpopup/confirmpopup.esm.js +2 -2
  155. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  156. package/confirmpopup/confirmpopup.js +2 -2
  157. package/confirmpopup/confirmpopup.min.js +1 -1
  158. package/contextmenu/ContextMenu.d.ts +8 -0
  159. package/contextmenu/contextmenu.cjs.js +2 -2
  160. package/contextmenu/contextmenu.cjs.min.js +1 -1
  161. package/contextmenu/contextmenu.esm.js +2 -2
  162. package/contextmenu/contextmenu.esm.min.js +1 -1
  163. package/contextmenu/contextmenu.js +2 -2
  164. package/contextmenu/contextmenu.min.js +1 -1
  165. package/core/core.js +308 -229
  166. package/core/core.min.js +27 -27
  167. package/datatable/BodyCell.vue +1 -0
  168. package/datatable/ColumnFilter.vue +1 -0
  169. package/datatable/DataTable.d.ts +23 -1
  170. package/datatable/FooterCell.vue +1 -0
  171. package/datatable/HeaderCell.vue +1 -0
  172. package/datatable/HeaderCheckbox.vue +1 -0
  173. package/datatable/RowCheckbox.vue +2 -0
  174. package/datatable/RowRadioButton.vue +1 -0
  175. package/datatable/TableBody.vue +1 -0
  176. package/datatable/TableFooter.vue +2 -0
  177. package/datatable/TableHeader.vue +3 -0
  178. package/datatable/datatable.cjs.js +34 -20
  179. package/datatable/datatable.cjs.min.js +1 -1
  180. package/datatable/datatable.esm.js +34 -20
  181. package/datatable/datatable.esm.min.js +1 -1
  182. package/datatable/datatable.js +34 -20
  183. package/datatable/datatable.min.js +1 -1
  184. package/dataview/DataView.d.ts +24 -1
  185. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +8 -0
  186. package/deferredcontent/DeferredContent.d.ts +8 -0
  187. package/dialog/Dialog.d.ts +20 -16
  188. package/dialog/dialog.cjs.js +2 -2
  189. package/dialog/dialog.cjs.min.js +1 -1
  190. package/dialog/dialog.esm.js +2 -2
  191. package/dialog/dialog.esm.min.js +1 -1
  192. package/dialog/dialog.js +2 -2
  193. package/dialog/dialog.min.js +1 -1
  194. package/divider/Divider.d.ts +8 -0
  195. package/dock/Dock.d.ts +8 -0
  196. package/dropdown/Dropdown.d.ts +28 -24
  197. package/dropdown/Dropdown.vue +5 -3
  198. package/dropdown/dropdown.cjs.js +8 -7
  199. package/dropdown/dropdown.cjs.min.js +1 -1
  200. package/dropdown/dropdown.esm.js +8 -7
  201. package/dropdown/dropdown.esm.min.js +1 -1
  202. package/dropdown/dropdown.js +8 -7
  203. package/dropdown/dropdown.min.js +1 -1
  204. package/dropdown/style/dropdownstyle.cjs.js +1 -1
  205. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  206. package/dropdown/style/dropdownstyle.esm.js +1 -1
  207. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  208. package/dropdown/style/dropdownstyle.js +1 -1
  209. package/dropdown/style/dropdownstyle.min.js +1 -1
  210. package/dynamicdialog/DynamicDialog.vue +1 -1
  211. package/dynamicdialog/dynamicdialog.cjs.js +1 -3
  212. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  213. package/dynamicdialog/dynamicdialog.esm.js +1 -3
  214. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  215. package/dynamicdialog/dynamicdialog.js +1 -3
  216. package/dynamicdialog/dynamicdialog.min.js +1 -1
  217. package/editor/Editor.d.ts +8 -0
  218. package/editor/editor.cjs.js +2 -2
  219. package/editor/editor.cjs.min.js +1 -1
  220. package/editor/editor.esm.js +2 -2
  221. package/editor/editor.esm.min.js +1 -1
  222. package/editor/editor.js +2 -2
  223. package/editor/editor.min.js +1 -1
  224. package/fieldset/Fieldset.d.ts +8 -0
  225. package/fieldset/Fieldset.vue +1 -1
  226. package/fieldset/fieldset.cjs.js +3 -3
  227. package/fieldset/fieldset.cjs.min.js +1 -1
  228. package/fieldset/fieldset.esm.js +3 -3
  229. package/fieldset/fieldset.esm.min.js +1 -1
  230. package/fieldset/fieldset.js +3 -3
  231. package/fieldset/fieldset.min.js +1 -1
  232. package/fileupload/FileUpload.d.ts +30 -6
  233. package/galleria/BaseGalleria.vue +8 -0
  234. package/galleria/Galleria.d.ts +16 -0
  235. package/galleria/Galleria.vue +1 -1
  236. package/galleria/GalleriaContent.vue +11 -1
  237. package/galleria/GalleriaItem.vue +72 -3
  238. package/galleria/galleria.cjs.js +93 -13
  239. package/galleria/galleria.cjs.min.js +1 -1
  240. package/galleria/galleria.esm.js +93 -13
  241. package/galleria/galleria.esm.min.js +1 -1
  242. package/galleria/galleria.js +93 -13
  243. package/galleria/galleria.min.js +1 -1
  244. package/image/Image.d.ts +8 -0
  245. package/image/Image.vue +4 -1
  246. package/image/image.cjs.js +20 -15
  247. package/image/image.cjs.min.js +1 -1
  248. package/image/image.esm.js +20 -15
  249. package/image/image.esm.min.js +1 -1
  250. package/image/image.js +20 -15
  251. package/image/image.min.js +1 -1
  252. package/inlinemessage/InlineMessage.d.ts +8 -0
  253. package/inplace/Inplace.d.ts +23 -1
  254. package/inplace/inplace.cjs.js +2 -2
  255. package/inplace/inplace.cjs.min.js +1 -1
  256. package/inplace/inplace.esm.js +2 -2
  257. package/inplace/inplace.esm.min.js +1 -1
  258. package/inplace/inplace.js +2 -2
  259. package/inplace/inplace.min.js +1 -1
  260. package/inputgroup/InputGroup.d.ts +8 -0
  261. package/inputgroupaddon/InputGroupAddon.d.ts +8 -0
  262. package/inputmask/InputMask.d.ts +8 -0
  263. package/inputnumber/InputNumber.d.ts +30 -12
  264. package/inputnumber/InputNumber.vue +10 -5
  265. package/inputnumber/inputnumber.cjs.js +22 -23
  266. package/inputnumber/inputnumber.cjs.min.js +1 -1
  267. package/inputnumber/inputnumber.esm.js +22 -23
  268. package/inputnumber/inputnumber.esm.min.js +1 -1
  269. package/inputnumber/inputnumber.js +22 -23
  270. package/inputnumber/inputnumber.min.js +1 -1
  271. package/inputswitch/InputSwitch.d.ts +8 -0
  272. package/inputswitch/inputswitch.cjs.js +2 -2
  273. package/inputswitch/inputswitch.cjs.min.js +1 -1
  274. package/inputswitch/inputswitch.esm.js +2 -2
  275. package/inputswitch/inputswitch.esm.min.js +1 -1
  276. package/inputswitch/inputswitch.js +2 -2
  277. package/inputswitch/inputswitch.min.js +1 -1
  278. package/inputtext/InputText.d.ts +8 -4
  279. package/inputtext/InputText.vue +9 -9
  280. package/inputtext/inputtext.cjs.js +9 -9
  281. package/inputtext/inputtext.cjs.min.js +1 -1
  282. package/inputtext/inputtext.esm.js +9 -9
  283. package/inputtext/inputtext.esm.min.js +1 -1
  284. package/inputtext/inputtext.js +9 -9
  285. package/inputtext/inputtext.min.js +1 -1
  286. package/knob/Knob.d.ts +8 -0
  287. package/listbox/Listbox.d.ts +8 -0
  288. package/listbox/listbox.cjs.js +2 -2
  289. package/listbox/listbox.cjs.min.js +1 -1
  290. package/listbox/listbox.esm.js +2 -2
  291. package/listbox/listbox.esm.min.js +1 -1
  292. package/listbox/listbox.js +2 -2
  293. package/listbox/listbox.min.js +1 -1
  294. package/megamenu/MegaMenu.d.ts +8 -0
  295. package/menu/Menu.d.ts +8 -0
  296. package/menu/menu.cjs.js +2 -2
  297. package/menu/menu.cjs.min.js +1 -1
  298. package/menu/menu.esm.js +2 -2
  299. package/menu/menu.esm.min.js +1 -1
  300. package/menu/menu.js +2 -2
  301. package/menu/menu.min.js +1 -1
  302. package/menubar/Menubar.d.ts +8 -0
  303. package/menubar/menubar.cjs.js +2 -2
  304. package/menubar/menubar.cjs.min.js +1 -1
  305. package/menubar/menubar.esm.js +2 -2
  306. package/menubar/menubar.esm.min.js +1 -1
  307. package/menubar/menubar.js +2 -2
  308. package/menubar/menubar.min.js +1 -1
  309. package/message/Message.d.ts +17 -13
  310. package/message/message.cjs.js +2 -2
  311. package/message/message.cjs.min.js +1 -1
  312. package/message/message.esm.js +2 -2
  313. package/message/message.esm.min.js +1 -1
  314. package/message/message.js +2 -2
  315. package/message/message.min.js +1 -1
  316. package/multiselect/MultiSelect.d.ts +8 -0
  317. package/multiselect/multiselect.cjs.js +4 -4
  318. package/multiselect/multiselect.cjs.min.js +1 -1
  319. package/multiselect/multiselect.esm.js +4 -4
  320. package/multiselect/multiselect.esm.min.js +1 -1
  321. package/multiselect/multiselect.js +4 -4
  322. package/multiselect/multiselect.min.js +1 -1
  323. package/orderlist/OrderList.d.ts +27 -5
  324. package/orderlist/OrderList.vue +4 -4
  325. package/orderlist/orderlist.cjs.js +18 -18
  326. package/orderlist/orderlist.cjs.min.js +1 -1
  327. package/orderlist/orderlist.esm.js +18 -18
  328. package/orderlist/orderlist.esm.min.js +1 -1
  329. package/orderlist/orderlist.js +18 -18
  330. package/orderlist/orderlist.min.js +1 -1
  331. package/organizationchart/OrganizationChart.d.ts +8 -0
  332. package/organizationchart/organizationchart.cjs.js +2 -2
  333. package/organizationchart/organizationchart.cjs.min.js +1 -1
  334. package/organizationchart/organizationchart.esm.js +2 -2
  335. package/organizationchart/organizationchart.esm.min.js +1 -1
  336. package/organizationchart/organizationchart.js +2 -2
  337. package/organizationchart/organizationchart.min.js +1 -1
  338. package/overlaypanel/OverlayPanel.d.ts +8 -0
  339. package/overlaypanel/overlaypanel.cjs.js +2 -2
  340. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  341. package/overlaypanel/overlaypanel.esm.js +2 -2
  342. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  343. package/overlaypanel/overlaypanel.js +2 -2
  344. package/overlaypanel/overlaypanel.min.js +1 -1
  345. package/package.json +1 -1
  346. package/paginator/Paginator.d.ts +44 -26
  347. package/paginator/style/paginatorstyle.cjs.js +2 -2
  348. package/paginator/style/paginatorstyle.cjs.min.js +1 -1
  349. package/paginator/style/paginatorstyle.esm.js +2 -2
  350. package/paginator/style/paginatorstyle.esm.min.js +1 -1
  351. package/paginator/style/paginatorstyle.js +2 -2
  352. package/paginator/style/paginatorstyle.min.js +1 -1
  353. package/panel/Panel.d.ts +8 -0
  354. package/panel/Panel.vue +1 -1
  355. package/panel/panel.cjs.js +3 -3
  356. package/panel/panel.cjs.min.js +1 -1
  357. package/panel/panel.esm.js +3 -3
  358. package/panel/panel.esm.min.js +1 -1
  359. package/panel/panel.js +3 -3
  360. package/panel/panel.min.js +1 -1
  361. package/panelmenu/PanelMenu.d.ts +8 -0
  362. package/panelmenu/panelmenu.cjs.js +2 -2
  363. package/panelmenu/panelmenu.cjs.min.js +1 -1
  364. package/panelmenu/panelmenu.esm.js +2 -2
  365. package/panelmenu/panelmenu.esm.min.js +1 -1
  366. package/panelmenu/panelmenu.js +2 -2
  367. package/panelmenu/panelmenu.min.js +1 -1
  368. package/passthrough/index.cjs.js +2 -2
  369. package/passthrough/index.cjs.min.js +1 -1
  370. package/passthrough/index.esm.js +2 -2
  371. package/passthrough/index.esm.min.js +1 -1
  372. package/passthrough/index.js +2 -2
  373. package/passthrough/index.min.js +1 -1
  374. package/passthrough/tailwind/index.cjs.js +168 -124
  375. package/passthrough/tailwind/index.cjs.min.js +1 -1
  376. package/passthrough/tailwind/index.esm.js +168 -124
  377. package/passthrough/tailwind/index.esm.min.js +1 -1
  378. package/passthrough/tailwind/index.js +168 -124
  379. package/passthrough/tailwind/index.min.js +1 -1
  380. package/password/Password.d.ts +25 -3
  381. package/password/Password.vue +2 -1
  382. package/password/password.cjs.js +5 -6
  383. package/password/password.cjs.min.js +1 -1
  384. package/password/password.esm.js +5 -6
  385. package/password/password.esm.min.js +1 -1
  386. package/password/password.js +5 -6
  387. package/password/password.min.js +1 -1
  388. package/picklist/PickList.d.ts +35 -13
  389. package/picklist/PickList.vue +48 -12
  390. package/picklist/picklist.cjs.js +49 -37
  391. package/picklist/picklist.cjs.min.js +1 -1
  392. package/picklist/picklist.esm.js +49 -37
  393. package/picklist/picklist.esm.min.js +1 -1
  394. package/picklist/picklist.js +49 -37
  395. package/picklist/picklist.min.js +1 -1
  396. package/progressbar/ProgressBar.d.ts +10 -6
  397. package/progressspinner/ProgressSpinner.d.ts +8 -0
  398. package/radiobutton/RadioButton.d.ts +8 -0
  399. package/radiobutton/radiobutton.cjs.js +2 -2
  400. package/radiobutton/radiobutton.cjs.min.js +1 -1
  401. package/radiobutton/radiobutton.esm.js +2 -2
  402. package/radiobutton/radiobutton.esm.min.js +1 -1
  403. package/radiobutton/radiobutton.js +2 -2
  404. package/radiobutton/radiobutton.min.js +1 -1
  405. package/rating/Rating.d.ts +8 -0
  406. package/row/Row.d.ts +6 -3
  407. package/scrollpanel/ScrollPanel.d.ts +8 -0
  408. package/scrollpanel/ScrollPanel.vue +8 -1
  409. package/scrollpanel/scrollpanel.cjs.js +14 -5
  410. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  411. package/scrollpanel/scrollpanel.esm.js +14 -5
  412. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  413. package/scrollpanel/scrollpanel.js +14 -5
  414. package/scrollpanel/scrollpanel.min.js +1 -1
  415. package/scrolltop/ScrollTop.d.ts +8 -0
  416. package/selectbutton/SelectButton.d.ts +8 -0
  417. package/sidebar/Sidebar.d.ts +8 -0
  418. package/sidebar/sidebar.cjs.js +2 -2
  419. package/sidebar/sidebar.cjs.min.js +1 -1
  420. package/sidebar/sidebar.esm.js +2 -2
  421. package/sidebar/sidebar.esm.min.js +1 -1
  422. package/sidebar/sidebar.js +2 -2
  423. package/sidebar/sidebar.min.js +1 -1
  424. package/skeleton/Skeleton.d.ts +8 -0
  425. package/slider/Slider.d.ts +8 -0
  426. package/speeddial/SpeedDial.d.ts +23 -1
  427. package/speeddial/speeddial.cjs.js +2 -2
  428. package/speeddial/speeddial.cjs.min.js +1 -1
  429. package/speeddial/speeddial.esm.js +2 -2
  430. package/speeddial/speeddial.esm.min.js +1 -1
  431. package/speeddial/speeddial.js +2 -2
  432. package/speeddial/speeddial.min.js +1 -1
  433. package/speeddial/style/speeddialstyle.cjs.js +2 -2
  434. package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
  435. package/speeddial/style/speeddialstyle.esm.js +2 -2
  436. package/speeddial/style/speeddialstyle.esm.min.js +1 -1
  437. package/speeddial/style/speeddialstyle.js +2 -2
  438. package/speeddial/style/speeddialstyle.min.js +1 -1
  439. package/splitbutton/SplitButton.d.ts +24 -2
  440. package/splitbutton/SplitButton.vue +2 -2
  441. package/splitbutton/splitbutton.cjs.js +4 -4
  442. package/splitbutton/splitbutton.cjs.min.js +1 -1
  443. package/splitbutton/splitbutton.esm.js +4 -4
  444. package/splitbutton/splitbutton.esm.min.js +1 -1
  445. package/splitbutton/splitbutton.js +4 -4
  446. package/splitbutton/splitbutton.min.js +1 -1
  447. package/splitbutton/style/splitbuttonstyle.cjs.js +3 -3
  448. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  449. package/splitbutton/style/splitbuttonstyle.esm.js +3 -3
  450. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  451. package/splitbutton/style/splitbuttonstyle.js +3 -3
  452. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  453. package/splitter/Splitter.d.ts +8 -0
  454. package/splitterpanel/SplitterPanel.d.ts +8 -0
  455. package/steps/Steps.d.ts +8 -0
  456. package/tabmenu/TabMenu.d.ts +8 -0
  457. package/tabpanel/TabPanel.d.ts +8 -5
  458. package/tabview/TabView.vue +1 -0
  459. package/tabview/tabview.cjs.js +3 -2
  460. package/tabview/tabview.cjs.min.js +1 -1
  461. package/tabview/tabview.esm.js +3 -2
  462. package/tabview/tabview.esm.min.js +1 -1
  463. package/tabview/tabview.js +3 -2
  464. package/tabview/tabview.min.js +1 -1
  465. package/tag/Tag.d.ts +8 -0
  466. package/terminal/Terminal.d.ts +8 -0
  467. package/textarea/Textarea.d.ts +8 -0
  468. package/tieredmenu/TieredMenu.d.ts +18 -14
  469. package/tieredmenu/tieredmenu.cjs.js +2 -2
  470. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  471. package/tieredmenu/tieredmenu.esm.js +2 -2
  472. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  473. package/tieredmenu/tieredmenu.js +2 -2
  474. package/tieredmenu/tieredmenu.min.js +1 -1
  475. package/timeline/Timeline.d.ts +8 -0
  476. package/toast/Toast.d.ts +8 -0
  477. package/toast/style/toaststyle.cjs.js +2 -2
  478. package/toast/style/toaststyle.cjs.min.js +1 -1
  479. package/toast/style/toaststyle.esm.js +2 -2
  480. package/toast/style/toaststyle.esm.min.js +1 -1
  481. package/toast/style/toaststyle.js +2 -2
  482. package/toast/style/toaststyle.min.js +1 -1
  483. package/toast/toast.cjs.js +4 -4
  484. package/toast/toast.cjs.min.js +1 -1
  485. package/toast/toast.esm.js +4 -4
  486. package/toast/toast.esm.min.js +1 -1
  487. package/toast/toast.js +4 -4
  488. package/toast/toast.min.js +1 -1
  489. package/togglebutton/ToggleButton.d.ts +8 -0
  490. package/togglebutton/togglebutton.cjs.js +2 -2
  491. package/togglebutton/togglebutton.cjs.min.js +1 -1
  492. package/togglebutton/togglebutton.esm.js +2 -2
  493. package/togglebutton/togglebutton.esm.min.js +1 -1
  494. package/togglebutton/togglebutton.js +2 -2
  495. package/togglebutton/togglebutton.min.js +1 -1
  496. package/toolbar/Toolbar.d.ts +8 -0
  497. package/tooltip/Tooltip.d.ts +8 -0
  498. package/tree/Tree.d.ts +46 -22
  499. package/tree/Tree.vue +3 -1
  500. package/tree/tree.cjs.js +9 -5
  501. package/tree/tree.cjs.min.js +1 -1
  502. package/tree/tree.esm.js +9 -5
  503. package/tree/tree.esm.min.js +1 -1
  504. package/tree/tree.js +9 -5
  505. package/tree/tree.min.js +1 -1
  506. package/treeselect/TreeSelect.d.ts +25 -3
  507. package/treeselect/treeselect.cjs.js +4 -4
  508. package/treeselect/treeselect.cjs.min.js +1 -1
  509. package/treeselect/treeselect.esm.js +4 -4
  510. package/treeselect/treeselect.esm.min.js +1 -1
  511. package/treeselect/treeselect.js +4 -4
  512. package/treeselect/treeselect.min.js +1 -1
  513. package/treetable/BodyCell.vue +3 -1
  514. package/treetable/FooterCell.vue +1 -0
  515. package/treetable/HeaderCell.vue +1 -0
  516. package/treetable/TreeTable.d.ts +23 -1
  517. package/treetable/TreeTable.vue +3 -1
  518. package/treetable/treetable.cjs.js +19 -13
  519. package/treetable/treetable.cjs.min.js +1 -1
  520. package/treetable/treetable.esm.js +19 -13
  521. package/treetable/treetable.esm.min.js +1 -1
  522. package/treetable/treetable.js +19 -13
  523. package/treetable/treetable.min.js +1 -1
  524. package/tristatecheckbox/TriStateCheckbox.d.ts +8 -0
  525. package/tristatecheckbox/tristatecheckbox.cjs.js +2 -2
  526. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  527. package/tristatecheckbox/tristatecheckbox.esm.js +2 -2
  528. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  529. package/tristatecheckbox/tristatecheckbox.js +2 -2
  530. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  531. package/usestyle/usestyle.cjs.js +2 -2
  532. package/usestyle/usestyle.cjs.min.js +1 -1
  533. package/usestyle/usestyle.esm.js +2 -2
  534. package/usestyle/usestyle.esm.min.js +1 -1
  535. package/usestyle/usestyle.js +2 -2
  536. package/usestyle/usestyle.min.js +1 -1
  537. package/utils/Utils.d.ts +1 -0
  538. package/utils/utils.cjs.js +27 -3
  539. package/utils/utils.cjs.min.js +1 -1
  540. package/utils/utils.esm.js +27 -3
  541. package/utils/utils.esm.min.js +1 -1
  542. package/utils/utils.js +27 -3
  543. package/utils/utils.min.js +1 -1
  544. package/virtualscroller/VirtualScroller.d.ts +8 -0
  545. package/virtualscroller/VirtualScroller.vue +1 -1
  546. package/virtualscroller/virtualscroller.cjs.js +5 -5
  547. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  548. package/virtualscroller/virtualscroller.esm.js +5 -5
  549. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  550. package/virtualscroller/virtualscroller.js +5 -5
  551. package/virtualscroller/virtualscroller.min.js +1 -1
  552. package/web-types.json +1 -1
@@ -31,11 +31,34 @@ export interface DataViewPassThroughMethodOptions {
31
31
  * Defines current inline state.
32
32
  */
33
33
  state: DataViewState;
34
+ /**
35
+ * Defines valid attributes.
36
+ */
37
+ attrs: any;
38
+ /**
39
+ * Defines parent options.
40
+ */
41
+ parent: any;
34
42
  /**
35
43
  * Defines passthrough(pt) options in global config.
36
44
  */
37
45
  global: object | undefined;
38
46
  }
47
+
48
+ /**
49
+ * Custom shared passthrough(pt) option method.
50
+ */
51
+ export interface DataViewSharedPassThroughMethodOptions {
52
+ /**
53
+ * Defines valid properties.
54
+ */
55
+ props: DataViewProps;
56
+ /**
57
+ * Defines current inline state.
58
+ */
59
+ state: DataViewState;
60
+ }
61
+
39
62
  /**
40
63
  * Custom page event.
41
64
  * @see {@link DataViewEmits.page}
@@ -76,7 +99,7 @@ export interface DataViewPassThroughOptions {
76
99
  * Used to pass attributes to the Paginator component.
77
100
  * @see {@link PaginatorPassThroughOptionType}
78
101
  */
79
- paginator?: PaginatorPassThroughOptionType;
102
+ paginator?: PaginatorPassThroughOptionType<DataViewSharedPassThroughMethodOptions>;
80
103
  /**
81
104
  * Used to pass attributes to the content's DOM element.
82
105
  */
@@ -35,6 +35,14 @@ export interface DataViewLayoutOptionsPassThroughMethodOptions {
35
35
  * Defines current inline state.
36
36
  */
37
37
  state: DataViewLayoutOptionsState;
38
+ /**
39
+ * Defines valid attributes.
40
+ */
41
+ attrs: any;
42
+ /**
43
+ * Defines parent options.
44
+ */
45
+ parent: any;
38
46
  /**
39
47
  * Defines passthrough(pt) options in global config.
40
48
  */
@@ -30,6 +30,14 @@ export interface DeferredContentPassThroughMethodOptions {
30
30
  * Defines current inline state.
31
31
  */
32
32
  state: DeferredContentState;
33
+ /**
34
+ * Defines valid attributes.
35
+ */
36
+ attrs: any;
37
+ /**
38
+ * Defines parent options.
39
+ */
40
+ parent: any;
33
41
  /**
34
42
  * Defines passthrough(pt) options in global config.
35
43
  */
@@ -12,14 +12,14 @@ import { ComponentHooks } from '../basecomponent';
12
12
  import { PassThroughOptions } from '../passthrough';
13
13
  import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
14
14
 
15
- export declare type DialogPassThroughOptionType = DialogPassThroughAttributes | ((options: DialogPassThroughMethodOptions) => DialogPassThroughAttributes | string) | string | null | undefined;
15
+ export declare type DialogPassThroughOptionType<T = any> = DialogPassThroughAttributes | ((options: DialogPassThroughMethodOptions<T>) => DialogPassThroughAttributes | string) | string | null | undefined;
16
16
 
17
- export declare type DialogPassThroughTransitionType = TransitionProps | ((options: DialogPassThroughMethodOptions) => TransitionProps) | undefined;
17
+ export declare type DialogPassThroughTransitionType<T = any> = TransitionProps | ((options: DialogPassThroughMethodOptions<T>) => TransitionProps) | undefined;
18
18
 
19
19
  /**
20
20
  * Custom passthrough(pt) option method.
21
21
  */
22
- export interface DialogPassThroughMethodOptions {
22
+ export interface DialogPassThroughMethodOptions<T> {
23
23
  /**
24
24
  * Defines instance.
25
25
  */
@@ -32,6 +32,10 @@ export interface DialogPassThroughMethodOptions {
32
32
  * Defines current inline state.
33
33
  */
34
34
  state: DialogState;
35
+ /**
36
+ * Defines parent instance.
37
+ */
38
+ parent: T;
35
39
  /**
36
40
  * Defines passthrough(pt) options in global config.
37
41
  */
@@ -42,51 +46,51 @@ export interface DialogPassThroughMethodOptions {
42
46
  * Custom passthrough(pt) options.
43
47
  * @see {@link DialogProps.pt}
44
48
  */
45
- export interface DialogPassThroughOptions {
49
+ export interface DialogPassThroughOptions<T = any> {
46
50
  /**
47
51
  * Used to pass attributes to the root's DOM element.
48
52
  */
49
- root?: DialogPassThroughOptionType;
53
+ root?: DialogPassThroughOptionType<T>;
50
54
  /**
51
55
  * Used to pass attributes to the header's DOM element.
52
56
  */
53
- header?: DialogPassThroughOptionType;
57
+ header?: DialogPassThroughOptionType<T>;
54
58
  /**
55
59
  * Used to pass attributes to the header title's DOM element.
56
60
  */
57
- title?: DialogPassThroughOptionType;
61
+ title?: DialogPassThroughOptionType<T>;
58
62
  /**
59
63
  * Used to pass attributes to the header icons' DOM element.
60
64
  */
61
- icons?: DialogPassThroughOptionType;
65
+ icons?: DialogPassThroughOptionType<T>;
62
66
  /**
63
67
  * Used to pass attributes to the maximizable button's DOM element.
64
68
  */
65
- maximizableButton?: DialogPassThroughOptionType;
69
+ maximizableButton?: DialogPassThroughOptionType<T>;
66
70
  /**
67
71
  * Used to pass attributes to the maximizable icon's DOM element.
68
72
  */
69
- maximizableIcon?: DialogPassThroughOptionType;
73
+ maximizableIcon?: DialogPassThroughOptionType<T>;
70
74
  /**
71
75
  * Used to pass attributes to the close button's component.
72
76
  */
73
- closeButton?: DialogPassThroughOptionType;
77
+ closeButton?: DialogPassThroughOptionType<T>;
74
78
  /**
75
79
  * Used to pass attributes to the close button icon's component.
76
80
  */
77
- closeButtonIcon?: DialogPassThroughOptionType;
81
+ closeButtonIcon?: DialogPassThroughOptionType<T>;
78
82
  /**
79
83
  * Used to pass attributes to the content's DOM element.
80
84
  */
81
- content?: DialogPassThroughOptionType;
85
+ content?: DialogPassThroughOptionType<T>;
82
86
  /**
83
87
  * Used to pass attributes to the footer's DOM element.
84
88
  */
85
- footer?: DialogPassThroughOptionType;
89
+ footer?: DialogPassThroughOptionType<T>;
86
90
  /**
87
91
  * Used to pass attributes to the mask's DOM element.
88
92
  */
89
- mask?: DialogPassThroughOptionType;
93
+ mask?: DialogPassThroughOptionType<T>;
90
94
  /**
91
95
  * Used to manage all lifecycle hooks.
92
96
  * @see {@link BaseComponent.ComponentHooks}
@@ -95,7 +99,7 @@ export interface DialogPassThroughOptions {
95
99
  /**
96
100
  * Used to control Vue Transition API.
97
101
  */
98
- transition?: DialogPassThroughTransitionType;
102
+ transition?: DialogPassThroughTransitionType<T>;
99
103
  }
100
104
 
101
105
  /**
@@ -463,8 +463,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
463
463
  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; }
464
464
  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; }
465
465
  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; }
466
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
467
- 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); }
466
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
467
+ 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); }
468
468
  var _hoisted_1 = ["aria-labelledby", "aria-modal"];
469
469
  var _hoisted_2 = ["id"];
470
470
  var _hoisted_3 = ["autofocus", "tabindex"];
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/focustrap"),t=require("primevue/icons/times"),n=require("primevue/icons/windowmaximize"),o=require("primevue/icons/windowminimize"),i=require("primevue/portal"),a=require("primevue/ripple"),r=require("primevue/utils"),l=require("vue"),s=require("primevue/basecomponent"),c=require("primevue/dialog/style");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=u(e),d=u(t),p=u(n),f=u(o),h=u(i),b=u(a),y={name:"Dialog",extends:{name:"BaseDialog",extends:u(s).default,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},rtl:{type:Boolean,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:"center"},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:String,default:"body"},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},_instance:null},style:u(c).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:visible","show","hide","after-hide","maximize","unmaximize","dragend"],provide:function(){var e=this;return{dialogRef:l.computed((function(){return e._instance}))}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&r.ZIndexUtils.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit("update:visible",!1)},onBeforeEnter:function(e){e.setAttribute(this.attributeSelector,"")},onEnter:function(){this.$emit("show"),this.focus(),this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&r.ZIndexUtils.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&r.DomHandler.addClass(this.mask,"p-component-overlay-leave")},onLeave:function(){this.$emit("hide"),this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&r.ZIndexUtils.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit("after-hide")},onMaskClick:function(e){this.dismissableMask&&this.modal&&this.mask===e.target&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector("[autofocus]")},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer))||(t=this.$slots.default&&e(this.content))||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)),t&&r.DomHandler.focus(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit("unmaximize",e)):(this.maximized=!0,this.$emit("maximize",e)),this.modal||(this.maximized?r.DomHandler.blockBodyScroll():r.DomHandler.unblockBodyScroll())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&r.DomHandler.blockBodyScroll()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&r.DomHandler.unblockBodyScroll()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e},closeButtonRef:function(e){this.closeButton=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",r.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-dialog[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){"icons"!==e.target.closest("div").getAttribute("data-pc-section")&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",!this.isUnstyled&&r.DomHandler.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=r.DomHandler.getOuterWidth(e.container),o=r.DomHandler.getOuterHeight(e.container),i=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,l=e.container.getBoundingClientRect(),s=l.left+i,c=l.top+a,u=r.DomHandler.getViewport(),m=getComputedStyle(e.container),d=parseFloat(m.marginLeft),p=parseFloat(m.marginTop);e.container.style.position="fixed",e.keepInViewport?(s>=e.minX&&s+n<u.width&&(e.lastPageX=t.pageX,e.container.style.left=s-d+"px"),c>=e.minY&&c+o<u.height&&(e.lastPageY=t.pageY,e.container.style.top=c-p+"px")):(e.lastPageX=t.pageX,e.container.style.left=s-d+"px",e.lastPageY=t.pageY,e.container.style.top=c-p+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,!e.isUnstyled&&r.DomHandler.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",t))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaId:function(){return r.UniqueComponentId()},ariaLabelledById:function(){return null!=this.header||null!==this.$attrs["aria-labelledby"]?this.ariaId+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return r.UniqueComponentId()}},directives:{ripple:b.default,focustrap:m.default},components:{Portal:h.default,WindowMinimizeIcon:f.default,WindowMaximizeIcon:p.default,TimesIcon:d.default}};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return(t=D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e){var t=B(e,"string");return"symbol"===g(t)?t:String(t)}function B(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var L=["aria-labelledby","aria-modal"],w=["id"],z=["autofocus","tabindex"],E=["autofocus","aria-label"];y.render=function(e,t,n,o,i,a){var r=l.resolveComponent("Portal"),s=l.resolveDirective("ripple"),c=l.resolveDirective("focustrap");return l.openBlock(),l.createBlock(r,{appendTo:e.appendTo},{default:l.withCtx((function(){return[i.containerVisible?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:a.maskRef,class:e.cx("mask"),style:e.sx("mask",!0,{position:e.position,modal:e.modal}),onClick:t[3]||(t[3]=function(){return a.onMaskClick&&a.onMaskClick.apply(a,arguments)})},e.ptm("mask")),[l.createVNode(l.Transition,l.mergeProps({name:"p-dialog",onBeforeEnter:a.onBeforeEnter,onEnter:a.onEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:""},e.ptm("transition")),{default:l.withCtx((function(){return[e.visible?l.withDirectives((l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:a.containerRef,class:e.cx("root"),style:e.sx("root"),role:"dialog","aria-labelledby":a.ariaLabelledById,"aria-modal":e.modal},x(x({},e.$attrs),e.ptm("root"))),[e.$slots.container?l.renderSlot(e.$slots,"container",{key:0,onClose:a.close,onMaximize:function(e){return a.maximize(e)},closeCallback:a.close,maximizeCallback:function(e){return a.maximize(e)}}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[e.showHeader?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:a.headerContainerRef,class:e.cx("header"),onMousedown:t[2]||(t[2]=function(){return a.initDrag&&a.initDrag.apply(a,arguments)})},e.ptm("header")),[l.renderSlot(e.$slots,"header",{class:l.normalizeClass(e.cx("title"))},(function(){return[e.header?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,id:a.ariaLabelledById,class:e.cx("title")},e.ptm("title")),l.toDisplayString(e.header),17,w)):l.createCommentVNode("",!0)]})),l.createElementVNode("div",l.mergeProps({class:e.cx("icons")},e.ptm("icons")),[e.maximizable?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:0,ref:a.maximizableRef,autofocus:i.focusableMax,class:e.cx("maximizableButton"),onClick:t[0]||(t[0]=function(){return a.maximize&&a.maximize.apply(a,arguments)}),type:"button",tabindex:e.maximizable?"0":"-1"},e.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[l.renderSlot(e.$slots,"maximizeicon",{maximized:i.maximized,class:l.normalizeClass(e.cx("maximizableIcon"))},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(a.maximizeIconComponent),l.mergeProps({class:[e.cx("maximizableIcon"),i.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm("maximizableIcon")),null,16,["class"]))]}))],16,z)),[[s]]):l.createCommentVNode("",!0),e.closable?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:1,ref:a.closeButtonRef,autofocus:i.focusableClose,class:e.cx("closeButton"),onClick:t[1]||(t[1]=function(){return a.close&&a.close.apply(a,arguments)}),"aria-label":a.closeAriaLabel,type:"button"},x(x({},e.closeButtonProps),e.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[l.renderSlot(e.$slots,"closeicon",{class:l.normalizeClass(e.cx("closeButtonIcon"))},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),l.mergeProps({class:[e.cx("closeButtonIcon"),e.closeIcon]},e.ptm("closeButtonIcon")),null,16,["class"]))]}))],16,E)),[[s]]):l.createCommentVNode("",!0)],16)],16)):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({ref:a.contentRef,class:[e.cx("content"),e.contentClass],style:e.contentStyle},x(x({},e.contentProps),e.ptm("content"))),[l.renderSlot(e.$slots,"default")],16),e.footer||e.$slots.footer?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,ref:a.footerContainerRef,class:e.cx("footer")},e.ptm("footer")),[l.renderSlot(e.$slots,"footer",{},(function(){return[l.createTextVNode(l.toDisplayString(e.footer),1)]}))],16)):l.createCommentVNode("",!0)],64))],16,L)),[[c,{disabled:!e.modal}]]):l.createCommentVNode("",!0)]})),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):l.createCommentVNode("",!0)]})),_:3},8,["appendTo"])},module.exports=y;
1
+ "use strict";var e=require("primevue/focustrap"),t=require("primevue/icons/times"),n=require("primevue/icons/windowmaximize"),o=require("primevue/icons/windowminimize"),i=require("primevue/portal"),a=require("primevue/ripple"),r=require("primevue/utils"),l=require("vue"),s=require("primevue/basecomponent"),c=require("primevue/dialog/style");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=u(e),d=u(t),p=u(n),f=u(o),h=u(i),b=u(a),y={name:"Dialog",extends:{name:"BaseDialog",extends:u(s).default,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},rtl:{type:Boolean,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:"center"},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:String,default:"body"},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},_instance:null},style:u(c).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:visible","show","hide","after-hide","maximize","unmaximize","dragend"],provide:function(){var e=this;return{dialogRef:l.computed((function(){return e._instance}))}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&r.ZIndexUtils.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit("update:visible",!1)},onBeforeEnter:function(e){e.setAttribute(this.attributeSelector,"")},onEnter:function(){this.$emit("show"),this.focus(),this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&r.ZIndexUtils.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&r.DomHandler.addClass(this.mask,"p-component-overlay-leave")},onLeave:function(){this.$emit("hide"),this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&r.ZIndexUtils.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit("after-hide")},onMaskClick:function(e){this.dismissableMask&&this.modal&&this.mask===e.target&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector("[autofocus]")},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer))||(t=this.$slots.default&&e(this.content))||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)),t&&r.DomHandler.focus(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit("unmaximize",e)):(this.maximized=!0,this.$emit("maximize",e)),this.modal||(this.maximized?r.DomHandler.blockBodyScroll():r.DomHandler.unblockBodyScroll())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&r.DomHandler.blockBodyScroll()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&r.DomHandler.unblockBodyScroll()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e},closeButtonRef:function(e){this.closeButton=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",r.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-dialog[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){"icons"!==e.target.closest("div").getAttribute("data-pc-section")&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",!this.isUnstyled&&r.DomHandler.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=r.DomHandler.getOuterWidth(e.container),o=r.DomHandler.getOuterHeight(e.container),i=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,l=e.container.getBoundingClientRect(),s=l.left+i,c=l.top+a,u=r.DomHandler.getViewport(),m=getComputedStyle(e.container),d=parseFloat(m.marginLeft),p=parseFloat(m.marginTop);e.container.style.position="fixed",e.keepInViewport?(s>=e.minX&&s+n<u.width&&(e.lastPageX=t.pageX,e.container.style.left=s-d+"px"),c>=e.minY&&c+o<u.height&&(e.lastPageY=t.pageY,e.container.style.top=c-p+"px")):(e.lastPageX=t.pageX,e.container.style.left=s-d+"px",e.lastPageY=t.pageY,e.container.style.top=c-p+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,!e.isUnstyled&&r.DomHandler.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",t))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaId:function(){return r.UniqueComponentId()},ariaLabelledById:function(){return null!=this.header||null!==this.$attrs["aria-labelledby"]?this.ariaId+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return r.UniqueComponentId()}},directives:{ripple:b.default,focustrap:m.default},components:{Portal:h.default,WindowMinimizeIcon:f.default,WindowMaximizeIcon:p.default,TimesIcon:d.default}};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){var o;return(t="symbol"==g(o=D(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var B=["aria-labelledby","aria-modal"],L=["id"],w=["autofocus","tabindex"],z=["autofocus","aria-label"];y.render=function(e,t,n,o,i,a){var r=l.resolveComponent("Portal"),s=l.resolveDirective("ripple"),c=l.resolveDirective("focustrap");return l.openBlock(),l.createBlock(r,{appendTo:e.appendTo},{default:l.withCtx((function(){return[i.containerVisible?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:a.maskRef,class:e.cx("mask"),style:e.sx("mask",!0,{position:e.position,modal:e.modal}),onClick:t[3]||(t[3]=function(){return a.onMaskClick&&a.onMaskClick.apply(a,arguments)})},e.ptm("mask")),[l.createVNode(l.Transition,l.mergeProps({name:"p-dialog",onBeforeEnter:a.onBeforeEnter,onEnter:a.onEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:""},e.ptm("transition")),{default:l.withCtx((function(){return[e.visible?l.withDirectives((l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:a.containerRef,class:e.cx("root"),style:e.sx("root"),role:"dialog","aria-labelledby":a.ariaLabelledById,"aria-modal":e.modal},x(x({},e.$attrs),e.ptm("root"))),[e.$slots.container?l.renderSlot(e.$slots,"container",{key:0,onClose:a.close,onMaximize:function(e){return a.maximize(e)},closeCallback:a.close,maximizeCallback:function(e){return a.maximize(e)}}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[e.showHeader?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:a.headerContainerRef,class:e.cx("header"),onMousedown:t[2]||(t[2]=function(){return a.initDrag&&a.initDrag.apply(a,arguments)})},e.ptm("header")),[l.renderSlot(e.$slots,"header",{class:l.normalizeClass(e.cx("title"))},(function(){return[e.header?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,id:a.ariaLabelledById,class:e.cx("title")},e.ptm("title")),l.toDisplayString(e.header),17,L)):l.createCommentVNode("",!0)]})),l.createElementVNode("div",l.mergeProps({class:e.cx("icons")},e.ptm("icons")),[e.maximizable?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:0,ref:a.maximizableRef,autofocus:i.focusableMax,class:e.cx("maximizableButton"),onClick:t[0]||(t[0]=function(){return a.maximize&&a.maximize.apply(a,arguments)}),type:"button",tabindex:e.maximizable?"0":"-1"},e.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[l.renderSlot(e.$slots,"maximizeicon",{maximized:i.maximized,class:l.normalizeClass(e.cx("maximizableIcon"))},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(a.maximizeIconComponent),l.mergeProps({class:[e.cx("maximizableIcon"),i.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm("maximizableIcon")),null,16,["class"]))]}))],16,w)),[[s]]):l.createCommentVNode("",!0),e.closable?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:1,ref:a.closeButtonRef,autofocus:i.focusableClose,class:e.cx("closeButton"),onClick:t[1]||(t[1]=function(){return a.close&&a.close.apply(a,arguments)}),"aria-label":a.closeAriaLabel,type:"button"},x(x({},e.closeButtonProps),e.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[l.renderSlot(e.$slots,"closeicon",{class:l.normalizeClass(e.cx("closeButtonIcon"))},(function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),l.mergeProps({class:[e.cx("closeButtonIcon"),e.closeIcon]},e.ptm("closeButtonIcon")),null,16,["class"]))]}))],16,z)),[[s]]):l.createCommentVNode("",!0)],16)],16)):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({ref:a.contentRef,class:[e.cx("content"),e.contentClass],style:e.contentStyle},x(x({},e.contentProps),e.ptm("content"))),[l.renderSlot(e.$slots,"default")],16),e.footer||e.$slots.footer?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,ref:a.footerContainerRef,class:e.cx("footer")},e.ptm("footer")),[l.renderSlot(e.$slots,"footer",{},(function(){return[l.createTextVNode(l.toDisplayString(e.footer),1)]}))],16)):l.createCommentVNode("",!0)],64))],16,B)),[[c,{disabled:!e.modal}]]):l.createCommentVNode("",!0)]})),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):l.createCommentVNode("",!0)]})),_:3},8,["appendTo"])},module.exports=y;
@@ -450,8 +450,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
450
450
  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; }
451
451
  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; }
452
452
  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; }
453
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
454
- 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); }
453
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
454
+ 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); }
455
455
  var _hoisted_1 = ["aria-labelledby", "aria-modal"];
456
456
  var _hoisted_2 = ["id"];
457
457
  var _hoisted_3 = ["autofocus", "tabindex"];
@@ -1 +1 @@
1
- import e from"primevue/focustrap";import t from"primevue/icons/times";import n from"primevue/icons/windowmaximize";import i from"primevue/icons/windowminimize";import o from"primevue/portal";import a from"primevue/ripple";import{ZIndexUtils as s,DomHandler as l,UniqueComponentId as r}from"primevue/utils";import{computed as c,resolveComponent as u,resolveDirective as m,openBlock as d,createBlock as f,withCtx as p,createElementBlock as h,mergeProps as b,createVNode as y,Transition as g,withDirectives as v,renderSlot as x,Fragment as L,normalizeClass as w,toDisplayString as z,createCommentVNode as k,createElementVNode as D,resolveDynamicComponent as B,createTextVNode as E}from"vue";import S from"primevue/basecomponent";import I from"primevue/dialog/style";var C={name:"Dialog",extends:{name:"BaseDialog",extends:S,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},rtl:{type:Boolean,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:"center"},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:String,default:"body"},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},_instance:null},style:I,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:visible","show","hide","after-hide","maximize","unmaximize","dragend"],provide:function(){var e=this;return{dialogRef:c((function(){return e._instance}))}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&s.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit("update:visible",!1)},onBeforeEnter:function(e){e.setAttribute(this.attributeSelector,"")},onEnter:function(){this.$emit("show"),this.focus(),this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&s.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&l.addClass(this.mask,"p-component-overlay-leave")},onLeave:function(){this.$emit("hide"),this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&s.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit("after-hide")},onMaskClick:function(e){this.dismissableMask&&this.modal&&this.mask===e.target&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector("[autofocus]")},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer))||(t=this.$slots.default&&e(this.content))||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)),t&&l.focus(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit("unmaximize",e)):(this.maximized=!0,this.$emit("maximize",e)),this.modal||(this.maximized?l.blockBodyScroll():l.unblockBodyScroll())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&l.blockBodyScroll()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&l.unblockBodyScroll()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e},closeButtonRef:function(e){this.closeButton=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-dialog[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){"icons"!==e.target.closest("div").getAttribute("data-pc-section")&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",!this.isUnstyled&&l.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=l.getOuterWidth(e.container),i=l.getOuterHeight(e.container),o=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,s=e.container.getBoundingClientRect(),r=s.left+o,c=s.top+a,u=l.getViewport(),m=getComputedStyle(e.container),d=parseFloat(m.marginLeft),f=parseFloat(m.marginTop);e.container.style.position="fixed",e.keepInViewport?(r>=e.minX&&r+n<u.width&&(e.lastPageX=t.pageX,e.container.style.left=r-d+"px"),c>=e.minY&&c+i<u.height&&(e.lastPageY=t.pageY,e.container.style.top=c-f+"px")):(e.lastPageX=t.pageX,e.container.style.left=r-d+"px",e.lastPageY=t.pageY,e.container.style.top=c-f+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,!e.isUnstyled&&l.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",t))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaId:function(){return r()},ariaLabelledById:function(){return null!=this.header||null!==this.$attrs["aria-labelledby"]?this.ariaId+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return r()}},directives:{ripple:a,focustrap:e},components:{Portal:o,WindowMinimizeIcon:i,WindowMaximizeIcon:n,TimesIcon:t}};function P(e){return P="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},P(e)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return(t=R(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){var t=j(e,"string");return"symbol"===P(t)?t:String(t)}function j(e,t){if("object"!==P(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==P(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var K=["aria-labelledby","aria-modal"],X=["id"],Y=["autofocus","tabindex"],A=["autofocus","aria-label"];C.render=function(e,t,n,i,o,a){var s=u("Portal"),l=m("ripple"),r=m("focustrap");return d(),f(s,{appendTo:e.appendTo},{default:p((function(){return[o.containerVisible?(d(),h("div",b({key:0,ref:a.maskRef,class:e.cx("mask"),style:e.sx("mask",!0,{position:e.position,modal:e.modal}),onClick:t[3]||(t[3]=function(){return a.onMaskClick&&a.onMaskClick.apply(a,arguments)})},e.ptm("mask")),[y(g,b({name:"p-dialog",onBeforeEnter:a.onBeforeEnter,onEnter:a.onEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:""},e.ptm("transition")),{default:p((function(){return[e.visible?v((d(),h("div",b({key:0,ref:a.containerRef,class:e.cx("root"),style:e.sx("root"),role:"dialog","aria-labelledby":a.ariaLabelledById,"aria-modal":e.modal},O(O({},e.$attrs),e.ptm("root"))),[e.$slots.container?x(e.$slots,"container",{key:0,onClose:a.close,onMaximize:function(e){return a.maximize(e)},closeCallback:a.close,maximizeCallback:function(e){return a.maximize(e)}}):(d(),h(L,{key:1},[e.showHeader?(d(),h("div",b({key:0,ref:a.headerContainerRef,class:e.cx("header"),onMousedown:t[2]||(t[2]=function(){return a.initDrag&&a.initDrag.apply(a,arguments)})},e.ptm("header")),[x(e.$slots,"header",{class:w(e.cx("title"))},(function(){return[e.header?(d(),h("span",b({key:0,id:a.ariaLabelledById,class:e.cx("title")},e.ptm("title")),z(e.header),17,X)):k("",!0)]})),D("div",b({class:e.cx("icons")},e.ptm("icons")),[e.maximizable?v((d(),h("button",b({key:0,ref:a.maximizableRef,autofocus:o.focusableMax,class:e.cx("maximizableButton"),onClick:t[0]||(t[0]=function(){return a.maximize&&a.maximize.apply(a,arguments)}),type:"button",tabindex:e.maximizable?"0":"-1"},e.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[x(e.$slots,"maximizeicon",{maximized:o.maximized,class:w(e.cx("maximizableIcon"))},(function(){return[(d(),f(B(a.maximizeIconComponent),b({class:[e.cx("maximizableIcon"),o.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm("maximizableIcon")),null,16,["class"]))]}))],16,Y)),[[l]]):k("",!0),e.closable?v((d(),h("button",b({key:1,ref:a.closeButtonRef,autofocus:o.focusableClose,class:e.cx("closeButton"),onClick:t[1]||(t[1]=function(){return a.close&&a.close.apply(a,arguments)}),"aria-label":a.closeAriaLabel,type:"button"},O(O({},e.closeButtonProps),e.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[x(e.$slots,"closeicon",{class:w(e.cx("closeButtonIcon"))},(function(){return[(d(),f(B(e.closeIcon?"span":"TimesIcon"),b({class:[e.cx("closeButtonIcon"),e.closeIcon]},e.ptm("closeButtonIcon")),null,16,["class"]))]}))],16,A)),[[l]]):k("",!0)],16)],16)):k("",!0),D("div",b({ref:a.contentRef,class:[e.cx("content"),e.contentClass],style:e.contentStyle},O(O({},e.contentProps),e.ptm("content"))),[x(e.$slots,"default")],16),e.footer||e.$slots.footer?(d(),h("div",b({key:1,ref:a.footerContainerRef,class:e.cx("footer")},e.ptm("footer")),[x(e.$slots,"footer",{},(function(){return[E(z(e.footer),1)]}))],16)):k("",!0)],64))],16,K)),[[r,{disabled:!e.modal}]]):k("",!0)]})),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):k("",!0)]})),_:3},8,["appendTo"])};export{C as default};
1
+ import e from"primevue/focustrap";import t from"primevue/icons/times";import n from"primevue/icons/windowmaximize";import i from"primevue/icons/windowminimize";import o from"primevue/portal";import a from"primevue/ripple";import{ZIndexUtils as s,DomHandler as l,UniqueComponentId as r}from"primevue/utils";import{computed as c,resolveComponent as u,resolveDirective as m,openBlock as d,createBlock as f,withCtx as p,createElementBlock as h,mergeProps as b,createVNode as y,Transition as g,withDirectives as v,renderSlot as x,Fragment as L,normalizeClass as w,toDisplayString as z,createCommentVNode as k,createElementVNode as D,resolveDynamicComponent as B,createTextVNode as E}from"vue";import S from"primevue/basecomponent";import I from"primevue/dialog/style";var C={name:"Dialog",extends:{name:"BaseDialog",extends:S,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},rtl:{type:Boolean,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:"center"},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:String,default:"body"},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},_instance:null},style:I,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:visible","show","hide","after-hide","maximize","unmaximize","dragend"],provide:function(){var e=this;return{dialogRef:c((function(){return e._instance}))}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&s.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit("update:visible",!1)},onBeforeEnter:function(e){e.setAttribute(this.attributeSelector,"")},onEnter:function(){this.$emit("show"),this.focus(),this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&s.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&l.addClass(this.mask,"p-component-overlay-leave")},onLeave:function(){this.$emit("hide"),this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&s.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit("after-hide")},onMaskClick:function(e){this.dismissableMask&&this.modal&&this.mask===e.target&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector("[autofocus]")},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer))||(t=this.$slots.default&&e(this.content))||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)),t&&l.focus(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit("unmaximize",e)):(this.maximized=!0,this.$emit("maximize",e)),this.modal||(this.maximized?l.blockBodyScroll():l.unblockBodyScroll())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&l.blockBodyScroll()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&l.unblockBodyScroll()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e},closeButtonRef:function(e){this.closeButton=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-dialog[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){"icons"!==e.target.closest("div").getAttribute("data-pc-section")&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",!this.isUnstyled&&l.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=l.getOuterWidth(e.container),i=l.getOuterHeight(e.container),o=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,s=e.container.getBoundingClientRect(),r=s.left+o,c=s.top+a,u=l.getViewport(),m=getComputedStyle(e.container),d=parseFloat(m.marginLeft),f=parseFloat(m.marginTop);e.container.style.position="fixed",e.keepInViewport?(r>=e.minX&&r+n<u.width&&(e.lastPageX=t.pageX,e.container.style.left=r-d+"px"),c>=e.minY&&c+i<u.height&&(e.lastPageY=t.pageY,e.container.style.top=c-f+"px")):(e.lastPageX=t.pageX,e.container.style.left=r-d+"px",e.lastPageY=t.pageY,e.container.style.top=c-f+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,!e.isUnstyled&&l.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",t))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaId:function(){return r()},ariaLabelledById:function(){return null!=this.header||null!==this.$attrs["aria-labelledby"]?this.ariaId+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return r()}},directives:{ripple:a,focustrap:e},components:{Portal:o,WindowMinimizeIcon:i,WindowMaximizeIcon:n,TimesIcon:t}};function P(e){return P="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},P(e)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){var i;return(t="symbol"==P(i=R(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=P(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var j=["aria-labelledby","aria-modal"],K=["id"],X=["autofocus","tabindex"],Y=["autofocus","aria-label"];C.render=function(e,t,n,i,o,a){var s=u("Portal"),l=m("ripple"),r=m("focustrap");return d(),f(s,{appendTo:e.appendTo},{default:p((function(){return[o.containerVisible?(d(),h("div",b({key:0,ref:a.maskRef,class:e.cx("mask"),style:e.sx("mask",!0,{position:e.position,modal:e.modal}),onClick:t[3]||(t[3]=function(){return a.onMaskClick&&a.onMaskClick.apply(a,arguments)})},e.ptm("mask")),[y(g,b({name:"p-dialog",onBeforeEnter:a.onBeforeEnter,onEnter:a.onEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:""},e.ptm("transition")),{default:p((function(){return[e.visible?v((d(),h("div",b({key:0,ref:a.containerRef,class:e.cx("root"),style:e.sx("root"),role:"dialog","aria-labelledby":a.ariaLabelledById,"aria-modal":e.modal},O(O({},e.$attrs),e.ptm("root"))),[e.$slots.container?x(e.$slots,"container",{key:0,onClose:a.close,onMaximize:function(e){return a.maximize(e)},closeCallback:a.close,maximizeCallback:function(e){return a.maximize(e)}}):(d(),h(L,{key:1},[e.showHeader?(d(),h("div",b({key:0,ref:a.headerContainerRef,class:e.cx("header"),onMousedown:t[2]||(t[2]=function(){return a.initDrag&&a.initDrag.apply(a,arguments)})},e.ptm("header")),[x(e.$slots,"header",{class:w(e.cx("title"))},(function(){return[e.header?(d(),h("span",b({key:0,id:a.ariaLabelledById,class:e.cx("title")},e.ptm("title")),z(e.header),17,K)):k("",!0)]})),D("div",b({class:e.cx("icons")},e.ptm("icons")),[e.maximizable?v((d(),h("button",b({key:0,ref:a.maximizableRef,autofocus:o.focusableMax,class:e.cx("maximizableButton"),onClick:t[0]||(t[0]=function(){return a.maximize&&a.maximize.apply(a,arguments)}),type:"button",tabindex:e.maximizable?"0":"-1"},e.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[x(e.$slots,"maximizeicon",{maximized:o.maximized,class:w(e.cx("maximizableIcon"))},(function(){return[(d(),f(B(a.maximizeIconComponent),b({class:[e.cx("maximizableIcon"),o.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm("maximizableIcon")),null,16,["class"]))]}))],16,X)),[[l]]):k("",!0),e.closable?v((d(),h("button",b({key:1,ref:a.closeButtonRef,autofocus:o.focusableClose,class:e.cx("closeButton"),onClick:t[1]||(t[1]=function(){return a.close&&a.close.apply(a,arguments)}),"aria-label":a.closeAriaLabel,type:"button"},O(O({},e.closeButtonProps),e.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[x(e.$slots,"closeicon",{class:w(e.cx("closeButtonIcon"))},(function(){return[(d(),f(B(e.closeIcon?"span":"TimesIcon"),b({class:[e.cx("closeButtonIcon"),e.closeIcon]},e.ptm("closeButtonIcon")),null,16,["class"]))]}))],16,Y)),[[l]]):k("",!0)],16)],16)):k("",!0),D("div",b({ref:a.contentRef,class:[e.cx("content"),e.contentClass],style:e.contentStyle},O(O({},e.contentProps),e.ptm("content"))),[x(e.$slots,"default")],16),e.footer||e.$slots.footer?(d(),h("div",b({key:1,ref:a.footerContainerRef,class:e.cx("footer")},e.ptm("footer")),[x(e.$slots,"footer",{},(function(){return[E(z(e.footer),1)]}))],16)):k("",!0)],64))],16,j)),[[r,{disabled:!e.modal}]]):k("",!0)]})),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):k("",!0)]})),_:3},8,["appendTo"])};export{C as default};
package/dialog/dialog.js CHANGED
@@ -454,8 +454,8 @@ this.primevue.dialog = (function (FocusTrap, TimesIcon, WindowMaximizeIcon, Wind
454
454
  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; }
455
455
  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; }
456
456
  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; }
457
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
458
- 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); }
457
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
458
+ 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); }
459
459
  var _hoisted_1 = ["aria-labelledby", "aria-modal"];
460
460
  var _hoisted_2 = ["id"];
461
461
  var _hoisted_3 = ["autofocus", "tabindex"];
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.dialog=function(e,t,n,o,i,a,l,r,s,c){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=u(e),d=u(t),p=u(n),f=u(o),h=u(i),b=u(a),y={name:"Dialog",extends:{name:"BaseDialog",extends:u(s).default,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},rtl:{type:Boolean,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:"center"},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:String,default:"body"},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},_instance:null},style:u(c).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:visible","show","hide","after-hide","maximize","unmaximize","dragend"],provide:function(){var e=this;return{dialogRef:r.computed((function(){return e._instance}))}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&l.ZIndexUtils.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit("update:visible",!1)},onBeforeEnter:function(e){e.setAttribute(this.attributeSelector,"")},onEnter:function(){this.$emit("show"),this.focus(),this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&l.ZIndexUtils.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&l.DomHandler.addClass(this.mask,"p-component-overlay-leave")},onLeave:function(){this.$emit("hide"),this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&l.ZIndexUtils.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit("after-hide")},onMaskClick:function(e){this.dismissableMask&&this.modal&&this.mask===e.target&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector("[autofocus]")},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer))||(t=this.$slots.default&&e(this.content))||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)),t&&l.DomHandler.focus(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit("unmaximize",e)):(this.maximized=!0,this.$emit("maximize",e)),this.modal||(this.maximized?l.DomHandler.blockBodyScroll():l.DomHandler.unblockBodyScroll())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&l.DomHandler.blockBodyScroll()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&l.DomHandler.unblockBodyScroll()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e},closeButtonRef:function(e){this.closeButton=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-dialog[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){"icons"!==e.target.closest("div").getAttribute("data-pc-section")&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",!this.isUnstyled&&l.DomHandler.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=l.DomHandler.getOuterWidth(e.container),o=l.DomHandler.getOuterHeight(e.container),i=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,r=e.container.getBoundingClientRect(),s=r.left+i,c=r.top+a,u=l.DomHandler.getViewport(),m=getComputedStyle(e.container),d=parseFloat(m.marginLeft),p=parseFloat(m.marginTop);e.container.style.position="fixed",e.keepInViewport?(s>=e.minX&&s+n<u.width&&(e.lastPageX=t.pageX,e.container.style.left=s-d+"px"),c>=e.minY&&c+o<u.height&&(e.lastPageY=t.pageY,e.container.style.top=c-p+"px")):(e.lastPageX=t.pageX,e.container.style.left=s-d+"px",e.lastPageY=t.pageY,e.container.style.top=c-p+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,!e.isUnstyled&&l.DomHandler.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",t))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaId:function(){return l.UniqueComponentId()},ariaLabelledById:function(){return null!=this.header||null!==this.$attrs["aria-labelledby"]?this.ariaId+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return l.UniqueComponentId()}},directives:{ripple:b.default,focustrap:m.default},components:{Portal:h.default,WindowMinimizeIcon:f.default,WindowMaximizeIcon:p.default,TimesIcon:d.default}};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return(t=D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e){var t=B(e,"string");return"symbol"===g(t)?t:String(t)}function B(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var L=["aria-labelledby","aria-modal"],w=["id"],z=["autofocus","tabindex"],E=["autofocus","aria-label"];return y.render=function(e,t,n,o,i,a){var l=r.resolveComponent("Portal"),s=r.resolveDirective("ripple"),c=r.resolveDirective("focustrap");return r.openBlock(),r.createBlock(l,{appendTo:e.appendTo},{default:r.withCtx((function(){return[i.containerVisible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:a.maskRef,class:e.cx("mask"),style:e.sx("mask",!0,{position:e.position,modal:e.modal}),onClick:t[3]||(t[3]=function(){return a.onMaskClick&&a.onMaskClick.apply(a,arguments)})},e.ptm("mask")),[r.createVNode(r.Transition,r.mergeProps({name:"p-dialog",onBeforeEnter:a.onBeforeEnter,onEnter:a.onEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:""},e.ptm("transition")),{default:r.withCtx((function(){return[e.visible?r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:a.containerRef,class:e.cx("root"),style:e.sx("root"),role:"dialog","aria-labelledby":a.ariaLabelledById,"aria-modal":e.modal},x(x({},e.$attrs),e.ptm("root"))),[e.$slots.container?r.renderSlot(e.$slots,"container",{key:0,onClose:a.close,onMaximize:function(e){return a.maximize(e)},closeCallback:a.close,maximizeCallback:function(e){return a.maximize(e)}}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[e.showHeader?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:a.headerContainerRef,class:e.cx("header"),onMousedown:t[2]||(t[2]=function(){return a.initDrag&&a.initDrag.apply(a,arguments)})},e.ptm("header")),[r.renderSlot(e.$slots,"header",{class:r.normalizeClass(e.cx("title"))},(function(){return[e.header?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,id:a.ariaLabelledById,class:e.cx("title")},e.ptm("title")),r.toDisplayString(e.header),17,w)):r.createCommentVNode("",!0)]})),r.createElementVNode("div",r.mergeProps({class:e.cx("icons")},e.ptm("icons")),[e.maximizable?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:0,ref:a.maximizableRef,autofocus:i.focusableMax,class:e.cx("maximizableButton"),onClick:t[0]||(t[0]=function(){return a.maximize&&a.maximize.apply(a,arguments)}),type:"button",tabindex:e.maximizable?"0":"-1"},e.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[r.renderSlot(e.$slots,"maximizeicon",{maximized:i.maximized,class:r.normalizeClass(e.cx("maximizableIcon"))},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.maximizeIconComponent),r.mergeProps({class:[e.cx("maximizableIcon"),i.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm("maximizableIcon")),null,16,["class"]))]}))],16,z)),[[s]]):r.createCommentVNode("",!0),e.closable?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:1,ref:a.closeButtonRef,autofocus:i.focusableClose,class:e.cx("closeButton"),onClick:t[1]||(t[1]=function(){return a.close&&a.close.apply(a,arguments)}),"aria-label":a.closeAriaLabel,type:"button"},x(x({},e.closeButtonProps),e.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[r.renderSlot(e.$slots,"closeicon",{class:r.normalizeClass(e.cx("closeButtonIcon"))},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),r.mergeProps({class:[e.cx("closeButtonIcon"),e.closeIcon]},e.ptm("closeButtonIcon")),null,16,["class"]))]}))],16,E)),[[s]]):r.createCommentVNode("",!0)],16)],16)):r.createCommentVNode("",!0),r.createElementVNode("div",r.mergeProps({ref:a.contentRef,class:[e.cx("content"),e.contentClass],style:e.contentStyle},x(x({},e.contentProps),e.ptm("content"))),[r.renderSlot(e.$slots,"default")],16),e.footer||e.$slots.footer?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:1,ref:a.footerContainerRef,class:e.cx("footer")},e.ptm("footer")),[r.renderSlot(e.$slots,"footer",{},(function(){return[r.createTextVNode(r.toDisplayString(e.footer),1)]}))],16)):r.createCommentVNode("",!0)],64))],16,L)),[[c,{disabled:!e.modal}]]):r.createCommentVNode("",!0)]})),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):r.createCommentVNode("",!0)]})),_:3},8,["appendTo"])},y}(primevue.focustrap,primevue.icons.times,primevue.icons.windowmaximize,primevue.icons.windowminimize,primevue.portal,primevue.ripple,primevue.utils,Vue,primevue.basecomponent,primevue.dialog.style);
1
+ this.primevue=this.primevue||{},this.primevue.dialog=function(e,t,n,o,i,a,l,r,s,c){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=u(e),d=u(t),p=u(n),f=u(o),h=u(i),b=u(a),y={name:"Dialog",extends:{name:"BaseDialog",extends:u(s).default,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},rtl:{type:Boolean,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:"center"},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:String,default:"body"},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},_instance:null},style:u(c).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:visible","show","hide","after-hide","maximize","unmaximize","dragend"],provide:function(){var e=this;return{dialogRef:r.computed((function(){return e._instance}))}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&l.ZIndexUtils.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit("update:visible",!1)},onBeforeEnter:function(e){e.setAttribute(this.attributeSelector,"")},onEnter:function(){this.$emit("show"),this.focus(),this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&l.ZIndexUtils.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&l.DomHandler.addClass(this.mask,"p-component-overlay-leave")},onLeave:function(){this.$emit("hide"),this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&l.ZIndexUtils.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit("after-hide")},onMaskClick:function(e){this.dismissableMask&&this.modal&&this.mask===e.target&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector("[autofocus]")},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer))||(t=this.$slots.default&&e(this.content))||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)),t&&l.DomHandler.focus(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit("unmaximize",e)):(this.maximized=!0,this.$emit("maximize",e)),this.modal||(this.maximized?l.DomHandler.blockBodyScroll():l.DomHandler.unblockBodyScroll())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&l.DomHandler.blockBodyScroll()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&l.DomHandler.unblockBodyScroll()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e},closeButtonRef:function(e){this.closeButton=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-dialog[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){"icons"!==e.target.closest("div").getAttribute("data-pc-section")&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",!this.isUnstyled&&l.DomHandler.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=l.DomHandler.getOuterWidth(e.container),o=l.DomHandler.getOuterHeight(e.container),i=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,r=e.container.getBoundingClientRect(),s=r.left+i,c=r.top+a,u=l.DomHandler.getViewport(),m=getComputedStyle(e.container),d=parseFloat(m.marginLeft),p=parseFloat(m.marginTop);e.container.style.position="fixed",e.keepInViewport?(s>=e.minX&&s+n<u.width&&(e.lastPageX=t.pageX,e.container.style.left=s-d+"px"),c>=e.minY&&c+o<u.height&&(e.lastPageY=t.pageY,e.container.style.top=c-p+"px")):(e.lastPageX=t.pageX,e.container.style.left=s-d+"px",e.lastPageY=t.pageY,e.container.style.top=c-p+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,!e.isUnstyled&&l.DomHandler.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",t))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaId:function(){return l.UniqueComponentId()},ariaLabelledById:function(){return null!=this.header||null!==this.$attrs["aria-labelledby"]?this.ariaId+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return l.UniqueComponentId()}},directives:{ripple:b.default,focustrap:m.default},components:{Portal:h.default,WindowMinimizeIcon:f.default,WindowMaximizeIcon:p.default,TimesIcon:d.default}};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){var o;return(t="symbol"==g(o=D(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var B=["aria-labelledby","aria-modal"],L=["id"],w=["autofocus","tabindex"],z=["autofocus","aria-label"];return y.render=function(e,t,n,o,i,a){var l=r.resolveComponent("Portal"),s=r.resolveDirective("ripple"),c=r.resolveDirective("focustrap");return r.openBlock(),r.createBlock(l,{appendTo:e.appendTo},{default:r.withCtx((function(){return[i.containerVisible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:a.maskRef,class:e.cx("mask"),style:e.sx("mask",!0,{position:e.position,modal:e.modal}),onClick:t[3]||(t[3]=function(){return a.onMaskClick&&a.onMaskClick.apply(a,arguments)})},e.ptm("mask")),[r.createVNode(r.Transition,r.mergeProps({name:"p-dialog",onBeforeEnter:a.onBeforeEnter,onEnter:a.onEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:""},e.ptm("transition")),{default:r.withCtx((function(){return[e.visible?r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:a.containerRef,class:e.cx("root"),style:e.sx("root"),role:"dialog","aria-labelledby":a.ariaLabelledById,"aria-modal":e.modal},x(x({},e.$attrs),e.ptm("root"))),[e.$slots.container?r.renderSlot(e.$slots,"container",{key:0,onClose:a.close,onMaximize:function(e){return a.maximize(e)},closeCallback:a.close,maximizeCallback:function(e){return a.maximize(e)}}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[e.showHeader?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:a.headerContainerRef,class:e.cx("header"),onMousedown:t[2]||(t[2]=function(){return a.initDrag&&a.initDrag.apply(a,arguments)})},e.ptm("header")),[r.renderSlot(e.$slots,"header",{class:r.normalizeClass(e.cx("title"))},(function(){return[e.header?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,id:a.ariaLabelledById,class:e.cx("title")},e.ptm("title")),r.toDisplayString(e.header),17,L)):r.createCommentVNode("",!0)]})),r.createElementVNode("div",r.mergeProps({class:e.cx("icons")},e.ptm("icons")),[e.maximizable?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:0,ref:a.maximizableRef,autofocus:i.focusableMax,class:e.cx("maximizableButton"),onClick:t[0]||(t[0]=function(){return a.maximize&&a.maximize.apply(a,arguments)}),type:"button",tabindex:e.maximizable?"0":"-1"},e.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[r.renderSlot(e.$slots,"maximizeicon",{maximized:i.maximized,class:r.normalizeClass(e.cx("maximizableIcon"))},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.maximizeIconComponent),r.mergeProps({class:[e.cx("maximizableIcon"),i.maximized?e.minimizeIcon:e.maximizeIcon]},e.ptm("maximizableIcon")),null,16,["class"]))]}))],16,w)),[[s]]):r.createCommentVNode("",!0),e.closable?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:1,ref:a.closeButtonRef,autofocus:i.focusableClose,class:e.cx("closeButton"),onClick:t[1]||(t[1]=function(){return a.close&&a.close.apply(a,arguments)}),"aria-label":a.closeAriaLabel,type:"button"},x(x({},e.closeButtonProps),e.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[r.renderSlot(e.$slots,"closeicon",{class:r.normalizeClass(e.cx("closeButtonIcon"))},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),r.mergeProps({class:[e.cx("closeButtonIcon"),e.closeIcon]},e.ptm("closeButtonIcon")),null,16,["class"]))]}))],16,z)),[[s]]):r.createCommentVNode("",!0)],16)],16)):r.createCommentVNode("",!0),r.createElementVNode("div",r.mergeProps({ref:a.contentRef,class:[e.cx("content"),e.contentClass],style:e.contentStyle},x(x({},e.contentProps),e.ptm("content"))),[r.renderSlot(e.$slots,"default")],16),e.footer||e.$slots.footer?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:1,ref:a.footerContainerRef,class:e.cx("footer")},e.ptm("footer")),[r.renderSlot(e.$slots,"footer",{},(function(){return[r.createTextVNode(r.toDisplayString(e.footer),1)]}))],16)):r.createCommentVNode("",!0)],64))],16,B)),[[c,{disabled:!e.modal}]]):r.createCommentVNode("",!0)]})),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):r.createCommentVNode("",!0)]})),_:3},8,["appendTo"])},y}(primevue.focustrap,primevue.icons.times,primevue.icons.windowmaximize,primevue.icons.windowminimize,primevue.portal,primevue.ripple,primevue.utils,Vue,primevue.basecomponent,primevue.dialog.style);
@@ -26,6 +26,14 @@ export interface DividerPassThroughMethodOptions {
26
26
  * Defines valid properties.
27
27
  */
28
28
  props: DividerProps;
29
+ /**
30
+ * Defines valid attributes.
31
+ */
32
+ attrs: any;
33
+ /**
34
+ * Defines parent options.
35
+ */
36
+ parent: any;
29
37
  /**
30
38
  * Defines passthrough(pt) options in global config.
31
39
  */
package/dock/Dock.d.ts CHANGED
@@ -35,6 +35,14 @@ export interface DockPassThroughMethodOptions {
35
35
  * Defines current options.
36
36
  */
37
37
  context: DockContext;
38
+ /**
39
+ * Defines valid attributes.
40
+ */
41
+ attrs: any;
42
+ /**
43
+ * Defines parent options.
44
+ */
45
+ parent: any;
38
46
  /**
39
47
  * Defines passthrough(pt) options in global config.
40
48
  */
@@ -13,14 +13,14 @@ import { PassThroughOptions } from '../passthrough';
13
13
  import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
14
14
  import { VirtualScrollerItemOptions, VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller';
15
15
 
16
- export declare type DropdownPassThroughOptionType = DropdownPassThroughAttributes | ((options: DropdownPassThroughMethodOptions) => DropdownPassThroughAttributes | string) | string | null | undefined;
16
+ export declare type DropdownPassThroughOptionType<T = any> = DropdownPassThroughAttributes | ((options: DropdownPassThroughMethodOptions<T>) => DropdownPassThroughAttributes | string) | string | null | undefined;
17
17
 
18
- export declare type DropdownPassThroughTransitionType = TransitionProps | ((options: DropdownPassThroughMethodOptions) => TransitionProps) | undefined;
18
+ export declare type DropdownPassThroughTransitionType<T = any> = TransitionProps | ((options: DropdownPassThroughMethodOptions<T>) => TransitionProps) | undefined;
19
19
 
20
20
  /**
21
21
  * Custom passthrough(pt) option method.
22
22
  */
23
- export interface DropdownPassThroughMethodOptions {
23
+ export interface DropdownPassThroughMethodOptions<T> {
24
24
  /**
25
25
  * Defines instance.
26
26
  */
@@ -33,6 +33,10 @@ export interface DropdownPassThroughMethodOptions {
33
33
  * Defines current inline state.
34
34
  */
35
35
  state: DropdownState;
36
+ /**
37
+ * Defines parent instance.
38
+ */
39
+ parent: T | any;
36
40
  /**
37
41
  * Defines current options.
38
42
  */
@@ -77,51 +81,51 @@ export interface DropdownFilterEvent {
77
81
  * Custom passthrough(pt) options.
78
82
  * @see {@link DropdownProps.pt}
79
83
  */
80
- export interface DropdownPassThroughOptions {
84
+ export interface DropdownPassThroughOptions<T = any> {
81
85
  /**
82
86
  * Used to pass attributes to the root's DOM element.
83
87
  */
84
- root?: DropdownPassThroughOptionType;
88
+ root?: DropdownPassThroughOptionType<T>;
85
89
  /**
86
90
  * Used to pass attributes to the input's DOM element.
87
91
  */
88
- input?: DropdownPassThroughOptionType;
92
+ input?: DropdownPassThroughOptionType<T>;
89
93
  /**
90
94
  * Used to pass attributes to the clear icon's DOM element.
91
95
  */
92
- clearIcon?: DropdownPassThroughOptionType;
96
+ clearIcon?: DropdownPassThroughOptionType<T>;
93
97
  /**
94
98
  * Used to pass attributes to the trigger' DOM element.
95
99
  */
96
- trigger?: DropdownPassThroughOptionType;
100
+ trigger?: DropdownPassThroughOptionType<T>;
97
101
  /**
98
102
  * Used to pass attributes to the loading icon's DOM element.
99
103
  */
100
- loadingIcon?: DropdownPassThroughOptionType;
104
+ loadingIcon?: DropdownPassThroughOptionType<T>;
101
105
  /**
102
106
  * Used to pass attributes to the panel's DOM element.
103
107
  */
104
- panel?: DropdownPassThroughOptionType;
108
+ panel?: DropdownPassThroughOptionType<T>;
105
109
  /**
106
110
  * Used to pass attributes to the header's DOM element.
107
111
  */
108
- header?: DropdownPassThroughOptionType;
112
+ header?: DropdownPassThroughOptionType<T>;
109
113
  /**
110
114
  * Used to pass attributes to the filter container's DOM element.
111
115
  */
112
- filterContainer?: DropdownPassThroughOptionType;
116
+ filterContainer?: DropdownPassThroughOptionType<T>;
113
117
  /**
114
118
  * Used to pass attributes to the filter input's DOM element.
115
119
  */
116
- filterInput?: DropdownPassThroughOptionType;
120
+ filterInput?: DropdownPassThroughOptionType<T>;
117
121
  /**
118
122
  * Used to pass attributes to the filter icon's DOM element.
119
123
  */
120
- filterIcon?: DropdownPassThroughOptionType;
124
+ filterIcon?: DropdownPassThroughOptionType<T>;
121
125
  /**
122
126
  * Used to pass attributes to the wrapper's DOM element.
123
127
  */
124
- wrapper?: DropdownPassThroughOptionType;
128
+ wrapper?: DropdownPassThroughOptionType<T>;
125
129
  /**
126
130
  * Used to pass attributes to the VirtualScroller component.
127
131
  * @see {@link VirtualScrollerPassThroughOptionType}
@@ -130,39 +134,39 @@ export interface DropdownPassThroughOptions {
130
134
  /**
131
135
  * Used to pass attributes to the list's DOM element.
132
136
  */
133
- list?: DropdownPassThroughOptionType;
137
+ list?: DropdownPassThroughOptionType<T>;
134
138
  /**
135
139
  * Used to pass attributes to the item group's DOM element.
136
140
  */
137
- itemGroup?: DropdownPassThroughOptionType;
141
+ itemGroup?: DropdownPassThroughOptionType<T>;
138
142
  /**
139
143
  * Used to pass attributes to the item's DOM element.
140
144
  */
141
- item?: DropdownPassThroughOptionType;
145
+ item?: DropdownPassThroughOptionType<T>;
142
146
  /**
143
147
  * Used to pass attributes to the empty message's DOM element.
144
148
  */
145
- emptyMessage?: DropdownPassThroughOptionType;
149
+ emptyMessage?: DropdownPassThroughOptionType<T>;
146
150
  /**
147
151
  * Used to pass attributes to the hidden first focusable element's DOM element.
148
152
  */
149
- hiddenFirstFocusableEl?: DropdownPassThroughOptionType;
153
+ hiddenFirstFocusableEl?: DropdownPassThroughOptionType<T>;
150
154
  /**
151
155
  * Used to pass attributes to the hidden filter result's DOM element.
152
156
  */
153
- hiddenFilterResult?: DropdownPassThroughOptionType;
157
+ hiddenFilterResult?: DropdownPassThroughOptionType<T>;
154
158
  /**
155
159
  * Used to pass attributes to the hidden empty message's DOM element.
156
160
  */
157
- hiddenEmptyMessage?: DropdownPassThroughOptionType;
161
+ hiddenEmptyMessage?: DropdownPassThroughOptionType<T>;
158
162
  /**
159
163
  * Used to pass attributes to the hidden selected message's DOM element.
160
164
  */
161
- hiddenSelectedMessage?: DropdownPassThroughOptionType;
165
+ hiddenSelectedMessage?: DropdownPassThroughOptionType<T>;
162
166
  /**
163
167
  * Used to pass attributes to the hidden last focusable element's DOM element.
164
168
  */
165
- hiddenLastFocusableEl?: DropdownPassThroughOptionType;
169
+ hiddenLastFocusableEl?: DropdownPassThroughOptionType<T>;
166
170
  /**
167
171
  * Used to manage all lifecycle hooks.
168
172
  * @see {@link BaseComponent.ComponentHooks}