primevue 3.27.0 → 3.28.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 (408) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/AutoComplete.d.ts +10 -1
  3. package/autocomplete/AutoComplete.vue +1 -1
  4. package/autocomplete/autocomplete.cjs.js +4 -1
  5. package/autocomplete/autocomplete.cjs.min.js +1 -1
  6. package/autocomplete/autocomplete.esm.js +4 -1
  7. package/autocomplete/autocomplete.esm.min.js +1 -1
  8. package/autocomplete/autocomplete.js +4 -1
  9. package/autocomplete/autocomplete.min.js +1 -1
  10. package/avatar/Avatar.d.ts +44 -0
  11. package/avatar/Avatar.vue +10 -8
  12. package/avatar/avatar.cjs.js +36 -34
  13. package/avatar/avatar.cjs.min.js +1 -1
  14. package/avatar/avatar.esm.js +33 -35
  15. package/avatar/avatar.esm.min.js +1 -1
  16. package/avatar/avatar.js +37 -36
  17. package/avatar/avatar.min.js +1 -1
  18. package/avatargroup/AvatarGroup.d.ts +27 -1
  19. package/avatargroup/AvatarGroup.vue +5 -2
  20. package/avatargroup/avatargroup.cjs.js +9 -5
  21. package/avatargroup/avatargroup.cjs.min.js +1 -1
  22. package/avatargroup/avatargroup.esm.js +6 -6
  23. package/avatargroup/avatargroup.esm.min.js +1 -1
  24. package/avatargroup/avatargroup.js +10 -7
  25. package/avatargroup/avatargroup.min.js +1 -1
  26. package/badge/Badge.d.ts +32 -0
  27. package/badge/Badge.vue +3 -1
  28. package/badge/badge.cjs.js +8 -4
  29. package/badge/badge.cjs.min.js +1 -1
  30. package/badge/badge.esm.js +5 -5
  31. package/badge/badge.esm.min.js +1 -1
  32. package/badge/badge.js +9 -6
  33. package/badge/badge.min.js +1 -1
  34. package/basecomponent/BaseComponent.vue +10 -3
  35. package/basecomponent/basecomponent.cjs.js +10 -3
  36. package/basecomponent/basecomponent.cjs.min.js +1 -1
  37. package/basecomponent/basecomponent.esm.js +10 -3
  38. package/basecomponent/basecomponent.esm.min.js +1 -1
  39. package/basecomponent/basecomponent.js +10 -3
  40. package/basecomponent/basecomponent.min.js +1 -1
  41. package/baseicon/BaseIcon.vue +2 -2
  42. package/baseicon/baseicon.cjs.js +2 -2
  43. package/baseicon/baseicon.cjs.min.js +1 -1
  44. package/baseicon/baseicon.esm.js +2 -2
  45. package/baseicon/baseicon.esm.min.js +1 -1
  46. package/baseicon/baseicon.js +2 -2
  47. package/baseicon/baseicon.min.js +1 -1
  48. package/blockui/BlockUI.d.ts +44 -0
  49. package/blockui/BlockUI.vue +3 -1
  50. package/blockui/blockui.cjs.js +9 -3
  51. package/blockui/blockui.cjs.min.js +1 -1
  52. package/blockui/blockui.esm.js +6 -4
  53. package/blockui/blockui.esm.min.js +1 -1
  54. package/blockui/blockui.js +10 -5
  55. package/blockui/blockui.min.js +1 -1
  56. package/breadcrumb/Breadcrumb.d.ts +60 -0
  57. package/breadcrumb/Breadcrumb.vue +8 -6
  58. package/breadcrumb/BreadcrumbItem.vue +14 -10
  59. package/breadcrumb/breadcrumb.cjs.js +53 -51
  60. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  61. package/breadcrumb/breadcrumb.esm.js +53 -52
  62. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  63. package/breadcrumb/breadcrumb.js +54 -53
  64. package/breadcrumb/breadcrumb.min.js +1 -1
  65. package/button/Button.d.ts +48 -0
  66. package/button/Button.vue +10 -9
  67. package/button/button.cjs.js +43 -44
  68. package/button/button.cjs.min.js +1 -1
  69. package/button/button.esm.js +43 -45
  70. package/button/button.esm.min.js +1 -1
  71. package/button/button.js +44 -46
  72. package/button/button.min.js +1 -1
  73. package/chart/Chart.d.ts +36 -0
  74. package/chart/Chart.vue +5 -2
  75. package/chart/chart.cjs.js +10 -5
  76. package/chart/chart.cjs.min.js +1 -1
  77. package/chart/chart.esm.js +7 -6
  78. package/chart/chart.esm.min.js +1 -1
  79. package/chart/chart.js +11 -7
  80. package/chart/chart.min.js +1 -1
  81. package/chip/Chip.d.ts +60 -0
  82. package/chip/Chip.vue +10 -9
  83. package/chip/chip.cjs.js +35 -36
  84. package/chip/chip.cjs.min.js +1 -1
  85. package/chip/chip.esm.js +35 -37
  86. package/chip/chip.esm.min.js +1 -1
  87. package/chip/chip.js +36 -38
  88. package/chip/chip.min.js +1 -1
  89. package/config/PrimeVue.d.ts +8 -0
  90. package/config/config.cjs.js +3 -1
  91. package/config/config.cjs.min.js +1 -1
  92. package/config/config.esm.js +3 -2
  93. package/config/config.esm.min.js +1 -1
  94. package/config/config.js +3 -1
  95. package/config/config.min.js +1 -1
  96. package/confirmdialog/ConfirmDialog.d.ts +88 -0
  97. package/confirmdialog/ConfirmDialog.vue +9 -6
  98. package/confirmdialog/confirmdialog.cjs.js +22 -18
  99. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  100. package/confirmdialog/confirmdialog.esm.js +22 -19
  101. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  102. package/confirmdialog/confirmdialog.js +23 -20
  103. package/confirmdialog/confirmdialog.min.js +1 -1
  104. package/confirmpopup/ConfirmPopup.d.ts +75 -0
  105. package/confirmpopup/ConfirmPopup.vue +11 -9
  106. package/confirmpopup/confirmpopup.cjs.js +27 -25
  107. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  108. package/confirmpopup/confirmpopup.esm.js +27 -26
  109. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  110. package/confirmpopup/confirmpopup.js +28 -27
  111. package/confirmpopup/confirmpopup.min.js +1 -1
  112. package/contextmenu/ContextMenu.d.ts +135 -0
  113. package/contextmenu/ContextMenu.vue +4 -1
  114. package/contextmenu/ContextMenuSub.vue +46 -10
  115. package/contextmenu/contextmenu.cjs.js +57 -46
  116. package/contextmenu/contextmenu.cjs.min.js +1 -1
  117. package/contextmenu/contextmenu.esm.js +57 -47
  118. package/contextmenu/contextmenu.esm.min.js +1 -1
  119. package/contextmenu/contextmenu.js +58 -48
  120. package/contextmenu/contextmenu.min.js +1 -1
  121. package/core/core.js +278 -246
  122. package/core/core.min.js +11 -11
  123. package/dialog/Dialog.d.ts +87 -0
  124. package/dialog/Dialog.vue +23 -10
  125. package/dialog/dialog.cjs.js +31 -30
  126. package/dialog/dialog.cjs.min.js +1 -1
  127. package/dialog/dialog.esm.js +31 -31
  128. package/dialog/dialog.esm.min.js +1 -1
  129. package/dialog/dialog.js +32 -32
  130. package/dialog/dialog.min.js +1 -1
  131. package/dock/Dock.d.ts +94 -0
  132. package/dock/Dock.vue +4 -2
  133. package/dock/DockSub.vue +30 -6
  134. package/dock/dock.cjs.js +52 -39
  135. package/dock/dock.cjs.min.js +1 -1
  136. package/dock/dock.esm.js +52 -40
  137. package/dock/dock.esm.min.js +1 -1
  138. package/dock/dock.js +53 -41
  139. package/dock/dock.min.js +1 -1
  140. package/dropdown/Dropdown.vue +1 -1
  141. package/dropdown/dropdown.cjs.js +1 -1
  142. package/dropdown/dropdown.cjs.min.js +1 -1
  143. package/dropdown/dropdown.esm.js +1 -1
  144. package/dropdown/dropdown.esm.min.js +1 -1
  145. package/dropdown/dropdown.js +1 -1
  146. package/dropdown/dropdown.min.js +1 -1
  147. package/dynamicdialog/DynamicDialog.vue +3 -1
  148. package/dynamicdialog/dynamicdialog.cjs.js +5 -1
  149. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  150. package/dynamicdialog/dynamicdialog.esm.js +4 -1
  151. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  152. package/dynamicdialog/dynamicdialog.js +6 -3
  153. package/dynamicdialog/dynamicdialog.min.js +1 -1
  154. package/fileupload/FileContent.vue +11 -9
  155. package/fileupload/FileUpload.d.ts +154 -0
  156. package/fileupload/FileUpload.vue +26 -24
  157. package/fileupload/fileupload.cjs.js +100 -97
  158. package/fileupload/fileupload.cjs.min.js +1 -1
  159. package/fileupload/fileupload.esm.js +100 -98
  160. package/fileupload/fileupload.esm.min.js +1 -1
  161. package/fileupload/fileupload.js +101 -99
  162. package/fileupload/fileupload.min.js +1 -1
  163. package/inlinemessage/InlineMessage.d.ts +52 -0
  164. package/inlinemessage/InlineMessage.vue +7 -3
  165. package/inlinemessage/inlinemessage.cjs.js +12 -11
  166. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  167. package/inlinemessage/inlinemessage.esm.js +12 -12
  168. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  169. package/inlinemessage/inlinemessage.js +13 -13
  170. package/inlinemessage/inlinemessage.min.js +1 -1
  171. package/inplace/Inplace.d.ts +59 -0
  172. package/inplace/Inplace.vue +7 -5
  173. package/inplace/inplace.cjs.js +17 -16
  174. package/inplace/inplace.cjs.min.js +1 -1
  175. package/inplace/inplace.esm.js +17 -17
  176. package/inplace/inplace.esm.min.js +1 -1
  177. package/inplace/inplace.js +18 -18
  178. package/inplace/inplace.min.js +1 -1
  179. package/listbox/Listbox.d.ts +1 -1
  180. package/megamenu/MegaMenu.d.ts +149 -0
  181. package/megamenu/MegaMenu.vue +6 -3
  182. package/megamenu/MegaMenuSub.vue +43 -15
  183. package/megamenu/megamenu.cjs.js +83 -75
  184. package/megamenu/megamenu.cjs.min.js +1 -1
  185. package/megamenu/megamenu.esm.js +83 -76
  186. package/megamenu/megamenu.esm.min.js +1 -1
  187. package/megamenu/megamenu.js +84 -77
  188. package/megamenu/megamenu.min.js +1 -1
  189. package/menu/Menu.d.ts +113 -0
  190. package/menu/Menu.vue +11 -8
  191. package/menu/Menuitem.vue +20 -8
  192. package/menu/menu.cjs.js +73 -62
  193. package/menu/menu.cjs.min.js +1 -1
  194. package/menu/menu.esm.js +73 -63
  195. package/menu/menu.esm.min.js +1 -1
  196. package/menu/menu.js +74 -64
  197. package/menu/menu.min.js +1 -1
  198. package/menubar/Menubar.d.ts +146 -0
  199. package/menubar/Menubar.vue +8 -5
  200. package/menubar/MenubarSub.vue +38 -10
  201. package/menubar/menubar.cjs.js +70 -60
  202. package/menubar/menubar.cjs.min.js +1 -1
  203. package/menubar/menubar.esm.js +70 -61
  204. package/menubar/menubar.esm.min.js +1 -1
  205. package/menubar/menubar.js +71 -62
  206. package/menubar/menubar.min.js +1 -1
  207. package/message/Message.d.ts +64 -1
  208. package/message/Message.vue +9 -7
  209. package/message/message.cjs.js +22 -21
  210. package/message/message.cjs.min.js +1 -1
  211. package/message/message.esm.js +22 -22
  212. package/message/message.esm.min.js +1 -1
  213. package/message/message.js +23 -23
  214. package/message/message.min.js +1 -1
  215. package/multiselect/MultiSelect.d.ts +1 -1
  216. package/overlaypanel/OverlayPanel.d.ts +56 -0
  217. package/overlaypanel/OverlayPanel.vue +6 -4
  218. package/overlaypanel/overlaypanel.cjs.js +13 -10
  219. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  220. package/overlaypanel/overlaypanel.esm.js +13 -11
  221. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  222. package/overlaypanel/overlaypanel.js +14 -12
  223. package/overlaypanel/overlaypanel.min.js +1 -1
  224. package/package.json +1 -1
  225. package/panel/Panel.d.ts +10 -1
  226. package/panel/Panel.vue +1 -1
  227. package/panel/panel.cjs.js +4 -1
  228. package/panel/panel.cjs.min.js +1 -1
  229. package/panel/panel.esm.js +4 -1
  230. package/panel/panel.esm.min.js +1 -1
  231. package/panel/panel.js +4 -1
  232. package/panel/panel.min.js +1 -1
  233. package/panelmenu/PanelMenu.d.ts +133 -0
  234. package/panelmenu/PanelMenu.vue +36 -13
  235. package/panelmenu/PanelMenuList.vue +3 -0
  236. package/panelmenu/PanelMenuSub.vue +33 -12
  237. package/panelmenu/panelmenu.cjs.js +115 -96
  238. package/panelmenu/panelmenu.cjs.min.js +1 -1
  239. package/panelmenu/panelmenu.esm.js +115 -97
  240. package/panelmenu/panelmenu.esm.min.js +1 -1
  241. package/panelmenu/panelmenu.js +116 -98
  242. package/panelmenu/panelmenu.min.js +1 -1
  243. package/password/Password.vue +2 -2
  244. package/password/password.cjs.js +2 -2
  245. package/password/password.cjs.min.js +1 -1
  246. package/password/password.esm.js +2 -2
  247. package/password/password.esm.min.js +1 -1
  248. package/password/password.js +2 -2
  249. package/password/password.min.js +1 -1
  250. package/progressbar/ProgressBar.d.ts +40 -0
  251. package/progressbar/ProgressBar.vue +8 -5
  252. package/progressbar/progressbar.cjs.js +25 -23
  253. package/progressbar/progressbar.cjs.min.js +1 -1
  254. package/progressbar/progressbar.esm.js +22 -24
  255. package/progressbar/progressbar.esm.min.js +1 -1
  256. package/progressbar/progressbar.js +26 -25
  257. package/progressbar/progressbar.min.js +1 -1
  258. package/progressspinner/ProgressSpinner.d.ts +40 -0
  259. package/progressspinner/ProgressSpinner.vue +6 -3
  260. package/progressspinner/progressspinner.cjs.js +18 -13
  261. package/progressspinner/progressspinner.cjs.min.js +1 -1
  262. package/progressspinner/progressspinner.esm.js +15 -14
  263. package/progressspinner/progressspinner.esm.min.js +1 -1
  264. package/progressspinner/progressspinner.js +19 -15
  265. package/progressspinner/progressspinner.min.js +1 -1
  266. package/resources/themes/arya-blue/theme.css +1 -1
  267. package/resources/themes/arya-green/theme.css +1 -1
  268. package/resources/themes/arya-orange/theme.css +1 -1
  269. package/resources/themes/arya-purple/theme.css +1 -1
  270. package/resources/themes/bootstrap4-dark-blue/theme.css +1 -1
  271. package/resources/themes/bootstrap4-dark-purple/theme.css +1 -1
  272. package/resources/themes/bootstrap4-light-blue/theme.css +1 -1
  273. package/resources/themes/bootstrap4-light-purple/theme.css +1 -1
  274. package/resources/themes/fluent-light/theme.css +1 -1
  275. package/resources/themes/lara-dark-blue/theme.css +1 -1
  276. package/resources/themes/lara-dark-indigo/theme.css +1 -1
  277. package/resources/themes/lara-dark-purple/theme.css +1 -1
  278. package/resources/themes/lara-dark-teal/theme.css +1 -1
  279. package/resources/themes/lara-light-blue/theme.css +1 -1
  280. package/resources/themes/lara-light-indigo/theme.css +1 -1
  281. package/resources/themes/lara-light-purple/theme.css +1 -1
  282. package/resources/themes/lara-light-teal/theme.css +1 -1
  283. package/resources/themes/luna-amber/theme.css +1 -1
  284. package/resources/themes/luna-blue/theme.css +1 -1
  285. package/resources/themes/luna-green/theme.css +1 -1
  286. package/resources/themes/luna-pink/theme.css +1 -1
  287. package/resources/themes/md-dark-deeppurple/theme.css +4 -1
  288. package/resources/themes/md-dark-indigo/theme.css +4 -1
  289. package/resources/themes/md-light-deeppurple/theme.css +4 -1
  290. package/resources/themes/md-light-indigo/theme.css +4 -1
  291. package/resources/themes/mdc-dark-deeppurple/theme.css +4 -1
  292. package/resources/themes/mdc-dark-indigo/theme.css +4 -1
  293. package/resources/themes/mdc-light-deeppurple/theme.css +4 -1
  294. package/resources/themes/mdc-light-indigo/theme.css +4 -1
  295. package/resources/themes/mira/theme.css +1 -1
  296. package/resources/themes/nano/theme.css +1 -1
  297. package/resources/themes/nova/theme.css +1 -1
  298. package/resources/themes/nova-accent/theme.css +1 -1
  299. package/resources/themes/nova-alt/theme.css +1 -1
  300. package/resources/themes/nova-vue/theme.css +1 -1
  301. package/resources/themes/rhea/theme.css +1 -1
  302. package/resources/themes/saga-blue/theme.css +1 -1
  303. package/resources/themes/saga-green/theme.css +1 -1
  304. package/resources/themes/saga-orange/theme.css +1 -1
  305. package/resources/themes/saga-purple/theme.css +1 -1
  306. package/resources/themes/soho-dark/theme.css +1 -1
  307. package/resources/themes/soho-light/theme.css +1 -1
  308. package/resources/themes/tailwind-light/theme.css +1 -1
  309. package/resources/themes/vela-blue/theme.css +1 -1
  310. package/resources/themes/vela-green/theme.css +1 -1
  311. package/resources/themes/vela-orange/theme.css +1 -1
  312. package/resources/themes/vela-purple/theme.css +1 -1
  313. package/resources/themes/viva-dark/theme.css +1 -1
  314. package/resources/themes/viva-light/theme.css +1 -1
  315. package/scrolltop/ScrollTop.d.ts +48 -0
  316. package/scrolltop/ScrollTop.vue +5 -2
  317. package/scrolltop/scrolltop.cjs.js +10 -7
  318. package/scrolltop/scrolltop.cjs.min.js +1 -1
  319. package/scrolltop/scrolltop.esm.js +10 -8
  320. package/scrolltop/scrolltop.esm.min.js +1 -1
  321. package/scrolltop/scrolltop.js +11 -9
  322. package/scrolltop/scrolltop.min.js +1 -1
  323. package/sidebar/Sidebar.d.ts +68 -0
  324. package/sidebar/Sidebar.vue +9 -7
  325. package/sidebar/sidebar.cjs.js +26 -24
  326. package/sidebar/sidebar.cjs.min.js +1 -1
  327. package/sidebar/sidebar.esm.js +26 -25
  328. package/sidebar/sidebar.esm.min.js +1 -1
  329. package/sidebar/sidebar.js +27 -26
  330. package/sidebar/sidebar.min.js +1 -1
  331. package/skeleton/Skeleton.d.ts +32 -0
  332. package/skeleton/Skeleton.vue +4 -1
  333. package/skeleton/skeleton.cjs.js +10 -4
  334. package/skeleton/skeleton.cjs.min.js +1 -1
  335. package/skeleton/skeleton.esm.js +7 -5
  336. package/skeleton/skeleton.esm.min.js +1 -1
  337. package/skeleton/skeleton.js +11 -6
  338. package/skeleton/skeleton.min.js +1 -1
  339. package/speeddial/SpeedDial.d.ts +101 -0
  340. package/speeddial/SpeedDial.vue +31 -8
  341. package/speeddial/speeddial.cjs.js +47 -33
  342. package/speeddial/speeddial.cjs.min.js +1 -1
  343. package/speeddial/speeddial.esm.js +47 -34
  344. package/speeddial/speeddial.esm.min.js +1 -1
  345. package/speeddial/speeddial.js +48 -35
  346. package/speeddial/speeddial.min.js +1 -1
  347. package/splitbutton/SplitButton.d.ts +64 -0
  348. package/splitbutton/SplitButton.vue +8 -5
  349. package/splitbutton/splitbutton.cjs.js +23 -18
  350. package/splitbutton/splitbutton.cjs.min.js +1 -1
  351. package/splitbutton/splitbutton.esm.js +23 -19
  352. package/splitbutton/splitbutton.esm.min.js +1 -1
  353. package/splitbutton/splitbutton.js +24 -20
  354. package/splitbutton/splitbutton.min.js +1 -1
  355. package/steps/Steps.d.ts +52 -0
  356. package/steps/Steps.vue +11 -8
  357. package/steps/steps.cjs.js +34 -33
  358. package/steps/steps.cjs.min.js +1 -1
  359. package/steps/steps.esm.js +31 -34
  360. package/steps/steps.esm.min.js +1 -1
  361. package/steps/steps.js +35 -35
  362. package/steps/steps.min.js +1 -1
  363. package/tabmenu/TabMenu.d.ts +79 -0
  364. package/tabmenu/TabMenu.vue +20 -10
  365. package/tabmenu/tabmenu.cjs.js +47 -41
  366. package/tabmenu/tabmenu.cjs.min.js +1 -1
  367. package/tabmenu/tabmenu.esm.js +47 -42
  368. package/tabmenu/tabmenu.esm.min.js +1 -1
  369. package/tabmenu/tabmenu.js +48 -43
  370. package/tabmenu/tabmenu.min.js +1 -1
  371. package/tag/Tag.d.ts +40 -0
  372. package/tag/Tag.vue +7 -4
  373. package/tag/tag.cjs.js +14 -12
  374. package/tag/tag.cjs.min.js +1 -1
  375. package/tag/tag.esm.js +11 -13
  376. package/tag/tag.esm.min.js +1 -1
  377. package/tag/tag.js +15 -14
  378. package/tag/tag.min.js +1 -1
  379. package/terminal/Terminal.d.ts +79 -0
  380. package/terminal/Terminal.vue +12 -10
  381. package/terminal/terminal.cjs.js +23 -28
  382. package/terminal/terminal.cjs.min.js +1 -1
  383. package/terminal/terminal.esm.js +23 -29
  384. package/terminal/terminal.esm.min.js +1 -1
  385. package/terminal/terminal.js +24 -30
  386. package/terminal/terminal.min.js +1 -1
  387. package/tieredmenu/TieredMenu.d.ts +130 -0
  388. package/tieredmenu/TieredMenu.vue +4 -1
  389. package/tieredmenu/TieredMenuSub.vue +39 -11
  390. package/tieredmenu/tieredmenu.cjs.js +53 -41
  391. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  392. package/tieredmenu/tieredmenu.esm.js +53 -42
  393. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  394. package/tieredmenu/tieredmenu.js +54 -43
  395. package/tieredmenu/tieredmenu.min.js +1 -1
  396. package/toast/Toast.d.ts +79 -0
  397. package/toast/Toast.vue +4 -1
  398. package/toast/ToastMessage.vue +12 -10
  399. package/toast/toast.cjs.js +31 -31
  400. package/toast/toast.cjs.min.js +1 -1
  401. package/toast/toast.esm.js +31 -32
  402. package/toast/toast.esm.min.js +1 -1
  403. package/toast/toast.js +32 -33
  404. package/toast/toast.min.js +1 -1
  405. package/treeselect/TreeSelect.d.ts +1 -2
  406. package/vetur-attributes.json +160 -0
  407. package/vetur-tags.json +79 -34
  408. package/web-types.json +404 -2
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var BaseComponent = require('primevue/basecomponent');
3
4
  var CheckIcon = require('primevue/icons/check');
4
5
  var ExclamationTriangleIcon = require('primevue/icons/exclamationtriangle');
5
6
  var InfoCircleIcon = require('primevue/icons/infocircle');
@@ -8,6 +9,7 @@ var vue = require('vue');
8
9
 
9
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
11
 
12
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
11
13
  var CheckIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckIcon);
12
14
  var ExclamationTriangleIcon__default = /*#__PURE__*/_interopDefaultLegacy(ExclamationTriangleIcon);
13
15
  var InfoCircleIcon__default = /*#__PURE__*/_interopDefaultLegacy(InfoCircleIcon);
@@ -15,6 +17,7 @@ var TimesCircleIcon__default = /*#__PURE__*/_interopDefaultLegacy(TimesCircleIco
15
17
 
16
18
  var script = {
17
19
  name: 'InlineMessage',
20
+ extends: BaseComponent__default["default"],
18
21
  props: {
19
22
  severity: {
20
23
  type: String,
@@ -53,24 +56,22 @@ var script = {
53
56
  }
54
57
  };
55
58
 
56
- const _hoisted_1 = { class: "p-inline-message-text" };
57
-
58
59
  function render(_ctx, _cache, $props, $setup, $data, $options) {
59
- return (vue.openBlock(), vue.createElementBlock("div", {
60
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
60
61
  "aria-live": "polite",
61
- class: vue.normalizeClass($options.containerClass)
62
- }, [
62
+ class: $options.containerClass
63
+ }, _ctx.ptm('root')), [
63
64
  vue.renderSlot(_ctx.$slots, "icon", {}, () => [
64
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.icon ? 'span' : $options.iconComponent), {
65
- class: vue.normalizeClass(['p-inline-message-icon', $props.icon])
66
- }, null, 8, ["class"]))
65
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.icon ? 'span' : $options.iconComponent), vue.mergeProps({
66
+ class: ['p-inline-message-icon', $props.icon]
67
+ }, _ctx.ptm('icon')), null, 16, ["class"]))
67
68
  ]),
68
- vue.createElementVNode("span", _hoisted_1, [
69
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-inline-message-text" }, _ctx.ptm('text')), [
69
70
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
70
71
  vue.createTextVNode(" ")
71
72
  ])
72
- ])
73
- ], 2))
73
+ ], 16)
74
+ ], 16))
74
75
  }
75
76
 
76
77
  function styleInject(css, ref) {
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/icons/check"),n=require("primevue/icons/exclamationtriangle"),i=require("primevue/icons/infocircle"),t=require("primevue/icons/timescircle"),s=require("vue");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),r=l(n),a=l(i),c=l(t),d={name:"InlineMessage",props:{severity:{type:String,default:"error"},icon:{type:String,default:void 0}},timeout:null,data:()=>({visible:!0}),mounted(){this.sticky||setTimeout((()=>{this.visible=!1}),this.life)},computed:{containerClass(){return["p-inline-message p-component p-inline-message-"+this.severity,{"p-inline-message-icon-only":!this.$slots.default}]},iconComponent(){return{info:a.default,success:o.default,warn:r.default,error:c.default}[this.severity]}}};const u={class:"p-inline-message-text"};!function(e,n){void 0===n&&(n={});var i=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-inline-message {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: top;\n}\n.p-inline-message-icon-only .p-inline-message-text {\n visibility: hidden;\n width: 0;\n}\n.p-fluid .p-inline-message {\n display: flex;\n}\n"),d.render=function(e,n,i,t,l,o){return s.openBlock(),s.createElementBlock("div",{"aria-live":"polite",class:s.normalizeClass(o.containerClass)},[s.renderSlot(e.$slots,"icon",{},(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.icon?"span":o.iconComponent),{class:s.normalizeClass(["p-inline-message-icon",i.icon])},null,8,["class"]))])),s.createElementVNode("span",u,[s.renderSlot(e.$slots,"default",{},(()=>[s.createTextVNode(" ")]))])],2)},module.exports=d;
1
+ "use strict";var e=require("primevue/basecomponent"),n=require("primevue/icons/check"),t=require("primevue/icons/exclamationtriangle"),i=require("primevue/icons/infocircle"),s=require("primevue/icons/timescircle"),o=require("vue");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),a=r(n),c=r(t),p=r(i),u=r(s),d={name:"InlineMessage",extends:l.default,props:{severity:{type:String,default:"error"},icon:{type:String,default:void 0}},timeout:null,data:()=>({visible:!0}),mounted(){this.sticky||setTimeout((()=>{this.visible=!1}),this.life)},computed:{containerClass(){return["p-inline-message p-component p-inline-message-"+this.severity,{"p-inline-message-icon-only":!this.$slots.default}]},iconComponent(){return{info:p.default,success:a.default,warn:c.default,error:u.default}[this.severity]}}};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===t&&i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-inline-message {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: top;\n}\n.p-inline-message-icon-only .p-inline-message-text {\n visibility: hidden;\n width: 0;\n}\n.p-fluid .p-inline-message {\n display: flex;\n}\n"),d.render=function(e,n,t,i,s,r){return o.openBlock(),o.createElementBlock("div",o.mergeProps({"aria-live":"polite",class:r.containerClass},e.ptm("root")),[o.renderSlot(e.$slots,"icon",{},(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.icon?"span":r.iconComponent),o.mergeProps({class:["p-inline-message-icon",t.icon]},e.ptm("icon")),null,16,["class"]))])),o.createElementVNode("span",o.mergeProps({class:"p-inline-message-text"},e.ptm("text")),[o.renderSlot(e.$slots,"default",{},(()=>[o.createTextVNode(" ")]))],16)],16)},module.exports=d;
@@ -1,11 +1,13 @@
1
+ import BaseComponent from 'primevue/basecomponent';
1
2
  import CheckIcon from 'primevue/icons/check';
2
3
  import ExclamationTriangleIcon from 'primevue/icons/exclamationtriangle';
3
4
  import InfoCircleIcon from 'primevue/icons/infocircle';
4
5
  import TimesCircleIcon from 'primevue/icons/timescircle';
5
- import { openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createElementVNode, createTextVNode } from 'vue';
6
+ import { openBlock, createElementBlock, mergeProps, renderSlot, createBlock, resolveDynamicComponent, createElementVNode, createTextVNode } from 'vue';
6
7
 
7
8
  var script = {
8
9
  name: 'InlineMessage',
10
+ extends: BaseComponent,
9
11
  props: {
10
12
  severity: {
11
13
  type: String,
@@ -44,24 +46,22 @@ var script = {
44
46
  }
45
47
  };
46
48
 
47
- const _hoisted_1 = { class: "p-inline-message-text" };
48
-
49
49
  function render(_ctx, _cache, $props, $setup, $data, $options) {
50
- return (openBlock(), createElementBlock("div", {
50
+ return (openBlock(), createElementBlock("div", mergeProps({
51
51
  "aria-live": "polite",
52
- class: normalizeClass($options.containerClass)
53
- }, [
52
+ class: $options.containerClass
53
+ }, _ctx.ptm('root')), [
54
54
  renderSlot(_ctx.$slots, "icon", {}, () => [
55
- (openBlock(), createBlock(resolveDynamicComponent($props.icon ? 'span' : $options.iconComponent), {
56
- class: normalizeClass(['p-inline-message-icon', $props.icon])
57
- }, null, 8, ["class"]))
55
+ (openBlock(), createBlock(resolveDynamicComponent($props.icon ? 'span' : $options.iconComponent), mergeProps({
56
+ class: ['p-inline-message-icon', $props.icon]
57
+ }, _ctx.ptm('icon')), null, 16, ["class"]))
58
58
  ]),
59
- createElementVNode("span", _hoisted_1, [
59
+ createElementVNode("span", mergeProps({ class: "p-inline-message-text" }, _ctx.ptm('text')), [
60
60
  renderSlot(_ctx.$slots, "default", {}, () => [
61
61
  createTextVNode(" ")
62
62
  ])
63
- ])
64
- ], 2))
63
+ ], 16)
64
+ ], 16))
65
65
  }
66
66
 
67
67
  function styleInject(css, ref) {
@@ -1 +1 @@
1
- import e from"primevue/icons/check";import i from"primevue/icons/exclamationtriangle";import n from"primevue/icons/infocircle";import t from"primevue/icons/timescircle";import{openBlock as s,createElementBlock as o,normalizeClass as l,renderSlot as r,createBlock as a,resolveDynamicComponent as c,createElementVNode as m,createTextVNode as p}from"vue";var d={name:"InlineMessage",props:{severity:{type:String,default:"error"},icon:{type:String,default:void 0}},timeout:null,data:()=>({visible:!0}),mounted(){this.sticky||setTimeout((()=>{this.visible=!1}),this.life)},computed:{containerClass(){return["p-inline-message p-component p-inline-message-"+this.severity,{"p-inline-message-icon-only":!this.$slots.default}]},iconComponent(){return{info:n,success:e,warn:i,error:t}[this.severity]}}};const u={class:"p-inline-message-text"};!function(e,i){void 0===i&&(i={});var n=i.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-inline-message {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: top;\n}\n.p-inline-message-icon-only .p-inline-message-text {\n visibility: hidden;\n width: 0;\n}\n.p-fluid .p-inline-message {\n display: flex;\n}\n"),d.render=function(e,i,n,t,d,f){return s(),o("div",{"aria-live":"polite",class:l(f.containerClass)},[r(e.$slots,"icon",{},(()=>[(s(),a(c(n.icon?"span":f.iconComponent),{class:l(["p-inline-message-icon",n.icon])},null,8,["class"]))])),m("span",u,[r(e.$slots,"default",{},(()=>[p(" ")]))])],2)};export{d as default};
1
+ import e from"primevue/basecomponent";import i from"primevue/icons/check";import n from"primevue/icons/exclamationtriangle";import t from"primevue/icons/infocircle";import s from"primevue/icons/timescircle";import{openBlock as o,createElementBlock as r,mergeProps as l,renderSlot as a,createBlock as m,resolveDynamicComponent as c,createElementVNode as p,createTextVNode as d}from"vue";var u={name:"InlineMessage",extends:e,props:{severity:{type:String,default:"error"},icon:{type:String,default:void 0}},timeout:null,data:()=>({visible:!0}),mounted(){this.sticky||setTimeout((()=>{this.visible=!1}),this.life)},computed:{containerClass(){return["p-inline-message p-component p-inline-message-"+this.severity,{"p-inline-message-icon-only":!this.$slots.default}]},iconComponent(){return{info:t,success:i,warn:n,error:s}[this.severity]}}};!function(e,i){void 0===i&&(i={});var n=i.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-inline-message {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: top;\n}\n.p-inline-message-icon-only .p-inline-message-text {\n visibility: hidden;\n width: 0;\n}\n.p-fluid .p-inline-message {\n display: flex;\n}\n"),u.render=function(e,i,n,t,s,u){return o(),r("div",l({"aria-live":"polite",class:u.containerClass},e.ptm("root")),[a(e.$slots,"icon",{},(()=>[(o(),m(c(n.icon?"span":u.iconComponent),l({class:["p-inline-message-icon",n.icon]},e.ptm("icon")),null,16,["class"]))])),p("span",l({class:"p-inline-message-text"},e.ptm("text")),[a(e.$slots,"default",{},(()=>[d(" ")]))],16)],16)};export{u as default};
@@ -1,9 +1,10 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.inlinemessage = (function (CheckIcon, ExclamationTriangleIcon, InfoCircleIcon, TimesCircleIcon, vue) {
2
+ this.primevue.inlinemessage = (function (BaseComponent, CheckIcon, ExclamationTriangleIcon, InfoCircleIcon, TimesCircleIcon, vue) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
6
 
7
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
7
8
  var CheckIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckIcon);
8
9
  var ExclamationTriangleIcon__default = /*#__PURE__*/_interopDefaultLegacy(ExclamationTriangleIcon);
9
10
  var InfoCircleIcon__default = /*#__PURE__*/_interopDefaultLegacy(InfoCircleIcon);
@@ -11,6 +12,7 @@ this.primevue.inlinemessage = (function (CheckIcon, ExclamationTriangleIcon, Inf
11
12
 
12
13
  var script = {
13
14
  name: 'InlineMessage',
15
+ extends: BaseComponent__default["default"],
14
16
  props: {
15
17
  severity: {
16
18
  type: String,
@@ -49,24 +51,22 @@ this.primevue.inlinemessage = (function (CheckIcon, ExclamationTriangleIcon, Inf
49
51
  }
50
52
  };
51
53
 
52
- const _hoisted_1 = { class: "p-inline-message-text" };
53
-
54
54
  function render(_ctx, _cache, $props, $setup, $data, $options) {
55
- return (vue.openBlock(), vue.createElementBlock("div", {
55
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
56
56
  "aria-live": "polite",
57
- class: vue.normalizeClass($options.containerClass)
58
- }, [
57
+ class: $options.containerClass
58
+ }, _ctx.ptm('root')), [
59
59
  vue.renderSlot(_ctx.$slots, "icon", {}, () => [
60
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.icon ? 'span' : $options.iconComponent), {
61
- class: vue.normalizeClass(['p-inline-message-icon', $props.icon])
62
- }, null, 8, ["class"]))
60
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.icon ? 'span' : $options.iconComponent), vue.mergeProps({
61
+ class: ['p-inline-message-icon', $props.icon]
62
+ }, _ctx.ptm('icon')), null, 16, ["class"]))
63
63
  ]),
64
- vue.createElementVNode("span", _hoisted_1, [
64
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-inline-message-text" }, _ctx.ptm('text')), [
65
65
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
66
66
  vue.createTextVNode(" ")
67
67
  ])
68
- ])
69
- ], 2))
68
+ ], 16)
69
+ ], 16))
70
70
  }
71
71
 
72
72
  function styleInject(css, ref) {
@@ -103,4 +103,4 @@ this.primevue.inlinemessage = (function (CheckIcon, ExclamationTriangleIcon, Inf
103
103
 
104
104
  return script;
105
105
 
106
- })(primevue.icons.check, primevue.icons.exclamationtriangle, primevue.icons.infocircle, primevue.icons.timescircle, Vue);
106
+ })(primevue.basecomponent, primevue.icons.check, primevue.icons.exclamationtriangle, primevue.icons.infocircle, primevue.icons.timescircle, Vue);
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.inlinemessage=function(e,n,i,t,s){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),a=l(n),r=l(i),c=l(t),d={name:"InlineMessage",props:{severity:{type:String,default:"error"},icon:{type:String,default:void 0}},timeout:null,data:()=>({visible:!0}),mounted(){this.sticky||setTimeout((()=>{this.visible=!1}),this.life)},computed:{containerClass(){return["p-inline-message p-component p-inline-message-"+this.severity,{"p-inline-message-icon-only":!this.$slots.default}]},iconComponent(){return{info:r.default,success:o.default,warn:a.default,error:c.default}[this.severity]}}};const p={class:"p-inline-message-text"};return function(e,n){void 0===n&&(n={});var i=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-inline-message {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: top;\n}\n.p-inline-message-icon-only .p-inline-message-text {\n visibility: hidden;\n width: 0;\n}\n.p-fluid .p-inline-message {\n display: flex;\n}\n"),d.render=function(e,n,i,t,l,o){return s.openBlock(),s.createElementBlock("div",{"aria-live":"polite",class:s.normalizeClass(o.containerClass)},[s.renderSlot(e.$slots,"icon",{},(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.icon?"span":o.iconComponent),{class:s.normalizeClass(["p-inline-message-icon",i.icon])},null,8,["class"]))])),s.createElementVNode("span",p,[s.renderSlot(e.$slots,"default",{},(()=>[s.createTextVNode(" ")]))])],2)},d}(primevue.icons.check,primevue.icons.exclamationtriangle,primevue.icons.infocircle,primevue.icons.timescircle,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.inlinemessage=function(e,n,t,i,s,o){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=l(e),a=l(n),c=l(t),p=l(i),m=l(s),d={name:"InlineMessage",extends:r.default,props:{severity:{type:String,default:"error"},icon:{type:String,default:void 0}},timeout:null,data:()=>({visible:!0}),mounted(){this.sticky||setTimeout((()=>{this.visible=!1}),this.life)},computed:{containerClass(){return["p-inline-message p-component p-inline-message-"+this.severity,{"p-inline-message-icon-only":!this.$slots.default}]},iconComponent(){return{info:p.default,success:a.default,warn:c.default,error:m.default}[this.severity]}}};return function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===t&&i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-inline-message {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: top;\n}\n.p-inline-message-icon-only .p-inline-message-text {\n visibility: hidden;\n width: 0;\n}\n.p-fluid .p-inline-message {\n display: flex;\n}\n"),d.render=function(e,n,t,i,s,l){return o.openBlock(),o.createElementBlock("div",o.mergeProps({"aria-live":"polite",class:l.containerClass},e.ptm("root")),[o.renderSlot(e.$slots,"icon",{},(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.icon?"span":l.iconComponent),o.mergeProps({class:["p-inline-message-icon",t.icon]},e.ptm("icon")),null,16,["class"]))])),o.createElementVNode("span",o.mergeProps({class:"p-inline-message-text"},e.ptm("text")),[o.renderSlot(e.$slots,"default",{},(()=>[o.createTextVNode(" ")]))],16)],16)},d}(primevue.basecomponent,primevue.icons.check,primevue.icons.exclamationtriangle,primevue.icons.infocircle,primevue.icons.timescircle,Vue);
@@ -7,9 +7,63 @@
7
7
  * @module inplace
8
8
  *
9
9
  */
10
+
10
11
  import { ButtonHTMLAttributes, HTMLAttributes, VNode } from 'vue';
12
+ import { ButtonPassThroughOptions } from '../button';
11
13
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
12
14
 
15
+ export declare type InplacePassThroughOptionType = InplacePassThroughAttributes | ((options: InplacePassThroughMethodOptions) => InplacePassThroughAttributes) | null | undefined;
16
+
17
+ /**
18
+ * Custom passthrough(pt) option method.
19
+ */
20
+ export interface InplacePassThroughMethodOptions {
21
+ props: InplaceProps;
22
+ state: InplaceState;
23
+ }
24
+
25
+ /**
26
+ * Custom passthrough(pt) options.
27
+ * @see {@link InplaceProps.pt}
28
+ */
29
+ export interface InplacePassThroughOptions {
30
+ /**
31
+ * Uses to pass attributes to the root's DOM element.
32
+ */
33
+ root?: InplacePassThroughOptionType;
34
+ /**
35
+ * Uses to pass attributes to the display's DOM element.
36
+ */
37
+ display?: InplacePassThroughOptionType;
38
+ /**
39
+ * Uses to pass attributes to the content's DOM element.
40
+ */
41
+ content?: InplacePassThroughOptionType;
42
+ /**
43
+ * Uses to pass attributes to the Button component.
44
+ * @see {@link ButtonPassThroughOptions}
45
+ */
46
+ closeButton?: ButtonPassThroughOptions;
47
+ }
48
+
49
+ /**
50
+ * Custom passthrough attributes for each DOM elements
51
+ */
52
+ export interface InplacePassThroughAttributes {
53
+ [key: string]: any;
54
+ }
55
+
56
+ /**
57
+ * Defines current inline state in Inplace component.
58
+ */
59
+ export interface InplaceState {
60
+ /**
61
+ * Current active state as a boolean.
62
+ * @defaultValue false
63
+ */
64
+ d_active: boolean;
65
+ }
66
+
13
67
  /**
14
68
  * Defines valid properties in Inplace component.
15
69
  */
@@ -42,6 +96,11 @@ export interface InplaceProps {
42
96
  * Uses to pass all properties of the HTMLButtonElement to the close button.
43
97
  */
44
98
  closeButtonProps?: ButtonHTMLAttributes | undefined;
99
+ /**
100
+ * Uses to pass attributes to DOM elements inside the component.
101
+ * @type {InplacePassThroughOptions}
102
+ */
103
+ pt?: InplacePassThroughOptions;
45
104
  }
46
105
 
47
106
  /**
@@ -1,14 +1,14 @@
1
1
  <template>
2
- <div v-focustrap :class="containerClass" aria-live="polite">
3
- <div v-if="!d_active" ref="display" :class="displayClass" :tabindex="$attrs.tabindex || '0'" role="button" @click="open" @keydown.enter="open" v-bind="displayProps">
2
+ <div v-focustrap :class="containerClass" aria-live="polite" v-bind="ptm('root')">
3
+ <div v-if="!d_active" ref="display" :class="displayClass" :tabindex="$attrs.tabindex || '0'" role="button" @click="open" @keydown.enter="open" v-bind="{ ...displayProps, ...ptm('display') }">
4
4
  <slot name="display"></slot>
5
5
  </div>
6
- <div v-else class="p-inplace-content">
6
+ <div v-else class="p-inplace-content" v-bind="ptm('content')">
7
7
  <slot name="content"></slot>
8
- <IPButton v-if="closable" :aria-label="closeAriaLabel" @click="close" v-bind="closeButtonProps">
8
+ <IPButton v-if="closable" :aria-label="closeAriaLabel" @click="close" :pt="ptm('closeButton')" v-bind="closeButtonProps">
9
9
  <template #icon>
10
10
  <slot name="closeicon">
11
- <component :is="closeIcon ? 'span' : 'TimesIcon'" :class="closeIcon"></component>
11
+ <component :is="closeIcon ? 'span' : 'TimesIcon'" :class="closeIcon" v-bind="ptm('closeButton')['icon']"></component>
12
12
  </slot>
13
13
  </template>
14
14
  </IPButton>
@@ -17,12 +17,14 @@
17
17
  </template>
18
18
 
19
19
  <script>
20
+ import BaseComponent from 'primevue/basecomponent';
20
21
  import Button from 'primevue/button';
21
22
  import FocusTrap from 'primevue/focustrap';
22
23
  import TimesIcon from 'primevue/icons/times';
23
24
 
24
25
  export default {
25
26
  name: 'Inplace',
27
+ extends: BaseComponent,
26
28
  emits: ['open', 'close', 'update:active'],
27
29
  props: {
28
30
  closable: {
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var BaseComponent = require('primevue/basecomponent');
3
4
  var Button = require('primevue/button');
4
5
  var FocusTrap = require('primevue/focustrap');
5
6
  var TimesIcon = require('primevue/icons/times');
@@ -7,12 +8,14 @@ var vue = require('vue');
7
8
 
8
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
10
 
11
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
10
12
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
11
13
  var FocusTrap__default = /*#__PURE__*/_interopDefaultLegacy(FocusTrap);
12
14
  var TimesIcon__default = /*#__PURE__*/_interopDefaultLegacy(TimesIcon);
13
15
 
14
16
  var script = {
15
17
  name: 'Inplace',
18
+ extends: BaseComponent__default["default"],
16
19
  emits: ['open', 'close', 'update:active'],
17
20
  props: {
18
21
  closable: {
@@ -90,19 +93,15 @@ var script = {
90
93
  };
91
94
 
92
95
  const _hoisted_1 = ["tabindex"];
93
- const _hoisted_2 = {
94
- key: 1,
95
- class: "p-inplace-content"
96
- };
97
96
 
98
97
  function render(_ctx, _cache, $props, $setup, $data, $options) {
99
98
  const _component_IPButton = vue.resolveComponent("IPButton");
100
99
  const _directive_focustrap = vue.resolveDirective("focustrap");
101
100
 
102
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
103
- class: vue.normalizeClass($options.containerClass),
101
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
102
+ class: $options.containerClass,
104
103
  "aria-live": "polite"
105
- }, [
104
+ }, _ctx.ptm('root')), [
106
105
  (!$data.d_active)
107
106
  ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
108
107
  key: 0,
@@ -112,29 +111,31 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
112
111
  role: "button",
113
112
  onClick: _cache[0] || (_cache[0] = (...args) => ($options.open && $options.open(...args))),
114
113
  onKeydown: _cache[1] || (_cache[1] = vue.withKeys((...args) => ($options.open && $options.open(...args)), ["enter"]))
115
- }, $props.displayProps), [
114
+ }, { ...$props.displayProps, ..._ctx.ptm('display') }), [
116
115
  vue.renderSlot(_ctx.$slots, "display")
117
116
  ], 16, _hoisted_1))
118
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
117
+ : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
118
+ key: 1,
119
+ class: "p-inplace-content"
120
+ }, _ctx.ptm('content')), [
119
121
  vue.renderSlot(_ctx.$slots, "content"),
120
122
  ($props.closable)
121
123
  ? (vue.openBlock(), vue.createBlock(_component_IPButton, vue.mergeProps({
122
124
  key: 0,
123
125
  "aria-label": $options.closeAriaLabel,
124
- onClick: $options.close
126
+ onClick: $options.close,
127
+ pt: _ctx.ptm('closeButton')
125
128
  }, $props.closeButtonProps), {
126
129
  icon: vue.withCtx(() => [
127
130
  vue.renderSlot(_ctx.$slots, "closeicon", {}, () => [
128
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.closeIcon ? 'span' : 'TimesIcon'), {
129
- class: vue.normalizeClass($props.closeIcon)
130
- }, null, 8, ["class"]))
131
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.closeIcon ? 'span' : 'TimesIcon'), vue.mergeProps({ class: $props.closeIcon }, _ctx.ptm('closeButton')['icon']), null, 16, ["class"]))
131
132
  ])
132
133
  ]),
133
134
  _: 3
134
- }, 16, ["aria-label", "onClick"]))
135
+ }, 16, ["aria-label", "onClick", "pt"]))
135
136
  : vue.createCommentVNode("", true)
136
- ]))
137
- ], 2)), [
137
+ ], 16))
138
+ ], 16)), [
138
139
  [_directive_focustrap]
139
140
  ])
140
141
  }
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/focustrap"),l=require("primevue/icons/times"),n=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(e),a=i(t),s=i(l),c={name:"Inplace",emits:["open","close","update:active"],props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},data(){return{d_active:this.active}},watch:{active(e){this.d_active=e}},methods:{open(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close(e){this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((()=>{this.$refs.display.focus()}),0)}},computed:{containerClass(){return["p-inplace p-component",{"p-inplace-closable":this.closable}]},displayClass(){return["p-inplace-display",{"p-disabled":this.disabled}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:o.default,TimesIcon:s.default},directives:{focustrap:a.default}};const p=["tabindex"],r={key:1,class:"p-inplace-content"};!function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===l&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("\n.p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n}\n.p-inplace .p-inplace-content {\n display: inline;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n}\n"),c.render=function(e,t,l,i,o,a){const s=n.resolveComponent("IPButton"),c=n.resolveDirective("focustrap");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(a.containerClass),"aria-live":"polite"},[o.d_active?(n.openBlock(),n.createElementBlock("div",r,[n.renderSlot(e.$slots,"content"),l.closable?(n.openBlock(),n.createBlock(s,n.mergeProps({key:0,"aria-label":a.closeAriaLabel,onClick:a.close},l.closeButtonProps),{icon:n.withCtx((()=>[n.renderSlot(e.$slots,"closeicon",{},(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(l.closeIcon?"span":"TimesIcon"),{class:n.normalizeClass(l.closeIcon)},null,8,["class"]))]))])),_:3},16,["aria-label","onClick"])):n.createCommentVNode("",!0)])):(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,ref:"display",class:a.displayClass,tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=(...e)=>a.open&&a.open(...e)),onKeydown:t[1]||(t[1]=n.withKeys(((...e)=>a.open&&a.open(...e)),["enter"]))},l.displayProps),[n.renderSlot(e.$slots,"display")],16,p))],2)),[[c]])},module.exports=c;
1
+ "use strict";var e=require("primevue/basecomponent"),t=require("primevue/button"),n=require("primevue/focustrap"),o=require("primevue/icons/times"),l=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),s=i(t),c=i(n),p=i(o),r={name:"Inplace",extends:a.default,emits:["open","close","update:active"],props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},data(){return{d_active:this.active}},watch:{active(e){this.d_active=e}},methods:{open(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close(e){this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((()=>{this.$refs.display.focus()}),0)}},computed:{containerClass(){return["p-inplace p-component",{"p-inplace-closable":this.closable}]},displayClass(){return["p-inplace-display",{"p-disabled":this.disabled}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:s.default,TimesIcon:p.default},directives:{focustrap:c.default}};const d=["tabindex"];!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n}\n.p-inplace .p-inplace-content {\n display: inline;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n}\n"),r.render=function(e,t,n,o,i,a){const s=l.resolveComponent("IPButton"),c=l.resolveDirective("focustrap");return l.withDirectives((l.openBlock(),l.createElementBlock("div",l.mergeProps({class:a.containerClass,"aria-live":"polite"},e.ptm("root")),[i.d_active?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,class:"p-inplace-content"},e.ptm("content")),[l.renderSlot(e.$slots,"content"),n.closable?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,"aria-label":a.closeAriaLabel,onClick:a.close,pt:e.ptm("closeButton")},n.closeButtonProps),{icon:l.withCtx((()=>[l.renderSlot(e.$slots,"closeicon",{},(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.closeIcon?"span":"TimesIcon"),l.mergeProps({class:n.closeIcon},e.ptm("closeButton").icon),null,16,["class"]))]))])),_:3},16,["aria-label","onClick","pt"])):l.createCommentVNode("",!0)],16)):(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:"display",class:a.displayClass,tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=(...e)=>a.open&&a.open(...e)),onKeydown:t[1]||(t[1]=l.withKeys(((...e)=>a.open&&a.open(...e)),["enter"]))},{...n.displayProps,...e.ptm("display")}),[l.renderSlot(e.$slots,"display")],16,d))],16)),[[c]])},module.exports=r;
@@ -1,10 +1,12 @@
1
+ import BaseComponent from 'primevue/basecomponent';
1
2
  import Button from 'primevue/button';
2
3
  import FocusTrap from 'primevue/focustrap';
3
4
  import TimesIcon from 'primevue/icons/times';
4
- import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, mergeProps, withKeys, renderSlot, createBlock, withCtx, resolveDynamicComponent, createCommentVNode } from 'vue';
5
+ import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, mergeProps, withKeys, renderSlot, createBlock, withCtx, resolveDynamicComponent, createCommentVNode } from 'vue';
5
6
 
6
7
  var script = {
7
8
  name: 'Inplace',
9
+ extends: BaseComponent,
8
10
  emits: ['open', 'close', 'update:active'],
9
11
  props: {
10
12
  closable: {
@@ -82,19 +84,15 @@ var script = {
82
84
  };
83
85
 
84
86
  const _hoisted_1 = ["tabindex"];
85
- const _hoisted_2 = {
86
- key: 1,
87
- class: "p-inplace-content"
88
- };
89
87
 
90
88
  function render(_ctx, _cache, $props, $setup, $data, $options) {
91
89
  const _component_IPButton = resolveComponent("IPButton");
92
90
  const _directive_focustrap = resolveDirective("focustrap");
93
91
 
94
- return withDirectives((openBlock(), createElementBlock("div", {
95
- class: normalizeClass($options.containerClass),
92
+ return withDirectives((openBlock(), createElementBlock("div", mergeProps({
93
+ class: $options.containerClass,
96
94
  "aria-live": "polite"
97
- }, [
95
+ }, _ctx.ptm('root')), [
98
96
  (!$data.d_active)
99
97
  ? (openBlock(), createElementBlock("div", mergeProps({
100
98
  key: 0,
@@ -104,29 +102,31 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
104
102
  role: "button",
105
103
  onClick: _cache[0] || (_cache[0] = (...args) => ($options.open && $options.open(...args))),
106
104
  onKeydown: _cache[1] || (_cache[1] = withKeys((...args) => ($options.open && $options.open(...args)), ["enter"]))
107
- }, $props.displayProps), [
105
+ }, { ...$props.displayProps, ..._ctx.ptm('display') }), [
108
106
  renderSlot(_ctx.$slots, "display")
109
107
  ], 16, _hoisted_1))
110
- : (openBlock(), createElementBlock("div", _hoisted_2, [
108
+ : (openBlock(), createElementBlock("div", mergeProps({
109
+ key: 1,
110
+ class: "p-inplace-content"
111
+ }, _ctx.ptm('content')), [
111
112
  renderSlot(_ctx.$slots, "content"),
112
113
  ($props.closable)
113
114
  ? (openBlock(), createBlock(_component_IPButton, mergeProps({
114
115
  key: 0,
115
116
  "aria-label": $options.closeAriaLabel,
116
- onClick: $options.close
117
+ onClick: $options.close,
118
+ pt: _ctx.ptm('closeButton')
117
119
  }, $props.closeButtonProps), {
118
120
  icon: withCtx(() => [
119
121
  renderSlot(_ctx.$slots, "closeicon", {}, () => [
120
- (openBlock(), createBlock(resolveDynamicComponent($props.closeIcon ? 'span' : 'TimesIcon'), {
121
- class: normalizeClass($props.closeIcon)
122
- }, null, 8, ["class"]))
122
+ (openBlock(), createBlock(resolveDynamicComponent($props.closeIcon ? 'span' : 'TimesIcon'), mergeProps({ class: $props.closeIcon }, _ctx.ptm('closeButton')['icon']), null, 16, ["class"]))
123
123
  ])
124
124
  ]),
125
125
  _: 3
126
- }, 16, ["aria-label", "onClick"]))
126
+ }, 16, ["aria-label", "onClick", "pt"]))
127
127
  : createCommentVNode("", true)
128
- ]))
129
- ], 2)), [
128
+ ], 16))
129
+ ], 16)), [
130
130
  [_directive_focustrap]
131
131
  ])
132
132
  }
@@ -1 +1 @@
1
- import e from"primevue/button";import t from"primevue/focustrap";import i from"primevue/icons/times";import{resolveComponent as n,resolveDirective as l,withDirectives as a,openBlock as o,createElementBlock as s,normalizeClass as c,mergeProps as p,withKeys as d,renderSlot as r,createBlock as u,withCtx as m,resolveDynamicComponent as f,createCommentVNode as v}from"vue";var y={name:"Inplace",emits:["open","close","update:active"],props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},data(){return{d_active:this.active}},watch:{active(e){this.d_active=e}},methods:{open(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close(e){this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((()=>{this.$refs.display.focus()}),0)}},computed:{containerClass(){return["p-inplace p-component",{"p-inplace-closable":this.closable}]},displayClass(){return["p-inplace-display",{"p-disabled":this.disabled}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:e,TimesIcon:i},directives:{focustrap:t}};const h=["tabindex"],b={key:1,class:"p-inplace-content"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===i&&n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n}\n.p-inplace .p-inplace-content {\n display: inline;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n}\n"),y.render=function(e,t,i,y,C,$){const x=n("IPButton"),B=l("focustrap");return a((o(),s("div",{class:c($.containerClass),"aria-live":"polite"},[C.d_active?(o(),s("div",b,[r(e.$slots,"content"),i.closable?(o(),u(x,p({key:0,"aria-label":$.closeAriaLabel,onClick:$.close},i.closeButtonProps),{icon:m((()=>[r(e.$slots,"closeicon",{},(()=>[(o(),u(f(i.closeIcon?"span":"TimesIcon"),{class:c(i.closeIcon)},null,8,["class"]))]))])),_:3},16,["aria-label","onClick"])):v("",!0)])):(o(),s("div",p({key:0,ref:"display",class:$.displayClass,tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=(...e)=>$.open&&$.open(...e)),onKeydown:t[1]||(t[1]=d(((...e)=>$.open&&$.open(...e)),["enter"]))},i.displayProps),[r(e.$slots,"display")],16,h))],2)),[[B]])};export{y as default};
1
+ import e from"primevue/basecomponent";import t from"primevue/button";import n from"primevue/focustrap";import i from"primevue/icons/times";import{resolveComponent as o,resolveDirective as l,withDirectives as a,openBlock as s,createElementBlock as p,mergeProps as c,withKeys as d,renderSlot as r,createBlock as u,withCtx as m,resolveDynamicComponent as f,createCommentVNode as v}from"vue";var y={name:"Inplace",extends:e,emits:["open","close","update:active"],props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},data(){return{d_active:this.active}},watch:{active(e){this.d_active=e}},methods:{open(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close(e){this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((()=>{this.$refs.display.focus()}),0)}},computed:{containerClass(){return["p-inplace p-component",{"p-inplace-closable":this.closable}]},displayClass(){return["p-inplace-display",{"p-disabled":this.disabled}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:t,TimesIcon:i},directives:{focustrap:n}};const h=["tabindex"];!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n}\n.p-inplace .p-inplace-content {\n display: inline;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n}\n"),y.render=function(e,t,n,i,y,b){const x=o("IPButton"),B=l("focustrap");return a((s(),p("div",c({class:b.containerClass,"aria-live":"polite"},e.ptm("root")),[y.d_active?(s(),p("div",c({key:1,class:"p-inplace-content"},e.ptm("content")),[r(e.$slots,"content"),n.closable?(s(),u(x,c({key:0,"aria-label":b.closeAriaLabel,onClick:b.close,pt:e.ptm("closeButton")},n.closeButtonProps),{icon:m((()=>[r(e.$slots,"closeicon",{},(()=>[(s(),u(f(n.closeIcon?"span":"TimesIcon"),c({class:n.closeIcon},e.ptm("closeButton").icon),null,16,["class"]))]))])),_:3},16,["aria-label","onClick","pt"])):v("",!0)],16)):(s(),p("div",c({key:0,ref:"display",class:b.displayClass,tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=(...e)=>b.open&&b.open(...e)),onKeydown:t[1]||(t[1]=d(((...e)=>b.open&&b.open(...e)),["enter"]))},{...n.displayProps,...e.ptm("display")}),[r(e.$slots,"display")],16,h))],16)),[[B]])};export{y as default};
@@ -1,15 +1,17 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.inplace = (function (Button, FocusTrap, TimesIcon, vue) {
2
+ this.primevue.inplace = (function (BaseComponent, Button, FocusTrap, TimesIcon, vue) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
6
 
7
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
7
8
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
8
9
  var FocusTrap__default = /*#__PURE__*/_interopDefaultLegacy(FocusTrap);
9
10
  var TimesIcon__default = /*#__PURE__*/_interopDefaultLegacy(TimesIcon);
10
11
 
11
12
  var script = {
12
13
  name: 'Inplace',
14
+ extends: BaseComponent__default["default"],
13
15
  emits: ['open', 'close', 'update:active'],
14
16
  props: {
15
17
  closable: {
@@ -87,19 +89,15 @@ this.primevue.inplace = (function (Button, FocusTrap, TimesIcon, vue) {
87
89
  };
88
90
 
89
91
  const _hoisted_1 = ["tabindex"];
90
- const _hoisted_2 = {
91
- key: 1,
92
- class: "p-inplace-content"
93
- };
94
92
 
95
93
  function render(_ctx, _cache, $props, $setup, $data, $options) {
96
94
  const _component_IPButton = vue.resolveComponent("IPButton");
97
95
  const _directive_focustrap = vue.resolveDirective("focustrap");
98
96
 
99
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
100
- class: vue.normalizeClass($options.containerClass),
97
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
98
+ class: $options.containerClass,
101
99
  "aria-live": "polite"
102
- }, [
100
+ }, _ctx.ptm('root')), [
103
101
  (!$data.d_active)
104
102
  ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
105
103
  key: 0,
@@ -109,29 +107,31 @@ this.primevue.inplace = (function (Button, FocusTrap, TimesIcon, vue) {
109
107
  role: "button",
110
108
  onClick: _cache[0] || (_cache[0] = (...args) => ($options.open && $options.open(...args))),
111
109
  onKeydown: _cache[1] || (_cache[1] = vue.withKeys((...args) => ($options.open && $options.open(...args)), ["enter"]))
112
- }, $props.displayProps), [
110
+ }, { ...$props.displayProps, ..._ctx.ptm('display') }), [
113
111
  vue.renderSlot(_ctx.$slots, "display")
114
112
  ], 16, _hoisted_1))
115
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
113
+ : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
114
+ key: 1,
115
+ class: "p-inplace-content"
116
+ }, _ctx.ptm('content')), [
116
117
  vue.renderSlot(_ctx.$slots, "content"),
117
118
  ($props.closable)
118
119
  ? (vue.openBlock(), vue.createBlock(_component_IPButton, vue.mergeProps({
119
120
  key: 0,
120
121
  "aria-label": $options.closeAriaLabel,
121
- onClick: $options.close
122
+ onClick: $options.close,
123
+ pt: _ctx.ptm('closeButton')
122
124
  }, $props.closeButtonProps), {
123
125
  icon: vue.withCtx(() => [
124
126
  vue.renderSlot(_ctx.$slots, "closeicon", {}, () => [
125
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.closeIcon ? 'span' : 'TimesIcon'), {
126
- class: vue.normalizeClass($props.closeIcon)
127
- }, null, 8, ["class"]))
127
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.closeIcon ? 'span' : 'TimesIcon'), vue.mergeProps({ class: $props.closeIcon }, _ctx.ptm('closeButton')['icon']), null, 16, ["class"]))
128
128
  ])
129
129
  ]),
130
130
  _: 3
131
- }, 16, ["aria-label", "onClick"]))
131
+ }, 16, ["aria-label", "onClick", "pt"]))
132
132
  : vue.createCommentVNode("", true)
133
- ]))
134
- ], 2)), [
133
+ ], 16))
134
+ ], 16)), [
135
135
  [_directive_focustrap]
136
136
  ])
137
137
  }
@@ -170,4 +170,4 @@ this.primevue.inplace = (function (Button, FocusTrap, TimesIcon, vue) {
170
170
 
171
171
  return script;
172
172
 
173
- })(primevue.button, primevue.focustrap, primevue.icons.times, Vue);
173
+ })(primevue.basecomponent, primevue.button, primevue.focustrap, primevue.icons.times, Vue);
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.inplace=function(e,t,n,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(e),a=i(t),s=i(n),c={name:"Inplace",emits:["open","close","update:active"],props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},data(){return{d_active:this.active}},watch:{active(e){this.d_active=e}},methods:{open(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close(e){this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((()=>{this.$refs.display.focus()}),0)}},computed:{containerClass(){return["p-inplace p-component",{"p-inplace-closable":this.closable}]},displayClass(){return["p-inplace-display",{"p-disabled":this.disabled}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:o.default,TimesIcon:s.default},directives:{focustrap:a.default}};const p=["tabindex"],r={key:1,class:"p-inplace-content"};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&l.firstChild?l.insertBefore(i,l.firstChild):l.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("\n.p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n}\n.p-inplace .p-inplace-content {\n display: inline;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n}\n"),c.render=function(e,t,n,i,o,a){const s=l.resolveComponent("IPButton"),c=l.resolveDirective("focustrap");return l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(a.containerClass),"aria-live":"polite"},[o.d_active?(l.openBlock(),l.createElementBlock("div",r,[l.renderSlot(e.$slots,"content"),n.closable?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,"aria-label":a.closeAriaLabel,onClick:a.close},n.closeButtonProps),{icon:l.withCtx((()=>[l.renderSlot(e.$slots,"closeicon",{},(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.closeIcon?"span":"TimesIcon"),{class:l.normalizeClass(n.closeIcon)},null,8,["class"]))]))])),_:3},16,["aria-label","onClick"])):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:"display",class:a.displayClass,tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=(...e)=>a.open&&a.open(...e)),onKeydown:t[1]||(t[1]=l.withKeys(((...e)=>a.open&&a.open(...e)),["enter"]))},n.displayProps),[l.renderSlot(e.$slots,"display")],16,p))],2)),[[c]])},c}(primevue.button,primevue.focustrap,primevue.icons.times,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.inplace=function(e,t,n,o,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),s=i(t),c=i(n),p=i(o),r={name:"Inplace",extends:a.default,emits:["open","close","update:active"],props:{closable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeIcon:{type:String,default:void 0},displayProps:{type:null,default:null},closeButtonProps:{type:null,default:null}},data(){return{d_active:this.active}},watch:{active(e){this.d_active=e}},methods:{open(e){this.disabled||(this.$emit("open",e),this.d_active=!0,this.$emit("update:active",!0))},close(e){this.$emit("close",e),this.d_active=!1,this.$emit("update:active",!1),setTimeout((()=>{this.$refs.display.focus()}),0)}},computed:{containerClass(){return["p-inplace p-component",{"p-inplace-closable":this.closable}]},displayClass(){return["p-inplace-display",{"p-disabled":this.disabled}]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{IPButton:s.default,TimesIcon:p.default},directives:{focustrap:c.default}};const d=["tabindex"];return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n}\n.p-inplace .p-inplace-content {\n display: inline;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n}\n.p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n}\n"),r.render=function(e,t,n,o,i,a){const s=l.resolveComponent("IPButton"),c=l.resolveDirective("focustrap");return l.withDirectives((l.openBlock(),l.createElementBlock("div",l.mergeProps({class:a.containerClass,"aria-live":"polite"},e.ptm("root")),[i.d_active?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,class:"p-inplace-content"},e.ptm("content")),[l.renderSlot(e.$slots,"content"),n.closable?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,"aria-label":a.closeAriaLabel,onClick:a.close,pt:e.ptm("closeButton")},n.closeButtonProps),{icon:l.withCtx((()=>[l.renderSlot(e.$slots,"closeicon",{},(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.closeIcon?"span":"TimesIcon"),l.mergeProps({class:n.closeIcon},e.ptm("closeButton").icon),null,16,["class"]))]))])),_:3},16,["aria-label","onClick","pt"])):l.createCommentVNode("",!0)],16)):(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:"display",class:a.displayClass,tabindex:e.$attrs.tabindex||"0",role:"button",onClick:t[0]||(t[0]=(...e)=>a.open&&a.open(...e)),onKeydown:t[1]||(t[1]=l.withKeys(((...e)=>a.open&&a.open(...e)),["enter"]))},{...n.displayProps,...e.ptm("display")}),[l.renderSlot(e.$slots,"display")],16,d))],16)),[[c]])},r}(primevue.basecomponent,primevue.button,primevue.focustrap,primevue.icons.times,Vue);