Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-grids

Package Overview
Dependencies
Maintainers
2
Versions
369
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-grids - npm Package Compare versions

Comparing version 16.1.26 to 16.1.28

14

CHANGELOG.md

@@ -7,2 +7,12 @@ # Changelog

#### Bug Fixes
- Minimum height for edit dialog is provided.
- Identity column is not disabled when adding resolved.
- Script error thrown when destroy the Grid with custom toolbar template issue resolved.
- Batch editing save action shows empty grid issue resolved.
- `currentViewData` is not changed in remote data editing issue resolved.
### Grid
#### New Features

@@ -14,2 +24,6 @@

#### Bug Fixes
- Angular and React `enablePersistence` issue resolved.
#### Breaking Changes

@@ -16,0 +30,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 16.1.24
* version : 16.1.26
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved.

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

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

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

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

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

@@ -443,3 +443,4 @@ define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "../base/enum", "../base/util", "../base/constant", "../renderer/row-renderer", "../renderer/cell-renderer", "../models/cell", "../services/row-model-generator"], function (require, exports, ej2_base_1, ej2_base_2, ej2_base_3, enum_1, util_1, events, row_renderer_1, cell_renderer_1, cell_1, row_model_generator_1) {

}
else if (isAdd && !cols[i].template && cols[i].visible && cols[i].allowEditing) {
else if (isAdd && !cols[i].template && cols[i].visible && cols[i].allowEditing &&
!(cols[i].isIdentity && cols[i].isPrimaryKey)) {
return i;

@@ -495,3 +496,4 @@ }

}
if ((keys[0] === col.field && !row.classList.contains('e-insertedrow')) || col.template || col.columns) {
if ((keys[0] === col.field && !row.classList.contains('e-insertedrow')) || col.template || col.columns ||
(col.isPrimaryKey && col.isIdentity)) {
return;

@@ -498,0 +500,0 @@ }

@@ -543,3 +543,3 @@ define(["require", "exports", "@syncfusion/ej2-base", "../base/util", "@syncfusion/ej2-base", "@syncfusion/ej2-data", "@syncfusion/ej2-buttons", "../base/constant", "../services/value-formatter", "../base/util", "@syncfusion/ej2-popups", "@syncfusion/ej2-inputs", "@syncfusion/ej2-popups", "../base/util"], function (require, exports, ej2_base_1, util_1, ej2_base_2, ej2_data_1, ej2_buttons_1, events, value_formatter_1, util_2, ej2_popups_1, ej2_inputs_1, ej2_popups_2, util_3) {

value = isForeignKey ? ej2_base_1.getValue(column.foreignKeyValue, util_2.getForeignData(column, {}, value, foreignKeyData)[0]) : value;
ej2_base_1.setValue(field, value || null, obj);
ej2_base_1.setValue(field, ej2_base_1.isNullOrUndefined(value) ? null : value, obj);
result.push(obj);

@@ -546,0 +546,0 @@ }

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

var submenu = this.menu.querySelector('.e-submenu');
submenu.classList.remove('e-selected');
if (!ej2_base_2.isNullOrUndefined(submenu)) {
submenu.classList.remove('e-selected');
}
this.isCMenuOpen = false;

@@ -154,0 +156,0 @@ this.destroyCMenu();

@@ -35,2 +35,3 @@ import { IGrid, NotifyArgs } from '../base/interface';

private edFail(e);
private updateCurrentViewData(data);
private editSuccess(e, args);

@@ -37,0 +38,0 @@ private editFailure(e);

@@ -145,3 +145,3 @@ define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "../base/util", "../base/constant", "../renderer/row-renderer"], function (require, exports, ej2_base_1, ej2_base_2, util_1, events, row_renderer_1) {

else {
this.editSuccess({}, args);
this.editSuccess(args.data, args);
}

@@ -155,13 +155,14 @@ };

};
NormalEdit.prototype.updateCurrentViewData = function (data) {
this.parent.getCurrentViewRecords()[this.editRowIndex] = data;
};
NormalEdit.prototype.editSuccess = function (e, args) {
if (e.result) {
this.parent.trigger(events.beforeDataBound, e);
args.data = e.result;
if (!ej2_base_2.isNullOrUndefined(e)) {
args.data = e;
}
else {
this.parent.trigger(events.beforeDataBound, args);
}
this.parent.trigger(events.beforeDataBound, args);
args.type = events.actionComplete;
this.parent.isEdit = false;
this.refreshRow(args.data);
this.updateCurrentViewData(args.data);
this.parent.trigger(events.actionComplete, args);

@@ -168,0 +169,0 @@ if (!(this.parent.isCheckBoxSelection || this.parent.selectionSettings.type === 'Multiple')

@@ -57,3 +57,3 @@ define(["require", "exports", "@syncfusion/ej2-base", "../base/util", "../base/constant"], function (require, exports, ej2_base_1, util_1, events) {

columns = ej2_base_1.isNullOrUndefined(columns) ? this.parent.getColumns() : columns;
if (this.parent.getSelectedRecords().length) {
if (this.parent.allowSelection && this.parent.getSelectedRecords().length) {
this.parent.clearSelection();

@@ -60,0 +60,0 @@ }

@@ -48,4 +48,9 @@ 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) {

if (!this.toolbar.isDestroyed) {
if (!this.toolbar.element) {
this.parent.destroyTemplate(['toolbarTemplate']);
}
else {
this.toolbar.destroy();
}
this.unWireEvent();
this.toolbar.destroy();
this.removeEventListener();

@@ -162,7 +167,8 @@ ej2_base_2.remove(this.element);

var gID = this.gridID;
if (!args.item) {
gObj.trigger(events.toolbarClick, args);
ej2_base_1.extend(args, { cancel: false });
gObj.trigger(events.toolbarClick, args);
if (args.cancel) {
return;
}
switch (args.item.id) {
switch (!ej2_base_1.isNullOrUndefined(args.item) && args.item.id) {
case gID + '_print':

@@ -199,4 +205,2 @@ gObj.print();

break;
default:
gObj.trigger(events.toolbarClick, args);
}

@@ -203,0 +207,0 @@ };

@@ -361,2 +361,3 @@ import { Component, NumberFormatOptions, DateFormatOptions, EmitType, KeyboardEventArgs, L10n } from '@syncfusion/ej2-base';

getState?(): Object;
destroyTemplate?(templateName: string[]): void;
}

@@ -363,0 +364,0 @@ /** @hidden */

@@ -282,2 +282,5 @@ define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-data", "../models/column", "@syncfusion/ej2-popups"], function (require, exports, ej2_base_1, ej2_base_2, ej2_base_3, ej2_data_1, column_1, ej2_popups_1) {

}
else if (type === 'add' && col.isIdentity && col.isPrimaryKey) {
return false;
}
else {

@@ -284,0 +287,0 @@ if (isOldRow && !col.allowEditing && !col.isIdentity && !col.isPrimaryKey) {

@@ -36,4 +36,3 @@ import { IGrid, IFilterMUI } from '../base/interface';

read(element: Element, column: Column, filterOptr: string, filterObj: Filter): void;
private ddActionComplete(e);
private openPopup(args);
}

@@ -12,2 +12,3 @@ define(["require", "exports", "../base/util", "@syncfusion/ej2-data", "@syncfusion/ej2-dropdowns", "@syncfusion/ej2-base"], function (require, exports, util_1, ej2_data_1, ej2_dropdowns_1, ej2_base_1) {

var data;
var fields = args.column.field;
this.elem = ej2_base_1.createElement('input', { className: 'e-flmenu-input', id: 'bool-ui-' + args.column.uid });

@@ -26,3 +27,5 @@ args.target.appendChild(this.elem);

open: this.openPopup.bind(this),
actionComplete: this.ddActionComplete
actionComplete: function (e) {
e.result = ej2_data_1.DataUtil.distinct(e.result, fields, true);
}
});

@@ -40,5 +43,2 @@ this.dropInstance.appendTo(this.elem);

};
BooleanFilterUI.prototype.ddActionComplete = function (e) {
e.result = util_1.distinctStringValues(e.result);
};
BooleanFilterUI.prototype.openPopup = function (args) {

@@ -45,0 +45,0 @@ util_1.getZIndexCalcualtion(args, this.dialogObj);

@@ -48,3 +48,2 @@ define(["require", "exports", "@syncfusion/ej2-popups", "@syncfusion/ej2-base", "../base/constant", "../base/util"], function (require, exports, ej2_popups_1, ej2_base_1, events, util_1) {

this.dialogObj.appendTo(this.dialog);
this.dialogObj.element.style.maxHeight = '400px';
util_1.changeButtonType(this.dialogObj.element);

@@ -51,0 +50,0 @@ };

@@ -120,3 +120,4 @@ define(["require", "exports", "@syncfusion/ej2-base", "./inline-edit-renderer", "./batch-edit-renderer", "./dialog-edit-renderer", "@syncfusion/ej2-base", "../base/enum", "../services/row-model-generator"], function (require, exports, ej2_base_1, inline_edit_renderer_1, batch_edit_renderer_1, dialog_edit_renderer_1, ej2_base_2, enum_1, row_model_generator_1) {

}
if ((col.isPrimaryKey || col.isIdentity) && args.requestType === 'beginEdit') {
if ((col.isPrimaryKey || col.isIdentity) && args.requestType === 'beginEdit' ||
(col.isIdentity && args.requestType === 'add')) {
input.setAttribute('disabled', 'true');

@@ -123,0 +124,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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc