@progress/kendo-popup-common
Advanced tools
Comparing version 1.8.0 to 1.9.0-dev.202111301350
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoPopupCommon=e():t.KendoPopupCommon=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return o})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return u})),n.d(e,"boundingOffset",(function(){return p})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return s})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return v})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return P})),n.d(e,"positionWithScroll",(function(){return x})),n.d(e,"removeScroll",(function(){return z})),n.d(e,"restrictToView",(function(){return A})),n.d(e,"scrollPosition",(function(){return y})),n.d(e,"siblingContainer",(function(){return M})),n.d(e,"siblings",(function(){return j})),n.d(e,"zIndex",(function(){return E})),n.d(e,"getDocumentElement",(function(){return c})),n.d(e,"getWindow",(function(){return f})),n.d(e,"getWindowViewPort",(function(){return h})),n.d(e,"AlignPoint",(function(){return r})),n.d(e,"Collision",(function(){return S}));var r={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},o=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,i=t.elementAlign,u=t.margin;void 0===u&&(u={});var l=n.horizontal,f=n.vertical,c=i.horizontal,d=i.vertical,a=u.horizontal||0,h=u.vertical||0,p=e.top,s=e.left;return f===r.bottom&&(p+=e.height),f!==r.center&&f!==r.middle||(p+=Math.round(e.height/2)),d===r.bottom&&(p-=o.height,h*=-1),d!==r.center&&d!==r.middle||(p-=Math.round(o.height/2),h*=-1),l===r.right&&(s+=e.width),l!==r.center&&l!==r.middle||(s+=Math.round(e.width/2)),c===r.right&&(s-=o.width,a*=-1),c!==r.center&&c!==r.middle||(s-=Math.round(o.width/2),a*=-1),{top:p+h,left:s+a}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function u(t,e,n){var r=t.top,o=t.left;return n&&(o=0,r=0),{top:r+e.top,left:o+e.left,height:t.height,width:t.width}}function l(t){return t.ownerDocument||t.document||t}var f=function(t){return l(t).defaultView},c=function(t){return l(t).documentElement},d=0;function a(){if(!d&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),d=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return d}function h(t){var e=f(t),n=c(t),r={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=a()),r}var p=function(t){if(!t.getBoundingClientRect){var e=h(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},s=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||c(t)},g=function(t){return s(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,r=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,r=e.left,o=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=r,t.style.position=o,i}(t)),{top:r,left:n,height:e.height,width:e.width}},v=function(t,e){for(var n=[],r=t.parentNode;r&&(n.push(r),r!==e);)r=r.parentNode;return n};function y(t){var e=c(t),n=f(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var w=function(t){return t===(t.ownerDocument||{}).body?y(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=s(t);return e?w(e):{x:0,y:0}}var P=function(t,e){var n=f(t),r=n.getComputedStyle(t),o=m(t),i=e||s(t),u=t.ownerDocument,l=i!==u.body&&i!==u.documentElement,c={top:0,left:0};if("fixed"!==r.position&&l){var d=n.getComputedStyle(i);(c=m(i)).top+=parseInt(d.borderTopWidth,10),c.left+=parseInt(d.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},x=function(t,e,n){void 0===n&&(n=1);var r=e?s(e):null,o=P(t,r),i=o.top,u=o.left,l=o.height,f=o.width,c=function(t,e){return t?w(t):b(e)}(r,t),d=c.x,a=c.y,h=t.ownerDocument,p=r===h.body||r===h.documentElement?1:n;return{top:i+a*p,left:u+d*p,height:l,width:f}};function z(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var S={fit:"fit",flip:"flip"},C=function(t,e,n){var r=0;return t+e>n&&(r=n-(t+e)),t<0&&(r=-t),r},O=function(t){var e=t.offset,n=t.size,o=t.anchorSize,i=t.viewPortSize,u=t.anchorAlignPoint,l=t.elementAlignPoint,f=t.margin,c=0,d=l===r.center||l===r.middle,a=u===r.center||u===r.middle,h=2*f;if(l!==u&&!d&&!a){var p=u===r.top||u===r.left;e<0&&p?e+(c=n+o+h)+n>i&&(c=0):e>=0&&!p&&(e+n>i&&(c+=-(o+n+h)),e+c<0&&(c=0))}return c},A=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,o=t.elementAlign,i=t.collisions,u=t.viewPort,l=t.margin;void 0===l&&(l={});var f=r.top,c=r.left,d=r.height,a=r.width,h=u.height,p=u.width,s=l.horizontal||0,g=l.vertical||0,m=0,v=0,y=i.horizontal===S.flip,w=i.vertical===S.flip;i.vertical===S.fit&&(v+=C(f,d,h)),i.horizontal===S.fit&&(m+=C(c,a,p)),w&&(v+=O({margin:g,offset:f,size:d,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(m+=O({margin:s,offset:c,size:a,anchorSize:e.width,viewPortSize:p,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var b=y&&0!==m,P=w&&0!==v;return{flipped:b||P,flip:{horizontal:b,vertical:P},offset:{left:m,top:v}}},j=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},M=function(t,e){for(var n,r,o=v(t),i=e;i&&(n=j(i),!(r=o.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return r};function E(t,e){if(!t||!e)return null;var n=M(t,e);if(!n)return null;var r=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,r=parseInt(n,10);return r>t?r:t}),0);return r?r+1:null}}])})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoPopupCommon=e():t.KendoPopupCommon=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return r})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return l})),n.d(e,"boundingOffset",(function(){return h})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return p})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return v})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return x})),n.d(e,"positionWithScroll",(function(){return P})),n.d(e,"removeScroll",(function(){return S})),n.d(e,"restrictToView",(function(){return C})),n.d(e,"scrollPosition",(function(){return w})),n.d(e,"siblingContainer",(function(){return A})),n.d(e,"siblings",(function(){return E})),n.d(e,"zIndex",(function(){return M})),n.d(e,"alignElement",(function(){return X})),n.d(e,"domUtils",(function(){return F})),n.d(e,"utils",(function(){return I})),n.d(e,"positionElement",(function(){return Y})),n.d(e,"getDocumentElement",(function(){return c})),n.d(e,"getWindow",(function(){return f})),n.d(e,"getWindowViewPort",(function(){return s})),n.d(e,"AlignPoint",(function(){return o})),n.d(e,"Collision",(function(){return z}));var o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,i=t.elementAlign,l=t.margin;void 0===l&&(l={});var u=n.horizontal,f=n.vertical,c=i.horizontal,a=i.vertical,d=l.horizontal||0,s=l.vertical||0,h=e.top,p=e.left;return f===o.bottom&&(h+=e.height),f!==o.center&&f!==o.middle||(h+=Math.round(e.height/2)),a===o.bottom&&(h-=r.height,s*=-1),a!==o.center&&a!==o.middle||(h-=Math.round(r.height/2),s*=-1),u===o.right&&(p+=e.width),u!==o.center&&u!==o.middle||(p+=Math.round(e.width/2)),c===o.right&&(p-=r.width,d*=-1),c!==o.center&&c!==o.middle||(p-=Math.round(r.width/2),d*=-1),{top:h+s,left:p+d}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function l(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function u(t){return t.ownerDocument||t.document||t}var f=function(t){return u(t).defaultView},c=function(t){return u(t).documentElement},a=0;function d(){if(!a&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),a=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return a}function s(t){var e=f(t),n=c(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=d()),o}var h=function(t){if(!t.getBoundingClientRect){var e=s(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},p=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||c(t)},g=function(t){return p(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i}(t)),{top:o,left:n,height:e.height,width:e.width}},v=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function w(t){var e=c(t),n=f(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var y=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=p(t);return e?y(e):{x:0,y:0}}var x=function(t,e){var n=f(t),o=n.getComputedStyle(t),r=m(t),i=e||p(t),l=t.ownerDocument,u=i!==l.body&&i!==l.documentElement,c={top:0,left:0};if("fixed"!==o.position&&u){var a=n.getComputedStyle(i);(c=m(i)).top+=parseInt(a.borderTopWidth,10),c.left+=parseInt(a.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},P=function(t,e,n){void 0===n&&(n=1);var o=e?p(e):null,r=x(t,o),i=r.top,l=r.left,u=r.height,f=r.width,c=function(t,e){return t?y(t):b(e)}(o,t),a=c.x,d=c.y,s=t.ownerDocument,h=o===s.body||o===s.documentElement?1:n;return{top:i+d*h,left:l+a*h,height:u,width:f}};function S(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var z={fit:"fit",flip:"flip"},R=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},O=function(t){var e=t.offset,n=t.size,r=t.anchorSize,i=t.viewPortSize,l=t.anchorAlignPoint,u=t.elementAlignPoint,f=t.margin,c=0,a=u===o.center||u===o.middle,d=l===o.center||l===o.middle,s=2*f;if(u!==l&&!a&&!d){var h=l===o.top||l===o.left;e<0&&h?e+(c=n+r+s)+n>i&&(c=0):e>=0&&!h&&(e+n>i&&(c+=-(r+n+s)),e+c<0&&(c=0))}return c},C=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,u=t.margin;void 0===u&&(u={});var f=o.top,c=o.left,a=o.height,d=o.width,s=l.height,h=l.width,p=u.horizontal||0,g=u.vertical||0,m=0,v=0,w=i.horizontal===z.flip,y=i.vertical===z.flip;i.vertical===z.fit&&(v+=R(f,a,s)),i.horizontal===z.fit&&(m+=R(c,d,h)),y&&(v+=O({margin:g,offset:f,size:a,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(m+=O({margin:p,offset:c,size:d,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var b=w&&0!==m,x=y&&0!==v;return{flipped:b||x,flip:{horizontal:b,vertical:x},offset:{left:m,top:v}}},E=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},A=function(t,e){for(var n,o,r=v(t),i=e;i&&(n=E(i),!(o=r.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return o};function M(t,e){if(!t||!e)return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}var D,T,W,k=(D=function(t){if(!j())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o},W=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return W||(T=D.apply(void 0,t),W=!0),T}),j=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},I={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:k,canUseDOM:j},B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return I.canUseDOM()?window:null},V=/auto|scroll/,H=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},U=function(t){if(!t||!I.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},_=function(){return I.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},F={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:i,align:r,boundingOffset:h,getFontStyles:function(t){var e=L();if(!e||!t)return[];var n=e.getComputedStyle(t);return B.map((function(t){return{key:t,value:n[t]}}))},getWindow:L,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,i=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var l=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=i,l},position:function(t,e,n){return t&&e?P(t,e,n||1):null},removeScroll:S,restrictToView:C,scrollPosition:w,scrollableParents:function(t){var e=[];if(!I.canUseDOM())return e;for(var n=t.parentElement;n;)(V.test(H(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:U,stackingElementOffset:function(t){var e=U(t);return e?m(e):null},stackingElementScroll:function(t){var e=U(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=U(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(U(t))},windowViewPort:s,zoomLevel:_,isZoomed:function(){return _()>1},zIndex:function(t,e){if(!t||!I.canUseDOM())return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}},N=function(t,e){return t?{x:0,y:0}:F.scrollPosition(e)},X=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,u=t.positionMode,f=t.scale||1,c="fixed"===u||!F.hasOffsetParent(n)?function(t,e,n,o){var r=N(t,e),i=I.eitherRect(F.offset(t),n),l=2*o,u=F.stackingElementScroll(e);1!==o&&u&&(u.x/=l,u.y/=l);var f=F.stackingElementOffset(e);return 1!==o&&f&&(f.left/=l,f.top/=l),F.removeScroll(F.addScroll(I.removeStackingOffset(I.scaleRect(i,o),f),u),r)}(e,n,l,f):function(t,e,n,o){var r=I.eitherRect(F.position(t,e,o),n);return I.scaleRect(r,o)}(e,n,l,f),a=I.scaleRect(F.offset(n),f);return F.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:a,margin:i})},Y=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,u=t.margin,f=t.scale||1,c=F.offsetAtPoint(o,n),a=I.scaleRect(c,f),d=I.scaleRect(F.offset(e),f),s=I.eitherRect(d,n),h=t.viewPort||F.windowViewPort(o);h.width=h.width/f,h.height=h.height/f;var p=F.restrictToView({anchorAlign:r,anchorRect:s,collisions:l,elementAlign:i,elementRect:a,margin:u,viewPort:h}),g=F.addOffset(n,p.offset);return{flip:p.flip,flipped:p.flipped,offset:g}}}])})); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoPopupCommon=e():t.KendoPopupCommon=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return o})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return u})),n.d(e,"boundingOffset",(function(){return p})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return s})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return v})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return P})),n.d(e,"positionWithScroll",(function(){return x})),n.d(e,"removeScroll",(function(){return z})),n.d(e,"restrictToView",(function(){return A})),n.d(e,"scrollPosition",(function(){return y})),n.d(e,"siblingContainer",(function(){return M})),n.d(e,"siblings",(function(){return j})),n.d(e,"zIndex",(function(){return E})),n.d(e,"getDocumentElement",(function(){return c})),n.d(e,"getWindow",(function(){return f})),n.d(e,"getWindowViewPort",(function(){return h})),n.d(e,"AlignPoint",(function(){return r})),n.d(e,"Collision",(function(){return S}));var r={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},o=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,i=t.elementAlign,u=t.margin;void 0===u&&(u={});var l=n.horizontal,f=n.vertical,c=i.horizontal,d=i.vertical,a=u.horizontal||0,h=u.vertical||0,p=e.top,s=e.left;return f===r.bottom&&(p+=e.height),f!==r.center&&f!==r.middle||(p+=Math.round(e.height/2)),d===r.bottom&&(p-=o.height,h*=-1),d!==r.center&&d!==r.middle||(p-=Math.round(o.height/2),h*=-1),l===r.right&&(s+=e.width),l!==r.center&&l!==r.middle||(s+=Math.round(e.width/2)),c===r.right&&(s-=o.width,a*=-1),c!==r.center&&c!==r.middle||(s-=Math.round(o.width/2),a*=-1),{top:p+h,left:s+a}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function u(t,e,n){var r=t.top,o=t.left;return n&&(o=0,r=0),{top:r+e.top,left:o+e.left,height:t.height,width:t.width}}function l(t){return t.ownerDocument||t.document||t}var f=function(t){return l(t).defaultView},c=function(t){return l(t).documentElement},d=0;function a(){if(!d&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),d=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return d}function h(t){var e=f(t),n=c(t),r={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(r.width-=a()),r}var p=function(t){if(!t.getBoundingClientRect){var e=h(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},s=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||c(t)},g=function(t){return s(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,r=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,r=e.left,o=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=r,t.style.position=o,i}(t)),{top:r,left:n,height:e.height,width:e.width}},v=function(t,e){for(var n=[],r=t.parentNode;r&&(n.push(r),r!==e);)r=r.parentNode;return n};function y(t){var e=c(t),n=f(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var w=function(t){return t===(t.ownerDocument||{}).body?y(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=s(t);return e?w(e):{x:0,y:0}}var P=function(t,e){var n=f(t),r=n.getComputedStyle(t),o=m(t),i=e||s(t),u=t.ownerDocument,l=i!==u.body&&i!==u.documentElement,c={top:0,left:0};if("fixed"!==r.position&&l){var d=n.getComputedStyle(i);(c=m(i)).top+=parseInt(d.borderTopWidth,10),c.left+=parseInt(d.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},x=function(t,e,n){void 0===n&&(n=1);var r=e?s(e):null,o=P(t,r),i=o.top,u=o.left,l=o.height,f=o.width,c=function(t,e){return t?w(t):b(e)}(r,t),d=c.x,a=c.y,h=t.ownerDocument,p=r===h.body||r===h.documentElement?1:n;return{top:i+a*p,left:u+d*p,height:l,width:f}};function z(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var S={fit:"fit",flip:"flip"},C=function(t,e,n){var r=0;return t+e>n&&(r=n-(t+e)),t<0&&(r=-t),r},O=function(t){var e=t.offset,n=t.size,o=t.anchorSize,i=t.viewPortSize,u=t.anchorAlignPoint,l=t.elementAlignPoint,f=t.margin,c=0,d=l===r.center||l===r.middle,a=u===r.center||u===r.middle,h=2*f;if(l!==u&&!d&&!a){var p=u===r.top||u===r.left;e<0&&p?e+(c=n+o+h)+n>i&&(c=0):e>=0&&!p&&(e+n>i&&(c+=-(o+n+h)),e+c<0&&(c=0))}return c},A=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,o=t.elementAlign,i=t.collisions,u=t.viewPort,l=t.margin;void 0===l&&(l={});var f=r.top,c=r.left,d=r.height,a=r.width,h=u.height,p=u.width,s=l.horizontal||0,g=l.vertical||0,m=0,v=0,y=i.horizontal===S.flip,w=i.vertical===S.flip;i.vertical===S.fit&&(v+=C(f,d,h)),i.horizontal===S.fit&&(m+=C(c,a,p)),w&&(v+=O({margin:g,offset:f,size:d,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),y&&(m+=O({margin:s,offset:c,size:a,anchorSize:e.width,viewPortSize:p,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var b=y&&0!==m,P=w&&0!==v;return{flipped:b||P,flip:{horizontal:b,vertical:P},offset:{left:m,top:v}}},j=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},M=function(t,e){for(var n,r,o=v(t),i=e;i&&(n=j(i),!(r=o.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return r};function E(t,e){if(!t||!e)return null;var n=M(t,e);if(!n)return null;var r=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,r=parseInt(n,10);return r>t?r:t}),0);return r?r+1:null}}])})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoPopupCommon=e():t.KendoPopupCommon=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return r})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return l})),n.d(e,"boundingOffset",(function(){return h})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return p})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return v})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return x})),n.d(e,"positionWithScroll",(function(){return P})),n.d(e,"removeScroll",(function(){return S})),n.d(e,"restrictToView",(function(){return C})),n.d(e,"scrollPosition",(function(){return w})),n.d(e,"siblingContainer",(function(){return A})),n.d(e,"siblings",(function(){return E})),n.d(e,"zIndex",(function(){return M})),n.d(e,"alignElement",(function(){return X})),n.d(e,"domUtils",(function(){return F})),n.d(e,"utils",(function(){return I})),n.d(e,"positionElement",(function(){return Y})),n.d(e,"getDocumentElement",(function(){return c})),n.d(e,"getWindow",(function(){return f})),n.d(e,"getWindowViewPort",(function(){return s})),n.d(e,"AlignPoint",(function(){return o})),n.d(e,"Collision",(function(){return z}));var o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,i=t.elementAlign,l=t.margin;void 0===l&&(l={});var u=n.horizontal,f=n.vertical,c=i.horizontal,a=i.vertical,d=l.horizontal||0,s=l.vertical||0,h=e.top,p=e.left;return f===o.bottom&&(h+=e.height),f!==o.center&&f!==o.middle||(h+=Math.round(e.height/2)),a===o.bottom&&(h-=r.height,s*=-1),a!==o.center&&a!==o.middle||(h-=Math.round(r.height/2),s*=-1),u===o.right&&(p+=e.width),u!==o.center&&u!==o.middle||(p+=Math.round(e.width/2)),c===o.right&&(p-=r.width,d*=-1),c!==o.center&&c!==o.middle||(p-=Math.round(r.width/2),d*=-1),{top:h+s,left:p+d}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function l(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function u(t){return t.ownerDocument||t.document||t}var f=function(t){return u(t).defaultView},c=function(t){return u(t).documentElement},a=0;function d(){if(!a&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),a=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return a}function s(t){var e=f(t),n=c(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=d()),o}var h=function(t){if(!t.getBoundingClientRect){var e=s(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},p=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||c(t)},g=function(t){return p(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i}(t)),{top:o,left:n,height:e.height,width:e.width}},v=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function w(t){var e=c(t),n=f(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var y=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=p(t);return e?y(e):{x:0,y:0}}var x=function(t,e){var n=f(t),o=n.getComputedStyle(t),r=m(t),i=e||p(t),l=t.ownerDocument,u=i!==l.body&&i!==l.documentElement,c={top:0,left:0};if("fixed"!==o.position&&u){var a=n.getComputedStyle(i);(c=m(i)).top+=parseInt(a.borderTopWidth,10),c.left+=parseInt(a.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},P=function(t,e,n){void 0===n&&(n=1);var o=e?p(e):null,r=x(t,o),i=r.top,l=r.left,u=r.height,f=r.width,c=function(t,e){return t?y(t):b(e)}(o,t),a=c.x,d=c.y,s=t.ownerDocument,h=o===s.body||o===s.documentElement?1:n;return{top:i+d*h,left:l+a*h,height:u,width:f}};function S(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var z={fit:"fit",flip:"flip"},R=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},O=function(t){var e=t.offset,n=t.size,r=t.anchorSize,i=t.viewPortSize,l=t.anchorAlignPoint,u=t.elementAlignPoint,f=t.margin,c=0,a=u===o.center||u===o.middle,d=l===o.center||l===o.middle,s=2*f;if(u!==l&&!a&&!d){var h=l===o.top||l===o.left;e<0&&h?e+(c=n+r+s)+n>i&&(c=0):e>=0&&!h&&(e+n>i&&(c+=-(r+n+s)),e+c<0&&(c=0))}return c},C=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,u=t.margin;void 0===u&&(u={});var f=o.top,c=o.left,a=o.height,d=o.width,s=l.height,h=l.width,p=u.horizontal||0,g=u.vertical||0,m=0,v=0,w=i.horizontal===z.flip,y=i.vertical===z.flip;i.vertical===z.fit&&(v+=R(f,a,s)),i.horizontal===z.fit&&(m+=R(c,d,h)),y&&(v+=O({margin:g,offset:f,size:a,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(m+=O({margin:p,offset:c,size:d,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var b=w&&0!==m,x=y&&0!==v;return{flipped:b||x,flip:{horizontal:b,vertical:x},offset:{left:m,top:v}}},E=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},A=function(t,e){for(var n,o,r=v(t),i=e;i&&(n=E(i),!(o=r.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return o};function M(t,e){if(!t||!e)return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}var D,T,W,k=(D=function(t){if(!j())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o},W=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return W||(T=D.apply(void 0,t),W=!0),T}),j=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},I={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:k,canUseDOM:j},B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return I.canUseDOM()?window:null},V=/auto|scroll/,H=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},U=function(t){if(!t||!I.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},_=function(){return I.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},F={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:i,align:r,boundingOffset:h,getFontStyles:function(t){var e=L();if(!e||!t)return[];var n=e.getComputedStyle(t);return B.map((function(t){return{key:t,value:n[t]}}))},getWindow:L,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,i=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var l=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=i,l},position:function(t,e,n){return t&&e?P(t,e,n||1):null},removeScroll:S,restrictToView:C,scrollPosition:w,scrollableParents:function(t){var e=[];if(!I.canUseDOM())return e;for(var n=t.parentElement;n;)(V.test(H(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:U,stackingElementOffset:function(t){var e=U(t);return e?m(e):null},stackingElementScroll:function(t){var e=U(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=U(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(U(t))},windowViewPort:s,zoomLevel:_,isZoomed:function(){return _()>1},zIndex:function(t,e){if(!t||!I.canUseDOM())return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}},N=function(t,e){return t?{x:0,y:0}:F.scrollPosition(e)},X=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,u=t.positionMode,f=t.scale||1,c="fixed"===u||!F.hasOffsetParent(n)?function(t,e,n,o){var r=N(t,e),i=I.eitherRect(F.offset(t),n),l=2*o,u=F.stackingElementScroll(e);1!==o&&u&&(u.x/=l,u.y/=l);var f=F.stackingElementOffset(e);return 1!==o&&f&&(f.left/=l,f.top/=l),F.removeScroll(F.addScroll(I.removeStackingOffset(I.scaleRect(i,o),f),u),r)}(e,n,l,f):function(t,e,n,o){var r=I.eitherRect(F.position(t,e,o),n);return I.scaleRect(r,o)}(e,n,l,f),a=I.scaleRect(F.offset(n),f);return F.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:a,margin:i})},Y=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,u=t.margin,f=t.scale||1,c=F.offsetAtPoint(o,n),a=I.scaleRect(c,f),d=I.scaleRect(F.offset(e),f),s=I.eitherRect(d,n),h=t.viewPort||F.windowViewPort(o);h.width=h.width/f,h.height=h.height/f;var p=F.restrictToView({anchorAlign:r,anchorRect:s,collisions:l,elementAlign:i,elementRect:a,margin:u,viewPort:h}),g=F.addOffset(n,p.offset);return{flip:p.flip,flipped:p.flipped,offset:g}}}])})); |
@@ -19,2 +19,7 @@ export { default as align } from './align'; | ||
export { default as alignElement } from './align-element'; | ||
export { default as domUtils } from './dom-utils'; | ||
export { default as utils } from './utils'; | ||
export { default as positionElement } from './position-element'; | ||
export { default as getDocumentElement } from './document'; | ||
@@ -21,0 +26,0 @@ export { default as getWindow } from './window'; |
@@ -19,2 +19,7 @@ export { default as align } from './align'; | ||
export { default as alignElement } from './align-element'; | ||
export { default as domUtils } from './dom-utils'; | ||
export { default as utils } from './utils'; | ||
export { default as positionElement } from './position-element'; | ||
export { default as getDocumentElement } from './document'; | ||
@@ -21,0 +26,0 @@ export { default as getWindow } from './window'; |
@@ -1,3 +0,3 @@ | ||
type HorizontalPoint = 'left' | 'center' | 'right'; | ||
type VerticalPoint = 'top' | 'center' | 'bottom'; | ||
import HorizontalPoint from "./horizontal-point"; | ||
import VerticalPoint from "./vertical-point"; | ||
@@ -4,0 +4,0 @@ interface AlignStrategy { |
@@ -1,2 +0,2 @@ | ||
type CollisionType = 'fit' | 'flip'; | ||
import CollisionType from "./collision-type"; | ||
@@ -3,0 +3,0 @@ interface CollisionStrategy { |
@@ -23,2 +23,16 @@ export { default as align } from "./align"; | ||
export { default as alignElement } from "./align-element"; | ||
export { default as positionElement } from "./position-element"; | ||
export { default as domUtils } from "./dom-utils"; | ||
export { default as utils } from "./utils"; | ||
export { default as AlignElementSettings } from "./align-element-settings"; | ||
export { default as CollisionType } from "./collision-type"; | ||
export { default as HorizontalPoint } from "./horizontal-point"; | ||
export { default as PopupSettings } from "./popup-settings"; | ||
export { default as PositionElementSettings } from "./position-element-settings"; | ||
export { default as PositionMode } from "./position-mode"; | ||
export { default as PositionStrategy } from "./position-strategy"; | ||
export { default as VerticalPoint } from "./vertical-point"; | ||
export { default as AlignPoint } from "./align-point"; | ||
@@ -25,0 +39,0 @@ export { default as AlignSettings } from "./align-settings"; |
@@ -1,10 +0,6 @@ | ||
import OffsetPosition from "./offset-position"; | ||
import PositionSettings from "./position-settings"; | ||
import PositionStrategy from "./position-strategy"; | ||
declare var _default: (options: PositionSettings) => { | ||
flipped: boolean; | ||
flip: any; | ||
offset: OffsetPosition; | ||
}; | ||
declare var _default: (options: PositionSettings) => PositionStrategy; | ||
export default _default; |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-popup-common",[],function(W){return{setters:[],execute:function(){function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,r;r={},o.m=n=[function(t,e,n){"use strict";n.r(e);function o(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign;void 0===(c=t.margin)&&(c={});var i=n.horizontal,l=n.vertical,u=r.horizontal,f=r.vertical,t=c.horizontal||0,n=c.vertical||0,r=e.top,c=e.left;return l===d.bottom&&(r+=e.height),l!==d.center&&l!==d.middle||(r+=Math.round(e.height/2)),f===d.bottom&&(r-=o.height,n*=-1),f!==d.center&&f!==d.middle||(r-=Math.round(o.height/2),n*=-1),i===d.right&&(c+=e.width),i!==d.center&&i!==d.middle||(c+=Math.round(e.width/2)),u===d.right&&(c-=o.width,t*=-1),u!==d.center&&u!==d.middle||(c-=Math.round(o.width/2),t*=-1),{top:r+n,left:c+t}}var d={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"};function r(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function i(t,e,n){var o=t.top,r=t.left;return{top:(o=n?r=0:o)+e.top,left:r+e.left,height:t.height,width:t.width}}function l(t){return t.ownerDocument||t.document||t}function u(t){return l(t).defaultView}function f(t){return l(t).documentElement}var c=0;function h(t){var e=u(t),t=f(t),e={height:e.innerHeight,width:e.innerWidth};return 0<t.scrollHeight-t.clientHeight&&(e.width-=(c||"undefined"==typeof document||((t=document.createElement("div")).style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),c=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)),c)),e}function a(t){if(t.getBoundingClientRect)return{bottom:(t=t.getBoundingClientRect()).bottom,left:t.left,right:t.right,top:t.top};t=h(t);return{bottom:t.height,left:0,right:t.width,top:0}}function p(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||f(t)}function s(t){return p(t)===t.ownerDocument.body}function g(t){var e=t.getBoundingClientRect(),n=e.left;return{top:e.top,left:n,height:(e=!e.height&&!e.width?function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";e=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,e}(t):e).height,width:e.width}}function m(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n}function v(t){var e=f(t),t=u(t);return{x:t.pageXOffset||e.scrollLeft||0,y:t.pageYOffset||e.scrollTop||0}}function w(t){return t===(t.ownerDocument||{}).body?v(t):{x:t.scrollLeft,y:t.scrollTop}}function y(t){t=p(t);return t?w(t):{x:0,y:0}}function b(t,e){var n=u(t),o=n.getComputedStyle(t),r=g(t),i=e||p(t),e=t.ownerDocument,t=i!==e.body&&i!==e.documentElement,e={top:0,left:0};return"fixed"!==o.position&&t&&(n=n.getComputedStyle(i),(e=g(i)).top+=parseInt(n.borderTopWidth,10),e.left+=parseInt(n.borderLeftWidth,10)),{top:r.top-e.top,left:r.left-e.left,height:r.height,width:r.width}}function z(t,e,n){void 0===n&&(n=1);var o=e?p(e):null,r=(f=b(t,o)).top,i=f.left,l=f.height,u=f.width,f=(e=o?w(o):y(t)).x,e=e.y,t=t.ownerDocument,n=o===t.body||o===t.documentElement?1:n;return{top:r+e*n,left:i+f*n,height:l,width:u}}function x(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}function P(t,e,n){return t<0?-t:n<t+e?n-(t+e):0}function S(t){var e=t.offset,n=t.size,o=t.anchorSize,r=t.viewPortSize,i=t.anchorAlignPoint,l=t.elementAlignPoint,u=0,t=2*t.margin;return l!==i&&l!==d.center&&l!==d.middle&&i!==d.center&&i!==d.middle&&(i=i===d.top||i===d.left,e<0&&i?e+(u=n+o+t)+n>r&&(u=0):0<=e&&!i&&(r<e+n&&(u+=-(o+n+t)),e+u<0&&(u=0))),u}function C(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort;void 0===(g=t.margin)&&(g={});var u=o.top,f=o.left,c=o.height,d=o.width,h=l.height,a=l.width,p=g.horizontal||0,s=g.vertical||0,t=0,o=0,l=i.horizontal===E.flip,g=i.vertical===E.flip;return i.vertical===E.fit&&(o+=P(u,c,h)),i.horizontal===E.fit&&(t+=P(f,d,a)),g&&(o+=S({margin:s,offset:u,size:c,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),l&&(t+=S({margin:p,offset:f,size:d,anchorSize:e.width,viewPortSize:a,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal})),g=g&&0!==o,{flipped:(l=l&&0!==t)||g,flip:{horizontal:l,vertical:g},offset:{left:t,top:o}}}function A(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e}function O(t,e){for(var n,o,r=m(t),i=e;i&&(n=A(i),!(o=r.reduce(function(t,e){return t.concat(n.filter(function(t){return t===e}))},[])[0]));)i=i.parentElement;return o}var E={fit:"fit",flip:"flip"};function R(t,e){if(!t||!e)return null;e=O(t,e);if(!e)return null;e=[t].concat(m(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return e?e+1:null}n.d(e,"align",function(){return o}),n.d(e,"addScroll",function(){return r}),n.d(e,"applyLocationOffset",function(){return i}),n.d(e,"boundingOffset",function(){return a}),n.d(e,"isBodyOffset",function(){return s}),n.d(e,"offsetParent",function(){return p}),n.d(e,"offset",function(){return g}),n.d(e,"parents",function(){return m}),n.d(e,"parentScrollPosition",function(){return y}),n.d(e,"position",function(){return b}),n.d(e,"positionWithScroll",function(){return z}),n.d(e,"removeScroll",function(){return x}),n.d(e,"restrictToView",function(){return C}),n.d(e,"scrollPosition",function(){return v}),n.d(e,"siblingContainer",function(){return O}),n.d(e,"siblings",function(){return A}),n.d(e,"zIndex",function(){return R}),n.d(e,"getDocumentElement",function(){return f}),n.d(e,"getWindow",function(){return u}),n.d(e,"getWindowViewPort",function(){return h}),n.d(e,"AlignPoint",function(){return d}),n.d(e,"Collision",function(){return E}),function(t){for(var e in t)W(e,t[e])}(e)}],o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}}}); | ||
System.register("@progress/kendo-popup-common",[],function(F){return{setters:[],execute:function(){function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,r;n=[function(t,e,n){"use strict";n.r(e);function o(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.margin,l=n.horizontal,f=n.vertical,u=r.horizontal,c=r.vertical,t=(i=void 0===i?{}:i).horizontal||0,n=i.vertical||0,r=e.top,i=e.left;return f===d.bottom&&(r+=e.height),f!==d.center&&f!==d.middle||(r+=Math.round(e.height/2)),c===d.bottom&&(r-=o.height,n*=-1),c!==d.center&&c!==d.middle||(r-=Math.round(o.height/2),n*=-1),l===d.right&&(i+=e.width),l!==d.center&&l!==d.middle||(i+=Math.round(e.width/2)),u===d.right&&(i-=o.width,t*=-1),u!==d.center&&u!==d.middle||(i-=Math.round(o.width/2),t*=-1),{top:r+n,left:i+t}}var d={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"};function r(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function i(t,e,n){var o=t.top,r=t.left;return{top:(o=n?r=0:o)+e.top,left:r+e.left,height:t.height,width:t.width}}function l(t){return t.ownerDocument||t.document||t}var f=function(t){return l(t).defaultView},u=function(t){return l(t).documentElement},c=0;function a(t){var e=f(t),t=u(t),e={height:e.innerHeight,width:e.innerWidth};return 0<t.scrollHeight-t.clientHeight&&(e.width-=(c||"undefined"==typeof document||((t=document.createElement("div")).style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),c=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)),c)),e}function s(t){if(t.getBoundingClientRect)return{bottom:(t=t.getBoundingClientRect()).bottom,left:t.left,right:t.right,top:t.top};t=a(t);return{bottom:t.height,left:0,right:t.width,top:0}}function h(t){return g(t)===t.ownerDocument.body}function p(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n}var g=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||u(t)},m=function(t){var e=t.getBoundingClientRect(),n=e.left;return{top:e.top,left:n,height:(e=!e.height&&!e.width?function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";e=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,e}(t):e).height,width:e.width}};function w(t){var e=u(t),t=f(t);return{x:t.pageXOffset||e.scrollLeft||0,y:t.pageYOffset||e.scrollTop||0}}var v=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function y(t){t=g(t);return t?v(t):{x:0,y:0}}function x(t,e){var n=f(t),o=n.getComputedStyle(t),r=m(t),i=e||g(t),e=t.ownerDocument,t=i!==e.body&&i!==e.documentElement,e={top:0,left:0};return"fixed"!==o.position&&t&&(n=n.getComputedStyle(i),(e=m(i)).top+=parseInt(n.borderTopWidth,10),e.left+=parseInt(n.borderLeftWidth,10)),{top:r.top-e.top,left:r.left-e.left,height:r.height,width:r.width}}function b(t,e,n){void 0===n&&(n=1);var o=e?g(e):null,r=(u=x(t,o)).top,i=u.left,l=u.height,f=u.width,e=(u=(e=t,o?v(o):y(e))).x,u=u.y,t=t.ownerDocument,n=o===t.body||o===t.documentElement?1:n;return{top:r+u*n,left:i+e*n,height:l,width:f}}function P(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}function S(t,e,n){return t<0?-t:n<t+e?n-(t+e):0}function z(t){var e=t.offset,n=t.size,o=t.anchorSize,r=t.viewPortSize,i=t.anchorAlignPoint,l=t.elementAlignPoint,f=0,t=2*t.margin;return l!==i&&l!==d.center&&l!==d.middle&&i!==d.center&&i!==d.middle&&(i=i===d.top||i===d.left,e<0&&i?e+(f=n+o+t)+n>r&&(f=0):0<=e&&!i&&(r<e+n&&(f+=-(o+n+t)),e+f<0&&(f=0))),f}function R(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,f=t.margin,u=o.top,c=o.left,d=o.height,a=o.width,s=l.height,h=l.width,p=(f=void 0===f?{}:f).horizontal||0,g=f.vertical||0,t=0,o=0,l=i.horizontal===A.flip,f=i.vertical===A.flip;return i.vertical===A.fit&&(o+=S(u,d,s)),i.horizontal===A.fit&&(t+=S(c,a,h)),f&&(o+=z({margin:g,offset:u,size:d,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),l&&(t+=z({margin:p,offset:c,size:a,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal})),f=f&&0!==o,{flipped:(l=l&&0!==t)||f,flip:{horizontal:l,vertical:f},offset:{left:t,top:o}}}function E(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e}function O(t,e){for(var n,o,r=p(t),i=e;i&&(n=E(i),!(o=r.reduce(function(t,e){return t.concat(n.filter(function(t){return t===e}))},[])[0]));)i=i.parentElement;return o}var A={fit:"fit",flip:"flip"};function C(t,e){if(!t||!e)return null;e=O(t,e);if(!e)return null;e=[t].concat(p(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return e?e+1:null}function M(){return H.canUseDOM()?window:null}function k(t){if(!t||!H.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null}function D(){return H.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}function W(t){var n=t.anchor,o=t.element,e=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,f=t.positionMode,t=t.scale||1,l="fixed"!==f&&j.hasOffsetParent(o)?function(t,e){t=H.eitherRect(j.position(n,o,e),t);return H.scaleRect(t,e)}(l,t):function(t,e,n,o){var r,i=(r=e,t?{x:0,y:0}:j.scrollPosition(r)),r=H.eitherRect(j.offset(t),n),t=2*o,n=j.stackingElementScroll(e);1!==o&&n&&(n.x/=t,n.y/=t);e=j.stackingElementOffset(e);return 1!==o&&e&&(e.left/=t,e.top/=t),j.removeScroll(j.addScroll(H.removeStackingOffset(H.scaleRect(r,o),e),n),i)}(n,o,l,t),t=H.scaleRect(j.offset(o),t);return j.align({anchorAlign:e,anchorRect:l,elementAlign:r,elementRect:t,margin:i})}function I(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,f=t.margin,u=t.scale||1,c=j.offsetAtPoint(o,n),c=H.scaleRect(c,u),e=H.scaleRect(j.offset(e),u),e=H.eitherRect(e,n);return(o=t.viewPort||j.windowViewPort(o)).width=o.width/u,o.height=o.height/u,o=j.restrictToView({anchorAlign:r,anchorRect:e,collisions:l,elementAlign:i,elementRect:c,margin:f,viewPort:o}),n=j.addOffset(n,o.offset),{flip:o.flip,flipped:o.flipped,offset:n}}var T,B,L=(B=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return B||(T=function(t){if(!V())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o}.apply(void 0,t),B=!0),T}),V=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},H={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:L,canUseDOM:V},U=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],_=/auto|scroll/,j={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:r,align:o,boundingOffset:s,getFontStyles:function(t){var e=M();if(!e||!t)return[];var n=e.getComputedStyle(t);return U.map(function(t){return{key:t,value:n[t]}})},getWindow:M,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,n=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";e=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=n,e},position:function(t,e,n){return t&&e?b(t,e,n||1):null},removeScroll:P,restrictToView:R,scrollPosition:w,scrollableParents:function(t){var e=[];if(!H.canUseDOM())return e;for(var n,o=t.parentElement;o;)(_.test(""+(n=o).style.overflow+n.style.overflowX+n.style.overflowY||""+(n=window.getComputedStyle(n)).overflow+n.overflowX+n.overflowY)||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e},getRelativeContextElement:k,stackingElementOffset:function(t){t=k(t);return t?m(t):null},stackingElementScroll:function(t){t=k(t);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){t=k(t);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(t){return Boolean(k(t))},windowViewPort:a,zoomLevel:D,isZoomed:function(){return 1<D()},zIndex:function(t,e){if(!t||!H.canUseDOM())return null;e=O(t,e);if(!e)return null;e=[t].concat(p(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return e?e+1:null}};n.d(e,"align",function(){return o}),n.d(e,"addScroll",function(){return r}),n.d(e,"applyLocationOffset",function(){return i}),n.d(e,"boundingOffset",function(){return s}),n.d(e,"isBodyOffset",function(){return h}),n.d(e,"offsetParent",function(){return g}),n.d(e,"offset",function(){return m}),n.d(e,"parents",function(){return p}),n.d(e,"parentScrollPosition",function(){return y}),n.d(e,"position",function(){return x}),n.d(e,"positionWithScroll",function(){return b}),n.d(e,"removeScroll",function(){return P}),n.d(e,"restrictToView",function(){return R}),n.d(e,"scrollPosition",function(){return w}),n.d(e,"siblingContainer",function(){return O}),n.d(e,"siblings",function(){return E}),n.d(e,"zIndex",function(){return C}),n.d(e,"alignElement",function(){return W}),n.d(e,"domUtils",function(){return j}),n.d(e,"utils",function(){return H}),n.d(e,"positionElement",function(){return I}),n.d(e,"getDocumentElement",function(){return u}),n.d(e,"getWindow",function(){return f}),n.d(e,"getWindowViewPort",function(){return a}),n.d(e,"AlignPoint",function(){return d}),n.d(e,"Collision",function(){return A}),function(t){for(var e in t)F(e,t[e])}(e)}],r={},o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "1.8.0", | ||
"version": "1.9.0-dev.202111301350", | ||
"main": "dist/npm/main.js", | ||
@@ -19,3 +19,3 @@ "module": "dist/es/main.js", | ||
"lint": "gulp lint", | ||
"e2e:ci": "NO_SANDBOX=true ENV_BROWSER='Chrome_headless' gulp e2e", | ||
"e2e:ci": "CHROME_BIN=`which chrome || which chromium-browser` NO_SANDBOX=true ENV_BROWSER='Chrome_headless' gulp e2e", | ||
"semantic-release": "semantic-release pre && semantic-prerelease publish && semantic-release post" | ||
@@ -22,0 +22,0 @@ }, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
234596
121
2621
2