Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-treegrid

Package Overview
Dependencies
Maintainers
3
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-treegrid - npm Package Compare versions

Comparing version 18.4.30 to 18.4.31

11

CHANGELOG.md

@@ -7,2 +7,13 @@ # Changelog

#### Bug Fixes
- `#301365`- Template rendering for the tree column works fine.
- `#304800`- Exporting of data while using `RemoteSaveAdaptor` works fine.
- `#306549`- Expand collapse of multiple levels of the same parent works fine while using custom binding.
- `#307187`- Hierarchy level maintains properly while perform drag and drop between Tree Grid in self-referential data binding.
## 18.4.30 (2020-12-17)
### TreeGrid
#### New Features

@@ -9,0 +20,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 18.4.30
* version : 18.4.31
* 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-treegrid@*",
"_id": "@syncfusion/ej2-treegrid@18.2.44",
"_id": "@syncfusion/ej2-treegrid@18.4.30",
"_inBundle": false,
"_integrity": "sha512-HvjUq8IY0Sozxq1Jek3Io3iwGd7slh9ksWhrX+i+QS7OMy1TkblNWk2hBh65fg8TgFlyZAw8fyFqh1CaFi21Bg==",
"_integrity": "sha512-lZ0twH3xql+aRYi7pRj5iTuTbl7/jZZ5KuJZWHL2l4RZhqeIt8XxKumLfE1lkXux6apeo7FumNMS8z3KFxccTg==",
"_location": "/@syncfusion/ej2-treegrid",

@@ -27,4 +27,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-18.2.44.tgz",
"_shasum": "af3cef1c174f437de3cb84f9dee6439bbff06bd4",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-treegrid/-/ej2-treegrid-18.4.30.tgz",
"_shasum": "82479c2335b4a81ac60f1469fd0c4a2fdc706b7b",
"_spec": "@syncfusion/ej2-treegrid@*",

@@ -40,5 +40,5 @@ "_where": "/jenkins/workspace/automation_release_18.4.0.1-WOJ6QVY6EU5ONBWOYGQFKS2VU2UW7E67MOXUPKCE5AX7QQX7M5JQ/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~18.4.30",
"@syncfusion/ej2-base": "~18.4.31",
"@syncfusion/ej2-data": "~18.4.30",
"@syncfusion/ej2-grids": "~18.4.30",
"@syncfusion/ej2-grids": "~18.4.31",
"@syncfusion/ej2-popups": "~18.4.30"

@@ -65,4 +65,4 @@ },

"typings": "index.d.ts",
"version": "18.4.30",
"version": "18.4.31",
"sideEffects": false
}

@@ -1,2 +0,2 @@

import { isNullOrUndefined, extend, getValue } from '@syncfusion/ej2-base';
import { isNullOrUndefined, extend, getValue, isBlazor } from '@syncfusion/ej2-base';
import { DataManager } from '@syncfusion/ej2-data';

@@ -76,3 +76,9 @@ import { extendArray, getPlainData, getParentData } from '../utils';

if (editedData && editedData.taskData) {
editedData.taskData[keys[j]] = editedData[keys[j]] = treeData[i][keys[j]];
if (isBlazor()) {
editedData.taskData[keys[j]] = editedData[keys[j]]
= control.grid.currentViewData[i][keys[j]] = treeData[i][keys[j]];
}
else {
editedData.taskData[keys[j]] = editedData[keys[j]] = treeData[i][keys[j]];
}
}

@@ -79,0 +85,0 @@ }

@@ -68,3 +68,4 @@ import { getObject, Grid, ExcelExport as GridExcel } from '@syncfusion/ej2-grids';

return new Promise(function (resolve, reject) {
var dm = _this.isLocal() ? new DataManager(dataSource) : _this.parent.dataSource;
var dm = _this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
: _this.parent.dataSource;
var query = new Query();

@@ -71,0 +72,0 @@ if (!_this.isLocal()) {

@@ -152,3 +152,4 @@ import { Grid } from '@syncfusion/ej2-grids';

var visualData = void 0;
if (isFilterChildHierarchy(this.parent)) {
if (isFilterChildHierarchy(this.parent) && ((this.parent.searchSettings.key !== this.parent.grid.searchSettings.key) ||
(this.parent.filterSettings.columns.length !== this.parent.grid.filterSettings.columns.length))) {
visualData = parents_1;

@@ -155,0 +156,0 @@ }

@@ -64,3 +64,3 @@ import { getObject, PdfExport as GridPdf, Grid } from '@syncfusion/ej2-grids';

return new Promise(function (resolve, reject) {
var dm = isLocal ? new DataManager(dtSrc) : _this.parent.dataSource;
var dm = isLocal && !(dtSrc instanceof DataManager) ? new DataManager(dtSrc) : _this.parent.dataSource;
var query = new Query();

@@ -67,0 +67,0 @@ if (!isLocal) {

@@ -116,6 +116,8 @@ import { Grid, RowDD as GridDragDrop, parentsUntil } from '@syncfusion/ej2-grids';

if (index !== -1) {
parentRecord.childRecords.splice(index, 1);
if (!parentRecord.childRecords.length) {
parentRecord.hasChildRecords = false;
parentRecord.hasFilteredChildRecords = false;
if (isNullOrUndefined(this.parent.idMapping)) {
parentRecord.childRecords.splice(index, 1);
if (!parentRecord.childRecords.length) {
parentRecord.hasChildRecords = false;
parentRecord.hasFilteredChildRecords = false;
}
}

@@ -135,2 +137,5 @@ this.isDraggedWithChild = true;

var recordIndex1 = 0;
if (!isNullOrUndefined(tObj.parentIdMapping)) {
tObj.childMapping = null;
}
if (!isNullOrUndefined(draggedRecord_1.taskData) &&

@@ -609,2 +614,15 @@ !draggedRecord_1.taskData.hasOwnProperty(tObj.childMapping)) {

}
if (this.parent.idMapping != null && (isNullOrUndefined(this.dropPosition) || this.dropPosition === 'bottomSegment')) {
var actualData = [];
for (var i = 0; i < records.length; i++) {
if (records[i].hasChildRecords) {
actualData.push(records[i]);
var child = records[i].childRecords;
for (var i_1 = 0; i_1 < child.length; i_1++) {
actualData.push(child[i_1]); // push child records to drop the parent record along with its child records
}
records = actualData;
}
}
}
tObj.notify(events.rowsRemove, { indexes: indexes, records: records });

@@ -692,2 +710,5 @@ srcControl.notify(events.rowsAdd, { toIndex: targetIndex, records: records });

var dragLength = dragRecords.length;
if (!isNullOrUndefined(this.parent.idMapping)) {
dragRecords.reverse();
}
for (var i = 0; i < dragLength; i++) {

@@ -726,6 +747,3 @@ draggedRecord = dragRecords[i];

}
draggedRecord.parentItem = this.treeGridData[recordIndex1].parentItem;
draggedRecord.parentUniqueID = this.treeGridData[recordIndex1].parentUniqueID;
draggedRecord.level = this.treeGridData[recordIndex1].level;
if (draggedRecord.hasChildRecords) {
if (draggedRecord.hasChildRecords && isNullOrUndefined(this.parent.idMapping)) {
var level = 1;

@@ -992,10 +1010,10 @@ this.updateChildRecordLevel(draggedRecord, level);

}
for (var i_1 = 0; i_1 < treeGridData.length; i_1++) {
if (treeGridData[i_1][this.parent.idMapping] === currentRecord.taskData[this.parent.idMapping]) {
idx = i_1;
for (var i_2 = 0; i_2 < treeGridData.length; i_2++) {
if (treeGridData[i_2][this.parent.idMapping] === currentRecord.taskData[this.parent.idMapping]) {
idx = i_2;
}
}
for (var i_2 = 0; i_2 < this.treeGridData.length; i_2++) {
if (this.treeGridData[i_2][this.parent.idMapping] === currentRecord.taskData[this.parent.idMapping]) {
idz = i_2;
for (var i_3 = 0; i_3 < this.treeGridData.length; i_3++) {
if (this.treeGridData[i_3][this.parent.idMapping] === currentRecord.taskData[this.parent.idMapping]) {
idz = i_3;
break;

@@ -1002,0 +1020,0 @@ }

@@ -148,2 +148,5 @@ import { getObject, appendChildren } from '@syncfusion/ej2-grids';

}
else if (this.templateResult) {
this.templateResult = null;
}
if (this.parent.frozenColumns > this.parent.treeColumnIndex && this.parent.frozenColumns > 0 &&

@@ -150,0 +153,0 @@ grid.getColumnIndexByUid(args.column.uid) === this.parent.frozenColumns) {

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc