@syncfusion/ej2-base 22.1.38 → 22.2.9
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/CHANGELOG.md +16 -0
- 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 +24 -2
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +24 -2
- 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 +15 -15
- package/src/component.d.ts +12 -0
- package/src/component.js +21 -1
- package/src/draggable.js +3 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.
|
|
3
|
+
* version : 22.2.9
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@22.
|
|
3
|
+
"_id": "@syncfusion/ej2-base@22.2.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-XAy0+BN47mnzdLElqyREwEwP3Udg0kKstCvQKufKkt+NBcSY+MHlxiqzFT5x1vLqUizCCUH11ds2DMRpcPBQkg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-base",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"/@syncfusion/ej2-angular-diagrams",
|
|
27
27
|
"/@syncfusion/ej2-angular-documenteditor",
|
|
28
28
|
"/@syncfusion/ej2-angular-dropdowns",
|
|
29
|
-
"/@syncfusion/ej2-angular-filemanager",
|
|
30
29
|
"/@syncfusion/ej2-angular-gantt",
|
|
31
30
|
"/@syncfusion/ej2-angular-grids",
|
|
32
31
|
"/@syncfusion/ej2-angular-image-editor",
|
|
33
32
|
"/@syncfusion/ej2-angular-inputs",
|
|
34
33
|
"/@syncfusion/ej2-angular-kanban",
|
|
35
|
-
"/@syncfusion/ej2-angular-
|
|
34
|
+
"/@syncfusion/ej2-angular-layouts",
|
|
35
|
+
"/@syncfusion/ej2-angular-lists",
|
|
36
36
|
"/@syncfusion/ej2-angular-pdfviewer",
|
|
37
37
|
"/@syncfusion/ej2-angular-pivotview",
|
|
38
38
|
"/@syncfusion/ej2-angular-popups",
|
|
39
39
|
"/@syncfusion/ej2-angular-querybuilder",
|
|
40
40
|
"/@syncfusion/ej2-angular-richtexteditor",
|
|
41
|
-
"/@syncfusion/ej2-angular-
|
|
41
|
+
"/@syncfusion/ej2-angular-spreadsheet",
|
|
42
42
|
"/@syncfusion/ej2-angular-treegrid",
|
|
43
43
|
"/@syncfusion/ej2-barcode-generator",
|
|
44
44
|
"/@syncfusion/ej2-buttons",
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
"/@syncfusion/ej2-react-diagrams",
|
|
78
78
|
"/@syncfusion/ej2-react-documenteditor",
|
|
79
79
|
"/@syncfusion/ej2-react-dropdowns",
|
|
80
|
-
"/@syncfusion/ej2-react-filemanager",
|
|
81
80
|
"/@syncfusion/ej2-react-gantt",
|
|
82
81
|
"/@syncfusion/ej2-react-grids",
|
|
83
82
|
"/@syncfusion/ej2-react-image-editor",
|
|
84
83
|
"/@syncfusion/ej2-react-inputs",
|
|
85
84
|
"/@syncfusion/ej2-react-kanban",
|
|
86
|
-
"/@syncfusion/ej2-react-
|
|
85
|
+
"/@syncfusion/ej2-react-layouts",
|
|
86
|
+
"/@syncfusion/ej2-react-lists",
|
|
87
87
|
"/@syncfusion/ej2-react-pdfviewer",
|
|
88
88
|
"/@syncfusion/ej2-react-pivotview",
|
|
89
89
|
"/@syncfusion/ej2-react-popups",
|
|
90
90
|
"/@syncfusion/ej2-react-querybuilder",
|
|
91
91
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
92
|
-
"/@syncfusion/ej2-react-
|
|
92
|
+
"/@syncfusion/ej2-react-spreadsheet",
|
|
93
93
|
"/@syncfusion/ej2-react-treegrid",
|
|
94
94
|
"/@syncfusion/ej2-ribbon",
|
|
95
95
|
"/@syncfusion/ej2-richtexteditor",
|
|
@@ -106,23 +106,23 @@
|
|
|
106
106
|
"/@syncfusion/ej2-vue-diagrams",
|
|
107
107
|
"/@syncfusion/ej2-vue-documenteditor",
|
|
108
108
|
"/@syncfusion/ej2-vue-dropdowns",
|
|
109
|
-
"/@syncfusion/ej2-vue-filemanager",
|
|
110
109
|
"/@syncfusion/ej2-vue-gantt",
|
|
111
110
|
"/@syncfusion/ej2-vue-grids",
|
|
112
111
|
"/@syncfusion/ej2-vue-image-editor",
|
|
113
112
|
"/@syncfusion/ej2-vue-inputs",
|
|
114
113
|
"/@syncfusion/ej2-vue-kanban",
|
|
115
|
-
"/@syncfusion/ej2-vue-
|
|
114
|
+
"/@syncfusion/ej2-vue-layouts",
|
|
115
|
+
"/@syncfusion/ej2-vue-lists",
|
|
116
116
|
"/@syncfusion/ej2-vue-pdfviewer",
|
|
117
117
|
"/@syncfusion/ej2-vue-pivotview",
|
|
118
118
|
"/@syncfusion/ej2-vue-popups",
|
|
119
119
|
"/@syncfusion/ej2-vue-querybuilder",
|
|
120
120
|
"/@syncfusion/ej2-vue-richtexteditor",
|
|
121
|
-
"/@syncfusion/ej2-vue-
|
|
121
|
+
"/@syncfusion/ej2-vue-spreadsheet",
|
|
122
122
|
"/@syncfusion/ej2-vue-treegrid"
|
|
123
123
|
],
|
|
124
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-22.
|
|
125
|
-
"_shasum": "
|
|
124
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-22.2.5.tgz",
|
|
125
|
+
"_shasum": "efa24bbee4cef7f1cfb86c6ea02cec0b96066aa7",
|
|
126
126
|
"_spec": "@syncfusion/ej2-base@*",
|
|
127
127
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
128
128
|
"author": {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
},
|
|
137
137
|
"bundleDependencies": false,
|
|
138
138
|
"dependencies": {
|
|
139
|
-
"@syncfusion/ej2-icons": "~22.
|
|
139
|
+
"@syncfusion/ej2-icons": "~22.2.5"
|
|
140
140
|
},
|
|
141
141
|
"deprecated": false,
|
|
142
142
|
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
|
|
@@ -177,6 +177,6 @@
|
|
|
177
177
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
178
178
|
},
|
|
179
179
|
"typings": "index.d.ts",
|
|
180
|
-
"version": "22.
|
|
180
|
+
"version": "22.2.9",
|
|
181
181
|
"sideEffects": true
|
|
182
182
|
}
|
package/src/component.d.ts
CHANGED
|
@@ -81,6 +81,18 @@ export declare abstract class Component<ElementType extends HTMLElement> extends
|
|
|
81
81
|
* @returns {any} ?
|
|
82
82
|
*/
|
|
83
83
|
getLocalData(): any;
|
|
84
|
+
/**
|
|
85
|
+
* Adding unload event to persist data when enable persistence true
|
|
86
|
+
*/
|
|
87
|
+
attachUnloadEvent(): any;
|
|
88
|
+
/**
|
|
89
|
+
* Handling unload event to persist data when enable persistence true
|
|
90
|
+
*/
|
|
91
|
+
handleUnload(): any;
|
|
92
|
+
/**
|
|
93
|
+
* Removing unload event to persist data when enable persistence true
|
|
94
|
+
*/
|
|
95
|
+
detachUnloadEvent(): any;
|
|
84
96
|
/**
|
|
85
97
|
* Appends the control within the given HTML element
|
|
86
98
|
*
|
package/src/component.js
CHANGED
|
@@ -105,6 +105,7 @@ var Component = /** @class */ (function (_super) {
|
|
|
105
105
|
}
|
|
106
106
|
if (this.enablePersistence) {
|
|
107
107
|
this.setPersistData();
|
|
108
|
+
this.detachUnloadEvent();
|
|
108
109
|
}
|
|
109
110
|
this.localObserver.destroy();
|
|
110
111
|
if (this.refreshing) {
|
|
@@ -166,6 +167,25 @@ var Component = /** @class */ (function (_super) {
|
|
|
166
167
|
return window.localStorage.getItem(eleId);
|
|
167
168
|
}
|
|
168
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* Adding unload event to persist data when enable persistence true
|
|
172
|
+
*/
|
|
173
|
+
Component.prototype.attachUnloadEvent = function () {
|
|
174
|
+
this.handleUnload = this.handleUnload.bind(this);
|
|
175
|
+
window.addEventListener('unload', this.handleUnload);
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Handling unload event to persist data when enable persistence true
|
|
179
|
+
*/
|
|
180
|
+
Component.prototype.handleUnload = function () {
|
|
181
|
+
this.setPersistData();
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Removing unload event to persist data when enable persistence true
|
|
185
|
+
*/
|
|
186
|
+
Component.prototype.detachUnloadEvent = function () {
|
|
187
|
+
window.removeEventListener('unload', this.handleUnload);
|
|
188
|
+
};
|
|
169
189
|
/**
|
|
170
190
|
* Appends the control within the given HTML element
|
|
171
191
|
*
|
|
@@ -188,7 +208,7 @@ var Component = /** @class */ (function (_super) {
|
|
|
188
208
|
}
|
|
189
209
|
if (this.enablePersistence) {
|
|
190
210
|
this.mergePersistData();
|
|
191
|
-
|
|
211
|
+
this.attachUnloadEvent();
|
|
192
212
|
}
|
|
193
213
|
var inst = getValue('ej2_instances', this.element);
|
|
194
214
|
if (!inst || inst.indexOf(this) === -1) {
|
package/src/draggable.js
CHANGED
|
@@ -506,7 +506,9 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
506
506
|
draEleTop -= marginTop;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
|
|
509
|
+
if (this.dragArea) {
|
|
510
|
+
draEleTop = (this.dragLimit.bottom < draEleTop) ? this.dragLimit.bottom : draEleTop;
|
|
511
|
+
}
|
|
510
512
|
}
|
|
511
513
|
if ((top - iTop) < 0) {
|
|
512
514
|
if (dTop + marginTop + (helperElement.offsetHeight - iTop) >= 0) {
|