@syncfusion/ej2-treegrid
Advanced tools
Comparing version 17.2.48-beta to 17.2.49-beta
@@ -5,15 +5,72 @@ # Changelog | ||
## 17.2.47 (2019-08-27) | ||
### TreeGrid | ||
#### Bug Fixes | ||
- `#243953` - Filter works properly with Filter Settings and Search Settings. | ||
## 17.2.46 (2019-08-22) | ||
### TreeGrid | ||
#### New Features | ||
- 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. | ||
- `#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. | ||
## 17.2.41 (2019-08-14) | ||
### TreeGrid | ||
#### Bug Fixes | ||
- 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. | ||
- `#243065` - `expandAll` and `collapseAll` method works fine for remote data with `loadChildOnDemand` property as true. | ||
## 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) | ||
@@ -20,0 +77,0 @@ |
@@ -1,10 +0,1 @@ | ||
/*! | ||
* filename: index.d.ts | ||
* version : 17.2.48-beta | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
* A copy of the current license can be obtained at any time by e-mailing | ||
* licensing@syncfusion.com. Any infringement will be prosecuted under | ||
* applicable laws. | ||
*/ | ||
import * as _treegrid from '@syncfusion/ej2-treegrid'; | ||
@@ -11,0 +2,0 @@ |
{ | ||
"_from": "@syncfusion/ej2-treegrid@*", | ||
"_id": "@syncfusion/ej2-treegrid@17.1.1", | ||
"_inBundle": false, | ||
"_integrity": "sha512-BzgZuEuJKaLnplX+Nq9vr5VEk3DvELppbmYBrBJD1X4/gjOG7CwBfeX6gNTrGPP61HLO7+7qJkWcfM/4x/7pnQ==", | ||
"_location": "/@syncfusion/ej2-treegrid", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"type": "range", | ||
"registry": true, | ||
"raw": "@syncfusion/ej2-treegrid@*", | ||
"name": "@syncfusion/ej2-treegrid", | ||
"escapedName": "@syncfusion%2fej2-treegrid", | ||
"scope": "@syncfusion", | ||
"rawSpec": "*", | ||
"saveSpec": null, | ||
"fetchSpec": "*" | ||
}, | ||
"_requiredBy": [ | ||
"/", | ||
"/@syncfusion/ej2", | ||
"/@syncfusion/ej2-angular-treegrid", | ||
"/@syncfusion/ej2-gantt", | ||
"/@syncfusion/ej2-react-treegrid", | ||
"/@syncfusion/ej2-vue-treegrid" | ||
], | ||
"_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_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included", | ||
"author": { | ||
"name": "Syncfusion Inc." | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/syncfusion/ej2-treegrid/issues" | ||
}, | ||
"bundleDependencies": false, | ||
"dependencies": { | ||
"@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" | ||
}, | ||
"deprecated": false, | ||
"description": "Essential JS 2 TreeGrid Component", | ||
"devDependencies": {}, | ||
"es2015": "./dist/es6/ej2-treegrid.es2015.js", | ||
"homepage": "https://github.com/syncfusion/ej2-treegrid#readme", | ||
"keywords": [ | ||
"ej2", | ||
"syncfusion", | ||
"ej2-treegrid" | ||
], | ||
"license": "SEE LICENSE IN license", | ||
"main": "./dist/ej2-treegrid.umd.min.js", | ||
"module": "./index.js", | ||
"name": "@syncfusion/ej2-treegrid", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/syncfusion/ej2-treegrid.git" | ||
}, | ||
"typings": "index.d.ts", | ||
"version": "17.2.48-beta", | ||
"sideEffects": false | ||
"version": "17.2.49-beta", | ||
"description": "Essential JS 2 TreeGrid Component", | ||
"author": "Syncfusion Inc.", | ||
"license": "SEE LICENSE IN license", | ||
"main": "./dist/ej2-treegrid.umd.min.js", | ||
"module": "./index.js", | ||
"es2015": "./dist/es6/ej2-treegrid.es2015.js", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "17.2.49-beta", | ||
"@syncfusion/ej2-data": "17.2.49-beta", | ||
"@syncfusion/ej2-popups": "17.2.49-beta", | ||
"@syncfusion/ej2-grids": "17.2.49-beta" | ||
}, | ||
"devDependencies": {}, | ||
"keywords": [ | ||
"ej2", | ||
"syncfusion", | ||
"ej2-treegrid" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/syncfusion/ej2-treegrid.git" | ||
}, | ||
"typings": "index.d.ts" | ||
} |
@@ -0,3 +1,16 @@ | ||
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 } from '@syncfusion/ej2-base'; | ||
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base'; | ||
/** | ||
@@ -9,3 +22,3 @@ * ContextMenu Module for TreeGrid | ||
function ContextMenu(parent) { | ||
Grid.Inject(cmenu); | ||
Grid.Inject(TreeGridMenu); | ||
this.parent = parent; | ||
@@ -32,2 +45,3 @@ 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'); | ||
@@ -79,1 +93,46 @@ 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,8 +112,5 @@ import { getObject, Grid, ExcelExport as GridExcel } from '@syncfusion/ej2-grids'; | ||
} | ||
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); | ||
if (property && property.dataSource) { | ||
this.parent.dataModule.convertToFlatData(property.dataSource); | ||
dtSrc = this.parent.flatData; | ||
this.parent.flatData = flatsData; | ||
} | ||
@@ -120,0 +117,0 @@ property = isNullOrUndefined(property) ? Object() : property; |
@@ -66,5 +66,6 @@ import { getObject, Filter as GridFilter, Grid } from '@syncfusion/ej2-grids'; | ||
this.addParentRecord(rec); | ||
if (this.parent.filterSettings.hierarchyMode === 'Child' || | ||
this.parent.filterSettings.hierarchyMode === 'None' || this.parent.searchSettings.hierarchyMode === 'Child' || | ||
this.parent.searchSettings.hierarchyMode === 'None') { | ||
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 !== ''))) { | ||
this.isHierarchyFilter = true; | ||
@@ -92,3 +93,6 @@ } | ||
//let parent: Object = this.parent.flatData.filter((e: ITreeData) => {return e.uniqueID === record.parentUniqueID; })[0]; | ||
if (this.parent.filterSettings.hierarchyMode === 'None' || this.parent.searchSettings.hierarchyMode === 'None') { | ||
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 (isNullOrUndefined(parent)) { | ||
@@ -122,4 +126,6 @@ if (this.flatFilteredData.indexOf(record) !== -1) { | ||
if (!isNullOrUndefined(parent)) { | ||
if (this.parent.filterSettings.hierarchyMode === 'Child' | ||
|| this.parent.searchSettings.hierarchyMode === 'Child') { | ||
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.flatFilteredData.indexOf(parent) !== -1) { | ||
@@ -144,4 +150,6 @@ this.addParentRecord(parent); | ||
var ischild = childRec[count].childRecords; | ||
if ((this.parent.filterSettings.hierarchyMode === 'Child' || this.parent.filterSettings.hierarchyMode === 'Both') || | ||
(this.parent.searchSettings.hierarchyMode === 'Child' || this.parent.searchSettings.hierarchyMode === 'Both')) { | ||
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 !== ''))) { | ||
var uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent); | ||
@@ -154,4 +162,5 @@ if (!uniqueIDValue.hasOwnProperty(childRec[count].uniqueID)) { | ||
} | ||
if (this.parent.filterSettings.hierarchyMode === 'None' || this.parent.searchSettings.hierarchyMode === 'None') { | ||
if (this.flatFilteredData.indexOf(childRec[count] !== -1)) { | ||
if ((hierarchyMode === 'None') | ||
&& (this.parent.grid.filterSettings.columns.length !== 0 || this.parent.grid.searchSettings.key !== '')) { | ||
if (this.flatFilteredData.indexOf(childRec[count]) !== -1) { | ||
isExist = true; | ||
@@ -158,0 +167,0 @@ break; |
@@ -113,8 +113,5 @@ import { getObject, PdfExport as GridPdf, Grid } from '@syncfusion/ej2-grids'; | ||
} | ||
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); | ||
if (prop && prop.dataSource) { | ||
this.parent.dataModule.convertToFlatData(prop.dataSource); | ||
dtSrc = this.parent.flatData; | ||
this.parent.flatData = flatDatas; | ||
} | ||
@@ -121,0 +118,0 @@ prop = isNullOrUndefined(prop) ? {} : prop; |
@@ -445,3 +445,2 @@ import { extend, isNullOrUndefined, setValue, getValue, isBlazor, addClass, removeClass } from '@syncfusion/ej2-base'; | ||
}; | ||
/* tslint:disable */ | ||
DataManipulation.prototype.paging = function (results, count, isExport, isPrinting, exportType, args) { | ||
@@ -448,0 +447,0 @@ if (this.parent.allowPaging && (!isExport || exportType === 'CurrentPage') |
@@ -721,2 +721,3 @@ 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 | ||
*/ | ||
@@ -728,2 +729,3 @@ rowDragStart?: EmitType<RowDragEventArgs>; | ||
* @event | ||
* @deprecated | ||
*/ | ||
@@ -735,2 +737,3 @@ rowDragStartHelper?: EmitType<RowDragEventArgs>; | ||
* @event | ||
* @deprecated | ||
*/ | ||
@@ -737,0 +740,0 @@ rowDrop?: EmitType<RowDragEventArgs>; |
@@ -759,2 +759,3 @@ import { Component, ModuleDeclaration } from '@syncfusion/ej2-base'; | ||
* @event | ||
* @deprecated | ||
*/ | ||
@@ -765,2 +766,3 @@ rowDragStart: EmitType<RowDragEventArgs>; | ||
* @event | ||
* @deprecated | ||
*/ | ||
@@ -771,2 +773,3 @@ rowDragStartHelper: EmitType<RowDragEventArgs>; | ||
* @event | ||
* @deprecated | ||
*/ | ||
@@ -773,0 +776,0 @@ rowDrop: EmitType<RowDragEventArgs>; |
@@ -24,3 +24,4 @@ import { TreeGrid } from '..'; | ||
private columnTemplateResult; | ||
private reactTemplateRender; | ||
destroy(): void; | ||
} |
import { getObject, appendChildren } from '@syncfusion/ej2-grids'; | ||
import { templateCompiler, extend } from '@syncfusion/ej2-grids'; | ||
import { addClass, createElement, isNullOrUndefined, getValue } from '@syncfusion/ej2-base'; | ||
@@ -17,2 +18,3 @@ import * as events from '../base/constant'; | ||
this.parent.grid.on('template-result', this.columnTemplateResult, this); | ||
this.parent.grid.on('reactTemplateRender', this.reactTemplateRender, this); | ||
} | ||
@@ -170,2 +172,9 @@ /** | ||
Render.prototype.updateTreeCell = function (args, cellElement, container) { | ||
var treeColumn = this.parent.columns[this.parent.treeColumnIndex]; | ||
var templateFn = 'templateFn'; | ||
if (treeColumn.field === args.column.field && !isNullOrUndefined(treeColumn.template)) { | ||
args.column.template = treeColumn.template; | ||
args.column[templateFn] = templateCompiler(args.column.template); | ||
args.cell.classList.add('e-templatecell'); | ||
} | ||
var textContent = args.cell.querySelector('.e-treecell') != null ? | ||
@@ -180,5 +189,28 @@ args.cell.querySelector('.e-treecell').innerHTML : args.cell.innerHTML; | ||
var len = args.cell.children.length; | ||
for (var i = 0; i < len; len = args.cell.children.length) { | ||
cellElement.appendChild(args.cell.children[i]); | ||
var tempID = this.parent.element.id + args.column.uid; | ||
if (treeColumn.field === args.column.field && !isNullOrUndefined(treeColumn.template)) { | ||
var portals = 'portals'; | ||
var renderReactTemplates = 'renderReactTemplates'; | ||
if (this.parent.isReact) { | ||
args.column[templateFn](args.data, this.parent, 'template', tempID, null, null, cellElement); | ||
if (isNullOrUndefined(this.parent.grid[portals])) { | ||
this.parent.grid[portals] = this.parent[portals]; | ||
} | ||
this.parent[renderReactTemplates](); | ||
} | ||
else { | ||
var str = 'isStringTemplate'; | ||
var result = void 0; | ||
result = args.column[templateFn](extend({ 'index': '' }, args.data), this.parent, 'template', tempID, this.parent[str]); | ||
appendChildren(cellElement, result); | ||
} | ||
delete args.column.template; | ||
delete args.column[templateFn]; | ||
args.cell.innerHTML = ''; | ||
} | ||
else { | ||
for (var i = 0; i < len; len = args.cell.children.length) { | ||
cellElement.appendChild(args.cell.children[i]); | ||
} | ||
} | ||
} | ||
@@ -193,4 +225,12 @@ else { | ||
}; | ||
Render.prototype.reactTemplateRender = function (args) { | ||
var renderReactTemplates = 'renderReactTemplates'; | ||
var portals = 'portals'; | ||
this.parent[portals] = args; | ||
this.parent.notify('renderReactTemplate', this.parent[portals]); | ||
this.parent[renderReactTemplates](); | ||
}; | ||
Render.prototype.destroy = function () { | ||
this.parent.grid.off('template-result', this.columnTemplateResult); | ||
this.parent.grid.off('reactTemplateRender', this.reactTemplateRender); | ||
}; | ||
@@ -197,0 +237,0 @@ return Render; |
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
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
4001494
35655
240
2
+ Added@syncfusion/ej2-base@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-buttons@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-calendars@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-compression@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-data@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-dropdowns@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-excel-export@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-file-utils@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-grids@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-icons@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-inputs@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-lists@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-navigations@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-pdf-export@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-popups@17.2.49-beta(transitive)
+ Added@syncfusion/ej2-splitbuttons@17.2.49-beta(transitive)
- Removed@syncfusion/ej2-base@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-buttons@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-calendars@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-compression@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-data@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-dropdowns@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-excel-export@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-file-utils@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-grids@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-icons@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-inputs@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-lists@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-navigations@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-pdf-export@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-popups@17.2.48-beta(transitive)
- Removed@syncfusion/ej2-splitbuttons@17.2.48-beta(transitive)