primevue 3.16.1 → 3.16.2

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 (83) hide show
  1. package/autocomplete/AutoComplete.d.ts +2 -2
  2. package/autocomplete/AutoComplete.vue +2 -2
  3. package/autocomplete/autocomplete.cjs.js +2 -2
  4. package/autocomplete/autocomplete.cjs.min.js +1 -1
  5. package/autocomplete/autocomplete.esm.js +2 -2
  6. package/autocomplete/autocomplete.esm.min.js +1 -1
  7. package/autocomplete/autocomplete.js +2 -2
  8. package/autocomplete/autocomplete.min.js +1 -1
  9. package/calendar/Calendar.vue +2 -2
  10. package/calendar/calendar.cjs.js +2 -2
  11. package/calendar/calendar.cjs.min.js +1 -1
  12. package/calendar/calendar.esm.js +2 -2
  13. package/calendar/calendar.esm.min.js +1 -1
  14. package/calendar/calendar.js +2 -2
  15. package/calendar/calendar.min.js +1 -1
  16. package/cascadeselect/CascadeSelect.vue +2 -2
  17. package/cascadeselect/cascadeselect.cjs.js +2 -2
  18. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  19. package/cascadeselect/cascadeselect.esm.js +2 -2
  20. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  21. package/cascadeselect/cascadeselect.js +2 -2
  22. package/cascadeselect/cascadeselect.min.js +1 -1
  23. package/core/core.js +31 -9
  24. package/core/core.min.js +4 -4
  25. package/datatable/DataTable.vue +2 -2
  26. package/datatable/datatable.cjs.js +2 -2
  27. package/datatable/datatable.cjs.min.js +1 -1
  28. package/datatable/datatable.esm.js +2 -2
  29. package/datatable/datatable.esm.min.js +1 -1
  30. package/datatable/datatable.js +2 -2
  31. package/datatable/datatable.min.js +1 -1
  32. package/dropdown/Dropdown.vue +2 -2
  33. package/dropdown/dropdown.cjs.js +2 -2
  34. package/dropdown/dropdown.cjs.min.js +1 -1
  35. package/dropdown/dropdown.esm.js +2 -2
  36. package/dropdown/dropdown.esm.min.js +1 -1
  37. package/dropdown/dropdown.js +2 -2
  38. package/dropdown/dropdown.min.js +1 -1
  39. package/inputnumber/InputNumber.d.ts +1 -1
  40. package/inputnumber/InputNumber.vue +1 -1
  41. package/inputnumber/inputnumber.cjs.js +2 -1
  42. package/inputnumber/inputnumber.cjs.min.js +1 -1
  43. package/inputnumber/inputnumber.esm.js +2 -1
  44. package/inputnumber/inputnumber.esm.min.js +1 -1
  45. package/inputnumber/inputnumber.js +2 -1
  46. package/inputnumber/inputnumber.min.js +1 -1
  47. package/listbox/Listbox.vue +4 -4
  48. package/listbox/listbox.cjs.js +4 -4
  49. package/listbox/listbox.cjs.min.js +1 -1
  50. package/listbox/listbox.esm.js +4 -4
  51. package/listbox/listbox.esm.min.js +1 -1
  52. package/listbox/listbox.js +4 -4
  53. package/listbox/listbox.min.js +1 -1
  54. package/multiselect/MultiSelect.vue +4 -4
  55. package/multiselect/multiselect.cjs.js +4 -4
  56. package/multiselect/multiselect.cjs.min.js +1 -1
  57. package/multiselect/multiselect.esm.js +4 -4
  58. package/multiselect/multiselect.esm.min.js +1 -1
  59. package/multiselect/multiselect.js +4 -4
  60. package/multiselect/multiselect.min.js +1 -1
  61. package/overlaypanel/OverlayPanel.vue +1 -1
  62. package/overlaypanel/overlaypanel.cjs.js +1 -1
  63. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  64. package/overlaypanel/overlaypanel.esm.js +1 -1
  65. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  66. package/overlaypanel/overlaypanel.js +1 -1
  67. package/overlaypanel/overlaypanel.min.js +1 -1
  68. package/package.json +1 -1
  69. package/resources/primevue.css +0 -0
  70. package/resources/primevue.min.css +0 -0
  71. package/tooltip/tooltip.cjs.js +8 -6
  72. package/tooltip/tooltip.cjs.min.js +1 -1
  73. package/tooltip/tooltip.esm.js +9 -7
  74. package/tooltip/tooltip.esm.min.js +1 -1
  75. package/tooltip/tooltip.js +8 -6
  76. package/tooltip/tooltip.min.js +1 -1
  77. package/utils/utils.cjs.js +19 -0
  78. package/utils/utils.cjs.min.js +1 -1
  79. package/utils/utils.esm.js +19 -0
  80. package/utils/utils.esm.min.js +1 -1
  81. package/utils/utils.js +19 -0
  82. package/utils/utils.min.js +1 -1
  83. package/web-types.json +1 -1
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/utils");function t(e){r(e.currentTarget)}function o(e){p(e.currentTarget)}function l(e){r(e.currentTarget)}function n(e){p(e.currentTarget)}function i(e){p(e.currentTarget)}function r(t){if(t.$_ptooltipDisabled)return;let o=function(t){const o=e.UniqueComponentId()+"_tooltip";t.$_ptooltipId=o;let l=document.createElement("div");l.id=o;let n=document.createElement("div");n.className="p-tooltip-arrow",l.appendChild(n);let i=document.createElement("div");i.className="p-tooltip-text",t.$_ptooltipEscape?i.innerHTML=t.$_ptooltipValue:(i.innerHTML="",i.appendChild(document.createTextNode(t.$_ptooltipValue)));l.appendChild(i),document.body.appendChild(l),l.style.display="inline-block",t.$_ptooltipFitContent&&(l.style.width="fit-content");return l}(t);!function(e){const t=e.$_ptooltipModifiers;t.top?(f(e),$(e)&&(v(e),$(e)&&f(e))):t.left?(c(e),$(e)&&(s(e),$(e)&&(f(e),$(e)&&(v(e),$(e)&&c(e))))):t.bottom?(v(e),$(e)&&(f(e),$(e)&&v(e))):(s(e),$(e)&&(c(e),$(e)&&(f(e),$(e)&&(v(e),$(e)&&s(e)))))}(t),e.DomHandler.fadeIn(o,250),window.addEventListener("resize",(function o(){e.DomHandler.isTouchDevice()||p(t),this.removeEventListener("resize",o)})),function(t){t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new e.ConnectedOverlayScrollHandler(t,(function(){p(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()}(t),e.ZIndexUtils.set("tooltip",o,t.$_ptooltipZIndex)}function p(e){a(e),function(e){e.$_ptooltipScrollHandler&&e.$_ptooltipScrollHandler.unbindScrollListener()}(e)}function u(e){return document.getElementById(e.$_ptooltipId)}function a(t){if(t){let o=u(t);o&&o.parentElement&&(e.ZIndexUtils.clear(o),document.body.removeChild(o)),t.$_ptooltipId=null}}function d(t){let o=t.getBoundingClientRect();return{left:o.left+e.DomHandler.getWindowScrollLeft(),top:o.top+e.DomHandler.getWindowScrollTop()}}function s(t){m(t,"right");let o=u(t),l=d(t),n=l.left+e.DomHandler.getOuterWidth(t),i=l.top+(e.DomHandler.getOuterHeight(t)-e.DomHandler.getOuterHeight(o))/2;o.style.left=n+"px",o.style.top=i+"px"}function c(t){m(t,"left");let o=u(t),l=d(t),n=l.left-e.DomHandler.getOuterWidth(o),i=l.top+(e.DomHandler.getOuterHeight(t)-e.DomHandler.getOuterHeight(o))/2;o.style.left=n+"px",o.style.top=i+"px"}function f(t){m(t,"top");let o=u(t),l=d(t),n=l.left+(e.DomHandler.getOuterWidth(t)-e.DomHandler.getOuterWidth(o))/2,i=l.top-e.DomHandler.getOuterHeight(o);o.style.left=n+"px",o.style.top=i+"px"}function v(t){m(t,"bottom");let o=u(t),l=d(t),n=l.left+(e.DomHandler.getOuterWidth(t)-e.DomHandler.getOuterWidth(o))/2,i=l.top+e.DomHandler.getOuterHeight(t);o.style.left=n+"px",o.style.top=i+"px"}function m(e,t){let o=u(e);o.style.left="-999px",o.style.top="-999px",o.className=`p-tooltip p-component p-tooltip-${t} ${e.$_ptooltipClass||""}`}function $(t){let o=u(t),l=o.getBoundingClientRect(),n=l.top,i=l.left,r=e.DomHandler.getOuterWidth(o),p=e.DomHandler.getOuterHeight(o),a=e.DomHandler.getViewport();return i+r>a.width||i<0||n<0||n+p>a.height}function g(t){return e.DomHandler.hasClass(t,"p-inputwrapper")?e.DomHandler.findSingle(t,"input"):t}function _(e){return e.modifiers&&Object.keys(e.modifiers).length?e.modifiers:e.arg&&"object"==typeof e.arg?Object.entries(e.arg).reduce(((e,[t,o])=>("event"!==t&&"position"!==t||(e[o]=!0),e)),{}):{}}const H={beforeMount(e,r){let p=g(e);if(p.$_ptooltipModifiers=_(r),r.value){if("string"==typeof r.value)p.$_ptooltipValue=r.value,p.$_ptooltipDisabled=!1,p.$_ptooltipEscape=!1,p.$_ptooltipClass=null,p.$_ptooltipFitContent=!0;else if("object"==typeof r.value&&r.value){if(void 0===r.value.value||null===r.value.value||""===r.value.value.trim())return;p.$_ptooltipValue=r.value.value,p.$_ptooltipDisabled=r.value.disabled||!1,p.$_ptooltipEscape=r.value.escape||!1,p.$_ptooltipClass=r.value.class,p.$_ptooltipFitContent=r.value.fitContent||!0}p.$_ptooltipZIndex=r.instance.$primevue&&r.instance.$primevue.config&&r.instance.$primevue.config.zIndex.tooltip,function(e){e.$_ptooltipModifiers.focus?(e.addEventListener("focus",l),e.addEventListener("blur",n)):(e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",o),e.addEventListener("click",i))}(p)}},unmounted(r){let p=g(r);a(p),function(e){e.$_ptooltipModifiers.focus?(e.removeEventListener("focus",l),e.removeEventListener("blur",n)):(e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",o),e.removeEventListener("click",i))}(p),p.$_ptooltipScrollHandler&&(p.$_ptooltipScrollHandler.destroy(),p.$_ptooltipScrollHandler=null),e.ZIndexUtils.clear(r)},updated(e,t){let o=g(e);if(o.$_ptooltipModifiers=_(t),t.value)if("string"==typeof t.value)o.$_ptooltipValue=t.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!1,o.$_ptooltipClass=null;else if("object"==typeof t.value&&t.value){if(void 0===t.value.value||null===t.value.value||""===t.value.value.trim())return;o.$_ptooltipValue=t.value.value,o.$_ptooltipDisabled=t.value.disabled||!1,o.$_ptooltipEscape=t.value.escape||!1,o.$_ptooltipClass=t.value.class,o.$_ptooltipFitContent=t.value.fitContent||!0}}};module.exports=H;
1
+ "use strict";var e=require("primevue/utils");function t(e){p(e.currentTarget)}function l(e){r(e.currentTarget)}function o(e){p(e.currentTarget)}function n(e){r(e.currentTarget)}function i(e){r(e.currentTarget)}function p(t){if(t.$_ptooltipDisabled)return;let l=function(t){const l=e.UniqueComponentId()+"_tooltip";t.$_ptooltipId=l;let o=document.createElement("div");o.id=l;let n=document.createElement("div");n.className="p-tooltip-arrow",o.appendChild(n);let i=document.createElement("div");i.className="p-tooltip-text",t.$_ptooltipEscape?i.innerHTML=t.$_ptooltipValue:(i.innerHTML="",i.appendChild(document.createTextNode(t.$_ptooltipValue)));o.appendChild(i),document.body.appendChild(o),o.style.display="inline-block",t.$_ptooltipFitContent&&(o.style.width="fit-content");return o}(t);!function(e){const t=e.$_ptooltipModifiers;t.top?(f(e),$(e)&&(v(e),$(e)&&f(e))):t.left?(c(e),$(e)&&(s(e),$(e)&&(f(e),$(e)&&(v(e),$(e)&&c(e))))):t.bottom?(v(e),$(e)&&(f(e),$(e)&&v(e))):(s(e),$(e)&&(c(e),$(e)&&(f(e),$(e)&&(v(e),$(e)&&s(e)))))}(t),e.DomHandler.fadeIn(l,250),window.addEventListener("resize",(function l(){e.DomHandler.isTouchDevice()||r(t),this.removeEventListener("resize",l)})),function(t){t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new e.ConnectedOverlayScrollHandler(t,(function(){r(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()}(t),e.ZIndexUtils.set("tooltip",l,t.$_ptooltipZIndex)}function r(e){u(e),function(e){e.$_ptooltipScrollHandler&&e.$_ptooltipScrollHandler.unbindScrollListener()}(e)}function a(e){return document.getElementById(e.$_ptooltipId)}function u(t){if(t){let l=a(t);l&&l.parentElement&&(e.ZIndexUtils.clear(l),document.body.removeChild(l)),t.$_ptooltipId=null}}function d(t){let l=t.getBoundingClientRect();return{left:l.left+e.DomHandler.getWindowScrollLeft(),top:l.top+e.DomHandler.getWindowScrollTop()}}function s(t){m(t,"right");let l=a(t),o=d(t),n=o.left+e.DomHandler.getOuterWidth(t),i=o.top+(e.DomHandler.getOuterHeight(t)-e.DomHandler.getOuterHeight(l))/2;l.style.left=n+"px",l.style.top=i+"px"}function c(t){m(t,"left");let l=a(t),o=d(t),n=o.left-e.DomHandler.getOuterWidth(l),i=o.top+(e.DomHandler.getOuterHeight(t)-e.DomHandler.getOuterHeight(l))/2;l.style.left=n+"px",l.style.top=i+"px"}function f(t){m(t,"top");let l=a(t),o=d(t),n=o.left+(e.DomHandler.getOuterWidth(t)-e.DomHandler.getOuterWidth(l))/2,i=o.top-e.DomHandler.getOuterHeight(l);l.style.left=n+"px",l.style.top=i+"px"}function v(t){m(t,"bottom");let l=a(t),o=d(t),n=o.left+(e.DomHandler.getOuterWidth(t)-e.DomHandler.getOuterWidth(l))/2,i=o.top+e.DomHandler.getOuterHeight(t);l.style.left=n+"px",l.style.top=i+"px"}function m(e,t){let l=a(e);l.style.left="-999px",l.style.top="-999px",l.className=`p-tooltip p-component p-tooltip-${t} ${e.$_ptooltipClass||""}`}function $(t){let l=a(t),o=l.getBoundingClientRect(),n=o.top,i=o.left,p=e.DomHandler.getOuterWidth(l),r=e.DomHandler.getOuterHeight(l),u=e.DomHandler.getViewport();return i+p>u.width||i<0||n<0||n+r>u.height}function g(t){return e.DomHandler.hasClass(t,"p-inputwrapper")?e.DomHandler.findSingle(t,"input"):t}function _(e){return e.modifiers&&Object.keys(e.modifiers).length?e.modifiers:e.arg&&"object"==typeof e.arg?Object.entries(e.arg).reduce(((e,[t,l])=>("event"!==t&&"position"!==t||(e[l]=!0),e)),{}):{}}const H={beforeMount(e,p){let r=g(e);if(r.$_ptooltipModifiers=_(p),p.value){if("string"==typeof p.value)r.$_ptooltipValue=p.value,r.$_ptooltipDisabled=!1,r.$_ptooltipEscape=!1,r.$_ptooltipClass=null,r.$_ptooltipFitContent=!0;else if("object"==typeof p.value&&p.value){if(void 0===p.value.value||null===p.value.value||""===p.value.value.trim())return;r.$_ptooltipValue=p.value.value,r.$_ptooltipDisabled=!!p.value.disabled===p.value.disabled&&p.value.disabled,r.$_ptooltipEscape=!!p.value.escape===p.value.escape&&p.value.escape,r.$_ptooltipClass=p.value.class,r.$_ptooltipFitContent=!!p.value.fitContent!==p.value.fitContent||p.value.fitContent}r.$_ptooltipZIndex=p.instance.$primevue&&p.instance.$primevue.config&&p.instance.$primevue.config.zIndex.tooltip,function(e){e.$_ptooltipModifiers.focus?(e.addEventListener("focus",o),e.addEventListener("blur",n)):(e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",l),e.addEventListener("click",i))}(r)}},unmounted(p){let r=g(p);u(r),function(e){e.$_ptooltipModifiers.focus?(e.removeEventListener("focus",o),e.removeEventListener("blur",n)):(e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",l),e.removeEventListener("click",i))}(r),r.$_ptooltipScrollHandler&&(r.$_ptooltipScrollHandler.destroy(),r.$_ptooltipScrollHandler=null),e.ZIndexUtils.clear(p)},updated(e,t){let l=g(e);if(l.$_ptooltipModifiers=_(t),t.value)if("string"==typeof t.value)l.$_ptooltipValue=t.value,l.$_ptooltipDisabled=!1,l.$_ptooltipEscape=!1,l.$_ptooltipClass=null;else if("object"==typeof t.value&&t.value){if(void 0===t.value.value||null===t.value.value||""===t.value.value.trim())return;l.$_ptooltipValue=t.value.value,l.$_ptooltipDisabled=!!t.value.disabled===t.value.disabled&&t.value.disabled,l.$_ptooltipEscape=!!t.value.escape===t.value.escape&&t.value.escape,l.$_ptooltipClass=t.value.class,l.$_ptooltipFitContent=!!t.value.fitContent!==t.value.fitContent||t.value.fitContent}}};module.exports=H;
@@ -1,4 +1,4 @@
1
- import { DomHandler, ZIndexUtils, UniqueComponentId, ConnectedOverlayScrollHandler } from 'primevue/utils';
1
+ import { ZIndexUtils, DomHandler, UniqueComponentId, ConnectedOverlayScrollHandler } from 'primevue/utils';
2
2
 
3
3
  function bindEvents(el) {
4
4
  const modifiers = el.$_ptooltipModifiers;
@@ -302,11 +302,12 @@ const Tooltip = {
302
302
  else if (typeof options.value === 'object' && options.value) {
303
303
  if (options.value.value === undefined || options.value.value === null || options.value.value.trim() === '') return;
304
304
  else {
305
+ /* eslint-disable */
305
306
  target.$_ptooltipValue = options.value.value;
306
- target.$_ptooltipDisabled = options.value.disabled || false;
307
- target.$_ptooltipEscape = options.value.escape || false;
307
+ target.$_ptooltipDisabled = !!options.value.disabled === options.value.disabled ? options.value.disabled : false;
308
+ target.$_ptooltipEscape = !!options.value.escape === options.value.escape ? options.value.escape : false;
308
309
  target.$_ptooltipClass = options.value.class;
309
- target.$_ptooltipFitContent = options.value.fitContent || true;
310
+ target.$_ptooltipFitContent = !!options.value.fitContent === options.value.fitContent ? options.value.fitContent : true;
310
311
  }
311
312
  }
312
313
 
@@ -339,11 +340,12 @@ const Tooltip = {
339
340
  else if (typeof options.value === 'object' && options.value) {
340
341
  if (options.value.value === undefined || options.value.value === null || options.value.value.trim() === '') return;
341
342
  else {
343
+ /* eslint-disable */
342
344
  target.$_ptooltipValue = options.value.value;
343
- target.$_ptooltipDisabled = options.value.disabled || false;
344
- target.$_ptooltipEscape = options.value.escape || false;
345
+ target.$_ptooltipDisabled = !!options.value.disabled === options.value.disabled ? options.value.disabled : false;
346
+ target.$_ptooltipEscape = !!options.value.escape === options.value.escape ? options.value.escape : false;
345
347
  target.$_ptooltipClass = options.value.class;
346
- target.$_ptooltipFitContent = options.value.fitContent || true;
348
+ target.$_ptooltipFitContent = !!options.value.fitContent === options.value.fitContent ? options.value.fitContent : true;
347
349
  }
348
350
  }
349
351
  }
@@ -1 +1 @@
1
- import{DomHandler as t,ZIndexUtils as e,UniqueComponentId as o,ConnectedOverlayScrollHandler as l}from"primevue/utils";function i(t){a(t.currentTarget)}function n(t){s(t.currentTarget)}function p(t){a(t.currentTarget)}function r(t){s(t.currentTarget)}function u(t){s(t.currentTarget)}function a(i){if(i.$_ptooltipDisabled)return;let n=function(t){const e=o()+"_tooltip";t.$_ptooltipId=e;let l=document.createElement("div");l.id=e;let i=document.createElement("div");i.className="p-tooltip-arrow",l.appendChild(i);let n=document.createElement("div");n.className="p-tooltip-text",t.$_ptooltipEscape?n.innerHTML=t.$_ptooltipValue:(n.innerHTML="",n.appendChild(document.createTextNode(t.$_ptooltipValue)));l.appendChild(n),document.body.appendChild(l),l.style.display="inline-block",t.$_ptooltipFitContent&&(l.style.width="fit-content");return l}(i);!function(t){const e=t.$_ptooltipModifiers;e.top?(g(t),h(t)&&(_(t),h(t)&&g(t))):e.left?($(t),h(t)&&(v(t),h(t)&&(g(t),h(t)&&(_(t),h(t)&&$(t))))):e.bottom?(_(t),h(t)&&(g(t),h(t)&&_(t))):(v(t),h(t)&&($(t),h(t)&&(g(t),h(t)&&(_(t),h(t)&&v(t)))))}(i),t.fadeIn(n,250),window.addEventListener("resize",(function e(){t.isTouchDevice()||s(i),this.removeEventListener("resize",e)})),function(t){t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new l(t,(function(){s(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()}(i),e.set("tooltip",n,i.$_ptooltipZIndex)}function s(t){d(t),function(t){t.$_ptooltipScrollHandler&&t.$_ptooltipScrollHandler.unbindScrollListener()}(t)}function c(t){return document.getElementById(t.$_ptooltipId)}function d(t){if(t){let o=c(t);o&&o.parentElement&&(e.clear(o),document.body.removeChild(o)),t.$_ptooltipId=null}}function f(e){let o=e.getBoundingClientRect();return{left:o.left+t.getWindowScrollLeft(),top:o.top+t.getWindowScrollTop()}}function v(e){m(e,"right");let o=c(e),l=f(e),i=l.left+t.getOuterWidth(e),n=l.top+(t.getOuterHeight(e)-t.getOuterHeight(o))/2;o.style.left=i+"px",o.style.top=n+"px"}function $(e){m(e,"left");let o=c(e),l=f(e),i=l.left-t.getOuterWidth(o),n=l.top+(t.getOuterHeight(e)-t.getOuterHeight(o))/2;o.style.left=i+"px",o.style.top=n+"px"}function g(e){m(e,"top");let o=c(e),l=f(e),i=l.left+(t.getOuterWidth(e)-t.getOuterWidth(o))/2,n=l.top-t.getOuterHeight(o);o.style.left=i+"px",o.style.top=n+"px"}function _(e){m(e,"bottom");let o=c(e),l=f(e),i=l.left+(t.getOuterWidth(e)-t.getOuterWidth(o))/2,n=l.top+t.getOuterHeight(e);o.style.left=i+"px",o.style.top=n+"px"}function m(t,e){let o=c(t);o.style.left="-999px",o.style.top="-999px",o.className=`p-tooltip p-component p-tooltip-${e} ${t.$_ptooltipClass||""}`}function h(e){let o=c(e),l=o.getBoundingClientRect(),i=l.top,n=l.left,p=t.getOuterWidth(o),r=t.getOuterHeight(o),u=t.getViewport();return n+p>u.width||n<0||i<0||i+r>u.height}function y(e){return t.hasClass(e,"p-inputwrapper")?t.findSingle(e,"input"):e}function b(t){return t.modifiers&&Object.keys(t.modifiers).length?t.modifiers:t.arg&&"object"==typeof t.arg?Object.entries(t.arg).reduce(((t,[e,o])=>("event"!==e&&"position"!==e||(t[o]=!0),t)),{}):{}}const E={beforeMount(t,e){let o=y(t);if(o.$_ptooltipModifiers=b(e),e.value){if("string"==typeof e.value)o.$_ptooltipValue=e.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!1,o.$_ptooltipClass=null,o.$_ptooltipFitContent=!0;else if("object"==typeof e.value&&e.value){if(void 0===e.value.value||null===e.value.value||""===e.value.value.trim())return;o.$_ptooltipValue=e.value.value,o.$_ptooltipDisabled=e.value.disabled||!1,o.$_ptooltipEscape=e.value.escape||!1,o.$_ptooltipClass=e.value.class,o.$_ptooltipFitContent=e.value.fitContent||!0}o.$_ptooltipZIndex=e.instance.$primevue&&e.instance.$primevue.config&&e.instance.$primevue.config.zIndex.tooltip,function(t){t.$_ptooltipModifiers.focus?(t.addEventListener("focus",p),t.addEventListener("blur",r)):(t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",n),t.addEventListener("click",u))}(o)}},unmounted(t){let o=y(t);d(o),function(t){t.$_ptooltipModifiers.focus?(t.removeEventListener("focus",p),t.removeEventListener("blur",r)):(t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",n),t.removeEventListener("click",u))}(o),o.$_ptooltipScrollHandler&&(o.$_ptooltipScrollHandler.destroy(),o.$_ptooltipScrollHandler=null),e.clear(t)},updated(t,e){let o=y(t);if(o.$_ptooltipModifiers=b(e),e.value)if("string"==typeof e.value)o.$_ptooltipValue=e.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!1,o.$_ptooltipClass=null;else if("object"==typeof e.value&&e.value){if(void 0===e.value.value||null===e.value.value||""===e.value.value.trim())return;o.$_ptooltipValue=e.value.value,o.$_ptooltipDisabled=e.value.disabled||!1,o.$_ptooltipEscape=e.value.escape||!1,o.$_ptooltipClass=e.value.class,o.$_ptooltipFitContent=e.value.fitContent||!0}}};export{E as default};
1
+ import{ZIndexUtils as t,DomHandler as e,UniqueComponentId as l,ConnectedOverlayScrollHandler as o}from"primevue/utils";function i(t){a(t.currentTarget)}function n(t){s(t.currentTarget)}function p(t){a(t.currentTarget)}function u(t){s(t.currentTarget)}function r(t){s(t.currentTarget)}function a(i){if(i.$_ptooltipDisabled)return;let n=function(t){const e=l()+"_tooltip";t.$_ptooltipId=e;let o=document.createElement("div");o.id=e;let i=document.createElement("div");i.className="p-tooltip-arrow",o.appendChild(i);let n=document.createElement("div");n.className="p-tooltip-text",t.$_ptooltipEscape?n.innerHTML=t.$_ptooltipValue:(n.innerHTML="",n.appendChild(document.createTextNode(t.$_ptooltipValue)));o.appendChild(n),document.body.appendChild(o),o.style.display="inline-block",t.$_ptooltipFitContent&&(o.style.width="fit-content");return o}(i);!function(t){const e=t.$_ptooltipModifiers;e.top?(g(t),h(t)&&(_(t),h(t)&&g(t))):e.left?($(t),h(t)&&(v(t),h(t)&&(g(t),h(t)&&(_(t),h(t)&&$(t))))):e.bottom?(_(t),h(t)&&(g(t),h(t)&&_(t))):(v(t),h(t)&&($(t),h(t)&&(g(t),h(t)&&(_(t),h(t)&&v(t)))))}(i),e.fadeIn(n,250),window.addEventListener("resize",(function t(){e.isTouchDevice()||s(i),this.removeEventListener("resize",t)})),function(t){t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new o(t,(function(){s(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()}(i),t.set("tooltip",n,i.$_ptooltipZIndex)}function s(t){c(t),function(t){t.$_ptooltipScrollHandler&&t.$_ptooltipScrollHandler.unbindScrollListener()}(t)}function d(t){return document.getElementById(t.$_ptooltipId)}function c(e){if(e){let l=d(e);l&&l.parentElement&&(t.clear(l),document.body.removeChild(l)),e.$_ptooltipId=null}}function f(t){let l=t.getBoundingClientRect();return{left:l.left+e.getWindowScrollLeft(),top:l.top+e.getWindowScrollTop()}}function v(t){m(t,"right");let l=d(t),o=f(t),i=o.left+e.getOuterWidth(t),n=o.top+(e.getOuterHeight(t)-e.getOuterHeight(l))/2;l.style.left=i+"px",l.style.top=n+"px"}function $(t){m(t,"left");let l=d(t),o=f(t),i=o.left-e.getOuterWidth(l),n=o.top+(e.getOuterHeight(t)-e.getOuterHeight(l))/2;l.style.left=i+"px",l.style.top=n+"px"}function g(t){m(t,"top");let l=d(t),o=f(t),i=o.left+(e.getOuterWidth(t)-e.getOuterWidth(l))/2,n=o.top-e.getOuterHeight(l);l.style.left=i+"px",l.style.top=n+"px"}function _(t){m(t,"bottom");let l=d(t),o=f(t),i=o.left+(e.getOuterWidth(t)-e.getOuterWidth(l))/2,n=o.top+e.getOuterHeight(t);l.style.left=i+"px",l.style.top=n+"px"}function m(t,e){let l=d(t);l.style.left="-999px",l.style.top="-999px",l.className=`p-tooltip p-component p-tooltip-${e} ${t.$_ptooltipClass||""}`}function h(t){let l=d(t),o=l.getBoundingClientRect(),i=o.top,n=o.left,p=e.getOuterWidth(l),u=e.getOuterHeight(l),r=e.getViewport();return n+p>r.width||n<0||i<0||i+u>r.height}function b(t){return e.hasClass(t,"p-inputwrapper")?e.findSingle(t,"input"):t}function y(t){return t.modifiers&&Object.keys(t.modifiers).length?t.modifiers:t.arg&&"object"==typeof t.arg?Object.entries(t.arg).reduce(((t,[e,l])=>("event"!==e&&"position"!==e||(t[l]=!0),t)),{}):{}}const C={beforeMount(t,e){let l=b(t);if(l.$_ptooltipModifiers=y(e),e.value){if("string"==typeof e.value)l.$_ptooltipValue=e.value,l.$_ptooltipDisabled=!1,l.$_ptooltipEscape=!1,l.$_ptooltipClass=null,l.$_ptooltipFitContent=!0;else if("object"==typeof e.value&&e.value){if(void 0===e.value.value||null===e.value.value||""===e.value.value.trim())return;l.$_ptooltipValue=e.value.value,l.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled&&e.value.disabled,l.$_ptooltipEscape=!!e.value.escape===e.value.escape&&e.value.escape,l.$_ptooltipClass=e.value.class,l.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent}l.$_ptooltipZIndex=e.instance.$primevue&&e.instance.$primevue.config&&e.instance.$primevue.config.zIndex.tooltip,function(t){t.$_ptooltipModifiers.focus?(t.addEventListener("focus",p),t.addEventListener("blur",u)):(t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",n),t.addEventListener("click",r))}(l)}},unmounted(e){let l=b(e);c(l),function(t){t.$_ptooltipModifiers.focus?(t.removeEventListener("focus",p),t.removeEventListener("blur",u)):(t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",n),t.removeEventListener("click",r))}(l),l.$_ptooltipScrollHandler&&(l.$_ptooltipScrollHandler.destroy(),l.$_ptooltipScrollHandler=null),t.clear(e)},updated(t,e){let l=b(t);if(l.$_ptooltipModifiers=y(e),e.value)if("string"==typeof e.value)l.$_ptooltipValue=e.value,l.$_ptooltipDisabled=!1,l.$_ptooltipEscape=!1,l.$_ptooltipClass=null;else if("object"==typeof e.value&&e.value){if(void 0===e.value.value||null===e.value.value||""===e.value.value.trim())return;l.$_ptooltipValue=e.value.value,l.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled&&e.value.disabled,l.$_ptooltipEscape=!!e.value.escape===e.value.escape&&e.value.escape,l.$_ptooltipClass=e.value.class,l.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent}}};export{C as default};
@@ -304,11 +304,12 @@ this.primevue.tooltip = (function (utils) {
304
304
  else if (typeof options.value === 'object' && options.value) {
305
305
  if (options.value.value === undefined || options.value.value === null || options.value.value.trim() === '') return;
306
306
  else {
307
+ /* eslint-disable */
307
308
  target.$_ptooltipValue = options.value.value;
308
- target.$_ptooltipDisabled = options.value.disabled || false;
309
- target.$_ptooltipEscape = options.value.escape || false;
309
+ target.$_ptooltipDisabled = !!options.value.disabled === options.value.disabled ? options.value.disabled : false;
310
+ target.$_ptooltipEscape = !!options.value.escape === options.value.escape ? options.value.escape : false;
310
311
  target.$_ptooltipClass = options.value.class;
311
- target.$_ptooltipFitContent = options.value.fitContent || true;
312
+ target.$_ptooltipFitContent = !!options.value.fitContent === options.value.fitContent ? options.value.fitContent : true;
312
313
  }
313
314
  }
314
315
 
@@ -341,11 +342,12 @@ this.primevue.tooltip = (function (utils) {
341
342
  else if (typeof options.value === 'object' && options.value) {
342
343
  if (options.value.value === undefined || options.value.value === null || options.value.value.trim() === '') return;
343
344
  else {
345
+ /* eslint-disable */
344
346
  target.$_ptooltipValue = options.value.value;
345
- target.$_ptooltipDisabled = options.value.disabled || false;
346
- target.$_ptooltipEscape = options.value.escape || false;
347
+ target.$_ptooltipDisabled = !!options.value.disabled === options.value.disabled ? options.value.disabled : false;
348
+ target.$_ptooltipEscape = !!options.value.escape === options.value.escape ? options.value.escape : false;
347
349
  target.$_ptooltipClass = options.value.class;
348
- target.$_ptooltipFitContent = options.value.fitContent || true;
350
+ target.$_ptooltipFitContent = !!options.value.fitContent === options.value.fitContent ? options.value.fitContent : true;
349
351
  }
350
352
  }
351
353
  }
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.tooltip=function(e){"use strict";function t(e){p(e.currentTarget)}function o(e){r(e.currentTarget)}function l(e){p(e.currentTarget)}function n(e){r(e.currentTarget)}function i(e){r(e.currentTarget)}function p(t){if(t.$_ptooltipDisabled)return;let o=function(t){const o=e.UniqueComponentId()+"_tooltip";t.$_ptooltipId=o;let l=document.createElement("div");l.id=o;let n=document.createElement("div");n.className="p-tooltip-arrow",l.appendChild(n);let i=document.createElement("div");i.className="p-tooltip-text",t.$_ptooltipEscape?i.innerHTML=t.$_ptooltipValue:(i.innerHTML="",i.appendChild(document.createTextNode(t.$_ptooltipValue)));l.appendChild(i),document.body.appendChild(l),l.style.display="inline-block",t.$_ptooltipFitContent&&(l.style.width="fit-content");return l}(t);!function(e){const t=e.$_ptooltipModifiers;t.top?(f(e),$(e)&&(v(e),$(e)&&f(e))):t.left?(c(e),$(e)&&(s(e),$(e)&&(f(e),$(e)&&(v(e),$(e)&&c(e))))):t.bottom?(v(e),$(e)&&(f(e),$(e)&&v(e))):(s(e),$(e)&&(c(e),$(e)&&(f(e),$(e)&&(v(e),$(e)&&s(e)))))}(t),e.DomHandler.fadeIn(o,250),window.addEventListener("resize",(function o(){e.DomHandler.isTouchDevice()||r(t),this.removeEventListener("resize",o)})),function(t){t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new e.ConnectedOverlayScrollHandler(t,(function(){r(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()}(t),e.ZIndexUtils.set("tooltip",o,t.$_ptooltipZIndex)}function r(e){a(e),function(e){e.$_ptooltipScrollHandler&&e.$_ptooltipScrollHandler.unbindScrollListener()}(e)}function u(e){return document.getElementById(e.$_ptooltipId)}function a(t){if(t){let o=u(t);o&&o.parentElement&&(e.ZIndexUtils.clear(o),document.body.removeChild(o)),t.$_ptooltipId=null}}function d(t){let o=t.getBoundingClientRect();return{left:o.left+e.DomHandler.getWindowScrollLeft(),top:o.top+e.DomHandler.getWindowScrollTop()}}function s(t){m(t,"right");let o=u(t),l=d(t),n=l.left+e.DomHandler.getOuterWidth(t),i=l.top+(e.DomHandler.getOuterHeight(t)-e.DomHandler.getOuterHeight(o))/2;o.style.left=n+"px",o.style.top=i+"px"}function c(t){m(t,"left");let o=u(t),l=d(t),n=l.left-e.DomHandler.getOuterWidth(o),i=l.top+(e.DomHandler.getOuterHeight(t)-e.DomHandler.getOuterHeight(o))/2;o.style.left=n+"px",o.style.top=i+"px"}function f(t){m(t,"top");let o=u(t),l=d(t),n=l.left+(e.DomHandler.getOuterWidth(t)-e.DomHandler.getOuterWidth(o))/2,i=l.top-e.DomHandler.getOuterHeight(o);o.style.left=n+"px",o.style.top=i+"px"}function v(t){m(t,"bottom");let o=u(t),l=d(t),n=l.left+(e.DomHandler.getOuterWidth(t)-e.DomHandler.getOuterWidth(o))/2,i=l.top+e.DomHandler.getOuterHeight(t);o.style.left=n+"px",o.style.top=i+"px"}function m(e,t){let o=u(e);o.style.left="-999px",o.style.top="-999px",o.className=`p-tooltip p-component p-tooltip-${t} ${e.$_ptooltipClass||""}`}function $(t){let o=u(t),l=o.getBoundingClientRect(),n=l.top,i=l.left,p=e.DomHandler.getOuterWidth(o),r=e.DomHandler.getOuterHeight(o),a=e.DomHandler.getViewport();return i+p>a.width||i<0||n<0||n+r>a.height}function g(t){return e.DomHandler.hasClass(t,"p-inputwrapper")?e.DomHandler.findSingle(t,"input"):t}function _(e){return e.modifiers&&Object.keys(e.modifiers).length?e.modifiers:e.arg&&"object"==typeof e.arg?Object.entries(e.arg).reduce(((e,[t,o])=>("event"!==t&&"position"!==t||(e[o]=!0),e)),{}):{}}return{beforeMount(e,p){let r=g(e);if(r.$_ptooltipModifiers=_(p),p.value){if("string"==typeof p.value)r.$_ptooltipValue=p.value,r.$_ptooltipDisabled=!1,r.$_ptooltipEscape=!1,r.$_ptooltipClass=null,r.$_ptooltipFitContent=!0;else if("object"==typeof p.value&&p.value){if(void 0===p.value.value||null===p.value.value||""===p.value.value.trim())return;r.$_ptooltipValue=p.value.value,r.$_ptooltipDisabled=p.value.disabled||!1,r.$_ptooltipEscape=p.value.escape||!1,r.$_ptooltipClass=p.value.class,r.$_ptooltipFitContent=p.value.fitContent||!0}r.$_ptooltipZIndex=p.instance.$primevue&&p.instance.$primevue.config&&p.instance.$primevue.config.zIndex.tooltip,function(e){e.$_ptooltipModifiers.focus?(e.addEventListener("focus",l),e.addEventListener("blur",n)):(e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",o),e.addEventListener("click",i))}(r)}},unmounted(p){let r=g(p);a(r),function(e){e.$_ptooltipModifiers.focus?(e.removeEventListener("focus",l),e.removeEventListener("blur",n)):(e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",o),e.removeEventListener("click",i))}(r),r.$_ptooltipScrollHandler&&(r.$_ptooltipScrollHandler.destroy(),r.$_ptooltipScrollHandler=null),e.ZIndexUtils.clear(p)},updated(e,t){let o=g(e);if(o.$_ptooltipModifiers=_(t),t.value)if("string"==typeof t.value)o.$_ptooltipValue=t.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!1,o.$_ptooltipClass=null;else if("object"==typeof t.value&&t.value){if(void 0===t.value.value||null===t.value.value||""===t.value.value.trim())return;o.$_ptooltipValue=t.value.value,o.$_ptooltipDisabled=t.value.disabled||!1,o.$_ptooltipEscape=t.value.escape||!1,o.$_ptooltipClass=t.value.class,o.$_ptooltipFitContent=t.value.fitContent||!0}}}}(primevue.utils);
1
+ this.primevue=this.primevue||{},this.primevue.tooltip=function(e){"use strict";function t(e){p(e.currentTarget)}function l(e){r(e.currentTarget)}function o(e){p(e.currentTarget)}function n(e){r(e.currentTarget)}function i(e){r(e.currentTarget)}function p(t){if(t.$_ptooltipDisabled)return;let l=function(t){const l=e.UniqueComponentId()+"_tooltip";t.$_ptooltipId=l;let o=document.createElement("div");o.id=l;let n=document.createElement("div");n.className="p-tooltip-arrow",o.appendChild(n);let i=document.createElement("div");i.className="p-tooltip-text",t.$_ptooltipEscape?i.innerHTML=t.$_ptooltipValue:(i.innerHTML="",i.appendChild(document.createTextNode(t.$_ptooltipValue)));o.appendChild(i),document.body.appendChild(o),o.style.display="inline-block",t.$_ptooltipFitContent&&(o.style.width="fit-content");return o}(t);!function(e){const t=e.$_ptooltipModifiers;t.top?(v(e),$(e)&&(f(e),$(e)&&v(e))):t.left?(c(e),$(e)&&(s(e),$(e)&&(v(e),$(e)&&(f(e),$(e)&&c(e))))):t.bottom?(f(e),$(e)&&(v(e),$(e)&&f(e))):(s(e),$(e)&&(c(e),$(e)&&(v(e),$(e)&&(f(e),$(e)&&s(e)))))}(t),e.DomHandler.fadeIn(l,250),window.addEventListener("resize",(function l(){e.DomHandler.isTouchDevice()||r(t),this.removeEventListener("resize",l)})),function(t){t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new e.ConnectedOverlayScrollHandler(t,(function(){r(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()}(t),e.ZIndexUtils.set("tooltip",l,t.$_ptooltipZIndex)}function r(e){u(e),function(e){e.$_ptooltipScrollHandler&&e.$_ptooltipScrollHandler.unbindScrollListener()}(e)}function a(e){return document.getElementById(e.$_ptooltipId)}function u(t){if(t){let l=a(t);l&&l.parentElement&&(e.ZIndexUtils.clear(l),document.body.removeChild(l)),t.$_ptooltipId=null}}function d(t){let l=t.getBoundingClientRect();return{left:l.left+e.DomHandler.getWindowScrollLeft(),top:l.top+e.DomHandler.getWindowScrollTop()}}function s(t){m(t,"right");let l=a(t),o=d(t),n=o.left+e.DomHandler.getOuterWidth(t),i=o.top+(e.DomHandler.getOuterHeight(t)-e.DomHandler.getOuterHeight(l))/2;l.style.left=n+"px",l.style.top=i+"px"}function c(t){m(t,"left");let l=a(t),o=d(t),n=o.left-e.DomHandler.getOuterWidth(l),i=o.top+(e.DomHandler.getOuterHeight(t)-e.DomHandler.getOuterHeight(l))/2;l.style.left=n+"px",l.style.top=i+"px"}function v(t){m(t,"top");let l=a(t),o=d(t),n=o.left+(e.DomHandler.getOuterWidth(t)-e.DomHandler.getOuterWidth(l))/2,i=o.top-e.DomHandler.getOuterHeight(l);l.style.left=n+"px",l.style.top=i+"px"}function f(t){m(t,"bottom");let l=a(t),o=d(t),n=o.left+(e.DomHandler.getOuterWidth(t)-e.DomHandler.getOuterWidth(l))/2,i=o.top+e.DomHandler.getOuterHeight(t);l.style.left=n+"px",l.style.top=i+"px"}function m(e,t){let l=a(e);l.style.left="-999px",l.style.top="-999px",l.className=`p-tooltip p-component p-tooltip-${t} ${e.$_ptooltipClass||""}`}function $(t){let l=a(t),o=l.getBoundingClientRect(),n=o.top,i=o.left,p=e.DomHandler.getOuterWidth(l),r=e.DomHandler.getOuterHeight(l),u=e.DomHandler.getViewport();return i+p>u.width||i<0||n<0||n+r>u.height}function g(t){return e.DomHandler.hasClass(t,"p-inputwrapper")?e.DomHandler.findSingle(t,"input"):t}function _(e){return e.modifiers&&Object.keys(e.modifiers).length?e.modifiers:e.arg&&"object"==typeof e.arg?Object.entries(e.arg).reduce(((e,[t,l])=>("event"!==t&&"position"!==t||(e[l]=!0),e)),{}):{}}return{beforeMount(e,p){let r=g(e);if(r.$_ptooltipModifiers=_(p),p.value){if("string"==typeof p.value)r.$_ptooltipValue=p.value,r.$_ptooltipDisabled=!1,r.$_ptooltipEscape=!1,r.$_ptooltipClass=null,r.$_ptooltipFitContent=!0;else if("object"==typeof p.value&&p.value){if(void 0===p.value.value||null===p.value.value||""===p.value.value.trim())return;r.$_ptooltipValue=p.value.value,r.$_ptooltipDisabled=!!p.value.disabled===p.value.disabled&&p.value.disabled,r.$_ptooltipEscape=!!p.value.escape===p.value.escape&&p.value.escape,r.$_ptooltipClass=p.value.class,r.$_ptooltipFitContent=!!p.value.fitContent!==p.value.fitContent||p.value.fitContent}r.$_ptooltipZIndex=p.instance.$primevue&&p.instance.$primevue.config&&p.instance.$primevue.config.zIndex.tooltip,function(e){e.$_ptooltipModifiers.focus?(e.addEventListener("focus",o),e.addEventListener("blur",n)):(e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",l),e.addEventListener("click",i))}(r)}},unmounted(p){let r=g(p);u(r),function(e){e.$_ptooltipModifiers.focus?(e.removeEventListener("focus",o),e.removeEventListener("blur",n)):(e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",l),e.removeEventListener("click",i))}(r),r.$_ptooltipScrollHandler&&(r.$_ptooltipScrollHandler.destroy(),r.$_ptooltipScrollHandler=null),e.ZIndexUtils.clear(p)},updated(e,t){let l=g(e);if(l.$_ptooltipModifiers=_(t),t.value)if("string"==typeof t.value)l.$_ptooltipValue=t.value,l.$_ptooltipDisabled=!1,l.$_ptooltipEscape=!1,l.$_ptooltipClass=null;else if("object"==typeof t.value&&t.value){if(void 0===t.value.value||null===t.value.value||""===t.value.value.trim())return;l.$_ptooltipValue=t.value.value,l.$_ptooltipDisabled=!!t.value.disabled===t.value.disabled&&t.value.disabled,l.$_ptooltipEscape=!!t.value.escape===t.value.escape&&t.value.escape,l.$_ptooltipClass=t.value.class,l.$_ptooltipFitContent=!!t.value.fitContent!==t.value.fitContent||t.value.fitContent}}}}(primevue.utils);
@@ -841,6 +841,25 @@ var ObjectUtils = {
841
841
 
842
842
  isPrintableCharacter(char = '') {
843
843
  return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
844
+ },
845
+
846
+ /**
847
+ * Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
848
+ * https://caniuse.com/mdn-javascript_builtins_array_findlastindex
849
+ */
850
+ findLastIndex(arr, callback) {
851
+ let index = -1;
852
+
853
+ if (this.isNotEmpty(arr)) {
854
+ try {
855
+ index = arr.findLastIndex(callback);
856
+ }
857
+ catch {
858
+ index = arr.lastIndexOf([...arr].reverse().find(callback));
859
+ }
860
+ }
861
+
862
+ return index;
844
863
  }
845
864
  };
846
865
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={innerWidth(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t+=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t-=parseFloat(l.paddingLeft)+parseFloat(l.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 l=e.offsetWidth;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return l}return 0},getOuterHeight(e,t){if(e){let l=e.offsetHeight;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return l}return 0},getClientHeight(e,t){if(e){let l=e.clientHeight;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return l}return 0},getViewport(){let e=window,t=document,l=t.documentElement,n=t.getElementsByTagName("body")[0];return{width:e.innerWidth||l.clientWidth||n.clientWidth,height:e.innerHeight||l.clientHeight||n.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,l=0;for(let n=0;n<t.length;n++){if(t[n]===e)return l;1===t[n].nodeType&&l++}}return-1},addMultipleClasses(e,t){if(e&&t)if(e.classList){let l=t.split(" ");for(let t=0;t<l.length;t++)e.classList.add(l[t])}else{let l=t.split(" ");for(let t=0;t<l.length;t++)e.className+=" "+l[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,l=getComputedStyle(e);return t-=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),t}return 0},getWidth(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)+parseFloat(l.borderLeftWidth)+parseFloat(l.borderRightWidth),t}return 0},absolutePosition(e,t){if(e){let l,n,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?(l=d.top+c-r,e.style.transformOrigin="bottom",l<0&&(l=c)):(l=s+d.top+c,e.style.transformOrigin="top"),n=d.left+o>h.width?Math.max(0,d.left+p+a-o):d.left+p,e.style.top=l+"px",e.style.left=n+"px"}},relativePosition(e,t){if(e){let l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const n=t.offsetHeight,i=t.getBoundingClientRect(),r=this.getViewport();let o,s;i.top+n+l.height>r.height?(o=-1*l.height,e.style.transformOrigin="bottom",i.top+o<0&&(o=-1*i.top)):(o=n,e.style.transformOrigin="top"),s=l.width>r.width?-1*i.left:i.left+l.width>r.width?-1*(i.left+l.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 l=this.getParents(e);const n=/(auto|scroll)/,i=e=>{let t=window.getComputedStyle(e,null);return n.test(t.getPropertyValue("overflow"))||n.test(t.getPropertyValue("overflowX"))||n.test(t.getPropertyValue("overflowY"))};for(let e of l){let l=1===e.nodeType&&e.dataset.scrollselectors;if(l){let n=l.split(",");for(let l of n){let n=this.findSingle(e,l);n&&i(n)&&t.push(n)}}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 l=+new Date,n=0,i=function(){n=+e.style.opacity+((new Date).getTime()-l)/t,e.style.opacity=n,l=+new Date,+n<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()}},fadeOut(e,t){if(e){let l=1,n=50,i=n/t,r=setInterval((()=>{l-=i,l<=0&&(l=0,clearInterval(r)),e.style.opacity=l}),n)}},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 l=getComputedStyle(e).getPropertyValue("borderTopWidth"),n=l?parseFloat(l):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)-n-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){}},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,l){e[t].apply(e,l)},isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),getFocusableElements(e,t=""){let l=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}`),n=[];for(let e of l)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&n.push(e);return n},getFirstFocusableElement(e,t){const l=this.getFocusableElements(e,t);return l.length>0?l[0]:null},isClickable(e){const t=e.nodeName,l=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==l||"BUTTON"==l||"A"==l||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 l in t)e.style[l]=t[l]},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 l=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(l,t+".csv");else{let n=document.createElement("a");void 0!==n.download?(n.setAttribute("href",URL.createObjectURL(l)),n.setAttribute("download",t+".csv"),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}};var t={equals(e,t,l){return l?this.resolveFieldData(e,l)===this.resolveFieldData(t,l):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var l,n,i,r=Array.isArray(e),o=Array.isArray(t);if(r&&o){if((n=e.length)!=t.length)return!1;for(l=n;0!=l--;)if(!this.deepEquals(e[l],t[l]))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((n=p.length)!==Object.keys(t).length)return!1;for(l=n;0!=l--;)if(!Object.prototype.hasOwnProperty.call(t,p[l]))return!1;for(l=n;0!=l--;)if(i=p[l],!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 l=0,n=i.length;l<n;++l){if(null==r)return null;r=r[i[l]]}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,l){var n=[];if(e)for(let i of e)for(let e of t)if(String(this.resolveFieldData(i,e)).toLowerCase().indexOf(l.toLowerCase())>-1){n.push(i);break}return n},reorderArray(e,t,l){let n;if(e&&t!==l){if(l>=e.length)for(n=l-e.length;1+n--;)e.push(void 0);e.splice(l,0,e.splice(t,1)[0])}},findIndexInList(e,t){let l=-1;if(t)for(let n=0;n<t.length;n++)if(t[n]===e){l=n;break}return l},contains(e,t){if(null!=e&&t&&t.length)for(let l of t)if(this.equals(e,l))return!0;return!1},insertIntoOrderedArray(e,t,l,n){if(l.length>0){let i=!1;for(let r=0;r<l.length;r++){if(this.findIndexInList(l[r],n)>t){l.splice(r,0,e),i=!0;break}}i||l.push(e)}else l.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 l=e.props;if(l){let n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(l,n)?n:t;return e.type.props[t].type===Boolean&&""===l[i]||l[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| /)}};var l=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,l,n)=>{l&&(l.style.zIndex=String(((t,l)=>{let n=e.length>0?e[e.length-1]:{key:t,value:l},i=n.value+(n.key===t?0:l)+1;return e.push({key:t,value:i}),i})(t,n)))},clear:l=>{var n;l&&(n=t(l),e=e.filter((e=>e.value!==n)),l.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}(),n=0;exports.ConnectedOverlayScrollHandler=class{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}},exports.DomHandler=e,exports.EventBus=function(){const e=new Map;return{on(t,l){let n=e.get(t);n?n.push(l):n=[l],e.set(t,n)},off(t,l){let n=e.get(t);n&&n.splice(n.indexOf(l)>>>0,1)},emit(t,l){let n=e.get(t);n&&n.slice().map((e=>{e(l)}))}}},exports.ObjectUtils=t,exports.UniqueComponentId=function(e="pv_id_"){return`${e}${++n}`},exports.ZIndexUtils=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});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){}},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)},isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),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},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 t={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| /)},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 n=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}}(),l=0;exports.ConnectedOverlayScrollHandler=class{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}},exports.DomHandler=e,exports.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)}))}}},exports.ObjectUtils=t,exports.UniqueComponentId=function(e="pv_id_"){return`${e}${++l}`},exports.ZIndexUtils=n;
@@ -837,6 +837,25 @@ var ObjectUtils = {
837
837
 
838
838
  isPrintableCharacter(char = '') {
839
839
  return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
840
+ },
841
+
842
+ /**
843
+ * Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
844
+ * https://caniuse.com/mdn-javascript_builtins_array_findlastindex
845
+ */
846
+ findLastIndex(arr, callback) {
847
+ let index = -1;
848
+
849
+ if (this.isNotEmpty(arr)) {
850
+ try {
851
+ index = arr.findLastIndex(callback);
852
+ }
853
+ catch {
854
+ index = arr.lastIndexOf([...arr].reverse().find(callback));
855
+ }
856
+ }
857
+
858
+ return index;
840
859
  }
841
860
  };
842
861
 
@@ -1 +1 @@
1
- var e={innerWidth(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t+=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t-=parseFloat(l.paddingLeft)+parseFloat(l.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 l=e.offsetWidth;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return l}return 0},getOuterHeight(e,t){if(e){let l=e.offsetHeight;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return l}return 0},getClientHeight(e,t){if(e){let l=e.clientHeight;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return l}return 0},getViewport(){let e=window,t=document,l=t.documentElement,n=t.getElementsByTagName("body")[0];return{width:e.innerWidth||l.clientWidth||n.clientWidth,height:e.innerHeight||l.clientHeight||n.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,l=0;for(let n=0;n<t.length;n++){if(t[n]===e)return l;1===t[n].nodeType&&l++}}return-1},addMultipleClasses(e,t){if(e&&t)if(e.classList){let l=t.split(" ");for(let t=0;t<l.length;t++)e.classList.add(l[t])}else{let l=t.split(" ");for(let t=0;t<l.length;t++)e.className+=" "+l[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,l=getComputedStyle(e);return t-=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),t}return 0},getWidth(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)+parseFloat(l.borderLeftWidth)+parseFloat(l.borderRightWidth),t}return 0},absolutePosition(e,t){if(e){let l,n,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?(l=d.top+c-r,e.style.transformOrigin="bottom",l<0&&(l=c)):(l=s+d.top+c,e.style.transformOrigin="top"),n=d.left+o>h.width?Math.max(0,d.left+p+a-o):d.left+p,e.style.top=l+"px",e.style.left=n+"px"}},relativePosition(e,t){if(e){let l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const n=t.offsetHeight,i=t.getBoundingClientRect(),r=this.getViewport();let o,s;i.top+n+l.height>r.height?(o=-1*l.height,e.style.transformOrigin="bottom",i.top+o<0&&(o=-1*i.top)):(o=n,e.style.transformOrigin="top"),s=l.width>r.width?-1*i.left:i.left+l.width>r.width?-1*(i.left+l.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 l=this.getParents(e);const n=/(auto|scroll)/,i=e=>{let t=window.getComputedStyle(e,null);return n.test(t.getPropertyValue("overflow"))||n.test(t.getPropertyValue("overflowX"))||n.test(t.getPropertyValue("overflowY"))};for(let e of l){let l=1===e.nodeType&&e.dataset.scrollselectors;if(l){let n=l.split(",");for(let l of n){let n=this.findSingle(e,l);n&&i(n)&&t.push(n)}}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 l=+new Date,n=0,i=function(){n=+e.style.opacity+((new Date).getTime()-l)/t,e.style.opacity=n,l=+new Date,+n<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()}},fadeOut(e,t){if(e){let l=1,n=50,i=n/t,r=setInterval((()=>{l-=i,l<=0&&(l=0,clearInterval(r)),e.style.opacity=l}),n)}},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 l=getComputedStyle(e).getPropertyValue("borderTopWidth"),n=l?parseFloat(l):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)-n-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){}},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,l){e[t].apply(e,l)},isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),getFocusableElements(e,t=""){let l=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}`),n=[];for(let e of l)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&n.push(e);return n},getFirstFocusableElement(e,t){const l=this.getFocusableElements(e,t);return l.length>0?l[0]:null},isClickable(e){const t=e.nodeName,l=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==l||"BUTTON"==l||"A"==l||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 l in t)e.style[l]=t[l]},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 l=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(l,t+".csv");else{let n=document.createElement("a");void 0!==n.download?(n.setAttribute("href",URL.createObjectURL(l)),n.setAttribute("download",t+".csv"),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)):(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 l={equals(e,t,l){return l?this.resolveFieldData(e,l)===this.resolveFieldData(t,l):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var l,n,i,r=Array.isArray(e),o=Array.isArray(t);if(r&&o){if((n=e.length)!=t.length)return!1;for(l=n;0!=l--;)if(!this.deepEquals(e[l],t[l]))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((n=p.length)!==Object.keys(t).length)return!1;for(l=n;0!=l--;)if(!Object.prototype.hasOwnProperty.call(t,p[l]))return!1;for(l=n;0!=l--;)if(i=p[l],!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 l=0,n=i.length;l<n;++l){if(null==r)return null;r=r[i[l]]}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,l){var n=[];if(e)for(let i of e)for(let e of t)if(String(this.resolveFieldData(i,e)).toLowerCase().indexOf(l.toLowerCase())>-1){n.push(i);break}return n},reorderArray(e,t,l){let n;if(e&&t!==l){if(l>=e.length)for(n=l-e.length;1+n--;)e.push(void 0);e.splice(l,0,e.splice(t,1)[0])}},findIndexInList(e,t){let l=-1;if(t)for(let n=0;n<t.length;n++)if(t[n]===e){l=n;break}return l},contains(e,t){if(null!=e&&t&&t.length)for(let l of t)if(this.equals(e,l))return!0;return!1},insertIntoOrderedArray(e,t,l,n){if(l.length>0){let i=!1;for(let r=0;r<l.length;r++){if(this.findIndexInList(l[r],n)>t){l.splice(r,0,e),i=!0;break}}i||l.push(e)}else l.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 l=e.props;if(l){let n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(l,n)?n:t;return e.type.props[t].type===Boolean&&""===l[i]||l[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| /)}};var n=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,l,n)=>{l&&(l.style.zIndex=String(((t,l)=>{let n=e.length>0?e[e.length-1]:{key:t,value:l},i=n.value+(n.key===t?0:l)+1;return e.push({key:t,value:i}),i})(t,n)))},clear:l=>{var n;l&&(n=t(l),e=e.filter((e=>e.value!==n)),l.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,l){let n=e.get(t);n?n.push(l):n=[l],e.set(t,n)},off(t,l){let n=e.get(t);n&&n.splice(n.indexOf(l)>>>0,1)},emit(t,l){let n=e.get(t);n&&n.slice().map((e=>{e(l)}))}}}export{t as ConnectedOverlayScrollHandler,e as DomHandler,o as EventBus,l as ObjectUtils,r as UniqueComponentId,n 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){}},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)},isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),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},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| /)},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
@@ -841,6 +841,25 @@ this.primevue.utils = (function (exports) {
841
841
 
842
842
  isPrintableCharacter(char = '') {
843
843
  return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
844
+ },
845
+
846
+ /**
847
+ * Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
848
+ * https://caniuse.com/mdn-javascript_builtins_array_findlastindex
849
+ */
850
+ findLastIndex(arr, callback) {
851
+ let index = -1;
852
+
853
+ if (this.isNotEmpty(arr)) {
854
+ try {
855
+ index = arr.findLastIndex(callback);
856
+ }
857
+ catch {
858
+ index = arr.lastIndexOf([...arr].reverse().find(callback));
859
+ }
860
+ }
861
+
862
+ return index;
844
863
  }
845
864
  };
846
865
 
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.utils=function(e){"use strict";var t={innerWidth(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t+=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),t}return 0},width(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t-=parseFloat(l.paddingLeft)+parseFloat(l.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 l=e.offsetWidth;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return l}return 0},getOuterHeight(e,t){if(e){let l=e.offsetHeight;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return l}return 0},getClientHeight(e,t){if(e){let l=e.clientHeight;if(t){let t=getComputedStyle(e);l+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return l}return 0},getViewport(){let e=window,t=document,l=t.documentElement,n=t.getElementsByTagName("body")[0];return{width:e.innerWidth||l.clientWidth||n.clientWidth,height:e.innerHeight||l.clientHeight||n.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,l=0;for(let n=0;n<t.length;n++){if(t[n]===e)return l;1===t[n].nodeType&&l++}}return-1},addMultipleClasses(e,t){if(e&&t)if(e.classList){let l=t.split(" ");for(let t=0;t<l.length;t++)e.classList.add(l[t])}else{let l=t.split(" ");for(let t=0;t<l.length;t++)e.className+=" "+l[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,l=getComputedStyle(e);return t-=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),t}return 0},getWidth(e){if(e){let t=e.offsetWidth,l=getComputedStyle(e);return t-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)+parseFloat(l.borderLeftWidth)+parseFloat(l.borderRightWidth),t}return 0},absolutePosition(e,t){if(e){let l,n,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?(l=d.top+c-r,e.style.transformOrigin="bottom",l<0&&(l=c)):(l=s+d.top+c,e.style.transformOrigin="top"),n=d.left+o>h.width?Math.max(0,d.left+p+a-o):d.left+p,e.style.top=l+"px",e.style.left=n+"px"}},relativePosition(e,t){if(e){let l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const n=t.offsetHeight,i=t.getBoundingClientRect(),r=this.getViewport();let o,s;i.top+n+l.height>r.height?(o=-1*l.height,e.style.transformOrigin="bottom",i.top+o<0&&(o=-1*i.top)):(o=n,e.style.transformOrigin="top"),s=l.width>r.width?-1*i.left:i.left+l.width>r.width?-1*(i.left+l.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 l=this.getParents(e);const n=/(auto|scroll)/,i=e=>{let t=window.getComputedStyle(e,null);return n.test(t.getPropertyValue("overflow"))||n.test(t.getPropertyValue("overflowX"))||n.test(t.getPropertyValue("overflowY"))};for(let e of l){let l=1===e.nodeType&&e.dataset.scrollselectors;if(l){let n=l.split(",");for(let l of n){let n=this.findSingle(e,l);n&&i(n)&&t.push(n)}}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 l=+new Date,n=0,i=function(){n=+e.style.opacity+((new Date).getTime()-l)/t,e.style.opacity=n,l=+new Date,+n<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))};i()}},fadeOut(e,t){if(e){let l=1,n=50,i=n/t,r=setInterval((()=>{l-=i,l<=0&&(l=0,clearInterval(r)),e.style.opacity=l}),n)}},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 l=getComputedStyle(e).getPropertyValue("borderTopWidth"),n=l?parseFloat(l):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)-n-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){}},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,l){e[t].apply(e,l)},isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),getFocusableElements(e,t=""){let l=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}`),n=[];for(let e of l)"none"!=getComputedStyle(e).display&&"hidden"!=getComputedStyle(e).visibility&&n.push(e);return n},getFirstFocusableElement(e,t){const l=this.getFocusableElements(e,t);return l.length>0?l[0]:null},isClickable(e){const t=e.nodeName,l=e.parentElement&&e.parentElement.nodeName;return"INPUT"==t||"BUTTON"==t||"A"==t||"INPUT"==l||"BUTTON"==l||"A"==l||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 l in t)e.style[l]=t[l]},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 l=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(l,t+".csv");else{let n=document.createElement("a");void 0!==n.download?(n.setAttribute("href",URL.createObjectURL(l)),n.setAttribute("download",t+".csv"),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}};var l={equals(e,t,l){return l?this.resolveFieldData(e,l)===this.resolveFieldData(t,l):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var l,n,i,r=Array.isArray(e),o=Array.isArray(t);if(r&&o){if((n=e.length)!=t.length)return!1;for(l=n;0!=l--;)if(!this.deepEquals(e[l],t[l]))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((n=p.length)!==Object.keys(t).length)return!1;for(l=n;0!=l--;)if(!Object.prototype.hasOwnProperty.call(t,p[l]))return!1;for(l=n;0!=l--;)if(i=p[l],!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 l=0,n=i.length;l<n;++l){if(null==r)return null;r=r[i[l]]}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,l){var n=[];if(e)for(let i of e)for(let e of t)if(String(this.resolveFieldData(i,e)).toLowerCase().indexOf(l.toLowerCase())>-1){n.push(i);break}return n},reorderArray(e,t,l){let n;if(e&&t!==l){if(l>=e.length)for(n=l-e.length;1+n--;)e.push(void 0);e.splice(l,0,e.splice(t,1)[0])}},findIndexInList(e,t){let l=-1;if(t)for(let n=0;n<t.length;n++)if(t[n]===e){l=n;break}return l},contains(e,t){if(null!=e&&t&&t.length)for(let l of t)if(this.equals(e,l))return!0;return!1},insertIntoOrderedArray(e,t,l,n){if(l.length>0){let i=!1;for(let r=0;r<l.length;r++){if(this.findIndexInList(l[r],n)>t){l.splice(r,0,e),i=!0;break}}i||l.push(e)}else l.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 l=e.props;if(l){let n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(l,n)?n:t;return e.type.props[t].type===Boolean&&""===l[i]||l[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| /)}};var n=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,l,n)=>{l&&(l.style.zIndex=String(((t,l)=>{let n=e.length>0?e[e.length-1]:{key:t,value:l},i=n.value+(n.key===t?0:l)+1;return e.push({key:t,value:i}),i})(t,n)))},clear:l=>{var n;l&&(n=t(l),e=e.filter((e=>e.value!==n)),l.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,l){let n=e.get(t);n?n.push(l):n=[l],e.set(t,n)},off(t,l){let n=e.get(t);n&&n.splice(n.indexOf(l)>>>0,1)},emit(t,l){let n=e.get(t);n&&n.slice().map((e=>{e(l)}))}}},e.ObjectUtils=l,e.UniqueComponentId=function(e="pv_id_"){return`${e}${++i}`},e.ZIndexUtils=n,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(),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){}},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)},isClient:()=>!("undefined"==typeof window||!window.document||!window.document.createElement),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},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| /)},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}({});
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "PrimeVue",
5
- "version": "3.16.1",
5
+ "version": "3.16.2",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",