@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.
- package/{README.md → ReadMe.md} +100 -100
- package/bin/syncfusion-license.js +104 -1
- package/dist/ej2-base.min.js +1 -10
- package/dist/ej2-base.umd.min.js +1 -10
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +268 -486
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +307 -522
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +1 -10
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/undefined +67 -0
- package/e2e/crypto.js +16 -16
- package/e2e/index.d.ts +27 -27
- package/e2e/m.protractor.config.js +286 -286
- package/e2e/modified-protractor/protractor.config.js +316 -316
- package/e2e/protractor.config.js +389 -389
- package/helpers/e2e/index.js +3 -3
- package/license +10 -10
- package/package.json +225 -161
- package/src/ajax.d.ts +1 -1
- package/src/ajax.js +3 -7
- package/src/animation-model.d.ts +41 -41
- package/src/animation.d.ts +1 -1
- package/src/animation.js +20 -22
- package/src/base.d.ts +2 -1
- package/src/base.js +4 -13
- package/src/browser.d.ts +1 -1
- package/src/browser.js +3 -4
- package/src/child-property.d.ts +1 -0
- package/src/child-property.js +2 -2
- package/src/component-model.d.ts +16 -16
- package/src/component.d.ts +4 -0
- package/src/component.js +28 -36
- package/src/dom.js +4 -11
- package/src/draggable-model.d.ts +113 -113
- package/src/draggable.js +20 -41
- package/src/droppable-model.d.ts +23 -23
- package/src/droppable.js +19 -20
- package/src/event-handler.js +2 -6
- package/src/fetch.js +1 -2
- package/src/hijri-parser.js +3 -3
- package/src/internationalization.d.ts +4 -0
- package/src/internationalization.js +0 -5
- package/src/intl/date-formatter.js +19 -33
- package/src/intl/date-parser.js +33 -62
- package/src/intl/intl-base.d.ts +9 -1
- package/src/intl/intl-base.js +19 -18
- package/src/intl/number-formatter.js +14 -7
- package/src/intl/number-parser.js +2 -6
- package/src/intl/parser-base.js +6 -11
- package/src/keyboard-model.d.ts +16 -16
- package/src/keyboard.js +19 -20
- package/src/module-loader.js +1 -0
- package/src/notify-property-change.d.ts +0 -20
- package/src/notify-property-change.js +16 -55
- package/src/observer.js +3 -6
- package/src/sanitize-helper.js +0 -1
- package/src/template-engine.js +1 -7
- package/src/template.js +13 -18
- package/src/touch-model.d.ts +39 -39
- package/src/touch.js +22 -27
- package/src/util.d.ts +4 -4
- package/src/util.js +12 -37
- package/src/validate-lic.js +4 -3
- package/styles/_all.scss +2 -2
- package/styles/_bds-dark-definition.scss +16 -15
- package/styles/_bds-definition.scss +16 -15
- package/styles/_bootstrap-dark-definition.scss +42 -42
- package/styles/_bootstrap-definition.scss +42 -42
- package/styles/_bootstrap4-definition.scss +11 -11
- package/styles/_bootstrap5-dark-definition.scss +9 -9
- package/styles/_bootstrap5-definition.scss +8 -8
- package/styles/_bootstrap5.3-dark-definition.scss +8 -0
- package/styles/_bootstrap5.3-definition.scss +8 -0
- package/styles/_fabric-dark-definition.scss +42 -42
- package/styles/_fabric-definition.scss +42 -42
- package/styles/_fluent-dark-definition.scss +9 -9
- package/styles/_fluent-definition.scss +9 -9
- package/styles/_fluent2-dark-definition.scss +9 -0
- package/styles/_fluent2-definition.scss +9 -0
- package/styles/_fluent2-highcontrast-definition.scss +9 -0
- package/styles/_fusionnew-dark-definition.scss +8 -8
- package/styles/_fusionnew-definition.scss +8 -8
- package/styles/_highcontrast-definition.scss +42 -42
- package/styles/_highcontrast-light-definition.scss +42 -42
- package/styles/_material-dark-definition.scss +49 -48
- package/styles/_material-definition.scss +50 -49
- package/styles/_material3-dark-definition.scss +15 -14
- package/styles/_material3-definition.scss +16 -15
- package/styles/_tailwind-dark-definition.scss +16 -15
- package/styles/_tailwind-definition.scss +16 -15
- package/styles/_tailwind3-dark-definition.scss +15 -0
- package/styles/_tailwind3-definition.scss +15 -0
- package/styles/animation/_all.scss +535 -560
- package/styles/bds-lite.css +3408 -0
- package/styles/bds-lite.scss +3 -0
- package/styles/bds.css +3408 -0
- package/styles/bds.scss +3 -0
- package/styles/bootstrap-dark-lite.css +3749 -0
- package/styles/bootstrap-dark-lite.scss +3 -0
- package/styles/bootstrap-dark.css +1075 -169
- package/styles/bootstrap-lite.css +3749 -0
- package/styles/bootstrap-lite.scss +3 -0
- package/styles/bootstrap.css +1075 -169
- package/styles/bootstrap4-lite.css +3390 -0
- package/styles/bootstrap4-lite.scss +3 -0
- package/styles/bootstrap4.css +1063 -169
- package/styles/bootstrap5-dark-lite.css +2966 -0
- package/styles/bootstrap5-dark-lite.scss +3 -0
- package/styles/bootstrap5-dark.css +1068 -171
- package/styles/bootstrap5-lite.css +2966 -0
- package/styles/bootstrap5-lite.scss +3 -0
- package/styles/bootstrap5.3-lite.css +3559 -0
- package/styles/bootstrap5.3-lite.scss +3 -0
- package/styles/bootstrap5.3.css +3559 -0
- package/styles/bootstrap5.3.scss +3 -0
- package/styles/bootstrap5.css +1066 -169
- package/styles/common/_all.scss +2 -2
- package/styles/common/_core.scss +111 -117
- package/styles/common/_mixin.scss +11 -9
- package/styles/definition/_bds-dark.scss +1193 -1178
- package/styles/definition/_bds.scss +1488 -1458
- package/styles/definition/_bootstrap-dark.scss +213 -219
- package/styles/definition/_bootstrap.scss +208 -215
- package/styles/definition/_bootstrap4.scss +159 -167
- package/styles/definition/_bootstrap5-dark.scss +481 -494
- package/styles/definition/_bootstrap5.3-dark.scss +1232 -0
- package/styles/definition/_bootstrap5.3.scss +1579 -0
- package/styles/definition/_bootstrap5.scss +481 -495
- package/styles/definition/_fabric-dark.scss +194 -200
- package/styles/definition/_fabric.scss +192 -198
- package/styles/definition/_fluent-dark.scss +494 -557
- package/styles/definition/_fluent.scss +494 -558
- package/styles/definition/_fluent2-dark.scss +1523 -0
- package/styles/definition/_fluent2-highcontrast.scss +1523 -0
- package/styles/definition/_fluent2.scss +2295 -0
- package/styles/definition/_fusionnew-dark.scss +330 -362
- package/styles/definition/_fusionnew.scss +331 -363
- package/styles/definition/_highcontrast-light.scss +189 -193
- package/styles/definition/_highcontrast.scss +189 -195
- package/styles/definition/_material-dark.scss +193 -198
- package/styles/definition/_material.scss +186 -192
- package/styles/definition/_material3-dark.scss +660 -710
- package/styles/definition/_material3.scss +729 -792
- package/styles/definition/_tailwind-dark.scss +445 -488
- package/styles/definition/_tailwind.scss +443 -485
- package/styles/definition/_tailwind3-dark.scss +1622 -0
- package/styles/definition/_tailwind3.scss +2093 -0
- package/styles/fabric-dark-lite.css +3734 -0
- package/styles/fabric-dark-lite.scss +3 -0
- package/styles/fabric-dark.css +1075 -169
- package/styles/fabric-lite.css +3734 -0
- package/styles/fabric-lite.scss +3 -0
- package/styles/fabric.css +1075 -169
- package/styles/fluent-dark-lite.css +2966 -0
- package/styles/fluent-dark-lite.scss +3 -0
- package/styles/fluent-dark.css +1066 -169
- package/styles/fluent-lite.css +2966 -0
- package/styles/fluent-lite.scss +3 -0
- package/styles/fluent.css +1066 -169
- package/styles/fluent2-lite.css +4017 -0
- package/styles/fluent2-lite.scss +3 -0
- package/styles/fluent2.css +4017 -0
- package/styles/fluent2.scss +3 -0
- package/styles/highcontrast-light-lite.css +3725 -0
- package/styles/highcontrast-light-lite.scss +3 -0
- package/styles/highcontrast-light.css +1075 -169
- package/styles/highcontrast-lite.css +3725 -0
- package/styles/highcontrast-lite.scss +3 -0
- package/styles/highcontrast.css +1075 -169
- package/styles/material-dark-lite.css +3702 -0
- package/styles/material-dark-lite.scss +3 -0
- package/styles/material-dark.css +1075 -169
- package/styles/material-lite.css +3702 -0
- package/styles/material-lite.scss +3 -0
- package/styles/material.css +1075 -169
- package/styles/material3-dark-lite.css +3021 -0
- package/styles/material3-dark-lite.scss +3 -0
- package/styles/material3-dark.css +1066 -170
- package/styles/material3-lite.css +3077 -0
- package/styles/material3-lite.scss +3 -0
- package/styles/material3.css +1066 -170
- package/styles/offline-theme/material-dark.css +1075 -169
- package/styles/offline-theme/material.css +1075 -169
- package/styles/offline-theme/tailwind-dark.css +1067 -170
- package/styles/offline-theme/tailwind.css +1067 -170
- package/styles/tailwind-dark-lite.css +2967 -0
- package/styles/tailwind-dark-lite.scss +3 -0
- package/styles/tailwind-dark.css +1067 -170
- package/styles/tailwind-lite.css +2967 -0
- package/styles/tailwind-lite.scss +3 -0
- package/styles/tailwind.css +1067 -170
- package/styles/tailwind3-lite.css +3775 -0
- package/styles/tailwind3-lite.scss +3 -0
- package/styles/tailwind3.css +3775 -0
- package/styles/tailwind3.scss +3 -0
- package/.eslintrc.json +0 -260
- package/CHANGELOG.md +0 -649
- 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
|
-
* @
|
|
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
|
-
* @
|
|
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
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
|
-
|
|
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 {
|
|
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'
|
package/src/child-property.d.ts
CHANGED
package/src/child-property.js
CHANGED
|
@@ -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 */
|
package/src/component-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isUndefined, getValue, isNullOrUndefined, setValue, uniqueID, isBlazor } from './util';
|
|
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
|
}
|
package/src/component.d.ts
CHANGED
|
@@ -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
|
-
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
452
|
-
return new
|
|
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) {
|