@syncfusion/ej2-treegrid
Advanced tools
Comparing version 17.4.40 to 17.4.41
@@ -5,2 +5,4 @@ # Changelog | ||
## 17.4.40 (2019-12-24) | ||
### TreeGrid | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 17.4.40 | ||
* version : 17.4.41 | ||
* 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.39", | ||
"_id": "@syncfusion/ej2-treegrid@17.4.40", | ||
"_inBundle": false, | ||
"_integrity": "sha512-4AgnC8XkH6EV2p3PlkOymKluEjXmXZBysMQHRaNx3TBsCRfvWxO0EMo5U05va0dzhElwoW0uq5mdTWtj8SFszA==", | ||
"_integrity": "sha512-BgWuxjuSgRMNb/sDDrZwA6CuLUjl45UW7CXilvbWnGrMNaAsRSCkSnTQUHcToXYCxDXrPNTy5JVqoQoy9X4qZQ==", | ||
"_location": "/@syncfusion/ej2-treegrid", | ||
@@ -27,4 +27,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.4.39.tgz", | ||
"_shasum": "86034efd9a89d1511241852c5fa5c455d88b7bfb", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.4.40.tgz", | ||
"_shasum": "fe6c5c7db1e088527ba7e3f5be5d67dfe25e13f7", | ||
"_spec": "@syncfusion/ej2-treegrid@*", | ||
@@ -40,5 +40,5 @@ "_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~17.4.39", | ||
"@syncfusion/ej2-data": "~17.4.39", | ||
"@syncfusion/ej2-grids": "~17.4.40", | ||
"@syncfusion/ej2-base": "~17.4.41", | ||
"@syncfusion/ej2-data": "~17.4.41", | ||
"@syncfusion/ej2-grids": "~17.4.41", | ||
"@syncfusion/ej2-popups": "~17.4.39" | ||
@@ -65,4 +65,4 @@ }, | ||
"typings": "index.d.ts", | ||
"version": "17.4.40", | ||
"version": "17.4.41", | ||
"sideEffects": false | ||
} |
@@ -346,2 +346,3 @@ import { Grid, Edit as GridEdit, getUid, getObject } from '@syncfusion/ej2-grids'; | ||
} | ||
data[i].childRecords = this.internalProperties.childRecords; | ||
} | ||
@@ -601,3 +602,4 @@ } | ||
this.internalProperties = { level: value.level, parentItem: value.parentItem, uniqueID: value.uniqueID, | ||
taskData: value.taskData, parentUniqueID: isNullOrUndefined(value.parentItem) ? undefined : value.parentItem.uniqueID }; | ||
taskData: value.taskData, parentUniqueID: isNullOrUndefined(value.parentItem) ? undefined : value.parentItem.uniqueID, | ||
childRecords: value.childRecords }; | ||
} | ||
@@ -604,0 +606,0 @@ if (args.requestType === 'delete') { |
@@ -89,3 +89,3 @@ import { Column } from '../models/column'; | ||
/** | ||
* Specifies custom format data interfaces. | ||
* @hidden | ||
*/ | ||
@@ -92,0 +92,0 @@ export interface ITreeGridCellFormatter { |
@@ -85,3 +85,3 @@ import { Component, addClass, createElement, EventHandler, isNullOrUndefined, Ajax, ModuleDeclaration, extend} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs, isBlazor, getElement, getValue } 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, ReturnType, getUid } from '@syncfusion/ej2-grids';import { ActionEventArgs } from'@syncfusion/ej2-grids';import { DetailDataBoundEventArgs, Row} from '@syncfusion/ej2-grids';import { SearchEventArgs, AddEventArgs, EditEventArgs, DeleteEventArgs, BeforeBatchSaveArgs} 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 { gridObserver } from '@syncfusion/ej2-grids';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 { Freeze } from '../actions/freeze-column';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, Dialog } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline, extendArray, isCountRequired } 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, RowCollapsedEventArgs, RowCollapsingEventArgs } from './interface';import { CellSaveEventArgs, DataStateChangeEventArgs, RowExpandingEventArgs } from './interface';import { iterateArrayOrObject, GridLine } from '@syncfusion/ej2-grids';import { DataSourceChangedEventArgs, 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/query/) | ||
* Defines the external [`Query`](https://ej2.syncfusion.com/documentation/data/api-query.html) | ||
* that will be executed along with data processing. | ||
@@ -175,3 +175,3 @@ * @default null | ||
* | ||
* > Check the [`Column menu`](./columns.html#column-menu) for its configuration. | ||
* > Check the [`Column menu`](../../treegrid/columns/#column-menu/) for its configuration. | ||
* @default false | ||
@@ -202,3 +202,3 @@ */ | ||
* Configures the TreeGrid aggregate rows. | ||
* > Check the [`Aggregates`](./aggregates.html) for its configuration. | ||
* > Check the [`Aggregates`](../../treegrid/aggregates/) for its configuration. | ||
* @default [] | ||
@@ -320,3 +320,3 @@ */ | ||
* By default, TreeGrid renders a table row for every data source item. | ||
* > * It accepts either [template string](../../common/template-engine.html) or HTML element ID. | ||
* > * It accepts either [template string](../../common/template-engine/) or HTML element ID. | ||
* > * The row template must be a table row. | ||
@@ -336,3 +336,3 @@ * | ||
* If `enableAltRow` is set to true, the TreeGrid will render with `e-altrow` CSS class to the alternative tr elements. | ||
* > Check the [`AltRow`](./row.html#styling-alternate-rows) to customize the styles of alternative rows. | ||
* > Check the [`AltRow`](../../treegrid/row/#styling-alternate-rows/) to customize the styles of alternative rows. | ||
* @default true | ||
@@ -780,3 +780,3 @@ */ | ||
* | ||
* > Check the [`ExcelExport`](./excel-exporting.html) to configure exporting document. | ||
* > Check the [`ExcelExport`](../../treegrid/excel-exporting/) to configure exporting document. | ||
* @default false | ||
@@ -789,3 +789,3 @@ */ | ||
* | ||
* > Check the [`Pdfexport`](./pdf-exporting.html) to configure the exporting document. | ||
* > Check the [`Pdfexport`](../../treegrid/pdf-export/) to configure the exporting document. | ||
* @default false | ||
@@ -792,0 +792,0 @@ */ |
@@ -215,3 +215,3 @@ import { Component, ModuleDeclaration } from '@syncfusion/ej2-base'; | ||
/** | ||
* Defines the external [`Query`](../../data/query/) | ||
* Defines the external [`Query`](https://ej2.syncfusion.com/documentation/data/api-query.html) | ||
* that will be executed along with data processing. | ||
@@ -292,3 +292,3 @@ * @default null | ||
* | ||
* > Check the [`Column menu`](./columns.html#column-menu) for its configuration. | ||
* > Check the [`Column menu`](../../treegrid/columns/#column-menu/) for its configuration. | ||
* @default false | ||
@@ -315,3 +315,3 @@ */ | ||
* Configures the TreeGrid aggregate rows. | ||
* > Check the [`Aggregates`](./aggregates.html) for its configuration. | ||
* > Check the [`Aggregates`](../../treegrid/aggregates/) for its configuration. | ||
* @default [] | ||
@@ -422,3 +422,3 @@ */ | ||
* By default, TreeGrid renders a table row for every data source item. | ||
* > * It accepts either [template string](../../common/template-engine.html) or HTML element ID. | ||
* > * It accepts either [template string](../../common/template-engine/) or HTML element ID. | ||
* > * The row template must be a table row. | ||
@@ -436,3 +436,3 @@ * | ||
* If `enableAltRow` is set to true, the TreeGrid will render with `e-altrow` CSS class to the alternative tr elements. | ||
* > Check the [`AltRow`](./row.html#styling-alternate-rows) to customize the styles of alternative rows. | ||
* > Check the [`AltRow`](../../treegrid/row/#styling-alternate-rows/) to customize the styles of alternative rows. | ||
* @default true | ||
@@ -821,3 +821,3 @@ */ | ||
* | ||
* > Check the [`ExcelExport`](./excel-exporting.html) to configure exporting document. | ||
* > Check the [`ExcelExport`](../../treegrid/excel-exporting/) to configure exporting document. | ||
* @default false | ||
@@ -829,3 +829,3 @@ */ | ||
* | ||
* > Check the [`Pdfexport`](./pdf-exporting.html) to configure the exporting document. | ||
* > Check the [`Pdfexport`](../../treegrid/pdf-export/) to configure the exporting document. | ||
* @default false | ||
@@ -955,3 +955,3 @@ */ | ||
* You can customize the default search option by using the | ||
* [`searchSettings`](./api-searchSettings.html). | ||
* [`searchSettings`](./#searchsettings/). | ||
* @param {string} searchString - Defines the key. | ||
@@ -983,3 +983,3 @@ * @return {void} | ||
* > You can customize print options using the | ||
* [`printMode`](./api-treegrid.html#printmode-string). | ||
* [`printMode`](./#printmode). | ||
* @return {void} | ||
@@ -986,0 +986,0 @@ */ |
@@ -191,3 +191,3 @@ import { Collection, Property, ChildProperty } from '@syncfusion/ej2-base';import { ICustomOptr, FilterBarMode, FilterType, PredicateModel } from '@syncfusion/ej2-grids';import { FilterHierarchyMode } from '../enum'; | ||
* | ||
* > Check the [`Diacritics`](../filtering/#diacritics) filtering. | ||
* > Check the [`Diacritics`](../../treegrid/filtering/#diacritics/) filtering. | ||
* @default false | ||
@@ -194,0 +194,0 @@ */ |
@@ -171,3 +171,3 @@ import { ChildProperty } from '@syncfusion/ej2-base'; | ||
* | ||
* > Check the [`Diacritics`](../filtering/#diacritics) filtering. | ||
* > Check the [`Diacritics`](../../treegrid/filtering/#diacritics/) filtering. | ||
* @default false | ||
@@ -174,0 +174,0 @@ */ |
@@ -17,3 +17,3 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { FilterHierarchyMode } from '../enum'; | ||
* | ||
* > Check the [`Diacritics`](../filtering/#diacritics) filtering. | ||
* > Check the [`Diacritics`](../../treegrid/filtering/#diacritics/) filtering. | ||
* @default false | ||
@@ -20,0 +20,0 @@ */ |
@@ -15,3 +15,3 @@ import { ChildProperty } from '@syncfusion/ej2-base'; | ||
* | ||
* > Check the [`Diacritics`](../filtering/#diacritics) filtering. | ||
* > Check the [`Diacritics`](../../treegrid/filtering/#diacritics/) filtering. | ||
* @default false | ||
@@ -18,0 +18,0 @@ */ |
@@ -88,3 +88,4 @@ import { getObject } from '@syncfusion/ej2-grids'; | ||
var datas = []; | ||
if (isNullOrUndefined(records) || !records.hasChildRecords) { | ||
if (isNullOrUndefined(records) || (!records.hasChildRecords && !isNullOrUndefined(records.childRecords) | ||
&& !records.childRecords.length)) { | ||
return []; | ||
@@ -96,3 +97,4 @@ } | ||
datas.push(childRecords[i]); | ||
if (childRecords[i].hasChildRecords) { | ||
if (childRecords[i].hasChildRecords || (!isNullOrUndefined(childRecords[i].childRecords) && | ||
childRecords[i].childRecords.length)) { | ||
datas = datas.concat(findChildrenRecords(childRecords[i])); | ||
@@ -99,0 +101,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
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
4467788
39447