@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
package/src/base.d.ts CHANGED
@@ -15,6 +15,7 @@ export interface BlazorDotnetObject {
15
15
  * Base library module is common module for Framework modules like touch,keyboard and etc.,
16
16
  *
17
17
  * @private
18
+ * @returns {void} ?
18
19
  */
19
20
  export declare abstract class Base<ElementType extends HTMLElement> {
20
21
  element: ElementType;
@@ -135,7 +136,7 @@ export declare function getComponent<T>(elem: HTMLElement | string, comp: string
135
136
  * Function to remove the child instances.
136
137
  *
137
138
  * @param {HTMLElement} element ?
138
- * @return {void}
139
+ * @returns {void} ?
139
140
  * @private
140
141
  */
141
142
  export declare function removeChildInstance(element: HTMLElement): void;
package/src/base.js CHANGED
@@ -1,12 +1,13 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { isUndefined, isNullOrUndefined, merge, setImmediate, setValue, isBlazor, getValue, extend } from './util';
2
3
  import { addClass, removeClass } from './dom';
3
4
  import { Observer } from './observer';
4
5
  var isColEName = new RegExp(']');
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
9
  * @private
10
+ * @returns {void} ?
10
11
  */
11
12
  var Base = /** @class */ (function () {
12
13
  /**
@@ -27,7 +28,6 @@ var Base = /** @class */ (function () {
27
28
  this.bulkChanges = {};
28
29
  this.refreshing = false;
29
30
  this.ignoreCollectionWatch = false;
30
- // eslint-disable-next-line
31
31
  this.finalUpdate = function () { };
32
32
  this.childChangedProperties = {};
33
33
  this.modelObserver = new Observer(this);
@@ -80,7 +80,6 @@ var Base = /** @class */ (function () {
80
80
  * @param {Object} parent ?
81
81
  * @returns {void} ?
82
82
  */
83
- // tslint:disable-next-line:no-any
84
83
  Base.callChildDataBind = function (obj, parent) {
85
84
  var keys = Object.keys(obj);
86
85
  for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
@@ -121,7 +120,6 @@ var Base = /** @class */ (function () {
121
120
  this.isProtectedOnChange = prevDetection;
122
121
  }
123
122
  };
124
- /* tslint:disable:no-any */
125
123
  Base.prototype.serverDataBind = function (newChanges) {
126
124
  if (!isBlazor()) {
127
125
  return;
@@ -134,10 +132,8 @@ var Base = /** @class */ (function () {
134
132
  this.bulkChanges = {};
135
133
  }
136
134
  };
137
- /* tslint:enable:no-any */
138
135
  Base.prototype.saveChanges = function (key, newValue, oldValue) {
139
136
  if (isBlazor()) {
140
- // tslint:disable-next-line:no-any
141
137
  var newChanges = {};
142
138
  newChanges["" + key] = newValue;
143
139
  this.serverDataBind(newChanges);
@@ -255,7 +251,7 @@ var Base = /** @class */ (function () {
255
251
  */
256
252
  Base.prototype.destroy = function () {
257
253
  var _this = this;
258
- // eslint-disable-next-line
254
+ // eslint-disable-next-line camelcase
259
255
  this.element.ej2_instances =
260
256
  this.element.ej2_instances ?
261
257
  this.element.ej2_instances.filter(function (i) {
@@ -284,7 +280,6 @@ export { Base };
284
280
  * @param {string} comp Specifies the component module name or Component.
285
281
  * @returns {any} ?
286
282
  */
287
- // tslint:disable-next-line:no-any
288
283
  export function getComponent(elem, comp) {
289
284
  var instance;
290
285
  var i;
@@ -298,7 +293,6 @@ export function getComponent(elem, comp) {
298
293
  }
299
294
  }
300
295
  else {
301
- // tslint:disable-next-line:no-any
302
296
  if (instance instanceof comp) {
303
297
  return instance;
304
298
  }
@@ -310,16 +304,13 @@ export function getComponent(elem, comp) {
310
304
  * Function to remove the child instances.
311
305
  *
312
306
  * @param {HTMLElement} element ?
313
- * @return {void}
307
+ * @returns {void} ?
314
308
  * @private
315
309
  */
316
- // tslint:disable-next-line:no-any
317
310
  export function removeChildInstance(element) {
318
- // tslint:disable-next-line:no-any
319
311
  var childEle = [].slice.call(element.getElementsByClassName('e-control'));
320
312
  for (var i = 0; i < childEle.length; i++) {
321
313
  var compName = childEle[parseInt(i.toString(), 10)].classList[1].split('e-')[1];
322
- // tslint:disable-next-line:no-any
323
314
  var compInstance = getComponent(childEle[parseInt(i.toString(), 10)], compName);
324
315
  if (!isUndefined(compInstance)) {
325
316
  compInstance.destroy();
package/src/browser.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare class Browser {
10
10
  * To get events from the browser
11
11
  *
12
12
  * @param {string} event - type of event triggered.
13
- * @returns {boolean}
13
+ * @returns {string} ?
14
14
  */
15
15
  private static getEvent;
16
16
  /**
package/src/browser.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { isUndefined } from './util';
2
3
  var REGX_MOBILE = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i;
3
4
  var REGX_IE = /msie|trident/i;
@@ -41,8 +42,7 @@ var Browser = /** @class */ (function () {
41
42
  browserInfo.name = (clientInfo[1].toLowerCase() === 'crios' ? 'chrome' : browserInfo.name);
42
43
  browserInfo.version = clientInfo[2];
43
44
  browserInfo.culture.name = browserInfo.culture.language = navigator.language;
44
- // eslint-disable-next-line
45
- if (!!Browser.userAgent.match(REGX_IE11)) {
45
+ if (Browser.userAgent.match(REGX_IE11)) {
46
46
  browserInfo.name = 'msie';
47
47
  break;
48
48
  }
@@ -59,10 +59,9 @@ var Browser = /** @class */ (function () {
59
59
  * To get events from the browser
60
60
  *
61
61
  * @param {string} event - type of event triggered.
62
- * @returns {boolean}
62
+ * @returns {string} ?
63
63
  */
64
64
  Browser.getEvent = function (event) {
65
- // eslint-disable-next-line
66
65
  var events = {
67
66
  start: {
68
67
  isPointer: 'pointerdown', isTouch: 'touchstart', isDevice: 'mousedown'
@@ -2,6 +2,7 @@
2
2
  * To detect the changes for inner properties.
3
3
  *
4
4
  * @private
5
+ * @returns {void} ?
5
6
  */
6
7
  export declare class ChildProperty<T> {
7
8
  private parentObj;
@@ -1,9 +1,11 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { getValue, setValue, merge, isBlazor } from './util';
2
3
  import { Base } from './base';
3
4
  /**
4
5
  * To detect the changes for inner properties.
5
6
  *
6
7
  * @private
8
+ * @returns {void} ?
7
9
  */
8
10
  var ChildProperty = /** @class */ (function () {
9
11
  function ChildProperty(parent, propName, defaultValue, isArray) {
@@ -12,7 +14,6 @@ var ChildProperty = /** @class */ (function () {
12
14
  this.changedProperties = {};
13
15
  this.childChangedProperties = {};
14
16
  this.oldProperties = {};
15
- // eslint-disable-next-line
16
17
  this.finalUpdate = function () { };
17
18
  this.callChildDataBind = getValue('callChildDataBind', Base);
18
19
  this.parentObj = parent;
@@ -156,7 +157,6 @@ var ChildProperty = /** @class */ (function () {
156
157
  }
157
158
  };
158
159
  ChildProperty.prototype.getParentKey = function (isSaveChanges) {
159
- // eslint-disable-next-line
160
160
  var index = '';
161
161
  var propName = this.propName;
162
162
  /* istanbul ignore next */
@@ -1,4 +1,4 @@
1
- import { isUndefined, getValue, isNullOrUndefined, setValue, uniqueID, isBlazor } from './util';import { ModuleLoader, ModuleDeclaration } from './module-loader';import { Base } from './base';import { Observer, BoundOptions } from './observer';import { ChildProperty } from './child-property';import { Property, NotifyPropertyChanges } from './notify-property-change';import { onIntlChange, rightToLeft, defaultCulture } from './internationalization';import { createElement, addClass, removeClass, ElementProperties, select } from './dom';import { validateLicense, createLicenseOverlay, componentList } from './validate-lic';
1
+ import { isUndefined, getValue, isNullOrUndefined, setValue, uniqueID, isBlazor } from './util';
2
2
 
3
3
  /**
4
4
  * Interface for a class Component
@@ -6,24 +6,24 @@ import { isUndefined, getValue, isNullOrUndefined, setValue, uniqueID, isBlazor
6
6
  export interface ComponentModel {
7
7
 
8
8
  /**
9
- * Enable or disable persisting component's state between page reloads.
10
- *
11
- * @default false
12
- */
13
- enablePersistence?: boolean;
9
+ * Enable or disable persisting component's state between page reloads.
10
+ *
11
+ * @default false
12
+ */
13
+ enablePersistence?: boolean;
14
14
 
15
15
  /**
16
- * Enable or disable rendering component in right to left direction.
17
- *
18
- * @default false
19
- */
20
- enableRtl?: boolean;
16
+ * Enable or disable rendering component in right to left direction.
17
+ *
18
+ * @default false
19
+ */
20
+ enableRtl?: boolean;
21
21
 
22
22
  /**
23
- * Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
24
- *
25
- * @default ''
26
- */
27
- locale?: string;
23
+ * Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
24
+ *
25
+ * @default ''
26
+ */
27
+ locale?: string;
28
28
 
29
29
  }
@@ -48,6 +48,10 @@ export declare abstract class Component<ElementType extends HTMLElement> extends
48
48
  };
49
49
  protected needsID: boolean;
50
50
  protected isReactHybrid: boolean;
51
+ isAngular: boolean;
52
+ isReact: boolean;
53
+ isVue: boolean;
54
+ portals: any;
51
55
  protected moduleLoader: ModuleLoader;
52
56
  protected localObserver: Observer;
53
57
  protected abstract render(): void;
package/src/component.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, @typescript-eslint/explicit-module-boundary-types */
20
21
  import { isUndefined, getValue, isNullOrUndefined, setValue, uniqueID, isBlazor } from './util';
21
22
  import { ModuleLoader } from './module-loader';
22
23
  import { Base } from './base';
@@ -67,6 +68,9 @@ var Component = /** @class */ (function (_super) {
67
68
  _this.isStringTemplate = false;
68
69
  _this.needsID = false;
69
70
  _this.isReactHybrid = false;
71
+ _this.isAngular = false;
72
+ _this.isReact = false;
73
+ _this.isVue = false;
70
74
  if (isNullOrUndefined(_this.enableRtl)) {
71
75
  _this.setProperties({ 'enableRtl': rightToLeft }, true);
72
76
  }
@@ -75,7 +79,6 @@ var Component = /** @class */ (function (_super) {
75
79
  }
76
80
  _this.moduleLoader = new ModuleLoader(_this);
77
81
  _this.localObserver = new Observer(_this);
78
- // tslint:disable-next-line:no-function-constructor-with-string-args
79
82
  onIntlChange.on('notifyExternalChange', _this.detectFunction, _this, _this.randomId);
80
83
  // Based on the considered control list we have count the instance
81
84
  if (typeof window !== 'undefined' && typeof document !== 'undefined' && !validateLicense()) {
@@ -145,7 +148,6 @@ var Component = /** @class */ (function (_super) {
145
148
  */
146
149
  Component.prototype.getRootElement = function () {
147
150
  if (this.isReactHybrid) {
148
- // eslint-disable-next-line
149
151
  return this.actualElement;
150
152
  }
151
153
  else {
@@ -157,7 +159,6 @@ var Component = /** @class */ (function (_super) {
157
159
  *
158
160
  * @returns {any} ?
159
161
  */
160
- // eslint-disable-next-line
161
162
  Component.prototype.getLocalData = function () {
162
163
  var eleId = this.getModuleName() + this.element.id;
163
164
  if (versionBasedStatePersistence) {
@@ -232,7 +233,8 @@ var Component = /** @class */ (function (_super) {
232
233
  treegrid: ['filter'],
233
234
  gantt: ['tooltip'],
234
235
  chart: ['Export', 'Zoom'],
235
- accumulationchart: ['Export']
236
+ accumulationchart: ['Export'],
237
+ 'query-builder': 'all'
236
238
  };
237
239
  var component = this.getModuleName();
238
240
  if (this.requiredModules && (!ignoredComponents["" + component] || ignoredComponents["" + component] !== 'all')) {
@@ -270,8 +272,7 @@ var Component = /** @class */ (function (_super) {
270
272
  Component.prototype.renderComplete = function (wrapperElement) {
271
273
  if (isBlazor()) {
272
274
  var sfBlazor = 'sfBlazor';
273
- // eslint-disable-next-line
274
- window[sfBlazor].renderComplete(this.element, wrapperElement);
275
+ window["" + sfBlazor].renderComplete(this.element, wrapperElement);
275
276
  }
276
277
  this.isRendered = true;
277
278
  };
@@ -375,7 +376,6 @@ var Component = /** @class */ (function (_super) {
375
376
  * @returns {any} ?
376
377
  * @private
377
378
  */
378
- // eslint-disable-next-line
379
379
  Component.prototype.createElement = function (tagName, prop, isVDOM) {
380
380
  return createElement(tagName, prop);
381
381
  };
@@ -386,15 +386,12 @@ var Component = /** @class */ (function (_super) {
386
386
  * @returns {void} .
387
387
  * @private
388
388
  */
389
- // eslint-disable-next-line
390
389
  Component.prototype.triggerStateChange = function (handler, argument) {
391
390
  if (this.isReactHybrid) {
392
- // eslint-disable-next-line
393
391
  this.setState();
394
392
  this.currentContext = { calls: handler, args: argument };
395
393
  }
396
394
  };
397
- // tslint: enable: no-any
398
395
  Component.prototype.injectModules = function () {
399
396
  if (this.injectedModules && this.injectedModules.length) {
400
397
  this.moduleLoader.inject(this.requiredModules(), this.injectedModules);
@@ -429,13 +426,11 @@ var Component = /** @class */ (function (_super) {
429
426
  }
430
427
  }
431
428
  };
432
- // eslint-disable-next-line
433
429
  Component.prototype.renderReactTemplates = function (callback) {
434
430
  if (!isNullOrUndefined(callback)) {
435
431
  callback();
436
432
  }
437
433
  };
438
- // eslint-disable-next-line
439
434
  Component.prototype.clearTemplate = function (templateName, index) {
440
435
  //No Code
441
436
  };
@@ -467,9 +462,7 @@ var Component = /** @class */ (function (_super) {
467
462
  var persistObj = {};
468
463
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
469
464
  var key = options_1[_i];
470
- var objValue = void 0;
471
- // eslint-disable-next-line
472
- objValue = getValue(key, this);
465
+ var objValue = getValue(key, this);
473
466
  if (!isUndefined(objValue)) {
474
467
  setValue(key, this.getActualProperties(objValue), persistObj);
475
468
  }
@@ -493,8 +486,7 @@ var Component = /** @class */ (function (_super) {
493
486
  var newObj = {};
494
487
  var _loop_1 = function (key) {
495
488
  if (ignoreList.indexOf(key) === -1) {
496
- // eslint-disable-next-line
497
- var value = obj[key];
489
+ var value = obj["" + key];
498
490
  if (typeof value === 'object' && !(value instanceof Array)) {
499
491
  var newList = ignoreList.filter(function (str) {
500
492
  var regExp = RegExp;
package/src/dom.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  /**
2
3
  * Functions related to dom operations.
3
4
  */
@@ -203,7 +204,6 @@ function executeScript(ele) {
203
204
  * @returns {any} ?
204
205
  * @private
205
206
  */
206
- // eslint-disable-next-line
207
207
  export function detach(element) {
208
208
  var parentNode = element.parentNode;
209
209
  if (parentNode) {
@@ -230,7 +230,6 @@ export function remove(element) {
230
230
  * @returns {Element} ?
231
231
  * @private
232
232
  */
233
- // eslint-disable-next-line
234
233
  export function attributes(element, attributes) {
235
234
  var keys = Object.keys(attributes);
236
235
  var ele = element;
@@ -258,7 +257,6 @@ export function attributes(element, attributes) {
258
257
  * @returns {any} ?
259
258
  * @private
260
259
  */
261
- // eslint-disable-next-line
262
260
  export function select(selector, context, needsVDOM) {
263
261
  if (context === void 0) { context = document; }
264
262
  selector = querySelectId(selector);
@@ -273,7 +271,6 @@ export function select(selector, context, needsVDOM) {
273
271
  * @returns {HTMLElement[]} ?
274
272
  * @private
275
273
  */
276
- // eslint-disable-next-line
277
274
  export function selectAll(selector, context, needsVDOM) {
278
275
  if (context === void 0) { context = document; }
279
276
  selector = querySelectId(selector);
@@ -390,8 +387,7 @@ export function getAttributeOrDefault(element, property, value) {
390
387
  export function setStyleAttribute(element, attrs) {
391
388
  if (attrs !== undefined) {
392
389
  Object.keys(attrs).forEach(function (key) {
393
- // eslint-disable-next-line
394
- element.style[key] = attrs[key];
390
+ element.style["" + key] = attrs["" + key];
395
391
  });
396
392
  }
397
393
  }
@@ -417,7 +413,6 @@ export function classList(element, addClasses, removeClasses) {
417
413
  * @private
418
414
  */
419
415
  export function matches(element, selector) {
420
- // eslint-disable-next-line
421
416
  var matches = element.matches || element.msMatchesSelector || element.webkitMatchesSelector;
422
417
  if (matches) {
423
418
  return matches.call(element, selector);
@@ -445,11 +440,10 @@ export function includeInnerHTML(ele, innerHTML) {
445
440
  * @returns {any} ?
446
441
  * @private
447
442
  */
448
- // eslint-disable-next-line
449
443
  export function containsClass(ele, className) {
450
444
  if (isObject(ele)) {
451
- // eslint-disable-next-line
452
- return new RegExp('\\b' + className + '\\b', 'i').test(ele.attributes.className);
445
+ var regExp = RegExp;
446
+ return new regExp('\\b' + className + '\\b', 'i').test(ele.attributes.className);
453
447
  }
454
448
  else {
455
449
  return ele.classList.contains(className);
@@ -463,7 +457,6 @@ export function containsClass(ele, className) {
463
457
  * @returns {any} ?
464
458
  * @private
465
459
  */
466
- // eslint-disable-next-line
467
460
  export function cloneNode(element, deep) {
468
461
  if (isObject(element)) {
469
462
  if (deep) {