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 21.2.9 to 22.1.34

src/fetch.d.ts

1

.eslintrc.json

@@ -40,2 +40,3 @@ {

"security/detect-new-buffer":"error",
"security/detect-bidi-characters":"error",
"@typescript-eslint/no-inferrable-types": "off",

@@ -42,0 +43,0 @@ "@typescript-eslint/ban-types": ["warn", {

2

bin/syncfusion-license.js
#! /usr/bin/env node
'use strict';var _0x387a37=_0x2222;(function(_0x56268e,_0x58a463){var _0x19f7d4=_0x2222,_0x217540=_0x56268e();while(!![]){try{var _0x21af07=-parseInt(_0x19f7d4(0x1c9))/0x1+-parseInt(_0x19f7d4(0x1bb))/0x2*(parseInt(_0x19f7d4(0x1c1))/0x3)+-parseInt(_0x19f7d4(0x1b8))/0x4+parseInt(_0x19f7d4(0x1c6))/0x5+parseInt(_0x19f7d4(0x1ce))/0x6+-parseInt(_0x19f7d4(0x1be))/0x7+-parseInt(_0x19f7d4(0x1b9))/0x8*(-parseInt(_0x19f7d4(0x1c3))/0x9);if(_0x21af07===_0x58a463)break;else _0x217540['push'](_0x217540['shift']());}catch(_0x5dcb23){_0x217540['push'](_0x217540['shift']());}}}(_0x6a76,0x27dff));var fs=global['fs']=global['fs']||require('fs');const args=process['argv']['slice'](0x2),envKey=process['env']['SYNCFUSION_LICENSE'];if(args==_0x387a37(0x1b4)){var licKey='';if(fs['existsSync'](_0x387a37(0x1d2)))licKey=fs[_0x387a37(0x1cc)]('./syncfusion-license.txt',_0x387a37(0x1ba));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x387a37(0x1c0)](';'),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[_0x387a37(0x1c7)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x387a37(0x1c7)];i++,k++){k===pkey['length']&&(k=0x0);var c=decodeStr['charCodeAt'](i);buffr+=String[_0x387a37(0x1bd)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x387a37(0x1c0)](';');if(decryptedStr[_0x387a37(0x1c7)]>0x3){resultArray[_0x387a37(0x1c2)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x387a37(0x1bc)]+';'+resultArray[0x0]['version']+';'+resultArray[0x0][_0x387a37(0x1b1)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x387a37(0x1c8),_0x387a37(0x1b3),_0x387a37(0x1d3),'./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js'];for(var n=0x0;n<jsFiles[_0x387a37(0x1c7)];n++){if(fs[_0x387a37(0x1c5)](jsFiles[n])){var content=fs[_0x387a37(0x1cc)](jsFiles[n],_0x387a37(0x1ba)),regex=jsFiles[n]==='./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js'?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content[_0x387a37(0x1cd)](regex,_0x387a37(0x1b6)+encryptedKey),fs[_0x387a37(0x1b7)](jsFiles[n],content);}}console[_0x387a37(0x1cb)](_0x387a37(0x1d0));}else console[_0x387a37(0x1cb)]('(Error)\x20License\x20key\x20is\x20not\x20valid.');}}else console[_0x387a37(0x1cb)](_0x387a37(0x1cf));}else console['log']('Supported\x20command:\x20npx\x20syncfusion-license\x20activate');function getEncryptedKey(_0x5b0cac){var _0x56fae2=_0x387a37,_0x3908ca='',_0x2a5736=[],_0x225705=[],_0x3e6912=new Array();for(var _0x2e96e2=0x0;_0x2e96e2<_0x5b0cac[_0x56fae2(0x1c7)];_0x2e96e2++){_0x2a5736[_0x2e96e2]=_0x5b0cac[_0x2e96e2][_0x56fae2(0x1c4)](0x0);}for(var _0xe038bf=0x0,_0xc4ba36=0x41;_0xe038bf<0x1a;_0xe038bf++,_0xc4ba36++){_0x225705[_0xe038bf]=String[_0x56fae2(0x1bd)](_0xc4ba36);}var _0x4da1af=Math['floor'](Math[_0x56fae2(0x1ca)]()*(_0x225705[_0x56fae2(0x1c7)]-0x1-0x0+0x1)+0x0),_0x2c8ce5=_0x225705[_0x4da1af]['charCodeAt'](0x0);for(var _0x2e96e2=0x0;_0x2e96e2<_0x5b0cac['length'];_0x2e96e2++){_0x3e6912[_0x2e96e2]=parseInt(_0x2a5736[_0x2e96e2])+parseInt(_0x225705[_0x4da1af][_0x56fae2(0x1c4)](0x0));}_0x3e6912[_0x2a5736[_0x56fae2(0x1c7)]]=_0x2c8ce5;for(var _0x2e96e2=0x0;_0x2e96e2<_0x3e6912[_0x56fae2(0x1c7)];_0x2e96e2++){_0x3908ca+=String[_0x56fae2(0x1bd)](_0x3e6912[_0x2e96e2]);}return Buffer[_0x56fae2(0x1b5)](_0x3908ca,'ascii')[_0x56fae2(0x1d1)](_0x56fae2(0x1b2));}function getDecryptedData(_0x30d475){var _0x1cfb8b=_0x387a37;try{return Buffer['from'](_0x30d475,_0x1cfb8b(0x1b2))[_0x1cfb8b(0x1d1)]('binary');}catch(_0x164c89){return'';}};function _0x2222(_0x37bfbe,_0x39c1cb){var _0x6a76fd=_0x6a76();return _0x2222=function(_0x2222a6,_0x1b8ae1){_0x2222a6=_0x2222a6-0x1b1;var _0x5d65e7=_0x6a76fd[_0x2222a6];return _0x5d65e7;},_0x2222(_0x37bfbe,_0x39c1cb);}process[_0x387a37(0x1bf)](0x0);function _0x6a76(){var _0x2bf0c5=['./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','activate','from','npxKeyReplace','writeFileSync','833368mtFXRE','4304FbdPjw','UTF8','6jKyCxo','currentPlatform','fromCharCode','357014ArIGHq','exit','split','84669azwyBE','push','2628EwXmXd','charCodeAt','existsSync','939935gFPFsr','length','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','153377AyyOQd','random','log','readFileSync','replace','1893804OaxLuT','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','toString','./syncfusion-license.txt','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','expiryDate','base64'];_0x6a76=function(){return _0x2bf0c5;};return _0x6a76();}
'use strict';function _0x1ac7(){var _0x5897e6=['random','exit','2780xtYpnK','ascii','(Error)\x20License\x20key\x20is\x20not\x20valid.','2790MvXbLr','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','replace','length','2193877dKJyvE','8LEXNah','expiryDate','slice','npxKeyReplace','859082xVCqKo','from','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','95664rkhVLV','15618uHwLQH','base64','log','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','existsSync','428080CVcDjy','writeFileSync','./syncfusion-license.txt','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','20ghGrSN','40104lXirIl','binary','SYNCFUSION_LICENSE','version','UTF8','24HAXxpL','fromCharCode','1Flrgdj','currentPlatform','readFileSync','toString','962MnRzPt','argv','5827591hkgmjX','activate','split','charCodeAt'];_0x1ac7=function(){return _0x5897e6;};return _0x1ac7();}var _0x2c4b97=_0x485f;function _0x485f(_0x397482,_0x392da8){var _0x1ac77c=_0x1ac7();return _0x485f=function(_0x485fe7,_0x5038a6){_0x485fe7=_0x485fe7-0xc3;var _0x230f96=_0x1ac77c[_0x485fe7];return _0x230f96;},_0x485f(_0x397482,_0x392da8);}(function(_0x3ff838,_0x4101c9){var _0x263b83=_0x485f,_0x7d0450=_0x3ff838();while(!![]){try{var _0x535059=parseInt(_0x263b83(0xcd))/0x1*(parseInt(_0x263b83(0xf0))/0x2)+-parseInt(_0x263b83(0xea))/0x3*(-parseInt(_0x263b83(0xc5))/0x4)+-parseInt(_0x263b83(0xdc))/0x5*(parseInt(_0x263b83(0xeb))/0x6)+parseInt(_0x263b83(0xe0))/0x7*(-parseInt(_0x263b83(0xe1))/0x8)+-parseInt(_0x263b83(0xc6))/0x9*(parseInt(_0x263b83(0xd9))/0xa)+parseInt(_0x263b83(0xd3))/0xb*(-parseInt(_0x263b83(0xcb))/0xc)+parseInt(_0x263b83(0xd1))/0xd*(parseInt(_0x263b83(0xe5))/0xe);if(_0x535059===_0x4101c9)break;else _0x7d0450['push'](_0x7d0450['shift']());}catch(_0x1c109a){_0x7d0450['push'](_0x7d0450['shift']());}}}(_0x1ac7,0xcf8cf));var fs=global['fs']=global['fs']||require('fs');const args=process[_0x2c4b97(0xd2)][_0x2c4b97(0xe3)](0x2),envKey=process['env'][_0x2c4b97(0xc8)];if(args==_0x2c4b97(0xd4)){var licKey='';if(fs[_0x2c4b97(0xef)](_0x2c4b97(0xc3)))licKey=fs[_0x2c4b97(0xcf)](_0x2c4b97(0xc3),_0x2c4b97(0xca));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x2c4b97(0xd5)](';'),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[_0x2c4b97(0xdf)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x2c4b97(0xdf)];i++,k++){k===pkey[_0x2c4b97(0xdf)]&&(k=0x0);var c=decodeStr[_0x2c4b97(0xd6)](i);buffr+=String[_0x2c4b97(0xcc)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x2c4b97(0xd5)](';');if(decryptedStr[_0x2c4b97(0xdf)]>0x3){resultArray['push']({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x2c4b97(0xce)]+';'+resultArray[0x0][_0x2c4b97(0xc9)]+';'+resultArray[0x0][_0x2c4b97(0xe2)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x2c4b97(0xee),_0x2c4b97(0xe9),_0x2c4b97(0xdd),_0x2c4b97(0xc4)];for(var n=0x0;n<jsFiles['length'];n++){if(fs[_0x2c4b97(0xef)](jsFiles[n])){var content=fs['readFileSync'](jsFiles[n],_0x2c4b97(0xca)),regex=jsFiles[n]===_0x2c4b97(0xc4)?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content[_0x2c4b97(0xde)](regex,_0x2c4b97(0xe4)+encryptedKey),fs[_0x2c4b97(0xf1)](jsFiles[n],content);}}console[_0x2c4b97(0xed)]('(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.');}else console['log'](_0x2c4b97(0xdb));}}else console[_0x2c4b97(0xed)](_0x2c4b97(0xe8));}else console['log'](_0x2c4b97(0xe7));function getEncryptedKey(_0x3b0568){var _0x54b567=_0x2c4b97,_0x4d9ef3='',_0xac5e67=[],_0x33d6a0=[],_0x99bd29=new Array();for(var _0xc6965f=0x0;_0xc6965f<_0x3b0568[_0x54b567(0xdf)];_0xc6965f++){_0xac5e67[_0xc6965f]=_0x3b0568[_0xc6965f][_0x54b567(0xd6)](0x0);}for(var _0x53d67a=0x0,_0x2000f0=0x41;_0x53d67a<0x1a;_0x53d67a++,_0x2000f0++){_0x33d6a0[_0x53d67a]=String[_0x54b567(0xcc)](_0x2000f0);}var _0x3135a9=Math['floor'](Math[_0x54b567(0xd7)]()*(_0x33d6a0[_0x54b567(0xdf)]-0x1-0x0+0x1)+0x0),_0x4876b8=_0x33d6a0[_0x3135a9][_0x54b567(0xd6)](0x0);for(var _0xc6965f=0x0;_0xc6965f<_0x3b0568[_0x54b567(0xdf)];_0xc6965f++){_0x99bd29[_0xc6965f]=parseInt(_0xac5e67[_0xc6965f])+parseInt(_0x33d6a0[_0x3135a9]['charCodeAt'](0x0));}_0x99bd29[_0xac5e67[_0x54b567(0xdf)]]=_0x4876b8;for(var _0xc6965f=0x0;_0xc6965f<_0x99bd29[_0x54b567(0xdf)];_0xc6965f++){_0x4d9ef3+=String[_0x54b567(0xcc)](_0x99bd29[_0xc6965f]);}return Buffer[_0x54b567(0xe6)](_0x4d9ef3,_0x54b567(0xda))[_0x54b567(0xd0)](_0x54b567(0xec));}function getDecryptedData(_0x36259e){var _0x5d9cd9=_0x2c4b97;try{return Buffer[_0x5d9cd9(0xe6)](_0x36259e,_0x5d9cd9(0xec))[_0x5d9cd9(0xd0)](_0x5d9cd9(0xc7));}catch(_0x2eddfd){return'';}};process[_0x2c4b97(0xd8)](0x0);

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

#### New Features
- Provided the TypeScript 5 compatible support for the EJ2 components.
## 21.2.9 (2023-06-06)
### Common
#### Bug Fixes

@@ -9,0 +17,0 @@

/*!
* filename: index.d.ts
* version : 21.2.9
* version : 22.1.34
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-base@*",
"_id": "@syncfusion/ej2-base@21.2.3",
"_id": "@syncfusion/ej2-base@18.86.0",
"_inBundle": false,
"_integrity": "sha512-hSMckPhNUWpp/eJF9KvVS1Qe0ZifTjL1dS7zL7Kx6XenRRj5ijIIuOOll6uG7dyrrh85n2GdzW0Wm3krjLeClA==",
"_integrity": "sha512-py1u8z6+CRIWrM8Z7XbLfQKjzPnlvYrGRb2bQLi1DGEOh/63W22CT8+iizCQK4azEvvlsbSwwpYY4X65EbFYTQ==",
"_location": "/@syncfusion/ej2-base",

@@ -22,19 +22,37 @@ "_phantomChildren": {},

"/@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-image-editor",
"/@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-ribbon",
"/@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",

@@ -70,19 +88,37 @@ "/@syncfusion/ej2-buttons",

"/@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-image-editor",
"/@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-ribbon",
"/@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-ribbon",

@@ -96,22 +132,40 @@ "/@syncfusion/ej2-richtexteditor",

"/@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-image-editor",
"/@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-ribbon",
"/@syncfusion/ej2-vue-richtexteditor",
"/@syncfusion/ej2-vue-schedule",
"/@syncfusion/ej2-vue-splitbuttons",
"/@syncfusion/ej2-vue-spreadsheet",
"/@syncfusion/ej2-vue-treegrid"
"/@syncfusion/ej2-vue-treegrid",
"/@syncfusion/ej2-vue-treemap"
],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-21.2.3.tgz",
"_shasum": "48bdb1ba57d2b5bfbaec4a155a849ebf17576c12",
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-base/-/ej2-base-18.86.0.tgz",
"_shasum": "640ad9caeb3bc6de349ee3d714ab2301f6460df7",
"_spec": "@syncfusion/ej2-base@*",

@@ -130,3 +184,3 @@ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",

"dependencies": {
"@syncfusion/ej2-icons": "~21.2.3"
"@syncfusion/ej2-icons": "~22.1.34"
},

@@ -172,4 +226,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "21.2.9",
"version": "22.1.34",
"sideEffects": true
}

@@ -425,2 +425,5 @@ var __extends = (this && this.__extends) || (function () {

if (this.dragArea) {
if (this.enableAutoScroll) {
this.setDragArea();
}
if (this.pageX !== pagex || this.skipDistanceCheck) {

@@ -427,0 +430,0 @@ var helperWidth = helperElement.offsetWidth + (parseFloat(styles.marginLeft)

@@ -6,2 +6,3 @@ /**

export * from './ajax';
export * from './fetch';
export * from './animation';

@@ -8,0 +9,0 @@ export * from './animation-model';

@@ -6,2 +6,3 @@ /**

export * from './ajax';
export * from './fetch';
export * from './animation';

@@ -8,0 +9,0 @@ export * from './base';

@@ -113,3 +113,3 @@ import { isUndefined, throwError, isNullOrUndefined, extend, isBlazor, getValue } from '../util';

}
return _this.intNumberFormatter(value, cOptions, dOptions);
return _this.intNumberFormatter(value, cOptions, dOptions, option);
};

@@ -198,3 +198,3 @@ };

*/
NumberFormat.intNumberFormatter = function (value, fOptions, dOptions) {
NumberFormat.intNumberFormatter = function (value, fOptions, dOptions, option) {
var curData;

@@ -223,3 +223,3 @@ if (isUndefined(fOptions.nData.type)) {

else {
fValue = this.processFraction(value, curData.minimumFractionDigits, curData.maximumFractionDigits);
fValue = this.processFraction(value, curData.minimumFractionDigits, curData.maximumFractionDigits, option);
if (curData.minimumIntegerDigits) {

@@ -259,2 +259,5 @@ fValue = this.processMinimumIntegers(fValue, curData.minimumIntegerDigits);

else {
if (fValue === '0' && option && option.format === '0') {
return fValue + curData.nend;
}
return curData.nlead + fValue + curData.nend;

@@ -321,3 +324,3 @@ }

*/
NumberFormat.processFraction = function (value, min, max) {
NumberFormat.processFraction = function (value, min, max, option) {
var temp = (value + '').split('.')[1];

@@ -342,3 +345,7 @@ var length = temp ? temp.length : 0;

}
return value + '';
var str = value + '';
if (str[0] === '0' && option && option.format === '###.00') {
str = str.slice(1);
}
return str;
};

@@ -345,0 +352,0 @@ /**

@@ -217,24 +217,24 @@ /**

'XDR': 'XDR',
'AED': 'د.إ.‏',
'BHD': 'د.ب.‏',
'DZD': 'د.ج.‏',
'EGP': 'ج.م.‏',
'AED': 'د.إ.',
'BHD': 'د.ب.',
'DZD': 'د.ج.',
'EGP': 'ج.م.',
'ILS': '₪',
'IQD': 'د.ع.‏',
'JOD': 'د.ا.‏',
'IQD': 'د.ع.',
'JOD': 'د.ا.',
'KMF': 'CF',
'KWD': 'د.ك.‏',
'LBP': 'ل.ل.‏',
'LYD': 'د.ل.‏',
'MAD': 'د.م.‏',
'KWD': 'د.ك.',
'LBP': 'ل.ل.',
'LYD': 'د.ل.',
'MAD': 'د.م.',
'MRU': 'أ.م.',
'OMR': 'ر.ع.‏',
'QAR': 'ر.ق.‏',
'SAR': 'ر.س.‏',
'OMR': 'ر.ع.',
'QAR': 'ر.ق.',
'SAR': 'ر.س.',
'SDG': 'ج.س.',
'SOS': 'S',
'SSP': '£',
'SYP': 'ل.س.‏',
'TND': 'د.ت.‏',
'YER': 'ر.ي.‏',
'SYP': 'ل.س.',
'TND': 'د.ت.',
'YER': 'ر.ي.',
'CLP': '$',

@@ -241,0 +241,0 @@ 'INR': '₹',

@@ -11,3 +11,3 @@ export declare const blazorTemplates: object;

export interface ITemplateEngine {
compile: (templateString: string, helper?: Object, ignorePrefix?: boolean) => (data: Object | JSON) => string;
compile: (templateString: string | Function, helper?: Object, ignorePrefix?: boolean) => (data: Object | JSON) => string;
}

@@ -17,3 +17,3 @@ /**

*
* @param {string} templateString - The template string which is going to convert.
* @param {string | Function} templateString - The template string which is going to convert.
* @param {Object} helper - Helper functions as an object.

@@ -24,3 +24,3 @@ * @param {boolean} ignorePrefix ?

*/
export declare function compile(templateString: string, helper?: Object, ignorePrefix?: boolean): (data: Object | JSON, component?: any, propName?: any) => NodeList;
export declare function compile(templateString: string | Function, helper?: Object, ignorePrefix?: boolean): (data: Object | JSON, component?: any, propName?: any) => NodeList;
/**

@@ -59,1 +59,10 @@ *

export declare function getTemplateEngine(): (template: string, helper?: Object) => (data: Object | JSON) => string;
/**
* Set the current template function to support Content Security Policy.
*
* @param {Function} template - The template function that is going to render.
* @param {any} helper - The data utilized by the template from the helper.
* @returns {Function} ?
* @private
*/
export declare function initializeCSPTemplate(template: Function, helper?: any): Function;

@@ -20,3 +20,3 @@ /**

*
* @param {string} templateString - The template string which is going to convert.
* @param {string | Function} templateString - The template string which is going to convert.
* @param {Object} helper - Helper functions as an object.

@@ -149,2 +149,22 @@ * @param {boolean} ignorePrefix ?

}
/**
* Set the current template function to support Content Security Policy.
*
* @param {Function} template - The template function that is going to render.
* @param {any} helper - The data utilized by the template from the helper.
* @returns {Function} ?
* @private
*/
export function initializeCSPTemplate(template, helper) {
var boundFunc;
template.prototype.CSPTemplate = true;
if (!isNullOrUndefined(helper)) {
boundFunc = template.bind(helper);
boundFunc.prototype = Object.create(template.prototype);
}
else {
boundFunc = template;
}
return boundFunc;
}
//Default Engine Class

@@ -151,0 +171,0 @@ var Engine = /** @class */ (function () {

@@ -15,3 +15,3 @@ /**

*
* @param {string} template - The template string which is going to convert.
* @param {string | Function} template - The template string which is going to convert.
* @param {Object} helper - Helper functions as an object.

@@ -22,2 +22,2 @@ * @param {boolean} ignorePrefix ?

*/
export declare function compile(template: string, helper?: Object, ignorePrefix?: boolean): () => string;
export declare function compile(template: string | Function, helper?: Object, ignorePrefix?: boolean): () => string;

@@ -55,3 +55,3 @@ /**

*
* @param {string} template - The template string which is going to convert.
* @param {string | Function} template - The template string which is going to convert.
* @param {Object} helper - Helper functions as an object.

@@ -63,9 +63,14 @@ * @param {boolean} ignorePrefix ?

export function compile(template, helper, ignorePrefix) {
var argName = 'data';
var evalExpResult = evalExp(template, argName, helper, ignorePrefix);
// eslint-disable-next-line
var condtion = "var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-\u25A0\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-\u25A0\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n ";
var fnCode = 'var str=\"' + evalExpResult + '\";' + condtion + ' return str;';
var fn = new Function(argName, fnCode);
return fn.bind(helper);
if (typeof template === 'function') {
return template;
}
else {
var argName = 'data';
var evalExpResult = evalExp(template, argName, helper, ignorePrefix);
// eslint-disable-next-line
var condtion = "var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-\u25A0\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-\u25A0\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n ";
var fnCode = 'var str=\"' + evalExpResult + '\";' + condtion + ' return str;';
var fn = new Function(argName, fnCode);
return fn.bind(helper);
}
}

@@ -72,0 +77,0 @@ /** function used to evaluate the function expression

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

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 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

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