@syncfusion/ej2-grids
Advanced tools
Comparing version 16.1.29 to 16.1.30
@@ -9,2 +9,11 @@ # Changelog | ||
- Column properties is not persisted after reordering columns resolved. | ||
- `args.cancel` has included in `rowSelecting` event while select the rows through method and user interaction. | ||
## 16.1.29 (2018-03-13) | ||
### Grid | ||
#### Bug Fixes | ||
- `args.cancel` has included in `rowSelecting` event. | ||
@@ -11,0 +20,0 @@ - Dynamically changing filter settings does not update `Filterbar` value and filter status message is resolved. |
/*! | ||
* filename: index.d.ts | ||
* version : 16.1.28 | ||
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved. | ||
* version : 16.1.29 | ||
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
@@ -6,0 +6,0 @@ * A copy of the current license can be obtained at any time by e-mailing |
{ | ||
"name": "@syncfusion/ej2-grids", | ||
"version": "16.1.29", | ||
"version": "16.1.30", | ||
"description": "Essential JS 2 Grid Component", | ||
@@ -11,3 +11,3 @@ "author": "Syncfusion Inc.", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~16.1.29", | ||
"@syncfusion/ej2-base": "~16.1.30", | ||
"@syncfusion/ej2-data": "~16.1.28", | ||
@@ -17,4 +17,4 @@ "@syncfusion/ej2-navigations": "~16.1.28", | ||
"@syncfusion/ej2-calendars": "~16.1.29", | ||
"@syncfusion/ej2-dropdowns": "~16.1.29", | ||
"@syncfusion/ej2-popups": "~16.1.29", | ||
"@syncfusion/ej2-dropdowns": "~16.1.30", | ||
"@syncfusion/ej2-popups": "~16.1.30", | ||
"@syncfusion/ej2-buttons": "~16.1.28", | ||
@@ -21,0 +21,0 @@ "@syncfusion/ej2-lists": "~16.1.28", |
@@ -0,0 +0,0 @@ # Grid Overview |
@@ -85,3 +85,5 @@ define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-data", "../base/util", "../base/constant", "../services/value-formatter", "../actions/checkbox-filter"], function (require, exports, ej2_base_1, ej2_data_1, util_1, events, value_formatter_1, checkbox_filter_1) { | ||
var col = this.getColumnByField(columns[i].field); | ||
col.setSortDirection(columns[i].direction); | ||
if (col) { | ||
col.setSortDirection(columns[i].direction); | ||
} | ||
var fn = col.sortComparer && !this.isRemote() ? col.sortComparer.bind(col) : columns[i].direction; | ||
@@ -88,0 +90,0 @@ if (gObj.groupSettings.columns.indexOf(columns[i].field) === -1) { |
@@ -0,0 +0,0 @@ define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-navigations", "../base/constant", "../base/util", "../services/focus-strategy"], function (require, exports, ej2_base_1, ej2_base_2, ej2_navigations_1, events, util_1, focus_strategy_1) { |
@@ -1,2 +0,2 @@ | ||
import { Component, ModuleDeclaration, ChildProperty, Browser, closest, extend } from '@syncfusion/ej2-base'; import { isNullOrUndefined, setValue, getValue } from '@syncfusion/ej2-base'; import { createElement, addClass, removeClass, append, remove, classList } from '@syncfusion/ej2-base'; import { Property, Collection, Complex, Event, NotifyPropertyChanges, INotifyPropertyChanged, L10n } from '@syncfusion/ej2-base'; import { EventHandler, KeyboardEvents, KeyboardEventArgs, EmitType } from '@syncfusion/ej2-base'; import { Query, DataManager, DataUtil } from '@syncfusion/ej2-data'; import { ItemModel, ClickEventArgs } from '@syncfusion/ej2-navigations'; import { createSpinner, hideSpinner, showSpinner, Tooltip } from '@syncfusion/ej2-popups'; import { iterateArrayOrObject, prepareColumns, parentsUntil, wrap, templateCompiler, refreshForeignData } from './util'; import * as events from '../base/constant'; import { IRenderer, IValueFormatter, IFilterOperator, IIndex, RowDataBoundEventArgs, QueryCellInfoEventArgs } from './interface'; import { CellDeselectEventArgs, CellSelectEventArgs, CellSelectingEventArgs, ParentDetails, ContextMenuItemModel } from './interface'; import { PdfQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs, ExcelExportProperties, PdfExportProperties } from './interface'; import { ColumnMenuOpenEventArgs, RecordDoubleClickEventArgs, DataResult, PendingState } from './interface'; import { FailureEventArgs, FilterEventArgs, ColumnDragEventArgs, GroupEventArgs, PrintEventArgs, ICustomOptr } from './interface'; import { RowDeselectEventArgs, RowSelectEventArgs, RowSelectingEventArgs, PageEventArgs, RowDragEventArgs } from './interface'; import { BeforeBatchAddArgs, BeforeBatchDeleteArgs, BeforeBatchSaveArgs, ResizeArgs, ColumnMenuItemModel } from './interface'; import { BatchAddArgs, BatchDeleteArgs, BeginEditArgs, CellEditArgs, CellSaveArgs, BeforeDataBoundArgs, RowInfo } from './interface'; import { DetailDataBoundEventArgs, ColumnChooserEventArgs, AddEventArgs, SaveEventArgs, EditEventArgs, DeleteEventArgs } from './interface'; import { ExcelExportCompleteArgs, PdfExportCompleteArgs, DataStateChangeEventArgs, DataSourceChangedEventArgs } from './interface'; import { SearchEventArgs, SortEventArgs, ISelectedCell, EJ2Intance, BeforeCopyEventArgs, CheckBoxChangeEventArgs } from './interface'; import { Render } from '../renderer/render'; import { Column, ColumnModel } from '../models/column'; import { Action, SelectionType, GridLine, RenderType, SortDirection, SelectionMode, PrintMode, FilterType, FilterBarMode } from './enum'; import { WrapMode, ToolbarItems, ContextMenuItem, ColumnMenuItem, ToolbarItem, CellSelectionMode, EditMode } from './enum'; import { Data } from '../actions/data'; import { Cell } from '../models/cell'; import { RowRenderer } from '../renderer/row-renderer'; import { CellRenderer } from '../renderer/cell-renderer'; import { CellRendererFactory } from '../services/cell-render-factory'; import { ServiceLocator } from '../services/service-locator'; import { ValueFormatter } from '../services/value-formatter'; import { RendererFactory } from '../services/renderer-factory'; import { ColumnWidthService } from '../services/width-controller'; import { AriaService } from '../services/aria-service'; import { FocusStrategy } from '../services/focus-strategy'; import { PageSettingsModel, AggregateRowModel } from '../models/models'; import { PageSettings } from '../models/page-settings'; import { Sort } from '../actions/sort'; import { Page } from '../actions/page'; import { Selection } from '../actions/selection'; import { Filter } from '../actions/filter'; import { Search } from '../actions/search'; import { Resize } from '../actions/resize'; import { Reorder } from '../actions/reorder'; import { RowDD } from '../actions/row-reorder'; import { ShowHide } from '../actions/show-hide'; import { Scroll } from '../actions/scroll'; import { Group } from '../actions/group'; import { Print } from '../actions/print'; import { DetailRow } from '../actions/detail-row'; import { Toolbar } from '../actions/toolbar'; import { AggregateRow } from '../models/aggregate'; import { Edit } from '../actions/edit'; import { Row } from '../models/row'; import { ColumnChooser } from '../actions/column-chooser'; import { ExcelExport } from '../actions/excel-export'; import { PdfExport } from '../actions/pdf-export'; import { Clipboard } from '../actions/clipboard'; import { CommandColumn } from '../actions/command-column'; import { ContextMenu } from '../actions/context-menu'; import { BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations'; import { ColumnMenu } from '../actions/column-menu'; import { CheckState } from './enum'; | ||
import { Component, ModuleDeclaration, ChildProperty, Browser, closest, extend } from '@syncfusion/ej2-base';import { isNullOrUndefined, setValue, getValue } from '@syncfusion/ej2-base';import { createElement, addClass, removeClass, append, remove, classList } from '@syncfusion/ej2-base';import { Property, Collection, Complex, Event, NotifyPropertyChanges, INotifyPropertyChanged, L10n } from '@syncfusion/ej2-base';import { EventHandler, KeyboardEvents, KeyboardEventArgs, EmitType } from '@syncfusion/ej2-base';import { Query, DataManager, DataUtil } from '@syncfusion/ej2-data';import { ItemModel, ClickEventArgs } from '@syncfusion/ej2-navigations';import { createSpinner, hideSpinner, showSpinner, Tooltip } from '@syncfusion/ej2-popups';import { iterateArrayOrObject, prepareColumns, parentsUntil, wrap, templateCompiler, refreshForeignData } from './util';import * as events from '../base/constant';import { IRenderer, IValueFormatter, IFilterOperator, IIndex, RowDataBoundEventArgs, QueryCellInfoEventArgs } from './interface';import { CellDeselectEventArgs, CellSelectEventArgs, CellSelectingEventArgs, ParentDetails, ContextMenuItemModel } from './interface';import { PdfQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs, ExcelExportProperties, PdfExportProperties } from './interface';import { ColumnMenuOpenEventArgs, RecordDoubleClickEventArgs, DataResult, PendingState } from './interface';import { FailureEventArgs, FilterEventArgs, ColumnDragEventArgs, GroupEventArgs, PrintEventArgs, ICustomOptr } from './interface';import { RowDeselectEventArgs, RowSelectEventArgs, RowSelectingEventArgs, PageEventArgs, RowDragEventArgs } from './interface';import { BeforeBatchAddArgs, BeforeBatchDeleteArgs, BeforeBatchSaveArgs, ResizeArgs, ColumnMenuItemModel } from './interface';import { BatchAddArgs, BatchDeleteArgs, BeginEditArgs, CellEditArgs, CellSaveArgs, BeforeDataBoundArgs, RowInfo } from './interface';import { DetailDataBoundEventArgs, ColumnChooserEventArgs, AddEventArgs, SaveEventArgs, EditEventArgs, DeleteEventArgs } from './interface';import { ExcelExportCompleteArgs, PdfExportCompleteArgs, DataStateChangeEventArgs, DataSourceChangedEventArgs } from './interface';import { SearchEventArgs, SortEventArgs, ISelectedCell, EJ2Intance, BeforeCopyEventArgs, CheckBoxChangeEventArgs } from './interface';import { Render } from '../renderer/render';import { Column, ColumnModel } from '../models/column';import { Action, SelectionType, GridLine, RenderType, SortDirection, SelectionMode, PrintMode, FilterType, FilterBarMode } from './enum';import { WrapMode, ToolbarItems, ContextMenuItem, ColumnMenuItem, ToolbarItem, CellSelectionMode, EditMode } from './enum';import { Data } from '../actions/data';import { Cell } from '../models/cell';import { RowRenderer } from '../renderer/row-renderer';import { CellRenderer } from '../renderer/cell-renderer';import { CellRendererFactory } from '../services/cell-render-factory';import { ServiceLocator } from '../services/service-locator';import { ValueFormatter } from '../services/value-formatter';import { RendererFactory } from '../services/renderer-factory';import { ColumnWidthService } from '../services/width-controller';import { AriaService } from '../services/aria-service';import { FocusStrategy } from '../services/focus-strategy';import { PageSettingsModel, AggregateRowModel } from '../models/models';import { PageSettings } from '../models/page-settings';import { Sort } from '../actions/sort';import { Page } from '../actions/page';import { Selection } from '../actions/selection';import { Filter } from '../actions/filter';import { Search } from '../actions/search';import { Resize } from '../actions/resize';import { Reorder } from '../actions/reorder';import { RowDD } from '../actions/row-reorder';import { ShowHide } from '../actions/show-hide';import { Scroll } from '../actions/scroll';import { Group } from '../actions/group';import { Print } from '../actions/print';import { DetailRow } from '../actions/detail-row';import { Toolbar } from '../actions/toolbar';import { AggregateRow } from '../models/aggregate';import { Edit } from '../actions/edit';import { Row } from '../models/row';import { ColumnChooser } from '../actions/column-chooser';import { ExcelExport } from '../actions/excel-export';import { PdfExport } from '../actions/pdf-export';import { Clipboard } from '../actions/clipboard';import { CommandColumn } from '../actions/command-column';import { ContextMenu } from '../actions/context-menu';import { BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations';import { ColumnMenu } from '../actions/column-menu';import { CheckState } from './enum'; | ||
import {ComponentModel} from '@syncfusion/ej2-base'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { compile } from '@syncfusion/ej2-base'; import { getEnumValue } from '@syncfusion/ej2-base'; import { CustomSummaryType } from '../base/type'; import { AggregateType, CellType } from '../base/enum'; import { Property, Collection, ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base'; import { ValueFormatter } from '../services/value-formatter'; | ||
import { compile } from '@syncfusion/ej2-base';import { getEnumValue } from '@syncfusion/ej2-base';import { CustomSummaryType } from '../base/type';import { AggregateType, CellType } from '../base/enum';import { Property, Collection, ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import { ValueFormatter } from '../services/value-formatter'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -294,2 +294,3 @@ import { NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base'; | ||
private fltrTemplateFn; | ||
private headerTemplateFn; | ||
private sortDirection; | ||
@@ -325,2 +326,4 @@ /** @hidden */ | ||
/** @hidden */ | ||
getHeaderTemplate(): Function; | ||
/** @hidden */ | ||
getFilterItemTemplate(): Function; | ||
@@ -327,0 +330,0 @@ /** @hidden */ |
@@ -36,2 +36,5 @@ define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-data", "../services/value-formatter", "../base/util"], function (require, exports, ej2_base_1, ej2_data_1, value_formatter_1, util_1) { | ||
} | ||
if (this.headerTemplate) { | ||
this.headerTemplateFn = util_1.templateCompiler(this.headerTemplate); | ||
} | ||
if (this.filter.itemTemplate) { | ||
@@ -96,2 +99,5 @@ this.fltrTemplateFn = util_1.templateCompiler(this.filter.itemTemplate); | ||
}; | ||
Column.prototype.getHeaderTemplate = function () { | ||
return this.headerTemplateFn; | ||
}; | ||
Column.prototype.getFilterItemTemplate = function () { | ||
@@ -98,0 +104,0 @@ return this.fltrTemplateFn; |
@@ -0,0 +0,0 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base'; |
@@ -100,8 +100,12 @@ var __extends = (this && this.__extends) || (function () { | ||
node = this.extendPrepareHeader(column, node); | ||
var result; | ||
var gridObj = this.parent; | ||
var colIndex = gridObj.getColumnIndexByField(column.field); | ||
if (!ej2_base_1.isNullOrUndefined(column.headerTemplate)) { | ||
if (column.headerTemplate.indexOf('#') !== -1) { | ||
if (typeof column.headerTemplate !== 'object' && column.headerTemplate.indexOf('#') !== -1) { | ||
innerDIV.innerHTML = document.querySelector(column.headerTemplate).innerHTML.trim(); | ||
} | ||
else { | ||
innerDIV.innerHTML = column.headerTemplate; | ||
result = column.getHeaderTemplate()(ej2_base_1.extend({ 'index': colIndex }, column), gridObj, 'headerTemplate'); | ||
util_1.appendChildren(node, result); | ||
} | ||
@@ -108,0 +112,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Component, ModuleDeclaration, L10n, EmitType, Browser } from '@syncfusion/ej2-base'; import { createElement, remove, classList, compile as templateCompiler } from '@syncfusion/ej2-base'; import { isNullOrUndefined } from '@syncfusion/ej2-base'; import { Property, Event, NotifyPropertyChanges, INotifyPropertyChanged } from '@syncfusion/ej2-base'; import { PagerDropDown } from './pager-dropdown'; import { NumericContainer } from './numeric-container'; import { PagerMessage } from './pager-message'; import { ExternalMessage } from './external-message'; import { appendChildren } from '../grid/base/util'; | ||
import { Component, ModuleDeclaration, L10n, EmitType, Browser } from '@syncfusion/ej2-base';import { createElement, remove, classList, compile as templateCompiler } from '@syncfusion/ej2-base';import { isNullOrUndefined } from '@syncfusion/ej2-base';import { Property, Event, NotifyPropertyChanges, INotifyPropertyChanged } from '@syncfusion/ej2-base';import { PagerDropDown } from './pager-dropdown';import { NumericContainer } from './numeric-container';import { PagerMessage } from './pager-message';import { ExternalMessage } from './external-message';import { appendChildren } from '../grid/base/util'; | ||
import {ComponentModel} from '@syncfusion/ej2-base'; | ||
@@ -3,0 +3,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 not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
25372005
250882