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

@syncfusion/ej2-treegrid

Package Overview
Dependencies
Maintainers
4
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.2.47 to 17.2.48-beta

65

CHANGELOG.md

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

#### Bug Fixes
- `#243953` - Filter works properly with Filter Settings and Search Settings.
## 17.2.46 (2019-08-22)
### TreeGrid
#### New Features
- `#231649` - Support for Row Drag and Drop has been provided that allows to reorder rows within grid and also to drag and drop rows between two treegrid.
- Checkbox selection support has been provided that allows users to select rows using checkbox.
- Checkbox Column support has been provided that allows users to check rows using checkbox in treegrid column.
## 17.2.41 (2019-08-14)
### TreeGrid
#### Bug Fixes
- `#243065` - `expandAll` and `collapseAll` method works fine for remote data with `loadChildOnDemand` property as true.
- Change detection for properties `dataSource` and `query` were handled for remote data.
- Edited records can be searched/filtered.
- Inner level records will be collapsed/expanded after filtering/searching actions.
## 17.2.40 (2019-08-06)
### TreeGrid
#### Bug Fixes
- `#146272` - Ellipsis works fine for tree-view column.
## 17.2.39 (2019-07-30)
### TreeGrid
#### Bug Fixes
- #145979 - `checkboxChange` event will trigger for header cell check.
- #240702 - `allowEditOnDblClick` works fine in Cell Edit mode.
#### Breaking Changes
- `checkboxChange` event will trigger after the cell checked.
## 17.2.35 (2019-07-17)
### TreeGrid
#### Bug Fixes
- `crudaction` works fine while performing crud actions with server-side.
## 17.2.28-beta (2019-06-27)
### TreeGrid
#### New Features
- Virtual Scrolling support has been provided in which the rows are added dynamically while scrolling.
- Detail Template support has been provided that provides additional information about a particular row.
#### Bug Fixes
- `collapseAll` method works fine with pageSize mode set to `All`.
#### Breaking Changes
- The default value of `enableHover` property has been changed from `true` to `false`.
## 17.1.1-beta (2019-01-29)

@@ -75,0 +20,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 17.2.47
* version : 17.2.48-beta
* 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.2.46",
"_id": "@syncfusion/ej2-treegrid@17.1.1",
"_inBundle": false,
"_integrity": "sha512-aQgncl1oO1z3xPiwgtEXBUDSFMYME7H5ZGKqNzRx2Q+Ymp92mwGYJTZVt/W5RVWeJJolQDzo4PjSJI0uoXiMnw==",
"_integrity": "sha512-BzgZuEuJKaLnplX+Nq9vr5VEk3DvELppbmYBrBJD1X4/gjOG7CwBfeX6gNTrGPP61HLO7+7qJkWcfM/4x/7pnQ==",
"_location": "/@syncfusion/ej2-treegrid",

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

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.2.46.tgz",
"_shasum": "2e589209d30e7d75a72401393b2fb257eecd2e4d",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-production/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.1.1.tgz",
"_shasum": "975ae29f6a2c6870bcffeb7359921636a4f06c6a",
"_spec": "@syncfusion/ej2-treegrid@*",
"_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included",
"_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included",
"author": {

@@ -40,6 +40,6 @@ "name": "Syncfusion Inc."

"dependencies": {
"@syncfusion/ej2-base": "~17.2.47",
"@syncfusion/ej2-data": "~17.2.47",
"@syncfusion/ej2-grids": "~17.2.47",
"@syncfusion/ej2-popups": "~17.2.47"
"@syncfusion/ej2-base": "17.2.48-beta",
"@syncfusion/ej2-data": "17.2.48-beta",
"@syncfusion/ej2-grids": "17.2.48-beta",
"@syncfusion/ej2-popups": "17.2.48-beta"
},

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

"typings": "index.d.ts",
"version": "17.2.47",
"version": "17.2.48-beta",
"sideEffects": false
}

@@ -1,16 +0,3 @@

var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Grid, ContextMenu as cmenu } from '@syncfusion/ej2-grids';
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
import { isNullOrUndefined } from '@syncfusion/ej2-base';
/**

@@ -22,3 +9,3 @@ * ContextMenu Module for TreeGrid

function ContextMenu(parent) {
Grid.Inject(TreeGridMenu);
Grid.Inject(cmenu);
this.parent = parent;

@@ -45,3 +32,2 @@ this.addEventListener();

ContextMenu.prototype.contextMenuOpen = function (args) {
this.parent.grid.notify('collectTreeGrid', { tree: this.parent });
var addRow = args.element.querySelector('#' + this.parent.element.id + '_gridcontrol_cmenu_AddRow');

@@ -93,46 +79,1 @@ var editRecord = args.element.querySelector('#' + this.parent.element.id + '_gridcontrol_cmenu_Edit');

export { ContextMenu };
var TreeGridMenu = /** @class */ (function (_super) {
__extends(TreeGridMenu, _super);
function TreeGridMenu() {
return _super !== null && _super.apply(this, arguments) || this;
}
TreeGridMenu.prototype.addEventListener = function () {
getValue('parent', this).on('collectTreeGrid', this.collectTreeGrid, this);
_super.prototype.addEventListener.call(this);
};
TreeGridMenu.prototype.collectTreeGrid = function (args) {
this.treegrid = args.tree;
};
TreeGridMenu.prototype.contextMenuItemClick = function (args) {
var item = getValue('getKeyFromId', this).apply(this, [args.item.id]);
var isPrevent = false;
switch (item) {
case 'PdfExport':
this.treegrid.pdfExport();
isPrevent = true;
break;
case 'ExcelExport':
this.treegrid.excelExport();
isPrevent = true;
break;
case 'CsvExport':
this.treegrid.csvExport();
isPrevent = true;
break;
case 'Save':
if (this.treegrid.editSettings.mode === 'Cell' && this.treegrid.grid.editSettings.mode === 'Batch') {
isPrevent = true;
this.treegrid.grid.editModule.saveCell();
}
}
if (!isPrevent) {
_super.prototype.contextMenuItemClick.call(this, args);
}
else {
args.column = getValue('targetColumn', this);
args.rowInfo = getValue('targetRowdata', this);
getValue('parent', this).trigger('contextMenuClick', args);
}
};
return TreeGridMenu;
}(cmenu));

@@ -112,5 +112,8 @@ import { getObject, Grid, ExcelExport as GridExcel } from '@syncfusion/ej2-grids';

}
if (property && property.dataSource) {
this.parent.dataModule.convertToFlatData(property.dataSource);
if (property && property.dataSource && this.isLocal()) {
var flatsData = this.parent.flatData;
var dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
this.parent.dataModule.convertToFlatData(dataSrc);
dtSrc = this.parent.flatData;
this.parent.flatData = flatsData;
}

@@ -117,0 +120,0 @@ property = isNullOrUndefined(property) ? Object() : property;

@@ -66,6 +66,5 @@ import { getObject, Filter as GridFilter, Grid } from '@syncfusion/ej2-grids';

this.addParentRecord(rec);
var hierarchyMode = this.parent.grid.searchSettings.key === '' ? this.parent.filterSettings.hierarchyMode
: this.parent.searchSettings.hierarchyMode;
if (((hierarchyMode === 'Child' || hierarchyMode === 'None') &&
(this.parent.grid.filterSettings.columns.length !== 0 || this.parent.grid.searchSettings.key !== ''))) {
if (this.parent.filterSettings.hierarchyMode === 'Child' ||
this.parent.filterSettings.hierarchyMode === 'None' || this.parent.searchSettings.hierarchyMode === 'Child' ||
this.parent.searchSettings.hierarchyMode === 'None') {
this.isHierarchyFilter = true;

@@ -93,6 +92,3 @@ }

//let parent: Object = this.parent.flatData.filter((e: ITreeData) => {return e.uniqueID === record.parentUniqueID; })[0];
var hierarchyMode = this.parent.grid.searchSettings.key === '' ? this.parent.filterSettings.hierarchyMode
: this.parent.searchSettings.hierarchyMode;
if (hierarchyMode === 'None' && (this.parent.grid.filterSettings.columns.length !== 0
|| this.parent.grid.searchSettings.key !== '')) {
if (this.parent.filterSettings.hierarchyMode === 'None' || this.parent.searchSettings.hierarchyMode === 'None') {
if (isNullOrUndefined(parent)) {

@@ -126,6 +122,4 @@ if (this.flatFilteredData.indexOf(record) !== -1) {

if (!isNullOrUndefined(parent)) {
var hierarchyMode_1 = this.parent.grid.searchSettings.key === '' ?
this.parent.filterSettings.hierarchyMode : this.parent.searchSettings.hierarchyMode;
if (hierarchyMode_1 === 'Child' && (this.parent.grid.filterSettings.columns.length !== 0
|| this.parent.grid.searchSettings.key !== '')) {
if (this.parent.filterSettings.hierarchyMode === 'Child'
|| this.parent.searchSettings.hierarchyMode === 'Child') {
if (this.flatFilteredData.indexOf(parent) !== -1) {

@@ -150,6 +144,4 @@ this.addParentRecord(parent);

var ischild = childRec[count].childRecords;
var hierarchyMode = this.parent.grid.searchSettings.key === '' ?
this.parent.filterSettings.hierarchyMode : this.parent.searchSettings.hierarchyMode;
if (((hierarchyMode === 'Child' || hierarchyMode === 'Both') && (this.parent.grid.filterSettings.columns.length !== 0
|| this.parent.grid.searchSettings.key !== ''))) {
if ((this.parent.filterSettings.hierarchyMode === 'Child' || this.parent.filterSettings.hierarchyMode === 'Both') ||
(this.parent.searchSettings.hierarchyMode === 'Child' || this.parent.searchSettings.hierarchyMode === 'Both')) {
var uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);

@@ -162,5 +154,4 @@ if (!uniqueIDValue.hasOwnProperty(childRec[count].uniqueID)) {

}
if ((hierarchyMode === 'None')
&& (this.parent.grid.filterSettings.columns.length !== 0 || this.parent.grid.searchSettings.key !== '')) {
if (this.flatFilteredData.indexOf(childRec[count]) !== -1) {
if (this.parent.filterSettings.hierarchyMode === 'None' || this.parent.searchSettings.hierarchyMode === 'None') {
if (this.flatFilteredData.indexOf(childRec[count] !== -1)) {
isExist = true;

@@ -167,0 +158,0 @@ break;

@@ -113,5 +113,8 @@ import { getObject, PdfExport as GridPdf, Grid } from '@syncfusion/ej2-grids';

}
if (prop && prop.dataSource) {
this.parent.dataModule.convertToFlatData(prop.dataSource);
if (prop && prop.dataSource && isLocal) {
var flatDatas = this.parent.flatData;
var dataSrc = prop.dataSource instanceof DataManager ? prop.dataSource.dataSource.json : prop.dataSource;
this.parent.dataModule.convertToFlatData(dataSrc);
dtSrc = this.parent.flatData;
this.parent.flatData = flatDatas;
}

@@ -118,0 +121,0 @@ prop = isNullOrUndefined(prop) ? {} : prop;

@@ -445,2 +445,3 @@ import { extend, isNullOrUndefined, setValue, getValue, isBlazor, addClass, removeClass } from '@syncfusion/ej2-base';

};
/* tslint:disable */
DataManipulation.prototype.paging = function (results, count, isExport, isPrinting, exportType, args) {

@@ -447,0 +448,0 @@ if (this.parent.allowPaging && (!isExport || exportType === 'CurrentPage')

@@ -721,3 +721,2 @@ import { Component, addClass, createElement, EventHandler, isNullOrUndefined, Ajax, ModuleDeclaration, extend} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs, isBlazor, getElement } from '@syncfusion/ej2-base';import {Event, Property, NotifyPropertyChanges, INotifyPropertyChanged, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';import { Column, ColumnModel } from '../models/column';import { GridModel, ColumnQueryModeType, HeaderCellInfoEventArgs, EditSettingsModel as GridEditModel } from '@syncfusion/ej2-grids';import {RowDragEventArgs, RowDropEventArgs, RowDropSettingsModel, RowDropSettings } from '@syncfusion/ej2-grids';import { ActionEventArgs } from'@syncfusion/ej2-grids';import { DetailDataBoundEventArgs, Row} from '@syncfusion/ej2-grids';import { SearchEventArgs, AddEventArgs, EditEventArgs, DeleteEventArgs} from '@syncfusion/ej2-grids';import { SaveEventArgs, CellSaveArgs, BatchAddArgs, BatchCancelArgs, BeginEditArgs, CellEditArgs} from '@syncfusion/ej2-grids';import { FilterSettings } from '../models/filter-settings';import { TextWrapSettings } from '../models/textwrap-settings';import { TextWrapSettingsModel } from '../models/textwrap-settings-model';import {Filter} from '../actions/filter';import {Aggregate} from '../actions/summary';import { Reorder } from '../actions/reorder';import { Resize } from '../actions/resize';import { Selection as TreeGridSelection } from '../actions/selection';import { ColumnMenu } from '../actions/column-menu';import { DetailRow } from '../actions/detail-row';import { Print } from '../actions/print';import * as events from '../base/constant';import { FilterSettingsModel } from '../models/filter-settings-model';import { SearchSettings} from '../models/search-settings';import { SearchSettingsModel } from '../models/search-settings-model';import {RowInfo, RowDataBoundEventArgs, PageEventArgs, FilterEventArgs, FailureEventArgs, SortEventArgs } from '@syncfusion/ej2-grids';import { RowSelectingEventArgs, RowSelectEventArgs, RowDeselectEventArgs, IIndex, ISelectedCell } from '@syncfusion/ej2-grids';import {ColumnModel as GridColumnModel, Column as GridColumn, CellSelectEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { SelectionSettings } from '../models/selection-settings';import { SelectionSettingsModel } from '../models/selection-settings-model';import {getActualProperties, SortDirection, getObject, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { PrintMode, Data, IGrid, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { ColumnMenuItem, ColumnMenuItemModel, CheckBoxChangeEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { PdfExportCompleteArgs, PdfHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportProperties, PdfExportProperties, CellSelectingEventArgs, PrintEventArgs } from '@syncfusion/ej2-grids';import { ColumnMenuOpenEventArgs } from '@syncfusion/ej2-grids';import {BeforeDataBoundArgs} from '@syncfusion/ej2-grids';import { DataManager, ReturnOption, RemoteSaveAdaptor, Query, JsonAdaptor, Deferred } from '@syncfusion/ej2-data';import { createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline, extendArray } from '../utils';import { Grid, QueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { Render } from '../renderer/render';import { DataManipulation } from './data';import { RowDD } from '../actions/rowdragdrop';import { Sort } from '../actions/sort';import { ITreeData, RowExpandedEventArgs, RowExpandingEventArgs, RowCollapsedEventArgs, RowCollapsingEventArgs } from './interface';import { CellSaveEventArgs } from './interface';import { iterateArrayOrObject, GridLine } from '@syncfusion/ej2-grids';import { DataSourceChangedEventArgs, DataStateChangeEventArgs, RecordDoubleClickEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { ToolbarItems, ToolbarItem, ContextMenuItem, ContextMenuItems, RowPosition } from '../enum';import { ItemModel, ClickEventArgs, BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations';import { PageSettings } from '../models/page-settings';import { PageSettingsModel } from '../models/page-settings-model';import { AggregateRow } from '../models/summary';import { AggregateRowModel } from '../models/summary-model';import { ExcelExport } from '../actions/excel-export';import { PdfExport } from '../actions/pdf-export';import { Toolbar } from '../actions/toolbar';import { Page } from '../actions/page';import { ContextMenu } from '../actions/context-menu';import { EditSettings } from '../models/edit-settings';import { EditSettingsModel } from '../models/edit-settings-model';import { Edit} from '../actions/edit';import { SortSettings } from '../models/sort-settings';import { SortSettingsModel } from '../models/sort-settings-model';

* @event
* @deprecated
*/

@@ -729,3 +728,2 @@ rowDragStart?: EmitType<RowDragEventArgs>;

* @event
* @deprecated
*/

@@ -737,3 +735,2 @@ rowDragStartHelper?: EmitType<RowDragEventArgs>;

* @event
* @deprecated
*/

@@ -740,0 +737,0 @@ rowDrop?: EmitType<RowDragEventArgs>;

@@ -759,3 +759,2 @@ import { Component, ModuleDeclaration } from '@syncfusion/ej2-base';

* @event
* @deprecated
*/

@@ -766,3 +765,2 @@ rowDragStart: EmitType<RowDragEventArgs>;

* @event
* @deprecated
*/

@@ -773,3 +771,2 @@ rowDragStartHelper: EmitType<RowDragEventArgs>;

* @event
* @deprecated
*/

@@ -776,0 +773,0 @@ rowDrop: EmitType<RowDragEventArgs>;

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

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

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

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

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

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

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