Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-popup-common

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-popup-common - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

4

dist/es/align.js
import point from './align-point';
export default function (options) {
var align = function (options) {
var anchorRect = options.anchorRect;

@@ -54,2 +54,4 @@ var anchorAlign = options.anchorAlign;

export default align;
//# sourceMappingURL=align.js.map

@@ -1,2 +0,2 @@

export default function(rect, location, isOffsetBody) {
export default function applyLocationOffset(rect, location, isOffsetBody) {
var top = rect.top;

@@ -3,0 +3,0 @@ var left = rect.left;

@@ -1,2 +0,2 @@

export default function (element) {
var boundingOffset = function (element) {
if (!element.getBoundingClientRect) {

@@ -25,2 +25,4 @@ return {

export default boundingOffset;
//# sourceMappingURL=bounding-offset.js.map

@@ -1,3 +0,5 @@

export default function (element) { return ( element.ownerDocument.documentElement ); };
var getDocument = function (element) { return ( element.ownerDocument.documentElement ); };
export default getDocument;
//# sourceMappingURL=document.js.map
import offsetParent from './offset-parent';
export default function (element) { return (offsetParent(element) === element.ownerDocument.body); };
var isBodyOffset = function (element) { return (offsetParent(element) === element.ownerDocument.body); };
export default isBodyOffset;
//# sourceMappingURL=is-body-offset.js.map
import documentElement from './document';
export default function (element) {
var offsetParent = function (element) {
var offsetParent = element.offsetParent;

@@ -13,2 +13,4 @@

export default offsetParent;
//# sourceMappingURL=offset-parent.js.map

@@ -20,3 +20,3 @@ var rectOfHiddenElement = function (element) {

export default function (element) {
var offset = function (element) {
var rect = element.getBoundingClientRect();

@@ -38,2 +38,4 @@ var left = rect.left;

export default offset;
//# sourceMappingURL=offset.js.map

@@ -5,3 +5,3 @@ import offsetParent from './offset-parent';

export default function (element) {
var position = function (element) {
var win = wnd(element);

@@ -30,2 +30,4 @@ var elementStyles = win.getComputedStyle(element);

export default position;
//# sourceMappingURL=position.js.map

@@ -1,2 +0,2 @@

export default function(rect, scroll) {
export default function removeScroll(rect, scroll) {
return {

@@ -3,0 +3,0 @@ top: rect.top - scroll.y,

@@ -43,3 +43,3 @@ import alignPoint from './align-point';

export default function (options) {
var restrictToView = function (options) {
var anchorRect = options.anchorRect;

@@ -103,2 +103,4 @@ var anchorAlign = options.anchorAlign;

export default restrictToView;
//# sourceMappingURL=restrict-to-view.js.map
import docElement from './document';
import wnd from './window';
export default function(element) {
export default function scrollPosition(element) {
var documentElement = docElement(element);

@@ -6,0 +6,0 @@ var win = wnd(element);

import wnd from './window';
export default function(element) {
export default function windowViewport(element) {
var win = wnd(element);

@@ -5,0 +5,0 @@

@@ -1,3 +0,5 @@

export default function (element) { return ( element.ownerDocument.defaultView ); };
var getWindow = function (element) { return ( element.ownerDocument.defaultView ); };
export default getWindow;
//# sourceMappingURL=window.js.map

@@ -65,3 +65,3 @@ 'use strict';

var applyLocationOffset = function(rect, location, isOffsetBody) {
function applyLocationOffset(rect, location, isOffsetBody) {
var top = rect.top;

@@ -81,3 +81,3 @@ var left = rect.left;

};
};
}

@@ -113,3 +113,3 @@ var boundingOffset = function (element) {

var docElement = function (element) { return ( element.ownerDocument.documentElement ); };
var getDocument = function (element) { return ( element.ownerDocument.documentElement ); };

@@ -123,3 +123,3 @@ var offsetParent = function (element) {

return offsetParent || docElement(element);
return offsetParent || getDocument(element);
};

@@ -148,3 +148,3 @@

var offsetRect = function (element) {
var offset = function (element) {
var rect = element.getBoundingClientRect();

@@ -166,8 +166,8 @@ var left = rect.left;

var wnd = function (element) { return ( element.ownerDocument.defaultView ); };
var getWindow = function (element) { return ( element.ownerDocument.defaultView ); };
var position = function (element) {
var win = wnd(element);
var win = getWindow(element);
var elementStyles = win.getComputedStyle(element);
var offset = offsetRect(element);
var offset$$1 = offset(element);
var parentElement = offsetParent(element);

@@ -179,3 +179,3 @@ var parentStyles = win.getComputedStyle(parentElement);

if (elementStyles.position !== "fixed" && parentElement !== element.ownerDocument.body) {
parentOffset = offsetRect(parentElement);
parentOffset = offset(parentElement);

@@ -187,10 +187,10 @@ parentOffset.top += parseInt(parentStyles.borderTopWidth, 10);

return {
top: offset.top - parentOffset.top - parseInt(elementStyles.marginTop, 10),
left: offset.left - parentOffset.left - parseInt(elementStyles.marginLeft, 10),
height: offset.height,
width: offset.width
top: offset$$1.top - parentOffset.top - parseInt(elementStyles.marginTop, 10),
left: offset$$1.left - parentOffset.left - parseInt(elementStyles.marginLeft, 10),
height: offset$$1.height,
width: offset$$1.width
};
};
var removeScroll = function(rect, scroll) {
function removeScroll(rect, scroll) {
return {

@@ -202,3 +202,3 @@ top: rect.top - scroll.y,

};
};
}

@@ -303,5 +303,5 @@ var fit = function(position, size, viewPortSize) {

var scrollPosition = function(element) {
var documentElement = docElement(element);
var win = wnd(element);
function scrollPosition(element) {
var documentElement = getDocument(element);
var win = getWindow(element);

@@ -312,6 +312,6 @@ return {

};
};
}
var windowViewport = function(element) {
var win = wnd(element);
function windowViewport(element) {
var win = getWindow(element);

@@ -322,3 +322,3 @@ return {

};
};
}

@@ -330,6 +330,6 @@ exports.align = align;

exports.Collision = collision;
exports.getDocumentElement = docElement;
exports.getDocumentElement = getDocument;
exports.isBodyOffset = isBodyOffset;
exports.offsetParent = offsetParent;
exports.offset = offsetRect;
exports.offset = offset;
exports.position = position;

@@ -339,5 +339,5 @@ exports.removeScroll = removeScroll;

exports.scrollPosition = scrollPosition;
exports.getWindow = wnd;
exports.getWindow = getWindow;
exports.getWindowViewPort = windowViewport;
//# sourceMappingURL=main.js.map
{
"name": "@progress/kendo-popup-common",
"description": "Kendo UI Popup common package",
"version": "0.3.2",
"version": "0.3.3",
"publishConfig": {

@@ -6,0 +6,0 @@ "registry": "https://registry.npm.telerik.com"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc