@syncfusion/ej2-base 20.1.56 → 20.1.58-106983

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 (100) hide show
  1. package/.eslintrc.json +16 -1
  2. package/CHANGELOG.md +108 -4
  3. package/{README.md → ReadMe.md} +5 -6
  4. package/bin/syncfusion-license.js +2 -0
  5. package/dist/ej2-base.min.js +1 -0
  6. package/dist/ej2-base.umd.min.js +1 -10
  7. package/dist/ej2-base.umd.min.js.map +1 -1
  8. package/dist/es6/ej2-base.es2015.js +671 -315
  9. package/dist/es6/ej2-base.es2015.js.map +1 -1
  10. package/dist/es6/ej2-base.es5.js +448 -233
  11. package/dist/es6/ej2-base.es5.js.map +1 -1
  12. package/dist/global/ej2-base.min.js +1 -10
  13. package/dist/global/ej2-base.min.js.map +1 -1
  14. package/dist/global/index.d.ts +0 -9
  15. package/e2e/modified-protractor/protractor.config.js +316 -0
  16. package/e2e/protractor.config.js +56 -24
  17. package/helpers/e2e/base.js +62 -52
  18. package/helpers/e2e/index.js +8 -6
  19. package/package.json +78 -158
  20. package/src/animation.d.ts +13 -0
  21. package/src/animation.js +31 -4
  22. package/src/base.js +12 -12
  23. package/src/browser.js +9 -9
  24. package/src/child-property.js +10 -10
  25. package/src/component-model.d.ts +1 -1
  26. package/src/component.d.ts +1 -1
  27. package/src/component.js +30 -11
  28. package/src/dom.js +10 -10
  29. package/src/draggable-model.d.ts +21 -8
  30. package/src/draggable.d.ts +31 -6
  31. package/src/draggable.js +118 -21
  32. package/src/event-handler.js +6 -6
  33. package/src/hijri-parser.js +1 -1
  34. package/src/intl/date-parser.js +4 -4
  35. package/src/intl/intl-base.js +4 -4
  36. package/src/intl/number-formatter.js +3 -3
  37. package/src/intl/parser-base.js +2 -2
  38. package/src/keyboard.js +4 -4
  39. package/src/l10n.js +5 -5
  40. package/src/module-loader.js +2 -2
  41. package/src/notify-property-change.js +28 -28
  42. package/src/observer.js +9 -9
  43. package/src/sanitize-helper.js +3 -3
  44. package/src/template-engine.js +14 -14
  45. package/src/template.js +3 -2
  46. package/src/touch.js +4 -0
  47. package/src/util.js +30 -28
  48. package/src/validate-lic.d.ts +4 -0
  49. package/src/validate-lic.js +107 -42
  50. package/styles/_all.scss +1 -2
  51. package/styles/_bootstrap4-definition.scss +0 -1
  52. package/styles/_fusionnew-dark-definition.scss +9 -0
  53. package/styles/_fusionnew-definition.scss +9 -0
  54. package/styles/_highcontrast-light-definition.scss +0 -1
  55. package/styles/_material-dark-definition.scss +1 -1
  56. package/styles/_material-definition.scss +1 -1
  57. package/styles/_material3-dark-definition.scss +10 -0
  58. package/styles/_material3-definition.scss +9 -0
  59. package/styles/_tailwind-dark-definition.scss +1 -1
  60. package/styles/_tailwind-definition.scss +1 -1
  61. package/styles/animation/_all.scss +31 -30
  62. package/styles/bootstrap-dark.css +157 -1
  63. package/styles/bootstrap.css +157 -1
  64. package/styles/bootstrap4.css +157 -1
  65. package/styles/bootstrap5-dark.css +157 -1
  66. package/styles/bootstrap5.css +157 -1
  67. package/styles/common/_core.scss +16 -4
  68. package/styles/definition/_bootstrap-dark.scss +114 -0
  69. package/styles/definition/_bootstrap.scss +115 -1
  70. package/styles/definition/_bootstrap4.scss +114 -0
  71. package/styles/definition/_bootstrap5-dark.scss +132 -24
  72. package/styles/definition/_bootstrap5.scss +124 -14
  73. package/styles/definition/_fabric-dark.scss +114 -0
  74. package/styles/definition/_fabric.scss +114 -0
  75. package/styles/definition/_fluent-dark.scss +144 -22
  76. package/styles/definition/_fluent.scss +135 -14
  77. package/styles/definition/_fusionnew-dark.scss +360 -0
  78. package/styles/definition/_fusionnew.scss +361 -0
  79. package/styles/definition/_highcontrast-light.scss +112 -0
  80. package/styles/definition/_highcontrast.scss +114 -0
  81. package/styles/definition/_material-dark.scss +114 -0
  82. package/styles/definition/_material.scss +117 -0
  83. package/styles/definition/_material3-dark.scss +421 -0
  84. package/styles/definition/_material3.scss +361 -0
  85. package/styles/definition/_tailwind-dark.scss +128 -17
  86. package/styles/definition/_tailwind.scss +130 -19
  87. package/styles/fabric-dark.css +161 -2
  88. package/styles/fabric.css +161 -2
  89. package/styles/fluent-dark.css +157 -1
  90. package/styles/fluent.css +157 -1
  91. package/styles/highcontrast-light.css +164 -2
  92. package/styles/highcontrast.css +164 -2
  93. package/styles/material-dark.css +157 -1
  94. package/styles/material.css +157 -1
  95. package/styles/offline-theme/material-dark.css +2625 -0
  96. package/styles/offline-theme/material.css +2625 -0
  97. package/styles/offline-theme/tailwind-dark.css +1899 -0
  98. package/styles/offline-theme/tailwind.css +1899 -0
  99. package/styles/tailwind-dark.css +157 -1
  100. package/styles/tailwind.css +157 -1
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
@@ -2,13 +2,111 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 20.4.48 (2023-02-01)
6
+
7
+ ### Dashboard Layout
8
+
9
+ #### Bug Fixes
10
+
11
+ - `#I423971` - Provided cancel option in Drag Start and Drag Stop events of the Dashboard Layout component.
12
+
13
+ ### Common
14
+
15
+ #### Bug Fixes
16
+
17
+ - `#I424071` - The issue with the "Tooltip component throws a script error when setting content as '${}'" has been resolved.
18
+
19
+ ## 20.4.44 (2023-01-18)
20
+
21
+ ### Common
22
+
23
+ #### Bug Fixes
24
+
25
+ - `#F178732` - Resolved the sudden changes in top value of `draggable` element.
26
+
27
+ ## 20.4.42 (2023-01-04)
28
+
29
+ ### Common
30
+
31
+ #### Bug Fixes
32
+
33
+ - `#I427250` - Resolved window undefined in server side rendering with React next JS.
34
+
35
+ ## 20.4.38 (2022-12-21)
36
+
37
+ ### Common
38
+
39
+ #### New Features
40
+
41
+ - The new `Rating` control has been added to Essential JS 2.
42
+ - The `AppBar`, `Floating Action Button (FAB)`, `Mention`, `Message` and `Speed Dial` controls have been developed to meet industry standards and are now marked production-ready.
43
+
44
+ #### Breaking Changes
45
+
46
+ - If you are using Syncfusion's controls without first registering a license, a license dialog will appear after a certain limit of usage, preventing further interaction in the application. Please make sure to register a valid license in order to continue using the Syncfusion controls without interruption.
47
+
48
+ ## 20.3.59 (2022-11-29)
49
+
50
+ ### Common
51
+
52
+ #### Bug Fixes
53
+
54
+ - `#I421652` - The issue with the "gulp is added to the dependency package in the ej2 package" has been resolved.
55
+
56
+ ## 20.3.47 (2022-09-29)
57
+
58
+ ### Common
59
+
60
+ #### Bug Fixes
61
+
62
+ - `#I383984` - The issue with the "Unwanted swipe event trigger in Firefox browser" has been resolved.
63
+
64
+ ## 20.2.36 (2022-06-30)
65
+
66
+ ### Common
67
+
68
+ #### New Features
69
+
70
+ - Provided the TypeScript 4.7 compatible support for the EJ2 components.
71
+ - Provided the option to register the license key by using the `npx` command. Follow these steps to register the license using the `npx` command:
72
+
73
+ | The `npx` command |
74
+ |---|
75
+ | Install the Syncfusion packages from `npm`. |
76
+ | Add the license key either in the environment variable `SYNCFUSION_LICENSE` or in the `syncfusion-license.txt` text file. |
77
+ | Run the command `npx syncfusion-license activate` to automatically register the license. |
78
+
79
+ ## 20.1.61 (2022-06-21)
80
+
81
+ ### Common
82
+
83
+ #### Bug Fixes
84
+
85
+ - `#F173517` - "The Chart with ngFor data binding is not working" issue has been resolved.
86
+
87
+ ## 20.1.60 (2022-06-14)
88
+
89
+ ### Common
90
+
91
+ #### Bug Fixes
92
+
93
+ - `#I372767`, `#I370308` - The empty space issue in `Treeview` component while dragging the element has been resolved.
94
+
95
+ ## 20.1.56 (2022-05-17)
96
+
97
+ ### Common
98
+
99
+ #### Bug Fixes
100
+
101
+ - `#F173666` - The issue with sanitize html while creating a appointment in scheduler has been resolve.
102
+
5
103
  ## 20.1.55 (2022-05-12)
6
104
 
7
105
  ### Common
8
106
 
9
107
  #### Bug Fixes
10
108
 
11
- - `SF-376600` - The issue with "`IsDevice` value return as false only for Safari browser in iPad" has been resolved.
109
+ - `#I376600` - The issue with "`IsDevice` value return as false only for Safari browser in iPad" has been resolved.
12
110
 
13
111
  ## 20.1.50 (2022-04-19)
14
112
 
@@ -16,7 +114,7 @@
16
114
 
17
115
  #### Bug Fixes
18
116
 
19
- - `I370803` - The issue with "Script error occurs while opening the popup in the DropDownList" has been resolved.
117
+ - `#I370803` - The issue with "Script error occurs while opening the popup in the DropDownList" has been resolved.
20
118
 
21
119
  ## 20.1.48 (2022-04-12)
22
120
 
@@ -24,7 +122,7 @@
24
122
 
25
123
  #### Bug Fixes
26
124
 
27
- - `I374390` - Resolved window undefined in server side rendering with React next JS.
125
+ - `#I374390` - Resolved window undefined in server side rendering with React next JS.
28
126
 
29
127
  ## 20.1.47 (2022-04-04)
30
128
 
@@ -32,8 +130,14 @@
32
130
 
33
131
  #### Bug Fixes
34
132
 
133
+ - `#I324684` - Resolved the `Treeview` check box issues in safari browser.
134
+ - `#I342741`, `#F172105`, `#I365783`, `#F172867`, `#I367588`, `#I358914` - Provided the `draggable` support for the mobile and touch devices.
135
+
136
+ ### Common
137
+
138
+ #### Bug Fixes
139
+
35
140
  - `I324684` - Resolved the `Treeview` check box issues in safari browser.
36
- - `I342741`, `F172105`, `SF-365783`, `F172867`, `SF-367588`, `SF-358914` - Provided the `draggable` support for the mobile and touch devices.
37
141
 
38
142
  ## 17.4.51 (2020-02-25)
39
143
 
@@ -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
- © Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
99
+ © Copyright 2022 Syncfusion, Inc. All Rights Reserved.
101
100
  The Syncfusion Essential Studio license and copyright applies to this distribution.
@@ -0,0 +1,2 @@
1
+ #! /usr/bin/env node
2
+ 'use strict';var _0xe44fb0=_0x2e2a;(function(_0x5254a6,_0x385d78){var _0x5652c3=_0x2e2a,_0x546ae5=_0x5254a6();while(!![]){try{var _0x5b01c1=-parseInt(_0x5652c3(0xda))/0x1*(-parseInt(_0x5652c3(0xec))/0x2)+-parseInt(_0x5652c3(0xee))/0x3*(-parseInt(_0x5652c3(0xdd))/0x4)+-parseInt(_0x5652c3(0xeb))/0x5*(parseInt(_0x5652c3(0xf2))/0x6)+-parseInt(_0x5652c3(0xef))/0x7*(-parseInt(_0x5652c3(0xf4))/0x8)+parseInt(_0x5652c3(0xe7))/0x9*(-parseInt(_0x5652c3(0xdf))/0xa)+-parseInt(_0x5652c3(0xfc))/0xb+parseInt(_0x5652c3(0xe9))/0xc;if(_0x5b01c1===_0x385d78)break;else _0x546ae5['push'](_0x546ae5['shift']());}catch(_0x41a48a){_0x546ae5['push'](_0x546ae5['shift']());}}}(_0x52c3,0x8ec72));var fs=global['fs']=global['fs']||require('fs');function _0x52c3(){var _0x54f8d3=['918130jgcoxT','floor','charCodeAt','toString','split','length','push','activate','36irUrrx','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','6133884KneCYE','UTF8','23095yKrQid','4qkqCEt','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','3IgqMJB','7fjUAuq','(Error)\x20License\x20key\x20is\x20not\x20valid.','ascii','1230bryrWz','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','1856056YRblHY','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','argv','currentPlatform','./syncfusion-license.txt','version','SYNCFUSION_LICENSE','npxKeyReplace','3905924voNqqJ','writeFileSync','from','Supported\x20command:\x20npx\x20syncfusion-license\x20activate','fromCharCode','exit','base64','random','249016cIxvwC','log','env','4051412iSywCg','readFileSync'];_0x52c3=function(){return _0x54f8d3;};return _0x52c3();}function _0x2e2a(_0x1fc4f6,_0xeae6e0){var _0x52c3fe=_0x52c3();return _0x2e2a=function(_0x2e2aa5,_0x4c9174){_0x2e2aa5=_0x2e2aa5-0xd9;var _0x158912=_0x52c3fe[_0x2e2aa5];return _0x158912;},_0x2e2a(_0x1fc4f6,_0xeae6e0);}const args=process[_0xe44fb0(0xf6)]['slice'](0x2),envKey=process[_0xe44fb0(0xdc)][_0xe44fb0(0xfa)];if(args==_0xe44fb0(0xe6)){var licKey='';if(fs['existsSync'](_0xe44fb0(0xf8)))licKey=fs['readFileSync']('./syncfusion-license.txt',_0xe44fb0(0xea));else envKey&&(licKey=envKey);if(licKey!=''){var licKeySplit=licKey[_0xe44fb0(0xe3)](';'),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[_0xe44fb0(0xe4)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0xe44fb0(0xe4)];i++,k++){k===pkey[_0xe44fb0(0xe4)]&&(k=0x0);var c=decodeStr['charCodeAt'](i);buffr+=String[_0xe44fb0(0x100)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0xe44fb0(0xe3)](';');if(decryptedStr['length']>0x3){resultArray[_0xe44fb0(0xe5)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0][_0xe44fb0(0xf7)]+';'+resultArray[0x0][_0xe44fb0(0xf9)]+';'+resultArray[0x0]['expiryDate']+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0xe44fb0(0xf5),_0xe44fb0(0xe8),_0xe44fb0(0xed),'./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js'];for(var n=0x0;n<jsFiles[_0xe44fb0(0xe4)];n++){if(fs['existsSync'](jsFiles[n])){var content=fs[_0xe44fb0(0xde)](jsFiles[n],_0xe44fb0(0xea)),regex=jsFiles[n]==='./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js'?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content['replace'](regex,_0xe44fb0(0xfb)+encryptedKey),fs[_0xe44fb0(0xfd)](jsFiles[n],content);}}console[_0xe44fb0(0xdb)](_0xe44fb0(0xf3));}else console[_0xe44fb0(0xdb)](_0xe44fb0(0xf0));}}else console[_0xe44fb0(0xdb)]('Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE');}else console['log'](_0xe44fb0(0xff));function getEncryptedKey(_0x3327e1){var _0x1e1813=_0xe44fb0,_0x58d84e='',_0x24951c=[],_0x5d1c2c=[],_0x8c900e=new Array();for(var _0x582d36=0x0;_0x582d36<_0x3327e1[_0x1e1813(0xe4)];_0x582d36++){_0x24951c[_0x582d36]=_0x3327e1[_0x582d36][_0x1e1813(0xe1)](0x0);}for(var _0x1523ab=0x0,_0x3a5ec8=0x41;_0x1523ab<0x1a;_0x1523ab++,_0x3a5ec8++){_0x5d1c2c[_0x1523ab]=String[_0x1e1813(0x100)](_0x3a5ec8);}var _0x598629=Math[_0x1e1813(0xe0)](Math[_0x1e1813(0xd9)]()*(_0x5d1c2c[_0x1e1813(0xe4)]-0x1-0x0+0x1)+0x0),_0x2abfd3=_0x5d1c2c[_0x598629][_0x1e1813(0xe1)](0x0);for(var _0x582d36=0x0;_0x582d36<_0x3327e1[_0x1e1813(0xe4)];_0x582d36++){_0x8c900e[_0x582d36]=parseInt(_0x24951c[_0x582d36])+parseInt(_0x5d1c2c[_0x598629][_0x1e1813(0xe1)](0x0));}_0x8c900e[_0x24951c[_0x1e1813(0xe4)]]=_0x2abfd3;for(var _0x582d36=0x0;_0x582d36<_0x8c900e[_0x1e1813(0xe4)];_0x582d36++){_0x58d84e+=String[_0x1e1813(0x100)](_0x8c900e[_0x582d36]);}return Buffer[_0x1e1813(0xfe)](_0x58d84e,_0x1e1813(0xf1))[_0x1e1813(0xe2)](_0x1e1813(0x102));}function getDecryptedData(_0x5b67df){var _0x5329fb=_0xe44fb0;try{return Buffer[_0x5329fb(0xfe)](_0x5b67df,_0x5329fb(0x102))[_0x5329fb(0xe2)]('binary');}catch(_0x591404){return'';}};process[_0xe44fb0(0x101)](0x0);