@syncfusion/ej2-kanban
Advanced tools
Comparing version 19.2.56 to 19.2.60
@@ -9,2 +9,10 @@ # Changelog | ||
- `#I340470` - The issue with "Kanban `dataBound` event is not receiving `server-side` updated data" has been fixed. | ||
## 19.2.56 (2021-08-17) | ||
### Kanban | ||
#### Bug Fixes | ||
- `#I331403` - The issue with "Kanban is not rendering properly when the data does not have the `keyField` mapping key" has been fixed. | ||
@@ -11,0 +19,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 19.2.56 | ||
* version : 19.2.60 | ||
* 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-kanban@*", | ||
"_id": "@syncfusion/ej2-kanban@19.2.55", | ||
"_id": "@syncfusion/ej2-kanban@19.2.56", | ||
"_inBundle": false, | ||
"_integrity": "sha512-k5uKy/UX7Toxq74yQS1LbmKjYU0gAmcJu7X9u9cszvua8runpRYxmdUDO3BfK+ZFu0mn/WaYZlIWEYpGfj+HDg==", | ||
"_integrity": "sha512-hGLwkcMZJS2KjzR1tiLuHzPXUfUOYMBGMyAtRZb4xg5IWaqsbLIs0DjM2wiY+D0a7QELkR9Ca9hXm24J//7mQQ==", | ||
"_location": "/@syncfusion/ej2-kanban", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-kanban/-/ej2-kanban-19.2.55.tgz", | ||
"_shasum": "1c813f5e7f71e41b0a8fecbc4a8a9fed3428875d", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-kanban/-/ej2-kanban-19.2.56.tgz", | ||
"_shasum": "64fb03d3d3e03969b95bc4bd7ddc6b1dded16d70", | ||
"_spec": "@syncfusion/ej2-kanban@*", | ||
@@ -39,10 +39,10 @@ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~19.2.55", | ||
"@syncfusion/ej2-buttons": "~19.2.55", | ||
"@syncfusion/ej2-data": "~19.2.55", | ||
"@syncfusion/ej2-dropdowns": "~19.2.56", | ||
"@syncfusion/ej2-inputs": "~19.2.55", | ||
"@syncfusion/ej2-layouts": "~19.2.55", | ||
"@syncfusion/ej2-navigations": "~19.2.56", | ||
"@syncfusion/ej2-popups": "~19.2.56" | ||
"@syncfusion/ej2-base": "~19.2.60", | ||
"@syncfusion/ej2-buttons": "~19.2.60", | ||
"@syncfusion/ej2-data": "~19.2.60", | ||
"@syncfusion/ej2-dropdowns": "~19.2.60", | ||
"@syncfusion/ej2-inputs": "~19.2.60", | ||
"@syncfusion/ej2-layouts": "~19.2.60", | ||
"@syncfusion/ej2-navigations": "~19.2.60", | ||
"@syncfusion/ej2-popups": "~19.2.60" | ||
}, | ||
@@ -75,4 +75,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "19.2.56", | ||
"version": "19.2.60", | ||
"sideEffects": false | ||
} |
@@ -85,2 +85,3 @@ import { DataManager, Query } from '@syncfusion/ej2-data'; | ||
updateDataManager(updateType: string, params: SaveChanges, type: string, data: Record<string, any>, index?: number): void; | ||
private modifyArrayData; | ||
/** | ||
@@ -87,0 +88,0 @@ * The function is used to refresh the UI once the datamanager action is completed |
@@ -164,2 +164,26 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
dataManager.then(function (e) { return _this.dataManagerSuccess(e, 'DataSourceChange'); }).catch(function (e) { return _this.dataManagerFailure(e); }); | ||
if (offlineArgs.requestType === "cardCreated") { | ||
if (!Array.isArray(e)) { | ||
offlineArgs.addedRecords[0] = extend(offlineArgs.addedRecords[0], e); | ||
} | ||
else { | ||
_this.modifyArrayData(offlineArgs.addedRecords, e); | ||
} | ||
} | ||
else if (offlineArgs.requestType === "cardChanged") { | ||
if (!Array.isArray(e)) { | ||
offlineArgs.changedRecords[0] = extend(offlineArgs.changedRecords[0], e); | ||
} | ||
else { | ||
_this.modifyArrayData(offlineArgs.changedRecords, e); | ||
} | ||
} | ||
else if (offlineArgs.requestType === "cardRemoved") { | ||
if (!Array.isArray(e)) { | ||
offlineArgs.deletedRecords[0] = extend(offlineArgs.deletedRecords[0], e); | ||
} | ||
else { | ||
_this.modifyArrayData(offlineArgs.deletedRecords, e); | ||
} | ||
} | ||
_this.refreshUI(offlineArgs, index); | ||
@@ -173,2 +197,10 @@ }).catch(function (e) { | ||
}; | ||
Data.prototype.modifyArrayData = function (onLineData, e) { | ||
if (onLineData.length === e.length) { | ||
for (var i = 0; i < e.length; i++) { | ||
onLineData[i] = extend(onLineData[i], e[i]); | ||
} | ||
} | ||
return onLineData; | ||
}; | ||
/** | ||
@@ -215,3 +247,3 @@ * The function is used to refresh the UI once the datamanager action is completed | ||
this.parent.notify(events.contentReady, {}); | ||
this.parent.trigger(events.dataBound, null, function () { return _this.parent.hideSpinner(); }); | ||
this.parent.trigger(events.dataBound, args, function () { return _this.parent.hideSpinner(); }); | ||
}; | ||
@@ -218,0 +250,0 @@ return Data; |
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
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
3309366
38097