@syncfusion/ej2-base 25.2.5 → 26.1.35
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/.eslintrc.json +3 -2
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +197 -423
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +182 -405
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +63 -8
- package/src/ajax.d.ts +1 -1
- package/src/ajax.js +3 -7
- package/src/animation.d.ts +1 -1
- package/src/animation.js +1 -3
- 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.d.ts +4 -0
- package/src/component.js +9 -17
- package/src/dom.js +4 -11
- package/src/draggable.js +1 -22
- package/src/droppable.js +0 -1
- package/src/event-handler.js +2 -6
- package/src/fetch.js +1 -2
- package/src/hijri-parser.js +3 -3
- 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 +7 -0
- package/src/intl/intl-base.js +16 -16
- package/src/intl/number-formatter.js +5 -5
- package/src/intl/number-parser.js +2 -6
- package/src/intl/parser-base.js +6 -11
- package/src/keyboard.js +0 -1
- 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.js +3 -8
- package/src/util.d.ts +4 -4
- package/src/util.js +13 -38
- package/src/validate-lic.js +4 -3
- package/styles/_bootstrap5.3-dark-definition.scss +8 -0
- package/styles/_bootstrap5.3-definition.scss +8 -0
- 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/animation/_all.scss +0 -1
- package/styles/bootstrap-dark.css +865 -143
- package/styles/bootstrap.css +865 -143
- package/styles/bootstrap4.css +865 -143
- package/styles/bootstrap5-dark.css +865 -143
- package/styles/bootstrap5.css +865 -143
- package/styles/common/_core.scss +3 -7
- package/styles/definition/_bds-dark.scss +45 -156
- package/styles/definition/_bds.scss +71 -202
- package/styles/definition/_bootstrap-dark.scss +1 -13
- package/styles/definition/_bootstrap.scss +0 -13
- package/styles/definition/_bootstrap4.scss +24 -38
- package/styles/definition/_bootstrap5-dark.scss +69 -88
- package/styles/definition/_bootstrap5.3-dark.scss +853 -0
- package/styles/definition/_bootstrap5.3.scss +1486 -0
- package/styles/definition/_bootstrap5.scss +64 -84
- package/styles/definition/_fabric-dark.scss +0 -12
- package/styles/definition/_fabric.scss +0 -12
- package/styles/definition/_fluent-dark.scss +27 -96
- package/styles/definition/_fluent.scss +27 -97
- package/styles/definition/_fluent2-dark.scss +1506 -0
- package/styles/definition/_fluent2-highcontrast.scss +1506 -0
- package/styles/definition/_fluent2.scss +2264 -0
- package/styles/definition/_fusionnew-dark.scss +40 -78
- package/styles/definition/_fusionnew.scss +36 -75
- package/styles/definition/_highcontrast-light.scss +0 -10
- package/styles/definition/_highcontrast.scss +0 -12
- package/styles/definition/_material-dark.scss +0 -11
- package/styles/definition/_material.scss +1 -13
- package/styles/definition/_material3-dark.scss +15 -71
- package/styles/definition/_material3.scss +15 -84
- package/styles/definition/_tailwind-dark.scss +17 -66
- package/styles/definition/_tailwind.scss +18 -66
- package/styles/fabric-dark.css +865 -143
- package/styles/fabric.css +865 -143
- package/styles/fluent-dark.css +865 -143
- package/styles/fluent.css +865 -143
- package/styles/fluent2.css +3825 -0
- package/styles/fluent2.scss +3 -0
- package/styles/highcontrast-light.css +865 -143
- package/styles/highcontrast.css +865 -143
- package/styles/material-dark.css +865 -143
- package/styles/material.css +865 -143
- package/styles/material3-dark.css +865 -144
- package/styles/material3.css +865 -144
- package/styles/offline-theme/material-dark.css +865 -143
- package/styles/offline-theme/material.css +865 -143
- package/styles/offline-theme/tailwind-dark.css +866 -144
- package/styles/offline-theme/tailwind.css +866 -144
- package/styles/tailwind-dark.css +866 -144
- package/styles/tailwind.css +866 -144
- package/CHANGELOG.md +0 -647
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 26.1.35
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-base@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-base@
|
|
3
|
+
"_id": "@syncfusion/ej2-base@18.92.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-rZOMO+O2Ro1uTwkzHzAu3HegBPcyvvmxC4u3bFVLStheeCUR1FQmVTqX95I1A8N9HO7v2i5sVnt+G2FiQqA0dA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-base",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -21,21 +21,39 @@
|
|
|
21
21
|
"/@syncfusion/ej2",
|
|
22
22
|
"/@syncfusion/ej2-angular-barcode-generator",
|
|
23
23
|
"/@syncfusion/ej2-angular-base",
|
|
24
|
+
"/@syncfusion/ej2-angular-buttons",
|
|
24
25
|
"/@syncfusion/ej2-angular-calendars",
|
|
25
26
|
"/@syncfusion/ej2-angular-charts",
|
|
27
|
+
"/@syncfusion/ej2-angular-circulargauge",
|
|
26
28
|
"/@syncfusion/ej2-angular-diagrams",
|
|
27
29
|
"/@syncfusion/ej2-angular-documenteditor",
|
|
28
30
|
"/@syncfusion/ej2-angular-dropdowns",
|
|
31
|
+
"/@syncfusion/ej2-angular-filemanager",
|
|
29
32
|
"/@syncfusion/ej2-angular-gantt",
|
|
30
33
|
"/@syncfusion/ej2-angular-grids",
|
|
34
|
+
"/@syncfusion/ej2-angular-heatmap",
|
|
35
|
+
"/@syncfusion/ej2-angular-image-editor",
|
|
36
|
+
"/@syncfusion/ej2-angular-inplace-editor",
|
|
31
37
|
"/@syncfusion/ej2-angular-inputs",
|
|
38
|
+
"/@syncfusion/ej2-angular-kanban",
|
|
39
|
+
"/@syncfusion/ej2-angular-layouts",
|
|
40
|
+
"/@syncfusion/ej2-angular-lineargauge",
|
|
41
|
+
"/@syncfusion/ej2-angular-lists",
|
|
32
42
|
"/@syncfusion/ej2-angular-maps",
|
|
43
|
+
"/@syncfusion/ej2-angular-navigations",
|
|
44
|
+
"/@syncfusion/ej2-angular-notifications",
|
|
33
45
|
"/@syncfusion/ej2-angular-pdfviewer",
|
|
34
46
|
"/@syncfusion/ej2-angular-pivotview",
|
|
47
|
+
"/@syncfusion/ej2-angular-popups",
|
|
48
|
+
"/@syncfusion/ej2-angular-progressbar",
|
|
49
|
+
"/@syncfusion/ej2-angular-querybuilder",
|
|
35
50
|
"/@syncfusion/ej2-angular-ribbon",
|
|
36
51
|
"/@syncfusion/ej2-angular-richtexteditor",
|
|
52
|
+
"/@syncfusion/ej2-angular-schedule",
|
|
53
|
+
"/@syncfusion/ej2-angular-splitbuttons",
|
|
37
54
|
"/@syncfusion/ej2-angular-spreadsheet",
|
|
38
55
|
"/@syncfusion/ej2-angular-treegrid",
|
|
56
|
+
"/@syncfusion/ej2-angular-treemap",
|
|
39
57
|
"/@syncfusion/ej2-barcode-generator",
|
|
40
58
|
"/@syncfusion/ej2-buttons",
|
|
41
59
|
"/@syncfusion/ej2-calendars",
|
|
@@ -59,6 +77,7 @@
|
|
|
59
77
|
"/@syncfusion/ej2-lineargauge",
|
|
60
78
|
"/@syncfusion/ej2-lists",
|
|
61
79
|
"/@syncfusion/ej2-maps",
|
|
80
|
+
"/@syncfusion/ej2-multicolumn-combobox",
|
|
62
81
|
"/@syncfusion/ej2-navigations",
|
|
63
82
|
"/@syncfusion/ej2-notifications",
|
|
64
83
|
"/@syncfusion/ej2-pdf",
|
|
@@ -69,21 +88,39 @@
|
|
|
69
88
|
"/@syncfusion/ej2-querybuilder",
|
|
70
89
|
"/@syncfusion/ej2-react-barcode-generator",
|
|
71
90
|
"/@syncfusion/ej2-react-base",
|
|
91
|
+
"/@syncfusion/ej2-react-buttons",
|
|
72
92
|
"/@syncfusion/ej2-react-calendars",
|
|
73
93
|
"/@syncfusion/ej2-react-charts",
|
|
94
|
+
"/@syncfusion/ej2-react-circulargauge",
|
|
74
95
|
"/@syncfusion/ej2-react-diagrams",
|
|
75
96
|
"/@syncfusion/ej2-react-documenteditor",
|
|
76
97
|
"/@syncfusion/ej2-react-dropdowns",
|
|
98
|
+
"/@syncfusion/ej2-react-filemanager",
|
|
77
99
|
"/@syncfusion/ej2-react-gantt",
|
|
78
100
|
"/@syncfusion/ej2-react-grids",
|
|
101
|
+
"/@syncfusion/ej2-react-heatmap",
|
|
102
|
+
"/@syncfusion/ej2-react-image-editor",
|
|
103
|
+
"/@syncfusion/ej2-react-inplace-editor",
|
|
79
104
|
"/@syncfusion/ej2-react-inputs",
|
|
105
|
+
"/@syncfusion/ej2-react-kanban",
|
|
106
|
+
"/@syncfusion/ej2-react-layouts",
|
|
107
|
+
"/@syncfusion/ej2-react-lineargauge",
|
|
108
|
+
"/@syncfusion/ej2-react-lists",
|
|
80
109
|
"/@syncfusion/ej2-react-maps",
|
|
110
|
+
"/@syncfusion/ej2-react-navigations",
|
|
111
|
+
"/@syncfusion/ej2-react-notifications",
|
|
81
112
|
"/@syncfusion/ej2-react-pdfviewer",
|
|
82
113
|
"/@syncfusion/ej2-react-pivotview",
|
|
114
|
+
"/@syncfusion/ej2-react-popups",
|
|
115
|
+
"/@syncfusion/ej2-react-progressbar",
|
|
116
|
+
"/@syncfusion/ej2-react-querybuilder",
|
|
83
117
|
"/@syncfusion/ej2-react-ribbon",
|
|
84
118
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
119
|
+
"/@syncfusion/ej2-react-schedule",
|
|
120
|
+
"/@syncfusion/ej2-react-splitbuttons",
|
|
85
121
|
"/@syncfusion/ej2-react-spreadsheet",
|
|
86
122
|
"/@syncfusion/ej2-react-treegrid",
|
|
123
|
+
"/@syncfusion/ej2-react-treemap",
|
|
87
124
|
"/@syncfusion/ej2-ribbon",
|
|
88
125
|
"/@syncfusion/ej2-richtexteditor",
|
|
89
126
|
"/@syncfusion/ej2-schedule",
|
|
@@ -94,26 +131,44 @@
|
|
|
94
131
|
"/@syncfusion/ej2-treemap",
|
|
95
132
|
"/@syncfusion/ej2-vue-barcode-generator",
|
|
96
133
|
"/@syncfusion/ej2-vue-base",
|
|
134
|
+
"/@syncfusion/ej2-vue-buttons",
|
|
97
135
|
"/@syncfusion/ej2-vue-calendars",
|
|
98
136
|
"/@syncfusion/ej2-vue-charts",
|
|
137
|
+
"/@syncfusion/ej2-vue-circulargauge",
|
|
99
138
|
"/@syncfusion/ej2-vue-diagrams",
|
|
100
139
|
"/@syncfusion/ej2-vue-documenteditor",
|
|
101
140
|
"/@syncfusion/ej2-vue-dropdowns",
|
|
141
|
+
"/@syncfusion/ej2-vue-filemanager",
|
|
102
142
|
"/@syncfusion/ej2-vue-gantt",
|
|
103
143
|
"/@syncfusion/ej2-vue-grids",
|
|
144
|
+
"/@syncfusion/ej2-vue-heatmap",
|
|
145
|
+
"/@syncfusion/ej2-vue-image-editor",
|
|
146
|
+
"/@syncfusion/ej2-vue-inplace-editor",
|
|
104
147
|
"/@syncfusion/ej2-vue-inputs",
|
|
148
|
+
"/@syncfusion/ej2-vue-kanban",
|
|
149
|
+
"/@syncfusion/ej2-vue-layouts",
|
|
150
|
+
"/@syncfusion/ej2-vue-lineargauge",
|
|
151
|
+
"/@syncfusion/ej2-vue-lists",
|
|
105
152
|
"/@syncfusion/ej2-vue-maps",
|
|
153
|
+
"/@syncfusion/ej2-vue-navigations",
|
|
154
|
+
"/@syncfusion/ej2-vue-notifications",
|
|
106
155
|
"/@syncfusion/ej2-vue-pdfviewer",
|
|
107
156
|
"/@syncfusion/ej2-vue-pivotview",
|
|
157
|
+
"/@syncfusion/ej2-vue-popups",
|
|
158
|
+
"/@syncfusion/ej2-vue-progressbar",
|
|
159
|
+
"/@syncfusion/ej2-vue-querybuilder",
|
|
108
160
|
"/@syncfusion/ej2-vue-ribbon",
|
|
109
161
|
"/@syncfusion/ej2-vue-richtexteditor",
|
|
162
|
+
"/@syncfusion/ej2-vue-schedule",
|
|
163
|
+
"/@syncfusion/ej2-vue-splitbuttons",
|
|
110
164
|
"/@syncfusion/ej2-vue-spreadsheet",
|
|
111
|
-
"/@syncfusion/ej2-vue-treegrid"
|
|
165
|
+
"/@syncfusion/ej2-vue-treegrid",
|
|
166
|
+
"/@syncfusion/ej2-vue-treemap"
|
|
112
167
|
],
|
|
113
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
114
|
-
"_shasum": "
|
|
168
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-base/-/ej2-base-18.92.0.tgz",
|
|
169
|
+
"_shasum": "f501d832abeab3a58710fb18fc2e73b774a2cc32",
|
|
115
170
|
"_spec": "@syncfusion/ej2-base@*",
|
|
116
|
-
"_where": "/jenkins/workspace/elease-
|
|
171
|
+
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
117
172
|
"author": {
|
|
118
173
|
"name": "Syncfusion Inc."
|
|
119
174
|
},
|
|
@@ -125,7 +180,7 @@
|
|
|
125
180
|
},
|
|
126
181
|
"bundleDependencies": false,
|
|
127
182
|
"dependencies": {
|
|
128
|
-
"@syncfusion/ej2-icons": "~
|
|
183
|
+
"@syncfusion/ej2-icons": "~26.1.35"
|
|
129
184
|
},
|
|
130
185
|
"deprecated": false,
|
|
131
186
|
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
|
|
@@ -166,6 +221,6 @@
|
|
|
166
221
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
167
222
|
},
|
|
168
223
|
"typings": "index.d.ts",
|
|
169
|
-
"version": "
|
|
224
|
+
"version": "26.1.35",
|
|
170
225
|
"sideEffects": true
|
|
171
226
|
}
|
package/src/ajax.d.ts
CHANGED
package/src/ajax.js
CHANGED
|
@@ -55,7 +55,7 @@ var Ajax = /** @class */ (function () {
|
|
|
55
55
|
* Send the request to server.
|
|
56
56
|
*
|
|
57
57
|
* @param {any} data - To send the user data
|
|
58
|
-
* @
|
|
58
|
+
* @returns {Promise} ?
|
|
59
59
|
*/
|
|
60
60
|
Ajax.prototype.send = function (data) {
|
|
61
61
|
var _this = this;
|
|
@@ -150,17 +150,13 @@ var Ajax = /** @class */ (function () {
|
|
|
150
150
|
* @returns {string} ?
|
|
151
151
|
*/
|
|
152
152
|
Ajax.prototype.getResponseHeader = function (key) {
|
|
153
|
-
var responseHeaders;
|
|
154
|
-
var header;
|
|
155
|
-
// eslint-disable-next-line
|
|
156
|
-
responseHeaders = {};
|
|
153
|
+
var responseHeaders = {};
|
|
157
154
|
var headers = headerRegex.exec(this.httpRequest.getAllResponseHeaders());
|
|
158
155
|
while (headers) {
|
|
159
156
|
responseHeaders[headers[1].toLowerCase()] = headers[2];
|
|
160
157
|
headers = headerRegex.exec(this.httpRequest.getAllResponseHeaders());
|
|
161
158
|
}
|
|
162
|
-
|
|
163
|
-
header = responseHeaders[key.toLowerCase()];
|
|
159
|
+
var header = responseHeaders[key.toLowerCase()];
|
|
164
160
|
return isNullOrUndefined(header) ? null : header;
|
|
165
161
|
};
|
|
166
162
|
return Ajax;
|
package/src/animation.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export declare class Animation extends Base<HTMLElement> implements INotifyPrope
|
|
|
85
85
|
*
|
|
86
86
|
* @param {HTMLElement} element - Element which needs to be stop the animation.
|
|
87
87
|
* @param {AnimationOptions} model - Handling the animation model at stop function.
|
|
88
|
-
* @
|
|
88
|
+
* @returns {void}
|
|
89
89
|
*/
|
|
90
90
|
static stop(element: HTMLElement, model?: AnimationOptions): void;
|
|
91
91
|
/**
|
package/src/animation.js
CHANGED
|
@@ -81,7 +81,7 @@ var Animation = /** @class */ (function (_super) {
|
|
|
81
81
|
*
|
|
82
82
|
* @param {HTMLElement} element - Element which needs to be stop the animation.
|
|
83
83
|
* @param {AnimationOptions} model - Handling the animation model at stop function.
|
|
84
|
-
* @
|
|
84
|
+
* @returns {void}
|
|
85
85
|
*/
|
|
86
86
|
Animation.stop = function (element, model) {
|
|
87
87
|
element.style.animation = '';
|
|
@@ -211,7 +211,6 @@ var Animation = /** @class */ (function (_super) {
|
|
|
211
211
|
* @param {AnimationModel} oldProp ?
|
|
212
212
|
* @returns {void} ?
|
|
213
213
|
*/
|
|
214
|
-
// eslint-disable-next-line
|
|
215
214
|
Animation.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
216
215
|
// no code needed
|
|
217
216
|
};
|
|
@@ -401,7 +400,6 @@ function removeRipple(e, eventArgs) {
|
|
|
401
400
|
if (eventArgs.parent !== element) {
|
|
402
401
|
EventHandler.remove(element, 'mouseleave', rippleLeaveHandler);
|
|
403
402
|
}
|
|
404
|
-
/* tslint:disable:align */
|
|
405
403
|
setTimeout(function () {
|
|
406
404
|
if (rippleElement && rippleElement.parentNode) {
|
|
407
405
|
rippleElement.parentNode.removeChild(rippleElement);
|
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.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
|
@@ -17,6 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
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
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
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) {
|