primevue 3.18.0 → 3.19.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 (235) hide show
  1. package/README.md +13 -2
  2. package/autocomplete/AutoComplete.vue +15 -2
  3. package/autocomplete/autocomplete.cjs.js +15 -2
  4. package/autocomplete/autocomplete.cjs.min.js +1 -1
  5. package/autocomplete/autocomplete.esm.js +15 -2
  6. package/autocomplete/autocomplete.esm.min.js +1 -1
  7. package/autocomplete/autocomplete.js +15 -2
  8. package/autocomplete/autocomplete.min.js +1 -1
  9. package/breadcrumb/BreadcrumbItem.vue +6 -6
  10. package/breadcrumb/breadcrumb.cjs.js +6 -6
  11. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  12. package/breadcrumb/breadcrumb.esm.js +6 -6
  13. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  14. package/breadcrumb/breadcrumb.js +6 -6
  15. package/breadcrumb/breadcrumb.min.js +1 -1
  16. package/calendar/Calendar.d.ts +20 -0
  17. package/calendar/Calendar.vue +32 -14
  18. package/calendar/calendar.cjs.js +139 -121
  19. package/calendar/calendar.cjs.min.js +1 -1
  20. package/calendar/calendar.esm.js +139 -121
  21. package/calendar/calendar.esm.min.js +1 -1
  22. package/calendar/calendar.js +139 -121
  23. package/calendar/calendar.min.js +1 -1
  24. package/chips/Chips.d.ts +7 -2
  25. package/chips/Chips.vue +11 -3
  26. package/chips/chips.cjs.js +12 -4
  27. package/chips/chips.cjs.min.js +1 -1
  28. package/chips/chips.esm.js +12 -4
  29. package/chips/chips.esm.min.js +1 -1
  30. package/chips/chips.js +12 -4
  31. package/chips/chips.min.js +1 -1
  32. package/confirmdialog/ConfirmDialog.vue +6 -1
  33. package/confirmdialog/confirmdialog.cjs.js +7 -1
  34. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  35. package/confirmdialog/confirmdialog.esm.js +7 -1
  36. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  37. package/confirmdialog/confirmdialog.js +7 -1
  38. package/confirmdialog/confirmdialog.min.js +1 -1
  39. package/confirmpopup/ConfirmPopup.vue +59 -5
  40. package/confirmpopup/confirmpopup.cjs.js +83 -19
  41. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  42. package/confirmpopup/confirmpopup.esm.js +82 -19
  43. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  44. package/confirmpopup/confirmpopup.js +82 -19
  45. package/confirmpopup/confirmpopup.min.js +1 -1
  46. package/contextmenu/ContextMenu.vue +14 -16
  47. package/contextmenu/contextmenu.cjs.js +14 -16
  48. package/contextmenu/contextmenu.cjs.min.js +1 -1
  49. package/contextmenu/contextmenu.esm.js +14 -16
  50. package/contextmenu/contextmenu.esm.min.js +1 -1
  51. package/contextmenu/contextmenu.js +14 -16
  52. package/contextmenu/contextmenu.min.js +1 -1
  53. package/core/core.js +374 -94
  54. package/core/core.min.js +13 -9
  55. package/datatable/DataTable.d.ts +1 -1
  56. package/datatable/DataTable.vue +1 -1
  57. package/datatable/HeaderCell.vue +1 -1
  58. package/datatable/TableBody.vue +1 -1
  59. package/datatable/TableHeader.vue +1 -1
  60. package/datatable/datatable.cjs.js +4 -4
  61. package/datatable/datatable.cjs.min.js +1 -1
  62. package/datatable/datatable.esm.js +4 -4
  63. package/datatable/datatable.esm.min.js +1 -1
  64. package/datatable/datatable.js +4 -4
  65. package/datatable/datatable.min.js +1 -1
  66. package/dialog/Dialog.d.ts +19 -5
  67. package/dialog/Dialog.vue +114 -51
  68. package/dialog/dialog.cjs.js +145 -72
  69. package/dialog/dialog.cjs.min.js +1 -1
  70. package/dialog/dialog.esm.js +143 -71
  71. package/dialog/dialog.esm.min.js +1 -1
  72. package/dialog/dialog.js +143 -71
  73. package/dialog/dialog.min.js +1 -1
  74. package/dropdown/Dropdown.vue +20 -1
  75. package/dropdown/dropdown.cjs.js +20 -1
  76. package/dropdown/dropdown.cjs.min.js +1 -1
  77. package/dropdown/dropdown.esm.js +20 -1
  78. package/dropdown/dropdown.esm.min.js +1 -1
  79. package/dropdown/dropdown.js +20 -1
  80. package/dropdown/dropdown.min.js +1 -1
  81. package/fileupload/FileContent.vue +9 -2
  82. package/fileupload/fileupload.cjs.js +10 -4
  83. package/fileupload/fileupload.cjs.min.js +1 -1
  84. package/fileupload/fileupload.esm.js +9 -4
  85. package/fileupload/fileupload.esm.min.js +1 -1
  86. package/fileupload/fileupload.js +11 -6
  87. package/fileupload/fileupload.min.js +1 -1
  88. package/focustrap/FocusTrap.d.ts +5 -0
  89. package/focustrap/focustrap.cjs.js +94 -0
  90. package/focustrap/focustrap.cjs.min.js +1 -0
  91. package/focustrap/focustrap.esm.js +92 -0
  92. package/focustrap/focustrap.esm.min.js +1 -0
  93. package/focustrap/focustrap.js +96 -0
  94. package/focustrap/focustrap.min.js +1 -0
  95. package/focustrap/package.json +6 -0
  96. package/inplace/Inplace.d.ts +5 -0
  97. package/inplace/Inplace.vue +5 -1
  98. package/inplace/inplace.cjs.js +6 -2
  99. package/inplace/inplace.cjs.min.js +1 -1
  100. package/inplace/inplace.esm.js +6 -2
  101. package/inplace/inplace.esm.min.js +1 -1
  102. package/inplace/inplace.js +6 -2
  103. package/inplace/inplace.min.js +1 -1
  104. package/inputnumber/InputNumber.d.ts +5 -0
  105. package/inputnumber/InputNumber.vue +9 -0
  106. package/inputnumber/inputnumber.cjs.js +9 -0
  107. package/inputnumber/inputnumber.cjs.min.js +1 -1
  108. package/inputnumber/inputnumber.esm.js +9 -0
  109. package/inputnumber/inputnumber.esm.min.js +1 -1
  110. package/inputnumber/inputnumber.js +9 -0
  111. package/inputnumber/inputnumber.min.js +1 -1
  112. package/megamenu/MegaMenu.vue +3 -2
  113. package/megamenu/megamenu.cjs.js +3 -2
  114. package/megamenu/megamenu.cjs.min.js +1 -1
  115. package/megamenu/megamenu.esm.js +3 -2
  116. package/megamenu/megamenu.esm.min.js +1 -1
  117. package/megamenu/megamenu.js +3 -2
  118. package/megamenu/megamenu.min.js +1 -1
  119. package/menu/Menu.vue +7 -7
  120. package/menu/menu.cjs.js +7 -7
  121. package/menu/menu.cjs.min.js +1 -1
  122. package/menu/menu.esm.js +7 -7
  123. package/menu/menu.esm.min.js +1 -1
  124. package/menu/menu.js +7 -7
  125. package/menu/menu.min.js +1 -1
  126. package/menubar/Menubar.vue +5 -3
  127. package/menubar/MenubarSub.vue +1 -1
  128. package/menubar/menubar.cjs.js +22 -18
  129. package/menubar/menubar.cjs.min.js +1 -1
  130. package/menubar/menubar.esm.js +22 -18
  131. package/menubar/menubar.esm.min.js +1 -1
  132. package/menubar/menubar.js +22 -18
  133. package/menubar/menubar.min.js +1 -1
  134. package/message/Message.d.ts +5 -0
  135. package/message/Message.vue +5 -1
  136. package/message/message.cjs.js +9 -5
  137. package/message/message.cjs.min.js +1 -1
  138. package/message/message.esm.js +9 -5
  139. package/message/message.esm.min.js +1 -1
  140. package/message/message.js +9 -5
  141. package/message/message.min.js +1 -1
  142. package/multiselect/MultiSelect.vue +24 -3
  143. package/multiselect/multiselect.cjs.js +24 -3
  144. package/multiselect/multiselect.cjs.min.js +1 -1
  145. package/multiselect/multiselect.esm.js +24 -3
  146. package/multiselect/multiselect.esm.min.js +1 -1
  147. package/multiselect/multiselect.js +24 -3
  148. package/multiselect/multiselect.min.js +1 -1
  149. package/overlaypanel/OverlayPanel.d.ts +2 -1
  150. package/overlaypanel/OverlayPanel.vue +31 -5
  151. package/overlaypanel/overlaypanel.cjs.js +49 -17
  152. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  153. package/overlaypanel/overlaypanel.esm.js +48 -17
  154. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  155. package/overlaypanel/overlaypanel.js +48 -17
  156. package/overlaypanel/overlaypanel.min.js +1 -1
  157. package/package.json +1 -1
  158. package/paginator/Paginator.vue +5 -3
  159. package/paginator/paginator.cjs.js +5 -3
  160. package/paginator/paginator.cjs.min.js +1 -1
  161. package/paginator/paginator.esm.js +5 -3
  162. package/paginator/paginator.esm.min.js +1 -1
  163. package/paginator/paginator.js +5 -3
  164. package/paginator/paginator.min.js +1 -1
  165. package/panelmenu/PanelMenuList.vue +1 -2
  166. package/panelmenu/panelmenu.cjs.js +4 -622
  167. package/panelmenu/panelmenu.cjs.min.js +1 -1
  168. package/panelmenu/panelmenu.esm.js +13 -631
  169. package/panelmenu/panelmenu.esm.min.js +1 -1
  170. package/panelmenu/panelmenu.js +4 -622
  171. package/panelmenu/panelmenu.min.js +1 -1
  172. package/resources/primevue.css +4 -2
  173. package/resources/primevue.min.css +1 -1
  174. package/scrollpanel/ScrollPanel.vue +5 -0
  175. package/scrollpanel/scrollpanel.cjs.js +1 -1
  176. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  177. package/scrollpanel/scrollpanel.esm.js +1 -1
  178. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  179. package/scrollpanel/scrollpanel.js +1 -1
  180. package/scrollpanel/scrollpanel.min.js +1 -1
  181. package/sidebar/Sidebar.d.ts +5 -5
  182. package/sidebar/Sidebar.vue +46 -14
  183. package/sidebar/sidebar.cjs.js +73 -30
  184. package/sidebar/sidebar.cjs.min.js +1 -1
  185. package/sidebar/sidebar.esm.js +72 -30
  186. package/sidebar/sidebar.esm.min.js +1 -1
  187. package/sidebar/sidebar.js +72 -30
  188. package/sidebar/sidebar.min.js +1 -1
  189. package/slider/Slider.vue +21 -12
  190. package/slider/slider.cjs.js +21 -12
  191. package/slider/slider.cjs.min.js +1 -1
  192. package/slider/slider.esm.js +21 -12
  193. package/slider/slider.esm.min.js +1 -1
  194. package/slider/slider.js +21 -12
  195. package/slider/slider.min.js +1 -1
  196. package/splitter/Splitter.d.ts +16 -0
  197. package/splitter/Splitter.vue +2 -1
  198. package/splitter/splitter.cjs.js +2 -1
  199. package/splitter/splitter.cjs.min.js +1 -1
  200. package/splitter/splitter.esm.js +2 -1
  201. package/splitter/splitter.esm.min.js +1 -1
  202. package/splitter/splitter.js +2 -1
  203. package/splitter/splitter.min.js +1 -1
  204. package/tieredmenu/TieredMenu.vue +1 -2
  205. package/tieredmenu/tieredmenu.cjs.js +1 -2
  206. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  207. package/tieredmenu/tieredmenu.esm.js +1 -2
  208. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  209. package/tieredmenu/tieredmenu.js +1 -2
  210. package/tieredmenu/tieredmenu.min.js +1 -1
  211. package/toast/Toast.d.ts +25 -0
  212. package/toast/Toast.vue +32 -1
  213. package/toast/ToastMessage.vue +12 -7
  214. package/toast/toast.cjs.js +44 -14
  215. package/toast/toast.cjs.min.js +1 -1
  216. package/toast/toast.esm.js +44 -14
  217. package/toast/toast.esm.min.js +1 -1
  218. package/toast/toast.js +44 -14
  219. package/toast/toast.min.js +1 -1
  220. package/tooltip/tooltip.cjs.js +28 -5
  221. package/tooltip/tooltip.cjs.min.js +1 -1
  222. package/tooltip/tooltip.esm.js +28 -5
  223. package/tooltip/tooltip.esm.min.js +1 -1
  224. package/tooltip/tooltip.js +28 -5
  225. package/tooltip/tooltip.min.js +1 -1
  226. package/utils/Utils.d.ts +1 -0
  227. package/utils/utils.cjs.js +6 -0
  228. package/utils/utils.cjs.min.js +1 -1
  229. package/utils/utils.esm.js +6 -0
  230. package/utils/utils.esm.min.js +1 -1
  231. package/utils/utils.js +6 -0
  232. package/utils/utils.min.js +1 -1
  233. package/vetur-attributes.json +75 -11
  234. package/vetur-tags.json +25 -8
  235. package/web-types.json +233 -21
@@ -1 +1 @@
1
- var e={innerWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth(e,t){if(e){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}return 0},getOuterHeight(e,t){if(e){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0},getClientHeight(e,t){if(e){let n=e.clientHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0},getViewport(){let e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}},getOffset(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index(e){if(e){let t=e.parentNode.childNodes,n=0;for(let i=0;i<t.length;i++){if(t[i]===e)return n;1===t[i].nodeType&&n++}}return-1},addMultipleClasses(e,t){if(e&&t)if(e.classList){let n=t.split(" ");for(let t=0;t<n.length;t++)e.classList.add(n[t])}else{let n=t.split(" ");for(let t=0;t<n.length;t++)e.className+=" "+n[t]}},addClass(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)},removeClass(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:(e,t)=>!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)),find:(e,t)=>e?e.querySelectorAll(t):[],findSingle:(e,t)=>e?e.querySelector(t):null,getHeight(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0},getWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0},absolutePosition(e,t){if(e){let n,i,l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=l.height,o=l.width,s=t.offsetHeight,a=t.offsetWidth,d=t.getBoundingClientRect(),c=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),h=this.getViewport();d.top+s+r>h.height?(n=d.top+c-r,e.style.transformOrigin="bottom",n<0&&(n=c)):(n=s+d.top+c,e.style.transformOrigin="top"),i=d.left+o>h.width?Math.max(0,d.left+p+a-o):d.left+p,e.style.top=n+"px",e.style.left=i+"px"}},relativePosition(e,t){if(e){let n=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const i=t.offsetHeight,l=t.getBoundingClientRect(),r=this.getViewport();let o,s;l.top+i+n.height>r.height?(o=-1*n.height,e.style.transformOrigin="bottom",l.top+o<0&&(o=-1*l.top)):(o=i,e.style.transformOrigin="top"),s=n.width>r.width?-1*l.left:l.left+n.width>r.width?-1*(l.left+n.width-r.width):0,e.style.top=o+"px",e.style.left=s+"px"}},getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const i=/(auto|scroll)/,l=e=>{let t=window.getComputedStyle(e,null);return i.test(t.getPropertyValue("overflow"))||i.test(t.getPropertyValue("overflowX"))||i.test(t.getPropertyValue("overflowY"))};for(let e of n){let n=1===e.nodeType&&e.dataset.scrollselectors;if(n){let i=n.split(",");for(let n of i){let i=this.findSingle(e,n);i&&l(i)&&t.push(i)}}9!==e.nodeType&&l(e)&&t.push(e)}}return t},getHiddenElementOuterHeight(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementOuterWidth(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementDimensions(e){if(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}return 0},fadeIn(e,t){if(e){e.style.opacity=0;let n=+new Date,i=0,l=function(){i=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(l)||setTimeout(l,16))};l()}},fadeOut(e,t){if(e){let n=1,i=50,l=i/t,r=setInterval((()=>{n-=l,n<=0&&(n=0,clearInterval(r)),e.style.opacity=n}),i)}},getUserAgent:()=>navigator.userAgent,appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.elElement)throw new Error("Cannot append "+t+" to "+e);t.elElement.appendChild(e)}},scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,l=getComputedStyle(e).getPropertyValue("paddingTop"),r=l?parseFloat(l):0,o=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-i-r,a=e.scrollTop,d=e.clientHeight,c=this.getOuterHeight(t);s<0?e.scrollTop=a+s:s+c>d&&(e.scrollTop=a+s-d+c)},clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},getSelection:()=>window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null,calculateScrollbarWidth(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},isVisible:e=>e&&null!=e.offsetParent,invokeElementMethod(e,t,n){e[t].apply(e,n)},isExist:e=>null!=e&&e.nodeName&&e.parentNode,isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),focus(e,t){e&&document.activeElement!==e&&e.focus(t)},getFocusableElements(e,t=""){let n=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),i=[];for(let e of n)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&i.push(e);return i},getFirstFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[0]:null},isClickable(e){const t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==n||"BUTTON"==n||"A"==n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")},applyStyle(e,t){if("string"==typeof t)e.style.cssText=t;else for(let n in t)e.style[n]=t[n]},isIOS:()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,isAndroid:()=>/(android)/i.test(navigator.userAgent),isTouchDevice:()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,exportCSV(e,t){let n=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(n,t+".csv");else{let i=document.createElement("a");void 0!==i.download?(i.setAttribute("href",URL.createObjectURL(n)),i.setAttribute("download",t+".csv"),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}};class t{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=e.getScrollableParents(this.element);for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}var n={equals(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,l,r=Array.isArray(e),o=Array.isArray(t);if(r&&o){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(r!=o)return!1;var s=e instanceof Date,a=t instanceof Date;if(s!=a)return!1;if(s&&a)return e.getTime()==t.getTime();var d=e instanceof RegExp,c=t instanceof RegExp;if(d!=c)return!1;if(d&&c)return e.toString()==t.toString();var p=Object.keys(e);if((i=p.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,p[n]))return!1;for(n=i;0!=n--;)if(l=p[n],!this.deepEquals(e[l],t[l]))return!1;return!0}return e!=e&&t!=t},resolveFieldData(e,t){if(e&&Object.keys(e).length&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];{let l=t.split("."),r=e;for(var n=0,i=l.length;n<i;++n){if(null==r)return null;r=r[l[n]]}return r}}return null},isFunction:e=>!!(e&&e.constructor&&e.call&&e.apply),getItemValue(e,...t){return this.isFunction(e)?e(...t):e},filter(e,t,n){var i=[];if(e)for(let l of e)for(let e of t)if(String(this.resolveFieldData(l,e)).toLowerCase().indexOf(n.toLowerCase())>-1){i.push(l);break}return i},reorderArray(e,t,n){let i;if(e&&t!==n){if(n>=e.length)for(i=n-e.length;1+i--;)e.push(void 0);e.splice(n,0,e.splice(t,1)[0])}},findIndexInList(e,t){let n=-1;if(t)for(let i=0;i<t.length;i++)if(t[i]===e){n=i;break}return n},contains(e,t){if(null!=e&&t&&t.length)for(let n of t)if(this.equals(e,n))return!0;return!1},insertIntoOrderedArray(e,t,n,i){if(n.length>0){let l=!1;for(let r=0;r<n.length;r++){if(this.findIndexInList(n[r],i)>t){n.splice(r,0,e),l=!0;break}}l||n.push(e)}else n.push(e)},removeAccents:e=>(e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e),getVNodeProp(e,t){let n=e.props;if(n){let i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=Object.prototype.hasOwnProperty.call(n,i)?i:t;return e.type.props[t].type===Boolean&&""===n[l]||n[l]}return null},isEmpty:e=>null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length,isNotEmpty(e){return!this.isEmpty(e)},isPrintableCharacter(e=""){return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)},findLast(e,t){let n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch{n=[...e].reverse().find(t)}return n},findLastIndex(e,t){let n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}};var i=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,n,i)=>{n&&(n.style.zIndex=String(((t,n)=>{let i=e.length>0?e[e.length-1]:{key:t,value:n},l=i.value+(i.key===t?0:n)+1;return e.push({key:t,value:l}),l})(t,i)))},clear:n=>{var i;n&&(i=t(n),e=e.filter((e=>e.value!==i)),n.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}(),l=0;function r(e="pv_id_"){return`${e}${++l}`}function o(){const e=new Map;return{on(t,n){let i=e.get(t);i?i.push(n):i=[n],e.set(t,i)},off(t,n){let i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},emit(t,n){let i=e.get(t);i&&i.slice().map((e=>{e(n)}))}}}export{t as ConnectedOverlayScrollHandler,e as DomHandler,o as EventBus,n as ObjectUtils,r as UniqueComponentId,i as ZIndexUtils};
1
+ var e={innerWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth(e,t){if(e){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}return 0},getOuterHeight(e,t){if(e){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0},getClientHeight(e,t){if(e){let n=e.clientHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0},getViewport(){let e=window,t=document,n=t.documentElement,l=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||l.clientWidth,height:e.innerHeight||n.clientHeight||l.clientHeight}},getOffset(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index(e){if(e){let t=e.parentNode.childNodes,n=0;for(let l=0;l<t.length;l++){if(t[l]===e)return n;1===t[l].nodeType&&n++}}return-1},addMultipleClasses(e,t){if(e&&t)if(e.classList){let n=t.split(" ");for(let t=0;t<n.length;t++)e.classList.add(n[t])}else{let n=t.split(" ");for(let t=0;t<n.length;t++)e.className+=" "+n[t]}},addClass(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)},removeClass(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:(e,t)=>!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)),find:(e,t)=>e?e.querySelectorAll(t):[],findSingle:(e,t)=>e?e.querySelector(t):null,getHeight(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0},getWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0},absolutePosition(e,t){if(e){let n,l,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=i.height,o=i.width,s=t.offsetHeight,a=t.offsetWidth,d=t.getBoundingClientRect(),c=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),h=this.getViewport();d.top+s+r>h.height?(n=d.top+c-r,e.style.transformOrigin="bottom",n<0&&(n=c)):(n=s+d.top+c,e.style.transformOrigin="top"),l=d.left+o>h.width?Math.max(0,d.left+p+a-o):d.left+p,e.style.top=n+"px",e.style.left=l+"px"}},relativePosition(e,t){if(e){let n=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const l=t.offsetHeight,i=t.getBoundingClientRect(),r=this.getViewport();let o,s;i.top+l+n.height>r.height?(o=-1*n.height,e.style.transformOrigin="bottom",i.top+o<0&&(o=-1*i.top)):(o=l,e.style.transformOrigin="top"),s=n.width>r.width?-1*i.left:i.left+n.width>r.width?-1*(i.left+n.width-r.width):0,e.style.top=o+"px",e.style.left=s+"px"}},getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const l=/(auto|scroll)/,i=e=>{let t=window.getComputedStyle(e,null);return l.test(t.getPropertyValue("overflow"))||l.test(t.getPropertyValue("overflowX"))||l.test(t.getPropertyValue("overflowY"))};for(let e of n){let n=1===e.nodeType&&e.dataset.scrollselectors;if(n){let l=n.split(",");for(let n of l){let l=this.findSingle(e,n);l&&i(l)&&t.push(l)}}9!==e.nodeType&&i(e)&&t.push(e)}}return t},getHiddenElementOuterHeight(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementOuterWidth(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementDimensions(e){if(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}return 0},fadeIn(e,t){if(e){e.style.opacity=0;let n=+new Date,l=0,i=function(){l=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=l,n=+new Date,+l<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()}},fadeOut(e,t){if(e){let n=1,l=50,i=l/t,r=setInterval((()=>{n-=i,n<=0&&(n=0,clearInterval(r)),e.style.opacity=n}),l)}},getUserAgent:()=>navigator.userAgent,appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.elElement)throw new Error("Cannot append "+t+" to "+e);t.elElement.appendChild(e)}},scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),l=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),r=i?parseFloat(i):0,o=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-l-r,a=e.scrollTop,d=e.clientHeight,c=this.getOuterHeight(t);s<0?e.scrollTop=a+s:s+c>d&&(e.scrollTop=a+s-d+c)},clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},getSelection:()=>window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null,calculateScrollbarWidth(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},isVisible:e=>e&&null!=e.offsetParent,invokeElementMethod(e,t,n){e[t].apply(e,n)},isExist:e=>null!=e&&e.nodeName&&e.parentNode,isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),focus(e,t){e&&document.activeElement!==e&&e.focus(t)},getFocusableElements(e,t=""){let n=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),l=[];for(let e of n)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&l.push(e);return l},getFirstFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[0]:null},getLastFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[n.length-1]:null},isClickable(e){const t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==n||"BUTTON"==n||"A"==n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")},applyStyle(e,t){if("string"==typeof t)e.style.cssText=t;else for(let n in t)e.style[n]=t[n]},isIOS:()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,isAndroid:()=>/(android)/i.test(navigator.userAgent),isTouchDevice:()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,exportCSV(e,t){let n=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(n,t+".csv");else{let l=document.createElement("a");void 0!==l.download?(l.setAttribute("href",URL.createObjectURL(n)),l.setAttribute("download",t+".csv"),l.style.display="none",document.body.appendChild(l),l.click(),document.body.removeChild(l)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}};class t{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=e.getScrollableParents(this.element);for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}var n={equals(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,l,i,r=Array.isArray(e),o=Array.isArray(t);if(r&&o){if((l=e.length)!=t.length)return!1;for(n=l;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(r!=o)return!1;var s=e instanceof Date,a=t instanceof Date;if(s!=a)return!1;if(s&&a)return e.getTime()==t.getTime();var d=e instanceof RegExp,c=t instanceof RegExp;if(d!=c)return!1;if(d&&c)return e.toString()==t.toString();var p=Object.keys(e);if((l=p.length)!==Object.keys(t).length)return!1;for(n=l;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,p[n]))return!1;for(n=l;0!=n--;)if(i=p[n],!this.deepEquals(e[i],t[i]))return!1;return!0}return e!=e&&t!=t},resolveFieldData(e,t){if(e&&Object.keys(e).length&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];{let i=t.split("."),r=e;for(var n=0,l=i.length;n<l;++n){if(null==r)return null;r=r[i[n]]}return r}}return null},isFunction:e=>!!(e&&e.constructor&&e.call&&e.apply),getItemValue(e,...t){return this.isFunction(e)?e(...t):e},filter(e,t,n){var l=[];if(e)for(let i of e)for(let e of t)if(String(this.resolveFieldData(i,e)).toLowerCase().indexOf(n.toLowerCase())>-1){l.push(i);break}return l},reorderArray(e,t,n){let l;if(e&&t!==n){if(n>=e.length)for(l=n-e.length;1+l--;)e.push(void 0);e.splice(n,0,e.splice(t,1)[0])}},findIndexInList(e,t){let n=-1;if(t)for(let l=0;l<t.length;l++)if(t[l]===e){n=l;break}return n},contains(e,t){if(null!=e&&t&&t.length)for(let n of t)if(this.equals(e,n))return!0;return!1},insertIntoOrderedArray(e,t,n,l){if(n.length>0){let i=!1;for(let r=0;r<n.length;r++){if(this.findIndexInList(n[r],l)>t){n.splice(r,0,e),i=!0;break}}i||n.push(e)}else n.push(e)},removeAccents:e=>(e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e),getVNodeProp(e,t){let n=e.props;if(n){let l=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(n,l)?l:t;return e.type.props[t].type===Boolean&&""===n[i]||n[i]}return null},isEmpty:e=>null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length,isNotEmpty(e){return!this.isEmpty(e)},isPrintableCharacter(e=""){return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)},findLast(e,t){let n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch{n=[...e].reverse().find(t)}return n},findLastIndex(e,t){let n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}};var l=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,n,l)=>{n&&(n.style.zIndex=String(((t,n)=>{let l=e.length>0?e[e.length-1]:{key:t,value:n},i=l.value+(l.key===t?0:n)+1;return e.push({key:t,value:i}),i})(t,l)))},clear:n=>{var l;n&&(l=t(n),e=e.filter((e=>e.value!==l)),n.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}(),i=0;function r(e="pv_id_"){return`${e}${++i}`}function o(){const e=new Map;return{on(t,n){let l=e.get(t);l?l.push(n):l=[n],e.set(t,l)},off(t,n){let l=e.get(t);l&&l.splice(l.indexOf(n)>>>0,1)},emit(t,n){let l=e.get(t);l&&l.slice().map((e=>{e(n)}))}}}export{t as ConnectedOverlayScrollHandler,e as DomHandler,o as EventBus,n as ObjectUtils,r as UniqueComponentId,l as ZIndexUtils};
package/utils/utils.js CHANGED
@@ -555,6 +555,12 @@ this.primevue.utils = (function (exports) {
555
555
  return focusableElements.length > 0 ? focusableElements[0] : null;
556
556
  },
557
557
 
558
+ getLastFocusableElement(element, selector) {
559
+ const focusableElements = this.getFocusableElements(element, selector);
560
+
561
+ return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;
562
+ },
563
+
558
564
  isClickable(element) {
559
565
  const targetNode = element.nodeName;
560
566
  const parentNode = element.parentElement && element.parentElement.nodeName;
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.utils=function(e){"use strict";var t={innerWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth(e,t){if(e){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}return 0},getOuterHeight(e,t){if(e){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0},getClientHeight(e,t){if(e){let n=e.clientHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0},getViewport(){let e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}},getOffset(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index(e){if(e){let t=e.parentNode.childNodes,n=0;for(let i=0;i<t.length;i++){if(t[i]===e)return n;1===t[i].nodeType&&n++}}return-1},addMultipleClasses(e,t){if(e&&t)if(e.classList){let n=t.split(" ");for(let t=0;t<n.length;t++)e.classList.add(n[t])}else{let n=t.split(" ");for(let t=0;t<n.length;t++)e.className+=" "+n[t]}},addClass(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)},removeClass(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:(e,t)=>!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)),find:(e,t)=>e?e.querySelectorAll(t):[],findSingle:(e,t)=>e?e.querySelector(t):null,getHeight(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0},getWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0},absolutePosition(e,t){if(e){let n,i,l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=l.height,o=l.width,s=t.offsetHeight,a=t.offsetWidth,d=t.getBoundingClientRect(),c=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),u=this.getViewport();d.top+s+r>u.height?(n=d.top+c-r,e.style.transformOrigin="bottom",n<0&&(n=c)):(n=s+d.top+c,e.style.transformOrigin="top"),i=d.left+o>u.width?Math.max(0,d.left+p+a-o):d.left+p,e.style.top=n+"px",e.style.left=i+"px"}},relativePosition(e,t){if(e){let n=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const i=t.offsetHeight,l=t.getBoundingClientRect(),r=this.getViewport();let o,s;l.top+i+n.height>r.height?(o=-1*n.height,e.style.transformOrigin="bottom",l.top+o<0&&(o=-1*l.top)):(o=i,e.style.transformOrigin="top"),s=n.width>r.width?-1*l.left:l.left+n.width>r.width?-1*(l.left+n.width-r.width):0,e.style.top=o+"px",e.style.left=s+"px"}},getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const i=/(auto|scroll)/,l=e=>{let t=window.getComputedStyle(e,null);return i.test(t.getPropertyValue("overflow"))||i.test(t.getPropertyValue("overflowX"))||i.test(t.getPropertyValue("overflowY"))};for(let e of n){let n=1===e.nodeType&&e.dataset.scrollselectors;if(n){let i=n.split(",");for(let n of i){let i=this.findSingle(e,n);i&&l(i)&&t.push(i)}}9!==e.nodeType&&l(e)&&t.push(e)}}return t},getHiddenElementOuterHeight(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementOuterWidth(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementDimensions(e){if(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}return 0},fadeIn(e,t){if(e){e.style.opacity=0;let n=+new Date,i=0,l=function(){i=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(l)||setTimeout(l,16))};l()}},fadeOut(e,t){if(e){let n=1,i=50,l=i/t,r=setInterval((()=>{n-=l,n<=0&&(n=0,clearInterval(r)),e.style.opacity=n}),i)}},getUserAgent:()=>navigator.userAgent,appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.elElement)throw new Error("Cannot append "+t+" to "+e);t.elElement.appendChild(e)}},scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,l=getComputedStyle(e).getPropertyValue("paddingTop"),r=l?parseFloat(l):0,o=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-i-r,a=e.scrollTop,d=e.clientHeight,c=this.getOuterHeight(t);s<0?e.scrollTop=a+s:s+c>d&&(e.scrollTop=a+s-d+c)},clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},getSelection:()=>window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null,calculateScrollbarWidth(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},isVisible:e=>e&&null!=e.offsetParent,invokeElementMethod(e,t,n){e[t].apply(e,n)},isExist:e=>null!=e&&e.nodeName&&e.parentNode,isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),focus(e,t){e&&document.activeElement!==e&&e.focus(t)},getFocusableElements(e,t=""){let n=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),i=[];for(let e of n)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&i.push(e);return i},getFirstFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[0]:null},isClickable(e){const t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==n||"BUTTON"==n||"A"==n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")},applyStyle(e,t){if("string"==typeof t)e.style.cssText=t;else for(let n in t)e.style[n]=t[n]},isIOS:()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,isAndroid:()=>/(android)/i.test(navigator.userAgent),isTouchDevice:()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,exportCSV(e,t){let n=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(n,t+".csv");else{let i=document.createElement("a");void 0!==i.download?(i.setAttribute("href",URL.createObjectURL(n)),i.setAttribute("download",t+".csv"),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}};var n={equals(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,l,r=Array.isArray(e),o=Array.isArray(t);if(r&&o){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(r!=o)return!1;var s=e instanceof Date,a=t instanceof Date;if(s!=a)return!1;if(s&&a)return e.getTime()==t.getTime();var d=e instanceof RegExp,c=t instanceof RegExp;if(d!=c)return!1;if(d&&c)return e.toString()==t.toString();var p=Object.keys(e);if((i=p.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,p[n]))return!1;for(n=i;0!=n--;)if(l=p[n],!this.deepEquals(e[l],t[l]))return!1;return!0}return e!=e&&t!=t},resolveFieldData(e,t){if(e&&Object.keys(e).length&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];{let l=t.split("."),r=e;for(var n=0,i=l.length;n<i;++n){if(null==r)return null;r=r[l[n]]}return r}}return null},isFunction:e=>!!(e&&e.constructor&&e.call&&e.apply),getItemValue(e,...t){return this.isFunction(e)?e(...t):e},filter(e,t,n){var i=[];if(e)for(let l of e)for(let e of t)if(String(this.resolveFieldData(l,e)).toLowerCase().indexOf(n.toLowerCase())>-1){i.push(l);break}return i},reorderArray(e,t,n){let i;if(e&&t!==n){if(n>=e.length)for(i=n-e.length;1+i--;)e.push(void 0);e.splice(n,0,e.splice(t,1)[0])}},findIndexInList(e,t){let n=-1;if(t)for(let i=0;i<t.length;i++)if(t[i]===e){n=i;break}return n},contains(e,t){if(null!=e&&t&&t.length)for(let n of t)if(this.equals(e,n))return!0;return!1},insertIntoOrderedArray(e,t,n,i){if(n.length>0){let l=!1;for(let r=0;r<n.length;r++){if(this.findIndexInList(n[r],i)>t){n.splice(r,0,e),l=!0;break}}l||n.push(e)}else n.push(e)},removeAccents:e=>(e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e),getVNodeProp(e,t){let n=e.props;if(n){let i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=Object.prototype.hasOwnProperty.call(n,i)?i:t;return e.type.props[t].type===Boolean&&""===n[l]||n[l]}return null},isEmpty:e=>null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length,isNotEmpty(e){return!this.isEmpty(e)},isPrintableCharacter(e=""){return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)},findLast(e,t){let n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch{n=[...e].reverse().find(t)}return n},findLastIndex(e,t){let n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}};var i=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,n,i)=>{n&&(n.style.zIndex=String(((t,n)=>{let i=e.length>0?e[e.length-1]:{key:t,value:n},l=i.value+(i.key===t?0:n)+1;return e.push({key:t,value:l}),l})(t,i)))},clear:n=>{var i;n&&(i=t(n),e=e.filter((e=>e.value!==i)),n.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}(),l=0;return e.ConnectedOverlayScrollHandler=class{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=t.getScrollableParents(this.element);for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}},e.DomHandler=t,e.EventBus=function(){const e=new Map;return{on(t,n){let i=e.get(t);i?i.push(n):i=[n],e.set(t,i)},off(t,n){let i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},emit(t,n){let i=e.get(t);i&&i.slice().map((e=>{e(n)}))}}},e.ObjectUtils=n,e.UniqueComponentId=function(e="pv_id_"){return`${e}${++l}`},e.ZIndexUtils=i,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
1
+ this.primevue=this.primevue||{},this.primevue.utils=function(e){"use strict";var t={innerWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0},getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth(e,t){if(e){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}return 0},getOuterHeight(e,t){if(e){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0},getClientHeight(e,t){if(e){let n=e.clientHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}return 0},getViewport(){let e=window,t=document,n=t.documentElement,l=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||l.clientWidth,height:e.innerHeight||n.clientHeight||l.clientHeight}},getOffset(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index(e){if(e){let t=e.parentNode.childNodes,n=0;for(let l=0;l<t.length;l++){if(t[l]===e)return n;1===t[l].nodeType&&n++}}return-1},addMultipleClasses(e,t){if(e&&t)if(e.classList){let n=t.split(" ");for(let t=0;t<n.length;t++)e.classList.add(n[t])}else{let n=t.split(" ");for(let t=0;t<n.length;t++)e.className+=" "+n[t]}},addClass(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)},removeClass(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:(e,t)=>!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)),find:(e,t)=>e?e.querySelectorAll(t):[],findSingle:(e,t)=>e?e.querySelector(t):null,getHeight(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0},getWidth(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0},absolutePosition(e,t){if(e){let n,l,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=i.height,o=i.width,s=t.offsetHeight,a=t.offsetWidth,d=t.getBoundingClientRect(),c=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),u=this.getViewport();d.top+s+r>u.height?(n=d.top+c-r,e.style.transformOrigin="bottom",n<0&&(n=c)):(n=s+d.top+c,e.style.transformOrigin="top"),l=d.left+o>u.width?Math.max(0,d.left+p+a-o):d.left+p,e.style.top=n+"px",e.style.left=l+"px"}},relativePosition(e,t){if(e){let n=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const l=t.offsetHeight,i=t.getBoundingClientRect(),r=this.getViewport();let o,s;i.top+l+n.height>r.height?(o=-1*n.height,e.style.transformOrigin="bottom",i.top+o<0&&(o=-1*i.top)):(o=l,e.style.transformOrigin="top"),s=n.width>r.width?-1*i.left:i.left+n.width>r.width?-1*(i.left+n.width-r.width):0,e.style.top=o+"px",e.style.left=s+"px"}},getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const l=/(auto|scroll)/,i=e=>{let t=window.getComputedStyle(e,null);return l.test(t.getPropertyValue("overflow"))||l.test(t.getPropertyValue("overflowX"))||l.test(t.getPropertyValue("overflowY"))};for(let e of n){let n=1===e.nodeType&&e.dataset.scrollselectors;if(n){let l=n.split(",");for(let n of l){let l=this.findSingle(e,n);l&&i(l)&&t.push(l)}}9!==e.nodeType&&i(e)&&t.push(e)}}return t},getHiddenElementOuterHeight(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementOuterWidth(e){if(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0},getHiddenElementDimensions(e){if(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}return 0},fadeIn(e,t){if(e){e.style.opacity=0;let n=+new Date,l=0,i=function(){l=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=l,n=+new Date,+l<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()}},fadeOut(e,t){if(e){let n=1,l=50,i=l/t,r=setInterval((()=>{n-=i,n<=0&&(n=0,clearInterval(r)),e.style.opacity=n}),l)}},getUserAgent:()=>navigator.userAgent,appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.elElement)throw new Error("Cannot append "+t+" to "+e);t.elElement.appendChild(e)}},scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),l=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),r=i?parseFloat(i):0,o=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-l-r,a=e.scrollTop,d=e.clientHeight,c=this.getOuterHeight(t);s<0?e.scrollTop=a+s:s+c>d&&(e.scrollTop=a+s-d+c)},clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},getSelection:()=>window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null,calculateScrollbarWidth(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},isVisible:e=>e&&null!=e.offsetParent,invokeElementMethod(e,t,n){e[t].apply(e,n)},isExist:e=>null!=e&&e.nodeName&&e.parentNode,isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),focus(e,t){e&&document.activeElement!==e&&e.focus(t)},getFocusableElements(e,t=""){let n=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),l=[];for(let e of n)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&l.push(e);return l},getFirstFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[0]:null},getLastFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[n.length-1]:null},isClickable(e){const t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==n||"BUTTON"==n||"A"==n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")},applyStyle(e,t){if("string"==typeof t)e.style.cssText=t;else for(let n in t)e.style[n]=t[n]},isIOS:()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,isAndroid:()=>/(android)/i.test(navigator.userAgent),isTouchDevice:()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,exportCSV(e,t){let n=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(n,t+".csv");else{let l=document.createElement("a");void 0!==l.download?(l.setAttribute("href",URL.createObjectURL(n)),l.setAttribute("download",t+".csv"),l.style.display="none",document.body.appendChild(l),l.click(),document.body.removeChild(l)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}};var n={equals(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,l,i,r=Array.isArray(e),o=Array.isArray(t);if(r&&o){if((l=e.length)!=t.length)return!1;for(n=l;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(r!=o)return!1;var s=e instanceof Date,a=t instanceof Date;if(s!=a)return!1;if(s&&a)return e.getTime()==t.getTime();var d=e instanceof RegExp,c=t instanceof RegExp;if(d!=c)return!1;if(d&&c)return e.toString()==t.toString();var p=Object.keys(e);if((l=p.length)!==Object.keys(t).length)return!1;for(n=l;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,p[n]))return!1;for(n=l;0!=n--;)if(i=p[n],!this.deepEquals(e[i],t[i]))return!1;return!0}return e!=e&&t!=t},resolveFieldData(e,t){if(e&&Object.keys(e).length&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];{let i=t.split("."),r=e;for(var n=0,l=i.length;n<l;++n){if(null==r)return null;r=r[i[n]]}return r}}return null},isFunction:e=>!!(e&&e.constructor&&e.call&&e.apply),getItemValue(e,...t){return this.isFunction(e)?e(...t):e},filter(e,t,n){var l=[];if(e)for(let i of e)for(let e of t)if(String(this.resolveFieldData(i,e)).toLowerCase().indexOf(n.toLowerCase())>-1){l.push(i);break}return l},reorderArray(e,t,n){let l;if(e&&t!==n){if(n>=e.length)for(l=n-e.length;1+l--;)e.push(void 0);e.splice(n,0,e.splice(t,1)[0])}},findIndexInList(e,t){let n=-1;if(t)for(let l=0;l<t.length;l++)if(t[l]===e){n=l;break}return n},contains(e,t){if(null!=e&&t&&t.length)for(let n of t)if(this.equals(e,n))return!0;return!1},insertIntoOrderedArray(e,t,n,l){if(n.length>0){let i=!1;for(let r=0;r<n.length;r++){if(this.findIndexInList(n[r],l)>t){n.splice(r,0,e),i=!0;break}}i||n.push(e)}else n.push(e)},removeAccents:e=>(e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e),getVNodeProp(e,t){let n=e.props;if(n){let l=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(n,l)?l:t;return e.type.props[t].type===Boolean&&""===n[i]||n[i]}return null},isEmpty:e=>null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length,isNotEmpty(e){return!this.isEmpty(e)},isPrintableCharacter(e=""){return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)},findLast(e,t){let n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch{n=[...e].reverse().find(t)}return n},findLastIndex(e,t){let n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}};var l=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,n,l)=>{n&&(n.style.zIndex=String(((t,n)=>{let l=e.length>0?e[e.length-1]:{key:t,value:n},i=l.value+(l.key===t?0:n)+1;return e.push({key:t,value:i}),i})(t,l)))},clear:n=>{var l;n&&(l=t(n),e=e.filter((e=>e.value!==l)),n.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}(),i=0;return e.ConnectedOverlayScrollHandler=class{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=t.getScrollableParents(this.element);for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}},e.DomHandler=t,e.EventBus=function(){const e=new Map;return{on(t,n){let l=e.get(t);l?l.push(n):l=[n],e.set(t,l)},off(t,n){let l=e.get(t);l&&l.splice(l.indexOf(n)>>>0,1)},emit(t,n){let l=e.get(t);l&&l.slice().map((e=>{e(n)}))}}},e.ObjectUtils=n,e.UniqueComponentId=function(e="pv_id_"){return`${e}${++i}`},e.ZIndexUtils=l,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
@@ -359,6 +359,22 @@
359
359
  "description": "Icon of the calendar button.",
360
360
  "type": "string"
361
361
  },
362
+ "calendar/previousIcon": {
363
+ "description": "Icon to show in the previous button.",
364
+ "type": "string"
365
+ },
366
+ "calendar/nextIcon": {
367
+ "description": "Icon to show in the next button.",
368
+ "type": "string"
369
+ },
370
+ "calendar/incrementIcon": {
371
+ "description": "Icon to show in each of the increment buttons.",
372
+ "type": "string"
373
+ },
374
+ "calendar/decrementIcon": {
375
+ "description": "Icon to show in each of the decrement buttons.",
376
+ "type": "string"
377
+ },
362
378
  "calendar/numberOfMonths": {
363
379
  "description": "Number of months to display.",
364
380
  "type": "number"
@@ -812,8 +828,8 @@
812
828
  "type": "number"
813
829
  },
814
830
  "chips/separator": {
815
- "description": "Separator char to add an item when pressed in addition to the enter key. Currently only possible value is \",\"",
816
- "type": "string"
831
+ "description": "Separator char to add an item when pressed in addition to the enter key.",
832
+ "type": "string | any"
817
833
  },
818
834
  "chips/addOnBlur": {
819
835
  "description": "Whether to add an item when the input loses focus.",
@@ -847,6 +863,10 @@
847
863
  "description": "Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.",
848
864
  "type": "object"
849
865
  },
866
+ "chips/removeTokenIcon": {
867
+ "description": "Icon to display in chip remove action.",
868
+ "type": "string"
869
+ },
850
870
  "colorpicker/modelValue": {
851
871
  "description": "Value of the component.",
852
872
  "type": "string"
@@ -1463,6 +1483,10 @@
1463
1483
  "description": "Style class of the content section.",
1464
1484
  "type": "string"
1465
1485
  },
1486
+ "dialog/contentProps": {
1487
+ "description": "Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.",
1488
+ "type": "null"
1489
+ },
1466
1490
  "dialog/rtl": {
1467
1491
  "description": "When enabled dialog is displayed in RTL direction.",
1468
1492
  "type": "boolean"
@@ -1483,10 +1507,6 @@
1483
1507
  "description": "Whether to automatically manage layering.",
1484
1508
  "type": "boolean"
1485
1509
  },
1486
- "dialog/ariaCloseLabel": {
1487
- "description": "Aria label of the close icon.",
1488
- "type": "string"
1489
- },
1490
1510
  "dialog/maximizable": {
1491
1511
  "description": "Whether the dialog can be displayed full screen.",
1492
1512
  "type": "boolean"
@@ -1515,6 +1535,18 @@
1515
1535
  "description": "A valid query selector or an HTMLElement to specify where the dialog gets attached. Special keywords are \"body\" for document body and \"self\" for the element itself.",
1516
1536
  "type": "string"
1517
1537
  },
1538
+ "dialog/closeIcon": {
1539
+ "description": "Icon to display in the dialog close button.",
1540
+ "type": "string"
1541
+ },
1542
+ "dialog/maximizeIcon": {
1543
+ "description": "Icon to display in the dialog maximize button when dialog is not maximized.",
1544
+ "type": "string"
1545
+ },
1546
+ "dialog/minimizeIcon": {
1547
+ "description": "Icon to display in the dialog maximize button when dialog is maximized.",
1548
+ "type": "string"
1549
+ },
1518
1550
  "divider/align": {
1519
1551
  "description": "Alignment of the content, options are \"left\", \"center\", \"right\" for horizontal layout and \"top\", \"center\", \"bottom\" for vertical.",
1520
1552
  "type": "string"
@@ -1828,7 +1860,7 @@
1828
1860
  "type": "string"
1829
1861
  },
1830
1862
  "fileupload/invalidFileLimitMessage": {
1831
- "description": "Message to display when number of files to be uploaded exceeeds the limit.",
1863
+ "description": "Message of the invalid file type.",
1832
1864
  "type": "string"
1833
1865
  },
1834
1866
  "fileupload/fileLimit": {
@@ -2011,6 +2043,10 @@
2011
2043
  "description": "When present, it specifies that the element should be disabled.",
2012
2044
  "type": "boolean"
2013
2045
  },
2046
+ "inplace/closeIcon": {
2047
+ "description": "Icon to display in the close button.",
2048
+ "type": "string"
2049
+ },
2014
2050
  "inputmask/modelValue": {
2015
2051
  "description": "Value of the component.",
2016
2052
  "type": "any"
@@ -2119,6 +2155,10 @@
2119
2155
  "description": "Determines whether the input field is empty.",
2120
2156
  "type": "boolean"
2121
2157
  },
2158
+ "inputnumber/highlightOnFocus": {
2159
+ "description": "Highlights automatically the input value.",
2160
+ "type": "boolean"
2161
+ },
2122
2162
  "inputnumber/readonly": {
2123
2163
  "description": "When present, it specifies that an input field is read-only.",
2124
2164
  "type": "boolean"
@@ -2471,6 +2511,10 @@
2471
2511
  "description": "Display a custom icon for the message.",
2472
2512
  "type": "string"
2473
2513
  },
2514
+ "message/closeIcon": {
2515
+ "description": "Icon to display in the message close button.",
2516
+ "type": "string"
2517
+ },
2474
2518
  "multiselect/modelValue": {
2475
2519
  "description": "Value of the component.",
2476
2520
  "type": "any"
@@ -3135,14 +3179,14 @@
3135
3179
  "description": "Whether to display a close icon inside the panel.",
3136
3180
  "type": "boolean"
3137
3181
  },
3182
+ "sidebar/closeIcon": {
3183
+ "description": "Icon to display in the sidebar close button.",
3184
+ "type": "string"
3185
+ },
3138
3186
  "sidebar/modal": {
3139
3187
  "description": "Whether to a modal layer behind the sidebar.",
3140
3188
  "type": "boolean"
3141
3189
  },
3142
- "sidebar/ariaCloseLabel": {
3143
- "description": "Aria label of the close icon.",
3144
- "type": "string"
3145
- },
3146
3190
  "skeleton/shape": {
3147
3191
  "description": "Shape of the element, options are \"rectangle\" and \"circle\".",
3148
3192
  "type": "string"
@@ -3547,6 +3591,26 @@
3547
3591
  "description": "Object literal to define widths per screen size.",
3548
3592
  "type": "object"
3549
3593
  },
3594
+ "toast/closeIcon": {
3595
+ "description": "Icon to display in the toast close button.",
3596
+ "type": "string"
3597
+ },
3598
+ "toast/infoIcon": {
3599
+ "description": "Icon to display in the toast with info severity.",
3600
+ "type": "string"
3601
+ },
3602
+ "toast/warnIcon": {
3603
+ "description": "Icon to display in the toast with warn severity.",
3604
+ "type": "string"
3605
+ },
3606
+ "toast/errorIcon": {
3607
+ "description": "Icon to display in the toast with error severity.",
3608
+ "type": "string"
3609
+ },
3610
+ "toast/successIcon": {
3611
+ "description": "Icon to display in the toast with success severity.",
3612
+ "type": "string"
3613
+ },
3550
3614
  "togglebutton/modelValue": {
3551
3615
  "description": "Value of the component.",
3552
3616
  "type": "any"
package/vetur-tags.json CHANGED
@@ -132,6 +132,10 @@
132
132
  "selectOtherMonths",
133
133
  "showIcon",
134
134
  "icon",
135
+ "previousIcon",
136
+ "nextIcon",
137
+ "incrementIcon",
138
+ "decrementIcon",
135
139
  "numberOfMonths",
136
140
  "view",
137
141
  "touchUI",
@@ -284,7 +288,8 @@
284
288
  "inputId",
285
289
  "inputClass",
286
290
  "inputStyle",
287
- "inputProps"
291
+ "inputProps",
292
+ "removeTokenIcon"
288
293
  ]
289
294
  },
290
295
  "ColorPicker": {
@@ -479,19 +484,22 @@
479
484
  "position",
480
485
  "contentStyle",
481
486
  "contentClass",
487
+ "contentProps",
482
488
  "rtl",
483
489
  "closable",
484
490
  "showHeader",
485
491
  "baseZIndex",
486
492
  "autoZIndex",
487
- "ariaCloseLabel",
488
493
  "maximizable",
489
494
  "breakpoints",
490
495
  "draggable",
491
496
  "minX",
492
497
  "minY",
493
498
  "keepInViewport",
494
- "appendTo"
499
+ "appendTo",
500
+ "closeIcon",
501
+ "maximizeIcon",
502
+ "minimizeIcon"
495
503
  ]
496
504
  },
497
505
  "Divider": {
@@ -602,6 +610,7 @@
602
610
  "invalidFileSizeMessage",
603
611
  "invalidFileLimitMessage",
604
612
  "fileLimit",
613
+ "invalidFileLimitMessage",
605
614
  "withCredentials",
606
615
  "previewWidth",
607
616
  "chooseLabel",
@@ -670,7 +679,8 @@
670
679
  "attributes": [
671
680
  "active",
672
681
  "closable",
673
- "diabled"
682
+ "diabled",
683
+ "closeIcon"
674
684
  ]
675
685
  },
676
686
  "InputMask": {
@@ -708,6 +718,7 @@
708
718
  "max",
709
719
  "step",
710
720
  "allowEmpty",
721
+ "highlightOnFocus",
711
722
  "readonly",
712
723
  "placeholder",
713
724
  "inputId",
@@ -835,7 +846,8 @@
835
846
  "closable",
836
847
  "sticky",
837
848
  "life",
838
- "icon"
849
+ "icon",
850
+ "closeIcon"
839
851
  ]
840
852
  },
841
853
  "MultiSelect": {
@@ -1093,8 +1105,8 @@
1093
1105
  "autoZIndex",
1094
1106
  "dismissable",
1095
1107
  "showCloseIcon",
1096
- "modal",
1097
- "ariaCloseLabel"
1108
+ "closeIcon",
1109
+ "modal"
1098
1110
  ]
1099
1111
  },
1100
1112
  "Skeleton": {
@@ -1275,7 +1287,12 @@
1275
1287
  "position",
1276
1288
  "autoZIndex",
1277
1289
  "baseZIndex",
1278
- "breakpoints"
1290
+ "breakpoints",
1291
+ "closeIcon",
1292
+ "infoIcon",
1293
+ "warnIcon",
1294
+ "errorIcon",
1295
+ "successIcon"
1279
1296
  ]
1280
1297
  },
1281
1298
  "ToggleButton": {