@syncfusion/ej2-lists 20.4.48 → 20.4.50
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 +2 -0
- package/dist/ej2-lists.min.js +2 -2
- package/dist/ej2-lists.umd.min.js +2 -2
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +31 -3
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +31 -3
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +2 -2
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/list-view/list-view.js +1 -1
- package/src/list-view/virtualization.d.ts +14 -0
- package/src/list-view/virtualization.js +29 -1
- package/src/sortable/sortable.js +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.50
|
|
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-lists@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-lists@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-lists@20.4.48",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-sixUnbQ4O3qCrAVZsBnjwZUao43Gy0aA2b0i0e1KWOQWrFvfq6oGtM9ENkNf6/2d8l+u7LsYUWOPf3u54PWJ7w==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-lists",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-schedule",
|
|
35
35
|
"/@syncfusion/ej2-vue-lists"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-20.4.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-20.4.48.tgz",
|
|
38
|
+
"_shasum": "6a48873abe498b8543d60051615ae1a2120c036c",
|
|
39
39
|
"_spec": "@syncfusion/ej2-lists@*",
|
|
40
40
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@syncfusion/ej2-base": "~20.4.48",
|
|
47
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
47
|
+
"@syncfusion/ej2-buttons": "~20.4.50",
|
|
48
48
|
"@syncfusion/ej2-data": "~20.4.48"
|
|
49
49
|
},
|
|
50
50
|
"deprecated": false,
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/lists"
|
|
86
86
|
},
|
|
87
87
|
"typings": "index.d.ts",
|
|
88
|
-
"version": "20.4.
|
|
88
|
+
"version": "20.4.50",
|
|
89
89
|
"sideEffects": false,
|
|
90
90
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
91
91
|
}
|
|
@@ -1363,7 +1363,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
1363
1363
|
if (this.enableVirtualization) {
|
|
1364
1364
|
if (Object.keys(this.dataSource).length) {
|
|
1365
1365
|
if ((this.template || this.groupTemplate) && !this.virtualizationModule.isNgTemplate()) {
|
|
1366
|
-
if (this.isReact) {
|
|
1366
|
+
if (this.isReact || this.isVue) {
|
|
1367
1367
|
if (typeof this.template == "string") {
|
|
1368
1368
|
this.listBaseOption.template = null;
|
|
1369
1369
|
}
|
|
@@ -37,6 +37,12 @@ export declare class Virtualization {
|
|
|
37
37
|
* @private
|
|
38
38
|
*/
|
|
39
39
|
isNgTemplate(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if the platform is a Vue and its template property is a function type.
|
|
42
|
+
*
|
|
43
|
+
* @returns {boolean} indicating the result of the check
|
|
44
|
+
*/
|
|
45
|
+
private isVueFunctionTemplate;
|
|
40
46
|
/**
|
|
41
47
|
* For internal use only.
|
|
42
48
|
*
|
|
@@ -79,6 +85,14 @@ export declare class Virtualization {
|
|
|
79
85
|
private textProperty;
|
|
80
86
|
reRenderUiVirtualization(): void;
|
|
81
87
|
private updateUI;
|
|
88
|
+
/**
|
|
89
|
+
* Handles the UI change in vue for the list view.
|
|
90
|
+
*
|
|
91
|
+
* @param {DataSource} newData - The new data source for the list view.
|
|
92
|
+
* @param {ElementContext} listElement - The HTML element context for the list view.
|
|
93
|
+
* @param {Virtualization} virtualThis - The virtualization context for the list view.
|
|
94
|
+
*/
|
|
95
|
+
private onVuechange;
|
|
82
96
|
private onNgChange;
|
|
83
97
|
getModuleName(): string;
|
|
84
98
|
destroy(): void;
|
|
@@ -17,6 +17,14 @@ var Virtualization = /** @class */ (function () {
|
|
|
17
17
|
Virtualization.prototype.isNgTemplate = function () {
|
|
18
18
|
return !isNullOrUndefined(this.listViewInstance.templateRef) && typeof this.listViewInstance.templateRef !== 'string';
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Checks if the platform is a Vue and its template property is a function type.
|
|
22
|
+
*
|
|
23
|
+
* @returns {boolean} indicating the result of the check
|
|
24
|
+
*/
|
|
25
|
+
Virtualization.prototype.isVueFunctionTemplate = function () {
|
|
26
|
+
return this.listViewInstance.isVue && typeof this.listViewInstance.template === 'function';
|
|
27
|
+
};
|
|
20
28
|
/**
|
|
21
29
|
* For internal use only.
|
|
22
30
|
*
|
|
@@ -809,10 +817,14 @@ var Virtualization = /** @class */ (function () {
|
|
|
809
817
|
this.listViewInstance.template = div.innerHTML;
|
|
810
818
|
}
|
|
811
819
|
}
|
|
820
|
+
if (this.isVueFunctionTemplate())
|
|
821
|
+
return;
|
|
812
822
|
template.innerHTML = this.listViewInstance.template;
|
|
813
823
|
this.listViewInstance.template = virtualTemplate;
|
|
814
824
|
}
|
|
815
825
|
else {
|
|
826
|
+
if (this.isVueFunctionTemplate())
|
|
827
|
+
return;
|
|
816
828
|
template.innerHTML = this.listViewInstance.template || commonTemplate;
|
|
817
829
|
}
|
|
818
830
|
// eslint-disable-next-line
|
|
@@ -1095,7 +1107,7 @@ var Virtualization = /** @class */ (function () {
|
|
|
1095
1107
|
};
|
|
1096
1108
|
Virtualization.prototype.updateUI = function (element, index, targetElement) {
|
|
1097
1109
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1098
|
-
var onChange = this.isNgTemplate() ? this.onNgChange : this.onChange;
|
|
1110
|
+
var onChange = this.isNgTemplate() ? this.onNgChange : (this.isVueFunctionTemplate()) ? this.onVuechange : this.onChange;
|
|
1099
1111
|
if (this.listViewInstance.template || this.listViewInstance.groupTemplate) {
|
|
1100
1112
|
var curViewDS = this.listViewInstance.curViewDS[index];
|
|
1101
1113
|
// eslint-disable-next-line
|
|
@@ -1112,6 +1124,22 @@ var Virtualization = /** @class */ (function () {
|
|
|
1112
1124
|
this.listViewInstance.ulElement.insertBefore(element, targetElement);
|
|
1113
1125
|
}
|
|
1114
1126
|
};
|
|
1127
|
+
/**
|
|
1128
|
+
* Handles the UI change in vue for the list view.
|
|
1129
|
+
*
|
|
1130
|
+
* @param {DataSource} newData - The new data source for the list view.
|
|
1131
|
+
* @param {ElementContext} listElement - The HTML element context for the list view.
|
|
1132
|
+
* @param {Virtualization} virtualThis - The virtualization context for the list view.
|
|
1133
|
+
*/
|
|
1134
|
+
Virtualization.prototype.onVuechange = function (newData, listElement, virtualThis) {
|
|
1135
|
+
var liItem = ListBase.createListItemFromJson(virtualThis.listViewInstance.createElement,
|
|
1136
|
+
// eslint-disable-next-line
|
|
1137
|
+
[newData], virtualThis.listViewInstance.listBaseOption, null, null, virtualThis.listViewInstance);
|
|
1138
|
+
while (listElement.lastChild) {
|
|
1139
|
+
listElement.removeChild(listElement.lastChild);
|
|
1140
|
+
}
|
|
1141
|
+
listElement.appendChild(liItem[0].firstChild);
|
|
1142
|
+
};
|
|
1115
1143
|
Virtualization.prototype.onNgChange = function (newData, listElement, virtualThis) {
|
|
1116
1144
|
// compile given target element with template for new data
|
|
1117
1145
|
// eslint-disable-next-line
|
package/src/sortable/sortable.js
CHANGED
|
@@ -225,7 +225,7 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
225
225
|
_this.target = null;
|
|
226
226
|
_this.curTarget = null;
|
|
227
227
|
remove(e.helper);
|
|
228
|
-
getComponent(_this.element,
|
|
228
|
+
getComponent(_this.element, 'draggable').intDestroy(e.event);
|
|
229
229
|
};
|
|
230
230
|
_this.bind();
|
|
231
231
|
return _this;
|