Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-grids

Package Overview
Dependencies
13
Maintainers
2
Versions
357
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 16.1.35 to 16.1.37

15

CHANGELOG.md

@@ -6,3 +6,16 @@ # Changelog

### Grid
#### Bug Fixes
- Script error thrown while deleting all records with aggregates and `Urladaptor` is resolved.
- `FilterBar` message is not updated while setting filter settings in `setProperties` method is resolved.
- Excel Filter dialog not updated while programmatically filter the column is resolved.
- With virtual scrolling grid refreshes constantly issue is resolved.
## 16.1.35 (2018-04-17)
### Grid
#### Bug Fixes
- Maximum call stack issue while filtering date column with `disablePageWiseAggregates` is resolved.

@@ -12,3 +25,5 @@ - Provided locale support for custom filter labels and column chooser.

- Content rendering delayed while using virtual scrolling with grouping when scrolling horizontally is resolved.
#### Breaking Changes
- The Locale properties such as `OK`, `Filter`, `Clear` are removed instead use `OKButton`, `FilterButton`, `ClearButton`.

@@ -15,0 +30,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 16.1.35
* version : 16.1.37
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

@@ -525,3 +525,3 @@ import { Browser, EventHandler, addClass, attributes, classList, closest, createElement, extend, getValue, isNullOrUndefined, removeClass } from '@syncfusion/ej2-base';

*/
var Matrix = /** @__PURE__ @class */ (function () {
var Matrix = /** @class */ (function () {
function Matrix() {

@@ -587,3 +587,3 @@ this.matrix = [];

*/
var ContentFocus = /** @__PURE__ @class */ (function () {
var ContentFocus = /** @class */ (function () {
function ContentFocus(parent) {

@@ -779,3 +779,3 @@ var _this = this;

*/
var HeaderFocus = /** @__PURE__ @class */ (function (_super) {
var HeaderFocus = /** @class */ (function (_super) {
__extends(HeaderFocus, _super);

@@ -871,3 +871,3 @@ function HeaderFocus(parent) {

}(ContentFocus));
var FixedContentFocus = /** @__PURE__ @class */ (function (_super) {
var FixedContentFocus = /** @class */ (function (_super) {
__extends(FixedContentFocus, _super);

@@ -904,3 +904,3 @@ function FixedContentFocus() {

}(ContentFocus));
var FixedHeaderFocus = /** @__PURE__ @class */ (function (_super) {
var FixedHeaderFocus = /** @class */ (function (_super) {
__extends(FixedHeaderFocus, _super);

@@ -938,3 +938,3 @@ function FixedHeaderFocus() {

/** @hidden */
var SearchBox = /** @__PURE__ @class */ (function () {
var SearchBox = /** @class */ (function () {
function SearchBox(searchBox) {

@@ -967,3 +967,3 @@ this.searchBox = searchBox;

*/
var ColumnChooser = /** @__PURE__ @class */ (function () {
var ColumnChooser = /** @class */ (function () {
/**

@@ -970,0 +970,0 @@ * Constructor for the Grid ColumnChooser module

@@ -517,3 +517,3 @@ import { addClass, attributes, closest, createElement, extend, isNullOrUndefined, removeClass, setStyleAttribute } from '@syncfusion/ej2-base';

*/
var CellRenderer = /** @__PURE__ @class */ (function () {
var CellRenderer = /** @class */ (function () {
function CellRenderer(parent, locator) {

@@ -749,3 +749,3 @@ this.element = createElement('TD', { className: 'e-rowcell', attrs: { role: 'gridcell', tabindex: '-1' } });

*/
var CommandColumnRenderer = /** @__PURE__ @class */ (function (_super) {
var CommandColumnRenderer = /** @class */ (function (_super) {
__extends(CommandColumnRenderer, _super);

@@ -823,3 +823,3 @@ function CommandColumnRenderer(parent, locator) {

*/
var CommandColumn = /** @__PURE__ @class */ (function () {
var CommandColumn = /** @class */ (function () {
function CommandColumn(parent, locator) {

@@ -826,0 +826,0 @@ this.parent = parent;

@@ -433,3 +433,3 @@ import { Draggable, Droppable, addClass, classList, closest, createElement, extend, isNullOrUndefined, remove, removeClass } from '@syncfusion/ej2-base';

*/
var AriaService = /** @__PURE__ @class */ (function () {
var AriaService = /** @class */ (function () {
function AriaService() {

@@ -490,3 +490,3 @@ }

*/
var Group = /** @__PURE__ @class */ (function () {
var Group = /** @class */ (function () {
/**

@@ -493,0 +493,0 @@ * Constructor for Grid group module

@@ -9,3 +9,3 @@ import { Browser, ChildProperty, Component, Event, EventHandler, L10n, NotifyPropertyChanges, Property, append, classList, compile, createElement, extend, getValue, isNullOrUndefined, remove } from '@syncfusion/ej2-base';

*/
var NumericContainer = /** @__PURE__ @class */ (function () {
var NumericContainer = /** @class */ (function () {
/**

@@ -286,3 +286,3 @@ * Constructor for numericContainer module

*/
var PagerMessage = /** @__PURE__ @class */ (function () {
var PagerMessage = /** @class */ (function () {
/**

@@ -536,3 +536,3 @@ * Constructor for externalMessage module

*/
var Pager = /** @__PURE__ @class */ (function (_super) {
var Pager = /** @class */ (function (_super) {
__extends(Pager, _super);

@@ -925,3 +925,3 @@ /**

*/
var PagerDropDown = /** @__PURE__ @class */ (function () {
var PagerDropDown = /** @class */ (function () {
/**

@@ -1004,3 +1004,3 @@ * Constructor for pager module

*/
var ExternalMessage = /** @__PURE__ @class */ (function () {
var ExternalMessage = /** @class */ (function () {
/**

@@ -1361,3 +1361,3 @@ * Constructor for externalMessage module

*/
var Page = /** @__PURE__ @class */ (function () {
var Page = /** @class */ (function () {
/**

@@ -1364,0 +1364,0 @@ * Constructor for the Grid paging module

@@ -456,3 +456,3 @@ import { classList, closest, createElement, extend, isNullOrUndefined, remove, removeClass } from '@syncfusion/ej2-base';

*/
var Reorder = /** @__PURE__ @class */ (function () {
var Reorder = /** @class */ (function () {
/**

@@ -459,0 +459,0 @@ * Constructor for the Grid reorder module

@@ -299,3 +299,3 @@ import { Browser, ChildProperty, EventHandler, Internationalization, closest, compile, createElement, detach, extend, formatUnit, getValue, isNullOrUndefined, merge, setCulture } from '@syncfusion/ej2-base';

*/
var ValueFormatter = /** @__PURE__ @class */ (function () {
var ValueFormatter = /** @class */ (function () {
function ValueFormatter(cultureName) {

@@ -559,3 +559,3 @@ this.intl = new Internationalization();

*/
var Column = /** @__PURE__ @class */ (function () {
var Column = /** @class */ (function () {
function Column(options) {

@@ -744,3 +744,3 @@ var _this = this;

*/
var ColumnWidthService = /** @__PURE__ @class */ (function () {
var ColumnWidthService = /** @class */ (function () {
function ColumnWidthService(parent) {

@@ -908,3 +908,3 @@ this.parent = parent;

*/
var Resize = /** @__PURE__ @class */ (function () {
var Resize = /** @class */ (function () {
/**

@@ -911,0 +911,0 @@ * Constructor for the Grid resize module

@@ -441,3 +441,3 @@ import { Draggable, classList, closest, createElement, extend, isNullOrUndefined, remove } from '@syncfusion/ej2-base';

*/
var RowDD = /** @__PURE__ @class */ (function () {
var RowDD = /** @class */ (function () {
/**

@@ -444,0 +444,0 @@ * Constructor for the Grid print module

@@ -476,3 +476,3 @@ import { Browser, classList, closest, createElement, extend, isNullOrUndefined } from '@syncfusion/ej2-base';

*/
var AriaService = /** @__PURE__ @class */ (function () {
var AriaService = /** @class */ (function () {
function AriaService() {

@@ -533,3 +533,3 @@ }

*/
var Sort = /** @__PURE__ @class */ (function () {
var Sort = /** @class */ (function () {
/**

@@ -536,0 +536,0 @@ * Constructor for Grid sorting module

@@ -522,3 +522,3 @@ import { EventHandler, closest, compile, createElement, extend, getValue, isNullOrUndefined, remove } from '@syncfusion/ej2-base';

*/
var Matrix = /** @__PURE__ @class */ (function () {
var Matrix = /** @class */ (function () {
function Matrix() {

@@ -584,3 +584,3 @@ this.matrix = [];

*/
var ContentFocus = /** @__PURE__ @class */ (function () {
var ContentFocus = /** @class */ (function () {
function ContentFocus(parent) {

@@ -776,3 +776,3 @@ var _this = this;

*/
var HeaderFocus = /** @__PURE__ @class */ (function (_super) {
var HeaderFocus = /** @class */ (function (_super) {
__extends(HeaderFocus, _super);

@@ -868,3 +868,3 @@ function HeaderFocus(parent) {

}(ContentFocus));
var FixedContentFocus = /** @__PURE__ @class */ (function (_super) {
var FixedContentFocus = /** @class */ (function (_super) {
__extends(FixedContentFocus, _super);

@@ -901,3 +901,3 @@ function FixedContentFocus() {

}(ContentFocus));
var FixedHeaderFocus = /** @__PURE__ @class */ (function (_super) {
var FixedHeaderFocus = /** @class */ (function (_super) {
__extends(FixedHeaderFocus, _super);

@@ -935,3 +935,3 @@ function FixedHeaderFocus() {

/** @hidden */
var SearchBox = /** @__PURE__ @class */ (function () {
var SearchBox = /** @class */ (function () {
function SearchBox(searchBox) {

@@ -965,3 +965,3 @@ this.searchBox = searchBox;

*/
var Toolbar$1 = /** @__PURE__ @class */ (function () {
var Toolbar$1 = /** @class */ (function () {
function Toolbar$$1(parent, serviceLocator) {

@@ -968,0 +968,0 @@ this.predefinedItems = {};

{
"name": "@syncfusion/ej2-grids",
"version": "16.1.35",
"version": "16.1.37",
"description": "Essential JS 2 Grid Component",

@@ -11,16 +11,15 @@ "author": "Syncfusion Inc.",

"dependencies": {
"@syncfusion/ej2-base": "~16.1.35",
"@syncfusion/ej2-buttons": "~16.1.35",
"@syncfusion/ej2-calendars": "~16.1.35",
"@syncfusion/ej2-compression": "~16.1.32",
"@syncfusion/ej2-data": "~16.1.32",
"@syncfusion/ej2-dropdowns": "~16.1.35",
"@syncfusion/ej2-excel-export": "~16.1.32",
"@syncfusion/ej2-file-utils": "~16.1.32",
"@syncfusion/ej2-inputs": "~16.1.35",
"@syncfusion/ej2-lists": "~16.1.35",
"@syncfusion/ej2-navigations": "~16.1.35",
"@syncfusion/ej2-pdf-export": "~16.1.32",
"@syncfusion/ej2-popups": "~16.1.32",
"gulp": "^3.9.1"
"@syncfusion/ej2-base": "~16.1.37",
"@syncfusion/ej2-data": "~16.1.37",
"@syncfusion/ej2-navigations": "~16.1.37",
"@syncfusion/ej2-inputs": "~16.1.37",
"@syncfusion/ej2-calendars": "~16.1.37",
"@syncfusion/ej2-dropdowns": "~16.1.37",
"@syncfusion/ej2-popups": "~16.1.37",
"@syncfusion/ej2-buttons": "~16.1.37",
"@syncfusion/ej2-lists": "~16.1.37",
"@syncfusion/ej2-excel-export": "~16.1.37",
"@syncfusion/ej2-pdf-export": "~16.1.37",
"@syncfusion/ej2-file-utils": "~16.1.37",
"@syncfusion/ej2-compression": "~16.1.37"
},

@@ -27,0 +26,0 @@ "devDependencies": {

@@ -0,2 +1,5 @@

/**
* Export Grid and Pager
*/
export * from './grid/base/grid';
export * from './pager/pager';

@@ -98,2 +98,3 @@ import { FilterSettings } from '../base/grid';

private refreshFilterSettings();
private getFilterBarElement(col);
/**

@@ -140,2 +141,3 @@ * @private

private filterHandler(args);
private addFilteredClass();
}

@@ -246,2 +246,12 @@ define(["require", "exports", "@syncfusion/ej2-base", "../base/util", "@syncfusion/ej2-base", "@syncfusion/ej2-data", "../base/constant", "../base/enum", "../renderer/row-renderer", "../models/cell", "../models/row", "../renderer/filter-cell-renderer", "../base/util", "../renderer/filter-menu-renderer", "../actions/checkbox-filter", "../actions/excel-filter"], function (require, exports, ej2_base_1, util_1, ej2_base_2, ej2_data_1, events, enum_1, row_renderer_1, cell_1, row_1, filter_cell_renderer_1, util_2, filter_menu_renderer_1, checkbox_filter_1, excel_filter_1) {

}
this.actualPredicate[this.fieldName] = [{
field: this.fieldName,
predicate: predicate,
matchCase: matchCase,
ignoreAccent: ignoreAccent,
operator: this.operator,
value: this.value,
type: this.column.type
}];
this.addFilteredClass();
this.updateModel();

@@ -282,2 +292,3 @@ };

this.parent.refreshHeader();
this.refreshFilterSettings();
break;

@@ -301,4 +312,3 @@ }

}
var selector = '[id=\'' + this.filterSettings.columns[i].field + '_filterBarcell\']';
var filterElement = this.element.querySelector(selector);
var filterElement = this.getFilterBarElement(this.filterSettings.columns[i].field);
if (filterElement) {

@@ -308,4 +318,22 @@ filterElement.value = this.filterSettings.columns[i].value;

}
if (this.filterSettings.columns.length === 0) {
var col = this.parent.getColumns();
for (var i = 0; i < col.length; i++) {
var filterElement = this.getFilterBarElement(col[i].field);
if (filterElement && filterElement.value !== '') {
filterElement.value = '';
delete this.values[col[i].field];
}
}
}
}
};
Filter.prototype.getFilterBarElement = function (col) {
var selector = '[id=\'' + col + '_filterBarcell\']';
var filterElement;
if (selector && !ej2_base_1.isNullOrUndefined(this.element)) {
filterElement = this.element.querySelector(selector);
}
return filterElement;
};
Filter.prototype.refreshFilter = function () {

@@ -390,2 +418,3 @@ this.refreshFilterSettings();

fCell = this.parent.getHeaderContent().querySelector(selector);
fCell.value = '';
delete this.values[field];

@@ -401,2 +430,8 @@ }

this.isRemove = true;
if (this.actualPredicate[field]) {
delete this.actualPredicate[field];
}
if (this.values[field]) {
delete this.values[field];
}
this.parent.notify(events.modelChanged, {

@@ -710,2 +745,5 @@ requestType: 'filtering', type: events.actionBegin

}
if (this.values[args.field]) {
delete this.values[args.field];
}
var iconClass = this.parent.showColumnMenu ? '.e-columnmenu' : '.e-icon-filter';

@@ -727,2 +765,9 @@ filterIconElement = this.parent.getColumnHeaderByField(args.field).querySelector(iconClass);

};
Filter.prototype.addFilteredClass = function () {
var filterIconElement;
filterIconElement = this.parent.getColumnHeaderByField(this.fieldName).querySelector('.e-icon-filter');
if (filterIconElement) {
filterIconElement.classList.add('e-filtered');
}
};
return Filter;

@@ -729,0 +774,0 @@ }());

@@ -40,3 +40,3 @@ import { IGrid, IRenderer, NotifyArgs, VirtualInfo, IModelGenerator } from '../base/interface';

private getPageFromTop(sTop, info);
private getTranslateY(sTop, cHeight, info?);
private getTranslateY(sTop, cHeight, info?, isOnenter?);
getOffset(block: number): number;

@@ -79,3 +79,3 @@ private onEntered();

table: HTMLElement;
renderWrapper(): void;
renderWrapper(height?: number): void;
renderPlaceHolder(position?: string): void;

@@ -82,0 +82,0 @@ adjustTable(xValue: number, yValue: number): void;

@@ -36,3 +36,3 @@ var __extends = (this && this.__extends) || (function () {

this.virtualEle.content = this.content = this.getPanel().firstChild;
this.virtualEle.renderWrapper();
this.virtualEle.renderWrapper(this.parent.height);
this.virtualEle.renderPlaceHolder();

@@ -189,3 +189,3 @@ this.virtualEle.wrapper.style.position = 'absolute';

};
VirtualContentRenderer.prototype.getTranslateY = function (sTop, cHeight, info) {
VirtualContentRenderer.prototype.getTranslateY = function (sTop, cHeight, info, isOnenter) {
if (info === undefined) {

@@ -198,3 +198,13 @@ info = { page: this.getPageFromTop(sTop, {}) };

var endTranslate = this.getOffset(info.blockIndexes[info.blockIndexes.length - 1]);
return translate > sTop ? this.getOffset(block - 1) : endTranslate < (sTop + cHeight) ? this.getOffset(block + 1) : translate;
if (isOnenter) {
info = this.prevInfo;
}
var result = translate > sTop ?
this.getOffset(block - 1) : endTranslate < (sTop + cHeight) ? this.getOffset(block + 1) : translate;
var blockHeight = this.offsets[info.blockIndexes[info.blockIndexes.length - 1]] -
this.tmpOffsets[info.blockIndexes[0]];
if (result + blockHeight > this.offsets[this.getTotalBlocks()]) {
result -= (result + blockHeight) - this.offsets[this.getTotalBlocks()];
}
return result;
};

@@ -211,3 +221,3 @@ VirtualContentRenderer.prototype.getOffset = function (block) {

var x = _this.getColumnOffset(xAxis ? _this.vgenerator.getColumnIndexes()[0] - 1 : _this.prevInfo.columnIndexes[0] - 1);
var y = _this.getTranslateY(e.top, height, xAxis && top === e.top ? _this.prevInfo : undefined);
var y = _this.getTranslateY(e.top, height, xAxis && top === e.top ? _this.prevInfo : undefined, true);
_this.virtualEle.adjustTable(x, Math.min(y, _this.offsets[_this.maxBlock]));

@@ -336,4 +346,4 @@ if (_this.parent.enableColumnVirtualization) {

}
VirtualElementHandler.prototype.renderWrapper = function () {
this.wrapper = ej2_base_1.createElement('div', { className: 'e-virtualtable' });
VirtualElementHandler.prototype.renderWrapper = function (height) {
this.wrapper = ej2_base_1.createElement('div', { className: 'e-virtualtable', styles: "min-height:" + ej2_base_1.formatUnit(height) });
this.wrapper.appendChild(this.table);

@@ -340,0 +350,0 @@ this.content.appendChild(this.wrapper);

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 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 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 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 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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc