@syncfusion/ej2-base 25.2.7 → 26.1.35-7502

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 +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 +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 -161
  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 -649
  201. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { extend } from './util';import { Property, Complex, NotifyPropertyChanges, INotifyPropertyChanged, Event } from './notify-property-change';import { Browser } from './browser';import { Base, EmitType } from './base';import { ChildProperty } from './child-property';import { EventHandler, BaseEventArgs } from './event-handler';
1
+ import { extend } from './util';
2
2
  import {TapEventArgs,SwipeEventArgs,ScrollEventArgs} from "./touch";
3
3
 
4
4
  /**
@@ -7,9 +7,9 @@ import {TapEventArgs,SwipeEventArgs,ScrollEventArgs} from "./touch";
7
7
  export interface SwipeSettingsModel {
8
8
 
9
9
  /**
10
- * Property specifies minimum distance of swipe moved.
11
- */
12
- swipeThresholdDistance?: number;
10
+ * Property specifies minimum distance of swipe moved.
11
+ */
12
+ swipeThresholdDistance?: number;
13
13
 
14
14
  }
15
15
 
@@ -19,52 +19,52 @@ export interface SwipeSettingsModel {
19
19
  export interface TouchModel {
20
20
 
21
21
  /**
22
- * Specifies the callback function for tap event.
23
- *
24
- * @event tap
25
- */
26
- tap?: EmitType<TapEventArgs>;
22
+ * Specifies the callback function for tap event.
23
+ *
24
+ * @event tap
25
+ */
26
+ tap?: EmitType<TapEventArgs>;
27
27
 
28
28
  /**
29
- * Specifies the callback function for tapHold event.
30
- *
31
- * @event tapHold
32
- */
33
- tapHold?: EmitType<TapEventArgs>;
29
+ * Specifies the callback function for tapHold event.
30
+ *
31
+ * @event tapHold
32
+ */
33
+ tapHold?: EmitType<TapEventArgs>;
34
34
 
35
35
  /**
36
- * Specifies the callback function for swipe event.
37
- *
38
- * @event swipe
39
- */
40
- swipe?: EmitType<SwipeEventArgs>;
36
+ * Specifies the callback function for swipe event.
37
+ *
38
+ * @event swipe
39
+ */
40
+ swipe?: EmitType<SwipeEventArgs>;
41
41
 
42
42
  /**
43
- * Specifies the callback function for scroll event.
44
- *
45
- * @event scroll
46
- */
47
- scroll?: EmitType<ScrollEventArgs>;
43
+ * Specifies the callback function for scroll event.
44
+ *
45
+ * @event scroll
46
+ */
47
+ scroll?: EmitType<ScrollEventArgs>;
48
48
 
49
49
  /**
50
- * Specifies the time delay for tap.
51
- *
52
- * @default 350
53
- */
54
- tapThreshold?: number;
50
+ * Specifies the time delay for tap.
51
+ *
52
+ * @default 350
53
+ */
54
+ tapThreshold?: number;
55
55
 
56
56
  /**
57
- * Specifies the time delay for tap hold.
58
- *
59
- * @default 750
60
- */
61
- tapHoldThreshold?: number;
57
+ * Specifies the time delay for tap hold.
58
+ *
59
+ * @default 750
60
+ */
61
+ tapHoldThreshold?: number;
62
62
 
63
63
  /**
64
- * Customize the swipe event configuration.
65
- *
66
- * @default { swipeThresholdDistance: 50 }
67
- */
68
- swipeSettings?: SwipeSettingsModel;
64
+ * Customize the swipe event configuration.
65
+ *
66
+ * @default { swipeThresholdDistance: 50 }
67
+ */
68
+ swipeSettings?: SwipeSettingsModel;
69
69
 
70
70
  }
package/src/touch.js CHANGED
@@ -1,22 +1,23 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
+ /* eslint-disable @typescript-eslint/no-explicit-any */
20
21
  import { extend } from './util';
21
22
  import { Property, Complex, NotifyPropertyChanges, Event } from './notify-property-change';
22
23
  import { Browser } from './browser';
@@ -172,10 +173,8 @@ var Touch = /** @class */ (function (_super) {
172
173
  velocity: _this.getVelocity(point)
173
174
  };
174
175
  if (_this.isTouchMoved) {
175
- var eSwipeArgs = void 0;
176
176
  var tDistance = _this.swipeSettings.swipeThresholdDistance;
177
- // eslint-disable-next-line
178
- eSwipeArgs = extend(eSwipeArgs, _this.defaultArgs, swipeArgs);
177
+ var eSwipeArgs = extend(undefined, _this.defaultArgs, swipeArgs);
179
178
  var canTrigger = false;
180
179
  var ele = _this.element;
181
180
  var scrollBool = _this.isScrollable(ele);
@@ -214,7 +213,6 @@ var Touch = /** @class */ (function (_super) {
214
213
  * @param {TouchModel} oldProp ?
215
214
  * @returns {void} ?
216
215
  */
217
- // eslint-disable-next-line
218
216
  Touch.prototype.onPropertyChanged = function (newProp, oldProp) {
219
217
  //No Code to handle
220
218
  };
@@ -271,11 +269,9 @@ var Touch = /** @class */ (function (_super) {
271
269
  Touch.prototype.tapHoldEvent = function (evt) {
272
270
  this.tapCount = 0;
273
271
  this.touchAction = true;
274
- var eTapArgs;
275
272
  EventHandler.remove(this.element, Browser.touchMoveEvent, this.moveEvent);
276
273
  EventHandler.remove(this.element, Browser.touchEndEvent, this.endEvent);
277
- // eslint-disable-next-line
278
- eTapArgs = { originalEvent: evt };
274
+ var eTapArgs = { originalEvent: evt };
279
275
  this.trigger('tapHold', eTapArgs);
280
276
  EventHandler.remove(this.element, Browser.touchCancelEvent, this.cancelEvent);
281
277
  };
@@ -314,7 +310,6 @@ var Touch = /** @class */ (function (_super) {
314
310
  var interval = newT - this.tStampStart;
315
311
  return Math.sqrt(xDist * xDist + yDist * yDist) / interval;
316
312
  };
317
- // eslint-disable-next-line
318
313
  Touch.prototype.checkSwipe = function (ele, flag) {
319
314
  var keys = ['scroll', 'offset'];
320
315
  var temp = flag ? ['Height', 'Top'] : ['Width', 'Left'];
package/src/util.d.ts CHANGED
@@ -100,19 +100,19 @@ export declare function extend(copied: Object, first: Object, second?: Object, d
100
100
  /**
101
101
  * To check whether the object is null or undefined.
102
102
  *
103
- * @param {Object} value - To check the object is null or undefined
103
+ * @param {any} value - To check the object is null or undefined
104
104
  * @returns {boolean} ?
105
105
  * @private
106
106
  */
107
- export declare function isNullOrUndefined(value: Object): boolean;
107
+ export declare function isNullOrUndefined<T>(value: T): boolean;
108
108
  /**
109
109
  * To check whether the object is undefined.
110
110
  *
111
- * @param {Object} value - To check the object is undefined
111
+ * @param {any} value - To check the object is undefined
112
112
  * @returns {boolean} ?
113
113
  * @private
114
114
  */
115
- export declare function isUndefined(value: Object): boolean;
115
+ export declare function isUndefined<T>(value: T): boolean;
116
116
  /**
117
117
  * To return the generated unique name
118
118
  *
package/src/util.js CHANGED
@@ -18,7 +18,6 @@ export function disableBlazorMode() {
18
18
  * @returns {any} ?
19
19
  * @private
20
20
  */
21
- // eslint-disable-next-line
22
21
  export function createInstance(classFunction, params) {
23
22
  var arrayParam = params;
24
23
  arrayParam.unshift(undefined);
@@ -33,12 +32,10 @@ export function createInstance(classFunction, params) {
33
32
  */
34
33
  export function setImmediate(handler) {
35
34
  var unbind;
36
- // eslint-disable-next-line
37
35
  var num = new Uint16Array(5);
38
36
  var intCrypto = window.msCrypto || window.crypto;
39
37
  intCrypto.getRandomValues(num);
40
38
  var secret = 'ej2' + combineArray(num);
41
- // eslint-disable-next-line
42
39
  var messageHandler = function (event) {
43
40
  if (event.source === window && typeof event.data === 'string' && event.data.length <= 32 && event.data === secret) {
44
41
  handler();
@@ -60,9 +57,7 @@ export function setImmediate(handler) {
60
57
  * @returns {any} ?
61
58
  * @private
62
59
  */
63
- // eslint-disable-next-line
64
60
  export function getValue(nameSpace, obj) {
65
- // eslint-disable-next-line
66
61
  var value = obj;
67
62
  var splits = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
68
63
  for (var i = 0; i < splits.length && !isUndefined(value); i++) {
@@ -79,12 +74,9 @@ export function getValue(nameSpace, obj) {
79
74
  * @returns {any} ?
80
75
  * @private
81
76
  */
82
- // eslint-disable-next-line
83
77
  export function setValue(nameSpace, value, obj) {
84
78
  var keys = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
85
- // eslint-disable-next-line
86
79
  var start = obj || {};
87
- // eslint-disable-next-line
88
80
  var fromObj = start;
89
81
  var i;
90
82
  var length = keys.length;
@@ -109,14 +101,12 @@ export function setValue(nameSpace, value, obj) {
109
101
  * @returns {void} ?
110
102
  * @private
111
103
  */
112
- // eslint-disable-next-line
113
104
  export function deleteObject(obj, key) {
114
105
  delete obj["" + key];
115
106
  }
116
107
  /**
117
108
  *@private
118
109
  */
119
- // eslint-disable-next-line
120
110
  export var containerObject = typeof window !== 'undefined' ? window : {};
121
111
  /**
122
112
  * Check weather the given argument is only object.
@@ -125,7 +115,6 @@ export var containerObject = typeof window !== 'undefined' ? window : {};
125
115
  * @returns {boolean} ?
126
116
  * @private
127
117
  */
128
- // eslint-disable-next-line
129
118
  export function isObject(obj) {
130
119
  var objCon = {};
131
120
  return (!isNullOrUndefined(obj) && obj.constructor === objCon.constructor);
@@ -138,10 +127,8 @@ export function isObject(obj) {
138
127
  * @returns {any} ?
139
128
  * @private
140
129
  */
141
- // eslint-disable-next-line
142
130
  export function getEnumValue(enumObject, enumValue) {
143
- // eslint-disable-next-line
144
- return enumObject[enumValue];
131
+ return enumObject["" + enumValue];
145
132
  }
146
133
  /**
147
134
  * Merge the source object into destination object.
@@ -182,28 +169,25 @@ export function merge(source, destination) {
182
169
  export function extend(copied, first, second, deep) {
183
170
  var result = copied && typeof copied === 'object' ? copied : {};
184
171
  var length = arguments.length;
172
+ var args = [copied, first, second, deep];
185
173
  if (deep) {
186
174
  length = length - 1;
187
175
  }
188
176
  var _loop_1 = function (i) {
189
- // eslint-disable-next-line
190
- if (!arguments_1[i]) {
177
+ if (!args[parseInt(i.toString(), 10)]) {
191
178
  return "continue";
192
179
  }
193
- // eslint-disable-next-line
194
- var obj1 = arguments_1[i];
180
+ var obj1 = args[parseInt(i.toString(), 10)];
195
181
  Object.keys(obj1).forEach(function (key) {
196
182
  var src = result["" + key];
197
183
  var copy = obj1["" + key];
198
184
  var clone;
199
185
  var isArrayChanged = Array.isArray(copy) && Array.isArray(src) && (copy.length !== src.length);
200
- // eslint-disable-next-line
201
186
  var blazorEventExtend = isBlazor() ? (!(src instanceof Event) && !isArrayChanged) : true;
202
187
  if (deep && blazorEventExtend && (isObject(copy) || Array.isArray(copy))) {
203
188
  if (isObject(copy)) {
204
189
  clone = src ? src : {};
205
- // eslint-disable-next-line
206
- if (Array.isArray(clone) && clone.hasOwnProperty('isComplexArray')) {
190
+ if (Array.isArray(clone) && Object.prototype.hasOwnProperty.call(clone, 'isComplexArray')) {
207
191
  extend(clone, {}, copy, deep);
208
192
  }
209
193
  else {
@@ -213,7 +197,6 @@ export function extend(copied, first, second, deep) {
213
197
  else {
214
198
  /* istanbul ignore next */
215
199
  clone = isBlazor() ? src && Object.keys(copy).length : src ? src : [];
216
- // eslint-disable-next-line
217
200
  result["" + key] = extend([], clone, copy, (clone && clone.length) || (copy && copy.length));
218
201
  }
219
202
  }
@@ -222,7 +205,6 @@ export function extend(copied, first, second, deep) {
222
205
  }
223
206
  });
224
207
  };
225
- var arguments_1 = arguments;
226
208
  for (var i = 1; i < length; i++) {
227
209
  _loop_1(i);
228
210
  }
@@ -231,7 +213,7 @@ export function extend(copied, first, second, deep) {
231
213
  /**
232
214
  * To check whether the object is null or undefined.
233
215
  *
234
- * @param {Object} value - To check the object is null or undefined
216
+ * @param {any} value - To check the object is null or undefined
235
217
  * @returns {boolean} ?
236
218
  * @private
237
219
  */
@@ -241,7 +223,7 @@ export function isNullOrUndefined(value) {
241
223
  /**
242
224
  * To check whether the object is undefined.
243
225
  *
244
- * @param {Object} value - To check the object is undefined
226
+ * @param {any} value - To check the object is undefined
245
227
  * @returns {boolean} ?
246
228
  * @private
247
229
  */
@@ -267,12 +249,13 @@ export function getUniqueID(definedName) {
267
249
  * @private
268
250
  */
269
251
  export function debounce(eventFunction, delay) {
270
- // eslint-disable-next-line
271
252
  var out;
272
253
  return function () {
273
254
  var _this = this;
274
- // eslint-disable-next-line
275
- var args = arguments;
255
+ var args = [];
256
+ for (var _i = 0; _i < arguments.length; _i++) {
257
+ args[_i] = arguments[_i];
258
+ }
276
259
  var later = function () {
277
260
  out = null;
278
261
  return eventFunction.apply(_this, args);
@@ -288,7 +271,6 @@ export function debounce(eventFunction, delay) {
288
271
  * @returns {string} ?
289
272
  * @private
290
273
  */
291
- // eslint-disable-next-line
292
274
  export function queryParams(data) {
293
275
  var array = [];
294
276
  var keys = Object.keys(data);
@@ -346,8 +328,7 @@ export function throwError(message) {
346
328
  throw new Error(message);
347
329
  }
348
330
  catch (e) {
349
- // eslint-disable-next-line
350
- throw e.message + '\n' + e.stack;
331
+ throw new Error(e.message + '\n' + e.stack);
351
332
  }
352
333
  }
353
334
  /**
@@ -379,7 +360,6 @@ export function print(element, printWindow) {
379
360
  '<script> (function() { window.ready = true; })(); </script>' + '</body></html>');
380
361
  printWindow.document.close();
381
362
  printWindow.focus();
382
- // eslint-disable-next-line
383
363
  var interval = setInterval(function () {
384
364
  if (printWindow.ready) {
385
365
  printWindow.print();
@@ -443,9 +423,7 @@ export function getElement(element) {
443
423
  * @returns {Object} ?
444
424
  * @private
445
425
  */
446
- // eslint-disable-next-line
447
426
  export function getInstance(element, component) {
448
- // eslint-disable-next-line
449
427
  var elem = (typeof (element) === 'string') ? document.querySelector(element) : element;
450
428
  if (elem["" + instances]) {
451
429
  for (var _i = 0, _a = elem["" + instances]; _i < _a.length; _i++) {
@@ -466,7 +444,6 @@ export function getInstance(element, component) {
466
444
  * @private
467
445
  */
468
446
  export function addInstance(element, instance) {
469
- // eslint-disable-next-line
470
447
  var elem = (typeof (element) === 'string') ? document.querySelector(element) : element;
471
448
  if (elem["" + instances]) {
472
449
  elem["" + instances].push(instance);
@@ -481,12 +458,10 @@ export function addInstance(element, instance) {
481
458
  * @returns {any} ?
482
459
  * @private
483
460
  */
484
- // eslint-disable-next-line
485
461
  export function uniqueID() {
486
462
  if ((typeof window) === 'undefined') {
487
463
  return;
488
464
  }
489
- // eslint-disable-next-line
490
465
  var num = new Uint16Array(5);
491
466
  var intCrypto = window.msCrypto || window.crypto;
492
467
  return intCrypto.getRandomValues(num);
@@ -14,7 +14,7 @@ var LicenseValidator = /** @class */ (function () {
14
14
  function LicenseValidator(key) {
15
15
  this.isValidated = false;
16
16
  this.isLicensed = true;
17
- this.version = '25';
17
+ this.version = '26';
18
18
  this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i;
19
19
  this.errors = {
20
20
  noLicense: '<span>This application was built using a trial version of Syncfusion Essential Studio.' +
@@ -118,7 +118,7 @@ var LicenseValidator = /** @class */ (function () {
118
118
  }
119
119
  }
120
120
  if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
121
- accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjU=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information';
121
+ accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs={versionencodedData}&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information';
122
122
  var errorDiv = createElement('div', {
123
123
  innerHTML: "<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5OV80KSI+CjxwYXRoIGQ9Ik0xMiAyMUMxNi45NzA2IDIxIDIxIDE2Ljk3MDYgMjEgMTJDMjEgNy4wMjk0NCAxNi45NzA2IDMgMTIgM0M3LjAyOTQ0IDMgMyA3LjAyOTQ0IDMgMTJDMyAxNi45NzA2IDcuMDI5NDQgMjEgMTIgMjFaIiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBmaWxsPSIjNjE2MDYzIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS44MTI1IDlDMTIuNDMzOCA5IDEyLjkzNzUgOC40OTYzMiAxMi45Mzc1IDcuODc1QzEyLjkzNzUgNy4yNTM2OCAxMi40MzM4IDYuNzUgMTEuODEyNSA2Ljc1QzExLjE5MTIgNi43NSAxMC42ODc1IDcuMjUzNjggMTAuNjg3NSA3Ljg3NUMxMC42ODc1IDguNDk2MzIgMTEuMTkxMiA5IDExLjgxMjUgOVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTlfNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style=\"top: 6px;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\"/>" + validateMsg + ' ' + '<a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href=' + accountURL + '>Claim your free account</a>'
124
124
  });
@@ -183,7 +183,8 @@ var LicenseValidator = /** @class */ (function () {
183
183
  var charKey = decodeStr[decodeStr.length - 1];
184
184
  var decryptedKey = [];
185
185
  for (var i = 0; i < decodeStr.length; i++) {
186
- decryptedKey["" + i] = decodeStr["" + i].charCodeAt(0) - charKey.charCodeAt(0);
186
+ decryptedKey[parseInt(i.toString(), 10)] = decodeStr[parseInt(i.toString(), 10)].charCodeAt(0)
187
+ - charKey.charCodeAt(0);
187
188
  }
188
189
  for (var i = 0; i < decryptedKey.length; i++) {
189
190
  buffr += String.fromCharCode(decryptedKey[parseInt(i.toString(), 10)]);
package/styles/_all.scss CHANGED
@@ -1,2 +1,2 @@
1
- @import 'common/all.scss';
2
- @import 'animation/all.scss';
1
+ @import 'common/all.scss';
2
+ @import 'animation/all.scss';
@@ -1,15 +1,16 @@
1
- @import 'definition/bds-dark.scss';
2
-
3
- @if not variable-exists('is-inter-loaded') {
4
- //sass-lint:disable no-url-protocols,no-url-domains
5
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');// stylelint-disable-line no-invalid-position-at-import-rule
6
- }
7
-
8
- $font-family: 'Inter' !default;
9
- $font-size: 12px !default;
10
- $font-weight: normal !default;
11
- $error-font-color: $danger !default;
12
- $overlay-bg-color: rgba($cool-gray-500, .75) !default;
13
- $warning-font-color: $orange-700 !default;
14
- $success-font-color: $green-700 !default;
15
- $information-font-color: $cyan-700 !default;
1
+ @use 'sass:meta';
2
+ @import 'definition/bds-dark.scss';
3
+
4
+ @if not meta.variable-exists('is-inter-loaded') {
5
+ //sass-lint:disable no-url-protocols,no-url-domains
6
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');// stylelint-disable-line no-invalid-position-at-import-rule
7
+ }
8
+
9
+ $font-family: 'Inter' !default;
10
+ $font-size: 12px !default;
11
+ $font-weight: normal !default;
12
+ $error-font-color: $danger !default;
13
+ $overlay-bg-color: rgba($cool-gray-500, .75) !default;
14
+ $warning-font-color: $orange-700 !default;
15
+ $success-font-color: $green-700 !default;
16
+ $information-font-color: $cyan-700 !default;
@@ -1,15 +1,16 @@
1
- @import 'definition/bds.scss';
2
-
3
- @if not variable-exists('is-inter-loaded') {
4
- //sass-lint:disable no-url-protocols,no-url-domains
5
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');// stylelint-disable-line no-invalid-position-at-import-rule
6
- }
7
-
8
- $font-family: 'Inter' !default;
9
- $font-size: 12px !default;
10
- $font-weight: normal !default;
11
- $error-font-color: $danger !default;
12
- $overlay-bg-color: rgba($cool-gray-500, .75) !default;
13
- $warning-font-color: $orange-700 !default;
14
- $success-font-color: $green-700 !default;
15
- $information-font-color: $cyan-700 !default;
1
+ @use 'sass:meta';
2
+ @import 'definition/bds.scss';
3
+
4
+ @if not meta.variable-exists('is-inter-loaded') {
5
+ //sass-lint:disable no-url-protocols,no-url-domains
6
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');// stylelint-disable-line no-invalid-position-at-import-rule
7
+ }
8
+
9
+ $font-family: 'Inter' !default;
10
+ $font-size: 12px !default;
11
+ $font-weight: normal !default;
12
+ $error-font-color: $danger !default;
13
+ $overlay-bg-color: rgba($cool-gray-500, .75) !default;
14
+ $warning-font-color: $orange-700 !default;
15
+ $success-font-color: $green-700 !default;
16
+ $information-font-color: $cyan-700 !default;
@@ -1,42 +1,42 @@
1
- @import 'definition/bootstrap-dark.scss';
2
-
3
- $font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif, '-apple-system', 'BlinkMacSystemFont' !default;
4
- $font-size: 12px !default;
5
- $font-weight: normal !default;
6
- $font-path: 'common-images' !default;
7
- $header-bg-color: $grey-white !default;
8
- $header-gradient-color: none !default;
9
- $header-border-color: $grey-base !default;
10
- $header-font-color: $grey-light-font !default;
11
- $header-icon-color: $grey-light-font !default;
12
- $content-bg-color: $grey-white !default;
13
- $content-border-color: $grey-base !default;
14
- $content-font-color: $grey-light-font !default;
15
- $default-bg-color: $grey-white !default;
16
- $default-gradient-color: none !default;
17
- $default-border-color: $grey-base !default;
18
- $default-font-color: $grey-light-font !default;
19
- $default-icon-color: $grey-light-font !default;
20
- $hover-bg-color: $grey-ad !default;
21
- $hover-gradient-color: none !default;
22
- $hover-border-color: $grey-base !default;
23
- $hover-font-color: $grey-light-font !default;
24
- $hover-icon-color: $grey-light-font !default;
25
- $active-bg-color: $grey-44 !default;
26
- $active-gradient-color: none !default;
27
- $active-border-color: $grey-base !default;
28
- $active-font-color: $grey-light-font !default;
29
- $active-icon-color: $grey-light-font !default;
30
- $error-font-color: $brand-danger-font !default;
31
- $warning-font-color: $grey-dark-font !default;
32
- $success-font-color: $brand-success-font !default;
33
- $information-font-color: $brand-info-font !default;
34
- $overlay-bg-color: #383838 !default;
35
- $shadow-color: rgba(0, 0, 0, .4) !default;
36
- $border-size: 1px !default;
37
- $border-type: solid !default;
38
- $border-radius: 0 !default;
39
- $border-left-radius: 0 !default;
40
- $border-right-radius: 0 !default;
41
- $border-top-radius: 0 !default;
42
- $border-bottom-radius: 0 !default;
1
+ @import 'definition/bootstrap-dark.scss';
2
+
3
+ $font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif, '-apple-system', 'BlinkMacSystemFont' !default;
4
+ $font-size: 12px !default;
5
+ $font-weight: normal !default;
6
+ $font-path: 'common-images' !default;
7
+ $header-bg-color: $grey-white !default;
8
+ $header-gradient-color: none !default;
9
+ $header-border-color: $grey-base !default;
10
+ $header-font-color: $grey-light-font !default;
11
+ $header-icon-color: $grey-light-font !default;
12
+ $content-bg-color: $grey-white !default;
13
+ $content-border-color: $grey-base !default;
14
+ $content-font-color: $grey-light-font !default;
15
+ $default-bg-color: $grey-white !default;
16
+ $default-gradient-color: none !default;
17
+ $default-border-color: $grey-base !default;
18
+ $default-font-color: $grey-light-font !default;
19
+ $default-icon-color: $grey-light-font !default;
20
+ $hover-bg-color: $grey-ad !default;
21
+ $hover-gradient-color: none !default;
22
+ $hover-border-color: $grey-base !default;
23
+ $hover-font-color: $grey-light-font !default;
24
+ $hover-icon-color: $grey-light-font !default;
25
+ $active-bg-color: $grey-44 !default;
26
+ $active-gradient-color: none !default;
27
+ $active-border-color: $grey-base !default;
28
+ $active-font-color: $grey-light-font !default;
29
+ $active-icon-color: $grey-light-font !default;
30
+ $error-font-color: $brand-danger-font !default;
31
+ $warning-font-color: $grey-dark-font !default;
32
+ $success-font-color: $brand-success-font !default;
33
+ $information-font-color: $brand-info-font !default;
34
+ $overlay-bg-color: #383838 !default;
35
+ $shadow-color: rgba(0, 0, 0, .4) !default;
36
+ $border-size: 1px !default;
37
+ $border-type: solid !default;
38
+ $border-radius: 0 !default;
39
+ $border-left-radius: 0 !default;
40
+ $border-right-radius: 0 !default;
41
+ $border-top-radius: 0 !default;
42
+ $border-bottom-radius: 0 !default;