@syncfusion/ej2-grids
Advanced tools
Comparing version 26.2.5 to 26.2.7
/*! | ||
* filename: index.d.ts | ||
* version : 26.2.5 | ||
* version : 26.2.7 | ||
* 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.2.4", | ||
"_id": "@syncfusion/ej2-grids@26.2.5", | ||
"_inBundle": false, | ||
"_integrity": "sha512-m3ZzF2c8WbA7trR7u8Ov/9yCmBLLwCLtA8f8tpBacS3t5MynO5pzMcCQ13/BgfsWczFWnw9GzZYnQXZFtIDjgA==", | ||
"_integrity": "sha512-Jbj+i2UgzRrR/pvqtAa3DBRKGUYc5FpJzp0Sk8jfSWTqdevccVhFtyHK6rP5Pi4w9nla6/AKHdYLi6Y2DF3S+A==", | ||
"_location": "/@syncfusion/ej2-grids", | ||
@@ -32,4 +32,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-grids/-/ej2-grids-26.2.4.tgz", | ||
"_shasum": "5e8d091257ecd50a01177bc65b6d2672356d4209", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-grids/-/ej2-grids-26.2.5.tgz", | ||
"_shasum": "c9bc361db5baa4fb0e91ba9d31a795151c4e5cf2", | ||
"_spec": "@syncfusion/ej2-grids@*", | ||
@@ -43,7 +43,7 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included", | ||
"@syncfusion/ej2-base": "~26.2.5", | ||
"@syncfusion/ej2-buttons": "~26.2.5", | ||
"@syncfusion/ej2-buttons": "~26.2.7", | ||
"@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-dropdowns": "~26.2.7", | ||
"@syncfusion/ej2-excel-export": "~26.2.5", | ||
@@ -53,3 +53,3 @@ "@syncfusion/ej2-file-utils": "~26.2.5", | ||
"@syncfusion/ej2-lists": "~26.2.5", | ||
"@syncfusion/ej2-navigations": "~26.2.5", | ||
"@syncfusion/ej2-navigations": "~26.2.7", | ||
"@syncfusion/ej2-notifications": "~26.2.5", | ||
@@ -84,5 +84,5 @@ "@syncfusion/ej2-pdf-export": "~26.2.5", | ||
"typings": "index.d.ts", | ||
"version": "26.2.5", | ||
"version": "26.2.7", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -129,2 +129,3 @@ import { removeClass, addClass, extend, EventHandler } from '@syncfusion/ej2-base'; | ||
childGrid = new Grid(this.getGridModel(gObj, rowObj, gObj.printMode)); | ||
childGrid.root = gObj.root ? gObj.root : gObj; | ||
this.childRefs.push(childGrid); | ||
@@ -142,6 +143,7 @@ if (childGrid.query) { | ||
}; | ||
if (gObj.isReact) { | ||
if (gObj.isReact || gObj.isVue) { | ||
childGrid.parentDetails.parentInstObj = gObj; | ||
} | ||
else if (gObj.parentDetails && gObj.parentDetails.parentInstObj && gObj.parentDetails.parentInstObj.isReact) { | ||
else if (gObj.parentDetails && gObj.parentDetails.parentInstObj && (gObj.parentDetails.parentInstObj.isReact | ||
|| gObj.parentDetails.parentInstObj.isVue)) { | ||
childGrid.parentDetails.parentInstObj = gObj.parentDetails.parentInstObj; | ||
@@ -148,0 +150,0 @@ } |
@@ -117,3 +117,4 @@ import { extend, select } from '@syncfusion/ej2-base'; | ||
else if (!this.parent.enableVirtualization) { | ||
this.previousData = extend({}, {}, gObj.getCurrentViewRecords()[this.rowIndex], true); | ||
this.previousData = extend({}, {}, this.parent.getForeignKeyColumns().length ? this.parent.getRowObjectFromUID(tr.getAttribute('data-uid')).data : | ||
gObj.getCurrentViewRecords()[this.rowIndex], true); | ||
} | ||
@@ -120,0 +121,0 @@ var editedData = extend({}, {}, e.data || this.previousData, true); |
@@ -60,2 +60,3 @@ import { extend } from '@syncfusion/ej2-base'; | ||
this.pagerObj = new Pager(pagerObj, undefined, this.parent); | ||
this.pagerObj.root = gObj.root ? gObj.root : gObj; | ||
this.pagerObj.hasParent = true; | ||
@@ -250,3 +251,4 @@ this.pagerObj.on(events.pagerRefresh, this.renderReactPagerTemplate, this); | ||
this.pagerObj.isReact = this.parent.isReact; | ||
this.pagerObj.isVue = this.parent.isVue; | ||
this.pagerObj.isVue = this.parent.isVue || (this.parent.parentDetails && this.parent.parentDetails.parentInstObj | ||
&& this.parent.parentDetails.parentInstObj.isVue); | ||
this.pagerObj.appendTo(this.element); | ||
@@ -253,0 +255,0 @@ this.isInitialLoad = false; |
@@ -69,6 +69,7 @@ import { EventHandler, detach, formatUnit, Browser, closest } from '@syncfusion/ej2-base'; | ||
Resize.prototype.autoFit = function () { | ||
var isMaxWidthColumnEnable = false; | ||
var newarray = this.parent.getColumns().filter(function (c) { | ||
var cols = this.parent.getColumns(); | ||
var isMaxWidthCount = 0; | ||
var newarray = cols.filter(function (c) { | ||
if (!isNullOrUndefined(c.maxWidth)) { | ||
isMaxWidthColumnEnable = true; | ||
isMaxWidthCount++; | ||
} | ||
@@ -80,5 +81,5 @@ return c.autoFit === true; | ||
} | ||
if (this.parent.allowResizing && isMaxWidthColumnEnable && (this.parent.resizeSettings.mode === 'Auto' || | ||
if (this.parent.allowResizing && isMaxWidthCount && (this.parent.resizeSettings.mode === 'Auto' || | ||
(this.parent.resizeSettings.mode === 'Normal' && !this.parent.autoFit && newarray.length === 0))) { | ||
this.widthService.setWidthToTable(); | ||
this.widthService.setWidthToTable(isMaxWidthCount !== cols.length); | ||
} | ||
@@ -185,3 +186,3 @@ else if (this.parent.autoFit && this.parent.resizeSettings.mode === 'Auto') { | ||
var tableWidth = headerTable.offsetWidth; | ||
var contentwidth = (gObj.getContent().scrollWidth); | ||
var contentwidth = contentTable.parentElement.scrollWidth; | ||
if (contentwidth > tableWidth) { | ||
@@ -188,0 +189,0 @@ if (!isNullOrUndefined(contentTable.querySelector('.e-emptyrow'))) { |
@@ -187,3 +187,3 @@ import { Dialog } from '@syncfusion/ej2-popups'; | ||
else { | ||
appendChildren(form, this.parent.getEditTemplate()(dummyData, this.parent, 'editSettingsTemplate', editTemplateID)); | ||
appendChildren(form, this.parent.getEditTemplate()(dummyData, this.parent, 'editSettingsTemplate', editTemplateID, null, null, null, gObj.root)); | ||
} | ||
@@ -190,0 +190,0 @@ var setRules = function () { |
@@ -167,3 +167,3 @@ import { isNullOrUndefined, closest, extend } from '@syncfusion/ej2-base'; | ||
else { | ||
var template = col.getEditTemplate()(extend({ 'index': args.rowIndex }, tempData), this.parent, 'editTemplate', tempID); | ||
var template = col.getEditTemplate()(extend({ 'index': args.rowIndex }, tempData), this.parent, 'editTemplate', tempID, null, null, null, gObj.root); | ||
appendChildren(input, template); | ||
@@ -170,0 +170,0 @@ } |
@@ -163,3 +163,3 @@ import { isNullOrUndefined, addClass, extend } from '@syncfusion/ej2-base'; | ||
else { | ||
appendChildren(form, this.parent.getEditTemplate()(dummyData, this.parent, 'editSettingsTemplate', editTemplateID)); | ||
appendChildren(form, this.parent.getEditTemplate()(dummyData, this.parent, 'editSettingsTemplate', editTemplateID, null, null, null, this.parent.root)); | ||
} | ||
@@ -166,0 +166,0 @@ // eslint-disable-next-line |
@@ -52,3 +52,3 @@ var __extends = (this && this.__extends) || (function () { | ||
if (!isNullOrUndefined(column.headerTemplate)) { | ||
appendChildren(div, column.getHeaderTemplate()(column, this.parent, 'headerTemplate')); | ||
appendChildren(div, column.getHeaderTemplate()(column, this.parent, 'headerTemplate', null, null, null, null, this.parent.root)); | ||
} | ||
@@ -55,0 +55,0 @@ else { |
@@ -26,4 +26,4 @@ import { IGrid } from '../base/interface'; | ||
getTableWidth(columns: Column[]): number | string; | ||
setWidthToTable(): void; | ||
setWidthToTable(isMaxWidth?: boolean): void; | ||
private isAutoResize; | ||
} |
@@ -257,3 +257,3 @@ import { isNullOrUndefined, addClass } from '@syncfusion/ej2-base'; | ||
}; | ||
ColumnWidthService.prototype.setWidthToTable = function () { | ||
ColumnWidthService.prototype.setWidthToTable = function (isMaxWidth) { | ||
var tWidth = formatUnit(this.getTableWidth(this.parent.getColumns())); | ||
@@ -263,3 +263,3 @@ if (this.parent.detailTemplate || this.parent.childGrid) { | ||
} | ||
tWidth = (this.isAutoResize() || tWidth === 'auto') ? '100%' : tWidth; | ||
tWidth = (this.isAutoResize() || tWidth === 'auto' || isMaxWidth) ? '100%' : tWidth; | ||
this.parent.getHeaderTable().style.width = tWidth; | ||
@@ -266,0 +266,0 @@ this.parent.getContentTable().style.width = tWidth; |
@@ -806,3 +806,4 @@ var __extends = (this && this.__extends) || (function () { | ||
else { | ||
result = this.isVue ? this.getPagerTemplate()(data, this, 'template') : this.getPagerTemplate()(data); | ||
result = this.isVue ? this.getPagerTemplate()(data, this, 'template', null, null, null, null, this.root) | ||
: this.getPagerTemplate()(data); | ||
appendChildren(this.element, result); | ||
@@ -841,2 +842,5 @@ } | ||
} | ||
else { | ||
this.templateFn = templateCompiler(template); | ||
} | ||
} | ||
@@ -843,0 +847,0 @@ } |
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
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
39551095
395663