@syncfusion/ej2-treegrid
Advanced tools
Comparing version 17.1.49 to 17.1.51
@@ -9,2 +9,10 @@ # Changelog | ||
- #238350 - Editing works fine in remote data. | ||
## 17.1.49 (2019-05-29) | ||
### TreeGrid | ||
#### Bug Fixes | ||
- #236554 - Expand/Collapse icon for 2nd level parent while using remote data works fine | ||
@@ -11,0 +19,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 17.1.49 | ||
* version : 17.1.51 | ||
* 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.1.48", | ||
"_id": "@syncfusion/ej2-treegrid@17.1.49", | ||
"_inBundle": false, | ||
"_integrity": "sha512-4sN523dHzXGxWTdW2zWrvCcq1HaBiV2/Q7LjmDc/8uR5in/VLlBn7xm5rlenHNQDGMlJ/ZtmCB2ukgp9ZNhfzg==", | ||
"_integrity": "sha512-k5AvnMorohT8XAsRl5ogrOrBaVOhKyimcdfAQCVlGz72Y1uBzKPGXF9xNpjUI44lMfpMchKLIDjCR9YRR7uRQA==", | ||
"_location": "/@syncfusion/ej2-treegrid", | ||
@@ -27,4 +27,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.1.48.tgz", | ||
"_shasum": "7f57beb20f7d3a2303325ede4a151a620093b706", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.1.49.tgz", | ||
"_shasum": "fd9b8bd04d878f561ebd2d6f6a7ddd7bd368d407", | ||
"_spec": "@syncfusion/ej2-treegrid@*", | ||
@@ -41,5 +41,5 @@ "_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included", | ||
"@syncfusion/ej2-base": "~17.1.49", | ||
"@syncfusion/ej2-data": "~17.1.47", | ||
"@syncfusion/ej2-grids": "~17.1.48", | ||
"@syncfusion/ej2-popups": "~17.1.47" | ||
"@syncfusion/ej2-data": "~17.1.51", | ||
"@syncfusion/ej2-grids": "~17.1.51", | ||
"@syncfusion/ej2-popups": "~17.1.50" | ||
}, | ||
@@ -64,4 +64,4 @@ "deprecated": false, | ||
}, | ||
"version": "17.1.49", | ||
"version": "17.1.51", | ||
"sideEffects": false | ||
} |
@@ -73,3 +73,4 @@ import { extend, isNullOrUndefined, setValue, getValue } from '@syncfusion/ej2-base'; | ||
this.parent.parentData = []; | ||
if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager) { | ||
var adaptorName = 'adaptorName'; | ||
if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) { | ||
var dm = this.parent.dataSource; | ||
@@ -81,4 +82,10 @@ if (this.parent.parentIdMapping) { | ||
this.parent.query.where(this.parent.parentIdMapping, 'equal', null); | ||
var key = !this.parent.query.params.length ? [] : this.parent.query.params.filter(function (e) { | ||
return e.key === 'IdMapping'; | ||
}); | ||
if (!key.length) { | ||
this.parent.query.addParams('IdMapping', this.parent.idMapping); | ||
} | ||
} | ||
if (!this.parent.hasChildMapping) { | ||
if (!this.parent.hasChildMapping && !(this.parent.dataSource[adaptorName] === 'BlazorAdaptor')) { | ||
var qry = this.parent.query.clone(); | ||
@@ -177,3 +184,4 @@ qry.queries = []; | ||
var records = args.result; | ||
if (!this.parent.hasChildMapping && !this.parentItems.length) { | ||
var adaptorName = 'adaptorName'; | ||
if (!this.parent.hasChildMapping && !this.parentItems.length && !(this.parent.dataSource[adaptorName] === 'BlazorAdaptor')) { | ||
this.zerothLevelData = args; | ||
@@ -183,12 +191,17 @@ setValue('cancel', true, args); | ||
else { | ||
for (var rec = 0; rec < records.length; rec++) { | ||
if ((records[rec][this.parent.hasChildMapping] || this.parentItems.indexOf(records[rec][this.parent.idMapping]) !== -1) | ||
&& (isNullOrUndefined(records[rec].index))) { | ||
records[rec].level = 0; | ||
records[rec].index = Math.ceil(Math.random() * 1000); | ||
records[rec].hasChildRecords = true; | ||
if (!(this.parent.dataSource[adaptorName] === 'BlazorAdaptor')) { | ||
for (var rec = 0; rec < records.length; rec++) { | ||
if ((records[rec][this.parent.hasChildMapping] || this.parentItems.indexOf(records[rec][this.parent.idMapping]) !== -1) | ||
&& (isNullOrUndefined(records[rec].index))) { | ||
records[rec].level = 0; | ||
records[rec].index = Math.ceil(Math.random() * 1000); | ||
records[rec].hasChildRecords = true; | ||
} | ||
} | ||
} | ||
else { | ||
this.convertToFlatData(records); | ||
} | ||
} | ||
args.result = records; | ||
args.result = this.parent.dataSource[adaptorName] === 'BlazorAdaptor' ? this.parent.flatData : records; | ||
this.parent.notify('updateResults', args); | ||
@@ -195,0 +208,0 @@ }; |
@@ -66,3 +66,3 @@ import { Component, addClass, createElement, EventHandler, isNullOrUndefined, Ajax, ModuleDeclaration, extend} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs } 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 { 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 {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 { 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 { TextWrapSettings, TextWrapSettingsModel, 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 } from '@syncfusion/ej2-data';import { createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline } from '../utils';import { Grid, QueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { Render } from '../renderer/render';import { DataManipulation } from './data';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'; | ||
/** | ||
* Defines the external [`Query`](../../data/api-query.html) | ||
* Defines the external [`Query`](../../data/query/) | ||
* that will be executed along with data processing. | ||
@@ -69,0 +69,0 @@ * @default null |
@@ -174,3 +174,3 @@ import { Component, ModuleDeclaration } from '@syncfusion/ej2-base'; | ||
/** | ||
* Defines the external [`Query`](../../data/api-query.html) | ||
* Defines the external [`Query`](../../data/query/) | ||
* that will be executed along with data processing. | ||
@@ -860,2 +860,3 @@ * @default null | ||
* @return {void} | ||
* @private | ||
*/ | ||
@@ -1155,2 +1156,3 @@ dataBind(): void; | ||
private updateAltRow; | ||
private treeColumnRowTemplate; | ||
private collapseRemoteChild; | ||
@@ -1157,0 +1159,0 @@ /** |
@@ -146,4 +146,4 @@ import { TextAlign, ClipMode, ValueAccessor, IFilter, IFilterUI, IEditCell, CommandModel } from '@syncfusion/ej2-grids'; | ||
* Gets the format from the user which can be standard or custom | ||
* [`number`](../../../common/internationalization/#custom-number-formatting-and-parsing) | ||
* and [`date`](../../../common/internationalization/#manipulating-datetime) formats. | ||
* [`number`](../../../common/internationalization/#supported-format-string) | ||
* and [`date`](../../../common/internationalization/#supported-format-string-1) formats. | ||
* @default null | ||
@@ -379,4 +379,4 @@ * @aspType string | ||
* Gets the format from the user which can be standard or custom | ||
* [`number`](../base/intl.html#number-formatter-and-parser) | ||
* and [`date`](../base/intl.html#date-formatter-and-parser) formats. | ||
* [`number`](../../../common/internationalization/#supported-format-string) | ||
* and [`date`](../../../common/internationalization/#supported-format-string-1) formats. | ||
* @default null | ||
@@ -383,0 +383,0 @@ * @aspType string |
@@ -56,3 +56,3 @@ import { Collection, Property, ChildProperty } from '@syncfusion/ej2-base';import { ICustomOptr, FilterBarMode, FilterType, PredicateModel, Predicate } from '@syncfusion/ej2-grids';import { FilterHierarchyMode } from '../enum'; | ||
* | ||
* > Check the [`Diacritics`](../../../treegrid/filtering/#diacritics) filtering. | ||
* > Check the [`Diacritics`](../filtering/#diacritics) filtering. | ||
* @default false | ||
@@ -59,0 +59,0 @@ */ |
@@ -50,3 +50,3 @@ import { ChildProperty } from '@syncfusion/ej2-base'; | ||
* | ||
* > Check the [`Diacritics`](../../../treegrid/filtering/#diacritics) filtering. | ||
* > Check the [`Diacritics`](../filtering/#diacritics) filtering. | ||
* @default false | ||
@@ -53,0 +53,0 @@ */ |
@@ -48,3 +48,3 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { PageSizeMode } from '../enum'; | ||
* Defines the template which renders customized elements in pager of TreeGrid instead of default elements. | ||
* It accepts either [template string](../base/template-engine.html) or HTML element ID. | ||
* It accepts either [template string](../../../common/template-engine/) or HTML element ID. | ||
* @default null | ||
@@ -51,0 +51,0 @@ */ |
@@ -41,3 +41,3 @@ import { ChildProperty } from '@syncfusion/ej2-base'; | ||
* Defines the template which renders customized elements in pager of TreeGrid instead of default elements. | ||
* It accepts either [template string](../base/template-engine.html) or HTML element ID. | ||
* It accepts either [template string](../../../common/template-engine/) or HTML element ID. | ||
* @default null | ||
@@ -44,0 +44,0 @@ */ |
@@ -17,3 +17,3 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { ICustomOptr } from '@syncfusion/ej2-grids';import { FilterHierarchyMode } from '../enum'; | ||
* | ||
* > Check the [`Diacritics`](../../../treegrid/filtering/#diacritics) filtering. | ||
* > Check the [`Diacritics`](../filtering/#diacritics) filtering. | ||
* @default false | ||
@@ -26,4 +26,2 @@ */ | ||
* (string, number, date and boolean). Based on the column type, this customize operator list will render in filter menu. | ||
* | ||
* > Check the [`Filter Menu Operator`](./how-to.html#customizing-filter-menu-operators-list) customization. | ||
* @default null | ||
@@ -30,0 +28,0 @@ */ |
@@ -16,3 +16,3 @@ import { ChildProperty } from '@syncfusion/ej2-base'; | ||
* | ||
* > Check the [`Diacritics`](../../../treegrid/filtering/#diacritics) filtering. | ||
* > Check the [`Diacritics`](../filtering/#diacritics) filtering. | ||
* @default false | ||
@@ -24,4 +24,2 @@ */ | ||
* (string, number, date and boolean). Based on the column type, this customize operator list will render in filter menu. | ||
* | ||
* > Check the [`Filter Menu Operator`](./how-to.html#customizing-filter-menu-operators-list) customization. | ||
* @default null | ||
@@ -28,0 +26,0 @@ */ |
@@ -44,4 +44,4 @@ import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base';import { Internationalization } from '@syncfusion/ej2-base';import { CustomSummaryType, AggregateType, CellType } from '@syncfusion/ej2-grids'; | ||
* Gets the format from the user, which can be standard or custom | ||
* [`number`](../../../common/internationalization/#custom-number-formatting-and-parsing) | ||
* and [`date`](../../../common/internationalization/#manipulating-datetime) formats. | ||
* [`number`](../../../common/internationalization/#supported-format-string) | ||
* and [`date`](../../../common/internationalization/#supported-format-string-1) formats. | ||
* @aspType string | ||
@@ -48,0 +48,0 @@ * @default null |
@@ -44,4 +44,4 @@ import { ChildProperty, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base'; | ||
* Gets the format from the user, which can be standard or custom | ||
* [`number`](../../../common/internationalization/#custom-number-formatting-and-parsing) | ||
* and [`date`](../../../common/internationalization/#manipulating-datetime) formats. | ||
* [`number`](../../../common/internationalization/#supported-format-string) | ||
* and [`date`](../../../common/internationalization/#supported-format-string-1) formats. | ||
* @aspType string | ||
@@ -48,0 +48,0 @@ * @default null |
@@ -165,3 +165,5 @@ import { getObject } from '@syncfusion/ej2-grids'; | ||
} | ||
this.parent.trigger(events.queryCellInfo, args); | ||
if (isNullOrUndefined(this.parent.rowTemplate)) { | ||
this.parent.trigger(events.queryCellInfo, args); | ||
} | ||
}; | ||
@@ -168,0 +170,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
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
2803962
25830