@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 { Base } from './base';import { Browser } from './browser';import { isVisible } from './dom';import { Property, Complex, NotifyPropertyChanges, INotifyPropertyChanged, Event } from './notify-property-change';import { EventHandler } from './event-handler';import { ChildProperty } from './child-property';import { select, closest, setStyleAttribute, addClass, createElement } from './dom';import { extend, isUndefined, isNullOrUndefined, compareElementParent, isBlazor } from './util';
1
+ import { Base } from './base';
2
2
  import {DragDirection} from "./draggable";
3
3
 
4
4
  /**
@@ -7,14 +7,14 @@ import {DragDirection} from "./draggable";
7
7
  export interface PositionModel {
8
8
 
9
9
  /**
10
- * Specifies the left position of cursor in draggable.
11
- */
12
- left?: number;
10
+ * Specifies the left position of cursor in draggable.
11
+ */
12
+ left?: number;
13
13
 
14
14
  /**
15
- * Specifies the left position of cursor in draggable.
16
- */
17
- top?: number;
15
+ * Specifies the left position of cursor in draggable.
16
+ */
17
+ top?: number;
18
18
 
19
19
  }
20
20
 
@@ -24,157 +24,157 @@ export interface PositionModel {
24
24
  export interface DraggableModel {
25
25
 
26
26
  /**
27
- * Defines the distance between the cursor and the draggable element.
28
- */
29
- cursorAt?: PositionModel;
27
+ * Defines the distance between the cursor and the draggable element.
28
+ */
29
+ cursorAt?: PositionModel;
30
30
 
31
31
  /**
32
- * If `clone` set to true, drag operations are performed in duplicate element of the draggable element.
33
- *
34
- * @default true
35
- */
36
- clone?: boolean;
32
+ * If `clone` set to true, drag operations are performed in duplicate element of the draggable element.
33
+ *
34
+ * @default true
35
+ */
36
+ clone?: boolean;
37
37
 
38
38
  /**
39
- * Defines the parent element in which draggable element movement will be restricted.
40
- */
41
- dragArea?: HTMLElement | string;
39
+ * Defines the parent element in which draggable element movement will be restricted.
40
+ */
41
+ dragArea?: HTMLElement | string;
42
42
 
43
43
  /**
44
- * Defines the dragArea is scrollable or not.
45
- */
46
- isDragScroll?: boolean;
44
+ * Defines the dragArea is scrollable or not.
45
+ */
46
+ isDragScroll?: boolean;
47
47
 
48
48
  /**
49
- * Defines wheather need to replace drag element by currentstateTarget.
50
- *
51
- * @private
52
- */
53
- isReplaceDragEle?: boolean;
49
+ * Defines wheather need to replace drag element by currentstateTarget.
50
+ *
51
+ * @private
52
+ */
53
+ isReplaceDragEle?: boolean;
54
54
 
55
55
  /**
56
- * Defines wheather need to add prevent select class to body or not.
57
- *
58
- * @private
59
- */
60
- isPreventSelect?: boolean;
56
+ * Defines wheather need to add prevent select class to body or not.
57
+ *
58
+ * @private
59
+ */
60
+ isPreventSelect?: boolean;
61
61
 
62
62
  /**
63
- * Specifies the callback function for drag event.
64
- *
65
- * @event drag
66
- */
67
- drag?: Function;
63
+ * Specifies the callback function for drag event.
64
+ *
65
+ * @event drag
66
+ */
67
+ drag?: Function;
68
68
 
69
69
  /**
70
- * Specifies the callback function for dragStart event.
71
- *
72
- * @event dragStart
73
- */
74
- dragStart?: Function;
70
+ * Specifies the callback function for dragStart event.
71
+ *
72
+ * @event dragStart
73
+ */
74
+ dragStart?: Function;
75
75
 
76
76
  /**
77
- * Specifies the callback function for dragStop event.
78
- *
79
- * @event dragStop
80
- */
81
- dragStop?: Function;
77
+ * Specifies the callback function for dragStop event.
78
+ *
79
+ * @event dragStop
80
+ */
81
+ dragStop?: Function;
82
82
 
83
83
  /**
84
- * Defines the minimum distance draggable element to be moved to trigger the drag operation.
85
- *
86
- * @default 1
87
- */
88
- distance?: number;
84
+ * Defines the minimum distance draggable element to be moved to trigger the drag operation.
85
+ *
86
+ * @default 1
87
+ */
88
+ distance?: number;
89
89
 
90
90
  /**
91
- * Defines the child element selector which will act as drag handle.
92
- */
93
- handle?: string;
91
+ * Defines the child element selector which will act as drag handle.
92
+ */
93
+ handle?: string;
94
94
 
95
95
  /**
96
- * Defines the child element selector which will prevent dragging of element.
97
- */
98
- abort?: string | string[];
96
+ * Defines the child element selector which will prevent dragging of element.
97
+ */
98
+ abort?: string | string[];
99
99
 
100
100
  /**
101
- * Defines the callback function for customizing the cloned element.
102
- */
103
- helper?: Function;
101
+ * Defines the callback function for customizing the cloned element.
102
+ */
103
+ helper?: Function;
104
104
 
105
105
  /**
106
- * Defines the scope value to group sets of draggable and droppable items.
107
- * A draggable with the same scope value will be accepted by the droppable.
108
- */
109
- scope?: string;
106
+ * Defines the scope value to group sets of draggable and droppable items.
107
+ * A draggable with the same scope value will be accepted by the droppable.
108
+ */
109
+ scope?: string;
110
110
 
111
111
  /**
112
- * Specifies the dragTarget by which the clone element is positioned if not given current context element will be considered.
113
- *
114
- * @private
115
- */
116
- dragTarget?: string;
112
+ * Specifies the dragTarget by which the clone element is positioned if not given current context element will be considered.
113
+ *
114
+ * @private
115
+ */
116
+ dragTarget?: string;
117
117
 
118
118
  /**
119
- * Defines the axis to limit the draggable element drag path.The possible axis path values are
120
- * * `x` - Allows drag movement in horizontal direction only.
121
- * * `y` - Allows drag movement in vertical direction only.
122
- */
123
- axis?: DragDirection;
119
+ * Defines the axis to limit the draggable element drag path.The possible axis path values are
120
+ * * `x` - Allows drag movement in horizontal direction only.
121
+ * * `y` - Allows drag movement in vertical direction only.
122
+ */
123
+ axis?: DragDirection;
124
124
 
125
125
  /**
126
- * Defines the function to change the position value.
127
- *
128
- * @private
129
- */
130
- queryPositionInfo?: Function;
126
+ * Defines the function to change the position value.
127
+ *
128
+ * @private
129
+ */
130
+ queryPositionInfo?: Function;
131
131
 
132
132
  /**
133
- * Defines whether the drag clone element will be split form the cursor pointer.
134
- *
135
- * @private
136
- */
137
- enableTailMode?: boolean;
133
+ * Defines whether the drag clone element will be split form the cursor pointer.
134
+ *
135
+ * @private
136
+ */
137
+ enableTailMode?: boolean;
138
138
 
139
139
  /**
140
- * Defines whether to skip the previous drag movement comparison.
141
- *
142
- * @private
143
- */
144
- skipDistanceCheck?: boolean;
140
+ * Defines whether to skip the previous drag movement comparison.
141
+ *
142
+ * @private
143
+ */
144
+ skipDistanceCheck?: boolean;
145
145
 
146
146
  /**
147
- * @private
148
- */
149
- preventDefault?: boolean;
147
+ * @private
148
+ */
149
+ preventDefault?: boolean;
150
150
 
151
151
  /**
152
- * Defines whether to enable autoscroll on drag movement of draggable element.
153
- * enableAutoScroll
154
- *
155
- * @private
156
- */
157
- enableAutoScroll?: boolean;
152
+ * Defines whether to enable autoscroll on drag movement of draggable element.
153
+ * enableAutoScroll
154
+ *
155
+ * @private
156
+ */
157
+ enableAutoScroll?: boolean;
158
158
 
159
159
  /**
160
- * Defines whether to enable taphold on mobile devices.
161
- * enableAutoScroll
162
- *
163
- * @private
164
- */
165
- enableTapHold?: boolean;
160
+ * Defines whether to enable taphold on mobile devices.
161
+ * enableAutoScroll
162
+ *
163
+ * @private
164
+ */
165
+ enableTapHold?: boolean;
166
166
 
167
167
  /**
168
- * Specifies the time delay for tap hold.
169
- *
170
- * @default 750
171
- * @private
172
- */
173
- tapHoldThreshold?: number;
168
+ * Specifies the time delay for tap hold.
169
+ *
170
+ * @default 750
171
+ * @private
172
+ */
173
+ tapHoldThreshold?: number;
174
174
 
175
175
  /**
176
- * @private
177
- */
178
- enableScrollHandler?: boolean;
176
+ * @private
177
+ */
178
+ enableScrollHandler?: boolean;
179
179
 
180
180
  }
package/src/draggable.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 { Base } from './base';
21
22
  import { Browser } from './browser';
22
23
  import { isVisible } from './dom';
@@ -72,7 +73,6 @@ var Draggable = /** @class */ (function (_super) {
72
73
  _this.prevTop = 0;
73
74
  _this.dragProcessStarted = false;
74
75
  _this.eleTop = 0;
75
- /* eslint-disable @typescript-eslint/no-explicit-any */
76
76
  _this.tapHoldTimer = 0;
77
77
  _this.externalInitialize = false;
78
78
  _this.diffY = 0;
@@ -158,7 +158,6 @@ var Draggable = /** @class */ (function (_super) {
158
158
  return this.getScrollableParent(element.parentNode, axis);
159
159
  }
160
160
  };
161
- /* eslint-disable */
162
161
  Draggable.prototype.getScrollableValues = function () {
163
162
  this.parentScrollX = 0;
164
163
  this.parentScrollY = 0;
@@ -166,7 +165,6 @@ var Draggable = /** @class */ (function (_super) {
166
165
  var verticalScrollParent = this.getScrollableParent(this.element.parentNode, 'vertical');
167
166
  var horizontalScrollParent = this.getScrollableParent(this.element.parentNode, 'horizontal');
168
167
  };
169
- /* eslint-enable */
170
168
  Draggable.prototype.initialize = function (evt, curTarget) {
171
169
  this.currentStateTarget = evt.target;
172
170
  if (this.isDragStarted()) {
@@ -179,8 +177,6 @@ var Draggable = /** @class */ (function (_super) {
179
177
  this.target = (evt.currentTarget || curTarget);
180
178
  this.dragProcessStarted = false;
181
179
  if (this.abort) {
182
- /* tslint:disable no-any */
183
- // eslint-disable-next-line
184
180
  var abortSelectors = this.abort;
185
181
  if (typeof abortSelectors === 'string') {
186
182
  abortSelectors = [abortSelectors];
@@ -251,7 +247,6 @@ var Draggable = /** @class */ (function (_super) {
251
247
  }
252
248
  /* istanbul ignore next */
253
249
  if (this.isReplaceDragEle) {
254
- // eslint-disable-next-line
255
250
  element = this.currentStateCheck(evt.target, element);
256
251
  }
257
252
  this.offset = this.calculateParentPosition(element);
@@ -368,7 +363,6 @@ var Draggable = /** @class */ (function (_super) {
368
363
  top: (rect.top + window.pageYOffset) - parseInt(style.marginTop, 10)
369
364
  };
370
365
  };
371
- // tslint:disable-next-line:max-func-body-length
372
366
  Draggable.prototype.intDrag = function (evt) {
373
367
  if (!isUndefined(evt.changedTouches) && (evt.changedTouches.length !== 1)) {
374
368
  return;
@@ -393,7 +387,6 @@ var Draggable = /** @class */ (function (_super) {
393
387
  }
394
388
  var eleObj = this.checkTargetElement(evt);
395
389
  if (eleObj.target && eleObj.instance) {
396
- /* tslint:disable no-any */
397
390
  var flag = true;
398
391
  if (this.hoverObject) {
399
392
  if (this.hoverObject.instance !== eleObj.instance) {
@@ -404,7 +397,6 @@ var Draggable = /** @class */ (function (_super) {
404
397
  }
405
398
  }
406
399
  if (flag) {
407
- // eslint-disable-next-line
408
400
  eleObj.instance.dragData[this.scope] = this.droppables[this.scope];
409
401
  eleObj.instance.intOver(evt, eleObj.target);
410
402
  this.hoverObject = eleObj;
@@ -553,8 +545,6 @@ var Draggable = /** @class */ (function (_super) {
553
545
  if (elements.length === 0) {
554
546
  elements = this.getPathElements(evt);
555
547
  }
556
- /* tslint:disable no-any */
557
- // eslint-disable-next-line
558
548
  var scrollParent = this.getScrollParent(elements, false);
559
549
  if (this.elementInViewport(this.helperElement)) {
560
550
  this.getScrollPosition(scrollParent, draEleTop);
@@ -576,11 +566,7 @@ var Draggable = /** @class */ (function (_super) {
576
566
  this.pageX = pagex;
577
567
  this.pageY = pagey;
578
568
  };
579
- /* tslint:disable no-any */
580
- // eslint-disable-next-line
581
569
  Draggable.prototype.getScrollParent = function (node, reverse) {
582
- /* tslint:disable no-any */
583
- // eslint-disable-next-line
584
570
  var nodeEl = reverse ? node.reverse() : node;
585
571
  var hasScroll;
586
572
  for (var i = nodeEl.length - 1; i >= 0; i--) {
@@ -664,7 +650,6 @@ var Draggable = /** @class */ (function (_super) {
664
650
  var eleObj = this.checkTargetElement(evt);
665
651
  if (eleObj.target && eleObj.instance) {
666
652
  eleObj.instance.dragStopCalled = true;
667
- // eslint-disable-next-line
668
653
  eleObj.instance.dragData[this.scope] = this.droppables[this.scope];
669
654
  eleObj.instance.intDrop(evt, eleObj.target);
670
655
  }
@@ -676,7 +661,6 @@ var Draggable = /** @class */ (function (_super) {
676
661
  * @returns {void}
677
662
  * @private
678
663
  */
679
- // eslint-disable-next-line
680
664
  Draggable.prototype.intDestroy = function (evt) {
681
665
  this.dragProcessStarted = false;
682
666
  this.toggleEvents();
@@ -691,7 +675,6 @@ var Draggable = /** @class */ (function (_super) {
691
675
  }
692
676
  };
693
677
  // triggers when property changed
694
- // eslint-disable-next-line
695
678
  Draggable.prototype.onPropertyChanged = function (newProp, oldProp) {
696
679
  //No Code to handle
697
680
  };
@@ -722,7 +705,6 @@ var Draggable = /** @class */ (function (_super) {
722
705
  eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
723
706
  eleHeightBound = ele.scrollHeight ? (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
724
707
  var keys = ['Top', 'Left', 'Bottom', 'Right'];
725
- /* eslint-disable */
726
708
  var styles = getComputedStyle(ele);
727
709
  for (var i = 0; i < keys.length; i++) {
728
710
  var key = keys[parseInt(i.toString(), 10)];
@@ -732,7 +714,6 @@ var Draggable = /** @class */ (function (_super) {
732
714
  this.borderWidth["" + lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
733
715
  this.padding["" + lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
734
716
  }
735
- /* eslint-enable */
736
717
  if (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) {
737
718
  top = elementArea.top + document.scrollingElement.scrollTop;
738
719
  }
@@ -773,8 +754,6 @@ var Draggable = /** @class */ (function (_super) {
773
754
  return elem;
774
755
  };
775
756
  Draggable.prototype.getMousePosition = function (evt, isdragscroll) {
776
- /* tslint:disable no-any */
777
- // eslint-disable-next-line
778
757
  var dragEle = evt.srcElement !== undefined ? evt.srcElement : evt.target;
779
758
  var intCoord = this.getCoordinates(evt);
780
759
  var pageX;
@@ -1,4 +1,4 @@
1
- import { Base } from './base';import { Browser } from './browser';import { isVisible, matches } from './dom';import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from './notify-property-change';import { EventHandler } from './event-handler';import { compareElementParent } from './util';import {Coordinates, DropInfo} from './draggable';
1
+ import { Base } from './base';
2
2
  import {DropEventArgs} from "./droppable";
3
3
 
4
4
  /**
@@ -7,35 +7,35 @@ import {DropEventArgs} from "./droppable";
7
7
  export interface DroppableModel {
8
8
 
9
9
  /**
10
- * Defines the selector for draggable element to be accepted by the droppable.
11
- */
12
- accept?: string;
10
+ * Defines the selector for draggable element to be accepted by the droppable.
11
+ */
12
+ accept?: string;
13
13
 
14
14
  /**
15
- * Defines the scope value to group sets of draggable and droppable items.
16
- * A draggable with the same scope value will only be accepted by the droppable.
17
- */
18
- scope?: string;
15
+ * Defines the scope value to group sets of draggable and droppable items.
16
+ * A draggable with the same scope value will only be accepted by the droppable.
17
+ */
18
+ scope?: string;
19
19
 
20
20
  /**
21
- * Specifies the callback function, which will be triggered while drag element is dropped in droppable.
22
- *
23
- * @event drop
24
- */
25
- drop?: (args: DropEventArgs) => void;
21
+ * Specifies the callback function, which will be triggered while drag element is dropped in droppable.
22
+ *
23
+ * @event drop
24
+ */
25
+ drop?: (args: DropEventArgs) => void;
26
26
 
27
27
  /**
28
- * Specifies the callback function, which will be triggered while drag element is moved over droppable element.
29
- *
30
- * @event over
31
- */
32
- over?: Function;
28
+ * Specifies the callback function, which will be triggered while drag element is moved over droppable element.
29
+ *
30
+ * @event over
31
+ */
32
+ over?: Function;
33
33
 
34
34
  /**
35
- * Specifies the callback function, which will be triggered while drag element is moved out of droppable element.
36
- *
37
- * @event bind
38
- */
39
- out?: Function;
35
+ * Specifies the callback function, which will be triggered while drag element is moved out of droppable element.
36
+ *
37
+ * @event bind
38
+ */
39
+ out?: Function;
40
40
 
41
41
  }
package/src/droppable.js CHANGED
@@ -1,22 +1,22 @@
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
20
  import { Base } from './base';
21
21
  import { Browser } from './browser';
22
22
  import { isVisible, matches } from './dom';
@@ -55,7 +55,6 @@ var Droppable = /** @class */ (function (_super) {
55
55
  EventHandler.add(this.element, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDrop, this);
56
56
  };
57
57
  // triggers when property changed
58
- // eslint-disable-next-line
59
58
  Droppable.prototype.onPropertyChanged = function (newProp, oldProp) {
60
59
  //No Code to handle
61
60
  };
@@ -108,12 +108,8 @@ var EventHandler = /** @class */ (function () {
108
108
  * @returns {void} ?
109
109
  */
110
110
  EventHandler.clearEvents = function (element) {
111
- var eventData;
112
- var copyData;
113
- // eslint-disable-next-line
114
- eventData = EventHandler.addOrGetEventData(element);
115
- // eslint-disable-next-line
116
- copyData = extend([], copyData, eventData);
111
+ var eventData = EventHandler.addOrGetEventData(element);
112
+ var copyData = extend([], undefined, eventData);
117
113
  for (var i = 0; i < copyData.length; i++) {
118
114
  var parseValue = copyData[parseInt(i.toString(), 10)];
119
115
  element.removeEventListener(parseValue.name, parseValue.debounce);
package/src/fetch.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { isNullOrUndefined as isNOU, isObject, merge } from './util';
2
3
  /**
3
4
  * The Fetch class provides a way to make asynchronous network requests, typically to retrieve resources from a server.
@@ -88,11 +89,9 @@ var Fetch = /** @class */ (function () {
88
89
  }
89
90
  }
90
91
  return response[responseType]();
91
- // eslint-disable-next-line
92
92
  }).then(function (data) {
93
93
  _this.triggerEvent(_this['onSuccess'], data, _this);
94
94
  return data;
95
- // eslint-disable-next-line
96
95
  }).catch(function (error) {
97
96
  var returnVal = {};
98
97
  if (_this.emitError) {
@@ -1,7 +1,7 @@
1
1
  /***
2
2
  * Hijri parser
3
3
  */
4
- // eslint-disable-next-line
4
+ // eslint-disable-next-line @typescript-eslint/no-namespace
5
5
  export var HijriParser;
6
6
  (function (HijriParser) {
7
7
  var dateCorrection = [28607, 28636, 28665, 28695, 28724, 28754, 28783, 28813, 28843, 28872, 28901, 28931, 28960, 28990,
@@ -117,7 +117,7 @@ export var HijriParser;
117
117
  tYear -= 1;
118
118
  tMonth += 12;
119
119
  }
120
- var yPrefix = Math.floor(tYear / 100.);
120
+ var yPrefix = Math.floor(tYear / 100);
121
121
  var julilanOffset = yPrefix - Math.floor(yPrefix / 4.) - 2;
122
122
  var julianNumber = Math.floor(365.25 * (tYear + 4716)) + Math.floor(30.6001 * (tMonth + 1)) + day - julilanOffset - 1524;
123
123
  yPrefix = Math.floor((julianNumber - 1867216.25) / 36524.25);
@@ -136,7 +136,7 @@ export var HijriParser;
136
136
  year = c - 4716;
137
137
  var modifiedJulianDate = julianNumber - 2400000;
138
138
  // date calculation for year after 2077
139
- var iyear = 10631. / 30.;
139
+ var iyear = 10631 / 30;
140
140
  var z = julianNumber - 1948084;
141
141
  var cyc = Math.floor(z / 10631.);
142
142
  z = z - 10631 * cyc;
@@ -58,6 +58,10 @@ export interface NumberFormatOptions {
58
58
  * Specifies whether to use grouping or not in formatted value,
59
59
  */
60
60
  useGrouping?: boolean;
61
+ /**
62
+ * Specifies whether to ignore currency symbol in formatted value,
63
+ */
64
+ ignoreCurrency?: boolean;
61
65
  /**
62
66
  * Specifies the skeleton for perform formatting.
63
67
  */