@progress/kendo-vue-popup
Version:
Kendo UI for Vue Popup package
9 lines (8 loc) • 2.47 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@progress/kendo-popup-common"),g=(e,t)=>e||{height:0,left:t.left,top:t.top,width:0},w=(e,t)=>t?{height:e.height,left:t.left,top:t.top,width:e.width}:e,y=(e,t)=>t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e,u=()=>typeof document!="undefined"&&!!document.body,a=()=>typeof window!="undefined",p=/auto|scroll/,v=e=>{const t=window.getComputedStyle(e);return`${t.overflow}${t.overflowX}${t.overflowY}`},C=e=>{const t=[];if(!u()||!a())return t;let n=e.parentElement;for(;n;)p.test(v(n))&&t.push(n),n=n.parentElement;return t.push(window),t},E=1e3/60,h=()=>{if(!u())return!1;const e=10,t=document.createElement("div");if(t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML="<div>child</div>",document.body.appendChild(t),t&&t.firstChild){const l=t.firstChild;l.style.position="fixed",l.style.top=`${e}px`}const n=t.children[0].getBoundingClientRect().top!==e;return document.body.removeChild(t),n},T=h(),A=(e,t)=>{if(!e||!u()||!a())return null;const n=f.siblingContainer(e,t);if(!n)return null;const l=[e].concat(f.parents(e,n)).reduce((o,i)=>{const s=i.style.zIndex||window.getComputedStyle(i).zIndex,r=parseInt(s,10);return r>o?r:o},0);return l?l+1:null},b={fit:"fit",flip:"flip"},R={left:"left",bottom:"bottom",top:"top"},S=function(e,t,n={}){let l,o,i,s,r=0;n=n||{};const m=function(){r=n.leading===!1?0:new Date().getTime(),l=null,s=e.apply(o,i),l||(o=i=null)};return function(){const c=new Date().getTime();!r&&n.leading===!1&&(r=c);const d=t-(c-r);return o=this,i=arguments,d<=0||d>t?(l&&(clearTimeout(l),l=null),r=c,s=e.apply(o,i),l||(o=i=null)):!l&&n.trailing!==!1&&(l=setTimeout(m,d)),s}};exports.AlignPoint=R;exports.CollisionType=b;exports.FRAME_DURATION=E;exports.HAS_RELATIVE_STACKING_CONTEXT=T;exports.OVERFLOW_REGEXP=p;exports.eitherRect=g;exports.hasRelativeStackingContext=h;exports.isDocumentAvailable=u;exports.isWindowAvailable=a;exports.removeStackingOffset=y;exports.replaceOffset=w;exports.scrollableParents=C;exports.throttle=S;exports.zIndex=A;