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
239
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 17.4.41 to 17.4.43

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### TreeGrid
#### Bug Fixes
- `#258560`- Fixed issue in alignment of newly added child record when auto increment column is used for primary key column.
## 17.4.40 (2019-12-24)

@@ -7,0 +13,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 17.4.41
* version : 17.4.43
* Copyright Syncfusion Inc. 2001 - 2019. 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@17.4.40",
"_id": "@syncfusion/ej2-treegrid@17.4.41",
"_inBundle": false,
"_integrity": "sha512-BgWuxjuSgRMNb/sDDrZwA6CuLUjl45UW7CXilvbWnGrMNaAsRSCkSnTQUHcToXYCxDXrPNTy5JVqoQoy9X4qZQ==",
"_integrity": "sha512-Izw5bT/fMujVLlxsFPQGRw/kc1BlMsAE56BYCubzw8qZaIJAQV/V/ixaxqyS+g5YtdzzjGL3efAblI17/67nww==",
"_location": "/@syncfusion/ej2-treegrid",

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

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.4.40.tgz",
"_shasum": "fe6c5c7db1e088527ba7e3f5be5d67dfe25e13f7",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.4.41.tgz",
"_shasum": "ed16604fca7256e607783d052b64312c4360e9e7",
"_spec": "@syncfusion/ej2-treegrid@*",

@@ -40,6 +40,6 @@ "_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~17.4.41",
"@syncfusion/ej2-data": "~17.4.41",
"@syncfusion/ej2-grids": "~17.4.41",
"@syncfusion/ej2-popups": "~17.4.39"
"@syncfusion/ej2-base": "~17.4.43",
"@syncfusion/ej2-data": "~17.4.43",
"@syncfusion/ej2-grids": "~17.4.43",
"@syncfusion/ej2-popups": "~17.4.43"
},

@@ -65,4 +65,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "17.4.41",
"version": "17.4.43",
"sideEffects": false
}

@@ -22,2 +22,3 @@ import { TreeGrid } from '../base';

removeEventListener(): void;
private setIndentVisibility;
private dataBoundArg;

@@ -24,0 +25,0 @@ private childRowExpand;

@@ -28,2 +28,3 @@ import { Grid, getObject } from '@syncfusion/ej2-grids';

this.parent.on('detaildataBound', this.detaildataBound, this);
this.parent.grid.on('detail-indentcell-info', this.setIndentVisibility, this);
this.parent.on('childRowExpand', this.childRowExpand, this);

@@ -45,3 +46,8 @@ this.parent.on('rowExpandCollapse', this.rowExpandCollapse, this);

this.parent.off('actioncomplete', this.actioncomplete);
this.parent.grid.off('detail-indentcell-info', this.setIndentVisibility);
};
DetailRow.prototype.setIndentVisibility = function (args) {
var visible = 'visible';
args[visible] = false;
};
DetailRow.prototype.dataBoundArg = function () {

@@ -48,0 +54,0 @@ var detailele = this.parent.getRows().filter(function (e) {

@@ -358,3 +358,2 @@ import { isNullOrUndefined, removeClass, isBlazor } from '@syncfusion/ej2-base';

Selection.prototype.updateGridActions = function (args) {
var _this = this;
var requestType = args.requestType;

@@ -400,10 +399,10 @@ var childData;

this.parent.getCurrentViewRecords() : this.parent.flatData;
childData.forEach(function (record) {
if (record.hasChildRecords) {
_this.updateParentSelection(record);
for (var i = 0; i < childData.length; i++) {
if (childData[i].hasChildRecords) {
this.updateParentSelection(childData[i]);
}
else {
_this.updateSelectedItems(record, record.checkboxState);
this.updateSelectedItems(childData[i], childData[i].checkboxState);
}
});
}
this.headerSelection();

@@ -410,0 +409,0 @@ }

@@ -143,3 +143,2 @@ import { Query, DataManager } from '@syncfusion/ej2-data';

Aggregate.prototype.getSummaryValues = function (summaryColumn, summaryData) {
var _this = this;
var qry = new Query();

@@ -162,13 +161,13 @@ var single;

types = [summaryColumn.type];
types.forEach(function (type) {
summaryKey = type;
var key = summaryColumn.field + ' - ' + type.toLowerCase();
var val = type !== 'Custom' ? getObject('aggregates', sumData) :
calculateAggregate(type, sumData, summaryColumn, _this.parent);
for (var i = 0; i < types.length; i++) {
summaryKey = types[i];
var key = summaryColumn.field + ' - ' + types[i].toLowerCase();
var val = types[i] !== 'Custom' ? getObject('aggregates', sumData) :
calculateAggregate(types[i], sumData, summaryColumn, this.parent);
var disp = summaryColumn.columnName;
var value = type !== 'Custom' ? val[key] : val;
var value_1 = types[i] !== 'Custom' ? val[key] : val;
single[disp] = single[disp] || {};
single[disp][key] = value;
single[disp][type] = !isNullOrUndefined(val) ? formatFn(value) : ' ';
});
single[disp][key] = value_1;
single[disp][types[i]] = !isNullOrUndefined(val) ? formatFn(value_1) : ' ';
}
helper.format = summaryColumn.getFormatter();

@@ -175,0 +174,0 @@ var cellElement = createElement('td', {

@@ -387,4 +387,12 @@ import { extend, isNullOrUndefined, setValue, getValue, isBlazor, addClass, removeClass } from '@syncfusion/ej2-base';

var action = getObject('action', args);
var actionAddArgs = actionArgs;
var primaryKeyColumnName = this.parent.getPrimaryKeyFieldNames()[0];
var dataValue = getObject('data', actionAddArgs);
if ((!isNullOrUndefined(actionAddArgs)) && (!isNullOrUndefined(actionAddArgs.action)) && (actionAddArgs.action === 'add')
&& (!isNullOrUndefined(actionAddArgs.data)) && isNullOrUndefined(actionAddArgs.data[primaryKeyColumnName])) {
actionAddArgs.data[primaryKeyColumnName] = args.result[actionAddArgs.index][primaryKeyColumnName];
dataValue.taskData[primaryKeyColumnName] = args.result[actionAddArgs.index][primaryKeyColumnName];
}
if ((!isNullOrUndefined(actionArgs) && Object.keys(actionArgs).length) || requestType === 'save') {
requestType = requestType ? requestType : actionArgs.requestType.toString();
requestType = requestType ? requestType : actionArgs.requestType;
actionData = actionData ? actionData : getObject('data', actionArgs);

@@ -391,0 +399,0 @@ action = action ? action : getObject('action', actionArgs);

import { Column } from '../models/column';
import { SaveEventArgs, DataStateChangeEventArgs } from '@syncfusion/ej2-grids';
import { SaveEventArgs, DataStateChangeEventArgs as GridDataStateChangeEventArgs } from '@syncfusion/ej2-grids';
/**

@@ -138,3 +138,3 @@ * Specifies FlatData interfaces.

}
export interface DataStateChangeEventArgs extends DataStateChangeEventArgs {
export interface DataStateChangeEventArgs extends GridDataStateChangeEventArgs {
/** Defines the child records for the respective parent row */

@@ -141,0 +141,0 @@ childData?: ITreeData[];

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

import { Collection, Property, ChildProperty } from '@syncfusion/ej2-base';import { ICustomOptr, FilterBarMode, FilterType, PredicateModel } from '@syncfusion/ej2-grids';import { FilterHierarchyMode } from '../enum';
import { Collection, Property, ChildProperty } from '@syncfusion/ej2-base';import { ICustomOptr, FilterBarMode, FilterType, PredicateModel as GridPredicateModel } from '@syncfusion/ej2-grids';import { FilterHierarchyMode } from '../enum';

@@ -146,3 +146,3 @@ /**

*/
columns?: PredicateModel[];
columns?: GridPredicateModel[];

@@ -149,0 +149,0 @@ /**

import { ChildProperty } from '@syncfusion/ej2-base';
import { ICustomOptr, FilterBarMode, FilterType, PredicateModel } from '@syncfusion/ej2-grids';
import { ICustomOptr, FilterBarMode, FilterType, PredicateModel as GridPredicateModel } from '@syncfusion/ej2-grids';
import { FilterHierarchyMode } from '../enum';

@@ -132,3 +132,3 @@ /**

*/
columns: PredicateModel[];
columns: GridPredicateModel[];
/**

@@ -135,0 +135,0 @@ * Defines options for filtering type. The available options are

@@ -82,3 +82,3 @@ var __extends = (this && this.__extends) || (function () {

getValue('observer', this).options.debounceEvent = false;
this.observers = new TreeInterSectionObserver(getValue('observer', this).element, getValue('observer', this).options);
this.observers = new TreeInterSectionObserver(this.parent, getValue('observer', this).element, getValue('observer', this).options);
this.contents = this.getPanel().firstChild;

@@ -85,0 +85,0 @@ };

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

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