@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/util.d.ts CHANGED
@@ -6,190 +6,220 @@ export interface IKeyValue extends CSSStyleDeclaration {
6
6
  }
7
7
  /**
8
8
  * Function to check whether the platform is blazor or not.
9
- * @return {boolean} result
9
+ *
10
+ * @returns {void} result
10
11
  * @private
11
12
  */
12
13
  export declare function disableBlazorMode(): void;
13
14
  /**
14
15
  * Create Instance from constructor function with desired parameters.
16
+ *
15
17
  * @param {Function} classFunction - Class function to which need to create instance
16
18
  * @param {any[]} params - Parameters need to passed while creating instance
17
- * @return {any}
19
+ * @returns {any} ?
18
20
  * @private
19
21
  */
20
22
  export declare function createInstance(classFunction: Function, params: any[]): any;
21
23
  /**
22
24
  * To run a callback function immediately after the browser has completed other operations.
25
+ *
23
26
  * @param {Function} handler - callback function to be triggered.
24
- * @return {Function}
27
+ * @returns {Function} ?
25
28
  * @private
26
29
  */
27
30
  export declare function setImmediate(handler: Function): Function;
28
31
  /**
29
32
  * To get nameSpace value from the desired object.
33
+ *
30
34
  * @param {string} nameSpace - String value to the get the inner object
31
35
  * @param {any} obj - Object to get the inner object value.
32
- * @return {any}
36
+ * @returns {any} ?
33
37
  * @private
34
38
  */
35
39
  export declare function getValue(nameSpace: string, obj: any): any;
36
40
  /**
37
41
  * To set value for the nameSpace in desired object.
42
+ *
38
43
  * @param {string} nameSpace - String value to the get the inner object
39
44
  * @param {any} value - Value that you need to set.
40
45
  * @param {any} obj - Object to get the inner object value.
41
- * @return {void}
46
+ * @returns {any} ?
42
47
  * @private
43
48
  */
44
49
  export declare function setValue(nameSpace: string, value: any, obj: any): any;
45
50
  /**
46
51
  * Delete an item from Object
52
+ *
47
53
  * @param {any} obj - Object in which we need to delete an item.
48
- * @param {string} params - String value to the get the inner object
49
- * @return {void}
54
+ * @param {string} key - String value to the get the inner object
55
+ * @returns {void} ?
50
56
  * @private
51
57
  */
52
58
  export declare function deleteObject(obj: any, key: string): void;
53
59
  /**
54
60
  * Check weather the given argument is only object.
61
+ *
55
62
  * @param {any} obj - Object which is need to check.
56
- * @return {boolean}
63
+ * @returns {boolean} ?
57
64
  * @private
58
65
  */
59
66
  export declare function isObject(obj: any): boolean;
60
67
  /**
61
68
  * To get enum value by giving the string.
69
+ *
62
70
  * @param {any} enumObject - Enum object.
63
71
  * @param {string} enumValue - Enum value to be searched
64
- * @return {any}
72
+ * @returns {any} ?
65
73
  * @private
66
74
  */
67
75
  export declare function getEnumValue(enumObject: any, enumValue: string | number): any;
68
76
  /**
69
77
  * Merge the source object into destination object.
78
+ *
70
79
  * @param {any} source - source object which is going to merge with destination object
71
80
  * @param {any} destination - object need to be merged
72
- * @return {void}
81
+ * @returns {void} ?
73
82
  * @private
74
83
  */
75
84
  export declare function merge(source: Object, destination: Object): void;
76
85
  /**
77
86
  * Extend the two object with newer one.
87
+ *
78
88
  * @param {any} copied - Resultant object after merged
79
89
  * @param {Object} first - First object need to merge
80
90
  * @param {Object} second - Second object need to merge
81
- * @return {Object}
91
+ * @param {boolean} deep ?
92
+ * @returns {Object} ?
82
93
  * @private
83
94
  */
84
95
  export declare function extend(copied: Object, first: Object, second?: Object, deep?: boolean): Object;
85
96
  /**
86
97
  * To check whether the object is null or undefined.
98
+ *
87
99
  * @param {Object} value - To check the object is null or undefined
88
- * @return {boolean}
100
+ * @returns {boolean} ?
89
101
  * @private
90
102
  */
91
103
  export declare function isNullOrUndefined(value: Object): boolean;
92
104
  /**
93
105
  * To check whether the object is undefined.
106
+ *
94
107
  * @param {Object} value - To check the object is undefined
95
- * @return {boolean}
108
+ * @returns {boolean} ?
96
109
  * @private
97
110
  */
98
111
  export declare function isUndefined(value: Object): boolean;
99
112
  /**
100
113
  * To return the generated unique name
114
+ *
101
115
  * @param {string} definedName - To concatenate the unique id to provided name
102
- * @return {string}
116
+ * @returns {string} ?
103
117
  * @private
104
118
  */
105
119
  export declare function getUniqueID(definedName?: string): string;
106
120
  /**
107
121
  * It limits the rate at which a function can fire. The function will fire only once every provided second instead of as quickly.
122
+ *
108
123
  * @param {Function} eventFunction - Specifies the function to run when the event occurs
109
124
  * @param {number} delay - A number that specifies the milliseconds for function delay call option
110
- * @return {Function}
125
+ * @returns {Function} ?
111
126
  * @private
112
127
  */
113
128
  export declare function debounce(eventFunction: Function, delay: number): Function;
114
129
  /**
115
130
  * To convert the object to string for query url
116
- * @param {Object} data
117
- * @returns string
131
+ *
132
+ * @param {Object} data ?
133
+ * @returns {string} ?
118
134
  * @private
119
135
  */
120
136
  export declare function queryParams(data: any): string;
121
137
  /**
122
138
  * To check whether the given array contains object.
123
- * @param {T[]} value- Specifies the T type array to be checked.
139
+ *
140
+ * @param {any} value - Specifies the T type array to be checked.
141
+ * @returns {boolean} ?
124
142
  * @private
125
143
  */
126
144
  export declare function isObjectArray<T>(value: T[]): boolean;
127
145
  /**
128
146
  * To check whether the child element is descendant to parent element or parent and child are same element.
129
- * @param{Element} - Specifies the child element to compare with parent.
130
- * @param{Element} - Specifies the parent element.
131
- * @return boolean
147
+ *
148
+ * @param {Element} child - Specifies the child element to compare with parent.
149
+ * @param {Element} parent - Specifies the parent element.
150
+ * @returns {boolean} ?
132
151
  * @private
133
152
  */
134
153
  export declare function compareElementParent(child: Element, parent: Element): boolean;
135
154
  /**
136
155
  * To throw custom error message.
137
- * @param{string} - Specifies the error message to be thrown.
156
+ *
157
+ * @param {string} message - Specifies the error message to be thrown.
158
+ * @returns {void} ?
138
159
  * @private
139
160
  */
140
161
  export declare function throwError(message: string): void;
141
162
  /**
142
163
  * This function is used to print given element
143
- * @param{Element} element - Specifies the print content element.
144
- * @param{Window} printWindow - Specifies the print window.
164
+ *
165
+ * @param {Element} element - Specifies the print content element.
166
+ * @param {Window} printWindow - Specifies the print window.
167
+ * @returns {Window} ?
145
168
  * @private
146
169
  */
147
170
  export declare function print(element: Element, printWindow?: Window): Window;
148
171
  /**
149
172
  * Function to normalize the units applied to the element.
150
- * @param {number|string} value
151
- * @return {string} result
173
+ *
174
+ * @param {number|string} value ?
175
+ * @returns {string} result
152
176
  * @private
153
177
  */
154
178
  export declare function formatUnit(value: number | string): string;
155
179
  /**
156
180
  * Function to check whether the platform is blazor or not.
157
- * @return {boolean} result
181
+ *
182
+ * @returns {void} result
158
183
  * @private
159
184
  */
160
185
  export declare function enableBlazorMode(): void;
161
186
  /**
162
187
  * Function to check whether the platform is blazor or not.
163
- * @return {boolean} result
188
+ *
189
+ * @returns {boolean} result
164
190
  * @private
165
191
  */
166
192
  export declare function isBlazor(): boolean;
167
193
  /**
168
194
  * Function to convert xPath to DOM element in blazor platform
169
- * @return {HTMLElement} result
170
- * @param {HTMLElement | object} element
195
+ *
196
+ * @returns {HTMLElement} result
197
+ * @param {HTMLElement | object} element ?
171
198
  * @private
172
199
  */
173
200
  export declare function getElement(element: object): HTMLElement;
174
201
  /**
175
202
  * Function to fetch the Instances of a HTML element for the given component.
176
- * @param {string | HTMLElement} element
177
- * @param {any} component
178
- * @return {Object} inst
203
+ *
204
+ * @param {string | HTMLElement} element ?
205
+ * @param {any} component ?
206
+ * @returns {Object} ?
179
207
  * @private
180
208
  */
181
209
  export declare function getInstance(element: string | HTMLElement, component: any): Object;
182
210
  /**
183
211
  * Function to add instances for the given element.
184
- * @param {string | HTMLElement} element
185
- * @param {Object} instance
186
- * @return {void}
212
+ *
213
+ * @param {string | HTMLElement} element ?
214
+ * @param {Object} instance ?
215
+ * @returns {void} ?
187
216
  * @private
188
217
  */
189
218
  export declare function addInstance(element: string | HTMLElement, instance: Object): void;
190
219
  /**
191
220
  * Function to generate the unique id.
192
- * @return {any}
221
+ *
222
+ * @returns {any} ?
193
223
  * @private
194
224
  */
195
225
  export declare function uniqueID(): any;
package/src/util.js CHANGED
@@ -3,7 +3,8 @@ var uid = 0;
3
3
  var isBlazorPlatform = false;
4
4
  /**
5
5
  * Function to check whether the platform is blazor or not.
6
- * @return {boolean} result
6
+ *
7
+ * @returns {void} result
7
8
  * @private
8
9
  */
9
10
  export function disableBlazorMode() {
@@ -11,11 +12,13 @@ export function disableBlazorMode() {
11
12
  }
12
13
  /**
13
14
  * Create Instance from constructor function with desired parameters.
15
+ *
14
16
  * @param {Function} classFunction - Class function to which need to create instance
15
17
  * @param {any[]} params - Parameters need to passed while creating instance
16
- * @return {any}
18
+ * @returns {any} ?
17
19
  * @private
18
20
  */
21
+ // eslint-disable-next-line
19
22
  export function createInstance(classFunction, params) {
20
23
  var arrayParam = params;
21
24
  arrayParam.unshift(undefined);
@@ -23,16 +26,19 @@ export function createInstance(classFunction, params) {
23
26
  }
24
27
  /**
25
28
  * To run a callback function immediately after the browser has completed other operations.
29
+ *
26
30
  * @param {Function} handler - callback function to be triggered.
27
- * @return {Function}
31
+ * @returns {Function} ?
28
32
  * @private
29
33
  */
30
34
  export function setImmediate(handler) {
31
35
  var unbind;
36
+ // eslint-disable-next-line
32
37
  var num = new Uint16Array(5);
33
38
  var intCrypto = window.msCrypto || window.crypto;
34
39
  intCrypto.getRandomValues(num);
35
40
  var secret = 'ej2' + combineArray(num);
41
+ // eslint-disable-next-line
36
42
  var messageHandler = function (event) {
37
43
  if (event.source === window && typeof event.data === 'string' && event.data.length <= 32 && event.data === secret) {
38
44
  handler();
@@ -48,13 +54,15 @@ export function setImmediate(handler) {
48
54
  }
49
55
  /**
50
56
  * To get nameSpace value from the desired object.
57
+ *
51
58
  * @param {string} nameSpace - String value to the get the inner object
52
59
  * @param {any} obj - Object to get the inner object value.
53
- * @return {any}
60
+ * @returns {any} ?
54
61
  * @private
55
62
  */
63
+ // eslint-disable-next-line
56
64
  export function getValue(nameSpace, obj) {
57
- /* tslint:disable no-any */
65
+ // eslint-disable-next-line
58
66
  var value = obj;
59
67
  var splits = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
60
68
  for (var i = 0; i < splits.length && !isUndefined(value); i++) {
@@ -64,15 +72,19 @@ export function getValue(nameSpace, obj) {
64
72
  }
65
73
  /**
66
74
  * To set value for the nameSpace in desired object.
75
+ *
67
76
  * @param {string} nameSpace - String value to the get the inner object
68
77
  * @param {any} value - Value that you need to set.
69
78
  * @param {any} obj - Object to get the inner object value.
70
- * @return {void}
79
+ * @returns {any} ?
71
80
  * @private
72
81
  */
82
+ // eslint-disable-next-line
73
83
  export function setValue(nameSpace, value, obj) {
74
84
  var keys = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
85
+ // eslint-disable-next-line
75
86
  var start = obj || {};
87
+ // eslint-disable-next-line
76
88
  var fromObj = start;
77
89
  var i;
78
90
  var length = keys.length;
@@ -91,39 +103,47 @@ export function setValue(nameSpace, value, obj) {
91
103
  }
92
104
  /**
93
105
  * Delete an item from Object
106
+ *
94
107
  * @param {any} obj - Object in which we need to delete an item.
95
- * @param {string} params - String value to the get the inner object
96
- * @return {void}
108
+ * @param {string} key - String value to the get the inner object
109
+ * @returns {void} ?
97
110
  * @private
98
111
  */
112
+ // eslint-disable-next-line
99
113
  export function deleteObject(obj, key) {
100
114
  delete obj[key];
101
115
  }
102
116
  /**
103
117
  * Check weather the given argument is only object.
118
+ *
104
119
  * @param {any} obj - Object which is need to check.
105
- * @return {boolean}
120
+ * @returns {boolean} ?
106
121
  * @private
107
122
  */
123
+ // eslint-disable-next-line
108
124
  export function isObject(obj) {
109
125
  var objCon = {};
110
126
  return (!isNullOrUndefined(obj) && obj.constructor === objCon.constructor);
111
127
  }
112
128
  /**
113
129
  * To get enum value by giving the string.
130
+ *
114
131
  * @param {any} enumObject - Enum object.
115
132
  * @param {string} enumValue - Enum value to be searched
116
- * @return {any}
133
+ * @returns {any} ?
117
134
  * @private
118
135
  */
136
+ // eslint-disable-next-line
119
137
  export function getEnumValue(enumObject, enumValue) {
138
+ // eslint-disable-next-line
120
139
  return enumObject[enumValue];
121
140
  }
122
141
  /**
123
142
  * Merge the source object into destination object.
143
+ *
124
144
  * @param {any} source - source object which is going to merge with destination object
125
145
  * @param {any} destination - object need to be merged
126
- * @return {void}
146
+ * @returns {void} ?
127
147
  * @private
128
148
  */
129
149
  export function merge(source, destination) {
@@ -146,10 +166,12 @@ export function merge(source, destination) {
146
166
  }
147
167
  /**
148
168
  * Extend the two object with newer one.
169
+ *
149
170
  * @param {any} copied - Resultant object after merged
150
171
  * @param {Object} first - First object need to merge
151
172
  * @param {Object} second - Second object need to merge
152
- * @return {Object}
173
+ * @param {boolean} deep ?
174
+ * @returns {Object} ?
153
175
  * @private
154
176
  */
155
177
  export function extend(copied, first, second, deep) {
@@ -159,19 +181,23 @@ export function extend(copied, first, second, deep) {
159
181
  length = length - 1;
160
182
  }
161
183
  var _loop_1 = function (i) {
184
+ // eslint-disable-next-line
162
185
  if (!arguments_1[i]) {
163
186
  return "continue";
164
187
  }
188
+ // eslint-disable-next-line
165
189
  var obj1 = arguments_1[i];
166
190
  Object.keys(obj1).forEach(function (key) {
167
191
  var src = result[key];
168
192
  var copy = obj1[key];
169
193
  var clone;
170
194
  var isArrayChanged = Array.isArray(copy) && Array.isArray(src) && (copy.length !== src.length);
195
+ // eslint-disable-next-line
171
196
  var blazorEventExtend = isBlazor() ? (!(src instanceof Event) && !isArrayChanged) : true;
172
197
  if (deep && blazorEventExtend && (isObject(copy) || Array.isArray(copy))) {
173
198
  if (isObject(copy)) {
174
199
  clone = src ? src : {};
200
+ // eslint-disable-next-line
175
201
  if (Array.isArray(clone) && clone.hasOwnProperty('isComplexArray')) {
176
202
  extend(clone, {}, copy, deep);
177
203
  }
@@ -198,8 +224,9 @@ export function extend(copied, first, second, deep) {
198
224
  }
199
225
  /**
200
226
  * To check whether the object is null or undefined.
227
+ *
201
228
  * @param {Object} value - To check the object is null or undefined
202
- * @return {boolean}
229
+ * @returns {boolean} ?
203
230
  * @private
204
231
  */
205
232
  export function isNullOrUndefined(value) {
@@ -207,8 +234,9 @@ export function isNullOrUndefined(value) {
207
234
  }
208
235
  /**
209
236
  * To check whether the object is undefined.
237
+ *
210
238
  * @param {Object} value - To check the object is undefined
211
- * @return {boolean}
239
+ * @returns {boolean} ?
212
240
  * @private
213
241
  */
214
242
  export function isUndefined(value) {
@@ -216,8 +244,9 @@ export function isUndefined(value) {
216
244
  }
217
245
  /**
218
246
  * To return the generated unique name
247
+ *
219
248
  * @param {string} definedName - To concatenate the unique id to provided name
220
- * @return {string}
249
+ * @returns {string} ?
221
250
  * @private
222
251
  */
223
252
  export function getUniqueID(definedName) {
@@ -225,16 +254,18 @@ export function getUniqueID(definedName) {
225
254
  }
226
255
  /**
227
256
  * It limits the rate at which a function can fire. The function will fire only once every provided second instead of as quickly.
257
+ *
228
258
  * @param {Function} eventFunction - Specifies the function to run when the event occurs
229
259
  * @param {number} delay - A number that specifies the milliseconds for function delay call option
230
- * @return {Function}
260
+ * @returns {Function} ?
231
261
  * @private
232
262
  */
233
263
  export function debounce(eventFunction, delay) {
264
+ // eslint-disable-next-line
234
265
  var out;
235
- // tslint:disable-next-line
236
266
  return function () {
237
267
  var _this = this;
268
+ // eslint-disable-next-line
238
269
  var args = arguments;
239
270
  var later = function () {
240
271
  out = null;
@@ -244,14 +275,14 @@ export function debounce(eventFunction, delay) {
244
275
  out = setTimeout(later, delay);
245
276
  };
246
277
  }
247
- // Added since lint ignored after added '//tslint:disable-next-line'
248
- /* tslint:disable:no-any */
249
278
  /**
250
279
  * To convert the object to string for query url
251
- * @param {Object} data
252
- * @returns string
280
+ *
281
+ * @param {Object} data ?
282
+ * @returns {string} ?
253
283
  * @private
254
284
  */
285
+ // eslint-disable-next-line
255
286
  export function queryParams(data) {
256
287
  var array = [];
257
288
  var keys = Object.keys(data);
@@ -263,7 +294,9 @@ export function queryParams(data) {
263
294
  }
264
295
  /**
265
296
  * To check whether the given array contains object.
266
- * @param {T[]} value- Specifies the T type array to be checked.
297
+ *
298
+ * @param {any} value - Specifies the T type array to be checked.
299
+ * @returns {boolean} ?
267
300
  * @private
268
301
  */
269
302
  export function isObjectArray(value) {
@@ -277,9 +310,10 @@ export function isObjectArray(value) {
277
310
  }
278
311
  /**
279
312
  * To check whether the child element is descendant to parent element or parent and child are same element.
280
- * @param{Element} - Specifies the child element to compare with parent.
281
- * @param{Element} - Specifies the parent element.
282
- * @return boolean
313
+ *
314
+ * @param {Element} child - Specifies the child element to compare with parent.
315
+ * @param {Element} parent - Specifies the parent element.
316
+ * @returns {boolean} ?
283
317
  * @private
284
318
  */
285
319
  export function compareElementParent(child, parent) {
@@ -296,7 +330,9 @@ export function compareElementParent(child, parent) {
296
330
  }
297
331
  /**
298
332
  * To throw custom error message.
299
- * @param{string} - Specifies the error message to be thrown.
333
+ *
334
+ * @param {string} message - Specifies the error message to be thrown.
335
+ * @returns {void} ?
300
336
  * @private
301
337
  */
302
338
  export function throwError(message) {
@@ -304,13 +340,16 @@ export function throwError(message) {
304
340
  throw new Error(message);
305
341
  }
306
342
  catch (e) {
343
+ // eslint-disable-next-line
307
344
  throw e.message + '\n' + e.stack;
308
345
  }
309
346
  }
310
347
  /**
311
348
  * This function is used to print given element
312
- * @param{Element} element - Specifies the print content element.
313
- * @param{Window} printWindow - Specifies the print window.
349
+ *
350
+ * @param {Element} element - Specifies the print content element.
351
+ * @param {Window} printWindow - Specifies the print window.
352
+ * @returns {Window} ?
314
353
  * @private
315
354
  */
316
355
  export function print(element, printWindow) {
@@ -334,7 +373,7 @@ export function print(element, printWindow) {
334
373
  '<script> (function() { window.ready = true; })(); </script>' + '</body></html>');
335
374
  printWindow.document.close();
336
375
  printWindow.focus();
337
- // tslint:disable-next-line
376
+ // eslint-disable-next-line
338
377
  var interval = setInterval(function () {
339
378
  if (printWindow.ready) {
340
379
  printWindow.print();
@@ -346,20 +385,22 @@ export function print(element, printWindow) {
346
385
  }
347
386
  /**
348
387
  * Function to normalize the units applied to the element.
349
- * @param {number|string} value
350
- * @return {string} result
388
+ *
389
+ * @param {number|string} value ?
390
+ * @returns {string} result
351
391
  * @private
352
392
  */
353
393
  export function formatUnit(value) {
354
394
  var result = value + '';
355
- if (result.match(/auto|%|px|vh|vm|vmax|vmin|em/)) {
395
+ if (result === 'auto' || result.indexOf('%') !== -1 || result.indexOf('px') !== -1) {
356
396
  return result;
357
397
  }
358
398
  return result + 'px';
359
399
  }
360
400
  /**
361
401
  * Function to check whether the platform is blazor or not.
362
- * @return {boolean} result
402
+ *
403
+ * @returns {void} result
363
404
  * @private
364
405
  */
365
406
  export function enableBlazorMode() {
@@ -367,7 +408,8 @@ export function enableBlazorMode() {
367
408
  }
368
409
  /**
369
410
  * Function to check whether the platform is blazor or not.
370
- * @return {boolean} result
411
+ *
412
+ * @returns {boolean} result
371
413
  * @private
372
414
  */
373
415
  export function isBlazor() {
@@ -375,8 +417,9 @@ export function isBlazor() {
375
417
  }
376
418
  /**
377
419
  * Function to convert xPath to DOM element in blazor platform
378
- * @return {HTMLElement} result
379
- * @param {HTMLElement | object} element
420
+ *
421
+ * @returns {HTMLElement} result
422
+ * @param {HTMLElement | object} element ?
380
423
  * @private
381
424
  */
382
425
  export function getElement(element) {
@@ -388,14 +431,15 @@ export function getElement(element) {
388
431
  }
389
432
  /**
390
433
  * Function to fetch the Instances of a HTML element for the given component.
391
- * @param {string | HTMLElement} element
392
- * @param {any} component
393
- * @return {Object} inst
434
+ *
435
+ * @param {string | HTMLElement} element ?
436
+ * @param {any} component ?
437
+ * @returns {Object} ?
394
438
  * @private
395
439
  */
396
- // tslint:disable-next-line
440
+ // eslint-disable-next-line
397
441
  export function getInstance(element, component) {
398
- // tslint:disable-next-line:no-any
442
+ // eslint-disable-next-line
399
443
  var elem = (typeof (element) === 'string') ? document.querySelector(element) : element;
400
444
  if (elem[instances]) {
401
445
  for (var _i = 0, _a = elem[instances]; _i < _a.length; _i++) {
@@ -409,13 +453,14 @@ export function getInstance(element, component) {
409
453
  }
410
454
  /**
411
455
  * Function to add instances for the given element.
412
- * @param {string | HTMLElement} element
413
- * @param {Object} instance
414
- * @return {void}
456
+ *
457
+ * @param {string | HTMLElement} element ?
458
+ * @param {Object} instance ?
459
+ * @returns {void} ?
415
460
  * @private
416
461
  */
417
462
  export function addInstance(element, instance) {
418
- // tslint:disable-next-line:no-any
463
+ // eslint-disable-next-line
419
464
  var elem = (typeof (element) === 'string') ? document.querySelector(element) : element;
420
465
  if (elem[instances]) {
421
466
  elem[instances].push(instance);
@@ -426,20 +471,25 @@ export function addInstance(element, instance) {
426
471
  }
427
472
  /**
428
473
  * Function to generate the unique id.
429
- * @return {any}
474
+ *
475
+ * @returns {any} ?
430
476
  * @private
431
477
  */
432
- // tslint:disable-next-line:no-any
478
+ // eslint-disable-next-line
433
479
  export function uniqueID() {
434
- // tslint:disable-next-line:no-any
435
480
  if ((typeof window) === 'undefined') {
436
481
  return;
437
482
  }
438
- // tslint:disable-next-line:no-any
483
+ // eslint-disable-next-line
439
484
  var num = new Uint16Array(5);
440
485
  var intCrypto = window.msCrypto || window.crypto;
441
486
  return intCrypto.getRandomValues(num);
442
487
  }
488
+ /**
489
+ *
490
+ * @param {Int16Array} num ?
491
+ * @returns {string} ?
492
+ */
443
493
  function combineArray(num) {
444
494
  var ret = '';
445
495
  for (var i = 0; i < 5; i++) {
@@ -1,7 +1,6 @@
1
1
  @import 'common/mixin.scss';
2
2
  @import 'definition/bootstrap.scss';
3
3
 
4
-
5
4
  $font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif, '-apple-system', 'BlinkMacSystemFont' !default;
6
5
  $font-size: 12px !default;
7
6
  $font-weight: normal !default;