@syncfusion/ej2-base 19.2.55 → 19.3.47

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 (111) hide show
  1. package/.eslintrc.json +1 -1
  2. package/CHANGELOG.md +1 -89
  3. package/README.md +1 -1
  4. package/dist/ej2-base.umd.min.js +2 -2
  5. package/dist/ej2-base.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-base.es2015.js +2650 -2401
  7. package/dist/es6/ej2-base.es2015.js.map +1 -1
  8. package/dist/es6/ej2-base.es5.js +3186 -2948
  9. package/dist/es6/ej2-base.es5.js.map +1 -1
  10. package/dist/global/ej2-base.min.js +2 -2
  11. package/dist/global/ej2-base.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/e2e/crypto.js +1 -1
  14. package/e2e/index.d.ts +0 -3
  15. package/e2e/m.protractor.config.js +1 -1
  16. package/e2e/protractor.config.js +1 -1
  17. package/helpers/e2e/base.js +3 -3
  18. package/package.json +7 -64
  19. package/src/ajax.d.ts +24 -10
  20. package/src/ajax.js +14 -6
  21. package/src/animation-model.d.ts +12 -4
  22. package/src/animation.d.ts +37 -12
  23. package/src/animation.js +48 -22
  24. package/src/base.d.ts +31 -11
  25. package/src/base.js +34 -16
  26. package/src/browser.d.ts +63 -25
  27. package/src/browser.js +60 -15
  28. package/src/child-property.d.ts +21 -10
  29. package/src/child-property.js +23 -13
  30. package/src/component-model.d.ts +4 -1
  31. package/src/component.d.ts +42 -5
  32. package/src/component.js +52 -35
  33. package/src/dom.d.ts +76 -25
  34. package/src/dom.js +128 -124
  35. package/src/draggable-model.d.ts +5 -0
  36. package/src/draggable.d.ts +4 -1
  37. package/src/draggable.js +8 -2
  38. package/src/droppable-model.d.ts +7 -4
  39. package/src/droppable.d.ts +7 -3
  40. package/src/droppable.js +1 -0
  41. package/src/event-handler.d.ts +10 -6
  42. package/src/event-handler.js +11 -7
  43. package/src/hijri-parser.d.ts +12 -0
  44. package/src/hijri-parser.js +111 -90
  45. package/src/internationalization.d.ts +54 -21
  46. package/src/internationalization.js +55 -18
  47. package/src/intl/date-formatter.d.ts +19 -8
  48. package/src/intl/date-formatter.js +36 -13
  49. package/src/intl/date-parser.d.ts +30 -23
  50. package/src/intl/date-parser.js +61 -42
  51. package/src/intl/intl-base.d.ts +123 -46
  52. package/src/intl/intl-base.js +451 -377
  53. package/src/intl/number-formatter.d.ts +45 -34
  54. package/src/intl/number-formatter.js +47 -35
  55. package/src/intl/number-parser.d.ts +11 -8
  56. package/src/intl/number-parser.js +14 -11
  57. package/src/intl/parser-base.d.ts +38 -13
  58. package/src/intl/parser-base.js +45 -16
  59. package/src/keyboard-model.d.ts +5 -2
  60. package/src/keyboard.d.ts +26 -8
  61. package/src/keyboard.js +24 -9
  62. package/src/l10n.d.ts +16 -7
  63. package/src/l10n.js +16 -7
  64. package/src/module-loader.d.ts +13 -8
  65. package/src/module-loader.js +13 -9
  66. package/src/notify-property-change.d.ts +19 -7
  67. package/src/notify-property-change.js +140 -24
  68. package/src/observer.d.ts +17 -5
  69. package/src/observer.js +19 -7
  70. package/src/sanitize-helper.d.ts +1 -0
  71. package/src/sanitize-helper.js +1 -1
  72. package/src/template-engine.d.ts +30 -4
  73. package/src/template-engine.js +37 -12
  74. package/src/template.d.ts +8 -3
  75. package/src/template.js +67 -19
  76. package/src/touch-model.d.ts +11 -4
  77. package/src/touch.d.ts +51 -9
  78. package/src/touch.js +45 -13
  79. package/src/util.d.ts +67 -37
  80. package/src/util.js +99 -49
  81. package/styles/_bootstrap-definition.scss +0 -1
  82. package/styles/_bootstrap5-dark-definition.scss +10 -0
  83. package/styles/_bootstrap5-definition.scss +9 -0
  84. package/styles/_fabric-dark-definition.scss +0 -1
  85. package/styles/_highcontrast-light-definition.scss +1 -0
  86. package/styles/_material-definition.scss +1 -0
  87. package/styles/bootstrap-dark.css +2613 -32
  88. package/styles/bootstrap.css +2613 -32
  89. package/styles/bootstrap4.css +2149 -32
  90. package/styles/bootstrap5-dark.css +2157 -0
  91. package/styles/bootstrap5-dark.scss +3 -0
  92. package/styles/bootstrap5.css +2157 -0
  93. package/styles/bootstrap5.scss +3 -0
  94. package/styles/common/_core.scss +28 -63
  95. package/styles/definition/_bootstrap-dark.scss +3 -3
  96. package/styles/definition/_bootstrap.scss +1 -1
  97. package/styles/definition/_bootstrap5-dark.scss +357 -0
  98. package/styles/definition/_bootstrap5.scss +356 -0
  99. package/styles/definition/_material-dark.scss +1 -1
  100. package/styles/definition/_tailwind-dark.scss +18 -1
  101. package/styles/definition/_tailwind.scss +17 -0
  102. package/styles/fabric-dark.css +2589 -32
  103. package/styles/fabric.css +2589 -32
  104. package/styles/highcontrast-light.css +2573 -32
  105. package/styles/highcontrast.css +2573 -32
  106. package/styles/material-dark.css +2549 -32
  107. package/styles/material.css +2549 -32
  108. package/styles/tailwind-dark.css +2221 -32
  109. package/styles/tailwind.css +2221 -32
  110. package/src/virtual-dom.d.ts +0 -32
  111. package/src/virtual-dom.js +0 -449
package/src/animation.js CHANGED
@@ -55,9 +55,10 @@ var Animation = /** @class */ (function (_super) {
55
55
  Animation_1 = Animation;
56
56
  /**
57
57
  * Applies animation to the current element.
58
+ *
58
59
  * @param {string | HTMLElement} element - Element which needs to be animated.
59
60
  * @param {AnimationModel} options - Overriding default animation settings.
60
- * @return {void}
61
+ * @returns {void} ?
61
62
  */
62
63
  Animation.prototype.animate = function (element, options) {
63
64
  options = !options ? {} : options;
@@ -77,6 +78,7 @@ var Animation = /** @class */ (function (_super) {
77
78
  };
78
79
  /**
79
80
  * Stop the animation effect on animated element.
81
+ *
80
82
  * @param {HTMLElement} element - Element which needs to be stop the animation.
81
83
  * @param {AnimationOptions} model - Handling the animation model at stop function.
82
84
  * @return {void}
@@ -96,7 +98,8 @@ var Animation = /** @class */ (function (_super) {
96
98
  };
97
99
  /**
98
100
  * Set delay to animation element
99
- * @param {AnimationModel} model
101
+ *
102
+ * @param {AnimationModel} model ?
100
103
  * @returns {void}
101
104
  */
102
105
  Animation.delayAnimation = function (model) {
@@ -109,7 +112,8 @@ var Animation = /** @class */ (function (_super) {
109
112
  };
110
113
  /**
111
114
  * Triggers animation
112
- * @param {AnimationModel} model
115
+ *
116
+ * @param {AnimationModel} model ?
113
117
  * @returns {void}
114
118
  */
115
119
  Animation.applyAnimation = function (model) {
@@ -117,7 +121,6 @@ var Animation = /** @class */ (function (_super) {
117
121
  model.timeStamp = 0;
118
122
  var step = 0;
119
123
  var timerId = 0;
120
- var startTime = 0;
121
124
  var prevTimeStamp = 0;
122
125
  var duration = model.duration;
123
126
  model.element.setAttribute('e-animate', 'true');
@@ -137,12 +140,12 @@ var Animation = /** @class */ (function (_super) {
137
140
  step = step + 1;
138
141
  var avg = model.timeStamp / step;
139
142
  if (model.timeStamp < duration && model.timeStamp + avg < duration && model.element.getAttribute('e-animate')) {
140
- // apply animation effect to the current element
143
+ // apply animation effect to the current element
141
144
  model.element.style.animation = model.name + ' ' + model.duration + 'ms ' + model.timingFunction;
142
145
  if (model.progress) {
143
146
  model.progress.call(_this, model);
144
147
  }
145
- // repeat requestAnimationFrame
148
+ // repeat requestAnimationFrame
146
149
  requestAnimationFrame(startAnimation);
147
150
  }
148
151
  else {
@@ -157,7 +160,7 @@ var Animation = /** @class */ (function (_super) {
157
160
  }
158
161
  }
159
162
  else {
160
- startTime = performance.now();
163
+ //startTime = performance.now();
161
164
  // set initial requestAnimationFrame
162
165
  timerId = requestAnimationFrame(startAnimation);
163
166
  model.element.setAttribute('e-animation-id', timerId.toString());
@@ -175,8 +178,9 @@ var Animation = /** @class */ (function (_super) {
175
178
  };
176
179
  /**
177
180
  * Returns Animation Model
178
- * @param {AnimationModel} options
179
- * @returns {AnimationModel}
181
+ *
182
+ * @param {AnimationModel} options ?
183
+ * @returns {AnimationModel} ?
180
184
  */
181
185
  Animation.prototype.getModel = function (options) {
182
186
  return {
@@ -193,19 +197,27 @@ var Animation = /** @class */ (function (_super) {
193
197
  };
194
198
  /**
195
199
  * @private
200
+ * @param {AnimationModel} newProp ?
201
+ * @param {AnimationModel} oldProp ?
202
+ * @returns {void} ?
196
203
  */
204
+ // eslint-disable-next-line
197
205
  Animation.prototype.onPropertyChanged = function (newProp, oldProp) {
198
206
  // no code needed
199
207
  };
200
208
  /**
201
209
  * Returns module name as animation
210
+ *
202
211
  * @private
212
+ * @returns {void} ?
203
213
  */
204
214
  Animation.prototype.getModuleName = function () {
205
215
  return 'animation';
206
216
  };
207
217
  /**
218
+ *
208
219
  * @private
220
+ * @returns {void} ?
209
221
  */
210
222
  Animation.prototype.destroy = function () {
211
223
  //Override base destroy;
@@ -249,14 +261,17 @@ export { Animation };
249
261
  * rippleEffect(document.getElementById('ripple'));
250
262
  * </script>
251
263
  * ```
264
+ *
252
265
  * @private
253
- * @param HTMLElement element - Target element
254
- * @param RippleOptions rippleOptions - Ripple options .
266
+ * @param {HTMLElement} element - Target element
267
+ * @param {RippleOptions} rippleOptions - Ripple options .
268
+ * @param {Function} done .
269
+ * @returns {void} .
255
270
  */
256
271
  export function rippleEffect(element, rippleOptions, done) {
257
272
  var rippleModel = getRippleModel(rippleOptions);
258
273
  if (rippleModel.rippleFlag === false || (rippleModel.rippleFlag === undefined && !isRippleEnabled)) {
259
- return (function () { });
274
+ return Function;
260
275
  }
261
276
  element.setAttribute('data-ripple', 'true');
262
277
  EventHandler.add(element, 'mousedown', rippleHandler, { parent: element, rippleOptions: rippleModel });
@@ -273,6 +288,12 @@ export function rippleEffect(element, rippleOptions, done) {
273
288
  EventHandler.remove(element, 'transitionend', rippleLeaveHandler);
274
289
  });
275
290
  }
291
+ /**
292
+ * Handler for ripple model
293
+ *
294
+ * @param {RippleOptions} rippleOptions ?
295
+ * @returns {RippleOptions} ?
296
+ */
276
297
  function getRippleModel(rippleOptions) {
277
298
  var rippleModel = {
278
299
  selector: rippleOptions && rippleOptions.selector ? rippleOptions.selector : null,
@@ -285,8 +306,9 @@ function getRippleModel(rippleOptions) {
285
306
  }
286
307
  /**
287
308
  * Handler for ripple event
288
- * @param {MouseEvent} e
289
- * @returns {void}
309
+ *
310
+ * @param {MouseEvent} e ?
311
+ * @returns {void} ?
290
312
  * @private
291
313
  */
292
314
  function rippleHandler(e) {
@@ -325,8 +347,9 @@ function rippleHandler(e) {
325
347
  }
326
348
  /**
327
349
  * Handler for ripple element mouse up event
328
- * @param {MouseEvent} e
329
- * @returns {void}
350
+ *
351
+ * @param {MouseEvent} e ?
352
+ * @returns {void} ?
330
353
  * @private
331
354
  */
332
355
  function rippleUpHandler(e) {
@@ -334,8 +357,9 @@ function rippleUpHandler(e) {
334
357
  }
335
358
  /**
336
359
  * Handler for ripple element mouse move event
337
- * @param {MouseEvent} e
338
- * @returns {void}
360
+ *
361
+ * @param {MouseEvent} e ?
362
+ * @returns {void} ?
339
363
  * @private
340
364
  */
341
365
  function rippleLeaveHandler(e) {
@@ -343,9 +367,10 @@ function rippleLeaveHandler(e) {
343
367
  }
344
368
  /**
345
369
  * Handler for removing ripple element
346
- * @param {MouseEvent} e
347
- * @param {rippleArgs} eventArgs
348
- * @returns {void}
370
+ *
371
+ * @param {MouseEvent} e ?
372
+ * @param {RippleArgs} eventArgs ?
373
+ * @returns {void} ?
349
374
  * @private
350
375
  */
351
376
  function removeRipple(e, eventArgs) {
@@ -380,8 +405,9 @@ function removeRipple(e, eventArgs) {
380
405
  export var isRippleEnabled = false;
381
406
  /**
382
407
  * Animation Module provides support to enable ripple effect functionality to Essential JS 2 components.
408
+ *
383
409
  * @param {boolean} isRipple Specifies the boolean value to enable or disable ripple effect.
384
- * @returns {boolean}
410
+ * @returns {boolean} ?
385
411
  */
386
412
  export function enableRipple(isRipple) {
387
413
  isRippleEnabled = isRipple;
package/src/base.d.ts CHANGED
@@ -13,6 +13,7 @@ export interface BlazorDotnetObject {
13
13
  }
14
14
  /**
15
15
  * Base library module is common module for Framework modules like touch,keyboard and etc.,
16
+ *
16
17
  * @private
17
18
  */
18
19
  export declare abstract class Base<ElementType extends HTMLElement> {
@@ -47,21 +48,26 @@ export declare abstract class Base<ElementType extends HTMLElement> {
47
48
  /** Property base section */
48
49
  /**
49
50
  * Function used to set bunch of property at a time.
51
+ *
50
52
  * @private
51
53
  * @param {Object} prop - JSON object which holds components properties.
52
- * @param {boolean} muteOnChange? - Specifies to true when we set properties.
54
+ * @param {boolean} muteOnChange ? - Specifies to true when we set properties.
55
+ * @returns {void} ?
53
56
  */
54
57
  setProperties(prop: Object, muteOnChange?: boolean): void;
55
58
  /**
56
59
  * Calls for child element data bind
57
- * @param {Object} obj
58
- * @param {Object} parent
59
- * @returns {void}
60
+ *
61
+ * @param {Object} obj ?
62
+ * @param {Object} parent ?
63
+ * @returns {void} ?
60
64
  */
61
65
  private static callChildDataBind;
62
66
  protected clearChanges(): void;
63
67
  /**
64
68
  * Bind property changes immediately to components
69
+ *
70
+ * @returns {void} ?
65
71
  */
66
72
  dataBind(): void;
67
73
  serverDataBind(newChanges?: {
@@ -71,50 +77,64 @@ export declare abstract class Base<ElementType extends HTMLElement> {
71
77
  /** Event Base Section */
72
78
  /**
73
79
  * Adds the handler to the given event listener.
80
+ *
74
81
  * @param {string} eventName - A String that specifies the name of the event
75
- * @param {Function} listener - Specifies the call to run when the event occurs.
76
- * @return {void}
82
+ * @param {Function} handler - Specifies the call to run when the event occurs.
83
+ * @returns {void} ?
77
84
  */
78
85
  addEventListener(eventName: string, handler: Function): void;
79
86
  /**
80
87
  * Removes the handler from the given event listener.
88
+ *
81
89
  * @param {string} eventName - A String that specifies the name of the event to remove
82
- * @param {Function} listener - Specifies the function to remove
83
- * @return {void}
90
+ * @param {Function} handler - Specifies the function to remove
91
+ * @returns {void} ?
84
92
  */
85
93
  removeEventListener(eventName: string, handler: Function): void;
86
94
  /**
87
95
  * Triggers the handlers in the specified event.
96
+ *
88
97
  * @private
89
98
  * @param {string} eventName - Specifies the event to trigger for the specified component properties.
90
99
  * Can be a custom event, or any of the standard events.
91
100
  * @param {Event} eventProp - Additional parameters to pass on to the event properties
92
101
  * @param {Function} successHandler - this function will invoke after event successfully triggered
93
102
  * @param {Function} errorHandler - this function will invoke after event if it failured to call.
94
- * @return {void}
103
+ * @returns {void} ?
95
104
  */
96
105
  trigger(eventName: string, eventProp?: Object, successHandler?: Function, errorHandler?: Function): void | object;
97
106
  /**
98
107
  * Base constructor accept options and element
108
+ *
109
+ * @param {Object} options ?
110
+ * @param {string} element ?
99
111
  */
100
112
  constructor(options: Object, element: ElementType | string);
101
113
  /**
102
114
  * To maintain instance in base class
115
+ *
116
+ * @returns {void} ?
103
117
  */
104
118
  protected addInstance(): void;
105
119
  /**
106
120
  * To remove the instance from the element
121
+ *
122
+ * @returns {void} ?
107
123
  */
108
124
  protected destroy(): void;
109
125
  }
110
126
  /**
111
127
  * Global function to get the component instance from the rendered element.
112
- * @param elem Specifies the HTMLElement or element id string.
113
- * @param comp Specifies the component module name or Component.
128
+ *
129
+ * @param {HTMLElement} elem Specifies the HTMLElement or element id string.
130
+ * @param {string} comp Specifies the component module name or Component.
131
+ * @returns {any} ?
114
132
  */
115
133
  export declare function getComponent<T>(elem: HTMLElement | string, comp: string | any | T): T;
116
134
  /**
117
135
  * Function to remove the child instances.
136
+ *
137
+ * @param {HTMLElement} element ?
118
138
  * @return {void}
119
139
  * @private
120
140
  */
package/src/base.js CHANGED
@@ -1,15 +1,19 @@
1
1
  import { isUndefined, isNullOrUndefined, merge, setImmediate, setValue, isBlazor, getValue, extend } from './util';
2
2
  import { addClass, removeClass } from './dom';
3
3
  import { Observer } from './observer';
4
- var isColEName = new RegExp('\]');
4
+ var isColEName = new RegExp(']');
5
5
  /* tslint:enable:no-any */
6
6
  /**
7
7
  * Base library module is common module for Framework modules like touch,keyboard and etc.,
8
+ *
8
9
  * @private
9
10
  */
10
11
  var Base = /** @class */ (function () {
11
12
  /**
12
13
  * Base constructor accept options and element
14
+ *
15
+ * @param {Object} options ?
16
+ * @param {string} element ?
13
17
  */
14
18
  function Base(options, element) {
15
19
  this.isRendered = false;
@@ -23,7 +27,7 @@ var Base = /** @class */ (function () {
23
27
  this.bulkChanges = {};
24
28
  this.refreshing = false;
25
29
  this.ignoreCollectionWatch = false;
26
- // tslint:disable-next-line:no-empty
30
+ // eslint-disable-next-line
27
31
  this.finalUpdate = function () { };
28
32
  this.childChangedProperties = {};
29
33
  this.modelObserver = new Observer(this);
@@ -47,9 +51,11 @@ var Base = /** @class */ (function () {
47
51
  /** Property base section */
48
52
  /**
49
53
  * Function used to set bunch of property at a time.
54
+ *
50
55
  * @private
51
56
  * @param {Object} prop - JSON object which holds components properties.
52
- * @param {boolean} muteOnChange? - Specifies to true when we set properties.
57
+ * @param {boolean} muteOnChange ? - Specifies to true when we set properties.
58
+ * @returns {void} ?
53
59
  */
54
60
  Base.prototype.setProperties = function (prop, muteOnChange) {
55
61
  var prevDetection = this.isProtectedOnChange;
@@ -67,12 +73,12 @@ var Base = /** @class */ (function () {
67
73
  this.oldProperties = {};
68
74
  this.isProtectedOnChange = prevDetection;
69
75
  };
70
- ;
71
76
  /**
72
77
  * Calls for child element data bind
73
- * @param {Object} obj
74
- * @param {Object} parent
75
- * @returns {void}
78
+ *
79
+ * @param {Object} obj ?
80
+ * @param {Object} parent ?
81
+ * @returns {void} ?
76
82
  */
77
83
  // tslint:disable-next-line:no-any
78
84
  Base.callChildDataBind = function (obj, parent) {
@@ -100,6 +106,8 @@ var Base = /** @class */ (function () {
100
106
  };
101
107
  /**
102
108
  * Bind property changes immediately to components
109
+ *
110
+ * @returns {void} ?
103
111
  */
104
112
  Base.prototype.dataBind = function () {
105
113
  Base.callChildDataBind(this.childChangedProperties, this);
@@ -113,7 +121,6 @@ var Base = /** @class */ (function () {
113
121
  this.isProtectedOnChange = prevDetection;
114
122
  }
115
123
  };
116
- ;
117
124
  /* tslint:disable:no-any */
118
125
  Base.prototype.serverDataBind = function (newChanges) {
119
126
  if (!isBlazor()) {
@@ -143,35 +150,37 @@ var Base = /** @class */ (function () {
143
150
  this.finalUpdate();
144
151
  this.finalUpdate = setImmediate(this.dataBind.bind(this));
145
152
  };
146
- ;
147
153
  /** Event Base Section */
148
154
  /**
149
155
  * Adds the handler to the given event listener.
156
+ *
150
157
  * @param {string} eventName - A String that specifies the name of the event
151
- * @param {Function} listener - Specifies the call to run when the event occurs.
152
- * @return {void}
158
+ * @param {Function} handler - Specifies the call to run when the event occurs.
159
+ * @returns {void} ?
153
160
  */
154
161
  Base.prototype.addEventListener = function (eventName, handler) {
155
162
  this.modelObserver.on(eventName, handler);
156
163
  };
157
164
  /**
158
165
  * Removes the handler from the given event listener.
166
+ *
159
167
  * @param {string} eventName - A String that specifies the name of the event to remove
160
- * @param {Function} listener - Specifies the function to remove
161
- * @return {void}
168
+ * @param {Function} handler - Specifies the function to remove
169
+ * @returns {void} ?
162
170
  */
163
171
  Base.prototype.removeEventListener = function (eventName, handler) {
164
172
  this.modelObserver.off(eventName, handler);
165
173
  };
166
174
  /**
167
175
  * Triggers the handlers in the specified event.
176
+ *
168
177
  * @private
169
178
  * @param {string} eventName - Specifies the event to trigger for the specified component properties.
170
179
  * Can be a custom event, or any of the standard events.
171
180
  * @param {Event} eventProp - Additional parameters to pass on to the event properties
172
181
  * @param {Function} successHandler - this function will invoke after event successfully triggered
173
182
  * @param {Function} errorHandler - this function will invoke after event if it failured to call.
174
- * @return {void}
183
+ * @returns {void} ?
175
184
  */
176
185
  Base.prototype.trigger = function (eventName, eventProp, successHandler, errorHandler) {
177
186
  var _this = this;
@@ -225,6 +234,8 @@ var Base = /** @class */ (function () {
225
234
  };
226
235
  /**
227
236
  * To maintain instance in base class
237
+ *
238
+ * @returns {void} ?
228
239
  */
229
240
  Base.prototype.addInstance = function () {
230
241
  // Add module class to the root element
@@ -239,9 +250,12 @@ var Base = /** @class */ (function () {
239
250
  };
240
251
  /**
241
252
  * To remove the instance from the element
253
+ *
254
+ * @returns {void} ?
242
255
  */
243
256
  Base.prototype.destroy = function () {
244
257
  var _this = this;
258
+ // eslint-disable-next-line
245
259
  this.element.ej2_instances =
246
260
  this.element.ej2_instances.filter(function (i) { return i !== _this; });
247
261
  removeClass([this.element], ['e-' + this.getModuleName()]);
@@ -258,8 +272,10 @@ var Base = /** @class */ (function () {
258
272
  export { Base };
259
273
  /**
260
274
  * Global function to get the component instance from the rendered element.
261
- * @param elem Specifies the HTMLElement or element id string.
262
- * @param comp Specifies the component module name or Component.
275
+ *
276
+ * @param {HTMLElement} elem Specifies the HTMLElement or element id string.
277
+ * @param {string} comp Specifies the component module name or Component.
278
+ * @returns {any} ?
263
279
  */
264
280
  // tslint:disable-next-line:no-any
265
281
  export function getComponent(elem, comp) {
@@ -285,6 +301,8 @@ export function getComponent(elem, comp) {
285
301
  }
286
302
  /**
287
303
  * Function to remove the child instances.
304
+ *
305
+ * @param {HTMLElement} element ?
288
306
  * @return {void}
289
307
  * @private
290
308
  */
package/src/browser.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Get configuration details for Browser
3
+ *
3
4
  * @private
4
5
  */
5
6
  export declare class Browser {
@@ -7,115 +8,152 @@ export declare class Browser {
7
8
  private static extractBrowserDetail;
8
9
  /**
9
10
  * To get events from the browser
11
+ *
10
12
  * @param {string} event - type of event triggered.
11
- * @returns {Boolean}
13
+ * @returns {boolean}
12
14
  */
13
15
  private static getEvent;
14
16
  /**
15
17
  * To get the Touch start event from browser
18
+ *
16
19
  * @returns {string}
17
20
  */
18
21
  private static getTouchStartEvent;
19
22
  /**
20
23
  * To get the Touch end event from browser
24
+ *
21
25
  * @returns {string}
22
26
  */
23
27
  private static getTouchEndEvent;
24
28
  /**
25
29
  * To get the Touch move event from browser
30
+ *
26
31
  * @returns {string}
27
32
  */
28
33
  private static getTouchMoveEvent;
29
34
  /**
30
35
  * To cancel the touch event from browser
36
+ *
31
37
  * @returns {string}
32
38
  */
33
39
  private static getTouchCancelEvent;
34
40
  /**
35
41
  * To get the value based on provided key and regX
36
- * @param {string} key
37
- * @param {RegExp} regX
38
- * @returns {Object}
42
+ *
43
+ * @param {string} key ?
44
+ * @param {RegExp} regX ?
45
+ * @returns {Object} ?
39
46
  */
40
47
  private static getValue;
41
48
  /**
42
49
  * Property specifies the userAgent of the browser. Default userAgent value is based on the browser.
43
50
  * Also we can set our own userAgent.
51
+ *
52
+ * @param {string} uA ?
44
53
  */
45
54
  static userAgent: string;
46
55
  /**
47
56
  * Property is to get the browser information like Name, Version and Language
48
- * @returns BrowserInfo
57
+ *
58
+ * @returns {BrowserInfo} ?
49
59
  */
50
60
  static readonly info: BrowserInfo;
51
61
  /**
52
62
  * Property is to get whether the userAgent is based IE.
63
+ *
64
+ * @returns {boolean} ?
53
65
  */
54
- static readonly isIE: Boolean;
66
+ static readonly isIE: boolean;
55
67
  /**
56
68
  * Property is to get whether the browser has touch support.
69
+ *
70
+ * @returns {boolean} ?
57
71
  */
58
- static readonly isTouch: Boolean;
72
+ static readonly isTouch: boolean;
59
73
  /**
60
74
  * Property is to get whether the browser has Pointer support.
75
+ *
76
+ * @returns {boolean} ?
61
77
  */
62
- static readonly isPointer: Boolean;
78
+ static readonly isPointer: boolean;
63
79
  /**
64
80
  * Property is to get whether the browser has MSPointer support.
81
+ *
82
+ * @returns {boolean} ?
65
83
  */
66
- static readonly isMSPointer: Boolean;
84
+ static readonly isMSPointer: boolean;
67
85
  /**
68
86
  * Property is to get whether the userAgent is device based.
87
+ *
88
+ * @returns {boolean} ?
69
89
  */
70
- static readonly isDevice: Boolean;
90
+ static readonly isDevice: boolean;
71
91
  /**
72
92
  * Property is to get whether the userAgent is IOS.
93
+ *
94
+ * @returns {boolean} ?
73
95
  */
74
- static readonly isIos: Boolean;
96
+ static readonly isIos: boolean;
75
97
  /**
76
98
  * Property is to get whether the userAgent is Ios7.
99
+ *
100
+ * @returns {boolean} ?
77
101
  */
78
- static readonly isIos7: Boolean;
102
+ static readonly isIos7: boolean;
79
103
  /**
80
104
  * Property is to get whether the userAgent is Android.
105
+ *
106
+ * @returns {boolean} ?
81
107
  */
82
- static readonly isAndroid: Boolean;
108
+ static readonly isAndroid: boolean;
83
109
  /**
84
110
  * Property is to identify whether application ran in web view.
111
+ *
112
+ * @returns {boolean} ?
85
113
  */
86
- static readonly isWebView: Boolean;
114
+ static readonly isWebView: boolean;
87
115
  /**
88
116
  * Property is to get whether the userAgent is Windows.
117
+ *
118
+ * @returns {boolean} ?
89
119
  */
90
- static readonly isWindows: Boolean;
120
+ static readonly isWindows: boolean;
91
121
  /**
92
122
  * Property is to get the touch start event. It returns event name based on browser.
123
+ *
124
+ * @returns {string} ?
93
125
  */
94
126
  static readonly touchStartEvent: string;
95
127
  /**
96
128
  * Property is to get the touch move event. It returns event name based on browser.
129
+ *
130
+ * @returns {string} ?
97
131
  */
98
132
  static readonly touchMoveEvent: string;
99
133
  /**
100
134
  * Property is to get the touch end event. It returns event name based on browser.
135
+ *
136
+ * @returns {string} ?
101
137
  */
102
138
  static readonly touchEndEvent: string;
103
139
  /**
104
140
  * Property is to cancel the touch end event.
141
+ *
142
+ * @returns {string} ?
105
143
  */
106
144
  static readonly touchCancelEvent: string;
107
145
  }
108
146
  export interface BrowserDetails {
109
- isAndroid?: Boolean;
110
- isDevice?: Boolean;
111
- isIE?: Boolean;
112
- isIos?: Boolean;
113
- isIos7?: Boolean;
114
- isMSPointer?: Boolean;
115
- isPointer?: Boolean;
116
- isTouch?: Boolean;
117
- isWebView?: Boolean;
118
- isWindows?: Boolean;
147
+ isAndroid?: boolean;
148
+ isDevice?: boolean;
149
+ isIE?: boolean;
150
+ isIos?: boolean;
151
+ isIos7?: boolean;
152
+ isMSPointer?: boolean;
153
+ isPointer?: boolean;
154
+ isTouch?: boolean;
155
+ isWebView?: boolean;
156
+ isWindows?: boolean;
119
157
  info?: BrowserInfo;
120
158
  touchStartEvent?: string;
121
159
  touchMoveEvent?: string;