@syncfusion/ej2-base 25.2.5 → 26.1.35-745115

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 (201) hide show
  1. package/{README.md → ReadMe.md} +100 -100
  2. package/bin/syncfusion-license.js +105 -2
  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 +268 -486
  7. package/dist/es6/ej2-base.es2015.js.map +1 -1
  8. package/dist/es6/ej2-base.es5.js +307 -522
  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 -170
  22. package/src/ajax.d.ts +1 -1
  23. package/src/ajax.js +3 -7
  24. package/src/animation-model.d.ts +41 -41
  25. package/src/animation.d.ts +1 -1
  26. package/src/animation.js +20 -22
  27. package/src/base.d.ts +2 -1
  28. package/src/base.js +4 -13
  29. package/src/browser.d.ts +1 -1
  30. package/src/browser.js +3 -4
  31. package/src/child-property.d.ts +1 -0
  32. package/src/child-property.js +2 -2
  33. package/src/component-model.d.ts +16 -16
  34. package/src/component.d.ts +4 -0
  35. package/src/component.js +28 -36
  36. package/src/dom.js +4 -11
  37. package/src/draggable-model.d.ts +113 -113
  38. package/src/draggable.js +20 -41
  39. package/src/droppable-model.d.ts +23 -23
  40. package/src/droppable.js +19 -20
  41. package/src/event-handler.js +2 -6
  42. package/src/fetch.js +1 -2
  43. package/src/hijri-parser.js +3 -3
  44. package/src/internationalization.d.ts +4 -0
  45. package/src/internationalization.js +0 -5
  46. package/src/intl/date-formatter.js +19 -33
  47. package/src/intl/date-parser.js +33 -62
  48. package/src/intl/intl-base.d.ts +9 -1
  49. package/src/intl/intl-base.js +19 -18
  50. package/src/intl/number-formatter.js +14 -7
  51. package/src/intl/number-parser.js +2 -6
  52. package/src/intl/parser-base.js +6 -11
  53. package/src/keyboard-model.d.ts +16 -16
  54. package/src/keyboard.js +19 -20
  55. package/src/module-loader.js +1 -0
  56. package/src/notify-property-change.d.ts +0 -20
  57. package/src/notify-property-change.js +16 -55
  58. package/src/observer.js +3 -6
  59. package/src/sanitize-helper.js +0 -1
  60. package/src/template-engine.js +1 -7
  61. package/src/template.js +13 -18
  62. package/src/touch-model.d.ts +39 -39
  63. package/src/touch.js +22 -27
  64. package/src/util.d.ts +4 -4
  65. package/src/util.js +12 -37
  66. package/src/validate-lic.js +4 -3
  67. package/styles/_all.scss +2 -2
  68. package/styles/_bds-dark-definition.scss +16 -15
  69. package/styles/_bds-definition.scss +16 -15
  70. package/styles/_bootstrap-dark-definition.scss +42 -42
  71. package/styles/_bootstrap-definition.scss +42 -42
  72. package/styles/_bootstrap4-definition.scss +11 -11
  73. package/styles/_bootstrap5-dark-definition.scss +9 -9
  74. package/styles/_bootstrap5-definition.scss +8 -8
  75. package/styles/_bootstrap5.3-dark-definition.scss +8 -0
  76. package/styles/_bootstrap5.3-definition.scss +8 -0
  77. package/styles/_fabric-dark-definition.scss +42 -42
  78. package/styles/_fabric-definition.scss +42 -42
  79. package/styles/_fluent-dark-definition.scss +9 -9
  80. package/styles/_fluent-definition.scss +9 -9
  81. package/styles/_fluent2-dark-definition.scss +9 -0
  82. package/styles/_fluent2-definition.scss +9 -0
  83. package/styles/_fluent2-highcontrast-definition.scss +9 -0
  84. package/styles/_fusionnew-dark-definition.scss +8 -8
  85. package/styles/_fusionnew-definition.scss +8 -8
  86. package/styles/_highcontrast-definition.scss +42 -42
  87. package/styles/_highcontrast-light-definition.scss +42 -42
  88. package/styles/_material-dark-definition.scss +49 -48
  89. package/styles/_material-definition.scss +50 -49
  90. package/styles/_material3-dark-definition.scss +15 -14
  91. package/styles/_material3-definition.scss +16 -15
  92. package/styles/_tailwind-dark-definition.scss +16 -15
  93. package/styles/_tailwind-definition.scss +16 -15
  94. package/styles/_tailwind3-dark-definition.scss +15 -0
  95. package/styles/_tailwind3-definition.scss +15 -0
  96. package/styles/animation/_all.scss +535 -560
  97. package/styles/bds-lite.css +3408 -0
  98. package/styles/bds-lite.scss +3 -0
  99. package/styles/bds.css +3408 -0
  100. package/styles/bds.scss +3 -0
  101. package/styles/bootstrap-dark-lite.css +3749 -0
  102. package/styles/bootstrap-dark-lite.scss +3 -0
  103. package/styles/bootstrap-dark.css +1075 -169
  104. package/styles/bootstrap-lite.css +3749 -0
  105. package/styles/bootstrap-lite.scss +3 -0
  106. package/styles/bootstrap.css +1075 -169
  107. package/styles/bootstrap4-lite.css +3390 -0
  108. package/styles/bootstrap4-lite.scss +3 -0
  109. package/styles/bootstrap4.css +1063 -169
  110. package/styles/bootstrap5-dark-lite.css +2966 -0
  111. package/styles/bootstrap5-dark-lite.scss +3 -0
  112. package/styles/bootstrap5-dark.css +1068 -171
  113. package/styles/bootstrap5-lite.css +2966 -0
  114. package/styles/bootstrap5-lite.scss +3 -0
  115. package/styles/bootstrap5.3-lite.css +3559 -0
  116. package/styles/bootstrap5.3-lite.scss +3 -0
  117. package/styles/bootstrap5.3.css +3559 -0
  118. package/styles/bootstrap5.3.scss +3 -0
  119. package/styles/bootstrap5.css +1066 -169
  120. package/styles/common/_all.scss +2 -2
  121. package/styles/common/_core.scss +111 -117
  122. package/styles/common/_mixin.scss +11 -9
  123. package/styles/definition/_bds-dark.scss +1193 -1178
  124. package/styles/definition/_bds.scss +1488 -1458
  125. package/styles/definition/_bootstrap-dark.scss +213 -219
  126. package/styles/definition/_bootstrap.scss +208 -215
  127. package/styles/definition/_bootstrap4.scss +159 -167
  128. package/styles/definition/_bootstrap5-dark.scss +481 -494
  129. package/styles/definition/_bootstrap5.3-dark.scss +1232 -0
  130. package/styles/definition/_bootstrap5.3.scss +1579 -0
  131. package/styles/definition/_bootstrap5.scss +481 -495
  132. package/styles/definition/_fabric-dark.scss +194 -200
  133. package/styles/definition/_fabric.scss +192 -198
  134. package/styles/definition/_fluent-dark.scss +494 -557
  135. package/styles/definition/_fluent.scss +494 -558
  136. package/styles/definition/_fluent2-dark.scss +1523 -0
  137. package/styles/definition/_fluent2-highcontrast.scss +1523 -0
  138. package/styles/definition/_fluent2.scss +2295 -0
  139. package/styles/definition/_fusionnew-dark.scss +330 -362
  140. package/styles/definition/_fusionnew.scss +331 -363
  141. package/styles/definition/_highcontrast-light.scss +189 -193
  142. package/styles/definition/_highcontrast.scss +189 -195
  143. package/styles/definition/_material-dark.scss +193 -198
  144. package/styles/definition/_material.scss +186 -192
  145. package/styles/definition/_material3-dark.scss +660 -710
  146. package/styles/definition/_material3.scss +729 -792
  147. package/styles/definition/_tailwind-dark.scss +445 -488
  148. package/styles/definition/_tailwind.scss +443 -485
  149. package/styles/definition/_tailwind3-dark.scss +1622 -0
  150. package/styles/definition/_tailwind3.scss +2093 -0
  151. package/styles/fabric-dark-lite.css +3734 -0
  152. package/styles/fabric-dark-lite.scss +3 -0
  153. package/styles/fabric-dark.css +1075 -169
  154. package/styles/fabric-lite.css +3734 -0
  155. package/styles/fabric-lite.scss +3 -0
  156. package/styles/fabric.css +1075 -169
  157. package/styles/fluent-dark-lite.css +2966 -0
  158. package/styles/fluent-dark-lite.scss +3 -0
  159. package/styles/fluent-dark.css +1066 -169
  160. package/styles/fluent-lite.css +2966 -0
  161. package/styles/fluent-lite.scss +3 -0
  162. package/styles/fluent.css +1066 -169
  163. package/styles/fluent2-lite.css +4017 -0
  164. package/styles/fluent2-lite.scss +3 -0
  165. package/styles/fluent2.css +4017 -0
  166. package/styles/fluent2.scss +3 -0
  167. package/styles/highcontrast-light-lite.css +3725 -0
  168. package/styles/highcontrast-light-lite.scss +3 -0
  169. package/styles/highcontrast-light.css +1075 -169
  170. package/styles/highcontrast-lite.css +3725 -0
  171. package/styles/highcontrast-lite.scss +3 -0
  172. package/styles/highcontrast.css +1075 -169
  173. package/styles/material-dark-lite.css +3702 -0
  174. package/styles/material-dark-lite.scss +3 -0
  175. package/styles/material-dark.css +1075 -169
  176. package/styles/material-lite.css +3702 -0
  177. package/styles/material-lite.scss +3 -0
  178. package/styles/material.css +1075 -169
  179. package/styles/material3-dark-lite.css +3021 -0
  180. package/styles/material3-dark-lite.scss +3 -0
  181. package/styles/material3-dark.css +1066 -170
  182. package/styles/material3-lite.css +3077 -0
  183. package/styles/material3-lite.scss +3 -0
  184. package/styles/material3.css +1066 -170
  185. package/styles/offline-theme/material-dark.css +1075 -169
  186. package/styles/offline-theme/material.css +1075 -169
  187. package/styles/offline-theme/tailwind-dark.css +1067 -170
  188. package/styles/offline-theme/tailwind.css +1067 -170
  189. package/styles/tailwind-dark-lite.css +2967 -0
  190. package/styles/tailwind-dark-lite.scss +3 -0
  191. package/styles/tailwind-dark.css +1067 -170
  192. package/styles/tailwind-lite.css +2967 -0
  193. package/styles/tailwind-lite.scss +3 -0
  194. package/styles/tailwind.css +1067 -170
  195. package/styles/tailwind3-lite.css +3775 -0
  196. package/styles/tailwind3-lite.scss +3 -0
  197. package/styles/tailwind3.css +3775 -0
  198. package/styles/tailwind3.scss +3 -0
  199. package/.eslintrc.json +0 -260
  200. package/CHANGELOG.md +0 -647
  201. 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
- #! /usr/bin/env node
2
- 'use strict';var _0x559079=_0x1300;(function(_0x4090be,_0x496fbe){var _0x4067eb=_0x1300,_0x3874d5=_0x4090be();while(!![]){try{var _0xcc90e0=-parseInt(_0x4067eb(0x119))/0x1+-parseInt(_0x4067eb(0x111))/0x2*(-parseInt(_0x4067eb(0xfd))/0x3)+parseInt(_0x4067eb(0x10e))/0x4*(parseInt(_0x4067eb(0xf9))/0x5)+parseInt(_0x4067eb(0x106))/0x6*(parseInt(_0x4067eb(0x103))/0x7)+parseInt(_0x4067eb(0x109))/0x8+parseInt(_0x4067eb(0x116))/0x9+parseInt(_0x4067eb(0x11d))/0xa*(-parseInt(_0x4067eb(0x105))/0xb);if(_0xcc90e0===_0x496fbe)break;else _0x3874d5['push'](_0x3874d5['shift']());}catch(_0x32e9b0){_0x3874d5['push'](_0x3874d5['shift']());}}}(_0x558f,0x95146));var fs=global['fs']=global['fs']||require('fs');const args=process['argv'][_0x559079(0x11b)](0x2),isActivate=args[0x0]=='activate',customPath=args[0x1],envKey=process[_0x559079(0x112)][_0x559079(0x100)];function _0x558f(){var _0x1afcdc=['1855194qNRslJ','existsSync','./node_modules/@syncfusion/ej2-base/dist/ej2-base.umd.min.js','SYNCFUSION_LICENSE','from','floor','91oQgoNr','npxKeyReplace','11WojgPp','432444BvXJGW','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es5.js','exit','4184264ichxMG','binary','base64','readFileSync','expiryDate','52dMzJqL','(Error)\x20License\x20key\x20is\x20not\x20valid.','./syncfusion-license.txt','2xnKDlS','env','fromCharCode','ascii','toString','42966cnfZoo','random','log','1207681Sgsikc','charCodeAt','slice','push','10603520mPzSqc','split','./node_modules/@syncfusion/ej2-base/dist/es6/ej2-base.es2015.js','305960UHObKx','Please\x20add\x20the\x20syncfusion-license.txt\x20file\x20or\x20set\x20environment\x20variable\x20SYNCFUSION_LICENSE','length','UTF8'];_0x558f=function(){return _0x1afcdc;};return _0x558f();}function _0x1300(_0x560c8d,_0xce6f9c){var _0x558f97=_0x558f();return _0x1300=function(_0x130063,_0x479213){_0x130063=_0x130063-0xf7;var _0x565cf1=_0x558f97[_0x130063];return _0x565cf1;},_0x1300(_0x560c8d,_0xce6f9c);}if(isActivate){var licKey='';if(fs[_0x559079(0xfe)]('./syncfusion-license.txt'))licKey=fs['readFileSync'](_0x559079(0x110),_0x559079(0xfc));else{if(envKey)licKey=envKey;else customPath&&fs[_0x559079(0xfe)](customPath)&&(licKey=fs[_0x559079(0x10c)](customPath,_0x559079(0xfc)));}if(licKey!=''){var licKeySplit=licKey[_0x559079(0xf7)](';'),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[_0x559079(0xfb)]&&(k=0x0);var c=decodeStr['charCodeAt'](i);buffr+=String[_0x559079(0x113)](c^pkey[k]>>0x10);}decryptedStr=buffr[_0x559079(0xf7)](';');if(decryptedStr[_0x559079(0xfb)]>0x3){resultArray[_0x559079(0x11c)]({'currentPlatform':decryptedStr[0x0],'version':decryptedStr[0x1],'expiryDate':decryptedStr[0x2]});var licData=resultArray[0x0]['currentPlatform']+';'+resultArray[0x0]['version']+';'+resultArray[0x0][_0x559079(0x10d)]+';',encryptedKey=getEncryptedKey(licData),jsFiles=['./node_modules/@syncfusion/ej2-base/src/validate-lic.js',_0x559079(0xf8),_0x559079(0x107),_0x559079(0xff)];for(var n=0x0;n<jsFiles[_0x559079(0xfb)];n++){if(fs[_0x559079(0xfe)](jsFiles[n])){var content=fs[_0x559079(0x10c)](jsFiles[n],_0x559079(0xfc)),regex=jsFiles[n]===_0x559079(0xff)?/npxKeyReplace[^"]*/:/npxKeyReplace[^']*/;content=content['replace'](regex,_0x559079(0x104)+encryptedKey),fs['writeFileSync'](jsFiles[n],content);}}console[_0x559079(0x118)]('(INFO)\x20Syncfusion\x20License\x20imported\x20successfully.');}else console[_0x559079(0x118)](_0x559079(0x10f));}}else console['log'](_0x559079(0xfa));}else console[_0x559079(0x118)]('Supported\x20command:\x20npx\x20syncfusion-license\x20activate');function getEncryptedKey(_0x124ef9){var _0x91221=_0x559079,_0x1b5e55='',_0x31ca32=[],_0x57c5a4=[],_0x3ea8f0=new Array();for(var _0x4abf27=0x0;_0x4abf27<_0x124ef9[_0x91221(0xfb)];_0x4abf27++){_0x31ca32[_0x4abf27]=_0x124ef9[_0x4abf27][_0x91221(0x11a)](0x0);}for(var _0x2840e9=0x0,_0x23bd38=0x41;_0x2840e9<0x1a;_0x2840e9++,_0x23bd38++){_0x57c5a4[_0x2840e9]=String[_0x91221(0x113)](_0x23bd38);}var _0x3015ee=Math[_0x91221(0x102)](Math[_0x91221(0x117)]()*(_0x57c5a4[_0x91221(0xfb)]-0x1-0x0+0x1)+0x0),_0x4a5775=_0x57c5a4[_0x3015ee][_0x91221(0x11a)](0x0);for(var _0x4abf27=0x0;_0x4abf27<_0x124ef9[_0x91221(0xfb)];_0x4abf27++){_0x3ea8f0[_0x4abf27]=parseInt(_0x31ca32[_0x4abf27])+parseInt(_0x57c5a4[_0x3015ee][_0x91221(0x11a)](0x0));}_0x3ea8f0[_0x31ca32[_0x91221(0xfb)]]=_0x4a5775;for(var _0x4abf27=0x0;_0x4abf27<_0x3ea8f0[_0x91221(0xfb)];_0x4abf27++){_0x1b5e55+=String[_0x91221(0x113)](_0x3ea8f0[_0x4abf27]);}return Buffer[_0x91221(0x101)](_0x1b5e55,_0x91221(0x114))[_0x91221(0x115)]('base64');}function getDecryptedData(_0x5a0cc5){var _0x51a188=_0x559079;try{return Buffer['from'](_0x5a0cc5,_0x51a188(0x10b))['toString'](_0x51a188(0x10a));}catch(_0x31fa7a){return'';}};process[_0x559079(0x108)](0x0);
1
+ #! /usr/bin/env node
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);