@syncfusion/ej2-base 26.1.35-8139 → 26.1.35-813929

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 (169) hide show
  1. package/{README.md → ReadMe.md} +100 -100
  2. package/bin/syncfusion-license.js +104 -1
  3. package/dist/ej2-base.min.js +1 -10
  4. package/dist/ej2-base.umd.min.js +1 -10
  5. package/dist/ej2-base.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-base.es2015.js +74 -67
  7. package/dist/es6/ej2-base.es2015.js.map +1 -1
  8. package/dist/es6/ej2-base.es5.js +124 -117
  9. package/dist/es6/ej2-base.es5.js.map +1 -1
  10. package/dist/global/ej2-base.min.js +1 -10
  11. package/dist/global/ej2-base.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/dist/ts/undefined +67 -0
  14. package/e2e/crypto.js +16 -16
  15. package/e2e/index.d.ts +27 -27
  16. package/e2e/m.protractor.config.js +286 -286
  17. package/e2e/modified-protractor/protractor.config.js +316 -316
  18. package/e2e/protractor.config.js +389 -389
  19. package/helpers/e2e/index.js +3 -3
  20. package/license +10 -10
  21. package/package.json +225 -225
  22. package/src/animation-model.d.ts +41 -41
  23. package/src/animation.js +19 -19
  24. package/src/browser.js +4 -0
  25. package/src/component-model.d.ts +16 -16
  26. package/src/component.js +19 -19
  27. package/src/draggable-model.d.ts +113 -113
  28. package/src/draggable.js +1 -1
  29. package/src/droppable-model.d.ts +23 -23
  30. package/src/droppable.js +19 -19
  31. package/src/intl/number-formatter.js +8 -1
  32. package/src/keyboard-model.d.ts +16 -16
  33. package/src/keyboard.js +19 -19
  34. package/src/touch-model.d.ts +39 -39
  35. package/src/touch.js +19 -19
  36. package/src/validate-lic.js +1 -1
  37. package/styles/_all.scss +2 -2
  38. package/styles/_bds-dark-definition.scss +16 -15
  39. package/styles/_bds-definition.scss +16 -15
  40. package/styles/_bootstrap-dark-definition.scss +42 -42
  41. package/styles/_bootstrap-definition.scss +42 -42
  42. package/styles/_bootstrap4-definition.scss +11 -11
  43. package/styles/_bootstrap5-dark-definition.scss +9 -9
  44. package/styles/_bootstrap5-definition.scss +8 -8
  45. package/styles/_bootstrap5.3-dark-definition.scss +8 -8
  46. package/styles/_bootstrap5.3-definition.scss +8 -8
  47. package/styles/_fabric-dark-definition.scss +42 -42
  48. package/styles/_fabric-definition.scss +42 -42
  49. package/styles/_fluent-dark-definition.scss +9 -9
  50. package/styles/_fluent-definition.scss +9 -9
  51. package/styles/_fluent2-dark-definition.scss +9 -9
  52. package/styles/_fluent2-definition.scss +9 -9
  53. package/styles/_fluent2-highcontrast-definition.scss +9 -9
  54. package/styles/_fusionnew-dark-definition.scss +8 -8
  55. package/styles/_fusionnew-definition.scss +8 -8
  56. package/styles/_highcontrast-definition.scss +42 -42
  57. package/styles/_highcontrast-light-definition.scss +42 -42
  58. package/styles/_material-dark-definition.scss +49 -48
  59. package/styles/_material-definition.scss +50 -49
  60. package/styles/_material3-dark-definition.scss +15 -14
  61. package/styles/_material3-definition.scss +16 -15
  62. package/styles/_tailwind-dark-definition.scss +16 -15
  63. package/styles/_tailwind-definition.scss +16 -15
  64. package/styles/_tailwind3-dark-definition.scss +15 -0
  65. package/styles/_tailwind3-definition.scss +15 -0
  66. package/styles/animation/_all.scss +535 -559
  67. package/styles/bds-lite.css +3408 -0
  68. package/styles/bds-lite.scss +3 -0
  69. package/styles/bds.css +3408 -0
  70. package/styles/bds.scss +3 -0
  71. package/styles/bootstrap-dark-lite.css +3749 -0
  72. package/styles/bootstrap-dark-lite.scss +3 -0
  73. package/styles/bootstrap-dark.css +235 -51
  74. package/styles/bootstrap-lite.css +3749 -0
  75. package/styles/bootstrap-lite.scss +3 -0
  76. package/styles/bootstrap.css +235 -51
  77. package/styles/bootstrap4-lite.css +3390 -0
  78. package/styles/bootstrap4-lite.scss +3 -0
  79. package/styles/bootstrap4.css +223 -51
  80. package/styles/bootstrap5-dark-lite.css +2966 -0
  81. package/styles/bootstrap5-dark-lite.scss +3 -0
  82. package/styles/bootstrap5-dark.css +228 -53
  83. package/styles/bootstrap5-lite.css +2966 -0
  84. package/styles/bootstrap5-lite.scss +3 -0
  85. package/styles/bootstrap5.3-lite.css +3559 -0
  86. package/styles/bootstrap5.3-lite.scss +3 -0
  87. package/styles/bootstrap5.3.css +3559 -0
  88. package/styles/bootstrap5.3.scss +3 -0
  89. package/styles/bootstrap5.css +226 -51
  90. package/styles/common/_all.scss +2 -2
  91. package/styles/common/_core.scss +111 -113
  92. package/styles/common/_mixin.scss +11 -9
  93. package/styles/definition/_bds-dark.scss +1193 -1067
  94. package/styles/definition/_bds.scss +1488 -1327
  95. package/styles/definition/_bootstrap-dark.scss +213 -207
  96. package/styles/definition/_bootstrap.scss +208 -202
  97. package/styles/definition/_bootstrap4.scss +159 -153
  98. package/styles/definition/_bootstrap5-dark.scss +481 -475
  99. package/styles/definition/_bootstrap5.3-dark.scss +1232 -853
  100. package/styles/definition/_bootstrap5.3.scss +1579 -1486
  101. package/styles/definition/_bootstrap5.scss +481 -475
  102. package/styles/definition/_fabric-dark.scss +194 -188
  103. package/styles/definition/_fabric.scss +192 -186
  104. package/styles/definition/_fluent-dark.scss +494 -488
  105. package/styles/definition/_fluent.scss +494 -488
  106. package/styles/definition/_fluent2-dark.scss +1523 -1506
  107. package/styles/definition/_fluent2-highcontrast.scss +1523 -1506
  108. package/styles/definition/_fluent2.scss +2295 -2266
  109. package/styles/definition/_fusionnew-dark.scss +330 -324
  110. package/styles/definition/_fusionnew.scss +331 -324
  111. package/styles/definition/_highcontrast-light.scss +189 -183
  112. package/styles/definition/_highcontrast.scss +189 -183
  113. package/styles/definition/_material-dark.scss +193 -187
  114. package/styles/definition/_material.scss +186 -180
  115. package/styles/definition/_material3-dark.scss +660 -654
  116. package/styles/definition/_material3.scss +729 -723
  117. package/styles/definition/_tailwind-dark.scss +445 -439
  118. package/styles/definition/_tailwind.scss +443 -437
  119. package/styles/definition/_tailwind3-dark.scss +1622 -0
  120. package/styles/definition/_tailwind3.scss +2093 -0
  121. package/styles/fabric-dark-lite.css +3734 -0
  122. package/styles/fabric-dark-lite.scss +3 -0
  123. package/styles/fabric-dark.css +235 -51
  124. package/styles/fabric-lite.css +3734 -0
  125. package/styles/fabric-lite.scss +3 -0
  126. package/styles/fabric.css +235 -51
  127. package/styles/fluent-dark-lite.css +2966 -0
  128. package/styles/fluent-dark-lite.scss +3 -0
  129. package/styles/fluent-dark.css +226 -51
  130. package/styles/fluent-lite.css +2966 -0
  131. package/styles/fluent-lite.scss +3 -0
  132. package/styles/fluent.css +226 -51
  133. package/styles/fluent2-lite.css +4017 -0
  134. package/styles/fluent2-lite.scss +3 -0
  135. package/styles/fluent2.css +274 -82
  136. package/styles/highcontrast-light-lite.css +3725 -0
  137. package/styles/highcontrast-light-lite.scss +3 -0
  138. package/styles/highcontrast-light.css +235 -51
  139. package/styles/highcontrast-lite.css +3725 -0
  140. package/styles/highcontrast-lite.scss +3 -0
  141. package/styles/highcontrast.css +235 -51
  142. package/styles/material-dark-lite.css +3702 -0
  143. package/styles/material-dark-lite.scss +3 -0
  144. package/styles/material-dark.css +235 -51
  145. package/styles/material-lite.css +3702 -0
  146. package/styles/material-lite.scss +3 -0
  147. package/styles/material.css +235 -51
  148. package/styles/material3-dark-lite.css +3021 -0
  149. package/styles/material3-dark-lite.scss +3 -0
  150. package/styles/material3-dark.css +226 -51
  151. package/styles/material3-lite.css +3077 -0
  152. package/styles/material3-lite.scss +3 -0
  153. package/styles/material3.css +226 -51
  154. package/styles/offline-theme/material-dark.css +235 -51
  155. package/styles/offline-theme/material.css +235 -51
  156. package/styles/offline-theme/tailwind-dark.css +226 -51
  157. package/styles/offline-theme/tailwind.css +226 -51
  158. package/styles/tailwind-dark-lite.css +2967 -0
  159. package/styles/tailwind-dark-lite.scss +3 -0
  160. package/styles/tailwind-dark.css +226 -51
  161. package/styles/tailwind-lite.css +2967 -0
  162. package/styles/tailwind-lite.scss +3 -0
  163. package/styles/tailwind.css +226 -51
  164. package/styles/tailwind3-lite.css +3775 -0
  165. package/styles/tailwind3-lite.scss +3 -0
  166. package/styles/tailwind3.css +3775 -0
  167. package/styles/tailwind3.scss +3 -0
  168. package/.eslintrc.json +0 -261
  169. package/tslint.json +0 -111
@@ -1,100 +1,100 @@
1
- # ej2-base
2
-
3
- A common package of Essential JS 2 which contains base libraries, methods and class definitions.
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 [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
- >
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
-
9
- ## Setup
10
-
11
- To install `ej2-base`, use the following command.
12
-
13
- ```sh
14
- npm install @syncfusion/ej2-base
15
- ```
16
-
17
- ## Resources
18
-
19
- * [Getting Started](https://ej2.syncfusion.com/documentation/getting-started?utm_source=npm&utm_campaign=ej2-base)
20
- * [View Online Demos](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=ej2-base)
21
- * [Product Page](https://www.syncfusion.com/products/javascript?utm_source=npm&utm_campaign=ej2-base)
22
-
23
- ## Framework highlights
24
-
25
- ### Lightweight and user friendly
26
-
27
- The entire Essential JS 2 framework is built from scratch to be lightweight and modular. Its footprint can be reduced further by including only the specific components and features your application requires.
28
-
29
- ### Modular architecture
30
-
31
- All components have been built as modules to enable selective referencing, so only the components and features you need are included in your application.
32
-
33
- ### Built for performance
34
-
35
- Performance is critical for delivering a good user experience. We ensure that all our components are designed and built to achieve the best performance possible.
36
-
37
- ### Responsive and touch friendly
38
-
39
- All Essential JS 2 controls are touch friendly and render adaptively based on the device they are on to provide optimal usage experience on phones, tablets and desktops.
40
-
41
- ### Stunning built-in themes
42
-
43
- Pixel-perfect built-in themes are available in material, bootstrap and fabric design. In addition, it comes with Accessible high-contrast theme and an online tool "[Theme Studio](https://ej2.syncfusion.com/themestudio/)" to customize the provided built-in themes.
44
-
45
- ### Globalization simplified
46
-
47
- Easily build applications to be used by a global audience in various language and culture settings.
48
-
49
- ### Stay current
50
-
51
- With our commitment to at least four major updates per year, you receive the most up-to-date functionality and new components in addition to monthly service packs and bug fixes. Custom patches are available as needed.
52
-
53
- ## Supported Frameworks
54
-
55
- The Essential JS 2 is also offered in following list of frameworks.
56
-
57
- * [Angular](https://www.syncfusion.com/products/angular?utm_source=npm&utm_campaign=ej2-base)
58
- * [React](https://www.syncfusion.com/products/react?utm_source=npm&utm_campaign=ej2-base)
59
- * [Vue.js](https://www.syncfusion.com/products/vue?utm_source=npm&utm_campaign=ej2-base)
60
- * [ASP.NET Core](https://www.syncfusion.com/products/aspnetcore?utm_source=npm&utm_campaign=ej2-base)
61
- * [ASP.NET MVC](https://www.syncfusion.com/products/aspnetmvc?utm_source=npm&utm_campaign=ej2-base)
62
-
63
- ## Showcase Applications
64
-
65
- * [Diagram Builder](https://ej2.syncfusion.com/showcase/angular/diagrambuilder?utm_source=npm&utm_campaign=ej2-base)
66
- * [Expense Tracker](https://ej2.syncfusion.com/showcase/typescript/expensetracker?utm_source=npm&utm_campaign=ej2-base)
67
- * [IT Asset Management](https://ej2.syncfusion.com/showcase/vue/assetmanagement?utm_source=npm&utm_campaign=ej2-base)
68
- * [Loan Calculator](https://ej2.syncfusion.com/showcase/typescript/loancalculator?utm_source=npm&utm_campaign=ej2-base)
69
- * [Stock Chart](https://ej2.syncfusion.com/showcase/angular/stockchart?utm_source=npm&utm_campaign=ej2-base)
70
- * [Story Estimator](https://aspdotnetcore.syncfusion.com/showcase/aspnetcore/story-estimator/)
71
- * [Web Mail](https://ej2.syncfusion.com/showcase/typescript/webmail?utm_source=npm&utm_campaign=ej2-base)
72
-
73
- ## Key Features
74
-
75
- * Ajax
76
- * Animation
77
- * Drag and Drop
78
- * Internationalization
79
- * Localization
80
- * Template Engine
81
- * Right to Left
82
- * State Persistence
83
-
84
- ## Support
85
-
86
- Product support is available for through following mediums.
87
-
88
- * Creating incident in Syncfusion [Direct-trac](https://www.syncfusion.com/support/directtrac/incidents?utm_source=npm&utm_campaign=ej2-base) support system or [Community forum](https://www.syncfusion.com/forums/essential-js2?utm_source=npm&utm_campaign=ej2-base).
89
- * New [GitHub issue](https://github.com/syncfusion/ej2-javascript-ui-controls/issues/new).
90
- * Ask your query in [Stack Overflow](https://stackoverflow.com/) with tag `syncfusion` and `ej2`.
91
-
92
- ## License
93
- Check the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license).
94
-
95
- ## Changelog
96
-
97
- Check the changelog [here](https://ej2.syncfusion.com/documentation/release-notes/index/?utm_source=npm&utm_campaign=ej2-base).
98
-
99
- © Copyright 2024 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
100
- The Syncfusion Essential Studio license and copyright applies to this distribution.
1
+ # ej2-base
2
+
3
+ A common package of Essential JS 2 which contains base libraries, methods and class definitions.
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 [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
+ >
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
+
9
+ ## Setup
10
+
11
+ To install `ej2-base`, use the following command.
12
+
13
+ ```sh
14
+ npm install @syncfusion/ej2-base
15
+ ```
16
+
17
+ ## Resources
18
+
19
+ * [Getting Started](https://ej2.syncfusion.com/documentation/getting-started?utm_source=npm&utm_campaign=ej2-base)
20
+ * [View Online Demos](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=ej2-base)
21
+ * [Product Page](https://www.syncfusion.com/products/javascript?utm_source=npm&utm_campaign=ej2-base)
22
+
23
+ ## Framework highlights
24
+
25
+ ### Lightweight and user friendly
26
+
27
+ The entire Essential JS 2 framework is built from scratch to be lightweight and modular. Its footprint can be reduced further by including only the specific components and features your application requires.
28
+
29
+ ### Modular architecture
30
+
31
+ All components have been built as modules to enable selective referencing, so only the components and features you need are included in your application.
32
+
33
+ ### Built for performance
34
+
35
+ Performance is critical for delivering a good user experience. We ensure that all our components are designed and built to achieve the best performance possible.
36
+
37
+ ### Responsive and touch friendly
38
+
39
+ All Essential JS 2 controls are touch friendly and render adaptively based on the device they are on to provide optimal usage experience on phones, tablets and desktops.
40
+
41
+ ### Stunning built-in themes
42
+
43
+ Pixel-perfect built-in themes are available in material, bootstrap and fabric design. In addition, it comes with Accessible high-contrast theme and an online tool "[Theme Studio](https://ej2.syncfusion.com/themestudio/)" to customize the provided built-in themes.
44
+
45
+ ### Globalization simplified
46
+
47
+ Easily build applications to be used by a global audience in various language and culture settings.
48
+
49
+ ### Stay current
50
+
51
+ With our commitment to at least four major updates per year, you receive the most up-to-date functionality and new components in addition to monthly service packs and bug fixes. Custom patches are available as needed.
52
+
53
+ ## Supported Frameworks
54
+
55
+ The Essential JS 2 is also offered in following list of frameworks.
56
+
57
+ * [Angular](https://www.syncfusion.com/products/angular?utm_source=npm&utm_campaign=ej2-base)
58
+ * [React](https://www.syncfusion.com/products/react?utm_source=npm&utm_campaign=ej2-base)
59
+ * [Vue.js](https://www.syncfusion.com/products/vue?utm_source=npm&utm_campaign=ej2-base)
60
+ * [ASP.NET Core](https://www.syncfusion.com/products/aspnetcore?utm_source=npm&utm_campaign=ej2-base)
61
+ * [ASP.NET MVC](https://www.syncfusion.com/products/aspnetmvc?utm_source=npm&utm_campaign=ej2-base)
62
+
63
+ ## Showcase Applications
64
+
65
+ * [Diagram Builder](https://ej2.syncfusion.com/showcase/angular/diagrambuilder?utm_source=npm&utm_campaign=ej2-base)
66
+ * [Expense Tracker](https://ej2.syncfusion.com/showcase/typescript/expensetracker?utm_source=npm&utm_campaign=ej2-base)
67
+ * [IT Asset Management](https://ej2.syncfusion.com/showcase/vue/assetmanagement?utm_source=npm&utm_campaign=ej2-base)
68
+ * [Loan Calculator](https://ej2.syncfusion.com/showcase/typescript/loancalculator?utm_source=npm&utm_campaign=ej2-base)
69
+ * [Stock Chart](https://ej2.syncfusion.com/showcase/angular/stockchart?utm_source=npm&utm_campaign=ej2-base)
70
+ * [Story Estimator](https://aspdotnetcore.syncfusion.com/showcase/aspnetcore/story-estimator/)
71
+ * [Web Mail](https://ej2.syncfusion.com/showcase/typescript/webmail?utm_source=npm&utm_campaign=ej2-base)
72
+
73
+ ## Key Features
74
+
75
+ * Ajax
76
+ * Animation
77
+ * Drag and Drop
78
+ * Internationalization
79
+ * Localization
80
+ * Template Engine
81
+ * Right to Left
82
+ * State Persistence
83
+
84
+ ## Support
85
+
86
+ Product support is available for through following mediums.
87
+
88
+ * Creating incident in Syncfusion [Direct-trac](https://www.syncfusion.com/support/directtrac/incidents?utm_source=npm&utm_campaign=ej2-base) support system or [Community forum](https://www.syncfusion.com/forums/essential-js2?utm_source=npm&utm_campaign=ej2-base).
89
+ * New [GitHub issue](https://github.com/syncfusion/ej2-javascript-ui-controls/issues/new).
90
+ * Ask your query in [Stack Overflow](https://stackoverflow.com/) with tag `syncfusion` and `ej2`.
91
+
92
+ ## License
93
+ Check the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license).
94
+
95
+ ## Changelog
96
+
97
+ Check the changelog [here](https://ej2.syncfusion.com/documentation/release-notes/index/?utm_source=npm&utm_campaign=ej2-base).
98
+
99
+ © Copyright 2022 Syncfusion, Inc. All Rights Reserved.
100
+ The Syncfusion Essential Studio license and copyright applies to this distribution.
@@ -1,2 +1,105 @@
1
1
  #! /usr/bin/env node
2
- 'use strict';var _0x537366=_0x3266;(function(_0x28313b,_0x35e7ef){var _0x32a52f=_0x3266,_0x10782c=_0x28313b();while(!![]){try{var _0x17bbac=parseInt(_0x32a52f(0x183))/0x1+-parseInt(_0x32a52f(0x181))/0x2+-parseInt(_0x32a52f(0x175))/0x3+parseInt(_0x32a52f(0x17f))/0x4*(parseInt(_0x32a52f(0x188))/0x5)+parseInt(_0x32a52f(0x192))/0x6+-parseInt(_0x32a52f(0x190))/0x7*(parseInt(_0x32a52f(0x189))/0x8)+-parseInt(_0x32a52f(0x180))/0x9*(parseInt(_0x32a52f(0x198))/0xa);if(_0x17bbac===_0x35e7ef)break;else _0x10782c['push'](_0x10782c['shift']());}catch(_0x594f68){_0x10782c['push'](_0x10782c['shift']());}}}(_0x5dba,0x6cc4f));var fs=global['fs']=global['fs']||require('fs');function _0x5dba(){var _0x3e439a=['readFileSync','10sYsJSb','floor','binary','charCodeAt','792936kEjbyq','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','existsSync','activate','push','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','ascii','length','from','14168axDYJR','91359vFPxyu','232448opvyWR','i=\x22npxKeyReplace','195677EzTgdV','exit','./node_modules/@syncfusion/ej2-base/src/validate-lic.js','replace','npxKeyReplace','600yAausT','3844184hdpvgc','fromCharCode','writeFileSync','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','log','argv','env','7ySxgsK','toString','4176072hRMKMz','version','base64','(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.','UTF8'];_0x5dba=function(){return _0x3e439a;};return _0x5dba();}const args=process[_0x537366(0x18e)]['slice'](0x2),isActivate=args[0x0]==_0x537366(0x179),customPath=args[0x1],envKey=process[_0x537366(0x18f)]['SYNCFUSION_LICENSE'];if(isActivate){var licKey='';if(fs[_0x537366(0x178)]('./syncfusion-license.txt'))licKey=fs[_0x537366(0x197)]('./syncfusion-license.txt',_0x537366(0x196));else{if(envKey)licKey=envKey;else customPath&&fs[_0x537366(0x178)](customPath)&&(licKey=fs[_0x537366(0x197)](customPath,_0x537366(0x196)));}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[_0x537366(0x17d)];i++){var lKey=licKeySplit[i],decodeStr=getDecryptedData(lKey);if(!decodeStr)continue;var k=0x0,buffr='';for(var i=0x0;i<decodeStr[_0x537366(0x17d)];i++,k++){k===pkey[_0x537366(0x17d)]&&(k=0x0);var c=decodeStr[_0x537366(0x174)](i);buffr+=String[_0x537366(0x18a)](c^pkey[k]>>0x10);}decryptedStr=buffr['split'](';');if(decryptedStr['length']>0x3){resultArray[_0x537366(0x17a)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0]['currentPlatform']+';'+resultArray[0x0][_0x537366(0x193)]+';'+resultArray[0x0]['expiryDate']+';',encryptedKey=getEncryptedKey(licData),jsFiles=[_0x537366(0x185),_0x537366(0x176),_0x537366(0x17b),_0x537366(0x177)];for(var n=0x0;n<jsFiles[_0x537366(0x17d)];n++){if(fs['existsSync'](jsFiles[n])){var content=fs[_0x537366(0x197)](jsFiles[n],_0x537366(0x196));const isBaseUmd=_0x537366(0x177),regex=jsFiles[n]===isBaseUmd?/i="npxKeyReplace[^"]*/:/npxKeyReplace[^']*/,replacement=jsFiles[n]===isBaseUmd?_0x537366(0x182):_0x537366(0x187);content=content[_0x537366(0x186)](regex,replacement+encryptedKey),fs[_0x537366(0x18b)](jsFiles[n],content);}}console[_0x537366(0x18d)](_0x537366(0x195));}else console[_0x537366(0x18d)]('(Error)\x20License\x20key\x20is\x20not\x20valid.');}}else console[_0x537366(0x18d)](_0x537366(0x18c));}else console[_0x537366(0x18d)]('Supported\x20command:\x20npx\x20syncfusion-license\x20activate');function _0x3266(_0x5648f8,_0x282165){var _0x5dba3f=_0x5dba();return _0x3266=function(_0x3266e9,_0xca8c67){_0x3266e9=_0x3266e9-0x174;var _0x865948=_0x5dba3f[_0x3266e9];return _0x865948;},_0x3266(_0x5648f8,_0x282165);}function getEncryptedKey(_0x39040a){var _0x5ca0d3=_0x537366,_0x156c4e='',_0x59bc17=[],_0x17ac43=[],_0x566024=new Array();for(var _0x4fe299=0x0;_0x4fe299<_0x39040a['length'];_0x4fe299++){_0x59bc17[_0x4fe299]=_0x39040a[_0x4fe299]['charCodeAt'](0x0);}for(var _0x463e9c=0x0,_0x438c5a=0x41;_0x463e9c<0x1a;_0x463e9c++,_0x438c5a++){_0x17ac43[_0x463e9c]=String[_0x5ca0d3(0x18a)](_0x438c5a);}var _0x5e7ad4=Math[_0x5ca0d3(0x199)](Math['random']()*(_0x17ac43['length']-0x1-0x0+0x1)+0x0),_0x32fe7b=_0x17ac43[_0x5e7ad4][_0x5ca0d3(0x174)](0x0);for(var _0x4fe299=0x0;_0x4fe299<_0x39040a[_0x5ca0d3(0x17d)];_0x4fe299++){_0x566024[_0x4fe299]=parseInt(_0x59bc17[_0x4fe299])+parseInt(_0x17ac43[_0x5e7ad4][_0x5ca0d3(0x174)](0x0));}_0x566024[_0x59bc17[_0x5ca0d3(0x17d)]]=_0x32fe7b;for(var _0x4fe299=0x0;_0x4fe299<_0x566024['length'];_0x4fe299++){_0x156c4e+=String[_0x5ca0d3(0x18a)](_0x566024[_0x4fe299]);}return Buffer[_0x5ca0d3(0x17e)](_0x156c4e,_0x5ca0d3(0x17c))[_0x5ca0d3(0x191)]('base64');}function getDecryptedData(_0x26670b){var _0x1d98b8=_0x537366;try{return Buffer[_0x1d98b8(0x17e)](_0x26670b,_0x1d98b8(0x194))['toString'](_0x1d98b8(0x19a));}catch(_0x315878){return'';}};process[_0x537366(0x184)](0x0);
2
+ "use strict";
3
+ var fs = global.fs = global.fs || require('fs');
4
+ const args = process.argv.slice(2);
5
+ const isActivate = (args[0] == 'activate');
6
+ const customPath = args[1];
7
+
8
+ const envKey = process.env.SYNCFUSION_LICENSE;
9
+ if (isActivate) {
10
+ var licKey = '';
11
+ if (fs.existsSync('./syncfusion-license.txt')) {
12
+ licKey = fs.readFileSync('./syncfusion-license.txt', 'UTF8');
13
+ } else if (envKey) {
14
+ licKey = envKey;
15
+ } else if (customPath && fs.existsSync(customPath)){
16
+ licKey = fs.readFileSync(customPath, 'UTF8');
17
+ }
18
+ if (licKey != '') {
19
+ var licKeySplit = licKey.split(';');
20
+ var pkey = [5439488, 7929856, 5111808, 6488064, 4587520, 7667712, 5439488,
21
+ 6881280, 5177344, 7208960, 4194304, 4456448, 6619136, 7733248, 5242880, 7077888,
22
+ 6356992, 7602176, 4587520, 7274496, 7471104, 7143424];
23
+ var decryptedStr = [];
24
+ var resultArray = [];
25
+ for (var i = 0; i < licKeySplit.length; i++) {
26
+ var lKey = licKeySplit[i];
27
+ var decodeStr = getDecryptedData(lKey);
28
+ if (!decodeStr) {
29
+ continue;
30
+ }
31
+ var k = 0;
32
+ var buffr = '';
33
+ for (var i = 0; i < decodeStr.length; i++, k++) {
34
+ if (k === pkey.length) {
35
+ k = 0;
36
+ }
37
+ var c = decodeStr.charCodeAt(i);
38
+ buffr += String.fromCharCode(c ^ (pkey[k] >> 16));
39
+ }
40
+ decryptedStr = buffr.split(';');
41
+ // checked the length to verify the key in proper structure
42
+ if (decryptedStr.length > 3) {
43
+ resultArray.push({
44
+ currentPlatform: decryptedStr[0],
45
+ version: decryptedStr[1],
46
+ expiryDate: decryptedStr[2]
47
+ });
48
+ var licData = resultArray[0].currentPlatform + ';' + resultArray[0].version + ';' + resultArray[0].expiryDate + ';';
49
+ var encryptedKey = getEncryptedKey(licData);
50
+ var jsFiles = ['./node_modules/@syncfusion/ej2-base/src/validate-lic.js', './node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js', './node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js', './node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js'];
51
+ for (var n = 0; n < jsFiles.length; n++) {
52
+ if (fs.existsSync(jsFiles[n])) {
53
+ var content = fs.readFileSync(jsFiles[n], "UTF8");
54
+ const isBaseUmd = './node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js';
55
+ const regex = (jsFiles[n] === isBaseUmd) ? /i="npxKeyReplace[^"]*/ : /npxKeyReplace[^']*/;
56
+ const replacement = (jsFiles[n] === isBaseUmd) ? 'i="npxKeyReplace' : 'npxKeyReplace';
57
+ content = content.replace(regex, replacement + encryptedKey);
58
+ fs.writeFileSync(jsFiles[n], content);
59
+ }
60
+ }
61
+ console.log('(INFO) Syncfusion License imported successfully.');
62
+ } else {
63
+ console.log('(Error) License key is not valid.');
64
+ }
65
+ }
66
+ } else {
67
+ console.log('Please add the syncfusion-license.txt file or set environment variable SYNCFUSION_LICENSE');
68
+ }
69
+ } else {
70
+ console.log('Supported command: npx syncfusion-license activate');
71
+ }
72
+
73
+ function getEncryptedKey(uniKey) {
74
+ var resKey = '';
75
+ var uniVal = [];
76
+ var alpVal = [];
77
+ var encString = new Array();
78
+ for (var i = 0; i < uniKey.length; i++) {
79
+ uniVal[i] = uniKey[i].charCodeAt(0);
80
+ }
81
+ for (var j = 0, m = 65; j < 26; j++, m++) {
82
+ alpVal[j] = String.fromCharCode(m);
83
+ }
84
+ var pos = Math.floor(Math.random() * ((alpVal.length - 1) - 0 + 1) + 0);
85
+ var uniAlpVal = alpVal[pos].charCodeAt(0);
86
+ for (var i = 0; i < uniKey.length; i++) {
87
+ encString[i] = parseInt(uniVal[i]) + parseInt(alpVal[pos].charCodeAt(0));
88
+ }
89
+ encString[uniVal.length] = uniAlpVal;
90
+ for (var i = 0; i < encString.length; i++) {
91
+ resKey += String.fromCharCode(encString[i]);
92
+ }
93
+ return Buffer.from(resKey, 'ascii').toString('base64');
94
+ }
95
+
96
+ function getDecryptedData(key) {
97
+ try {
98
+ return Buffer.from(key, 'base64').toString('binary');
99
+ }
100
+ catch (error) {
101
+ return '';
102
+ }
103
+ };
104
+
105
+ process.exit(0);