@syncfusion/ej2-treegrid
Advanced tools
Comparing version 17.1.48 to 17.1.49
@@ -9,2 +9,12 @@ # Changelog | ||
- #236554 - Expand/Collapse icon for 2nd level parent while using remote data works fine | ||
- #236554 - enableCollapseAll works fine with paging | ||
## 17.1.48 (2019-05-21) | ||
### TreeGrid | ||
#### Bug Fixes | ||
- Styling alternate rows of TreeGrid works fine in collapsed state | ||
@@ -11,0 +21,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 17.1.48 | ||
* version : 17.1.49 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"name": "@syncfusion/ej2-treegrid", | ||
"version": "17.1.48", | ||
"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", | ||
"_from": "@syncfusion/ej2-treegrid@*", | ||
"_id": "@syncfusion/ej2-treegrid@17.1.48", | ||
"_inBundle": false, | ||
"_integrity": "sha512-4sN523dHzXGxWTdW2zWrvCcq1HaBiV2/Q7LjmDc/8uR5in/VLlBn7xm5rlenHNQDGMlJ/ZtmCB2ukgp9ZNhfzg==", | ||
"_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-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-17.1.48.tgz", | ||
"_shasum": "7f57beb20f7d3a2303325ede4a151a620093b706", | ||
"_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.1.48", | ||
"@syncfusion/ej2-base": "~17.1.49", | ||
"@syncfusion/ej2-data": "~17.1.47", | ||
"@syncfusion/ej2-popups": "~17.1.47", | ||
"@syncfusion/ej2-grids": "~17.1.48" | ||
"@syncfusion/ej2-grids": "~17.1.48", | ||
"@syncfusion/ej2-popups": "~17.1.47" | ||
}, | ||
"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": [ | ||
@@ -22,7 +54,12 @@ "ej2", | ||
], | ||
"license": "SEE LICENSE IN license", | ||
"main": "./dist/ej2-treegrid.umd.min.js", | ||
"module": "./index.js", | ||
"name": "@syncfusion/ej2-treegrid", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/syncfusion/ej2-treegrid.git" | ||
"url": "git+https://github.com/syncfusion/ej2-treegrid.git" | ||
}, | ||
"version": "17.1.49", | ||
"sideEffects": false | ||
} |
@@ -85,2 +85,3 @@ import { extend, isNullOrUndefined, setValue, getValue } from '@syncfusion/ej2-base'; | ||
qry = qry.select([this.parent.parentIdMapping]); | ||
qry.isCountRequired = true; | ||
dm.executeQuery(qry).then(function (e) { | ||
@@ -211,2 +212,3 @@ _this.parentItems = DataUtil.distinct(e.result, _this.parent.parentIdMapping, false); | ||
qry.queries = clonequries; | ||
qry.isCountRequired = true; | ||
qry.where(this.parent.parentIdMapping, 'equal', rowDetails.record[this.parent.idMapping]); | ||
@@ -252,4 +254,9 @@ showSpinner(this.parent.element); | ||
currentData.hasChildRecords = true; | ||
currentData.expanded = !isNullOrUndefined(currentData[this.parent.expandStateMapping]) | ||
? currentData[this.parent.expandStateMapping] : true; | ||
if (this.parent.enableCollapseAll) { | ||
currentData.expanded = false; | ||
} | ||
else { | ||
currentData.expanded = !isNullOrUndefined(currentData[this.parent.expandStateMapping]) | ||
? currentData[this.parent.expandStateMapping] : true; | ||
} | ||
} | ||
@@ -256,0 +263,0 @@ currentData.index = currentData.hasChildRecords ? this.storedIndex : this.storedIndex; |
@@ -61,2 +61,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'; | ||
* @default [] | ||
* @isDataSource true | ||
*/ | ||
@@ -63,0 +64,0 @@ dataSource?: Object | DataManager; |
@@ -170,2 +170,3 @@ import { Component, ModuleDeclaration } from '@syncfusion/ej2-base'; | ||
* @default [] | ||
* @isDataSource true | ||
*/ | ||
@@ -777,3 +778,3 @@ dataSource: Object | DataManager; | ||
*/ | ||
reorderColumns(fromFName: string, toFName: string): void; | ||
reorderColumns(fromFName: string | string[], toFName: string): void; | ||
private TreeGridLocale; | ||
@@ -780,0 +781,0 @@ /** |
@@ -17,1 +17,3 @@ /** | ||
export * from './summary-model'; | ||
export * from './sort-settings'; | ||
export * from './sort-settings-model'; |
@@ -11,1 +11,2 @@ /** | ||
export * from './summary'; | ||
export * from './sort-settings'; |
@@ -55,2 +55,13 @@ import { getObject } from '@syncfusion/ej2-grids'; | ||
} | ||
if (args.row.querySelector('.e-treegridexpand')) { | ||
args.row.setAttribute('aria-expanded', 'true'); | ||
} | ||
else if (args.row.querySelector('.e-treegridcollapse')) { | ||
args.row.setAttribute('aria-expanded', 'false'); | ||
} | ||
if (this.parent.enableCollapseAll && this.parent.initialRender) { | ||
if (!isNullOrUndefined(data.parentItem)) { | ||
args.row.style.display = 'none'; | ||
} | ||
} | ||
this.parent.trigger(events.rowDataBound, args); | ||
@@ -57,0 +68,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
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
2788842
25754