Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-base

Package Overview
Dependencies
Maintainers
3
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-base - npm Package Compare versions

Comparing version 20.2.38 to 20.2.39

ReadMe.md

2

bin/syncfusion-license.js
#! /usr/bin/env node
'use strict';function _0x48b9(_0xff7c27,_0x358bb1){var _0x348db2=_0x348d();return _0x48b9=function(_0x48b90d,_0x43142a){_0x48b90d=_0x48b90d-0x18b;var _0x235d20=_0x348db2[_0x48b90d];return _0x235d20;},_0x48b9(_0xff7c27,_0x358bb1);}var _0x2e31f6=_0x48b9;(function(_0x4da1c1,_0x12469d){var _0x512c06=_0x48b9,_0x9e56d8=_0x4da1c1();while(!![]){try{var _0x51a611=parseInt(_0x512c06(0x1ac))/0x1*(parseInt(_0x512c06(0x1a5))/0x2)+parseInt(_0x512c06(0x191))/0x3+-parseInt(_0x512c06(0x1a1))/0x4+parseInt(_0x512c06(0x1b0))/0x5*(parseInt(_0x512c06(0x194))/0x6)+parseInt(_0x512c06(0x19e))/0x7*(-parseInt(_0x512c06(0x18f))/0x8)+-parseInt(_0x512c06(0x196))/0x9+-parseInt(_0x512c06(0x192))/0xa*(-parseInt(_0x512c06(0x1ad))/0xb);if(_0x51a611===_0x12469d)break;else _0x9e56d8['push'](_0x9e56d8['shift']());}catch(_0x560fca){_0x9e56d8['push'](_0x9e56d8['shift']());}}}(_0x348d,0xc9bc3));var fs=global['fs']=global['fs']||require('fs');const args=process[_0x2e31f6(0x19c)][_0x2e31f6(0x19d)](0x2),envKey=process[_0x2e31f6(0x197)][_0x2e31f6(0x18b)];function _0x348d(){var _0x1ae4a6=['slice','3817989RsAQyM','readFileSync','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','3150056zaLEyl','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','currentPlatform','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','298EahxxH','fromCharCode','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','log','split','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','base64','967mQTiHR','4983869pJsiyY','./syncfusion-license.txt','toString','40345rfIOpG','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','charCodeAt','SYNCFUSION_LICENSE','binary','activate','replace','24PKpFGP','expiryDate','2659683BAigGA','60EbIdbz','(Error)\x20License\x20key\x20is\x20not\x20valid.','12CAiRSr','from','4636386eXyNUv','env','length','existsSync','writeFileSync','UTF8','argv'];_0x348d=function(){return _0x1ae4a6;};return _0x348d();}if(args==_0x2e31f6(0x18d)){var licKey='';if(fs[_0x2e31f6(0x199)](_0x2e31f6(0x1ae)))licKey=fs[_0x2e31f6(0x19f)](_0x2e31f6(0x1ae),_0x2e31f6(0x19b));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x2e31f6(0x1a9)](';'),pkey=[0x530000,0x790000,0x4e0000,0x630000,0x460000,0x750000,0x530000,0x690000,0x4f0000,0x6e0000,0x400000,0x440000,0x650000,0x760000,0x500000,0x6c0000,0x610000,0x740000,0x460000,0x6f0000,0x720000,0x6d0000],decryptedStr=[],resultArray=[];for(var i=0x0;i<licKeySplit[_0x2e31f6(0x198)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr['length'];i++,k++){k===pkey['length']&&(k=0x0);var c=decodeStr[_0x2e31f6(0x1b2)](i);buffr+=String[_0x2e31f6(0x1a6)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x2e31f6(0x1a9)](';');if(decryptedStr[_0x2e31f6(0x198)]>0x3){resultArray['push']({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x2e31f6(0x1a3)]+';'+resultArray[0x0]['version']+';'+resultArray[0x0][_0x2e31f6(0x190)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=['./node_modules/@syncfusion/ej2-base/src/validate-lic.js',_0x2e31f6(0x1b1),_0x2e31f6(0x1a0),_0x2e31f6(0x1a4)];for(var n=0x0;n<jsFiles[_0x2e31f6(0x198)];n++){if(fs[_0x2e31f6(0x199)](jsFiles[n])){var content=fs[_0x2e31f6(0x19f)](jsFiles[n],'UTF8');content=content[_0x2e31f6(0x18e)](/npxKeyReplace[^"]*/,'npxKeyReplace'+encryptedKey),fs[_0x2e31f6(0x19a)](jsFiles[n],content);}}console[_0x2e31f6(0x1a8)](_0x2e31f6(0x1a2));}else console['log'](_0x2e31f6(0x193));}}else console['log'](_0x2e31f6(0x1a7));}else console[_0x2e31f6(0x1a8)](_0x2e31f6(0x1aa));function getEncryptedKey(_0x296b88){var _0x196a7a=_0x2e31f6,_0x51b2b1='',_0x6ae4c9=[],_0x4de171=[],_0x45e942=new Array();for(var _0x5480d9=0x0;_0x5480d9<_0x296b88['length'];_0x5480d9++){_0x6ae4c9[_0x5480d9]=_0x296b88[_0x5480d9][_0x196a7a(0x1b2)](0x0);}for(var _0x3b02c4=0x0,_0x35ddf8=0x41;_0x3b02c4<0x1a;_0x3b02c4++,_0x35ddf8++){_0x4de171[_0x3b02c4]=String[_0x196a7a(0x1a6)](_0x35ddf8);}var _0x701d80=Math['floor'](Math['random']()*(_0x4de171[_0x196a7a(0x198)]-0x1-0x0+0x1)+0x0),_0x2d70eb=_0x4de171[_0x701d80][_0x196a7a(0x1b2)](0x0);for(var _0x5480d9=0x0;_0x5480d9<_0x296b88[_0x196a7a(0x198)];_0x5480d9++){_0x45e942[_0x5480d9]=parseInt(_0x6ae4c9[_0x5480d9])+parseInt(_0x4de171[_0x701d80][_0x196a7a(0x1b2)](0x0));}_0x45e942[_0x6ae4c9['length']]=_0x2d70eb;for(var _0x5480d9=0x0;_0x5480d9<_0x45e942['length'];_0x5480d9++){_0x51b2b1+=String['fromCharCode'](_0x45e942[_0x5480d9]);}return Buffer['from'](_0x51b2b1,'ascii')[_0x196a7a(0x1af)](_0x196a7a(0x1ab));}function getDecryptedData(_0x1f21cc){var _0x21e5c5=_0x2e31f6;try{return Buffer[_0x21e5c5(0x195)](_0x1f21cc,_0x21e5c5(0x1ab))[_0x21e5c5(0x1af)](_0x21e5c5(0x18c));}catch(_0x377a20){return'';}};process['exit'](0x0);
'use strict';var _0x490e93=_0x57d7;(function(_0x425456,_0x29c3c4){var _0x179aaf=_0x57d7,_0x490908=_0x425456();while(!![]){try{var _0x81bcd8=parseInt(_0x179aaf(0x1e7))/0x1*(parseInt(_0x179aaf(0x1d5))/0x2)+parseInt(_0x179aaf(0x1c5))/0x3+-parseInt(_0x179aaf(0x1c6))/0x4*(parseInt(_0x179aaf(0x1dc))/0x5)+-parseInt(_0x179aaf(0x1d1))/0x6+-parseInt(_0x179aaf(0x1cd))/0x7+parseInt(_0x179aaf(0x1e0))/0x8*(-parseInt(_0x179aaf(0x1c2))/0x9)+parseInt(_0x179aaf(0x1de))/0xa;if(_0x81bcd8===_0x29c3c4)break;else _0x490908['push'](_0x490908['shift']());}catch(_0x6ab7a7){_0x490908['push'](_0x490908['shift']());}}}(_0x12ef,0xbea36));var fs=global['fs']=global['fs']||require('fs');function _0x12ef(){var _0x388e4d=['Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','readFileSync','log','202cNBPrR','fromCharCode','expiryDate','ascii','split','writeFileSync','exit','8790WwCaOf','slice','38240550JwgQYU','charCodeAt','136616fZtTNj','existsSync','toString','base64','argv','SYNCFUSION_LICENSE','binary','2063YYsElM','./syncfusion-license.txt','UTF8','639LwAVzR','floor','replace','1563090CARdtS','2332yGHrFH','random','from','env','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','currentPlatform','push','58254UDeVXP','length','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','9161346gmNjZN'];_0x12ef=function(){return _0x388e4d;};return _0x12ef();}const args=process[_0x490e93(0x1e4)][_0x490e93(0x1dd)](0x2),envKey=process[_0x490e93(0x1c9)][_0x490e93(0x1e5)];if(args=='activate'){var licKey='';if(fs[_0x490e93(0x1e1)](_0x490e93(0x1e8)))licKey=fs[_0x490e93(0x1d3)](_0x490e93(0x1e8),_0x490e93(0x1c1));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey['split'](';'),pkey=[0x530000,0x790000,0x4e0000,0x630000,0x460000,0x750000,0x530000,0x690000,0x4f0000,0x6e0000,0x400000,0x440000,0x650000,0x760000,0x500000,0x6c0000,0x610000,0x740000,0x460000,0x6f0000,0x720000,0x6d0000],decryptedStr=[],resultArray=[];for(var i=0x0;i<licKeySplit[_0x490e93(0x1ce)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr['length'];i++,k++){k===pkey[_0x490e93(0x1ce)]&&(k=0x0);var c=decodeStr[_0x490e93(0x1df)](i);buffr+=String['fromCharCode'](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x490e93(0x1d9)](';');if(decryptedStr[_0x490e93(0x1ce)]>0x3){resultArray[_0x490e93(0x1cc)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x490e93(0x1cb)]+';'+resultArray[0x0]['version']+';'+resultArray[0x0][_0x490e93(0x1d7)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=['./node_modules/@syncfusion/ej2-base/src/validate-lic.js',_0x490e93(0x1cf),'./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js',_0x490e93(0x1ca)];for(var n=0x0;n<jsFiles['length'];n++){if(fs[_0x490e93(0x1e1)](jsFiles[n])){var content=fs[_0x490e93(0x1d3)](jsFiles[n],'UTF8');content=content[_0x490e93(0x1c4)](/npxKeyReplace[^"]*/,'npxKeyReplace'+encryptedKey),fs[_0x490e93(0x1da)](jsFiles[n],content);}}console[_0x490e93(0x1d4)]('(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.');}else console['log']('(Error)\x20License\x20key\x20is\x20not\x20valid.');}}else console[_0x490e93(0x1d4)](_0x490e93(0x1d2));}else console[_0x490e93(0x1d4)](_0x490e93(0x1d0));function getEncryptedKey(_0xe25b2c){var _0x1c4d7d=_0x490e93,_0x5b81ca='',_0x560d=[],_0x1aa0cc=[],_0x5a116c=new Array();for(var _0x27d99e=0x0;_0x27d99e<_0xe25b2c['length'];_0x27d99e++){_0x560d[_0x27d99e]=_0xe25b2c[_0x27d99e][_0x1c4d7d(0x1df)](0x0);}for(var _0x17f533=0x0,_0x48f784=0x41;_0x17f533<0x1a;_0x17f533++,_0x48f784++){_0x1aa0cc[_0x17f533]=String[_0x1c4d7d(0x1d6)](_0x48f784);}var _0x3b7bf9=Math[_0x1c4d7d(0x1c3)](Math[_0x1c4d7d(0x1c7)]()*(_0x1aa0cc['length']-0x1-0x0+0x1)+0x0),_0x3abc74=_0x1aa0cc[_0x3b7bf9][_0x1c4d7d(0x1df)](0x0);for(var _0x27d99e=0x0;_0x27d99e<_0xe25b2c[_0x1c4d7d(0x1ce)];_0x27d99e++){_0x5a116c[_0x27d99e]=parseInt(_0x560d[_0x27d99e])+parseInt(_0x1aa0cc[_0x3b7bf9][_0x1c4d7d(0x1df)](0x0));}_0x5a116c[_0x560d['length']]=_0x3abc74;for(var _0x27d99e=0x0;_0x27d99e<_0x5a116c[_0x1c4d7d(0x1ce)];_0x27d99e++){_0x5b81ca+=String[_0x1c4d7d(0x1d6)](_0x5a116c[_0x27d99e]);}return Buffer[_0x1c4d7d(0x1c8)](_0x5b81ca,_0x1c4d7d(0x1d8))[_0x1c4d7d(0x1e2)](_0x1c4d7d(0x1e3));}function _0x57d7(_0x1c58c6,_0x2678ba){var _0x12efdd=_0x12ef();return _0x57d7=function(_0x57d70c,_0xac5d24){_0x57d70c=_0x57d70c-0x1c1;var _0x14a6a1=_0x12efdd[_0x57d70c];return _0x14a6a1;},_0x57d7(_0x1c58c6,_0x2678ba);}function getDecryptedData(_0x547484){var _0x4a50b0=_0x490e93;try{return Buffer[_0x4a50b0(0x1c8)](_0x547484,'base64')[_0x4a50b0(0x1e2)](_0x4a50b0(0x1e6));}catch(_0x55f029){return'';}};process[_0x490e93(0x1db)](0x0);

@@ -9,2 +9,10 @@ # Changelog

- `#I372767`, `#I370308` - The empty space issue in `Treeview` component while dragging the element has been resolved.
## 20.2.38 (2022-07-12)
### Common
#### Bug Fixes
- `#I383984` - The issue with the "Unwanted swipe event trigger in Firefox browser" has been resolved.

@@ -11,0 +19,0 @@

@@ -1,10 +0,1 @@

/*!
* filename: index.d.ts
* version : 20.2.38
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
import * as _base from '@syncfusion/ej2-base';

@@ -11,0 +2,0 @@

{
"_from": "@syncfusion/ej2-base@*",
"_id": "@syncfusion/ej2-base@20.2.36",
"_inBundle": false,
"_integrity": "sha512-PVVdLzKeoDUW4CQ7OC3O+gWeFMLnll6YsVnM/pJkUYo7ny/CZ6FvlHF7YZvTqcUCM6ndZebEom30WKk4YtKecA==",
"_location": "/@syncfusion/ej2-base",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@syncfusion/ej2-base@*",
"name": "@syncfusion/ej2-base",
"escapedName": "@syncfusion%2fej2-base",
"scope": "@syncfusion",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/",
"/@syncfusion/ej2",
"/@syncfusion/ej2-angular-barcode-generator",
"/@syncfusion/ej2-angular-base",
"/@syncfusion/ej2-angular-buttons",
"/@syncfusion/ej2-angular-calendars",
"/@syncfusion/ej2-angular-charts",
"/@syncfusion/ej2-angular-circulargauge",
"/@syncfusion/ej2-angular-diagrams",
"/@syncfusion/ej2-angular-documenteditor",
"/@syncfusion/ej2-angular-dropdowns",
"/@syncfusion/ej2-angular-filemanager",
"/@syncfusion/ej2-angular-gantt",
"/@syncfusion/ej2-angular-grids",
"/@syncfusion/ej2-angular-heatmap",
"/@syncfusion/ej2-angular-inplace-editor",
"/@syncfusion/ej2-angular-inputs",
"/@syncfusion/ej2-angular-kanban",
"/@syncfusion/ej2-angular-layouts",
"/@syncfusion/ej2-angular-lineargauge",
"/@syncfusion/ej2-angular-lists",
"/@syncfusion/ej2-angular-maps",
"/@syncfusion/ej2-angular-navigations",
"/@syncfusion/ej2-angular-notifications",
"/@syncfusion/ej2-angular-pdfviewer",
"/@syncfusion/ej2-angular-pivotview",
"/@syncfusion/ej2-angular-popups",
"/@syncfusion/ej2-angular-progressbar",
"/@syncfusion/ej2-angular-querybuilder",
"/@syncfusion/ej2-angular-richtexteditor",
"/@syncfusion/ej2-angular-schedule",
"/@syncfusion/ej2-angular-splitbuttons",
"/@syncfusion/ej2-angular-spreadsheet",
"/@syncfusion/ej2-angular-treegrid",
"/@syncfusion/ej2-angular-treemap",
"/@syncfusion/ej2-barcode-generator",
"/@syncfusion/ej2-buttons",
"/@syncfusion/ej2-calendars",
"/@syncfusion/ej2-charts",
"/@syncfusion/ej2-circulargauge",
"/@syncfusion/ej2-data",
"/@syncfusion/ej2-diagrams",
"/@syncfusion/ej2-documenteditor",
"/@syncfusion/ej2-drawings",
"/@syncfusion/ej2-dropdowns",
"/@syncfusion/ej2-excel-export",
"/@syncfusion/ej2-filemanager",
"/@syncfusion/ej2-gantt",
"/@syncfusion/ej2-grids",
"/@syncfusion/ej2-heatmap",
"/@syncfusion/ej2-inplace-editor",
"/@syncfusion/ej2-inputs",
"/@syncfusion/ej2-kanban",
"/@syncfusion/ej2-layouts",
"/@syncfusion/ej2-lineargauge",
"/@syncfusion/ej2-lists",
"/@syncfusion/ej2-maps",
"/@syncfusion/ej2-navigations",
"/@syncfusion/ej2-notifications",
"/@syncfusion/ej2-pdfviewer",
"/@syncfusion/ej2-pivotview",
"/@syncfusion/ej2-popups",
"/@syncfusion/ej2-progressbar",
"/@syncfusion/ej2-querybuilder",
"/@syncfusion/ej2-react-barcode-generator",
"/@syncfusion/ej2-react-base",
"/@syncfusion/ej2-react-buttons",
"/@syncfusion/ej2-react-calendars",
"/@syncfusion/ej2-react-charts",
"/@syncfusion/ej2-react-circulargauge",
"/@syncfusion/ej2-react-diagrams",
"/@syncfusion/ej2-react-documenteditor",
"/@syncfusion/ej2-react-dropdowns",
"/@syncfusion/ej2-react-filemanager",
"/@syncfusion/ej2-react-gantt",
"/@syncfusion/ej2-react-grids",
"/@syncfusion/ej2-react-heatmap",
"/@syncfusion/ej2-react-inplace-editor",
"/@syncfusion/ej2-react-inputs",
"/@syncfusion/ej2-react-kanban",
"/@syncfusion/ej2-react-layouts",
"/@syncfusion/ej2-react-lineargauge",
"/@syncfusion/ej2-react-lists",
"/@syncfusion/ej2-react-maps",
"/@syncfusion/ej2-react-navigations",
"/@syncfusion/ej2-react-notifications",
"/@syncfusion/ej2-react-pdfviewer",
"/@syncfusion/ej2-react-pivotview",
"/@syncfusion/ej2-react-popups",
"/@syncfusion/ej2-react-progressbar",
"/@syncfusion/ej2-react-querybuilder",
"/@syncfusion/ej2-react-richtexteditor",
"/@syncfusion/ej2-react-schedule",
"/@syncfusion/ej2-react-splitbuttons",
"/@syncfusion/ej2-react-spreadsheet",
"/@syncfusion/ej2-react-treegrid",
"/@syncfusion/ej2-react-treemap",
"/@syncfusion/ej2-richtexteditor",
"/@syncfusion/ej2-schedule",
"/@syncfusion/ej2-splitbuttons",
"/@syncfusion/ej2-spreadsheet",
"/@syncfusion/ej2-svg-base",
"/@syncfusion/ej2-treegrid",
"/@syncfusion/ej2-treemap",
"/@syncfusion/ej2-vue-barcode-generator",
"/@syncfusion/ej2-vue-base",
"/@syncfusion/ej2-vue-buttons",
"/@syncfusion/ej2-vue-calendars",
"/@syncfusion/ej2-vue-charts",
"/@syncfusion/ej2-vue-circulargauge",
"/@syncfusion/ej2-vue-diagrams",
"/@syncfusion/ej2-vue-documenteditor",
"/@syncfusion/ej2-vue-dropdowns",
"/@syncfusion/ej2-vue-filemanager",
"/@syncfusion/ej2-vue-gantt",
"/@syncfusion/ej2-vue-grids",
"/@syncfusion/ej2-vue-heatmap",
"/@syncfusion/ej2-vue-inplace-editor",
"/@syncfusion/ej2-vue-inputs",
"/@syncfusion/ej2-vue-kanban",
"/@syncfusion/ej2-vue-layouts",
"/@syncfusion/ej2-vue-lineargauge",
"/@syncfusion/ej2-vue-lists",
"/@syncfusion/ej2-vue-maps",
"/@syncfusion/ej2-vue-navigations",
"/@syncfusion/ej2-vue-notifications",
"/@syncfusion/ej2-vue-pdfviewer",
"/@syncfusion/ej2-vue-pivotview",
"/@syncfusion/ej2-vue-popups",
"/@syncfusion/ej2-vue-progressbar",
"/@syncfusion/ej2-vue-querybuilder",
"/@syncfusion/ej2-vue-richtexteditor",
"/@syncfusion/ej2-vue-schedule",
"/@syncfusion/ej2-vue-splitbuttons",
"/@syncfusion/ej2-vue-spreadsheet",
"/@syncfusion/ej2-vue-treegrid",
"/@syncfusion/ej2-vue-treemap"
],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.2.36.tgz",
"_shasum": "32d82d3499a3fb502a4e982ec6725dc535c1f06a",
"_spec": "@syncfusion/ej2-base@*",
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
"author": {

@@ -213,5 +54,5 @@ "name": "Syncfusion Inc."

},
"sideEffects": true,
"typings": "index.d.ts",
"version": "20.2.38",
"sideEffects": true
}
"version": "20.2.39"
}

@@ -334,2 +334,5 @@ import { Base } from './base';

private intDrag;
private getScrollParent;
private getScrollPosition;
private getPathElements;
private triggerOutFunction;

@@ -336,0 +339,0 @@ private getDragPosition;

@@ -513,19 +513,26 @@ var __extends = (this && this.__extends) || (function () {

}
if (this.helperElement.classList.contains('e-treeview')) {
var body = document.body;
var html = document.documentElement;
var tempHeight = Math.max(body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
var tempWidth = Math.max(body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
if (draEleTop > tempHeight) {
draEleTop = tempHeight;
}
if (draEleLeft > tempWidth) {
draEleLeft = tempWidth;
}
}
var dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
setStyleAttribute(helperElement, this.getDragPosition(dragValue));
if (!this.elementInViewport(helperElement) && this.enableAutoScroll) {
if (!this.elementInViewport(helperElement) && this.enableAutoScroll && !this.helperElement.classList.contains('e-treeview')) {
this.helperElement.scrollIntoView();
}
var elements = document.querySelectorAll(':hover');
if (this.enableAutoScroll && this.helperElement.classList.contains('e-treeview')) {
if (elements.length === 0) {
elements = this.getPathElements(evt);
}
/* tslint:disable no-any */
var scrollParent = this.getScrollParent(elements, false);
if (this.elementInViewport(this.helperElement)) {
this.getScrollPosition(scrollParent, draEleTop);
}
else if (!this.elementInViewport(this.helperElement)) {
elements = [].slice.call(document.querySelectorAll(':hover'));
if (elements.length === 0) {
elements = this.getPathElements(evt);
}
scrollParent = this.getScrollParent(elements, true);
this.getScrollPosition(scrollParent, draEleTop);
}
}
this.dragProcessStarted = true;

@@ -539,2 +546,44 @@ this.prevLeft = left;

};
/* tslint:disable no-any */
Draggable.prototype.getScrollParent = function (node, reverse) {
/* tslint:disable no-any */
var nodeEl = reverse ? node.reverse() : node;
var hasScroll;
for (var i = nodeEl.length - 1; i >= 0; i--) {
hasScroll = window.getComputedStyle(nodeEl[i])['overflow-y'];
if ((hasScroll === 'auto' || hasScroll === 'scroll')
&& nodeEl[i].scrollHeight > nodeEl[i].clientHeight) {
return nodeEl[i];
}
}
hasScroll = window.getComputedStyle(document.scrollingElement)['overflow-y'];
if (hasScroll === 'visible') {
document.scrollingElement.style.overflow = 'auto';
return document.scrollingElement;
}
};
Draggable.prototype.getScrollPosition = function (nodeEle, draEleTop) {
if (nodeEle && nodeEle === document.scrollingElement) {
if ((nodeEle.clientHeight - nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight) < draEleTop
&& nodeEle.getBoundingClientRect().height > draEleTop) {
nodeEle.scrollTop += this.helperElement.clientHeight;
}
else if (nodeEle.scrollHeight - nodeEle.clientHeight > draEleTop) {
nodeEle.scrollTop -= this.helperElement.clientHeight;
}
}
else if (nodeEle && nodeEle !== document.scrollingElement) {
if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight) < draEleTop) {
nodeEle.scrollTop += this.helperElement.clientHeight;
}
else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight)) {
nodeEle.scrollTop -= this.helperElement.clientHeight;
}
}
};
Draggable.prototype.getPathElements = function (evt) {
var elementTop = evt.clientX > 0 ? evt.clientX : 0;
var elementLeft = evt.clientY > 0 ? evt.clientY : 0;
return document.elementsFromPoint(elementTop, elementLeft);
};
Draggable.prototype.triggerOutFunction = function (evt, eleObj) {

@@ -541,0 +590,0 @@ this.hoverObject.instance.intOut(evt, eleObj.target);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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