primevue 3.31.0 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (574) hide show
  1. package/accordion/Accordion.d.ts +5 -5
  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 +18 -12
  10. package/autocomplete/AutoComplete.d.ts +34 -23
  11. package/autocomplete/AutoComplete.vue +3 -3
  12. package/autocomplete/BaseAutoComplete.vue +4 -0
  13. package/autocomplete/autocomplete.cjs.js +9 -5
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.esm.js +9 -5
  16. package/autocomplete/autocomplete.esm.min.js +1 -1
  17. package/autocomplete/autocomplete.js +9 -5
  18. package/autocomplete/autocomplete.min.js +1 -1
  19. package/avatar/Avatar.d.ts +7 -7
  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 +3 -3
  28. package/badge/Badge.d.ts +3 -3
  29. package/badgedirective/BadgeDirective.d.ts +45 -4
  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 +51 -25
  37. package/basecomponent/basecomponent.cjs.js +66 -42
  38. package/basecomponent/basecomponent.cjs.min.js +1 -1
  39. package/basecomponent/basecomponent.esm.js +66 -42
  40. package/basecomponent/basecomponent.esm.min.js +1 -1
  41. package/basecomponent/basecomponent.js +66 -42
  42. package/basecomponent/basecomponent.min.js +1 -1
  43. package/basedirective/basedirective.cjs.js +9 -3
  44. package/basedirective/basedirective.cjs.min.js +1 -1
  45. package/basedirective/basedirective.esm.js +9 -3
  46. package/basedirective/basedirective.esm.min.js +1 -1
  47. package/basedirective/basedirective.js +9 -3
  48. package/basedirective/basedirective.min.js +1 -1
  49. package/blockui/BaseBlockUI.vue +0 -8
  50. package/blockui/BlockUI.d.ts +7 -3
  51. package/blockui/BlockUI.vue +35 -10
  52. package/blockui/blockui.cjs.js +34 -12
  53. package/blockui/blockui.cjs.min.js +1 -1
  54. package/blockui/blockui.esm.js +34 -12
  55. package/blockui/blockui.esm.min.js +1 -1
  56. package/blockui/blockui.js +34 -12
  57. package/blockui/blockui.min.js +1 -1
  58. package/breadcrumb/Breadcrumb.d.ts +10 -10
  59. package/button/Button.d.ts +8 -7
  60. package/button/Button.vue +4 -0
  61. package/button/button.cjs.js +5 -0
  62. package/button/button.cjs.min.js +1 -1
  63. package/button/button.esm.js +5 -0
  64. package/button/button.esm.min.js +1 -1
  65. package/button/button.js +5 -0
  66. package/button/button.min.js +1 -1
  67. package/calendar/Calendar.d.ts +129 -53
  68. package/calendar/Calendar.vue +49 -7
  69. package/calendar/calendar.cjs.js +72 -35
  70. package/calendar/calendar.cjs.min.js +1 -1
  71. package/calendar/calendar.esm.js +72 -35
  72. package/calendar/calendar.esm.min.js +1 -1
  73. package/calendar/calendar.js +72 -35
  74. package/calendar/calendar.min.js +1 -1
  75. package/card/Card.d.ts +9 -9
  76. package/carousel/Carousel.d.ts +32 -20
  77. package/carousel/Carousel.vue +10 -2
  78. package/carousel/carousel.cjs.js +11 -2
  79. package/carousel/carousel.cjs.min.js +1 -1
  80. package/carousel/carousel.esm.js +11 -2
  81. package/carousel/carousel.esm.min.js +1 -1
  82. package/carousel/carousel.js +11 -2
  83. package/carousel/carousel.min.js +1 -1
  84. package/cascadeselect/CascadeSelect.d.ts +25 -19
  85. package/cascadeselect/CascadeSelect.vue +1 -1
  86. package/cascadeselect/cascadeselect.cjs.js +3 -3
  87. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  88. package/cascadeselect/cascadeselect.esm.js +3 -3
  89. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  90. package/cascadeselect/cascadeselect.js +3 -3
  91. package/cascadeselect/cascadeselect.min.js +1 -1
  92. package/chart/Chart.d.ts +5 -5
  93. package/checkbox/Checkbox.d.ts +8 -8
  94. package/chip/Chip.d.ts +7 -7
  95. package/chips/Chips.d.ts +10 -10
  96. package/colorpicker/ColorPicker.d.ts +18 -11
  97. package/colorpicker/ColorPicker.vue +1 -1
  98. package/colorpicker/colorpicker.cjs.js +3 -3
  99. package/colorpicker/colorpicker.cjs.min.js +1 -1
  100. package/colorpicker/colorpicker.esm.js +3 -3
  101. package/colorpicker/colorpicker.esm.min.js +1 -1
  102. package/colorpicker/colorpicker.js +3 -3
  103. package/colorpicker/colorpicker.min.js +1 -1
  104. package/column/Column.d.ts +58 -58
  105. package/columngroup/ColumnGroup.d.ts +3 -3
  106. package/config/PrimeVue.d.ts +8 -0
  107. package/config/config.cjs.js +4 -1
  108. package/config/config.cjs.min.js +1 -1
  109. package/config/config.esm.js +4 -1
  110. package/config/config.esm.min.js +1 -1
  111. package/config/config.js +4 -1
  112. package/config/config.min.js +1 -1
  113. package/confirmdialog/ConfirmDialog.d.ts +14 -14
  114. package/confirmpopup/ConfirmPopup.d.ts +16 -10
  115. package/confirmpopup/ConfirmPopup.vue +1 -1
  116. package/confirmpopup/confirmpopup.cjs.js +3 -3
  117. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  118. package/confirmpopup/confirmpopup.esm.js +4 -4
  119. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  120. package/confirmpopup/confirmpopup.js +3 -3
  121. package/confirmpopup/confirmpopup.min.js +1 -1
  122. package/contextmenu/ContextMenu.d.ts +19 -13
  123. package/contextmenu/ContextMenu.vue +1 -1
  124. package/contextmenu/ContextMenuSub.vue +1 -1
  125. package/contextmenu/contextmenu.cjs.js +6 -6
  126. package/contextmenu/contextmenu.cjs.min.js +1 -1
  127. package/contextmenu/contextmenu.esm.js +7 -7
  128. package/contextmenu/contextmenu.esm.min.js +1 -1
  129. package/contextmenu/contextmenu.js +6 -6
  130. package/contextmenu/contextmenu.min.js +1 -1
  131. package/core/core.js +1958 -1326
  132. package/core/core.min.js +18 -16
  133. package/datatable/BaseDataTable.vue +1 -1
  134. package/datatable/BodyCell.vue +1 -0
  135. package/datatable/ColumnFilter.vue +1 -1
  136. package/datatable/DataTable.d.ts +37 -31
  137. package/datatable/DataTable.vue +4 -1
  138. package/datatable/datatable.cjs.js +10 -5
  139. package/datatable/datatable.cjs.min.js +1 -1
  140. package/datatable/datatable.esm.js +10 -5
  141. package/datatable/datatable.esm.min.js +1 -1
  142. package/datatable/datatable.js +10 -5
  143. package/datatable/datatable.min.js +1 -1
  144. package/dataview/DataView.d.ts +10 -10
  145. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +7 -7
  146. package/deferredcontent/DeferredContent.d.ts +3 -3
  147. package/dialog/BaseDialog.vue +3 -7
  148. package/dialog/Dialog.d.ts +21 -15
  149. package/dialog/Dialog.vue +2 -1
  150. package/dialog/dialog.cjs.js +9 -6
  151. package/dialog/dialog.cjs.min.js +1 -1
  152. package/dialog/dialog.esm.js +9 -6
  153. package/dialog/dialog.esm.min.js +1 -1
  154. package/dialog/dialog.js +9 -6
  155. package/dialog/dialog.min.js +1 -1
  156. package/divider/BaseDivider.vue +9 -24
  157. package/divider/Divider.d.ts +4 -4
  158. package/divider/Divider.vue +1 -1
  159. package/divider/divider.cjs.js +15 -2
  160. package/divider/divider.cjs.min.js +1 -1
  161. package/divider/divider.esm.js +15 -2
  162. package/divider/divider.esm.min.js +1 -1
  163. package/divider/divider.js +15 -2
  164. package/divider/divider.min.js +1 -1
  165. package/dock/BaseDock.vue +1 -1
  166. package/dock/Dock.d.ts +9 -9
  167. package/dock/Dock.vue +19 -2
  168. package/dock/dock.cjs.js +10 -4
  169. package/dock/dock.cjs.min.js +1 -1
  170. package/dock/dock.esm.js +10 -4
  171. package/dock/dock.esm.min.js +1 -1
  172. package/dock/dock.js +10 -4
  173. package/dock/dock.min.js +1 -1
  174. package/dropdown/BaseDropdown.vue +5 -5
  175. package/dropdown/Dropdown.d.ts +34 -28
  176. package/dropdown/Dropdown.vue +2 -2
  177. package/dropdown/dropdown.cjs.js +9 -9
  178. package/dropdown/dropdown.cjs.min.js +1 -1
  179. package/dropdown/dropdown.esm.js +9 -9
  180. package/dropdown/dropdown.esm.min.js +1 -1
  181. package/dropdown/dropdown.js +9 -9
  182. package/dropdown/dropdown.min.js +1 -1
  183. package/editor/BaseEditor.vue +0 -14
  184. package/editor/Editor.d.ts +19 -19
  185. package/editor/Editor.vue +20 -20
  186. package/editor/editor.cjs.js +20 -34
  187. package/editor/editor.cjs.min.js +1 -1
  188. package/editor/editor.esm.js +20 -34
  189. package/editor/editor.esm.min.js +1 -1
  190. package/editor/editor.js +20 -34
  191. package/editor/editor.min.js +1 -1
  192. package/fieldset/Fieldset.d.ts +17 -11
  193. package/fieldset/Fieldset.vue +1 -1
  194. package/fieldset/fieldset.cjs.js +3 -3
  195. package/fieldset/fieldset.cjs.min.js +1 -1
  196. package/fieldset/fieldset.esm.js +3 -3
  197. package/fieldset/fieldset.esm.min.js +1 -1
  198. package/fieldset/fieldset.js +3 -3
  199. package/fieldset/fieldset.min.js +1 -1
  200. package/fileupload/FileUpload.d.ts +24 -24
  201. package/fileupload/FileUpload.vue +4 -4
  202. package/fileupload/fileupload.cjs.js +10 -4
  203. package/fileupload/fileupload.cjs.min.js +1 -1
  204. package/fileupload/fileupload.esm.js +10 -4
  205. package/fileupload/fileupload.esm.min.js +1 -1
  206. package/fileupload/fileupload.js +10 -4
  207. package/fileupload/fileupload.min.js +1 -1
  208. package/focustrap/FocusTrap.d.ts +5 -5
  209. package/galleria/Galleria.d.ts +53 -34
  210. package/galleria/Galleria.vue +1 -1
  211. package/galleria/GalleriaItem.vue +9 -2
  212. package/galleria/GalleriaThumbnails.vue +1 -0
  213. package/galleria/galleria.cjs.js +14 -5
  214. package/galleria/galleria.cjs.min.js +1 -1
  215. package/galleria/galleria.esm.js +14 -5
  216. package/galleria/galleria.esm.min.js +1 -1
  217. package/galleria/galleria.js +14 -5
  218. package/galleria/galleria.min.js +1 -1
  219. package/image/Image.d.ts +28 -21
  220. package/image/Image.vue +2 -2
  221. package/image/image.cjs.js +4 -3
  222. package/image/image.cjs.min.js +1 -1
  223. package/image/image.esm.js +4 -3
  224. package/image/image.esm.min.js +1 -1
  225. package/image/image.js +4 -3
  226. package/image/image.min.js +1 -1
  227. package/inlinemessage/InlineMessage.d.ts +5 -5
  228. package/inplace/Inplace.d.ts +8 -8
  229. package/inputmask/InputMask.d.ts +32 -4
  230. package/inputmask/InputMask.vue +9 -1
  231. package/inputmask/inputmask.cjs.js +9 -1
  232. package/inputmask/inputmask.cjs.min.js +1 -1
  233. package/inputmask/inputmask.esm.js +9 -1
  234. package/inputmask/inputmask.esm.min.js +1 -1
  235. package/inputmask/inputmask.js +9 -1
  236. package/inputmask/inputmask.min.js +1 -1
  237. package/inputnumber/InputNumber.d.ts +10 -10
  238. package/inputswitch/InputSwitch.d.ts +7 -7
  239. package/inputtext/InputText.d.ts +3 -3
  240. package/knob/Knob.d.ts +7 -7
  241. package/listbox/Listbox.d.ts +18 -18
  242. package/megamenu/MegaMenu.d.ts +18 -18
  243. package/megamenu/MegaMenuSub.vue +1 -0
  244. package/megamenu/megamenu.cjs.js +2 -1
  245. package/megamenu/megamenu.cjs.min.js +1 -1
  246. package/megamenu/megamenu.esm.js +2 -1
  247. package/megamenu/megamenu.esm.min.js +1 -1
  248. package/megamenu/megamenu.js +2 -1
  249. package/megamenu/megamenu.min.js +1 -1
  250. package/menu/Menu.d.ts +20 -14
  251. package/menu/Menu.vue +1 -1
  252. package/menu/menu.cjs.js +3 -3
  253. package/menu/menu.cjs.min.js +1 -1
  254. package/menu/menu.esm.js +3 -3
  255. package/menu/menu.esm.min.js +1 -1
  256. package/menu/menu.js +3 -3
  257. package/menu/menu.min.js +1 -1
  258. package/menubar/Menubar.d.ts +21 -17
  259. package/menubar/MenubarSub.vue +3 -1
  260. package/menubar/menubar.cjs.js +4 -2
  261. package/menubar/menubar.cjs.min.js +1 -1
  262. package/menubar/menubar.esm.js +4 -2
  263. package/menubar/menubar.esm.min.js +1 -1
  264. package/menubar/menubar.js +4 -2
  265. package/menubar/menubar.min.js +1 -1
  266. package/message/Message.d.ts +18 -12
  267. package/message/Message.vue +1 -1
  268. package/message/message.cjs.js +3 -3
  269. package/message/message.cjs.min.js +1 -1
  270. package/message/message.esm.js +4 -4
  271. package/message/message.esm.min.js +1 -1
  272. package/message/message.js +3 -3
  273. package/message/message.min.js +1 -1
  274. package/multiselect/MultiSelect.d.ts +47 -41
  275. package/multiselect/MultiSelect.vue +1 -1
  276. package/multiselect/multiselect.cjs.js +3 -3
  277. package/multiselect/multiselect.cjs.min.js +1 -1
  278. package/multiselect/multiselect.esm.js +3 -3
  279. package/multiselect/multiselect.esm.min.js +1 -1
  280. package/multiselect/multiselect.js +3 -3
  281. package/multiselect/multiselect.min.js +1 -1
  282. package/orderlist/OrderList.d.ts +24 -18
  283. package/orderlist/OrderList.vue +2 -1
  284. package/orderlist/orderlist.cjs.js +3 -1
  285. package/orderlist/orderlist.cjs.min.js +1 -1
  286. package/orderlist/orderlist.esm.js +3 -1
  287. package/orderlist/orderlist.esm.min.js +1 -1
  288. package/orderlist/orderlist.js +3 -1
  289. package/orderlist/orderlist.min.js +1 -1
  290. package/organizationchart/OrganizationChart.d.ts +15 -15
  291. package/overlaypanel/OverlayPanel.d.ts +13 -7
  292. package/overlaypanel/OverlayPanel.vue +2 -1
  293. package/overlaypanel/overlaypanel.cjs.js +5 -3
  294. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  295. package/overlaypanel/overlaypanel.esm.js +6 -4
  296. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  297. package/overlaypanel/overlaypanel.js +5 -3
  298. package/overlaypanel/overlaypanel.min.js +1 -1
  299. package/package.json +15 -15
  300. package/paginator/Paginator.d.ts +20 -20
  301. package/paginator/Paginator.vue +2 -1
  302. package/paginator/paginator.cjs.js +2 -0
  303. package/paginator/paginator.cjs.min.js +1 -1
  304. package/paginator/paginator.esm.js +3 -1
  305. package/paginator/paginator.esm.min.js +1 -1
  306. package/paginator/paginator.js +2 -0
  307. package/paginator/paginator.min.js +1 -1
  308. package/panel/Panel.d.ts +19 -13
  309. package/panel/Panel.vue +1 -1
  310. package/panel/panel.cjs.js +3 -3
  311. package/panel/panel.cjs.min.js +1 -1
  312. package/panel/panel.esm.js +3 -3
  313. package/panel/panel.esm.min.js +1 -1
  314. package/panel/panel.js +3 -3
  315. package/panel/panel.min.js +1 -1
  316. package/panelmenu/PanelMenu.d.ts +27 -21
  317. package/panelmenu/PanelMenu.vue +1 -1
  318. package/panelmenu/PanelMenuSub.vue +1 -1
  319. package/panelmenu/panelmenu.cjs.js +6 -6
  320. package/panelmenu/panelmenu.cjs.min.js +1 -1
  321. package/panelmenu/panelmenu.esm.js +6 -6
  322. package/panelmenu/panelmenu.esm.min.js +1 -1
  323. package/panelmenu/panelmenu.js +6 -6
  324. package/panelmenu/panelmenu.min.js +1 -1
  325. package/passthrough/index.cjs.js +74 -0
  326. package/passthrough/index.cjs.min.js +1 -0
  327. package/passthrough/index.d.ts +15 -0
  328. package/passthrough/index.esm.js +70 -0
  329. package/passthrough/index.esm.min.js +1 -0
  330. package/passthrough/index.js +77 -0
  331. package/passthrough/index.min.js +1 -0
  332. package/passthrough/package.json +6 -0
  333. package/{tailwind/tailwind.cjs.js → passthrough/tailwind/index.cjs.js} +1268 -828
  334. package/passthrough/tailwind/index.cjs.min.js +1 -0
  335. package/{tailwind/Tailwind.d.ts → passthrough/tailwind/index.d.ts} +1 -1
  336. package/{tailwind/tailwind.esm.js → passthrough/tailwind/index.esm.js} +1265 -828
  337. package/passthrough/tailwind/index.esm.min.js +1 -0
  338. package/{tailwind/tailwind.js → passthrough/tailwind/index.js} +1273 -830
  339. package/passthrough/tailwind/index.min.js +1 -0
  340. package/passthrough/tailwind/package.json +6 -0
  341. package/password/Password.d.ts +25 -14
  342. package/password/Password.vue +2 -1
  343. package/password/password.cjs.js +4 -3
  344. package/password/password.cjs.min.js +1 -1
  345. package/password/password.esm.js +4 -3
  346. package/password/password.esm.min.js +1 -1
  347. package/password/password.js +4 -3
  348. package/password/password.min.js +1 -1
  349. package/picklist/PickList.d.ts +42 -36
  350. package/picklist/PickList.vue +3 -2
  351. package/picklist/picklist.cjs.js +4 -2
  352. package/picklist/picklist.cjs.min.js +1 -1
  353. package/picklist/picklist.esm.js +4 -2
  354. package/picklist/picklist.esm.min.js +1 -1
  355. package/picklist/picklist.js +4 -2
  356. package/picklist/picklist.min.js +1 -1
  357. package/progressbar/ProgressBar.d.ts +5 -5
  358. package/progressspinner/ProgressSpinner.d.ts +5 -5
  359. package/radiobutton/RadioButton.d.ts +10 -10
  360. package/rating/Rating.d.ts +12 -12
  361. package/rating/Rating.vue +3 -3
  362. package/rating/rating.cjs.js +3 -3
  363. package/rating/rating.cjs.min.js +1 -1
  364. package/rating/rating.esm.js +3 -3
  365. package/rating/rating.esm.min.js +1 -1
  366. package/rating/rating.js +3 -3
  367. package/rating/rating.min.js +1 -1
  368. package/resources/themes/arya-blue/theme.css +7 -0
  369. package/resources/themes/arya-green/theme.css +7 -0
  370. package/resources/themes/arya-orange/theme.css +7 -0
  371. package/resources/themes/arya-purple/theme.css +7 -0
  372. package/resources/themes/bootstrap4-dark-blue/theme.css +14 -0
  373. package/resources/themes/bootstrap4-dark-purple/theme.css +14 -0
  374. package/resources/themes/bootstrap4-light-blue/theme.css +14 -0
  375. package/resources/themes/bootstrap4-light-purple/theme.css +14 -0
  376. package/resources/themes/fluent-light/theme.css +7 -0
  377. package/resources/themes/lara-dark-blue/theme.css +7 -0
  378. package/resources/themes/lara-dark-indigo/theme.css +7 -0
  379. package/resources/themes/lara-dark-purple/theme.css +7 -0
  380. package/resources/themes/lara-dark-teal/theme.css +7 -0
  381. package/resources/themes/lara-light-blue/theme.css +7 -0
  382. package/resources/themes/lara-light-indigo/theme.css +7 -0
  383. package/resources/themes/lara-light-purple/theme.css +7 -0
  384. package/resources/themes/lara-light-teal/theme.css +7 -0
  385. package/resources/themes/luna-amber/theme.css +7 -0
  386. package/resources/themes/luna-blue/theme.css +7 -0
  387. package/resources/themes/luna-green/theme.css +7 -0
  388. package/resources/themes/luna-pink/theme.css +7 -0
  389. package/resources/themes/md-dark-deeppurple/theme.css +7 -0
  390. package/resources/themes/md-dark-indigo/theme.css +7 -0
  391. package/resources/themes/md-light-deeppurple/theme.css +7 -0
  392. package/resources/themes/md-light-indigo/theme.css +7 -0
  393. package/resources/themes/mdc-dark-deeppurple/theme.css +7 -0
  394. package/resources/themes/mdc-dark-indigo/theme.css +7 -0
  395. package/resources/themes/mdc-light-deeppurple/theme.css +7 -0
  396. package/resources/themes/mdc-light-indigo/theme.css +7 -0
  397. package/resources/themes/mira/theme.css +7 -0
  398. package/resources/themes/nano/theme.css +7 -0
  399. package/resources/themes/nova/theme.css +7 -0
  400. package/resources/themes/nova-accent/theme.css +7 -0
  401. package/resources/themes/nova-alt/theme.css +7 -0
  402. package/resources/themes/nova-vue/theme.css +7 -0
  403. package/resources/themes/rhea/theme.css +7 -0
  404. package/resources/themes/saga-blue/theme.css +7 -0
  405. package/resources/themes/saga-green/theme.css +7 -0
  406. package/resources/themes/saga-orange/theme.css +7 -0
  407. package/resources/themes/saga-purple/theme.css +7 -0
  408. package/resources/themes/soho-dark/theme.css +7 -0
  409. package/resources/themes/soho-light/theme.css +7 -0
  410. package/resources/themes/tailwind-light/theme.css +7 -0
  411. package/resources/themes/vela-blue/theme.css +7 -0
  412. package/resources/themes/vela-green/theme.css +7 -0
  413. package/resources/themes/vela-orange/theme.css +7 -0
  414. package/resources/themes/vela-purple/theme.css +7 -0
  415. package/resources/themes/viva-dark/theme.css +7 -0
  416. package/resources/themes/viva-light/theme.css +7 -0
  417. package/ripple/Ripple.d.ts +3 -3
  418. package/row/Row.d.ts +2 -2
  419. package/scrollpanel/ScrollPanel.d.ts +7 -7
  420. package/scrolltop/ScrollTop.d.ts +11 -5
  421. package/scrolltop/ScrollTop.vue +1 -1
  422. package/scrolltop/scrolltop.cjs.js +3 -3
  423. package/scrolltop/scrolltop.cjs.min.js +1 -1
  424. package/scrolltop/scrolltop.esm.js +4 -4
  425. package/scrolltop/scrolltop.esm.min.js +1 -1
  426. package/scrolltop/scrolltop.js +3 -3
  427. package/scrolltop/scrolltop.min.js +1 -1
  428. package/selectbutton/SelectButton.d.ts +5 -5
  429. package/sidebar/Sidebar.d.ts +16 -10
  430. package/sidebar/Sidebar.vue +1 -1
  431. package/sidebar/sidebar.cjs.js +3 -3
  432. package/sidebar/sidebar.cjs.min.js +1 -1
  433. package/sidebar/sidebar.esm.js +3 -3
  434. package/sidebar/sidebar.esm.min.js +1 -1
  435. package/sidebar/sidebar.js +3 -3
  436. package/sidebar/sidebar.min.js +1 -1
  437. package/skeleton/Skeleton.d.ts +3 -3
  438. package/slider/Slider.d.ts +7 -7
  439. package/speeddial/BaseSpeedDial.vue +12 -36
  440. package/speeddial/SpeedDial.d.ts +14 -9
  441. package/speeddial/SpeedDial.vue +5 -4
  442. package/speeddial/speeddial.cjs.js +44 -23
  443. package/speeddial/speeddial.cjs.min.js +1 -1
  444. package/speeddial/speeddial.esm.js +44 -23
  445. package/speeddial/speeddial.esm.min.js +1 -1
  446. package/speeddial/speeddial.js +44 -23
  447. package/speeddial/speeddial.min.js +1 -1
  448. package/splitbutton/SplitButton.d.ts +8 -8
  449. package/splitbutton/SplitButton.vue +22 -3
  450. package/splitbutton/splitbutton.cjs.js +17 -5
  451. package/splitbutton/splitbutton.cjs.min.js +1 -1
  452. package/splitbutton/splitbutton.esm.js +17 -5
  453. package/splitbutton/splitbutton.esm.min.js +1 -1
  454. package/splitbutton/splitbutton.js +17 -5
  455. package/splitbutton/splitbutton.min.js +1 -1
  456. package/splitter/Splitter.d.ts +16 -5
  457. package/splitter/Splitter.vue +8 -1
  458. package/splitter/splitter.cjs.js +9 -1
  459. package/splitter/splitter.cjs.min.js +1 -1
  460. package/splitter/splitter.esm.js +9 -1
  461. package/splitter/splitter.esm.min.js +1 -1
  462. package/splitter/splitter.js +9 -1
  463. package/splitter/splitter.min.js +1 -1
  464. package/splitterpanel/SplitterPanel.d.ts +3 -3
  465. package/splitterpanel/SplitterPanel.vue +1 -1
  466. package/splitterpanel/splitterpanel.cjs.js +1 -1
  467. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  468. package/splitterpanel/splitterpanel.esm.js +1 -1
  469. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  470. package/splitterpanel/splitterpanel.js +1 -1
  471. package/splitterpanel/splitterpanel.min.js +1 -1
  472. package/steps/Steps.d.ts +8 -8
  473. package/styleclass/StyleClass.d.ts +2 -2
  474. package/tabmenu/TabMenu.d.ts +9 -9
  475. package/tabpanel/TabPanel.d.ts +10 -10
  476. package/tabview/TabView.d.ts +16 -16
  477. package/tag/Tag.d.ts +5 -5
  478. package/terminal/Terminal.d.ts +11 -11
  479. package/textarea/Textarea.d.ts +3 -3
  480. package/tieredmenu/TieredMenu.d.ts +19 -13
  481. package/tieredmenu/TieredMenu.vue +1 -1
  482. package/tieredmenu/tieredmenu.cjs.js +3 -3
  483. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  484. package/tieredmenu/tieredmenu.esm.js +3 -3
  485. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  486. package/tieredmenu/tieredmenu.js +3 -3
  487. package/tieredmenu/tieredmenu.min.js +1 -1
  488. package/timeline/Timeline.d.ts +9 -9
  489. package/toast/BaseToast.vue +4 -0
  490. package/toast/Toast.d.ts +23 -17
  491. package/toast/Toast.vue +3 -2
  492. package/toast/toast.cjs.js +4 -2
  493. package/toast/toast.cjs.min.js +1 -1
  494. package/toast/toast.esm.js +5 -3
  495. package/toast/toast.esm.min.js +1 -1
  496. package/toast/toast.js +4 -2
  497. package/toast/toast.min.js +1 -1
  498. package/togglebutton/ToggleButton.d.ts +31 -9
  499. package/togglebutton/ToggleButton.vue +12 -3
  500. package/togglebutton/togglebutton.cjs.js +12 -3
  501. package/togglebutton/togglebutton.cjs.min.js +1 -1
  502. package/togglebutton/togglebutton.esm.js +12 -3
  503. package/togglebutton/togglebutton.esm.min.js +1 -1
  504. package/togglebutton/togglebutton.js +12 -3
  505. package/togglebutton/togglebutton.min.js +1 -1
  506. package/toolbar/Toolbar.d.ts +6 -6
  507. package/toolbar/Toolbar.vue +3 -3
  508. package/toolbar/toolbar.cjs.js +3 -6
  509. package/toolbar/toolbar.cjs.min.js +1 -1
  510. package/toolbar/toolbar.esm.js +3 -6
  511. package/toolbar/toolbar.esm.min.js +1 -1
  512. package/toolbar/toolbar.js +3 -6
  513. package/toolbar/toolbar.min.js +1 -1
  514. package/tooltip/Tooltip.d.ts +35 -6
  515. package/tooltip/tooltip.cjs.js +17 -4
  516. package/tooltip/tooltip.cjs.min.js +1 -1
  517. package/tooltip/tooltip.esm.js +17 -4
  518. package/tooltip/tooltip.esm.min.js +1 -1
  519. package/tooltip/tooltip.js +413 -400
  520. package/tooltip/tooltip.min.js +1 -1
  521. package/tree/Tree.d.ts +20 -20
  522. package/tree/Tree.vue +1 -0
  523. package/tree/tree.cjs.js +3 -2
  524. package/tree/tree.cjs.min.js +1 -1
  525. package/tree/tree.esm.js +3 -2
  526. package/tree/tree.esm.min.js +1 -1
  527. package/tree/tree.js +3 -2
  528. package/tree/tree.min.js +1 -1
  529. package/treeselect/TreeSelect.d.ts +23 -17
  530. package/treeselect/TreeSelect.vue +2 -2
  531. package/treeselect/treeselect.cjs.js +4 -4
  532. package/treeselect/treeselect.cjs.min.js +1 -1
  533. package/treeselect/treeselect.esm.js +4 -4
  534. package/treeselect/treeselect.esm.min.js +1 -1
  535. package/treeselect/treeselect.js +4 -4
  536. package/treeselect/treeselect.min.js +1 -1
  537. package/treetable/TreeTable.d.ts +21 -21
  538. package/treetable/TreeTable.vue +2 -1
  539. package/treetable/treetable.cjs.js +1 -1
  540. package/treetable/treetable.cjs.min.js +1 -1
  541. package/treetable/treetable.esm.js +1 -1
  542. package/treetable/treetable.esm.min.js +1 -1
  543. package/treetable/treetable.js +1 -1
  544. package/treetable/treetable.min.js +1 -1
  545. package/tristatecheckbox/TriStateCheckbox.d.ts +11 -11
  546. package/usestyle/UseStyle.d.ts +2 -1
  547. package/usestyle/usestyle.cjs.js +20 -7
  548. package/usestyle/usestyle.cjs.min.js +1 -1
  549. package/usestyle/usestyle.esm.js +20 -7
  550. package/usestyle/usestyle.esm.min.js +1 -1
  551. package/usestyle/usestyle.js +20 -7
  552. package/usestyle/usestyle.min.js +1 -1
  553. package/utils/Utils.d.ts +4 -0
  554. package/utils/utils.cjs.js +48 -8
  555. package/utils/utils.cjs.min.js +1 -1
  556. package/utils/utils.esm.js +48 -8
  557. package/utils/utils.esm.min.js +1 -1
  558. package/utils/utils.js +48 -8
  559. package/utils/utils.min.js +1 -1
  560. package/vetur-attributes.json +129 -125
  561. package/vetur-tags.json +1 -0
  562. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  563. package/virtualscroller/VirtualScroller.d.ts +7 -7
  564. package/virtualscroller/virtualscroller.cjs.js +2 -1
  565. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  566. package/virtualscroller/virtualscroller.esm.js +2 -1
  567. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  568. package/virtualscroller/virtualscroller.js +2 -1
  569. package/virtualscroller/virtualscroller.min.js +1 -1
  570. package/web-types.json +160 -127
  571. package/tailwind/package.json +0 -6
  572. package/tailwind/tailwind.cjs.min.js +0 -1
  573. package/tailwind/tailwind.esm.min.js +0 -1
  574. package/tailwind/tailwind.min.js +0 -1
@@ -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,8 +381,8 @@ 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
  }
@@ -394,7 +395,8 @@ export default {
394
395
  this._hook('onCreated');
395
396
  },
396
397
  beforeMount() {
397
- loadBaseStyle();
398
+ loadBaseStyle(undefined, { nonce: this.$config?.csp?.nonce });
399
+ this._loadGlobalStyles();
398
400
  this._hook('onBeforeMount');
399
401
  },
400
402
  mounted() {
@@ -415,10 +417,25 @@ export default {
415
417
  methods: {
416
418
  _hook(hookName) {
417
419
  const selfHook = this._getOptionValue(this.pt, `hooks.${hookName}`);
418
- const globalHook = this._getOptionValue(this.globalPT, `hooks.${hookName}`);
420
+ const defaultHook = this._getOptionValue(this.defaultPT, `hooks.${hookName}`);
419
421
 
420
422
  selfHook?.();
421
- globalHook?.();
423
+ defaultHook?.();
424
+ },
425
+ _loadGlobalStyles() {
426
+ /*
427
+ * @todo Add self custom css support;
428
+ * <Panel :pt="{ css: `...` }" .../>
429
+ *
430
+ * const selfCSS = this._getPTClassValue(this.pt, 'css', this.$params);
431
+ * const defaultCSS = this._getPTClassValue(this.defaultPT, 'css', this.$params);
432
+ * const mergedCSS = mergeProps(selfCSS, defaultCSS);
433
+ * ObjectUtils.isNotEmpty(mergedCSS?.class) && this.$css.loadCustomStyle(mergedCSS?.class);
434
+ */
435
+
436
+ const globalCSS = this._getOptionValue(this.globalPT, 'global.css', this.$params);
437
+
438
+ ObjectUtils.isNotEmpty(globalCSS) && loadGlobalStyle(globalCSS, { nonce: this.$config?.csp?.nonce });
422
439
  },
423
440
  _getHostInstance(instance) {
424
441
  return instance ? (this.$options.hostName ? (instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance)) : instance.$parentInstance) : undefined;
@@ -434,19 +451,17 @@ export default {
434
451
  : ObjectUtils.getItemValue(options, params);
435
452
  },
436
453
  _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
454
  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
- });
455
+ const self = this._getPTClassValue(obj, key, params);
456
+ const globalPT = searchInDefaultPT ? (/./g.test(key) && !!params[key.split('.')[0]] ? this._getPTClassValue(this.globalPT, key, params) : this._getPTClassValue(this.defaultPT, key, params)) : undefined;
457
+ const merged = mergeProps(
458
+ self,
459
+ globalPT,
460
+ key !== 'transition' && {
461
+ ...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }),
462
+ [`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key)
463
+ }
464
+ );
450
465
 
451
466
  return merged;
452
467
  /*
@@ -455,19 +470,24 @@ export default {
455
470
  * return self && self['class'] ? { ...merged, ...{ class: self['class'] } } : merged;
456
471
  */
457
472
  },
473
+ _getPTClassValue(...args) {
474
+ const value = this._getOptionValue(...args);
475
+
476
+ return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? { class: value } : value;
477
+ },
458
478
  ptm(key = '', params = {}) {
459
- return this._getPTValue(this.pt, key, { instance: this, props: this.$props, state: this.$data, ...params });
479
+ return this._getPTValue(this.pt, key, { ...this.$params, ...params });
460
480
  },
461
481
  ptmo(obj = {}, key = '', params = {}) {
462
482
  return this._getPTValue(obj, key, { instance: this, ...params }, false);
463
483
  },
464
484
  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;
485
+ return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, { ...this.$params, ...params }) : undefined;
466
486
  },
467
487
  sx(key = '', when = true, params = {}) {
468
488
  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 });
489
+ const self = this._getOptionValue(this.$css.inlineStyles, key, { ...this.$params, ...params });
490
+ const base = this._getOptionValue(inlineStyles, key, { ...this.$params, ...params });
471
491
 
472
492
  return [base, self];
473
493
  }
@@ -477,16 +497,22 @@ export default {
477
497
  },
478
498
  computed: {
479
499
  globalPT() {
480
- return ObjectUtils.getItemValue(this.$primevue.config.pt, { instance: this });
500
+ return ObjectUtils.getItemValue(this.$config.pt, { instance: this });
481
501
  },
482
502
  defaultPT() {
483
- return this._getOptionValue(this.$primevue.config.pt, this.$options.hostName || this.$.type.name, { instance: this }) || this.globalPT;
503
+ return this._getOptionValue(this.$config.pt, this.$options.hostName || this.$.type.name, { instance: this }) || this.globalPT;
484
504
  },
485
505
  isUnstyled() {
486
- return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
506
+ return this.unstyled !== undefined ? this.unstyled : this.$config.unstyled;
507
+ },
508
+ $params() {
509
+ return { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance };
487
510
  },
488
511
  $css() {
489
- return { classes: undefined, inlineStyles: undefined, loadStyle: () => {}, ...(this._getHostInstance(this) || {}).$css, ...this.$options.css };
512
+ return { classes: undefined, inlineStyles: undefined, loadStyle: () => {}, loadCustomStyle: () => {}, ...(this._getHostInstance(this) || {}).$css, ...this.$options.css };
513
+ },
514
+ $config() {
515
+ return this.$primevue?.config;
490
516
  }
491
517
  }
492
518
  };
@@ -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,8 +49,13 @@ 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
  }
@@ -59,7 +69,11 @@ var script = {
59
69
  this._hook('onCreated');
60
70
  },
61
71
  beforeMount: function beforeMount() {
62
- base.loadBaseStyle();
72
+ var _this$$config3;
73
+ base.loadBaseStyle(undefined, {
74
+ nonce: (_this$$config3 = this.$config) === null || _this$$config3 === void 0 || (_this$$config3 = _this$$config3.csp) === null || _this$$config3 === void 0 ? void 0 : _this$$config3.nonce
75
+ });
76
+ this._loadGlobalStyles();
63
77
  this._hook('onBeforeMount');
64
78
  },
65
79
  mounted: function mounted() {
@@ -80,9 +94,26 @@ var script = {
80
94
  methods: {
81
95
  _hook: function _hook(hookName) {
82
96
  var selfHook = this._getOptionValue(this.pt, "hooks.".concat(hookName));
83
- var globalHook = this._getOptionValue(this.globalPT, "hooks.".concat(hookName));
97
+ var defaultHook = this._getOptionValue(this.defaultPT, "hooks.".concat(hookName));
84
98
  selfHook === null || selfHook === void 0 ? void 0 : selfHook();
85
- globalHook === null || globalHook === void 0 ? void 0 : globalHook();
99
+ defaultHook === null || defaultHook === void 0 ? void 0 : defaultHook();
100
+ },
101
+ _loadGlobalStyles: function _loadGlobalStyles() {
102
+ var _this$$config4;
103
+ /*
104
+ * @todo Add self custom css support;
105
+ * <Panel :pt="{ css: `...` }" .../>
106
+ *
107
+ * const selfCSS = this._getPTClassValue(this.pt, 'css', this.$params);
108
+ * const defaultCSS = this._getPTClassValue(this.defaultPT, 'css', this.$params);
109
+ * const mergedCSS = mergeProps(selfCSS, defaultCSS);
110
+ * ObjectUtils.isNotEmpty(mergedCSS?.class) && this.$css.loadCustomStyle(mergedCSS?.class);
111
+ */
112
+
113
+ var globalCSS = this._getOptionValue(this.globalPT, 'global.css', this.$params);
114
+ utils.ObjectUtils.isNotEmpty(globalCSS) && loadGlobalStyle(globalCSS, {
115
+ 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
116
+ });
86
117
  },
87
118
  _getHostInstance: function _getHostInstance(instance) {
88
119
  return instance ? this.$options.hostName ? instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance) : instance.$parentInstance : undefined;
@@ -97,21 +128,14 @@ var script = {
97
128
  }) || ''], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(options, params);
98
129
  },
99
130
  _getPTValue: function _getPTValue() {
100
- var _this = this;
101
131
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
102
132
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
103
133
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
104
134
  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
135
  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))));
136
+ var self = this._getPTClassValue(obj, key, params);
137
+ var globalPT = searchInDefaultPT ? /./g.test(key) && !!params[key.split('.')[0]] ? this._getPTClassValue(this.globalPT, key, params) : this._getPTClassValue(this.defaultPT, key, params) : undefined;
138
+ 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
139
  return merged;
116
140
  /*
117
141
  * @todo: The 'class' option in self can always be more powerful to style the component easily.
@@ -119,14 +143,16 @@ var script = {
119
143
  * return self && self['class'] ? { ...merged, ...{ class: self['class'] } } : merged;
120
144
  */
121
145
  },
146
+ _getPTClassValue: function _getPTClassValue() {
147
+ var value = this._getOptionValue.apply(this, arguments);
148
+ return utils.ObjectUtils.isString(value) || utils.ObjectUtils.isArray(value) ? {
149
+ "class": value
150
+ } : value;
151
+ },
122
152
  ptm: function ptm() {
123
153
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
124
154
  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));
155
+ return this._getPTValue(this.pt, key, _objectSpread(_objectSpread({}, this.$params), params));
130
156
  },
131
157
  ptmo: function ptmo() {
132
158
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -139,30 +165,15 @@ var script = {
139
165
  cx: function cx() {
140
166
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
141
167
  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;
168
+ return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, _objectSpread(_objectSpread({}, this.$params), params)) : undefined;
148
169
  },
149
170
  sx: function sx() {
150
171
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
151
172
  var when = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
152
173
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
153
174
  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));
175
+ var self = this._getOptionValue(this.$css.inlineStyles, key, _objectSpread(_objectSpread({}, this.$params), params));
176
+ var base = this._getOptionValue(inlineStyles, key, _objectSpread(_objectSpread({}, this.$params), params));
166
177
  return [base, self];
167
178
  }
168
179
  return undefined;
@@ -170,24 +181,37 @@ var script = {
170
181
  },
171
182
  computed: {
172
183
  globalPT: function globalPT() {
173
- return utils.ObjectUtils.getItemValue(this.$primevue.config.pt, {
184
+ return utils.ObjectUtils.getItemValue(this.$config.pt, {
174
185
  instance: this
175
186
  });
176
187
  },
177
188
  defaultPT: function defaultPT() {
178
- return this._getOptionValue(this.$primevue.config.pt, this.$options.hostName || this.$.type.name, {
189
+ return this._getOptionValue(this.$config.pt, this.$options.hostName || this.$.type.name, {
179
190
  instance: this
180
191
  }) || this.globalPT;
181
192
  },
182
193
  isUnstyled: function isUnstyled() {
183
- return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
194
+ return this.unstyled !== undefined ? this.unstyled : this.$config.unstyled;
195
+ },
196
+ $params: function $params() {
197
+ return {
198
+ instance: this,
199
+ props: this.$props,
200
+ state: this.$data,
201
+ parentInstance: this.$parentInstance
202
+ };
184
203
  },
185
204
  $css: function $css() {
186
205
  return _objectSpread(_objectSpread({
187
206
  classes: undefined,
188
207
  inlineStyles: undefined,
189
- loadStyle: function loadStyle() {}
208
+ loadStyle: function loadStyle() {},
209
+ loadCustomStyle: function loadCustomStyle() {}
190
210
  }, (this._getHostInstance(this) || {}).$css), this.$options.css);
211
+ },
212
+ $config: function $config() {
213
+ var _this$$primevue2;
214
+ return (_this$$primevue2 = this.$primevue) === null || _this$$primevue2 === void 0 ? void 0 : _this$$primevue2.config;
191
215
  }
192
216
  }
193
217
  };
@@ -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"),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=t.useStyle("",{name:"global",manual:!0}).load,f={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,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(){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){var t=this._getOptionValue(this.pt,"hooks.".concat(n)),e=this._getOptionValue(this.defaultPT,"hooks.".concat(n));null==t||t(),null==e||e()},_loadGlobalStyles:function(){var n,t=this._getOptionValue(this.globalPT,"global.css",this.$params);e.ObjectUtils.isNotEmpty(t)&&b(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]:{},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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l="data-pc-",s=this._getPTClassValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n,t),p=i?/./g.test(n)&&t[n.split(".")[0]]?this._getPTClassValue(this.globalPT,n,t):this._getPTClassValue(this.defaultPT,n,t):void 0;return o.mergeProps(s,p,"transition"!==n&&a(a({},"root"===n&&r({},"".concat(l,"name"),e.ObjectUtils.toFlatCase(this.$.type.name))),{},r({},"".concat(l,"section"),e.ObjectUtils.toFlatCase(n))))},_getPTClassValue:function(){var n=this._getOptionValue.apply(this,arguments);return e.ObjectUtils.isString(n)||e.ObjectUtils.isArray(n)?{class:n}:n},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(c,n,a(a({},this.$params),t)),e]}}},computed:{globalPT:function(){return e.ObjectUtils.getItemValue(this.$config.pt,{instance:this})},defaultPT:function(){return this._getOptionValue(this.$config.pt,this.$options.hostName||this.$.type.name,{instance:this})||this.globalPT},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}}};module.exports=f;
@@ -20,6 +20,11 @@ var _useStyle = useStyle(styles, {
20
20
  manual: true
21
21
  }),
22
22
  loadStyle = _useStyle.load;
23
+ var _useStyle2 = useStyle('', {
24
+ name: 'global',
25
+ manual: true
26
+ }),
27
+ loadGlobalStyle = _useStyle2.load;
23
28
  var script = {
24
29
  name: 'BaseComponent',
25
30
  props: {
@@ -42,8 +47,13 @@ var script = {
42
47
  immediate: true,
43
48
  handler: function handler(newValue) {
44
49
  if (!newValue) {
45
- loadStyle();
46
- this.$options.css && this.$css.loadStyle();
50
+ var _this$$config, _this$$config2;
51
+ loadStyle(undefined, {
52
+ 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
53
+ });
54
+ this.$options.css && this.$css.loadStyle(undefined, {
55
+ 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
56
+ });
47
57
  }
48
58
  }
49
59
  }
@@ -57,7 +67,11 @@ var script = {
57
67
  this._hook('onCreated');
58
68
  },
59
69
  beforeMount: function beforeMount() {
60
- loadBaseStyle();
70
+ var _this$$config3;
71
+ loadBaseStyle(undefined, {
72
+ nonce: (_this$$config3 = this.$config) === null || _this$$config3 === void 0 || (_this$$config3 = _this$$config3.csp) === null || _this$$config3 === void 0 ? void 0 : _this$$config3.nonce
73
+ });
74
+ this._loadGlobalStyles();
61
75
  this._hook('onBeforeMount');
62
76
  },
63
77
  mounted: function mounted() {
@@ -78,9 +92,26 @@ var script = {
78
92
  methods: {
79
93
  _hook: function _hook(hookName) {
80
94
  var selfHook = this._getOptionValue(this.pt, "hooks.".concat(hookName));
81
- var globalHook = this._getOptionValue(this.globalPT, "hooks.".concat(hookName));
95
+ var defaultHook = this._getOptionValue(this.defaultPT, "hooks.".concat(hookName));
82
96
  selfHook === null || selfHook === void 0 ? void 0 : selfHook();
83
- globalHook === null || globalHook === void 0 ? void 0 : globalHook();
97
+ defaultHook === null || defaultHook === void 0 ? void 0 : defaultHook();
98
+ },
99
+ _loadGlobalStyles: function _loadGlobalStyles() {
100
+ var _this$$config4;
101
+ /*
102
+ * @todo Add self custom css support;
103
+ * <Panel :pt="{ css: `...` }" .../>
104
+ *
105
+ * const selfCSS = this._getPTClassValue(this.pt, 'css', this.$params);
106
+ * const defaultCSS = this._getPTClassValue(this.defaultPT, 'css', this.$params);
107
+ * const mergedCSS = mergeProps(selfCSS, defaultCSS);
108
+ * ObjectUtils.isNotEmpty(mergedCSS?.class) && this.$css.loadCustomStyle(mergedCSS?.class);
109
+ */
110
+
111
+ var globalCSS = this._getOptionValue(this.globalPT, 'global.css', this.$params);
112
+ ObjectUtils.isNotEmpty(globalCSS) && loadGlobalStyle(globalCSS, {
113
+ 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
114
+ });
84
115
  },
85
116
  _getHostInstance: function _getHostInstance(instance) {
86
117
  return instance ? this.$options.hostName ? instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance) : instance.$parentInstance : undefined;
@@ -95,21 +126,14 @@ var script = {
95
126
  }) || ''], params), fKeys.join('.'), params) : undefined : ObjectUtils.getItemValue(options, params);
96
127
  },
97
128
  _getPTValue: function _getPTValue() {
98
- var _this = this;
99
129
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
100
130
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
101
131
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
102
132
  var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
103
- var getValue = function getValue() {
104
- var value = _this._getOptionValue.apply(_this, arguments);
105
- return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? {
106
- "class": value
107
- } : value;
108
- };
109
133
  var datasetPrefix = 'data-pc-';
110
- var self = getValue(obj, key, params);
111
- var globalPT = searchInDefaultPT ? /./g.test(key) && !!params[key.split('.')[0]] ? getValue(this.globalPT, key, params) : getValue(this.defaultPT, key, params) : undefined;
112
- var merged = mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), ObjectUtils.toFlatCase(this.$.type.name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), ObjectUtils.toFlatCase(key))));
134
+ var self = this._getPTClassValue(obj, key, params);
135
+ var globalPT = searchInDefaultPT ? /./g.test(key) && !!params[key.split('.')[0]] ? this._getPTClassValue(this.globalPT, key, params) : this._getPTClassValue(this.defaultPT, key, params) : undefined;
136
+ var merged = mergeProps(self, globalPT, key !== 'transition' && _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), ObjectUtils.toFlatCase(this.$.type.name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), ObjectUtils.toFlatCase(key))));
113
137
  return merged;
114
138
  /*
115
139
  * @todo: The 'class' option in self can always be more powerful to style the component easily.
@@ -117,14 +141,16 @@ var script = {
117
141
  * return self && self['class'] ? { ...merged, ...{ class: self['class'] } } : merged;
118
142
  */
119
143
  },
144
+ _getPTClassValue: function _getPTClassValue() {
145
+ var value = this._getOptionValue.apply(this, arguments);
146
+ return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? {
147
+ "class": value
148
+ } : value;
149
+ },
120
150
  ptm: function ptm() {
121
151
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
122
152
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
123
- return this._getPTValue(this.pt, key, _objectSpread({
124
- instance: this,
125
- props: this.$props,
126
- state: this.$data
127
- }, params));
153
+ return this._getPTValue(this.pt, key, _objectSpread(_objectSpread({}, this.$params), params));
128
154
  },
129
155
  ptmo: function ptmo() {
130
156
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -137,30 +163,15 @@ var script = {
137
163
  cx: function cx() {
138
164
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
139
165
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
140
- return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, _objectSpread({
141
- instance: this,
142
- props: this.$props,
143
- state: this.$data,
144
- parentInstance: this.$parentInstance
145
- }, params)) : undefined;
166
+ return !this.isUnstyled ? this._getOptionValue(this.$css.classes, key, _objectSpread(_objectSpread({}, this.$params), params)) : undefined;
146
167
  },
147
168
  sx: function sx() {
148
169
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
149
170
  var when = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
150
171
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
151
172
  if (when) {
152
- var self = this._getOptionValue(this.$css.inlineStyles, key, _objectSpread({
153
- instance: this,
154
- props: this.$props,
155
- state: this.$data,
156
- parentInstance: this.$parentInstance
157
- }, params));
158
- var base = this._getOptionValue(inlineStyles, key, _objectSpread({
159
- instance: this,
160
- props: this.$props,
161
- state: this.$data,
162
- parentInstance: this.$parentInstance
163
- }, params));
173
+ var self = this._getOptionValue(this.$css.inlineStyles, key, _objectSpread(_objectSpread({}, this.$params), params));
174
+ var base = this._getOptionValue(inlineStyles, key, _objectSpread(_objectSpread({}, this.$params), params));
164
175
  return [base, self];
165
176
  }
166
177
  return undefined;
@@ -168,24 +179,37 @@ var script = {
168
179
  },
169
180
  computed: {
170
181
  globalPT: function globalPT() {
171
- return ObjectUtils.getItemValue(this.$primevue.config.pt, {
182
+ return ObjectUtils.getItemValue(this.$config.pt, {
172
183
  instance: this
173
184
  });
174
185
  },
175
186
  defaultPT: function defaultPT() {
176
- return this._getOptionValue(this.$primevue.config.pt, this.$options.hostName || this.$.type.name, {
187
+ return this._getOptionValue(this.$config.pt, this.$options.hostName || this.$.type.name, {
177
188
  instance: this
178
189
  }) || this.globalPT;
179
190
  },
180
191
  isUnstyled: function isUnstyled() {
181
- return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
192
+ return this.unstyled !== undefined ? this.unstyled : this.$config.unstyled;
193
+ },
194
+ $params: function $params() {
195
+ return {
196
+ instance: this,
197
+ props: this.$props,
198
+ state: this.$data,
199
+ parentInstance: this.$parentInstance
200
+ };
182
201
  },
183
202
  $css: function $css() {
184
203
  return _objectSpread(_objectSpread({
185
204
  classes: undefined,
186
205
  inlineStyles: undefined,
187
- loadStyle: function loadStyle() {}
206
+ loadStyle: function loadStyle() {},
207
+ loadCustomStyle: function loadCustomStyle() {}
188
208
  }, (this._getHostInstance(this) || {}).$css), this.$options.css);
209
+ },
210
+ $config: function $config() {
211
+ var _this$$primevue2;
212
+ return (_this$$primevue2 = this.$primevue) === null || _this$$primevue2 === void 0 ? void 0 : _this$$primevue2.config;
189
213
  }
190
214
  }
191
215
  };