@syncfusion/ej2-base 20.3.50 → 20.4.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/.eslintrc.json +16 -1
  2. package/CHANGELOG.md +1 -17
  3. package/README.md +4 -5
  4. package/bin/syncfusion-license.js +1 -1
  5. package/dist/ej2-base.min.js +2 -2
  6. package/dist/ej2-base.umd.min.js +2 -2
  7. package/dist/ej2-base.umd.min.js.map +1 -1
  8. package/dist/es6/ej2-base.es2015.js +497 -281
  9. package/dist/es6/ej2-base.es2015.js.map +1 -1
  10. package/dist/es6/ej2-base.es5.js +285 -210
  11. package/dist/es6/ej2-base.es5.js.map +1 -1
  12. package/dist/global/ej2-base.min.js +2 -2
  13. package/dist/global/ej2-base.min.js.map +1 -1
  14. package/dist/global/index.d.ts +1 -1
  15. package/e2e/modified-protractor/protractor.config.js +316 -0
  16. package/e2e/protractor.config.js +56 -24
  17. package/package.json +44 -8
  18. package/src/animation.d.ts +4 -0
  19. package/src/animation.js +7 -1
  20. package/src/base.js +12 -12
  21. package/src/browser.js +7 -7
  22. package/src/child-property.js +10 -10
  23. package/src/component-model.d.ts +1 -1
  24. package/src/component.js +29 -8
  25. package/src/dom.js +10 -10
  26. package/src/draggable-model.d.ts +21 -8
  27. package/src/draggable.d.ts +24 -6
  28. package/src/draggable.js +25 -12
  29. package/src/event-handler.js +6 -6
  30. package/src/hijri-parser.js +1 -1
  31. package/src/intl/date-parser.js +4 -4
  32. package/src/intl/intl-base.js +4 -4
  33. package/src/intl/number-formatter.js +3 -3
  34. package/src/intl/parser-base.js +2 -2
  35. package/src/keyboard.js +4 -4
  36. package/src/l10n.js +5 -5
  37. package/src/module-loader.js +2 -2
  38. package/src/notify-property-change.js +28 -28
  39. package/src/observer.js +9 -9
  40. package/src/sanitize-helper.js +2 -2
  41. package/src/template-engine.js +14 -14
  42. package/src/template.js +2 -1
  43. package/src/util.js +30 -28
  44. package/src/validate-lic.d.ts +3 -0
  45. package/src/validate-lic.js +69 -37
  46. package/styles/bootstrap-dark.css +34 -4
  47. package/styles/bootstrap.css +34 -4
  48. package/styles/bootstrap4.css +34 -4
  49. package/styles/bootstrap5-dark.css +34 -4
  50. package/styles/bootstrap5.css +34 -4
  51. package/styles/definition/_bootstrap5-dark.scss +9 -0
  52. package/styles/definition/_bootstrap5.scss +9 -0
  53. package/styles/definition/_fluent-dark.scss +9 -0
  54. package/styles/definition/_fluent.scss +9 -0
  55. package/styles/definition/_material.scss +3 -0
  56. package/styles/definition/_tailwind-dark.scss +9 -0
  57. package/styles/definition/_tailwind.scss +9 -0
  58. package/styles/fabric-dark.css +38 -5
  59. package/styles/fabric.css +38 -5
  60. package/styles/fluent-dark.css +35 -5
  61. package/styles/fluent.css +35 -5
  62. package/styles/highcontrast-light.css +41 -5
  63. package/styles/highcontrast.css +41 -5
  64. package/styles/material-dark.css +34 -4
  65. package/styles/material.css +34 -4
  66. package/styles/offline-theme/material-dark.css +34 -4
  67. package/styles/offline-theme/material.css +34 -4
  68. package/styles/offline-theme/tailwind-dark.css +34 -4
  69. package/styles/offline-theme/tailwind.css +34 -4
  70. package/styles/tailwind-dark.css +34 -4
  71. package/styles/tailwind.css +34 -4
package/.eslintrc.json CHANGED
@@ -6,7 +6,8 @@
6
6
  "extends": [
7
7
  "eslint:recommended",
8
8
  "plugin:@typescript-eslint/recommended",
9
- "plugin:jsdoc/recommended"
9
+ "plugin:jsdoc/recommended",
10
+ "plugin:security/recommended"
10
11
  ],
11
12
  "parser": "@typescript-eslint/parser",
12
13
  "parserOptions": {
@@ -18,10 +19,24 @@
18
19
  "plugins": [
19
20
  "@typescript-eslint",
20
21
  "@typescript-eslint/tslint",
22
+ "eslint-plugin-security",
21
23
  "jsdoc"
22
24
  ],
23
25
  "rules": {
24
26
  "use-isnan": "error",
27
+ "security/detect-unsafe-regex":"error",
28
+ "security/detect-buffer-noassert":"error",
29
+ "security/detect-child-process":"error",
30
+ "security/detect-disable-mustache-escape":"error",
31
+ "security/detect-eval-with-expression":"error",
32
+ "security/detect-no-csrf-before-method-override":"error",
33
+ "security/detect-non-literal-fs-filename":"error",
34
+ "security/detect-non-literal-regexp":"error",
35
+ "security/detect-non-literal-require":"error",
36
+ "security/detect-object-injection":"error",
37
+ "security/detect-possible-timing-attacks":"error",
38
+ "security/detect-pseudoRandomBytes":"error",
39
+ "security/detect-new-buffer":"error",
25
40
  "@typescript-eslint/no-inferrable-types": "off",
26
41
  "@typescript-eslint/ban-types": ["warn", {
27
42
  "types": {
package/CHANGELOG.md CHANGED
@@ -6,23 +6,7 @@
6
6
 
7
7
  #### Bug Fixes
8
8
 
9
- - `#SF395314` - The issue " incorrect position of the helper element while dragging the `treeview` element" has been resolved.
10
-
11
- ## 20.3.49 (2022-10-11)
12
-
13
- ### Common
14
-
15
- #### Bug Fixes
16
-
17
- - `#SF395268`, `#SF395314` - The issue "Drag area is not getting properly when setting a value for `margin-top`" has been resolved.
18
-
19
- ## 20.3.47 (2022-09-29)
20
-
21
- ### Common
22
-
23
- #### Bug Fixes
24
-
25
- - The issue with the "React template element is not getting in the Grid `queryCellInfo` event" has been resolved.
9
+ - `#I421652` - The issue with the "gulp is added to the dependency package in the ej2 package" has been resolved.
26
10
 
27
11
  ## 20.3.47 (2022-09-29)
28
12
 
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  A common package of Essential JS 2 which contains base libraries, methods and class definitions.
4
4
 
5
- > This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials).
5
+ > This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of [Syncfusion's EULA](https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase [here](https://www.syncfusion.com/sales/products) or start a free 30-day trial [here](https://www.syncfusion.com/account/manage-trials/start-trials).
6
6
  >
7
- > A free community license (https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
7
+ > A free [community license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
8
8
 
9
9
  ## Setup
10
10
 
@@ -90,12 +90,11 @@ Product support is available for through following mediums.
90
90
  * Ask your query in [Stack Overflow](https://stackoverflow.com/) with tag `syncfusion` and `ej2`.
91
91
 
92
92
  ## License
93
-
94
- Check the license detail [here](https://github.com/syncfusion/ej2-base/blob/master/license).
93
+ Check the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license).
95
94
 
96
95
  ## Changelog
97
96
 
98
- Check the changelog [here](https://ej2.syncfusion.com/documentation/release-notes?utm_source=npm&utm_campaign=ej2-base)
97
+ Check the changelog [here](https://ej2.syncfusion.com/documentation/release-notes/index/?utm_source=npm&utm_campaign=ej2-base).
99
98
 
100
99
  © Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
101
100
  The Syncfusion Essential Studio license and copyright applies to this distribution.
@@ -1,2 +1,2 @@
1
1
  #! /usr/bin/env node
2
- 'use strict';var _0x28da23=_0x1e5c;(function(_0x7ace67,_0x5ecdd6){var _0x4081ab=_0x1e5c,_0x589c51=_0x7ace67();while(!![]){try{var _0x1f5ef8=parseInt(_0x4081ab(0x8d))/0x1+-parseInt(_0x4081ab(0x9b))/0x2+parseInt(_0x4081ab(0x86))/0x3+parseInt(_0x4081ab(0xa4))/0x4+parseInt(_0x4081ab(0x9e))/0x5*(parseInt(_0x4081ab(0x83))/0x6)+-parseInt(_0x4081ab(0x9c))/0x7+-parseInt(_0x4081ab(0x85))/0x8;if(_0x1f5ef8===_0x5ecdd6)break;else _0x589c51['push'](_0x589c51['shift']());}catch(_0x2725b7){_0x589c51['push'](_0x589c51['shift']());}}}(_0x2f51,0xdb59d));var fs=global['fs']=global['fs']||require('fs');const args=process[_0x28da23(0x89)][_0x28da23(0xa1)](0x2),envKey=process[_0x28da23(0x97)][_0x28da23(0x8f)];if(args==_0x28da23(0x84)){var licKey='';if(fs[_0x28da23(0x8e)]('./syncfusion-license.txt'))licKey=fs[_0x28da23(0x8b)](_0x28da23(0x8c),_0x28da23(0x98));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0x28da23(0x9a)](';'),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['length'];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[_0x28da23(0x90)]&&(k=0x0);var c=decodeStr[_0x28da23(0x92)](i);buffr+=String[_0x28da23(0x93)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x28da23(0x9a)](';');if(decryptedStr[_0x28da23(0x90)]>0x3){resultArray['push']({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x28da23(0x82)]+';'+resultArray[0x0][_0x28da23(0xa5)]+';'+resultArray[0x0][_0x28da23(0x8a)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=['./node_modules/@syncfusion/ej2-base/src/validate-lic.js',_0x28da23(0x96),_0x28da23(0x9d),_0x28da23(0x91)];for(var n=0x0;n<jsFiles['length'];n++){if(fs[_0x28da23(0x8e)](jsFiles[n])){var content=fs[_0x28da23(0x8b)](jsFiles[n],'UTF8'),regex=jsFiles[n]===_0x28da23(0x91)?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content[_0x28da23(0x99)](regex,_0x28da23(0xa6)+encryptedKey),fs[_0x28da23(0xa0)](jsFiles[n],content);}}console['log'](_0x28da23(0xa7));}else console[_0x28da23(0x81)](_0x28da23(0x94));}}else console[_0x28da23(0x81)]('Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE');}else console[_0x28da23(0x81)]('Supported\x20command:\x20npx\x20syncfusion-license\x20activate');function getEncryptedKey(_0x5c5ac9){var _0x42780a=_0x28da23,_0x1bb391='',_0x83997e=[],_0x46bd20=[],_0x1782cd=new Array();for(var _0x67040e=0x0;_0x67040e<_0x5c5ac9[_0x42780a(0x90)];_0x67040e++){_0x83997e[_0x67040e]=_0x5c5ac9[_0x67040e]['charCodeAt'](0x0);}for(var _0x412b5f=0x0,_0x35788e=0x41;_0x412b5f<0x1a;_0x412b5f++,_0x35788e++){_0x46bd20[_0x412b5f]=String[_0x42780a(0x93)](_0x35788e);}var _0x2fc627=Math[_0x42780a(0xa2)](Math[_0x42780a(0x95)]()*(_0x46bd20[_0x42780a(0x90)]-0x1-0x0+0x1)+0x0),_0x377111=_0x46bd20[_0x2fc627][_0x42780a(0x92)](0x0);for(var _0x67040e=0x0;_0x67040e<_0x5c5ac9[_0x42780a(0x90)];_0x67040e++){_0x1782cd[_0x67040e]=parseInt(_0x83997e[_0x67040e])+parseInt(_0x46bd20[_0x2fc627][_0x42780a(0x92)](0x0));}_0x1782cd[_0x83997e[_0x42780a(0x90)]]=_0x377111;for(var _0x67040e=0x0;_0x67040e<_0x1782cd[_0x42780a(0x90)];_0x67040e++){_0x1bb391+=String[_0x42780a(0x93)](_0x1782cd[_0x67040e]);}return Buffer['from'](_0x1bb391,'ascii')[_0x42780a(0x87)](_0x42780a(0xa3));}function _0x2f51(){var _0x4646f3=['expiryDate','readFileSync','./syncfusion-license.txt','292647UnLEjp','existsSync','SYNCFUSION_LICENSE','length','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','charCodeAt','fromCharCode','(Error)\x20License\x20key\x20is\x20not\x20valid.','random','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','env','UTF8','replace','split','890486ObGOGS','6368761XdnkvE','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','5PaMpJA','exit','writeFileSync','slice','floor','base64','4202184mUBJXP','version','npxKeyReplace','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','log','currentPlatform','5253552Thhtbm','activate','1227568tYHRBy','564564GaosQv','toString','from','argv'];_0x2f51=function(){return _0x4646f3;};return _0x2f51();}function getDecryptedData(_0x5f12e2){var _0x566845=_0x28da23;try{return Buffer[_0x566845(0x88)](_0x5f12e2,'base64')[_0x566845(0x87)]('binary');}catch(_0x3b3725){return'';}}function _0x1e5c(_0x610d23,_0x1f0df7){var _0x2f5161=_0x2f51();return _0x1e5c=function(_0x1e5cc8,_0x18608d){_0x1e5cc8=_0x1e5cc8-0x81;var _0x53ede3=_0x2f5161[_0x1e5cc8];return _0x53ede3;},_0x1e5c(_0x610d23,_0x1f0df7);};process[_0x28da23(0x9f)](0x0);
2
+ 'use strict';var _0x4fa54b=_0x4806;(function(_0x481fb9,_0x4e32d3){var _0x125b5e=_0x4806,_0x320c0a=_0x481fb9();while(!![]){try{var _0x16b268=-parseInt(_0x125b5e(0x160))/0x1+parseInt(_0x125b5e(0x15d))/0x2+parseInt(_0x125b5e(0x155))/0x3+parseInt(_0x125b5e(0x163))/0x4+-parseInt(_0x125b5e(0x15e))/0x5+parseInt(_0x125b5e(0x16c))/0x6*(parseInt(_0x125b5e(0x154))/0x7)+-parseInt(_0x125b5e(0x152))/0x8;if(_0x16b268===_0x4e32d3)break;else _0x320c0a['push'](_0x320c0a['shift']());}catch(_0x416db9){_0x320c0a['push'](_0x320c0a['shift']());}}}(_0x33e4,0x26ca6));var fs=global['fs']=global['fs']||require('fs');const args=process['argv']['slice'](0x2),envKey=process[_0x4fa54b(0x16d)]['SYNCFUSION_LICENSE'];if(args=='activate'){var licKey='';if(fs[_0x4fa54b(0x16a)]('./syncfusion-license.txt'))licKey=fs['readFileSync'](_0x4fa54b(0x170),_0x4fa54b(0x15f));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['length'];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[_0x4fa54b(0x159)]&&(k=0x0);var c=decodeStr[_0x4fa54b(0x16b)](i);buffr+=String[_0x4fa54b(0x167)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x4fa54b(0x174)](';');if(decryptedStr[_0x4fa54b(0x159)]>0x3){resultArray['push']({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0x4fa54b(0x169)]+';'+resultArray[0x0][_0x4fa54b(0x161)]+';'+resultArray[0x0][_0x4fa54b(0x165)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x4fa54b(0x166),_0x4fa54b(0x164),_0x4fa54b(0x151),_0x4fa54b(0x153)];for(var n=0x0;n<jsFiles[_0x4fa54b(0x159)];n++){if(fs[_0x4fa54b(0x16a)](jsFiles[n])){var content=fs['readFileSync'](jsFiles[n],_0x4fa54b(0x15f)),regex=jsFiles[n]==='./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js'?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content[_0x4fa54b(0x16e)](regex,'npxKeyReplace'+encryptedKey),fs[_0x4fa54b(0x158)](jsFiles[n],content);}}console[_0x4fa54b(0x156)](_0x4fa54b(0x168));}else console[_0x4fa54b(0x156)](_0x4fa54b(0x171));}}else console['log']('Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE');}else console[_0x4fa54b(0x156)](_0x4fa54b(0x157));function getEncryptedKey(_0x31da38){var _0x20b4f4=_0x4fa54b,_0x523b06='',_0x28a839=[],_0x25ff58=[],_0x40e85a=new Array();for(var _0x2e0225=0x0;_0x2e0225<_0x31da38['length'];_0x2e0225++){_0x28a839[_0x2e0225]=_0x31da38[_0x2e0225]['charCodeAt'](0x0);}for(var _0x53f1ab=0x0,_0x10a30c=0x41;_0x53f1ab<0x1a;_0x53f1ab++,_0x10a30c++){_0x25ff58[_0x53f1ab]=String[_0x20b4f4(0x167)](_0x10a30c);}var _0x2b44ab=Math[_0x20b4f4(0x15a)](Math[_0x20b4f4(0x172)]()*(_0x25ff58['length']-0x1-0x0+0x1)+0x0),_0x2bec68=_0x25ff58[_0x2b44ab][_0x20b4f4(0x16b)](0x0);for(var _0x2e0225=0x0;_0x2e0225<_0x31da38[_0x20b4f4(0x159)];_0x2e0225++){_0x40e85a[_0x2e0225]=parseInt(_0x28a839[_0x2e0225])+parseInt(_0x25ff58[_0x2b44ab]['charCodeAt'](0x0));}_0x40e85a[_0x28a839[_0x20b4f4(0x159)]]=_0x2bec68;for(var _0x2e0225=0x0;_0x2e0225<_0x40e85a['length'];_0x2e0225++){_0x523b06+=String[_0x20b4f4(0x167)](_0x40e85a[_0x2e0225]);}return Buffer['from'](_0x523b06,'ascii')[_0x20b4f4(0x173)](_0x20b4f4(0x15c));}function _0x4806(_0x4924fa,_0x274728){var _0x33e4b6=_0x33e4();return _0x4806=function(_0x48066f,_0x3060dd){_0x48066f=_0x48066f-0x151;var _0x144515=_0x33e4b6[_0x48066f];return _0x144515;},_0x4806(_0x4924fa,_0x274728);}function getDecryptedData(_0xce2f45){var _0x3957cd=_0x4fa54b;try{return Buffer[_0x3957cd(0x162)](_0xce2f45,'base64')[_0x3957cd(0x173)](_0x3957cd(0x15b));}catch(_0x489f83){return'';}}function _0x33e4(){var _0x85753b=['toString','split','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','1246600trrBlN','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','11403ScUYpZ','749202eeIlot','log','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','writeFileSync','length','floor','binary','base64','198864kuNZZK','286210dePWll','UTF8','113444DcFUhk','version','from','440668sNYgQl','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','expiryDate','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','fromCharCode','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','currentPlatform','existsSync','charCodeAt','96dqVUkZ','env','replace','exit','./syncfusion-license.txt','(Error)\x20License\x20key\x20is\x20not\x20valid.','random'];_0x33e4=function(){return _0x85753b;};return _0x33e4();};process[_0x4fa54b(0x16f)](0x0);