Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-grids

Package Overview
Dependencies
Maintainers
3
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 26.2.4 to 26.2.5

dist/ej2-grids.min.js

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 26.2.4
* version : 26.2.5
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

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

{
"_from": "@syncfusion/ej2-grids@*",
"_id": "@syncfusion/ej2-grids@26.1.42",
"_id": "@syncfusion/ej2-grids@26.2.4",
"_inBundle": false,
"_integrity": "sha512-fhRiZXTkunIUUU2Li3e37oqwgfxGXjQoKy0h6+If1i5XJ8fPJ/jj/uaAcVn1mWDPUZ6mhDcJu4vGc1LfImia7g==",
"_integrity": "sha512-m3ZzF2c8WbA7trR7u8Ov/9yCmBLLwCLtA8f8tpBacS3t5MynO5pzMcCQ13/BgfsWczFWnw9GzZYnQXZFtIDjgA==",
"_location": "/@syncfusion/ej2-grids",

@@ -32,4 +32,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-grids/-/ej2-grids-26.1.42.tgz",
"_shasum": "55349d00dd87ba6e9a1349462401f5ca736800c7",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-grids/-/ej2-grids-26.2.4.tgz",
"_shasum": "5e8d091257ecd50a01177bc65b6d2672356d4209",
"_spec": "@syncfusion/ej2-grids@*",

@@ -42,17 +42,17 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~26.2.4",
"@syncfusion/ej2-buttons": "~26.2.4",
"@syncfusion/ej2-calendars": "~26.2.4",
"@syncfusion/ej2-compression": "~26.2.4",
"@syncfusion/ej2-data": "~26.2.4",
"@syncfusion/ej2-dropdowns": "~26.2.4",
"@syncfusion/ej2-excel-export": "~26.2.4",
"@syncfusion/ej2-file-utils": "~26.2.4",
"@syncfusion/ej2-inputs": "~26.2.4",
"@syncfusion/ej2-lists": "~26.2.4",
"@syncfusion/ej2-navigations": "~26.2.4",
"@syncfusion/ej2-notifications": "~26.2.4",
"@syncfusion/ej2-pdf-export": "~26.2.4",
"@syncfusion/ej2-popups": "~26.2.4",
"@syncfusion/ej2-splitbuttons": "~26.2.4"
"@syncfusion/ej2-base": "~26.2.5",
"@syncfusion/ej2-buttons": "~26.2.5",
"@syncfusion/ej2-calendars": "~26.2.5",
"@syncfusion/ej2-compression": "~26.2.5",
"@syncfusion/ej2-data": "~26.2.5",
"@syncfusion/ej2-dropdowns": "~26.2.5",
"@syncfusion/ej2-excel-export": "~26.2.5",
"@syncfusion/ej2-file-utils": "~26.2.5",
"@syncfusion/ej2-inputs": "~26.2.5",
"@syncfusion/ej2-lists": "~26.2.5",
"@syncfusion/ej2-navigations": "~26.2.5",
"@syncfusion/ej2-notifications": "~26.2.5",
"@syncfusion/ej2-pdf-export": "~26.2.5",
"@syncfusion/ej2-popups": "~26.2.5",
"@syncfusion/ej2-splitbuttons": "~26.2.5"
},

@@ -83,5 +83,5 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "26.2.4",
"version": "26.2.5",
"sideEffects": false,
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
}

@@ -69,9 +69,14 @@ import { EventHandler, detach, formatUnit, Browser, closest } from '@syncfusion/ej2-base';

Resize.prototype.autoFit = function () {
var newarray = this.parent.getColumns().filter(function (c) { return c.autoFit === true; })
.map(function (c) { return c.field || c.headerText; });
var isMaxWidthColumnEnable = false;
var newarray = this.parent.getColumns().filter(function (c) {
if (!isNullOrUndefined(c.maxWidth)) {
isMaxWidthColumnEnable = true;
}
return c.autoFit === true;
}).map(function (c) { return c.field || c.headerText; });
if (newarray.length > 0) {
this.autoFitColumns(newarray);
}
if (this.parent.allowResizing && (this.parent.resizeSettings.mode === 'Auto' || (this.parent.resizeSettings.mode === 'Normal' &&
!this.parent.autoFit && newarray.length === 0))) {
if (this.parent.allowResizing && isMaxWidthColumnEnable && (this.parent.resizeSettings.mode === 'Auto' ||
(this.parent.resizeSettings.mode === 'Normal' && !this.parent.autoFit && newarray.length === 0))) {
this.widthService.setWidthToTable();

@@ -78,0 +83,0 @@ }

@@ -164,2 +164,5 @@ import { Draggable, isNullOrUndefined } from '@syncfusion/ej2-base';

_this.processArgs(target);
if (gObj.enableVirtualization && isNullOrUndefined(_this.rows[0])) {
classList(cloneElement, ['e-notallowedcur'], ['e-movecur']);
}
var args = {

@@ -317,2 +320,5 @@ rows: _this.rows, target: target, draggableType: 'rows',

_this.processArgs(target);
if (gObj.enableVirtualization && isNullOrUndefined(_this.rows[0])) {
return;
}
var args = {

@@ -348,3 +354,3 @@ target: target, draggableType: 'rows',

}
if (gObj.enableVirtualization && (!_this.parent.allowGrouping || !gObj.groupSettings.columns.length)) {
if (gObj.enableVirtualization && !gObj.sortSettings.columns.length && !gObj.filterSettings.columns.length && (!_this.parent.allowGrouping || !gObj.groupSettings.columns.length)) {
gObj.refresh();

@@ -483,3 +489,8 @@ }

var tbody = gObj.createElement(literals.tbody, { attrs: { role: 'rowgroup' } });
this.parent.clearSelection();
if (!gObj.selectionSettings.persistSelection && Object.keys(gObj.selectionModule.selectedRowState).length === 0) {
this.parent.clearSelection();
}
else {
this.parent.clearRowSelection();
}
var targetRow = this.refreshRowTarget(args);

@@ -512,3 +523,8 @@ for (var i = 0, len = tr.length; i < len; i++) {

var tbody = gObj.getContentTable().querySelector(literals.tbody);
this.parent.clearSelection();
if (!gObj.selectionSettings.persistSelection && Object.keys(gObj.selectionModule.selectedRowState).length === 0) {
this.parent.clearSelection();
}
else {
this.parent.clearRowSelection();
}
var targetRow = this.refreshRowTarget(args);

@@ -968,3 +984,3 @@ this.refreshRow(args, tbody, targetRow);

var gObj = this.parent;
if (!gObj.sortSettings.columns.length && !gObj.groupSettings.columns.length && !gObj.filterSettings.columns.length) {
if (!gObj.groupSettings.columns.length) {
//Todo: drag and drop mapper & BatchChanges

@@ -1024,3 +1040,3 @@ var skip = gObj.allowPaging ?

|| gObj.getSelectedRecords().length === 0) {
if (gObj.enableVirtualization || (gObj.enableInfiniteScrolling && gObj.infiniteScrollSettings.enableCache)) {
if (gObj.enableInfiniteScrolling && gObj.infiniteScrollSettings.enableCache) {
this.rows = [this.startedRow];

@@ -1027,0 +1043,0 @@ }

@@ -816,5 +816,5 @@ import { IPosition, IGrid, IRow, IExpandedRow, PdfExportProperties, ExcelExportProperties, RowDropEventArgs } from './interface';

* @param { IGrid } grid - Defines parent instance
* @returns { boolean } - Returns is virtual sorting
* @returns { boolean } - Returns is virtual
*/
export declare function checkVirtualSort(grid: IGrid): boolean;
export declare function checkIsVirtual(grid: IGrid): boolean;
/**

@@ -821,0 +821,0 @@ *

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

DefaultEditCell.prototype.read = function (element) {
return element.value;
if (element.type === 'hidden' && !isNullOrUndefined(element.ej2_instances[0]) &&
!isNullOrUndefined(element.ej2_instances[0].textarea)) {
return element.ej2_instances[0].value;
}
else {
return element.value;
}
};

@@ -38,0 +44,0 @@ DefaultEditCell.prototype.write = function (args) {

@@ -222,3 +222,3 @@ import { isNullOrUndefined, extend, addClass, removeClass } from '@syncfusion/ej2-base';

if (prevRowCell && (prevRowCell.isRowSpanned || prevRowCell.rowSpanRange > 1) && prevRowCell.visible) {
if (!isRtl && !currentRowCell.isRowSpanned) {
if (!isRtl && (!currentRowCell.isRowSpanned || prevRowCell.rowSpanRange > currentRowCell.rowSpanRange)) {
td.classList.add('e-rowcell-firstchild');

@@ -236,3 +236,3 @@ }

if (nextRowCell && (nextRowCell.isRowSpanned || nextRowCell.rowSpanRange > 1) && nextRowCell.visible) {
if (isRtl && !currentRowCell.isRowSpanned) {
if (isRtl && (!currentRowCell.isRowSpanned || nextRowCell.rowSpanRange > currentRowCell.rowSpanRange)) {
td.classList.add('e-rowcell-lastchild');

@@ -239,0 +239,0 @@ }

import { Browser, isNullOrUndefined } from '@syncfusion/ej2-base';
import { getRowIndexFromElement, isGroupAdaptive, checkVirtualSort, getVisiblePage } from '../base/util';
import { getRowIndexFromElement, isGroupAdaptive, checkIsVirtual, getVisiblePage } from '../base/util';
import { RowModelGenerator } from '../services/row-model-generator';

@@ -53,3 +53,4 @@ import { GroupModelGenerator } from '../services/group-model-generator';

var info = e.virtualInfo = e.virtualInfo
|| (e.requestType === 'sorting' && checkVirtualSort(this.parent) && this.prevInfo) || this.getData();
|| ((e.requestType === 'sorting' || e.requestType === 'delete') && checkIsVirtual(this.parent) && this.prevInfo)
|| this.getData();
this.prevInfo = info;

@@ -86,3 +87,4 @@ var xAxis = info.sentinelInfo && info.sentinelInfo.axis === 'X';

this_1.getStartIndex(values[parseInt(i.toString(), 10)], data);
startIdx = isGroupAdaptive(this_1.parent) && !this_1.parent.vcRows.length && e.requestType === 'sorting' ? 0 : startIdx;
startIdx = isGroupAdaptive(this_1.parent) && !this_1.parent.vcRows.length && (e.requestType === 'sorting'
|| e.requestType === 'delete') ? 0 : startIdx;
var rows = this_1.rowModelGenerator.generateRows(data, {

@@ -105,3 +107,3 @@ virtualInfo: info, startIndex: startIdx

}
else if (e.requestType === 'sorting' && checkVirtualSort(this_1.parent)) {
else if ((e.requestType === 'sorting' || e.requestType === 'delete') && checkIsVirtual(this_1.parent)) {
var visiblePage = getVisiblePage(info.blockIndexes);

@@ -108,0 +110,0 @@ var prevEndIndex = 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 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

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

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