primevue 3.31.0 → 3.32.1

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 (606) hide show
  1. package/accordion/Accordion.d.ts +7 -7
  2. package/accordion/Accordion.vue +1 -1
  3. package/accordion/accordion.cjs.js +3 -3
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +3 -3
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +3 -3
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/AccordionTab.d.ts +22 -15
  10. package/autocomplete/AutoComplete.d.ts +50 -29
  11. package/autocomplete/AutoComplete.vue +4 -4
  12. package/autocomplete/BaseAutoComplete.vue +4 -0
  13. package/autocomplete/autocomplete.cjs.js +10 -5
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.esm.js +10 -5
  16. package/autocomplete/autocomplete.esm.min.js +1 -1
  17. package/autocomplete/autocomplete.js +10 -5
  18. package/autocomplete/autocomplete.min.js +1 -1
  19. package/avatar/Avatar.d.ts +9 -9
  20. package/avatar/Avatar.vue +2 -2
  21. package/avatar/avatar.cjs.js +2 -2
  22. package/avatar/avatar.cjs.min.js +1 -1
  23. package/avatar/avatar.esm.js +2 -2
  24. package/avatar/avatar.esm.min.js +1 -1
  25. package/avatar/avatar.js +2 -2
  26. package/avatar/avatar.min.js +1 -1
  27. package/avatargroup/AvatarGroup.d.ts +5 -5
  28. package/badge/Badge.d.ts +5 -5
  29. package/badgedirective/BadgeDirective.d.ts +47 -5
  30. package/badgedirective/badgedirective.cjs.js +11 -1
  31. package/badgedirective/badgedirective.cjs.min.js +1 -1
  32. package/badgedirective/badgedirective.esm.js +11 -1
  33. package/badgedirective/badgedirective.esm.min.js +1 -1
  34. package/badgedirective/badgedirective.js +11 -1
  35. package/badgedirective/badgedirective.min.js +1 -1
  36. package/basecomponent/BaseComponent.vue +111 -30
  37. package/basecomponent/basecomponent.cjs.js +133 -51
  38. package/basecomponent/basecomponent.cjs.min.js +1 -1
  39. package/basecomponent/basecomponent.esm.js +133 -51
  40. package/basecomponent/basecomponent.esm.min.js +1 -1
  41. package/basecomponent/basecomponent.js +133 -51
  42. package/basecomponent/basecomponent.min.js +1 -1
  43. package/basedirective/basedirective.cjs.js +56 -10
  44. package/basedirective/basedirective.cjs.min.js +1 -1
  45. package/basedirective/basedirective.esm.js +56 -10
  46. package/basedirective/basedirective.esm.min.js +1 -1
  47. package/basedirective/basedirective.js +56 -10
  48. package/basedirective/basedirective.min.js +1 -1
  49. package/baseicon/BaseIcon.vue +44 -32
  50. package/baseicon/baseicon.cjs.js +19 -30
  51. package/baseicon/baseicon.cjs.min.js +1 -1
  52. package/baseicon/baseicon.esm.js +19 -30
  53. package/baseicon/baseicon.esm.min.js +1 -1
  54. package/baseicon/baseicon.js +20 -32
  55. package/baseicon/baseicon.min.js +1 -1
  56. package/blockui/BaseBlockUI.vue +0 -8
  57. package/blockui/BlockUI.d.ts +9 -5
  58. package/blockui/BlockUI.vue +35 -10
  59. package/blockui/blockui.cjs.js +34 -12
  60. package/blockui/blockui.cjs.min.js +1 -1
  61. package/blockui/blockui.esm.js +34 -12
  62. package/blockui/blockui.esm.min.js +1 -1
  63. package/blockui/blockui.js +34 -12
  64. package/blockui/blockui.min.js +1 -1
  65. package/breadcrumb/Breadcrumb.d.ts +12 -12
  66. package/button/Button.d.ts +10 -9
  67. package/button/Button.vue +6 -2
  68. package/button/button.cjs.js +7 -2
  69. package/button/button.cjs.min.js +1 -1
  70. package/button/button.esm.js +7 -2
  71. package/button/button.esm.min.js +1 -1
  72. package/button/button.js +7 -2
  73. package/button/button.min.js +1 -1
  74. package/calendar/Calendar.d.ts +131 -55
  75. package/calendar/Calendar.vue +54 -11
  76. package/calendar/calendar.cjs.js +79 -41
  77. package/calendar/calendar.cjs.min.js +1 -1
  78. package/calendar/calendar.esm.js +79 -41
  79. package/calendar/calendar.esm.min.js +1 -1
  80. package/calendar/calendar.js +79 -41
  81. package/calendar/calendar.min.js +1 -1
  82. package/card/Card.d.ts +11 -11
  83. package/carousel/Carousel.d.ts +34 -22
  84. package/carousel/Carousel.vue +12 -3
  85. package/carousel/carousel.cjs.js +15 -5
  86. package/carousel/carousel.cjs.min.js +1 -1
  87. package/carousel/carousel.esm.js +15 -5
  88. package/carousel/carousel.esm.min.js +1 -1
  89. package/carousel/carousel.js +15 -5
  90. package/carousel/carousel.min.js +1 -1
  91. package/cascadeselect/CascadeSelect.d.ts +27 -21
  92. package/cascadeselect/CascadeSelect.vue +1 -1
  93. package/cascadeselect/cascadeselect.cjs.js +3 -3
  94. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  95. package/cascadeselect/cascadeselect.esm.js +3 -3
  96. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  97. package/cascadeselect/cascadeselect.js +3 -3
  98. package/cascadeselect/cascadeselect.min.js +1 -1
  99. package/chart/Chart.d.ts +7 -7
  100. package/checkbox/Checkbox.d.ts +10 -10
  101. package/chip/Chip.d.ts +13 -11
  102. package/chips/Chips.d.ts +23 -14
  103. package/chips/Chips.vue +1 -1
  104. package/chips/chips.cjs.js +1 -0
  105. package/chips/chips.cjs.min.js +1 -1
  106. package/chips/chips.esm.js +1 -0
  107. package/chips/chips.esm.min.js +1 -1
  108. package/chips/chips.js +1 -0
  109. package/chips/chips.min.js +1 -1
  110. package/colorpicker/ColorPicker.d.ts +20 -13
  111. package/colorpicker/ColorPicker.vue +2 -41
  112. package/colorpicker/colorpicker.cjs.js +11 -50
  113. package/colorpicker/colorpicker.cjs.min.js +1 -1
  114. package/colorpicker/colorpicker.esm.js +11 -50
  115. package/colorpicker/colorpicker.esm.min.js +1 -1
  116. package/colorpicker/colorpicker.js +11 -50
  117. package/colorpicker/colorpicker.min.js +1 -1
  118. package/column/Column.d.ts +71 -68
  119. package/columngroup/ColumnGroup.d.ts +5 -5
  120. package/config/PrimeVue.d.ts +10 -2
  121. package/config/config.cjs.js +4 -1
  122. package/config/config.cjs.min.js +1 -1
  123. package/config/config.esm.js +4 -1
  124. package/config/config.esm.min.js +1 -1
  125. package/config/config.js +4 -1
  126. package/config/config.min.js +1 -1
  127. package/confirmdialog/ConfirmDialog.d.ts +17 -16
  128. package/confirmpopup/ConfirmPopup.d.ts +19 -12
  129. package/confirmpopup/ConfirmPopup.vue +1 -1
  130. package/confirmpopup/confirmpopup.cjs.js +3 -3
  131. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  132. package/confirmpopup/confirmpopup.esm.js +4 -4
  133. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  134. package/confirmpopup/confirmpopup.js +3 -3
  135. package/confirmpopup/confirmpopup.min.js +1 -1
  136. package/contextmenu/ContextMenu.d.ts +22 -15
  137. package/contextmenu/ContextMenu.vue +1 -1
  138. package/contextmenu/ContextMenuSub.vue +1 -1
  139. package/contextmenu/contextmenu.cjs.js +6 -6
  140. package/contextmenu/contextmenu.cjs.min.js +1 -1
  141. package/contextmenu/contextmenu.esm.js +7 -7
  142. package/contextmenu/contextmenu.esm.min.js +1 -1
  143. package/contextmenu/contextmenu.js +6 -6
  144. package/contextmenu/contextmenu.min.js +1 -1
  145. package/core/core.js +2082 -1386
  146. package/core/core.min.js +19 -17
  147. package/datatable/BaseDataTable.vue +1 -1
  148. package/datatable/BodyCell.vue +1 -0
  149. package/datatable/ColumnFilter.vue +1 -1
  150. package/datatable/DataTable.d.ts +41 -33
  151. package/datatable/DataTable.vue +47 -15
  152. package/datatable/TableBody.vue +1 -1
  153. package/datatable/datatable.cjs.js +125 -77
  154. package/datatable/datatable.cjs.min.js +1 -1
  155. package/datatable/datatable.esm.js +125 -77
  156. package/datatable/datatable.esm.min.js +1 -1
  157. package/datatable/datatable.js +125 -77
  158. package/datatable/datatable.min.js +1 -1
  159. package/dataview/DataView.d.ts +12 -12
  160. package/dataview/DataView.vue +2 -1
  161. package/dataview/dataview.cjs.js +4 -3
  162. package/dataview/dataview.cjs.min.js +1 -1
  163. package/dataview/dataview.esm.js +4 -3
  164. package/dataview/dataview.esm.min.js +1 -1
  165. package/dataview/dataview.js +4 -3
  166. package/dataview/dataview.min.js +1 -1
  167. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +9 -9
  168. package/deferredcontent/DeferredContent.d.ts +5 -5
  169. package/dialog/BaseDialog.vue +3 -7
  170. package/dialog/Dialog.d.ts +23 -17
  171. package/dialog/Dialog.vue +10 -6
  172. package/dialog/dialog.cjs.js +17 -11
  173. package/dialog/dialog.cjs.min.js +1 -1
  174. package/dialog/dialog.esm.js +17 -11
  175. package/dialog/dialog.esm.min.js +1 -1
  176. package/dialog/dialog.js +17 -11
  177. package/dialog/dialog.min.js +1 -1
  178. package/divider/BaseDivider.vue +9 -24
  179. package/divider/Divider.d.ts +6 -6
  180. package/divider/Divider.vue +1 -1
  181. package/divider/divider.cjs.js +15 -2
  182. package/divider/divider.cjs.min.js +1 -1
  183. package/divider/divider.esm.js +15 -2
  184. package/divider/divider.esm.min.js +1 -1
  185. package/divider/divider.js +15 -2
  186. package/divider/divider.min.js +1 -1
  187. package/dock/BaseDock.vue +1 -1
  188. package/dock/Dock.d.ts +11 -11
  189. package/dock/Dock.vue +19 -2
  190. package/dock/dock.cjs.js +10 -4
  191. package/dock/dock.cjs.min.js +1 -1
  192. package/dock/dock.esm.js +10 -4
  193. package/dock/dock.esm.min.js +1 -1
  194. package/dock/dock.js +10 -4
  195. package/dock/dock.min.js +1 -1
  196. package/dropdown/BaseDropdown.vue +5 -5
  197. package/dropdown/Dropdown.d.ts +55 -38
  198. package/dropdown/Dropdown.vue +11 -2
  199. package/dropdown/dropdown.cjs.js +17 -9
  200. package/dropdown/dropdown.cjs.min.js +1 -1
  201. package/dropdown/dropdown.esm.js +17 -9
  202. package/dropdown/dropdown.esm.min.js +1 -1
  203. package/dropdown/dropdown.js +17 -9
  204. package/dropdown/dropdown.min.js +1 -1
  205. package/editor/BaseEditor.vue +0 -14
  206. package/editor/Editor.d.ts +21 -21
  207. package/editor/Editor.vue +20 -20
  208. package/editor/editor.cjs.js +20 -34
  209. package/editor/editor.cjs.min.js +1 -1
  210. package/editor/editor.esm.js +20 -34
  211. package/editor/editor.esm.min.js +1 -1
  212. package/editor/editor.js +20 -34
  213. package/editor/editor.min.js +1 -1
  214. package/fieldset/Fieldset.d.ts +19 -13
  215. package/fieldset/Fieldset.vue +1 -1
  216. package/fieldset/fieldset.cjs.js +3 -3
  217. package/fieldset/fieldset.cjs.min.js +1 -1
  218. package/fieldset/fieldset.esm.js +3 -3
  219. package/fieldset/fieldset.esm.min.js +1 -1
  220. package/fieldset/fieldset.js +3 -3
  221. package/fieldset/fieldset.min.js +1 -1
  222. package/fileupload/FileUpload.d.ts +36 -31
  223. package/fileupload/FileUpload.vue +8 -4
  224. package/fileupload/fileupload.cjs.js +14 -4
  225. package/fileupload/fileupload.cjs.min.js +1 -1
  226. package/fileupload/fileupload.esm.js +14 -4
  227. package/fileupload/fileupload.esm.min.js +1 -1
  228. package/fileupload/fileupload.js +15 -6
  229. package/fileupload/fileupload.min.js +1 -1
  230. package/focustrap/FocusTrap.d.ts +7 -6
  231. package/galleria/Galleria.d.ts +55 -36
  232. package/galleria/Galleria.vue +1 -1
  233. package/galleria/GalleriaItem.vue +11 -4
  234. package/galleria/GalleriaThumbnails.vue +6 -1
  235. package/galleria/galleria.cjs.js +30 -12
  236. package/galleria/galleria.cjs.min.js +1 -1
  237. package/galleria/galleria.esm.js +30 -12
  238. package/galleria/galleria.esm.min.js +1 -1
  239. package/galleria/galleria.js +30 -12
  240. package/galleria/galleria.min.js +1 -1
  241. package/image/Image.d.ts +34 -25
  242. package/image/Image.vue +10 -8
  243. package/image/image.cjs.js +22 -8
  244. package/image/image.cjs.min.js +1 -1
  245. package/image/image.esm.js +23 -9
  246. package/image/image.esm.min.js +1 -1
  247. package/image/image.js +22 -8
  248. package/image/image.min.js +1 -1
  249. package/inlinemessage/InlineMessage.d.ts +7 -7
  250. package/inplace/Inplace.d.ts +10 -10
  251. package/inputmask/InputMask.d.ts +34 -6
  252. package/inputmask/InputMask.vue +9 -1
  253. package/inputmask/inputmask.cjs.js +9 -1
  254. package/inputmask/inputmask.cjs.min.js +1 -1
  255. package/inputmask/inputmask.esm.js +9 -1
  256. package/inputmask/inputmask.esm.min.js +1 -1
  257. package/inputmask/inputmask.js +9 -1
  258. package/inputmask/inputmask.min.js +1 -1
  259. package/inputnumber/InputNumber.d.ts +12 -12
  260. package/inputswitch/InputSwitch.d.ts +9 -9
  261. package/inputtext/InputText.d.ts +5 -5
  262. package/knob/Knob.d.ts +9 -9
  263. package/listbox/Listbox.d.ts +22 -22
  264. package/megamenu/MegaMenu.d.ts +21 -20
  265. package/megamenu/MegaMenuSub.vue +1 -0
  266. package/megamenu/megamenu.cjs.js +2 -1
  267. package/megamenu/megamenu.cjs.min.js +1 -1
  268. package/megamenu/megamenu.esm.js +2 -1
  269. package/megamenu/megamenu.esm.min.js +1 -1
  270. package/megamenu/megamenu.js +2 -1
  271. package/megamenu/megamenu.min.js +1 -1
  272. package/menu/Menu.d.ts +22 -16
  273. package/menu/Menu.vue +1 -1
  274. package/menu/menu.cjs.js +3 -3
  275. package/menu/menu.cjs.min.js +1 -1
  276. package/menu/menu.esm.js +3 -3
  277. package/menu/menu.esm.min.js +1 -1
  278. package/menu/menu.js +3 -3
  279. package/menu/menu.min.js +1 -1
  280. package/menubar/Menubar.d.ts +24 -19
  281. package/menubar/MenubarSub.vue +3 -1
  282. package/menubar/menubar.cjs.js +4 -2
  283. package/menubar/menubar.cjs.min.js +1 -1
  284. package/menubar/menubar.esm.js +4 -2
  285. package/menubar/menubar.esm.min.js +1 -1
  286. package/menubar/menubar.js +4 -2
  287. package/menubar/menubar.min.js +1 -1
  288. package/message/BaseMessage.vue +5 -0
  289. package/message/Message.d.ts +22 -14
  290. package/message/Message.vue +1 -1
  291. package/message/message.cjs.js +4 -4
  292. package/message/message.cjs.min.js +1 -1
  293. package/message/message.esm.js +5 -5
  294. package/message/message.esm.min.js +1 -1
  295. package/message/message.js +4 -4
  296. package/message/message.min.js +1 -1
  297. package/multiselect/MultiSelect.d.ts +63 -47
  298. package/multiselect/MultiSelect.vue +2 -2
  299. package/multiselect/multiselect.cjs.js +4 -3
  300. package/multiselect/multiselect.cjs.min.js +1 -1
  301. package/multiselect/multiselect.esm.js +4 -3
  302. package/multiselect/multiselect.esm.min.js +1 -1
  303. package/multiselect/multiselect.js +4 -3
  304. package/multiselect/multiselect.min.js +1 -1
  305. package/orderlist/OrderList.d.ts +26 -20
  306. package/orderlist/OrderList.vue +2 -1
  307. package/orderlist/orderlist.cjs.js +3 -1
  308. package/orderlist/orderlist.cjs.min.js +1 -1
  309. package/orderlist/orderlist.esm.js +3 -1
  310. package/orderlist/orderlist.esm.min.js +1 -1
  311. package/orderlist/orderlist.js +3 -1
  312. package/orderlist/orderlist.min.js +1 -1
  313. package/organizationchart/OrganizationChart.d.ts +17 -17
  314. package/overlaypanel/OverlayPanel.d.ts +15 -9
  315. package/overlaypanel/OverlayPanel.vue +2 -1
  316. package/overlaypanel/overlaypanel.cjs.js +5 -3
  317. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  318. package/overlaypanel/overlaypanel.esm.js +6 -4
  319. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  320. package/overlaypanel/overlaypanel.js +5 -3
  321. package/overlaypanel/overlaypanel.min.js +1 -1
  322. package/package.json +15 -15
  323. package/paginator/Paginator.d.ts +22 -22
  324. package/paginator/Paginator.vue +2 -1
  325. package/paginator/paginator.cjs.js +2 -0
  326. package/paginator/paginator.cjs.min.js +1 -1
  327. package/paginator/paginator.esm.js +3 -1
  328. package/paginator/paginator.esm.min.js +1 -1
  329. package/paginator/paginator.js +2 -0
  330. package/paginator/paginator.min.js +1 -1
  331. package/panel/Panel.d.ts +22 -15
  332. package/panel/Panel.vue +1 -1
  333. package/panel/panel.cjs.js +3 -3
  334. package/panel/panel.cjs.min.js +1 -1
  335. package/panel/panel.esm.js +3 -3
  336. package/panel/panel.esm.min.js +1 -1
  337. package/panel/panel.js +3 -3
  338. package/panel/panel.min.js +1 -1
  339. package/panelmenu/PanelMenu.d.ts +30 -23
  340. package/panelmenu/PanelMenu.vue +1 -1
  341. package/panelmenu/PanelMenuSub.vue +1 -1
  342. package/panelmenu/panelmenu.cjs.js +6 -6
  343. package/panelmenu/panelmenu.cjs.min.js +1 -1
  344. package/panelmenu/panelmenu.esm.js +6 -6
  345. package/panelmenu/panelmenu.esm.min.js +1 -1
  346. package/panelmenu/panelmenu.js +6 -6
  347. package/panelmenu/panelmenu.min.js +1 -1
  348. package/passthrough/index.cjs.js +30 -0
  349. package/passthrough/index.cjs.min.js +1 -0
  350. package/passthrough/index.d.ts +6 -0
  351. package/passthrough/index.esm.js +26 -0
  352. package/passthrough/index.esm.min.js +1 -0
  353. package/passthrough/index.js +36 -0
  354. package/passthrough/index.min.js +1 -0
  355. package/passthrough/package.json +6 -0
  356. package/{tailwind/tailwind.cjs.js → passthrough/tailwind/index.cjs.js} +1282 -834
  357. package/passthrough/tailwind/index.cjs.min.js +1 -0
  358. package/passthrough/tailwind/index.d.ts +4 -0
  359. package/{tailwind/tailwind.esm.js → passthrough/tailwind/index.esm.js} +1279 -834
  360. package/passthrough/tailwind/index.esm.min.js +1 -0
  361. package/{tailwind/tailwind.js → passthrough/tailwind/index.js} +1287 -836
  362. package/passthrough/tailwind/index.min.js +1 -0
  363. package/passthrough/tailwind/package.json +6 -0
  364. package/password/Password.d.ts +31 -18
  365. package/password/Password.vue +3 -1
  366. package/password/password.cjs.js +6 -4
  367. package/password/password.cjs.min.js +1 -1
  368. package/password/password.esm.js +6 -4
  369. package/password/password.esm.min.js +1 -1
  370. package/password/password.js +6 -4
  371. package/password/password.min.js +1 -1
  372. package/picklist/PickList.d.ts +44 -38
  373. package/picklist/PickList.vue +12 -9
  374. package/picklist/picklist.cjs.js +29 -9
  375. package/picklist/picklist.cjs.min.js +1 -1
  376. package/picklist/picklist.esm.js +29 -9
  377. package/picklist/picklist.esm.min.js +1 -1
  378. package/picklist/picklist.js +29 -9
  379. package/picklist/picklist.min.js +1 -1
  380. package/progressbar/ProgressBar.d.ts +7 -7
  381. package/progressspinner/ProgressSpinner.d.ts +7 -7
  382. package/radiobutton/RadioButton.d.ts +11 -11
  383. package/rating/Rating.d.ts +15 -14
  384. package/rating/Rating.vue +3 -3
  385. package/rating/rating.cjs.js +3 -3
  386. package/rating/rating.cjs.min.js +1 -1
  387. package/rating/rating.esm.js +3 -3
  388. package/rating/rating.esm.min.js +1 -1
  389. package/rating/rating.js +3 -3
  390. package/rating/rating.min.js +1 -1
  391. package/resources/themes/arya-blue/theme.css +11 -0
  392. package/resources/themes/arya-green/theme.css +11 -0
  393. package/resources/themes/arya-orange/theme.css +11 -0
  394. package/resources/themes/arya-purple/theme.css +11 -0
  395. package/resources/themes/bootstrap4-dark-blue/theme.css +15 -0
  396. package/resources/themes/bootstrap4-dark-purple/theme.css +15 -0
  397. package/resources/themes/bootstrap4-light-blue/theme.css +15 -0
  398. package/resources/themes/bootstrap4-light-purple/theme.css +15 -0
  399. package/resources/themes/fluent-light/theme.css +11 -0
  400. package/resources/themes/lara-dark-blue/theme.css +11 -0
  401. package/resources/themes/lara-dark-indigo/theme.css +11 -0
  402. package/resources/themes/lara-dark-purple/theme.css +11 -0
  403. package/resources/themes/lara-dark-teal/theme.css +11 -0
  404. package/resources/themes/lara-light-blue/theme.css +11 -0
  405. package/resources/themes/lara-light-indigo/theme.css +11 -0
  406. package/resources/themes/lara-light-purple/theme.css +11 -0
  407. package/resources/themes/lara-light-teal/theme.css +11 -0
  408. package/resources/themes/luna-amber/theme.css +11 -0
  409. package/resources/themes/luna-blue/theme.css +11 -0
  410. package/resources/themes/luna-green/theme.css +11 -0
  411. package/resources/themes/luna-pink/theme.css +11 -0
  412. package/resources/themes/md-dark-deeppurple/theme.css +11 -0
  413. package/resources/themes/md-dark-indigo/theme.css +11 -0
  414. package/resources/themes/md-light-deeppurple/theme.css +11 -0
  415. package/resources/themes/md-light-indigo/theme.css +11 -0
  416. package/resources/themes/mdc-dark-deeppurple/theme.css +11 -0
  417. package/resources/themes/mdc-dark-indigo/theme.css +11 -0
  418. package/resources/themes/mdc-light-deeppurple/theme.css +11 -0
  419. package/resources/themes/mdc-light-indigo/theme.css +11 -0
  420. package/resources/themes/mira/theme.css +11 -0
  421. package/resources/themes/nano/theme.css +11 -0
  422. package/resources/themes/nova/theme.css +11 -0
  423. package/resources/themes/nova-accent/theme.css +11 -0
  424. package/resources/themes/nova-alt/theme.css +11 -0
  425. package/resources/themes/nova-vue/theme.css +11 -0
  426. package/resources/themes/rhea/theme.css +11 -0
  427. package/resources/themes/saga-blue/theme.css +11 -0
  428. package/resources/themes/saga-green/theme.css +11 -0
  429. package/resources/themes/saga-orange/theme.css +11 -0
  430. package/resources/themes/saga-purple/theme.css +11 -0
  431. package/resources/themes/soho-dark/theme.css +11 -0
  432. package/resources/themes/soho-light/theme.css +11 -0
  433. package/resources/themes/tailwind-light/theme.css +11 -0
  434. package/resources/themes/vela-blue/theme.css +11 -0
  435. package/resources/themes/vela-green/theme.css +11 -0
  436. package/resources/themes/vela-orange/theme.css +11 -0
  437. package/resources/themes/vela-purple/theme.css +11 -0
  438. package/resources/themes/viva-dark/theme.css +11 -0
  439. package/resources/themes/viva-light/theme.css +11 -0
  440. package/ripple/Ripple.d.ts +5 -4
  441. package/row/Row.d.ts +2 -2
  442. package/scrollpanel/ScrollPanel.d.ts +9 -9
  443. package/scrolltop/ScrollTop.d.ts +13 -7
  444. package/scrolltop/ScrollTop.vue +1 -1
  445. package/scrolltop/scrolltop.cjs.js +3 -3
  446. package/scrolltop/scrolltop.cjs.min.js +1 -1
  447. package/scrolltop/scrolltop.esm.js +4 -4
  448. package/scrolltop/scrolltop.esm.min.js +1 -1
  449. package/scrolltop/scrolltop.js +3 -3
  450. package/scrolltop/scrolltop.min.js +1 -1
  451. package/selectbutton/SelectButton.d.ts +11 -7
  452. package/selectbutton/SelectButton.vue +2 -1
  453. package/selectbutton/selectbutton.cjs.js +2 -1
  454. package/selectbutton/selectbutton.cjs.min.js +1 -1
  455. package/selectbutton/selectbutton.esm.js +2 -1
  456. package/selectbutton/selectbutton.esm.min.js +1 -1
  457. package/selectbutton/selectbutton.js +2 -1
  458. package/selectbutton/selectbutton.min.js +1 -1
  459. package/sidebar/Sidebar.d.ts +18 -12
  460. package/sidebar/Sidebar.vue +2 -2
  461. package/sidebar/sidebar.cjs.js +4 -4
  462. package/sidebar/sidebar.cjs.min.js +1 -1
  463. package/sidebar/sidebar.esm.js +4 -4
  464. package/sidebar/sidebar.esm.min.js +1 -1
  465. package/sidebar/sidebar.js +4 -4
  466. package/sidebar/sidebar.min.js +1 -1
  467. package/skeleton/Skeleton.d.ts +5 -5
  468. package/slider/Slider.d.ts +9 -9
  469. package/speeddial/BaseSpeedDial.vue +12 -36
  470. package/speeddial/SpeedDial.d.ts +23 -16
  471. package/speeddial/SpeedDial.vue +6 -5
  472. package/speeddial/speeddial.cjs.js +45 -24
  473. package/speeddial/speeddial.cjs.min.js +1 -1
  474. package/speeddial/speeddial.esm.js +45 -24
  475. package/speeddial/speeddial.esm.min.js +1 -1
  476. package/speeddial/speeddial.js +45 -24
  477. package/speeddial/speeddial.min.js +1 -1
  478. package/splitbutton/SplitButton.d.ts +12 -10
  479. package/splitbutton/SplitButton.vue +22 -3
  480. package/splitbutton/splitbutton.cjs.js +17 -5
  481. package/splitbutton/splitbutton.cjs.min.js +1 -1
  482. package/splitbutton/splitbutton.esm.js +17 -5
  483. package/splitbutton/splitbutton.esm.min.js +1 -1
  484. package/splitbutton/splitbutton.js +17 -5
  485. package/splitbutton/splitbutton.min.js +1 -1
  486. package/splitter/Splitter.d.ts +18 -7
  487. package/splitter/Splitter.vue +8 -1
  488. package/splitter/splitter.cjs.js +9 -1
  489. package/splitter/splitter.cjs.min.js +1 -1
  490. package/splitter/splitter.esm.js +9 -1
  491. package/splitter/splitter.esm.min.js +1 -1
  492. package/splitter/splitter.js +9 -1
  493. package/splitter/splitter.min.js +1 -1
  494. package/splitterpanel/SplitterPanel.d.ts +5 -5
  495. package/splitterpanel/SplitterPanel.vue +1 -1
  496. package/splitterpanel/splitterpanel.cjs.js +1 -1
  497. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  498. package/splitterpanel/splitterpanel.esm.js +1 -1
  499. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  500. package/splitterpanel/splitterpanel.js +1 -1
  501. package/splitterpanel/splitterpanel.min.js +1 -1
  502. package/steps/Steps.d.ts +10 -10
  503. package/styleclass/StyleClass.d.ts +4 -3
  504. package/tabmenu/TabMenu.d.ts +11 -11
  505. package/tabpanel/TabPanel.d.ts +12 -12
  506. package/tabview/TabView.d.ts +18 -18
  507. package/tag/Tag.d.ts +7 -7
  508. package/terminal/Terminal.d.ts +13 -13
  509. package/textarea/Textarea.d.ts +5 -5
  510. package/tieredmenu/TieredMenu.d.ts +22 -15
  511. package/tieredmenu/TieredMenu.vue +1 -1
  512. package/tieredmenu/tieredmenu.cjs.js +3 -3
  513. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  514. package/tieredmenu/tieredmenu.esm.js +3 -3
  515. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  516. package/tieredmenu/tieredmenu.js +3 -3
  517. package/tieredmenu/tieredmenu.min.js +1 -1
  518. package/timeline/Timeline.d.ts +11 -11
  519. package/toast/BaseToast.vue +4 -0
  520. package/toast/Toast.d.ts +25 -19
  521. package/toast/Toast.vue +3 -2
  522. package/toast/toast.cjs.js +4 -2
  523. package/toast/toast.cjs.min.js +1 -1
  524. package/toast/toast.esm.js +5 -3
  525. package/toast/toast.esm.min.js +1 -1
  526. package/toast/toast.js +4 -2
  527. package/toast/toast.min.js +1 -1
  528. package/togglebutton/ToggleButton.d.ts +34 -11
  529. package/togglebutton/ToggleButton.vue +12 -3
  530. package/togglebutton/togglebutton.cjs.js +12 -3
  531. package/togglebutton/togglebutton.cjs.min.js +1 -1
  532. package/togglebutton/togglebutton.esm.js +12 -3
  533. package/togglebutton/togglebutton.esm.min.js +1 -1
  534. package/togglebutton/togglebutton.js +12 -3
  535. package/togglebutton/togglebutton.min.js +1 -1
  536. package/toolbar/Toolbar.d.ts +8 -8
  537. package/toolbar/Toolbar.vue +3 -3
  538. package/toolbar/toolbar.cjs.js +3 -6
  539. package/toolbar/toolbar.cjs.min.js +1 -1
  540. package/toolbar/toolbar.esm.js +3 -6
  541. package/toolbar/toolbar.esm.min.js +1 -1
  542. package/toolbar/toolbar.js +3 -6
  543. package/toolbar/toolbar.min.js +1 -1
  544. package/tooltip/Tooltip.d.ts +37 -7
  545. package/tooltip/tooltip.cjs.js +17 -4
  546. package/tooltip/tooltip.cjs.min.js +1 -1
  547. package/tooltip/tooltip.esm.js +17 -4
  548. package/tooltip/tooltip.esm.min.js +1 -1
  549. package/tooltip/tooltip.js +413 -400
  550. package/tooltip/tooltip.min.js +1 -1
  551. package/tree/Tree.d.ts +26 -22
  552. package/tree/Tree.vue +1 -0
  553. package/tree/tree.cjs.js +3 -2
  554. package/tree/tree.cjs.min.js +1 -1
  555. package/tree/tree.esm.js +3 -2
  556. package/tree/tree.esm.min.js +1 -1
  557. package/tree/tree.js +3 -2
  558. package/tree/tree.min.js +1 -1
  559. package/treeselect/TreeSelect.d.ts +26 -19
  560. package/treeselect/TreeSelect.vue +2 -2
  561. package/treeselect/treeselect.cjs.js +4 -4
  562. package/treeselect/treeselect.cjs.min.js +1 -1
  563. package/treeselect/treeselect.esm.js +4 -4
  564. package/treeselect/treeselect.esm.min.js +1 -1
  565. package/treeselect/treeselect.js +4 -4
  566. package/treeselect/treeselect.min.js +1 -1
  567. package/treetable/TreeTable.d.ts +24 -23
  568. package/treetable/TreeTable.vue +6 -3
  569. package/treetable/treetable.cjs.js +7 -6
  570. package/treetable/treetable.cjs.min.js +1 -1
  571. package/treetable/treetable.esm.js +7 -6
  572. package/treetable/treetable.esm.min.js +1 -1
  573. package/treetable/treetable.js +7 -6
  574. package/treetable/treetable.min.js +1 -1
  575. package/tristatecheckbox/TriStateCheckbox.d.ts +16 -13
  576. package/ts-helpers.d.ts +2 -0
  577. package/usestyle/UseStyle.d.ts +2 -1
  578. package/usestyle/usestyle.cjs.js +20 -7
  579. package/usestyle/usestyle.cjs.min.js +1 -1
  580. package/usestyle/usestyle.esm.js +20 -7
  581. package/usestyle/usestyle.esm.min.js +1 -1
  582. package/usestyle/usestyle.js +20 -7
  583. package/usestyle/usestyle.min.js +1 -1
  584. package/utils/Utils.d.ts +4 -0
  585. package/utils/utils.cjs.js +48 -8
  586. package/utils/utils.cjs.min.js +1 -1
  587. package/utils/utils.esm.js +48 -8
  588. package/utils/utils.esm.min.js +1 -1
  589. package/utils/utils.js +48 -8
  590. package/utils/utils.min.js +1 -1
  591. package/vetur-attributes.json +129 -125
  592. package/vetur-tags.json +1 -0
  593. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  594. package/virtualscroller/VirtualScroller.d.ts +15 -13
  595. package/virtualscroller/virtualscroller.cjs.js +2 -1
  596. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  597. package/virtualscroller/virtualscroller.esm.js +2 -1
  598. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  599. package/virtualscroller/virtualscroller.js +2 -1
  600. package/virtualscroller/virtualscroller.min.js +1 -1
  601. package/web-types.json +160 -127
  602. package/tailwind/Tailwind.d.ts +0 -5
  603. package/tailwind/package.json +0 -6
  604. package/tailwind/tailwind.cjs.min.js +0 -1
  605. package/tailwind/tailwind.esm.min.js +0 -1
  606. package/tailwind/tailwind.min.js +0 -1
@@ -23,6 +23,11 @@ this.primevue.badgedirective = (function (utils, BaseDirective, usestyle) {
23
23
  });
24
24
 
25
25
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
26
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28
+ 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; }
29
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
+ 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); }
26
31
  var BadgeDirective = BaseBadgeDirective.extend('badge', {
27
32
  mounted: function mounted(el, binding) {
28
33
  var _binding$instance$$pr, _binding$value;
@@ -31,7 +36,12 @@ this.primevue.badgedirective = (function (utils, BaseDirective, usestyle) {
31
36
  var badge = utils.DomHandler.createElement('span', {
32
37
  id: id,
33
38
  "class": !el.unstyled && this.cx('root'),
34
- 'p-bind': this.ptm('root')
39
+ 'p-bind': this.ptm('root', {
40
+ context: _objectSpread(_objectSpread({}, binding.modifiers), {}, {
41
+ nogutter: String(binding.value).length === 1,
42
+ dot: binding.value == null
43
+ })
44
+ })
35
45
  });
36
46
  el.$_pbadgeId = badge.getAttribute('id');
37
47
  for (var modifier in binding.modifiers) {
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.badgedirective=function(e,a,d){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(a),l=d.useStyle("\n.p-badge {\n display: inline-block;\n border-radius: 10px;\n text-align: center;\n padding: 0 .5rem;\n}\n\n.p-overlay-badge {\n position: relative;\n}\n\n.p-overlay-badge .p-badge {\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%,-50%);\n transform-origin: 100% 0;\n margin: 0;\n}\n\n.p-badge-dot {\n width: .5rem;\n min-width: .5rem;\n height: .5rem;\n border-radius: 50%;\n padding: 0;\n}\n\n.p-badge-no-gutter {\n padding: 0;\n border-radius: 50%;\n}\n",{name:"badge",manual:!0});function o(e){return o="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},o(e)}return t.default.extend({css:{classes:{root:"p-badge p-component"},loadStyle:l.load}}).extend("badge",{mounted:function(a,d){var n,t,l=e.UniqueComponentId()+"_badge";a.unstyled=(null===(n=d.instance.$primevue)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.unstyled)||(null===(t=d.value)||void 0===t?void 0:t.unstyled)||!1;var r=e.DomHandler.createElement("span",{id:l,class:!a.unstyled&&this.cx("root"),"p-bind":this.ptm("root")});for(var u in a.$_pbadgeId=r.getAttribute("id"),d.modifiers)!a.unstyled&&e.DomHandler.addClass(r,"p-badge-"+u);null!=d.value?(a.$_badgeValue="object"===o(d.value)?d.value.value:d.value,r.appendChild(document.createTextNode(a.$_badgeValue)),1!==String(a.$_badgeValue).length||a.unstyled||!a.unstyled&&e.DomHandler.addClass(r,"p-badge-no-gutter")):!a.unstyled&&e.DomHandler.addClass(r,"p-badge-dot"),a.setAttribute("data-pd-badge",!0),!a.unstyled&&e.DomHandler.addClass(a,"p-overlay-badge"),a.setAttribute("data-p-overlay-badge","true"),a.appendChild(r),this.$el=r},updated:function(a,d){if(!a.unstyled&&e.DomHandler.addClass(a,"p-overlay-badge"),a.setAttribute("data-p-overlay-badge","true"),d.oldValue!==d.value){var n=document.getElementById(a.$_pbadgeId);a.$_badgeValue="object"===o(d.value)?d.value.value:d.value,a.unstyled||(a.$_badgeValue?(e.DomHandler.hasClass(n,"p-badge-dot")&&e.DomHandler.removeClass(n,"p-badge-dot"),1===a.$_badgeValue.length?e.DomHandler.addClass(n,"p-badge-no-gutter"):e.DomHandler.removeClass(n,"p-badge-no-gutter")):a.$_badgeValue||e.DomHandler.hasClass(n,"p-badge-dot")||e.DomHandler.addClass(n,"p-badge-dot")),n.innerHTML="",n.appendChild(document.createTextNode(a.$_badgeValue))}}})}(primevue.utils,primevue.basedirective,primevue.usestyle);
1
+ this.primevue=this.primevue||{},this.primevue.badgedirective=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(t),d=n.useStyle("\n.p-badge {\n display: inline-block;\n border-radius: 10px;\n text-align: center;\n padding: 0 .5rem;\n}\n\n.p-overlay-badge {\n position: relative;\n}\n\n.p-overlay-badge .p-badge {\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%,-50%);\n transform-origin: 100% 0;\n margin: 0;\n}\n\n.p-badge-dot {\n width: .5rem;\n min-width: .5rem;\n height: .5rem;\n border-radius: 50%;\n padding: 0;\n}\n\n.p-badge-no-gutter {\n padding: 0;\n border-radius: 50%;\n}\n",{name:"badge",manual:!0});function o(e){return o="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},o(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=b(e,"string");return"symbol"===o(t)?t:String(t)}function b(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}return a.default.extend({css:{classes:{root:"p-badge p-component"},loadStyle:d.load}}).extend("badge",{mounted:function(t,n){var r,a,d=e.UniqueComponentId()+"_badge";t.unstyled=(null===(r=n.instance.$primevue)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.unstyled)||(null===(a=n.value)||void 0===a?void 0:a.unstyled)||!1;var l=e.DomHandler.createElement("span",{id:d,class:!t.unstyled&&this.cx("root"),"p-bind":this.ptm("root",{context:i(i({},n.modifiers),{},{nogutter:1===String(n.value).length,dot:null==n.value})})});for(var u in t.$_pbadgeId=l.getAttribute("id"),n.modifiers)!t.unstyled&&e.DomHandler.addClass(l,"p-badge-"+u);null!=n.value?(t.$_badgeValue="object"===o(n.value)?n.value.value:n.value,l.appendChild(document.createTextNode(t.$_badgeValue)),1!==String(t.$_badgeValue).length||t.unstyled||!t.unstyled&&e.DomHandler.addClass(l,"p-badge-no-gutter")):!t.unstyled&&e.DomHandler.addClass(l,"p-badge-dot"),t.setAttribute("data-pd-badge",!0),!t.unstyled&&e.DomHandler.addClass(t,"p-overlay-badge"),t.setAttribute("data-p-overlay-badge","true"),t.appendChild(l),this.$el=l},updated:function(t,n){if(!t.unstyled&&e.DomHandler.addClass(t,"p-overlay-badge"),t.setAttribute("data-p-overlay-badge","true"),n.oldValue!==n.value){var r=document.getElementById(t.$_pbadgeId);t.$_badgeValue="object"===o(n.value)?n.value.value:n.value,t.unstyled||(t.$_badgeValue?(e.DomHandler.hasClass(r,"p-badge-dot")&&e.DomHandler.removeClass(r,"p-badge-dot"),1===t.$_badgeValue.length?e.DomHandler.addClass(r,"p-badge-no-gutter"):e.DomHandler.removeClass(r,"p-badge-no-gutter")):t.$_badgeValue||e.DomHandler.hasClass(r,"p-badge-dot")||e.DomHandler.addClass(r,"p-badge-dot")),r.innerHTML="",r.appendChild(document.createTextNode(t.$_badgeValue))}}})}(primevue.utils,primevue.basedirective,primevue.usestyle);
@@ -52,7 +52,7 @@ const buttonStyles = `
52
52
  margin: 0;
53
53
  }
54
54
 
55
- .p-buttonset .p-button:not(:last-child) {
55
+ .p-buttonset .p-button:not(:last-child), .p-buttonset .p-button:not(:last-child):hover {
56
56
  border-right: 0 none;
57
57
  }
58
58
 
@@ -357,6 +357,7 @@ ${radioButtonStyles}
357
357
  `;
358
358
 
359
359
  const { load: loadStyle } = useStyle(styles, { name: 'common', manual: true });
360
+ const { load: loadGlobalStyle } = useStyle('', { name: 'global', manual: true });
360
361
 
361
362
  export default {
362
363
  name: 'BaseComponent',
@@ -380,21 +381,31 @@ export default {
380
381
  immediate: true,
381
382
  handler(newValue) {
382
383
  if (!newValue) {
383
- loadStyle();
384
- this.$options.css && this.$css.loadStyle();
384
+ loadStyle(undefined, { nonce: this.$config?.csp?.nonce });
385
+ this.$options.css && this.$css.loadStyle(undefined, { nonce: this.$config?.csp?.nonce });
385
386
  }
386
387
  }
387
388
  }
388
389
  },
389
390
  beforeCreate() {
390
- this.pt?.hooks?.['onBeforeCreate']?.();
391
- this.$primevue?.config?.pt?.[this.$.type.name]?.hooks?.['onBeforeCreate']?.();
391
+ const _usept = this.pt?.['_usept'];
392
+ const originalValue = _usept ? this.pt?.originalValue?.[this.$.type.name] : undefined;
393
+ const value = _usept ? this.pt?.value?.[this.$.type.name] : this.pt;
394
+
395
+ (value || originalValue)?.hooks?.['onBeforeCreate']?.();
396
+
397
+ const _useptInConfig = this.$config?.pt?.['_usept'];
398
+ const originalValueInConfig = _useptInConfig ? this.$primevue?.config?.pt?.originalValue : undefined;
399
+ const valueInConfig = _useptInConfig ? this.$primevue?.config?.pt?.value : this.$primevue?.config?.pt;
400
+
401
+ (valueInConfig || originalValueInConfig)?.[this.$.type.name]?.hooks?.['onBeforeCreate']?.();
392
402
  },
393
403
  created() {
394
404
  this._hook('onCreated');
395
405
  },
396
406
  beforeMount() {
397
- loadBaseStyle();
407
+ loadBaseStyle(undefined, { nonce: this.$config?.csp?.nonce });
408
+ this._loadGlobalStyles();
398
409
  this._hook('onBeforeMount');
399
410
  },
400
411
  mounted() {
@@ -414,11 +425,28 @@ export default {
414
425
  },
415
426
  methods: {
416
427
  _hook(hookName) {
417
- const selfHook = this._getOptionValue(this.pt, `hooks.${hookName}`);
418
- const globalHook = this._getOptionValue(this.globalPT, `hooks.${hookName}`);
428
+ if (!this.$options.hostName) {
429
+ const selfHook = this._usePT(this._getPT(this.pt, this.$.type.name), this._getOptionValue, `hooks.${hookName}`);
430
+ const defaultHook = this._useDefaultPT(this._getOptionValue, `hooks.${hookName}`);
431
+
432
+ selfHook?.();
433
+ defaultHook?.();
434
+ }
435
+ },
436
+ _loadGlobalStyles() {
437
+ /*
438
+ * @todo Add self custom css support;
439
+ * <Panel :pt="{ css: `...` }" .../>
440
+ *
441
+ * const selfCSS = this._getPTClassValue(this.pt, 'css', this.$params);
442
+ * const defaultCSS = this._getPTClassValue(this.defaultPT, 'css', this.$params);
443
+ * const mergedCSS = mergeProps(selfCSS, defaultCSS);
444
+ * ObjectUtils.isNotEmpty(mergedCSS?.class) && this.$css.loadCustomStyle(mergedCSS?.class);
445
+ */
446
+
447
+ const globalCSS = this._useGlobalPT(this._getOptionValue, 'global.css', this.$params);
419
448
 
420
- selfHook?.();
421
- globalHook?.();
449
+ ObjectUtils.isNotEmpty(globalCSS) && loadGlobalStyle(globalCSS, { nonce: this.$config?.csp?.nonce });
422
450
  },
423
451
  _getHostInstance(instance) {
424
452
  return instance ? (this.$options.hostName ? (instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance)) : instance.$parentInstance) : undefined;
@@ -434,19 +462,18 @@ export default {
434
462
  : ObjectUtils.getItemValue(options, params);
435
463
  },
436
464
  _getPTValue(obj = {}, key = '', params = {}, searchInDefaultPT = true) {
437
- const getValue = (...args) => {
438
- const value = this._getOptionValue(...args);
439
-
440
- return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? { class: value } : value;
441
- };
442
-
443
465
  const datasetPrefix = 'data-pc-';
444
- const self = getValue(obj, key, params);
445
- const globalPT = searchInDefaultPT ? (/./g.test(key) && !!params[key.split('.')[0]] ? getValue(this.globalPT, key, params) : getValue(this.defaultPT, key, params)) : undefined;
446
- const merged = mergeProps(self, globalPT, {
447
- ...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }),
448
- [`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key)
449
- });
466
+ const searchOut = /./g.test(key) && !!params[key.split('.')[0]];
467
+ const self = searchOut ? undefined : this._usePT(this._getPT(obj, this.$name), this._getPTClassValue, key, params);
468
+ const globalPT = searchInDefaultPT ? (searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params)) : undefined;
469
+ const merged = mergeProps(
470
+ self,
471
+ globalPT,
472
+ key !== 'transition' && {
473
+ ...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }),
474
+ [`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key)
475
+ }
476
+ );
450
477
 
451
478
  return merged;
452
479
  /*
@@ -455,19 +482,64 @@ export default {
455
482
  * return self && self['class'] ? { ...merged, ...{ class: self['class'] } } : merged;
456
483
  */
457
484
  },
485
+ _getPTClassValue(...args) {
486
+ const value = this._getOptionValue(...args);
487
+
488
+ return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? { class: value } : value;
489
+ },
490
+ _getPT(pt, key = '', callback) {
491
+ const _usept = pt?.['_usept'];
492
+
493
+ const getValue = (value) => {
494
+ const computedValue = callback ? callback(value) : value;
495
+
496
+ return computedValue?.[ObjectUtils.toFlatCase(key)] ?? computedValue;
497
+ };
498
+
499
+ return ObjectUtils.isNotEmpty(_usept)
500
+ ? {
501
+ _usept,
502
+ originalValue: getValue(pt.originalValue),
503
+ value: getValue(pt.value)
504
+ }
505
+ : getValue(pt);
506
+ },
507
+ _usePT(pt, callback, key, params) {
508
+ const fn = (value) => callback(value, key, params);
509
+
510
+ if (pt?.hasOwnProperty('_usept')) {
511
+ const { merge, useMergeProps } = pt['_usept'];
512
+ const originalValue = fn(pt.originalValue);
513
+ const value = fn(pt.value);
514
+
515
+ if (originalValue === undefined && value === undefined) return undefined;
516
+ else if (ObjectUtils.isString(value)) return value;
517
+ else if (ObjectUtils.isString(originalValue)) return originalValue;
518
+
519
+ return merge ? (useMergeProps ? mergeProps(originalValue, value) : { ...originalValue, ...value }) : value;
520
+ }
521
+
522
+ return fn(pt);
523
+ },
524
+ _useGlobalPT(callback, key, params) {
525
+ return this._usePT(this.globalPT, callback, key, params);
526
+ },
527
+ _useDefaultPT(callback, key, params) {
528
+ return this._usePT(this.defaultPT, callback, key, params);
529
+ },
458
530
  ptm(key = '', params = {}) {
459
- return this._getPTValue(this.pt, key, { instance: this, props: this.$props, state: this.$data, ...params });
531
+ return this._getPTValue(this.pt, key, { ...this.$params, ...params });
460
532
  },
461
533
  ptmo(obj = {}, key = '', params = {}) {
462
534
  return this._getPTValue(obj, key, { instance: this, ...params }, false);
463
535
  },
464
536
  cx(key = '', params = {}) {
465
- return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params }) : undefined;
537
+ return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, { ...this.$params, ...params }) : undefined;
466
538
  },
467
539
  sx(key = '', when = true, params = {}) {
468
540
  if (when) {
469
- const self = this._getOptionValue(this.$css.inlineStyles, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params });
470
- const base = this._getOptionValue(inlineStyles, key, { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance, ...params });
541
+ const self = this._getOptionValue(this.$css.inlineStyles, key, { ...this.$params, ...params });
542
+ const base = this._getOptionValue(inlineStyles, key, { ...this.$params, ...params });
471
543
 
472
544
  return [base, self];
473
545
  }
@@ -477,16 +549,25 @@ export default {
477
549
  },
478
550
  computed: {
479
551
  globalPT() {
480
- return ObjectUtils.getItemValue(this.$primevue.config.pt, { instance: this });
552
+ return this._getPT(this.$config?.pt, undefined, (value) => ObjectUtils.getItemValue(value, { instance: this }));
481
553
  },
482
554
  defaultPT() {
483
- return this._getOptionValue(this.$primevue.config.pt, this.$options.hostName || this.$.type.name, { instance: this }) || this.globalPT;
555
+ return this._getPT(this.$config?.pt, undefined, (value) => this._getOptionValue(value, this.$name, { instance: this }) || ObjectUtils.getItemValue(value, { instance: this }));
484
556
  },
485
557
  isUnstyled() {
486
- return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
558
+ return this.unstyled !== undefined ? this.unstyled : this.$config.unstyled;
559
+ },
560
+ $params() {
561
+ return { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance };
487
562
  },
488
563
  $css() {
489
- return { classes: undefined, inlineStyles: undefined, loadStyle: () => {}, ...(this._getHostInstance(this) || {}).$css, ...this.$options.css };
564
+ return { classes: undefined, inlineStyles: undefined, loadStyle: () => {}, loadCustomStyle: () => {}, ...(this._getHostInstance(this) || {}).$css, ...this.$options.css };
565
+ },
566
+ $config() {
567
+ return this.$primevue?.config;
568
+ },
569
+ $name() {
570
+ return this.$options.hostName || this.$.type.name;
490
571
  }
491
572
  }
492
573
  };
@@ -12,7 +12,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  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); }
14
14
  var inlineStyles = {};
15
- var buttonStyles = "\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
15
+ var buttonStyles = "\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child), .p-buttonset .p-button:not(:last-child):hover {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n";
16
16
  var checkboxStyles = "\n.p-checkbox {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n position: relative;\n}\n\n.p-checkbox.p-checkbox-disabled {\n cursor: default;\n}\n\n.p-checkbox-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
17
17
  var inputTextStyles = "\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label {\n top: -.75rem;\n font-size: 12px;\n}\n\n.p-float-label .input:-webkit-autofill ~ label {\n top: -20px;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > i,\n.p-input-icon-right > svg {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n";
18
18
  var radioButtonStyles = "\n.p-radiobutton {\n position: relative;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n}\n\n.p-radiobutton.p-radiobutton-disabled {\n cursor: default;\n}\n\n.p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n}\n\n.p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n}\n";
@@ -22,6 +22,11 @@ var _useStyle = usestyle.useStyle(styles, {
22
22
  manual: true
23
23
  }),
24
24
  loadStyle = _useStyle.load;
25
+ var _useStyle2 = usestyle.useStyle('', {
26
+ name: 'global',
27
+ manual: true
28
+ }),
29
+ loadGlobalStyle = _useStyle2.load;
25
30
  var script = {
26
31
  name: 'BaseComponent',
27
32
  props: {
@@ -44,22 +49,37 @@ var script = {
44
49
  immediate: true,
45
50
  handler: function handler(newValue) {
46
51
  if (!newValue) {
47
- loadStyle();
48
- this.$options.css && this.$css.loadStyle();
52
+ var _this$$config, _this$$config2;
53
+ loadStyle(undefined, {
54
+ nonce: (_this$$config = this.$config) === null || _this$$config === void 0 || (_this$$config = _this$$config.csp) === null || _this$$config === void 0 ? void 0 : _this$$config.nonce
55
+ });
56
+ this.$options.css && this.$css.loadStyle(undefined, {
57
+ nonce: (_this$$config2 = this.$config) === null || _this$$config2 === void 0 || (_this$$config2 = _this$$config2.csp) === null || _this$$config2 === void 0 ? void 0 : _this$$config2.nonce
58
+ });
49
59
  }
50
60
  }
51
61
  }
52
62
  },
53
63
  beforeCreate: function beforeCreate() {
54
- var _this$pt, _this$pt$onBeforeCrea, _this$$primevue, _this$$primevue$onBef;
55
- (_this$pt = this.pt) === null || _this$pt === void 0 || (_this$pt = _this$pt.hooks) === null || _this$pt === void 0 || (_this$pt$onBeforeCrea = _this$pt['onBeforeCreate']) === null || _this$pt$onBeforeCrea === void 0 ? void 0 : _this$pt$onBeforeCrea.call(_this$pt);
56
- (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.pt) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue[this.$.type.name]) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.hooks) === null || _this$$primevue === void 0 || (_this$$primevue$onBef = _this$$primevue['onBeforeCreate']) === null || _this$$primevue$onBef === void 0 ? void 0 : _this$$primevue$onBef.call(_this$$primevue);
64
+ var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$config3, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
65
+ var _usept = (_this$pt = this.pt) === null || _this$pt === void 0 ? void 0 : _this$pt['_usept'];
66
+ var originalValue = _usept ? (_this$pt2 = this.pt) === null || _this$pt2 === void 0 || (_this$pt2 = _this$pt2.originalValue) === null || _this$pt2 === void 0 ? void 0 : _this$pt2[this.$.type.name] : undefined;
67
+ var value = _usept ? (_this$pt3 = this.pt) === null || _this$pt3 === void 0 || (_this$pt3 = _this$pt3.value) === null || _this$pt3 === void 0 ? void 0 : _this$pt3[this.$.type.name] : this.pt;
68
+ (_ref = value || originalValue) === null || _ref === void 0 || (_ref = _ref.hooks) === null || _ref === void 0 || (_ref$onBeforeCreate = _ref['onBeforeCreate']) === null || _ref$onBeforeCreate === void 0 ? void 0 : _ref$onBeforeCreate.call(_ref);
69
+ var _useptInConfig = (_this$$config3 = this.$config) === null || _this$$config3 === void 0 || (_this$$config3 = _this$$config3.pt) === null || _this$$config3 === void 0 ? void 0 : _this$$config3['_usept'];
70
+ var originalValueInConfig = _useptInConfig ? (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.pt) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.originalValue : undefined;
71
+ var valueInConfig = _useptInConfig ? (_this$$primevue2 = this.$primevue) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.config) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.pt) === null || _this$$primevue2 === void 0 ? void 0 : _this$$primevue2.value : (_this$$primevue3 = this.$primevue) === null || _this$$primevue3 === void 0 || (_this$$primevue3 = _this$$primevue3.config) === null || _this$$primevue3 === void 0 ? void 0 : _this$$primevue3.pt;
72
+ (_ref2 = valueInConfig || originalValueInConfig) === null || _ref2 === void 0 || (_ref2 = _ref2[this.$.type.name]) === null || _ref2 === void 0 || (_ref2 = _ref2.hooks) === null || _ref2 === void 0 || (_ref2$onBeforeCreate = _ref2['onBeforeCreate']) === null || _ref2$onBeforeCreate === void 0 ? void 0 : _ref2$onBeforeCreate.call(_ref2);
57
73
  },
58
74
  created: function created() {
59
75
  this._hook('onCreated');
60
76
  },
61
77
  beforeMount: function beforeMount() {
62
- base.loadBaseStyle();
78
+ var _this$$config4;
79
+ base.loadBaseStyle(undefined, {
80
+ nonce: (_this$$config4 = this.$config) === null || _this$$config4 === void 0 || (_this$$config4 = _this$$config4.csp) === null || _this$$config4 === void 0 ? void 0 : _this$$config4.nonce
81
+ });
82
+ this._loadGlobalStyles();
63
83
  this._hook('onBeforeMount');
64
84
  },
65
85
  mounted: function mounted() {
@@ -79,10 +99,29 @@ var script = {
79
99
  },
80
100
  methods: {
81
101
  _hook: function _hook(hookName) {
82
- var selfHook = this._getOptionValue(this.pt, "hooks.".concat(hookName));
83
- var globalHook = this._getOptionValue(this.globalPT, "hooks.".concat(hookName));
84
- selfHook === null || selfHook === void 0 ? void 0 : selfHook();
85
- globalHook === null || globalHook === void 0 ? void 0 : globalHook();
102
+ if (!this.$options.hostName) {
103
+ var selfHook = this._usePT(this._getPT(this.pt, this.$.type.name), this._getOptionValue, "hooks.".concat(hookName));
104
+ var defaultHook = this._useDefaultPT(this._getOptionValue, "hooks.".concat(hookName));
105
+ selfHook === null || selfHook === void 0 ? void 0 : selfHook();
106
+ defaultHook === null || defaultHook === void 0 ? void 0 : defaultHook();
107
+ }
108
+ },
109
+ _loadGlobalStyles: function _loadGlobalStyles() {
110
+ var _this$$config5;
111
+ /*
112
+ * @todo Add self custom css support;
113
+ * <Panel :pt="{ css: `...` }" .../>
114
+ *
115
+ * const selfCSS = this._getPTClassValue(this.pt, 'css', this.$params);
116
+ * const defaultCSS = this._getPTClassValue(this.defaultPT, 'css', this.$params);
117
+ * const mergedCSS = mergeProps(selfCSS, defaultCSS);
118
+ * ObjectUtils.isNotEmpty(mergedCSS?.class) && this.$css.loadCustomStyle(mergedCSS?.class);
119
+ */
120
+
121
+ var globalCSS = this._useGlobalPT(this._getOptionValue, 'global.css', this.$params);
122
+ utils.ObjectUtils.isNotEmpty(globalCSS) && loadGlobalStyle(globalCSS, {
123
+ nonce: (_this$$config5 = this.$config) === null || _this$$config5 === void 0 || (_this$$config5 = _this$$config5.csp) === null || _this$$config5 === void 0 ? void 0 : _this$$config5.nonce
124
+ });
86
125
  },
87
126
  _getHostInstance: function _getHostInstance(instance) {
88
127
  return instance ? this.$options.hostName ? instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance) : instance.$parentInstance : undefined;
@@ -97,21 +136,15 @@ var script = {
97
136
  }) || ''], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(options, params);
98
137
  },
99
138
  _getPTValue: function _getPTValue() {
100
- var _this = this;
101
139
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
102
140
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
103
141
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
104
142
  var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
105
- var getValue = function getValue() {
106
- var value = _this._getOptionValue.apply(_this, arguments);
107
- return utils.ObjectUtils.isString(value) || utils.ObjectUtils.isArray(value) ? {
108
- "class": value
109
- } : value;
110
- };
111
143
  var datasetPrefix = 'data-pc-';
112
- var self = getValue(obj, key, params);
113
- var globalPT = searchInDefaultPT ? /./g.test(key) && !!params[key.split('.')[0]] ? getValue(this.globalPT, key, params) : getValue(this.defaultPT, key, params) : undefined;
114
- var merged = vue.mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(this.$.type.name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key))));
144
+ var searchOut = /./g.test(key) && !!params[key.split('.')[0]];
145
+ var self = searchOut ? undefined : this._usePT(this._getPT(obj, this.$name), this._getPTClassValue, key, params);
146
+ var globalPT = searchInDefaultPT ? searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params) : undefined;
147
+ var merged = vue.mergeProps(self, globalPT, key !== 'transition' && _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(this.$.type.name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key))));
115
148
  return merged;
116
149
  /*
117
150
  * @todo: The 'class' option in self can always be more powerful to style the component easily.
@@ -119,14 +152,52 @@ var script = {
119
152
  * return self && self['class'] ? { ...merged, ...{ class: self['class'] } } : merged;
120
153
  */
121
154
  },
155
+ _getPTClassValue: function _getPTClassValue() {
156
+ var value = this._getOptionValue.apply(this, arguments);
157
+ return utils.ObjectUtils.isString(value) || utils.ObjectUtils.isArray(value) ? {
158
+ "class": value
159
+ } : value;
160
+ },
161
+ _getPT: function _getPT(pt) {
162
+ var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
163
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
164
+ var _usept = pt === null || pt === void 0 ? void 0 : pt['_usept'];
165
+ var getValue = function getValue(value) {
166
+ var _computedValue$Object;
167
+ var computedValue = callback ? callback(value) : value;
168
+ return (_computedValue$Object = computedValue === null || computedValue === void 0 ? void 0 : computedValue[utils.ObjectUtils.toFlatCase(key)]) !== null && _computedValue$Object !== void 0 ? _computedValue$Object : computedValue;
169
+ };
170
+ return utils.ObjectUtils.isNotEmpty(_usept) ? {
171
+ _usept: _usept,
172
+ originalValue: getValue(pt.originalValue),
173
+ value: getValue(pt.value)
174
+ } : getValue(pt);
175
+ },
176
+ _usePT: function _usePT(pt, callback, key, params) {
177
+ var fn = function fn(value) {
178
+ return callback(value, key, params);
179
+ };
180
+ if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
181
+ var _pt$_usept = pt['_usept'],
182
+ merge = _pt$_usept.merge,
183
+ useMergeProps = _pt$_usept.useMergeProps;
184
+ var originalValue = fn(pt.originalValue);
185
+ var value = fn(pt.value);
186
+ if (originalValue === undefined && value === undefined) return undefined;else if (utils.ObjectUtils.isString(value)) return value;else if (utils.ObjectUtils.isString(originalValue)) return originalValue;
187
+ return merge ? useMergeProps ? vue.mergeProps(originalValue, value) : _objectSpread(_objectSpread({}, originalValue), value) : value;
188
+ }
189
+ return fn(pt);
190
+ },
191
+ _useGlobalPT: function _useGlobalPT(callback, key, params) {
192
+ return this._usePT(this.globalPT, callback, key, params);
193
+ },
194
+ _useDefaultPT: function _useDefaultPT(callback, key, params) {
195
+ return this._usePT(this.defaultPT, callback, key, params);
196
+ },
122
197
  ptm: function ptm() {
123
198
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
124
199
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
125
- return this._getPTValue(this.pt, key, _objectSpread({
126
- instance: this,
127
- props: this.$props,
128
- state: this.$data
129
- }, params));
200
+ return this._getPTValue(this.pt, key, _objectSpread(_objectSpread({}, this.$params), params));
130
201
  },
131
202
  ptmo: function ptmo() {
132
203
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -139,30 +210,15 @@ var script = {
139
210
  cx: function cx() {
140
211
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
141
212
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
142
- return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, _objectSpread({
143
- instance: this,
144
- props: this.$props,
145
- state: this.$data,
146
- parentInstance: this.$parentInstance
147
- }, params)) : undefined;
213
+ return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, _objectSpread(_objectSpread({}, this.$params), params)) : undefined;
148
214
  },
149
215
  sx: function sx() {
150
216
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
151
217
  var when = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
152
218
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
153
219
  if (when) {
154
- var self = this._getOptionValue(this.$css.inlineStyles, key, _objectSpread({
155
- instance: this,
156
- props: this.$props,
157
- state: this.$data,
158
- parentInstance: this.$parentInstance
159
- }, params));
160
- var base = this._getOptionValue(inlineStyles, key, _objectSpread({
161
- instance: this,
162
- props: this.$props,
163
- state: this.$data,
164
- parentInstance: this.$parentInstance
165
- }, params));
220
+ var self = this._getOptionValue(this.$css.inlineStyles, key, _objectSpread(_objectSpread({}, this.$params), params));
221
+ var base = this._getOptionValue(inlineStyles, key, _objectSpread(_objectSpread({}, this.$params), params));
166
222
  return [base, self];
167
223
  }
168
224
  return undefined;
@@ -170,24 +226,50 @@ var script = {
170
226
  },
171
227
  computed: {
172
228
  globalPT: function globalPT() {
173
- return utils.ObjectUtils.getItemValue(this.$primevue.config.pt, {
174
- instance: this
229
+ var _this$$config6,
230
+ _this = this;
231
+ return this._getPT((_this$$config6 = this.$config) === null || _this$$config6 === void 0 ? void 0 : _this$$config6.pt, undefined, function (value) {
232
+ return utils.ObjectUtils.getItemValue(value, {
233
+ instance: _this
234
+ });
175
235
  });
176
236
  },
177
237
  defaultPT: function defaultPT() {
178
- return this._getOptionValue(this.$primevue.config.pt, this.$options.hostName || this.$.type.name, {
179
- instance: this
180
- }) || this.globalPT;
238
+ var _this$$config7,
239
+ _this2 = this;
240
+ return this._getPT((_this$$config7 = this.$config) === null || _this$$config7 === void 0 ? void 0 : _this$$config7.pt, undefined, function (value) {
241
+ return _this2._getOptionValue(value, _this2.$name, {
242
+ instance: _this2
243
+ }) || utils.ObjectUtils.getItemValue(value, {
244
+ instance: _this2
245
+ });
246
+ });
181
247
  },
182
248
  isUnstyled: function isUnstyled() {
183
- return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
249
+ return this.unstyled !== undefined ? this.unstyled : this.$config.unstyled;
250
+ },
251
+ $params: function $params() {
252
+ return {
253
+ instance: this,
254
+ props: this.$props,
255
+ state: this.$data,
256
+ parentInstance: this.$parentInstance
257
+ };
184
258
  },
185
259
  $css: function $css() {
186
260
  return _objectSpread(_objectSpread({
187
261
  classes: undefined,
188
262
  inlineStyles: undefined,
189
- loadStyle: function loadStyle() {}
263
+ loadStyle: function loadStyle() {},
264
+ loadCustomStyle: function loadCustomStyle() {}
190
265
  }, (this._getHostInstance(this) || {}).$css), this.$options.css);
266
+ },
267
+ $config: function $config() {
268
+ var _this$$primevue4;
269
+ return (_this$$primevue4 = this.$primevue) === null || _this$$primevue4 === void 0 ? void 0 : _this$$primevue4.config;
270
+ },
271
+ $name: function $name() {
272
+ return this.$options.hostName || this.$.type.name;
191
273
  }
192
274
  }
193
275
  };
@@ -1 +1 @@
1
- "use strict";var n=require("primevue/base"),t=require("primevue/usestyle"),e=require("primevue/utils"),o=require("vue");function i(n){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(n)}function l(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function a(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?l(Object(e),!0).forEach((function(t){r(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function r(n,t,e){return(t=s(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function s(n){var t=p(n,"string");return"symbol"===i(t)?t:String(t)}function p(n,t){if("object"!==i(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var c={},u="\n.p-component, .p-component * {\n box-sizing: border-box;\n}\n\n.p-hidden-space {\n visibility: hidden;\n}\n\n.p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n}\n\n.p-disabled, .p-disabled * {\n cursor: default !important;\n pointer-events: none;\n user-select: none;\n}\n\n.p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-unselectable-text {\n user-select: none;\n}\n\n.p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal !important;\n}\n\n.p-link {\n\ttext-align: left;\n\tbackground-color: transparent;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: none;\n cursor: pointer;\n user-select: none;\n}\n\n.p-link:disabled {\n\tcursor: default;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity .1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n".concat("\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n","\n").concat("\n.p-checkbox {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n position: relative;\n}\n\n.p-checkbox.p-checkbox-disabled {\n cursor: default;\n}\n\n.p-checkbox-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n","\n").concat("\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label {\n top: -.75rem;\n font-size: 12px;\n}\n\n.p-float-label .input:-webkit-autofill ~ label {\n top: -20px;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > i,\n.p-input-icon-right > svg {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n","\n").concat("\n.p-radiobutton {\n position: relative;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n}\n\n.p-radiobutton.p-radiobutton-disabled {\n cursor: default;\n}\n\n.p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n}\n\n.p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n}\n","\n"),d=t.useStyle(u,{name:"common",manual:!0}).load,b={name:"BaseComponent",props:{pt:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(n){n||(d(),this.$options.css&&this.$css.loadStyle())}}},beforeCreate:function(){var n,t,e,o;null===(n=this.pt)||void 0===n||null===(n=n.hooks)||void 0===n||null===(t=n.onBeforeCreate)||void 0===t||t.call(n),null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.pt)||void 0===e||null===(e=e[this.$.type.name])||void 0===e||null===(e=e.hooks)||void 0===e||null===(o=e.onBeforeCreate)||void 0===o||o.call(e)},created:function(){this._hook("onCreated")},beforeMount:function(){n.loadBaseStyle(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(n){var t=this._getOptionValue(this.pt,"hooks.".concat(n)),e=this._getOptionValue(this.globalPT,"hooks.".concat(n));null==t||t(),null==e||e()},_getHostInstance:function(n){return n?this.$options.hostName?n.$.type.name===this.$options.hostName?n:this._getHostInstance(n.$parentInstance):n.$parentInstance:void 0},_getOptionValue:function(n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?e.ObjectUtils.isObject(n)?this._getOptionValue(e.ObjectUtils.getItemValue(n[Object.keys(n).find((function(n){return e.ObjectUtils.toFlatCase(n)===i}))||""],t),o.join("."),t):void 0:e.ObjectUtils.getItemValue(n,t)},_getPTValue:function(){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=function(){var t=n._getOptionValue.apply(n,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},p="data-pc-",c=s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t,i),u=l?/./g.test(t)&&i[t.split(".")[0]]?s(this.globalPT,t,i):s(this.defaultPT,t,i):void 0;return o.mergeProps(c,u,a(a({},"root"===t&&r({},"".concat(p,"name"),e.ObjectUtils.toFlatCase(this.$.type.name))),{},r({},"".concat(p,"section"),e.ObjectUtils.toFlatCase(t))))},ptm:function(){return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a({instance:this,props:this.$props,state:this.$data},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){return this.isUnstyled?void 0:this._getOptionValue(this.$css.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a({instance:this,props:this.$props,state:this.$data,parentInstance:this.$parentInstance},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},sx:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var e=this._getOptionValue(this.$css.inlineStyles,n,a({instance:this,props:this.$props,state:this.$data,parentInstance:this.$parentInstance},t));return[this._getOptionValue(c,n,a({instance:this,props:this.$props,state:this.$data,parentInstance:this.$parentInstance},t)),e]}}},computed:{globalPT:function(){return e.ObjectUtils.getItemValue(this.$primevue.config.pt,{instance:this})},defaultPT:function(){return this._getOptionValue(this.$primevue.config.pt,this.$options.hostName||this.$.type.name,{instance:this})||this.globalPT},isUnstyled:function(){return void 0!==this.unstyled?this.unstyled:this.$primevue.config.unstyled},$css:function(){return a(a({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},(this._getHostInstance(this)||{}).$css),this.$options.css)}}};module.exports=b;
1
+ "use strict";var n=require("primevue/base"),t=require("primevue/usestyle"),e=require("primevue/utils"),i=require("vue");function o(n){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o(n)}function l(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,i)}return e}function a(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?l(Object(e),!0).forEach((function(t){r(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function r(n,t,e){return(t=s(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function s(n){var t=u(n,"string");return"symbol"===o(t)?t:String(t)}function u(n,t){if("object"!==o(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var i=e.call(n,t||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var p={},c="\n.p-component, .p-component * {\n box-sizing: border-box;\n}\n\n.p-hidden-space {\n visibility: hidden;\n}\n\n.p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n}\n\n.p-disabled, .p-disabled * {\n cursor: default !important;\n pointer-events: none;\n user-select: none;\n}\n\n.p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-unselectable-text {\n user-select: none;\n}\n\n.p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal !important;\n}\n\n.p-link {\n\ttext-align: left;\n\tbackground-color: transparent;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: none;\n cursor: pointer;\n user-select: none;\n}\n\n.p-link:disabled {\n\tcursor: default;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity .1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n".concat("\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child), .p-buttonset .p-button:not(:last-child):hover {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n","\n").concat("\n.p-checkbox {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n position: relative;\n}\n\n.p-checkbox.p-checkbox-disabled {\n cursor: default;\n}\n\n.p-checkbox-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n","\n").concat("\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label {\n top: -.75rem;\n font-size: 12px;\n}\n\n.p-float-label .input:-webkit-autofill ~ label {\n top: -20px;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > i,\n.p-input-icon-right > svg {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n","\n").concat("\n.p-radiobutton {\n position: relative;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n}\n\n.p-radiobutton.p-radiobutton-disabled {\n cursor: default;\n}\n\n.p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n}\n\n.p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n}\n","\n"),d=t.useStyle(c,{name:"common",manual:!0}).load,f=t.useStyle("",{name:"global",manual:!0}).load,b={name:"BaseComponent",props:{pt:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(n){var t,e;n||(d(void 0,{nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce}),this.$options.css&&this.$css.loadStyle(void 0,{nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}))}}},beforeCreate:function(){var n,t,e,i,o,l,a,r,s,u,p,c=null===(n=this.pt)||void 0===n?void 0:n._usept,d=c?null===(t=this.pt)||void 0===t||null===(t=t.originalValue)||void 0===t?void 0:t[this.$.type.name]:void 0;null===(i=(c?null===(e=this.pt)||void 0===e||null===(e=e.value)||void 0===e?void 0:e[this.$.type.name]:this.pt)||d)||void 0===i||null===(i=i.hooks)||void 0===i||null===(o=i.onBeforeCreate)||void 0===o||o.call(i);var f=null===(l=this.$config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l._usept,b=f?null===(a=this.$primevue)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.pt)||void 0===a?void 0:a.originalValue:void 0;null===(u=(f?null===(r=this.$primevue)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r.value:null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s?void 0:s.pt)||b)||void 0===u||null===(u=u[this.$.type.name])||void 0===u||null===(u=u.hooks)||void 0===u||null===(p=u.onBeforeCreate)||void 0===p||p.call(u)},created:function(){this._hook("onCreated")},beforeMount:function(){var t;n.loadBaseStyle(void 0,{nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(n){if(!this.$options.hostName){var t=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(n)),e=this._useDefaultPT(this._getOptionValue,"hooks.".concat(n));null==t||t(),null==e||e()}},_loadGlobalStyles:function(){var n,t=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.ObjectUtils.isNotEmpty(t)&&f(t,{nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce})},_getHostInstance:function(n){return n?this.$options.hostName?n.$.type.name===this.$options.hostName?n:this._getHostInstance(n.$parentInstance):n.$parentInstance:void 0},_getOptionValue:function(n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),o=i.shift();return o?e.ObjectUtils.isObject(n)?this._getOptionValue(e.ObjectUtils.getItemValue(n[Object.keys(n).find((function(n){return e.ObjectUtils.toFlatCase(n)===o}))||""],t),i.join("."),t):void 0:e.ObjectUtils.getItemValue(n,t)},_getPTValue:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s="data-pc-",u=/./g.test(t)&&!!o[t.split(".")[0]],p=u?void 0:this._usePT(this._getPT(n,this.$name),this._getPTClassValue,t,o),c=l?u?this._useGlobalPT(this._getPTClassValue,t,o):this._useDefaultPT(this._getPTClassValue,t,o):void 0;return i.mergeProps(p,c,"transition"!==t&&a(a({},"root"===t&&r({},"".concat(s,"name"),e.ObjectUtils.toFlatCase(this.$.type.name))),{},r({},"".concat(s,"section"),e.ObjectUtils.toFlatCase(t))))},_getPTClassValue:function(){var n=this._getOptionValue.apply(this,arguments);return e.ObjectUtils.isString(n)||e.ObjectUtils.isArray(n)?{class:n}:n},_getPT:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=null==n?void 0:n._usept,l=function(n){var o,l=i?i(n):n;return null!==(o=null==l?void 0:l[e.ObjectUtils.toFlatCase(t)])&&void 0!==o?o:l};return e.ObjectUtils.isNotEmpty(o)?{_usept:o,originalValue:l(n.originalValue),value:l(n.value)}:l(n)},_usePT:function(n,t,o,l){var r=function(n){return t(n,o,l)};if(null!=n&&n.hasOwnProperty("_usept")){var s=n._usept,u=s.merge,p=s.useMergeProps,c=r(n.originalValue),d=r(n.value);if(void 0===c&&void 0===d)return;return e.ObjectUtils.isString(d)?d:e.ObjectUtils.isString(c)?c:u?p?i.mergeProps(c,d):a(a({},c),d):d}return r(n)},_useGlobalPT:function(n,t,e){return this._usePT(this.globalPT,n,t,e)},_useDefaultPT:function(n,t,e){return this._usePT(this.defaultPT,n,t,e)},ptm:function(){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a(a({},this.$params),n))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$css.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a(a({},this.$params),n))},sx:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var e=this._getOptionValue(this.$css.inlineStyles,n,a(a({},this.$params),t));return[this._getOptionValue(p,n,a(a({},this.$params),t)),e]}}},computed:{globalPT:function(){var n,t=this;return this._getPT(null===(n=this.$config)||void 0===n?void 0:n.pt,void 0,(function(n){return e.ObjectUtils.getItemValue(n,{instance:t})}))},defaultPT:function(){var n,t=this;return this._getPT(null===(n=this.$config)||void 0===n?void 0:n.pt,void 0,(function(n){return t._getOptionValue(n,t.$name,{instance:t})||e.ObjectUtils.getItemValue(n,{instance:t})}))},isUnstyled:function(){return void 0!==this.unstyled?this.unstyled:this.$config.unstyled},$params:function(){return{instance:this,props:this.$props,state:this.$data,parentInstance:this.$parentInstance}},$css:function(){return a(a({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$css),this.$options.css)},$config:function(){var n;return null===(n=this.$primevue)||void 0===n?void 0:n.config},$name:function(){return this.$options.hostName||this.$.type.name}}};module.exports=b;