@syncfusion/ej2-lists
Advanced tools
Comparing version 20.4.48 to 20.4.50
@@ -5,2 +5,4 @@ # Changelog | ||
## 20.4.48 (2023-02-01) | ||
### ListView | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 20.4.48 | ||
* version : 20.4.50 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-lists@*", | ||
"_id": "@syncfusion/ej2-lists@20.4.42", | ||
"_id": "@syncfusion/ej2-lists@20.4.48", | ||
"_inBundle": false, | ||
"_integrity": "sha512-2La83YlYGEdCGj7rnTKtbpy/KwSY5hTMHZsgO9RBFu+sgqQvSioVITbYbr7M4RnyaYowC4oZ4on8kD9ZvFtQyA==", | ||
"_integrity": "sha512-sixUnbQ4O3qCrAVZsBnjwZUao43Gy0aA2b0i0e1KWOQWrFvfq6oGtM9ENkNf6/2d8l+u7LsYUWOPf3u54PWJ7w==", | ||
"_location": "/@syncfusion/ej2-lists", | ||
@@ -37,4 +37,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-20.4.42.tgz", | ||
"_shasum": "3d1612610d03d1797fe903ec06ebd6bebac4b5b6", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-20.4.48.tgz", | ||
"_shasum": "6a48873abe498b8543d60051615ae1a2120c036c", | ||
"_spec": "@syncfusion/ej2-lists@*", | ||
@@ -48,3 +48,3 @@ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included", | ||
"@syncfusion/ej2-base": "~20.4.48", | ||
"@syncfusion/ej2-buttons": "~20.4.48", | ||
"@syncfusion/ej2-buttons": "~20.4.50", | ||
"@syncfusion/ej2-data": "~20.4.48" | ||
@@ -90,5 +90,5 @@ }, | ||
"typings": "index.d.ts", | ||
"version": "20.4.48", | ||
"version": "20.4.50", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -41,2 +41,8 @@ import { ListView, ItemCreatedArgs, Fields, UISelectedItem } from './list-view'; | ||
/** | ||
* Checks if the platform is a Vue and its template property is a function type. | ||
* | ||
* @returns {boolean} indicating the result of the check | ||
*/ | ||
private isVueFunctionTemplate; | ||
/** | ||
* For internal use only. | ||
@@ -83,2 +89,10 @@ * | ||
private updateUI; | ||
/** | ||
* Handles the UI change in vue for the list view. | ||
* | ||
* @param {DataSource} newData - The new data source for the list view. | ||
* @param {ElementContext} listElement - The HTML element context for the list view. | ||
* @param {Virtualization} virtualThis - The virtualization context for the list view. | ||
*/ | ||
private onVuechange; | ||
private onNgChange; | ||
@@ -85,0 +99,0 @@ getModuleName(): string; |
@@ -21,2 +21,10 @@ import { classNames } from './list-view'; | ||
/** | ||
* Checks if the platform is a Vue and its template property is a function type. | ||
* | ||
* @returns {boolean} indicating the result of the check | ||
*/ | ||
Virtualization.prototype.isVueFunctionTemplate = function () { | ||
return this.listViewInstance.isVue && typeof this.listViewInstance.template === 'function'; | ||
}; | ||
/** | ||
* For internal use only. | ||
@@ -813,2 +821,4 @@ * | ||
} | ||
if (this.isVueFunctionTemplate()) | ||
return; | ||
template.innerHTML = this.listViewInstance.template; | ||
@@ -818,2 +828,4 @@ this.listViewInstance.template = virtualTemplate; | ||
else { | ||
if (this.isVueFunctionTemplate()) | ||
return; | ||
template.innerHTML = this.listViewInstance.template || commonTemplate; | ||
@@ -1101,3 +1113,3 @@ } | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
var onChange = this.isNgTemplate() ? this.onNgChange : this.onChange; | ||
var onChange = this.isNgTemplate() ? this.onNgChange : (this.isVueFunctionTemplate()) ? this.onVuechange : this.onChange; | ||
if (this.listViewInstance.template || this.listViewInstance.groupTemplate) { | ||
@@ -1119,2 +1131,18 @@ var curViewDS = this.listViewInstance.curViewDS[index]; | ||
}; | ||
/** | ||
* Handles the UI change in vue for the list view. | ||
* | ||
* @param {DataSource} newData - The new data source for the list view. | ||
* @param {ElementContext} listElement - The HTML element context for the list view. | ||
* @param {Virtualization} virtualThis - The virtualization context for the list view. | ||
*/ | ||
Virtualization.prototype.onVuechange = function (newData, listElement, virtualThis) { | ||
var liItem = ListBase.createListItemFromJson(virtualThis.listViewInstance.createElement, | ||
// eslint-disable-next-line | ||
[newData], virtualThis.listViewInstance.listBaseOption, null, null, virtualThis.listViewInstance); | ||
while (listElement.lastChild) { | ||
listElement.removeChild(listElement.lastChild); | ||
} | ||
listElement.appendChild(liItem[0].firstChild); | ||
}; | ||
Virtualization.prototype.onNgChange = function (newData, listElement, virtualThis) { | ||
@@ -1121,0 +1149,0 @@ // compile given target element with template for new data |
@@ -228,3 +228,3 @@ var __extends = (this && this.__extends) || (function () { | ||
remove(e.helper); | ||
getComponent(_this.element, Draggable).intDestroy(e.event); | ||
getComponent(_this.element, 'draggable').intDestroy(e.event); | ||
}; | ||
@@ -231,0 +231,0 @@ _this.bind(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2928713
30807