primevue 3.32.2 → 3.34.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 (426) hide show
  1. package/accordion/Accordion.d.ts +21 -2
  2. package/accordion/accordion.cjs.js +3 -3
  3. package/accordion/accordion.esm.js +3 -3
  4. package/accordion/accordion.js +3 -3
  5. package/accordiontab/AccordionTab.d.ts +24 -2
  6. package/autocomplete/AutoComplete.d.ts +24 -2
  7. package/autocomplete/AutoComplete.vue +1 -1
  8. package/autocomplete/autocomplete.cjs.js +5 -5
  9. package/autocomplete/autocomplete.cjs.min.js +1 -1
  10. package/autocomplete/autocomplete.esm.js +5 -5
  11. package/autocomplete/autocomplete.esm.min.js +1 -1
  12. package/autocomplete/autocomplete.js +5 -5
  13. package/autocomplete/autocomplete.min.js +1 -1
  14. package/avatar/Avatar.d.ts +21 -2
  15. package/avatargroup/AvatarGroup.d.ts +8 -2
  16. package/badge/Badge.d.ts +18 -2
  17. package/badgedirective/BadgeDirective.d.ts +12 -2
  18. package/badgedirective/badgedirective.cjs.js +3 -3
  19. package/badgedirective/badgedirective.esm.js +3 -3
  20. package/badgedirective/badgedirective.js +3 -3
  21. package/basecomponent/BaseComponent.vue +20 -22
  22. package/basecomponent/basecomponent.cjs.js +41 -28
  23. package/basecomponent/basecomponent.cjs.min.js +1 -1
  24. package/basecomponent/basecomponent.esm.js +41 -28
  25. package/basecomponent/basecomponent.esm.min.js +1 -1
  26. package/basecomponent/basecomponent.js +41 -28
  27. package/basecomponent/basecomponent.min.js +1 -1
  28. package/basedirective/basedirective.cjs.js +42 -25
  29. package/basedirective/basedirective.cjs.min.js +1 -1
  30. package/basedirective/basedirective.esm.js +42 -25
  31. package/basedirective/basedirective.esm.min.js +1 -1
  32. package/basedirective/basedirective.js +42 -25
  33. package/basedirective/basedirective.min.js +1 -1
  34. package/blockui/BlockUI.d.ts +21 -2
  35. package/breadcrumb/Breadcrumb.d.ts +47 -2
  36. package/breadcrumb/Breadcrumb.vue +7 -2
  37. package/breadcrumb/BreadcrumbItem.vue +28 -3
  38. package/breadcrumb/breadcrumb.cjs.js +35 -8
  39. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  40. package/breadcrumb/breadcrumb.esm.js +36 -9
  41. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  42. package/breadcrumb/breadcrumb.js +35 -8
  43. package/breadcrumb/breadcrumb.min.js +1 -1
  44. package/button/Button.d.ts +24 -2
  45. package/button/button.cjs.js +1 -1
  46. package/button/button.esm.js +1 -1
  47. package/button/button.js +1 -1
  48. package/calendar/Calendar.d.ts +26 -4
  49. package/calendar/Calendar.vue +63 -29
  50. package/calendar/calendar.cjs.js +137 -51
  51. package/calendar/calendar.cjs.min.js +1 -1
  52. package/calendar/calendar.esm.js +137 -51
  53. package/calendar/calendar.esm.min.js +1 -1
  54. package/calendar/calendar.js +137 -51
  55. package/calendar/calendar.min.js +1 -1
  56. package/card/Card.d.ts +8 -2
  57. package/carousel/Carousel.d.ts +24 -2
  58. package/carousel/Carousel.vue +22 -2
  59. package/carousel/carousel.cjs.js +9 -5
  60. package/carousel/carousel.cjs.min.js +1 -1
  61. package/carousel/carousel.esm.js +9 -5
  62. package/carousel/carousel.esm.min.js +1 -1
  63. package/carousel/carousel.js +9 -5
  64. package/carousel/carousel.min.js +1 -1
  65. package/cascadeselect/CascadeSelect.d.ts +21 -2
  66. package/cascadeselect/cascadeselect.cjs.js +3 -3
  67. package/cascadeselect/cascadeselect.esm.js +3 -3
  68. package/cascadeselect/cascadeselect.js +3 -3
  69. package/chart/Chart.d.ts +18 -2
  70. package/chart/chart.cjs.js +3 -3
  71. package/chart/chart.esm.js +3 -3
  72. package/chart/chart.js +3 -3
  73. package/checkbox/Checkbox.d.ts +24 -2
  74. package/checkbox/checkbox.cjs.js +3 -3
  75. package/checkbox/checkbox.esm.js +3 -3
  76. package/checkbox/checkbox.js +3 -3
  77. package/chip/Chip.d.ts +21 -2
  78. package/chips/Chips.d.ts +21 -2
  79. package/chips/chips.cjs.js +3 -3
  80. package/chips/chips.esm.js +3 -3
  81. package/chips/chips.js +3 -3
  82. package/colorpicker/ColorPicker.d.ts +21 -2
  83. package/column/Column.d.ts +24 -2
  84. package/columngroup/ColumnGroup.d.ts +24 -2
  85. package/config/PrimeVue.d.ts +93 -92
  86. package/config/config.cjs.js +4 -3
  87. package/config/config.cjs.min.js +1 -1
  88. package/config/config.esm.js +4 -3
  89. package/config/config.esm.min.js +1 -1
  90. package/config/config.js +4 -3
  91. package/config/config.min.js +1 -1
  92. package/confirmdialog/ConfirmDialog.d.ts +21 -2
  93. package/confirmpopup/ConfirmPopup.d.ts +21 -2
  94. package/confirmpopup/confirmpopup.cjs.js +3 -3
  95. package/confirmpopup/confirmpopup.esm.js +3 -3
  96. package/confirmpopup/confirmpopup.js +3 -3
  97. package/contextmenu/ContextMenu.d.ts +54 -2
  98. package/contextmenu/ContextMenu.vue +13 -7
  99. package/contextmenu/ContextMenuSub.vue +34 -2
  100. package/contextmenu/contextmenu.cjs.js +41 -14
  101. package/contextmenu/contextmenu.cjs.min.js +1 -1
  102. package/contextmenu/contextmenu.esm.js +42 -15
  103. package/contextmenu/contextmenu.esm.min.js +1 -1
  104. package/contextmenu/contextmenu.js +41 -14
  105. package/contextmenu/contextmenu.min.js +1 -1
  106. package/core/core.js +256 -147
  107. package/core/core.min.js +12 -12
  108. package/datatable/BodyCell.vue +14 -4
  109. package/datatable/DataTable.d.ts +41 -3
  110. package/datatable/DataTable.vue +6 -3
  111. package/datatable/TableBody.vue +7 -8
  112. package/datatable/datatable.cjs.js +63 -57
  113. package/datatable/datatable.cjs.min.js +1 -1
  114. package/datatable/datatable.esm.js +63 -57
  115. package/datatable/datatable.esm.min.js +1 -1
  116. package/datatable/datatable.js +63 -57
  117. package/datatable/datatable.min.js +1 -1
  118. package/dataview/DataView.d.ts +21 -2
  119. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +21 -2
  120. package/deferredcontent/DeferredContent.d.ts +21 -2
  121. package/dialog/Dialog.d.ts +21 -2
  122. package/dialog/Dialog.vue +2 -2
  123. package/dialog/dialog.cjs.js +7 -5
  124. package/dialog/dialog.cjs.min.js +1 -1
  125. package/dialog/dialog.esm.js +8 -6
  126. package/dialog/dialog.esm.min.js +1 -1
  127. package/dialog/dialog.js +7 -5
  128. package/dialog/dialog.min.js +1 -1
  129. package/divider/Divider.d.ts +18 -2
  130. package/dock/Dock.d.ts +46 -2
  131. package/dock/Dock.vue +5 -0
  132. package/dock/DockSub.vue +20 -1
  133. package/dock/dock.cjs.js +21 -2
  134. package/dock/dock.cjs.min.js +1 -1
  135. package/dock/dock.esm.js +22 -3
  136. package/dock/dock.esm.min.js +1 -1
  137. package/dock/dock.js +21 -2
  138. package/dock/dock.min.js +1 -1
  139. package/dropdown/Dropdown.d.ts +24 -2
  140. package/dropdown/dropdown.cjs.js +6 -6
  141. package/dropdown/dropdown.esm.js +6 -6
  142. package/dropdown/dropdown.js +6 -6
  143. package/editor/Editor.d.ts +22 -2
  144. package/editor/editor.cjs.js +3 -3
  145. package/editor/editor.esm.js +3 -3
  146. package/editor/editor.js +3 -3
  147. package/fieldset/Fieldset.d.ts +21 -2
  148. package/fieldset/fieldset.cjs.js +4 -4
  149. package/fieldset/fieldset.esm.js +4 -4
  150. package/fieldset/fieldset.js +4 -4
  151. package/fileupload/FileContent.vue +8 -6
  152. package/fileupload/FileUpload.d.ts +21 -2
  153. package/fileupload/FileUpload.vue +9 -7
  154. package/fileupload/fileupload.cjs.js +17 -13
  155. package/fileupload/fileupload.cjs.min.js +1 -1
  156. package/fileupload/fileupload.esm.js +17 -13
  157. package/fileupload/fileupload.esm.min.js +1 -1
  158. package/fileupload/fileupload.js +17 -13
  159. package/fileupload/fileupload.min.js +1 -1
  160. package/focustrap/FocusTrap.d.ts +8 -2
  161. package/galleria/Galleria.d.ts +24 -2
  162. package/galleria/galleria.cjs.js +9 -9
  163. package/galleria/galleria.esm.js +9 -9
  164. package/galleria/galleria.js +9 -9
  165. package/image/Image.d.ts +21 -2
  166. package/image/image.cjs.js +3 -3
  167. package/image/image.esm.js +3 -3
  168. package/image/image.js +3 -3
  169. package/inlinemessage/InlineMessage.d.ts +21 -2
  170. package/inplace/Inplace.d.ts +21 -2
  171. package/inplace/inplace.cjs.js +3 -3
  172. package/inplace/inplace.esm.js +3 -3
  173. package/inplace/inplace.js +3 -3
  174. package/inputmask/InputMask.d.ts +21 -2
  175. package/inputmask/InputMask.vue +3 -1
  176. package/inputmask/inputmask.cjs.js +2 -1
  177. package/inputmask/inputmask.cjs.min.js +1 -1
  178. package/inputmask/inputmask.esm.js +2 -1
  179. package/inputmask/inputmask.esm.min.js +1 -1
  180. package/inputmask/inputmask.js +2 -1
  181. package/inputmask/inputmask.min.js +1 -1
  182. package/inputnumber/InputNumber.d.ts +21 -2
  183. package/inputnumber/inputnumber.cjs.js +6 -6
  184. package/inputnumber/inputnumber.esm.js +6 -6
  185. package/inputnumber/inputnumber.js +6 -6
  186. package/inputswitch/InputSwitch.d.ts +21 -2
  187. package/inputswitch/inputswitch.cjs.js +3 -3
  188. package/inputswitch/inputswitch.esm.js +3 -3
  189. package/inputswitch/inputswitch.js +3 -3
  190. package/inputtext/InputText.d.ts +21 -2
  191. package/knob/Knob.d.ts +21 -2
  192. package/listbox/Listbox.d.ts +24 -2
  193. package/listbox/listbox.cjs.js +3 -3
  194. package/listbox/listbox.esm.js +3 -3
  195. package/listbox/listbox.js +3 -3
  196. package/megamenu/MegaMenu.d.ts +58 -2
  197. package/megamenu/MegaMenu.vue +6 -30
  198. package/megamenu/MegaMenuSub.vue +34 -3
  199. package/megamenu/megamenu.cjs.js +36 -39
  200. package/megamenu/megamenu.cjs.min.js +1 -1
  201. package/megamenu/megamenu.esm.js +37 -40
  202. package/megamenu/megamenu.esm.min.js +1 -1
  203. package/megamenu/megamenu.js +36 -39
  204. package/megamenu/megamenu.min.js +1 -1
  205. package/menu/Menu.d.ts +60 -2
  206. package/menu/Menu.vue +6 -1
  207. package/menu/Menuitem.vue +26 -1
  208. package/menu/menu.cjs.js +29 -7
  209. package/menu/menu.cjs.min.js +1 -1
  210. package/menu/menu.esm.js +30 -8
  211. package/menu/menu.esm.min.js +1 -1
  212. package/menu/menu.js +29 -7
  213. package/menu/menu.min.js +1 -1
  214. package/menubar/Menubar.d.ts +62 -2
  215. package/menubar/Menubar.vue +6 -0
  216. package/menubar/MenubarSub.vue +32 -1
  217. package/menubar/menubar.cjs.js +34 -6
  218. package/menubar/menubar.cjs.min.js +1 -1
  219. package/menubar/menubar.esm.js +35 -7
  220. package/menubar/menubar.esm.min.js +1 -1
  221. package/menubar/menubar.js +34 -6
  222. package/menubar/menubar.min.js +1 -1
  223. package/menuitem/MenuItem.d.ts +1 -0
  224. package/message/Message.d.ts +21 -2
  225. package/message/message.cjs.js +3 -3
  226. package/message/message.esm.js +3 -3
  227. package/message/message.js +3 -3
  228. package/multiselect/MultiSelect.d.ts +24 -2
  229. package/multiselect/multiselect.cjs.js +6 -6
  230. package/multiselect/multiselect.esm.js +6 -6
  231. package/multiselect/multiselect.js +6 -6
  232. package/orderlist/OrderList.d.ts +24 -2
  233. package/orderlist/OrderList.vue +7 -5
  234. package/orderlist/orderlist.cjs.js +10 -8
  235. package/orderlist/orderlist.cjs.min.js +1 -1
  236. package/orderlist/orderlist.esm.js +10 -8
  237. package/orderlist/orderlist.esm.min.js +1 -1
  238. package/orderlist/orderlist.js +10 -8
  239. package/orderlist/orderlist.min.js +1 -1
  240. package/organizationchart/OrganizationChart.d.ts +24 -2
  241. package/organizationchart/organizationchart.cjs.js +4 -4
  242. package/organizationchart/organizationchart.esm.js +4 -4
  243. package/organizationchart/organizationchart.js +4 -4
  244. package/overlaypanel/OverlayPanel.d.ts +21 -2
  245. package/overlaypanel/overlaypanel.cjs.js +3 -3
  246. package/overlaypanel/overlaypanel.esm.js +3 -3
  247. package/overlaypanel/overlaypanel.js +3 -3
  248. package/package.json +1 -1
  249. package/paginator/FirstPageLink.vue +1 -1
  250. package/paginator/JumpToPageDropdown.vue +1 -0
  251. package/paginator/LastPageLink.vue +1 -1
  252. package/paginator/NextPageLink.vue +1 -1
  253. package/paginator/Paginator.d.ts +24 -2
  254. package/paginator/PrevPageLink.vue +1 -1
  255. package/paginator/RowsPerPageDropdown.vue +1 -0
  256. package/paginator/paginator.cjs.js +19 -9
  257. package/paginator/paginator.cjs.min.js +1 -1
  258. package/paginator/paginator.esm.js +19 -9
  259. package/paginator/paginator.esm.min.js +1 -1
  260. package/paginator/paginator.js +19 -9
  261. package/paginator/paginator.min.js +1 -1
  262. package/panel/Panel.d.ts +21 -2
  263. package/panel/panel.cjs.js +3 -3
  264. package/panel/panel.esm.js +3 -3
  265. package/panel/panel.js +3 -3
  266. package/panelmenu/PanelMenu.d.ts +58 -2
  267. package/panelmenu/PanelMenu.vue +6 -0
  268. package/panelmenu/PanelMenuList.vue +1 -0
  269. package/panelmenu/PanelMenuSub.vue +33 -1
  270. package/panelmenu/panelmenu.cjs.js +41 -12
  271. package/panelmenu/panelmenu.cjs.min.js +1 -1
  272. package/panelmenu/panelmenu.esm.js +42 -13
  273. package/panelmenu/panelmenu.esm.min.js +1 -1
  274. package/panelmenu/panelmenu.js +41 -12
  275. package/panelmenu/panelmenu.min.js +1 -1
  276. package/passthrough/index.cjs.js +15 -9
  277. package/passthrough/index.cjs.min.js +1 -1
  278. package/passthrough/index.d.ts +4 -4
  279. package/passthrough/index.esm.js +15 -9
  280. package/passthrough/index.esm.min.js +1 -1
  281. package/passthrough/index.js +15 -9
  282. package/passthrough/index.min.js +1 -1
  283. package/passthrough/tailwind/index.cjs.js +3 -3
  284. package/passthrough/tailwind/index.cjs.min.js +1 -1
  285. package/passthrough/tailwind/index.esm.js +3 -3
  286. package/passthrough/tailwind/index.esm.min.js +1 -1
  287. package/passthrough/tailwind/index.js +3 -3
  288. package/passthrough/tailwind/index.min.js +1 -1
  289. package/password/Password.d.ts +21 -2
  290. package/password/password.cjs.js +3 -3
  291. package/password/password.esm.js +3 -3
  292. package/password/password.js +3 -3
  293. package/picklist/PickList.d.ts +24 -2
  294. package/picklist/PickList.vue +8 -5
  295. package/picklist/picklist.cjs.js +10 -8
  296. package/picklist/picklist.cjs.min.js +1 -1
  297. package/picklist/picklist.esm.js +10 -8
  298. package/picklist/picklist.esm.min.js +1 -1
  299. package/picklist/picklist.js +10 -8
  300. package/picklist/picklist.min.js +1 -1
  301. package/progressbar/ProgressBar.d.ts +18 -2
  302. package/progressspinner/ProgressSpinner.d.ts +18 -2
  303. package/radiobutton/RadioButton.d.ts +21 -2
  304. package/radiobutton/radiobutton.cjs.js +3 -3
  305. package/radiobutton/radiobutton.esm.js +3 -3
  306. package/radiobutton/radiobutton.js +3 -3
  307. package/rating/Rating.d.ts +24 -2
  308. package/ripple/Ripple.d.ts +8 -2
  309. package/row/Row.d.ts +16 -0
  310. package/scrollpanel/ScrollPanel.d.ts +21 -2
  311. package/scrolltop/ScrollTop.d.ts +21 -2
  312. package/selectbutton/SelectButton.d.ts +24 -2
  313. package/sidebar/Sidebar.d.ts +21 -2
  314. package/sidebar/sidebar.cjs.js +3 -3
  315. package/sidebar/sidebar.esm.js +3 -3
  316. package/sidebar/sidebar.js +3 -3
  317. package/skeleton/Skeleton.d.ts +18 -2
  318. package/slider/Slider.d.ts +18 -2
  319. package/speeddial/SpeedDial.d.ts +24 -2
  320. package/speeddial/speeddial.cjs.js +4 -4
  321. package/speeddial/speeddial.esm.js +4 -4
  322. package/speeddial/speeddial.js +4 -4
  323. package/splitbutton/SplitButton.d.ts +35 -2
  324. package/splitbutton/SplitButton.vue +6 -2
  325. package/splitbutton/splitbutton.cjs.js +17 -9
  326. package/splitbutton/splitbutton.cjs.min.js +1 -1
  327. package/splitbutton/splitbutton.esm.js +18 -10
  328. package/splitbutton/splitbutton.esm.min.js +1 -1
  329. package/splitbutton/splitbutton.js +17 -9
  330. package/splitbutton/splitbutton.min.js +1 -1
  331. package/splitter/Splitter.d.ts +24 -2
  332. package/splitterpanel/SplitterPanel.d.ts +21 -2
  333. package/steps/Steps.d.ts +51 -2
  334. package/steps/Steps.vue +31 -1
  335. package/steps/steps.cjs.js +31 -3
  336. package/steps/steps.cjs.min.js +1 -1
  337. package/steps/steps.esm.js +31 -3
  338. package/steps/steps.esm.min.js +1 -1
  339. package/steps/steps.js +32 -4
  340. package/steps/steps.min.js +1 -1
  341. package/styleclass/StyleClass.d.ts +8 -2
  342. package/tabmenu/TabMenu.d.ts +50 -2
  343. package/tabmenu/TabMenu.vue +27 -1
  344. package/tabmenu/tabmenu.cjs.js +26 -3
  345. package/tabmenu/tabmenu.cjs.min.js +1 -1
  346. package/tabmenu/tabmenu.esm.js +26 -3
  347. package/tabmenu/tabmenu.esm.min.js +1 -1
  348. package/tabmenu/tabmenu.js +27 -4
  349. package/tabmenu/tabmenu.min.js +1 -1
  350. package/tabpanel/TabPanel.d.ts +24 -2
  351. package/tabview/TabView.d.ts +8 -2
  352. package/tabview/tabview.cjs.js +3 -3
  353. package/tabview/tabview.esm.js +3 -3
  354. package/tabview/tabview.js +3 -3
  355. package/tag/Tag.d.ts +18 -2
  356. package/terminal/Terminal.d.ts +21 -2
  357. package/textarea/Textarea.d.ts +21 -2
  358. package/tieredmenu/TieredMenu.d.ts +58 -2
  359. package/tieredmenu/TieredMenu.vue +6 -0
  360. package/tieredmenu/TieredMenuSub.vue +33 -1
  361. package/tieredmenu/tieredmenu.cjs.js +35 -7
  362. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  363. package/tieredmenu/tieredmenu.esm.js +36 -8
  364. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  365. package/tieredmenu/tieredmenu.js +35 -7
  366. package/tieredmenu/tieredmenu.min.js +1 -1
  367. package/timeline/Timeline.d.ts +21 -2
  368. package/toast/Toast.d.ts +21 -2
  369. package/toast/toast.cjs.js +7 -7
  370. package/toast/toast.esm.js +7 -7
  371. package/toast/toast.js +7 -7
  372. package/togglebutton/ToggleButton.d.ts +24 -2
  373. package/togglebutton/ToggleButton.vue +4 -4
  374. package/togglebutton/togglebutton.cjs.js +7 -7
  375. package/togglebutton/togglebutton.cjs.min.js +1 -1
  376. package/togglebutton/togglebutton.esm.js +7 -7
  377. package/togglebutton/togglebutton.esm.min.js +1 -1
  378. package/togglebutton/togglebutton.js +7 -7
  379. package/togglebutton/togglebutton.min.js +1 -1
  380. package/toolbar/Toolbar.d.ts +18 -2
  381. package/tooltip/Tooltip.d.ts +12 -2
  382. package/tooltip/tooltip.cjs.js +2 -2
  383. package/tooltip/tooltip.esm.js +2 -2
  384. package/tooltip/tooltip.js +2 -2
  385. package/tree/Tree.d.ts +24 -2
  386. package/tree/Tree.vue +1 -1
  387. package/tree/tree.cjs.js +7 -7
  388. package/tree/tree.cjs.min.js +1 -1
  389. package/tree/tree.esm.js +7 -7
  390. package/tree/tree.esm.min.js +1 -1
  391. package/tree/tree.js +7 -7
  392. package/tree/tree.min.js +1 -1
  393. package/treeselect/TreeSelect.d.ts +21 -2
  394. package/treeselect/treeselect.cjs.js +6 -6
  395. package/treeselect/treeselect.esm.js +6 -6
  396. package/treeselect/treeselect.js +6 -6
  397. package/treetable/BodyCell.vue +1 -1
  398. package/treetable/TreeTable.d.ts +24 -2
  399. package/treetable/TreeTableRow.vue +1 -1
  400. package/treetable/treetable.cjs.js +22 -20
  401. package/treetable/treetable.cjs.min.js +1 -1
  402. package/treetable/treetable.esm.js +22 -20
  403. package/treetable/treetable.esm.min.js +1 -1
  404. package/treetable/treetable.js +22 -20
  405. package/treetable/treetable.min.js +1 -1
  406. package/tristatecheckbox/TriStateCheckbox.d.ts +24 -2
  407. package/tristatecheckbox/tristatecheckbox.cjs.js +3 -3
  408. package/tristatecheckbox/tristatecheckbox.esm.js +3 -3
  409. package/tristatecheckbox/tristatecheckbox.js +3 -3
  410. package/ts-helpers.d.ts +2 -2
  411. package/utils/utils.cjs.js +30 -20
  412. package/utils/utils.cjs.min.js +1 -1
  413. package/utils/utils.esm.js +30 -20
  414. package/utils/utils.esm.min.js +1 -1
  415. package/utils/utils.js +30 -20
  416. package/utils/utils.min.js +1 -1
  417. package/vetur-attributes.json +1 -1
  418. package/virtualscroller/BaseVirtualScroller.vue +3 -3
  419. package/virtualscroller/VirtualScroller.d.ts +21 -2
  420. package/virtualscroller/virtualscroller.cjs.js +6 -6
  421. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  422. package/virtualscroller/virtualscroller.esm.js +6 -6
  423. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  424. package/virtualscroller/virtualscroller.js +6 -6
  425. package/virtualscroller/virtualscroller.min.js +1 -1
  426. package/web-types.json +13 -3
@@ -2,9 +2,9 @@ this.primevue = this.primevue || {};
2
2
  this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
3
3
  'use strict';
4
4
 
5
- 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); }
6
- 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; }
7
- 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; }
5
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  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; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  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); }
@@ -31,6 +31,10 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
31
31
  type: Object,
32
32
  "default": undefined
33
33
  },
34
+ ptOptions: {
35
+ type: Object,
36
+ "default": undefined
37
+ },
34
38
  unstyled: {
35
39
  type: Boolean,
36
40
  "default": undefined
@@ -62,11 +66,11 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
62
66
  var _usept = (_this$pt = this.pt) === null || _this$pt === void 0 ? void 0 : _this$pt['_usept'];
63
67
  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;
64
68
  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;
65
- (_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
+ (_ref = value || originalValue) === null || _ref === void 0 || (_ref = _ref.hooks) === null || _ref === void 0 || (_ref$onBeforeCreate = _ref['onBeforeCreate']) === null || _ref$onBeforeCreate === void 0 || _ref$onBeforeCreate.call(_ref);
66
70
  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'];
67
71
  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;
68
72
  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;
69
- (_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);
73
+ (_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 || _ref2$onBeforeCreate.call(_ref2);
70
74
  },
71
75
  created: function created() {
72
76
  this._hook('onCreated');
@@ -99,8 +103,8 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
99
103
  if (!this.$options.hostName) {
100
104
  var selfHook = this._usePT(this._getPT(this.pt, this.$.type.name), this._getOptionValue, "hooks.".concat(hookName));
101
105
  var defaultHook = this._useDefaultPT(this._getOptionValue, "hooks.".concat(hookName));
102
- selfHook === null || selfHook === void 0 ? void 0 : selfHook();
103
- defaultHook === null || defaultHook === void 0 ? void 0 : defaultHook();
106
+ selfHook === null || selfHook === void 0 || selfHook();
107
+ defaultHook === null || defaultHook === void 0 || defaultHook();
104
108
  }
105
109
  },
106
110
  _loadGlobalStyles: function _loadGlobalStyles() {
@@ -139,15 +143,17 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
139
143
  var searchInDefaultPT = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
140
144
  var datasetPrefix = 'data-pc-';
141
145
  var searchOut = /./g.test(key) && !!params[key.split('.')[0]];
142
- var self = searchOut ? undefined : this._usePT(this._getPT(obj, this.$name), this._getPTClassValue, key, params);
143
- var globalPT = searchInDefaultPT ? searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params) : undefined;
144
- 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))));
145
- return merged;
146
- /*
147
- * @todo: The 'class' option in self can always be more powerful to style the component easily.
148
- *
149
- * return self && self['class'] ? { ...merged, ...{ class: self['class'] } } : merged;
150
- */
146
+ var _ref3 = this.ptOptions || {},
147
+ _ref3$mergeSections = _ref3.mergeSections,
148
+ mergeSections = _ref3$mergeSections === void 0 ? true : _ref3$mergeSections,
149
+ _ref3$mergeProps = _ref3.mergeProps,
150
+ useMergeProps = _ref3$mergeProps === void 0 ? false : _ref3$mergeProps;
151
+ var global = searchInDefaultPT ? searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params) : undefined;
152
+ var self = searchOut ? undefined : this._usePT(this._getPT(obj, this.$name), this._getPTClassValue, key, _objectSpread(_objectSpread({}, params), {}, {
153
+ global: global || {}
154
+ }));
155
+ var datasets = key !== 'transition' && _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(this.$.type.name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key)));
156
+ return mergeSections || !mergeSections && self ? useMergeProps ? vue.mergeProps(global, self, datasets) : _objectSpread(_objectSpread(_objectSpread({}, global), self), datasets) : _objectSpread(_objectSpread({}, self), datasets);
151
157
  },
152
158
  _getPTClassValue: function _getPTClassValue() {
153
159
  var value = this._getOptionValue.apply(this, arguments);
@@ -156,32 +162,38 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
156
162
  } : value;
157
163
  },
158
164
  _getPT: function _getPT(pt) {
165
+ var _this = this;
159
166
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
160
167
  var callback = arguments.length > 2 ? arguments[2] : undefined;
161
168
  var _usept = pt === null || pt === void 0 ? void 0 : pt['_usept'];
162
169
  var getValue = function getValue(value) {
163
- var _computedValue$Object;
170
+ var _ref5;
171
+ var checkSameKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
164
172
  var computedValue = callback ? callback(value) : value;
165
- return (_computedValue$Object = computedValue === null || computedValue === void 0 ? void 0 : computedValue[utils.ObjectUtils.toFlatCase(key)]) !== null && _computedValue$Object !== void 0 ? _computedValue$Object : computedValue;
173
+ var _key = utils.ObjectUtils.toFlatCase(key);
174
+ var _cKey = utils.ObjectUtils.toFlatCase(_this.$name);
175
+ return (_ref5 = checkSameKey ? _key !== _cKey ? computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key] : undefined : computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _ref5 !== void 0 ? _ref5 : computedValue;
166
176
  };
167
177
  return utils.ObjectUtils.isNotEmpty(_usept) ? {
168
178
  _usept: _usept,
169
179
  originalValue: getValue(pt.originalValue),
170
180
  value: getValue(pt.value)
171
- } : getValue(pt);
181
+ } : getValue(pt, true);
172
182
  },
173
183
  _usePT: function _usePT(pt, callback, key, params) {
174
184
  var fn = function fn(value) {
175
185
  return callback(value, key, params);
176
186
  };
177
187
  if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
178
- var _pt$_usept = pt['_usept'],
179
- merge = _pt$_usept.merge,
180
- useMergeProps = _pt$_usept.useMergeProps;
188
+ var _ref6 = pt['_usept'] || {},
189
+ _ref6$mergeSections = _ref6.mergeSections,
190
+ mergeSections = _ref6$mergeSections === void 0 ? true : _ref6$mergeSections,
191
+ _ref6$mergeProps = _ref6.mergeProps,
192
+ useMergeProps = _ref6$mergeProps === void 0 ? false : _ref6$mergeProps;
181
193
  var originalValue = fn(pt.originalValue);
182
194
  var value = fn(pt.value);
183
195
  if (originalValue === undefined && value === undefined) return undefined;else if (utils.ObjectUtils.isString(value)) return value;else if (utils.ObjectUtils.isString(originalValue)) return originalValue;
184
- return merge ? useMergeProps ? vue.mergeProps(originalValue, value) : _objectSpread(_objectSpread({}, originalValue), value) : value;
196
+ return mergeSections || !mergeSections && value ? useMergeProps ? vue.mergeProps(originalValue, value) : _objectSpread(_objectSpread({}, originalValue), value) : value;
185
197
  }
186
198
  return fn(pt);
187
199
  },
@@ -224,22 +236,23 @@ this.primevue.basecomponent = (function (base, usestyle, utils, vue) {
224
236
  computed: {
225
237
  globalPT: function globalPT() {
226
238
  var _this$$config6,
227
- _this = this;
239
+ _this2 = this;
228
240
  return this._getPT((_this$$config6 = this.$config) === null || _this$$config6 === void 0 ? void 0 : _this$$config6.pt, undefined, function (value) {
229
241
  return utils.ObjectUtils.getItemValue(value, {
230
- instance: _this
242
+ instance: _this2
231
243
  });
232
244
  });
233
245
  },
234
246
  defaultPT: function defaultPT() {
235
247
  var _this$$config7,
236
- _this2 = this;
248
+ _this3 = this;
237
249
  return this._getPT((_this$$config7 = this.$config) === null || _this$$config7 === void 0 ? void 0 : _this$$config7.pt, undefined, function (value) {
238
- return _this2._getOptionValue(value, _this2.$name, _objectSpread({}, _this2.$params)) || utils.ObjectUtils.getItemValue(value, _objectSpread({}, _this2.$params));
250
+ return _this3._getOptionValue(value, _this3.$name, _objectSpread({}, _this3.$params)) || utils.ObjectUtils.getItemValue(value, _objectSpread({}, _this3.$params));
239
251
  });
240
252
  },
241
253
  isUnstyled: function isUnstyled() {
242
- return this.unstyled !== undefined ? this.unstyled : this.$config.unstyled;
254
+ var _this$$config8;
255
+ return this.unstyled !== undefined ? this.unstyled : (_this$$config8 = this.$config) === null || _this$$config8 === void 0 ? void 0 : _this$$config8.unstyled;
243
256
  },
244
257
  $params: function $params() {
245
258
  return {
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.basecomponent=function(n,t,e,i){"use strict";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=p(n,"string");return"symbol"===o(t)?t:String(t)}function p(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 u={},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,h={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,p,u,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,h=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===(p=(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)||h)||void 0===p||null===(p=p[this.$.type.name])||void 0===p||null===(p=p.hooks)||void 0===p||null===(u=p.onBeforeCreate)||void 0===u||u.call(p)},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-",p=/./g.test(t)&&!!o[t.split(".")[0]],u=p?void 0:this._usePT(this._getPT(n,this.$name),this._getPTClassValue,t,o),c=l?p?this._useGlobalPT(this._getPTClassValue,t,o):this._useDefaultPT(this._getPTClassValue,t,o):void 0;return i.mergeProps(u,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,p=s.merge,u=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:p?u?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(u,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,a({},t.$params))||e.ObjectUtils.getItemValue(n,a({},t.$params))}))},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}}};return h}(primevue.base,primevue.usestyle,primevue.utils,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.basecomponent=function(n,t,e,i){"use strict";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=p(n,"string");return"symbol"===o(t)?t:String(t)}function p(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 u={},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,h={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{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,p,u,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,h=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===(p=(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)||h)||void 0===p||null===(p=p[this.$.type.name])||void 0===p||null===(p=p.hooks)||void 0===p||null===(u=p.onBeforeCreate)||void 0===u||u.call(p)},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-",p=/./g.test(t)&&!!o[t.split(".")[0]],u=this.ptOptions||{},c=u.mergeSections,d=void 0===c||c,f=u.mergeProps,h=void 0!==f&&f,b=l?p?this._useGlobalPT(this._getPTClassValue,t,o):this._useDefaultPT(this._getPTClassValue,t,o):void 0,v=p?void 0:this._usePT(this._getPT(n,this.$name),this._getPTClassValue,t,a(a({},o),{},{global:b||{}})),g="transition"!==t&&a(a({},"root"===t&&r({},"".concat(s,"name"),e.ObjectUtils.toFlatCase(this.$.type.name))),{},r({},"".concat(s,"section"),e.ObjectUtils.toFlatCase(t)));return d||!d&&v?h?i.mergeProps(b,v,g):a(a(a({},b),v),g):a(a({},v),g)},_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=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,l=null==n?void 0:n._usept,a=function(n){var l,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=o?o(n):n,s=e.ObjectUtils.toFlatCase(i),p=e.ObjectUtils.toFlatCase(t.$name);return null!==(l=a?s!==p?null==r?void 0:r[s]:void 0:null==r?void 0:r[s])&&void 0!==l?l:r};return e.ObjectUtils.isNotEmpty(l)?{_usept:l,originalValue:a(n.originalValue),value:a(n.value)}:a(n,!0)},_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||{},p=s.mergeSections,u=void 0===p||p,c=s.mergeProps,d=void 0!==c&&c,f=r(n.originalValue),h=r(n.value);if(void 0===f&&void 0===h)return;return e.ObjectUtils.isString(h)?h:e.ObjectUtils.isString(f)?f:u||!u&&h?d?i.mergeProps(f,h):a(a({},f),h):h}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(u,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,a({},t.$params))||e.ObjectUtils.getItemValue(n,a({},t.$params))}))},isUnstyled:function(){var n;return void 0!==this.unstyled?this.unstyled:null===(n=this.$config)||void 0===n?void 0:n.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}}};return h}(primevue.base,primevue.usestyle,primevue.utils,Vue);
@@ -4,15 +4,15 @@ var base = require('primevue/base');
4
4
  var utils = require('primevue/utils');
5
5
  var vue = require('vue');
6
6
 
7
- 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); }
7
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
- 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; }
15
- 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; }
14
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
16
  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; }
17
17
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
18
  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); }
@@ -30,6 +30,7 @@ var BaseDirective = {
30
30
  }) || ''], params), fKeys.join('.'), params) : undefined : utils.ObjectUtils.getItemValue(options, params);
31
31
  },
32
32
  _getPTValue: function _getPTValue() {
33
+ var _instance$binding;
33
34
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
34
35
  var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
35
36
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
@@ -42,19 +43,27 @@ var BaseDirective = {
42
43
  } : value;
43
44
  };
44
45
  var datasetPrefix = 'data-pc-';
45
- var self = BaseDirective._usePT(BaseDirective._getPT(obj, instance.$name), getValue, key, params);
46
- var globalPT = searchInDefaultPT ? BaseDirective._useDefaultPT(instance.defaultPT, getValue, key, params) : undefined;
47
- var merged = vue.mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key))));
48
- return merged;
46
+ var _ref = ((_instance$binding = instance.binding) === null || _instance$binding === void 0 || (_instance$binding = _instance$binding.value) === null || _instance$binding === void 0 ? void 0 : _instance$binding.ptOptions) || {},
47
+ _ref$mergeSections = _ref.mergeSections,
48
+ mergeSections = _ref$mergeSections === void 0 ? true : _ref$mergeSections,
49
+ _ref$mergeProps = _ref.mergeProps,
50
+ useMergeProps = _ref$mergeProps === void 0 ? false : _ref$mergeProps;
51
+ var global = searchInDefaultPT ? BaseDirective._useDefaultPT(instance, instance.defaultPT, getValue, key, params) : undefined;
52
+ var self = BaseDirective._usePT(instance, BaseDirective._getPT(obj, instance.$name), getValue, key, _objectSpread(_objectSpread({}, params), {}, {
53
+ global: global || {}
54
+ }));
55
+ var datasets = _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), utils.ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), utils.ObjectUtils.toFlatCase(key)));
56
+ return mergeSections || !mergeSections && self ? useMergeProps ? vue.mergeProps(global, self, datasets) : _objectSpread(_objectSpread(_objectSpread({}, global), self), datasets) : _objectSpread(_objectSpread({}, self), datasets);
49
57
  },
50
58
  _getPT: function _getPT(pt) {
51
59
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
52
60
  var callback = arguments.length > 2 ? arguments[2] : undefined;
53
61
  var _usept = pt === null || pt === void 0 ? void 0 : pt['_usept'];
54
62
  var getValue = function getValue(value) {
55
- var _computedValue$Object;
63
+ var _computedValue$_key;
56
64
  var computedValue = callback ? callback(value) : value;
57
- return (_computedValue$Object = computedValue === null || computedValue === void 0 ? void 0 : computedValue[utils.ObjectUtils.toFlatCase(key)]) !== null && _computedValue$Object !== void 0 ? _computedValue$Object : computedValue;
65
+ var _key = utils.ObjectUtils.toFlatCase(key);
66
+ return (_computedValue$_key = computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _computedValue$_key !== void 0 ? _computedValue$_key : computedValue;
58
67
  };
59
68
  return utils.ObjectUtils.isNotEmpty(_usept) ? {
60
69
  _usept: _usept,
@@ -62,42 +71,50 @@ var BaseDirective = {
62
71
  value: getValue(pt.value)
63
72
  } : getValue(pt);
64
73
  },
65
- _usePT: function _usePT(pt, callback, key, params) {
74
+ _usePT: function _usePT() {
75
+ var pt = arguments.length > 1 ? arguments[1] : undefined;
76
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
77
+ var key = arguments.length > 3 ? arguments[3] : undefined;
78
+ var params = arguments.length > 4 ? arguments[4] : undefined;
66
79
  var fn = function fn(value) {
67
80
  return callback(value, key, params);
68
81
  };
69
82
  if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
70
- var _pt$_usept = pt['_usept'],
71
- merge = _pt$_usept.merge,
72
- useMergeProps = _pt$_usept.useMergeProps;
83
+ var _ref3 = pt['_usept'] || {},
84
+ _ref3$mergeSections = _ref3.mergeSections,
85
+ mergeSections = _ref3$mergeSections === void 0 ? true : _ref3$mergeSections,
86
+ _ref3$mergeProps = _ref3.mergeProps,
87
+ useMergeProps = _ref3$mergeProps === void 0 ? false : _ref3$mergeProps;
73
88
  var originalValue = fn(pt.originalValue);
74
89
  var value = fn(pt.value);
75
90
  if (originalValue === undefined && value === undefined) return undefined;else if (utils.ObjectUtils.isString(value)) return value;else if (utils.ObjectUtils.isString(originalValue)) return originalValue;
76
- return merge ? useMergeProps ? vue.mergeProps(originalValue, value) : _objectSpread(_objectSpread({}, originalValue), value) : value;
91
+ return mergeSections || !mergeSections && value ? useMergeProps ? vue.mergeProps(originalValue, value) : _objectSpread(_objectSpread({}, originalValue), value) : value;
77
92
  }
78
93
  return fn(pt);
79
94
  },
80
95
  _useDefaultPT: function _useDefaultPT() {
81
- var defaultPT = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
82
- var callback = arguments.length > 1 ? arguments[1] : undefined;
83
- var key = arguments.length > 2 ? arguments[2] : undefined;
84
- var params = arguments.length > 3 ? arguments[3] : undefined;
85
- return BaseDirective._usePT(defaultPT, callback, key, params);
96
+ var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
97
+ var defaultPT = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
98
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
99
+ var key = arguments.length > 3 ? arguments[3] : undefined;
100
+ var params = arguments.length > 4 ? arguments[4] : undefined;
101
+ return BaseDirective._usePT(instance, defaultPT, callback, key, params);
86
102
  },
87
103
  _hook: function _hook(directiveName, hookName, el, binding, vnode, prevVnode) {
88
104
  var _binding$instance, _binding$value, _config$pt;
89
105
  var name = "on".concat(utils.ObjectUtils.toCapitalCase(hookName));
90
106
  var config = binding === null || binding === void 0 || (_binding$instance = binding.instance) === null || _binding$instance === void 0 || (_binding$instance = _binding$instance.$primevue) === null || _binding$instance === void 0 ? void 0 : _binding$instance.config;
91
- var selfHook = BaseDirective._usePT(BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
92
- var defaultHook = BaseDirective._useDefaultPT(config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
107
+ var instance = el === null || el === void 0 ? void 0 : el.$instance;
108
+ var selfHook = BaseDirective._usePT(instance, BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
109
+ var defaultHook = BaseDirective._useDefaultPT(instance, config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
93
110
  var options = {
94
111
  el: el,
95
112
  binding: binding,
96
113
  vnode: vnode,
97
114
  prevVnode: prevVnode
98
115
  };
99
- selfHook === null || selfHook === void 0 ? void 0 : selfHook(el === null || el === void 0 ? void 0 : el.$instance, options);
100
- defaultHook === null || defaultHook === void 0 ? void 0 : defaultHook(el === null || el === void 0 ? void 0 : el.$instance, options);
116
+ selfHook === null || selfHook === void 0 || selfHook(instance, options);
117
+ defaultHook === null || defaultHook === void 0 || defaultHook(instance, options);
101
118
  },
102
119
  _extend: function _extend(name) {
103
120
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -153,7 +170,7 @@ var BaseDirective = {
153
170
  }
154
171
  }, $options);
155
172
  el.$instance = el._$instances[name]; // pass instance data to hooks
156
- (_el$$instance$hook = (_el$$instance5 = el.$instance)[hook]) === null || _el$$instance$hook === void 0 ? void 0 : _el$$instance$hook.call(_el$$instance5, el, binding, vnode, prevVnode); // handle hook in directive implementation
173
+ (_el$$instance$hook = (_el$$instance5 = el.$instance)[hook]) === null || _el$$instance$hook === void 0 || _el$$instance$hook.call(_el$$instance5, el, binding, vnode, prevVnode); // handle hook in directive implementation
157
174
  BaseDirective._hook(name, hook, el, binding, vnode, prevVnode); // handle hooks during directive uses (global and self-definition)
158
175
  };
159
176
 
@@ -1 +1 @@
1
- "use strict";var t=require("primevue/base"),e=require("primevue/utils"),n=require("vue");function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){return c(t)||a(t,e)||r(t,e)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,l,r,u=[],a=!0,c=!1;try{if(l=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=l.call(n)).done)&&(u.push(i.value),u.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{if(!a&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw o}}return u}}function c(t){if(Array.isArray(t))return t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=g(t,"string");return"symbol"===i(e)?e:String(e)}function g(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var p={_getMeta:function(){return[e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],e.ObjectUtils.getItemValue(e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getOptionValue:function(t){var n=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(t)?p._getOptionValue(e.ObjectUtils.getItemValue(t[Object.keys(t).find((function(t){return e.ObjectUtils.toFlatCase(t)===o}))||""],n),i.join("."),n):void 0:e.ObjectUtils.getItemValue(t,n)},_getPTValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=function(){var t=p._getOptionValue.apply(p,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},u="data-pc-",a=p._usePT(p._getPT(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t.$name),r,i,o),c=l?p._useDefaultPT(t.defaultPT,r,i,o):void 0;return n.mergeProps(a,c,v(v({},"root"===i&&d({},"".concat(u,"name"),e.ObjectUtils.toFlatCase(t.$name))),{},d({},"".concat(u,"section"),e.ObjectUtils.toFlatCase(i))))},_getPT:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=null==t?void 0:t._usept,l=function(t){var o,l=i?i(t):t;return null!==(o=null==l?void 0:l[e.ObjectUtils.toFlatCase(n)])&&void 0!==o?o:l};return e.ObjectUtils.isNotEmpty(o)?{_usept:o,originalValue:l(t.originalValue),value:l(t.value)}:l(t)},_usePT:function(t,i,o,l){var r=function(t){return i(t,o,l)};if(null!=t&&t.hasOwnProperty("_usept")){var u=t._usept,a=u.merge,c=u.useMergeProps,s=r(t.originalValue),d=r(t.value);if(void 0===s&&void 0===d)return;return e.ObjectUtils.isString(d)?d:e.ObjectUtils.isString(s)?s:a?c?n.mergeProps(s,d):v(v({},s),d):d}return r(t)},_useDefaultPT:function(){return p._usePT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0)},_hook:function(t,n,i,o,l,r){var u,a,c,s="on".concat(e.ObjectUtils.toCapitalCase(n)),v=null==o||null===(u=o.instance)||void 0===u||null===(u=u.$primevue)||void 0===u?void 0:u.config,d=p._usePT(p._getPT(null==o||null===(a=o.value)||void 0===a?void 0:a.pt,t),p._getOptionValue,"hooks.".concat(s)),f=p._useDefaultPT(null==v||null===(c=v.pt)||void 0===c||null===(c=c.directives)||void 0===c?void 0:c[t],p._getOptionValue,"hooks.".concat(s)),g={el:i,binding:o,vnode:l,prevVnode:r};null==d||d(null==i?void 0:i.$instance,g),null==f||f(null==i?void 0:i.$instance,g)},_extend:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=function(t,o,l,r,u){var a,c,s;o._$instances=o._$instances||{};var d=null==l||null===(a=l.instance)||void 0===a||null===(a=a.$primevue)||void 0===a?void 0:a.config,f=o._$instances[n]||{},g=e.ObjectUtils.isEmpty(f)?v(v({},i),null==i?void 0:i.methods):{};o._$instances[n]=v(v({},f),{},{$name:n,$host:o,$binding:l,$el:f.$el||void 0,$css:v({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},null==i?void 0:i.css),$config:d,defaultPT:p._getPT(null==d?void 0:d.pt,void 0,(function(t){var e;return null==t||null===(e=t.directives)||void 0===e?void 0:e[n]})),isUnstyled:void 0!==o.unstyled?o.unstyled:null==d?void 0:d.unstyled,ptm:function(){var t;return p._getPTValue(o.$instance,null===(t=o.$instance)||void 0===t||null===(t=t.$binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return p._getPTValue(o.$instance,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},cx:function(){var t,e;return null!==(t=o.$instance)&&void 0!==t&&t.isUnstyled?void 0:p._getOptionValue(null===(e=o.$instance)||void 0===e||null===(e=e.$css)||void 0===e?void 0:e.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},sx:function(){var t;return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?p._getOptionValue(null===(t=o.$instance)||void 0===t||null===(t=t.$css)||void 0===t?void 0:t.inlineStyles,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):void 0}},g),o.$instance=o._$instances[n],null===(c=(s=o.$instance)[t])||void 0===c||c.call(s,o,l,r,u),p._hook(n,t,o,l,r,u)};return{created:function(t,e,n,i){o("created",t,e,n,i)},beforeMount:function(e,n,i,l){var r,u,a,c,s,v=null==n||null===(r=n.instance)||void 0===r||null===(r=r.$primevue)||void 0===r?void 0:r.config;t.loadBaseStyle(void 0,{nonce:null==v||null===(u=v.csp)||void 0===u?void 0:u.nonce}),(null===(a=e.$instance)||void 0===a||!a.isUnstyled)&&(null===(c=e.$instance)||void 0===c||null===(c=c.$css)||void 0===c||c.loadStyle(void 0,{nonce:null==v||null===(s=v.csp)||void 0===s?void 0:s.nonce})),o("beforeMount",e,n,i,l)},mounted:function(t,e,n,i){o("mounted",t,e,n,i)},beforeUpdate:function(t,e,n,i){o("beforeUpdate",t,e,n,i)},updated:function(t,e,n,i){o("updated",t,e,n,i)},beforeUnmount:function(t,e,n,i){o("beforeUnmount",t,e,n,i)},unmounted:function(t,e,n,i){o("unmounted",t,e,n,i)}}},extend:function(){var t=o(p._getMeta.apply(p,arguments),2),e=t[1];return v({extend:function(){var t=o(p._getMeta.apply(p,arguments),2),n=t[1];return p.extend(t[0],v(v(v({},e),null==e?void 0:e.methods),n))}},p._extend(t[0],e))}};module.exports=p;
1
+ "use strict";var t=require("primevue/base"),e=require("primevue/utils"),n=require("vue");function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){return c(t)||a(t,e)||r(t,e)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,l,r,u=[],a=!0,c=!1;try{if(l=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=l.call(n)).done)&&(u.push(i.value),u.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{if(!a&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw o}}return u}}function c(t){if(Array.isArray(t))return t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=g(t,"string");return"symbol"===i(e)?e:String(e)}function g(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var p={_getMeta:function(){return[e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],e.ObjectUtils.getItemValue(e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getOptionValue:function(t){var n=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(t)?p._getOptionValue(e.ObjectUtils.getItemValue(t[Object.keys(t).find((function(t){return e.ObjectUtils.toFlatCase(t)===o}))||""],n),i.join("."),n):void 0:e.ObjectUtils.getItemValue(t,n)},_getPTValue:function(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=function(){var t=p._getOptionValue.apply(p,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},a="data-pc-",c=(null===(t=i.binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.ptOptions)||{},s=c.mergeSections,f=void 0===s||s,g=c.mergeProps,b=void 0!==g&&g,y=!(arguments.length>4&&void 0!==arguments[4])||arguments[4]?p._useDefaultPT(i,i.defaultPT,u,l,r):void 0,m=p._usePT(i,p._getPT(o,i.$name),u,l,v(v({},r),{},{global:y||{}})),h=v(v({},"root"===l&&d({},"".concat(a,"name"),e.ObjectUtils.toFlatCase(i.$name))),{},d({},"".concat(a,"section"),e.ObjectUtils.toFlatCase(l)));return f||!f&&m?b?n.mergeProps(y,m,h):v(v(v({},y),m),h):v(v({},m),h)},_getPT:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=null==t?void 0:t._usept,l=function(t){var o,l=i?i(t):t,r=e.ObjectUtils.toFlatCase(n);return null!==(o=null==l?void 0:l[r])&&void 0!==o?o:l};return e.ObjectUtils.isNotEmpty(o)?{_usept:o,originalValue:l(t.originalValue),value:l(t.value)}:l(t)},_usePT:function(){var t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,r=function(t){return i(t,o,l)};if(null!=t&&t.hasOwnProperty("_usept")){var u=t._usept||{},a=u.mergeSections,c=void 0===a||a,s=u.mergeProps,d=void 0!==s&&s,f=r(t.originalValue),g=r(t.value);if(void 0===f&&void 0===g)return;return e.ObjectUtils.isString(g)?g:e.ObjectUtils.isString(f)?f:c||!c&&g?d?n.mergeProps(f,g):v(v({},f),g):g}return r(t)},_useDefaultPT:function(){return p._usePT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0,arguments.length>4?arguments[4]:void 0)},_hook:function(t,n,i,o,l,r){var u,a,c,s="on".concat(e.ObjectUtils.toCapitalCase(n)),v=null==o||null===(u=o.instance)||void 0===u||null===(u=u.$primevue)||void 0===u?void 0:u.config,d=null==i?void 0:i.$instance,f=p._usePT(d,p._getPT(null==o||null===(a=o.value)||void 0===a?void 0:a.pt,t),p._getOptionValue,"hooks.".concat(s)),g=p._useDefaultPT(d,null==v||null===(c=v.pt)||void 0===c||null===(c=c.directives)||void 0===c?void 0:c[t],p._getOptionValue,"hooks.".concat(s)),b={el:i,binding:o,vnode:l,prevVnode:r};null==f||f(d,b),null==g||g(d,b)},_extend:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=function(t,o,l,r,u){var a,c,s;o._$instances=o._$instances||{};var d=null==l||null===(a=l.instance)||void 0===a||null===(a=a.$primevue)||void 0===a?void 0:a.config,f=o._$instances[n]||{},g=e.ObjectUtils.isEmpty(f)?v(v({},i),null==i?void 0:i.methods):{};o._$instances[n]=v(v({},f),{},{$name:n,$host:o,$binding:l,$el:f.$el||void 0,$css:v({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},null==i?void 0:i.css),$config:d,defaultPT:p._getPT(null==d?void 0:d.pt,void 0,(function(t){var e;return null==t||null===(e=t.directives)||void 0===e?void 0:e[n]})),isUnstyled:void 0!==o.unstyled?o.unstyled:null==d?void 0:d.unstyled,ptm:function(){var t;return p._getPTValue(o.$instance,null===(t=o.$instance)||void 0===t||null===(t=t.$binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return p._getPTValue(o.$instance,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},cx:function(){var t,e;return null!==(t=o.$instance)&&void 0!==t&&t.isUnstyled?void 0:p._getOptionValue(null===(e=o.$instance)||void 0===e||null===(e=e.$css)||void 0===e?void 0:e.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},sx:function(){var t;return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?p._getOptionValue(null===(t=o.$instance)||void 0===t||null===(t=t.$css)||void 0===t?void 0:t.inlineStyles,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):void 0}},g),o.$instance=o._$instances[n],null===(c=(s=o.$instance)[t])||void 0===c||c.call(s,o,l,r,u),p._hook(n,t,o,l,r,u)};return{created:function(t,e,n,i){o("created",t,e,n,i)},beforeMount:function(e,n,i,l){var r,u,a,c,s,v=null==n||null===(r=n.instance)||void 0===r||null===(r=r.$primevue)||void 0===r?void 0:r.config;t.loadBaseStyle(void 0,{nonce:null==v||null===(u=v.csp)||void 0===u?void 0:u.nonce}),(null===(a=e.$instance)||void 0===a||!a.isUnstyled)&&(null===(c=e.$instance)||void 0===c||null===(c=c.$css)||void 0===c||c.loadStyle(void 0,{nonce:null==v||null===(s=v.csp)||void 0===s?void 0:s.nonce})),o("beforeMount",e,n,i,l)},mounted:function(t,e,n,i){o("mounted",t,e,n,i)},beforeUpdate:function(t,e,n,i){o("beforeUpdate",t,e,n,i)},updated:function(t,e,n,i){o("updated",t,e,n,i)},beforeUnmount:function(t,e,n,i){o("beforeUnmount",t,e,n,i)},unmounted:function(t,e,n,i){o("unmounted",t,e,n,i)}}},extend:function(){var t=o(p._getMeta.apply(p,arguments),2),e=t[1];return v({extend:function(){var t=o(p._getMeta.apply(p,arguments),2),n=t[1];return p.extend(t[0],v(v(v({},e),null==e?void 0:e.methods),n))}},p._extend(t[0],e))}};module.exports=p;
@@ -2,15 +2,15 @@ import { loadBaseStyle } from 'primevue/base';
2
2
  import { ObjectUtils } from 'primevue/utils';
3
3
  import { mergeProps } from 'vue';
4
4
 
5
- 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); }
5
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6
6
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
7
7
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
8
8
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
9
9
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
10
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
11
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
- 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; }
13
- 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; }
12
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  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; }
15
15
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
16
  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); }
@@ -28,6 +28,7 @@ var BaseDirective = {
28
28
  }) || ''], params), fKeys.join('.'), params) : undefined : ObjectUtils.getItemValue(options, params);
29
29
  },
30
30
  _getPTValue: function _getPTValue() {
31
+ var _instance$binding;
31
32
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
32
33
  var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
33
34
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
@@ -40,19 +41,27 @@ var BaseDirective = {
40
41
  } : value;
41
42
  };
42
43
  var datasetPrefix = 'data-pc-';
43
- var self = BaseDirective._usePT(BaseDirective._getPT(obj, instance.$name), getValue, key, params);
44
- var globalPT = searchInDefaultPT ? BaseDirective._useDefaultPT(instance.defaultPT, getValue, key, params) : undefined;
45
- var merged = mergeProps(self, globalPT, _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), ObjectUtils.toFlatCase(key))));
46
- return merged;
44
+ var _ref = ((_instance$binding = instance.binding) === null || _instance$binding === void 0 || (_instance$binding = _instance$binding.value) === null || _instance$binding === void 0 ? void 0 : _instance$binding.ptOptions) || {},
45
+ _ref$mergeSections = _ref.mergeSections,
46
+ mergeSections = _ref$mergeSections === void 0 ? true : _ref$mergeSections,
47
+ _ref$mergeProps = _ref.mergeProps,
48
+ useMergeProps = _ref$mergeProps === void 0 ? false : _ref$mergeProps;
49
+ var global = searchInDefaultPT ? BaseDirective._useDefaultPT(instance, instance.defaultPT, getValue, key, params) : undefined;
50
+ var self = BaseDirective._usePT(instance, BaseDirective._getPT(obj, instance.$name), getValue, key, _objectSpread(_objectSpread({}, params), {}, {
51
+ global: global || {}
52
+ }));
53
+ var datasets = _objectSpread(_objectSpread({}, key === 'root' && _defineProperty({}, "".concat(datasetPrefix, "name"), ObjectUtils.toFlatCase(instance.$name))), {}, _defineProperty({}, "".concat(datasetPrefix, "section"), ObjectUtils.toFlatCase(key)));
54
+ return mergeSections || !mergeSections && self ? useMergeProps ? mergeProps(global, self, datasets) : _objectSpread(_objectSpread(_objectSpread({}, global), self), datasets) : _objectSpread(_objectSpread({}, self), datasets);
47
55
  },
48
56
  _getPT: function _getPT(pt) {
49
57
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
50
58
  var callback = arguments.length > 2 ? arguments[2] : undefined;
51
59
  var _usept = pt === null || pt === void 0 ? void 0 : pt['_usept'];
52
60
  var getValue = function getValue(value) {
53
- var _computedValue$Object;
61
+ var _computedValue$_key;
54
62
  var computedValue = callback ? callback(value) : value;
55
- return (_computedValue$Object = computedValue === null || computedValue === void 0 ? void 0 : computedValue[ObjectUtils.toFlatCase(key)]) !== null && _computedValue$Object !== void 0 ? _computedValue$Object : computedValue;
63
+ var _key = ObjectUtils.toFlatCase(key);
64
+ return (_computedValue$_key = computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _computedValue$_key !== void 0 ? _computedValue$_key : computedValue;
56
65
  };
57
66
  return ObjectUtils.isNotEmpty(_usept) ? {
58
67
  _usept: _usept,
@@ -60,42 +69,50 @@ var BaseDirective = {
60
69
  value: getValue(pt.value)
61
70
  } : getValue(pt);
62
71
  },
63
- _usePT: function _usePT(pt, callback, key, params) {
72
+ _usePT: function _usePT() {
73
+ var pt = arguments.length > 1 ? arguments[1] : undefined;
74
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
75
+ var key = arguments.length > 3 ? arguments[3] : undefined;
76
+ var params = arguments.length > 4 ? arguments[4] : undefined;
64
77
  var fn = function fn(value) {
65
78
  return callback(value, key, params);
66
79
  };
67
80
  if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
68
- var _pt$_usept = pt['_usept'],
69
- merge = _pt$_usept.merge,
70
- useMergeProps = _pt$_usept.useMergeProps;
81
+ var _ref3 = pt['_usept'] || {},
82
+ _ref3$mergeSections = _ref3.mergeSections,
83
+ mergeSections = _ref3$mergeSections === void 0 ? true : _ref3$mergeSections,
84
+ _ref3$mergeProps = _ref3.mergeProps,
85
+ useMergeProps = _ref3$mergeProps === void 0 ? false : _ref3$mergeProps;
71
86
  var originalValue = fn(pt.originalValue);
72
87
  var value = fn(pt.value);
73
88
  if (originalValue === undefined && value === undefined) return undefined;else if (ObjectUtils.isString(value)) return value;else if (ObjectUtils.isString(originalValue)) return originalValue;
74
- return merge ? useMergeProps ? mergeProps(originalValue, value) : _objectSpread(_objectSpread({}, originalValue), value) : value;
89
+ return mergeSections || !mergeSections && value ? useMergeProps ? mergeProps(originalValue, value) : _objectSpread(_objectSpread({}, originalValue), value) : value;
75
90
  }
76
91
  return fn(pt);
77
92
  },
78
93
  _useDefaultPT: function _useDefaultPT() {
79
- var defaultPT = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
80
- var callback = arguments.length > 1 ? arguments[1] : undefined;
81
- var key = arguments.length > 2 ? arguments[2] : undefined;
82
- var params = arguments.length > 3 ? arguments[3] : undefined;
83
- return BaseDirective._usePT(defaultPT, callback, key, params);
94
+ var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
95
+ var defaultPT = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
96
+ var callback = arguments.length > 2 ? arguments[2] : undefined;
97
+ var key = arguments.length > 3 ? arguments[3] : undefined;
98
+ var params = arguments.length > 4 ? arguments[4] : undefined;
99
+ return BaseDirective._usePT(instance, defaultPT, callback, key, params);
84
100
  },
85
101
  _hook: function _hook(directiveName, hookName, el, binding, vnode, prevVnode) {
86
102
  var _binding$instance, _binding$value, _config$pt;
87
103
  var name = "on".concat(ObjectUtils.toCapitalCase(hookName));
88
104
  var config = binding === null || binding === void 0 || (_binding$instance = binding.instance) === null || _binding$instance === void 0 || (_binding$instance = _binding$instance.$primevue) === null || _binding$instance === void 0 ? void 0 : _binding$instance.config;
89
- var selfHook = BaseDirective._usePT(BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
90
- var defaultHook = BaseDirective._useDefaultPT(config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
105
+ var instance = el === null || el === void 0 ? void 0 : el.$instance;
106
+ var selfHook = BaseDirective._usePT(instance, BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
107
+ var defaultHook = BaseDirective._useDefaultPT(instance, config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
91
108
  var options = {
92
109
  el: el,
93
110
  binding: binding,
94
111
  vnode: vnode,
95
112
  prevVnode: prevVnode
96
113
  };
97
- selfHook === null || selfHook === void 0 ? void 0 : selfHook(el === null || el === void 0 ? void 0 : el.$instance, options);
98
- defaultHook === null || defaultHook === void 0 ? void 0 : defaultHook(el === null || el === void 0 ? void 0 : el.$instance, options);
114
+ selfHook === null || selfHook === void 0 || selfHook(instance, options);
115
+ defaultHook === null || defaultHook === void 0 || defaultHook(instance, options);
99
116
  },
100
117
  _extend: function _extend(name) {
101
118
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -151,7 +168,7 @@ var BaseDirective = {
151
168
  }
152
169
  }, $options);
153
170
  el.$instance = el._$instances[name]; // pass instance data to hooks
154
- (_el$$instance$hook = (_el$$instance5 = el.$instance)[hook]) === null || _el$$instance$hook === void 0 ? void 0 : _el$$instance$hook.call(_el$$instance5, el, binding, vnode, prevVnode); // handle hook in directive implementation
171
+ (_el$$instance$hook = (_el$$instance5 = el.$instance)[hook]) === null || _el$$instance$hook === void 0 || _el$$instance$hook.call(_el$$instance5, el, binding, vnode, prevVnode); // handle hook in directive implementation
155
172
  BaseDirective._hook(name, hook, el, binding, vnode, prevVnode); // handle hooks during directive uses (global and self-definition)
156
173
  };
157
174