@syncfusion/ej2-grids
Advanced tools
Comparing version 26.1.38 to 26.1.39
/*! | ||
* filename: index.d.ts | ||
* version : 26.1.38 | ||
* version : 26.1.39 | ||
* 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.35", | ||
"_id": "@syncfusion/ej2-grids@26.1.38", | ||
"_inBundle": false, | ||
"_integrity": "sha512-toWW+xx+vDHsed8iKxtAufXbPEUrLt0xRkOGkjl+pKOkw1n3KwJjhsUIFeBMVSfMpRayTKdXPanQ0c42HrLoFA==", | ||
"_integrity": "sha512-rdA9BDyFvtqyQOQoHgzStH7m7nw/krtiDFIP/3/6TNvvzXCEsC2deVkEJDPpxz3dGt9KwwpO/dq66LO1xdpngg==", | ||
"_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.35.tgz", | ||
"_shasum": "b03c6d23a6874c65e21dc8710ce7f75848cdc42c", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-grids/-/ej2-grids-26.1.38.tgz", | ||
"_shasum": "d58316394f17c21ae14f55cb537b4ae8776cfc1b", | ||
"_spec": "@syncfusion/ej2-grids@*", | ||
@@ -47,8 +47,8 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included", | ||
"@syncfusion/ej2-data": "~26.1.35", | ||
"@syncfusion/ej2-dropdowns": "~26.1.38", | ||
"@syncfusion/ej2-dropdowns": "~26.1.39", | ||
"@syncfusion/ej2-excel-export": "~26.1.35", | ||
"@syncfusion/ej2-file-utils": "~26.1.35", | ||
"@syncfusion/ej2-inputs": "~26.1.38", | ||
"@syncfusion/ej2-inputs": "~26.1.39", | ||
"@syncfusion/ej2-lists": "~26.1.35", | ||
"@syncfusion/ej2-navigations": "~26.1.38", | ||
"@syncfusion/ej2-navigations": "~26.1.39", | ||
"@syncfusion/ej2-notifications": "~26.1.35", | ||
@@ -83,5 +83,5 @@ "@syncfusion/ej2-pdf-export": "~26.1.35", | ||
"typings": "index.d.ts", | ||
"version": "26.1.38", | ||
"version": "26.1.39", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -139,10 +139,2 @@ import * as events from '../base/constant'; | ||
var _this = this; | ||
if (gObj.allowGrouping && gObj.groupSettings.enableLazyLoading && gObj.groupSettings.columns.length) { | ||
if (isNullOrUndefined(exportProperties)) { | ||
exportProperties = { hierarchyExportMode: 'All' }; | ||
} | ||
else { | ||
exportProperties.hierarchyExportMode = exportProperties.hierarchyExportMode || 'All'; | ||
} | ||
} | ||
if (!isNullOrUndefined(exportProperties) && !isNullOrUndefined(exportProperties.dataSource)) { | ||
@@ -165,3 +157,4 @@ exportProperties.dataSource = exportProperties.dataSource instanceof DataManager ? | ||
} | ||
else if (!isNullOrUndefined(exportProperties) && exportProperties.exportType === 'CurrentPage') { | ||
else if (!isNullOrUndefined(exportProperties) && exportProperties.exportType === 'CurrentPage' && | ||
!(this.parent.groupSettings.enableLazyLoading && this.parent.groupSettings.columns.length && !this.parent.getDataModule().isRemote())) { | ||
return new Promise(function (resolve) { | ||
@@ -175,3 +168,11 @@ _this.init(gObj); | ||
var allPromise_1 = []; | ||
allPromise_1.push(this.data.getData({}, ExportHelper.getQuery(gObj, this.data))); | ||
var query = ExportHelper.getQuery(gObj, this.data); | ||
if (this.parent.groupSettings.enableLazyLoading && this.parent.groupSettings.columns.length && !this.parent.getDataModule().isRemote()) { | ||
if (isNullOrUndefined(exportProperties)) | ||
exportProperties = { hierarchyExportMode: 'All' }; | ||
exportProperties.hierarchyExportMode = exportProperties.hierarchyExportMode === 'None' ? 'None' : 'All'; | ||
if (exportProperties.hierarchyExportMode === 'All') | ||
query.lazyLoad = []; | ||
} | ||
allPromise_1.push(this.data.getData({}, query)); | ||
allPromise_1.push(this.helper.getColumnData(gObj)); | ||
@@ -375,43 +376,2 @@ return new Promise(function (resolve, reject) { | ||
} | ||
else if (gObj.groupSettings.enableLazyLoading && !gObj.getDataModule().isRemote()) { | ||
var groupData = void 0; | ||
if (!isNullOrUndefined(exportProperties) && Object.keys(exportProperties).length) { | ||
var isAllPage = exportProperties.exportType === 'CurrentPage' | ||
? false : true; | ||
var groupQuery = gObj.getDataModule().generateQuery(isAllPage); | ||
var lazyloadData = gObj.getDataModule().dataManager.executeLocal(groupQuery); | ||
groupQuery.lazyLoad = []; | ||
var fName = 'fn'; | ||
if (!isAllPage) { | ||
for (var i = 0; i < groupQuery.queries.length; i++) { | ||
if (groupQuery.queries[parseInt(i.toString(), 10)]['' + fName] === 'onPage') { | ||
groupQuery.queries[parseInt(i.toString(), 10)].e.pageSize = lazyloadData.reduce(function (acc, curr) { return acc + curr['count']; }, 0); | ||
} | ||
} | ||
} | ||
if (exportProperties.hierarchyExportMode === 'All') { | ||
groupData = gObj.getDataModule().dataManager.executeLocal(groupQuery); | ||
} | ||
else if (exportProperties.hierarchyExportMode === 'Expanded' || exportProperties.hierarchyExportMode === 'None' || | ||
isNullOrUndefined(exportProperties.hierarchyExportMode)) { | ||
groupData = gObj.getDataModule().dataManager.executeLocal(groupQuery); | ||
var lazQuery = this.parent.contentModule.lazyLoadQuery; | ||
for (var i = 0; i < lazQuery.length; i++) { | ||
var query = lazQuery[parseInt(i.toString(), 10)]; | ||
var where = query[0]; | ||
for (var j = 0; j < groupData.length; j++) { | ||
var data = groupData[parseInt(j.toString(), 10)]; | ||
if (data['key'] === where['value']) { | ||
lazyloadData[parseInt(i.toString(), 10)] = groupData[parseInt(j.toString(), 10)]; | ||
} | ||
} | ||
} | ||
groupData = lazyloadData; | ||
} | ||
} | ||
else { | ||
groupData = gObj.currentViewData; | ||
} | ||
excelRows = this.processRecordContent(gObj, r, headerRow, exportProperties, groupData, excelRows, helper); | ||
} | ||
else { | ||
@@ -418,0 +378,0 @@ excelRows = this.processRecordContent(gObj, r, headerRow, exportProperties, undefined, excelRows, helper); |
@@ -300,3 +300,3 @@ /** | ||
generateMessage: function (args, parent, options) { | ||
return INFO + (": EXPORTNIG INPROGRESS \n Grid " + options.args + "ing is in progress"); | ||
return INFO + (": EXPORTING INPROGRESS \n Grid " + options.args + "ing is in progress"); | ||
} | ||
@@ -312,3 +312,3 @@ }, | ||
generateMessage: function (args, parent, options) { | ||
return INFO + (": EXPORTNIG COMPLETED \n Grid " + options.args + "ing is complete"); | ||
return INFO + (": EXPORTING COMPLETED \n Grid " + options.args + "ing is complete"); | ||
} | ||
@@ -315,0 +315,0 @@ }, |
@@ -535,3 +535,3 @@ import { Browser, EventHandler } from '@syncfusion/ej2-base'; | ||
(groupHeaderEle ? groupHeaderEle.offsetHeight : 0); | ||
var parentTop = this.parentElement.getClientRects()[0].top; | ||
var parentTop = this.parent.element.getClientRects()[0].top; | ||
var top_1 = contentRect.top - (parentTop < 0 ? 0 : parentTop); | ||
@@ -538,0 +538,0 @@ var left = contentRect.left; |
@@ -132,2 +132,3 @@ import { IGrid, IAction, IIndex, ISelectedCell } from '../base/interface'; | ||
private isCheckboxReset; | ||
private isRowDeselect; | ||
/** | ||
@@ -134,0 +135,0 @@ * @hidden |
@@ -35,2 +35,4 @@ /** | ||
export declare const addedRow: string; | ||
/** @hidden */ | ||
export declare const groupCaptionRow: string; | ||
/** | ||
@@ -37,0 +39,0 @@ * Specifies repeated strings |
@@ -34,2 +34,4 @@ /** | ||
export var addedRow = 'e-addedrow'; | ||
/** @hidden */ | ||
export var groupCaptionRow = 'e-groupcaptionrow'; | ||
/** | ||
@@ -36,0 +38,0 @@ * Specifies repeated strings |
@@ -304,3 +304,3 @@ import { NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base'; | ||
*/ | ||
defaultValue: string; | ||
defaultValue: string | number | Date | boolean | null; | ||
/** | ||
@@ -880,3 +880,3 @@ * Defines the `IEditCell` object to customize default edit cell. | ||
*/ | ||
defaultValue?: string; | ||
defaultValue?: string | number | Date | boolean | null; | ||
/** | ||
@@ -883,0 +883,0 @@ * Defines the `IEditCell`(../../grid/edit/#cell-edit-template) object to customize default edit cell. |
import { KeyboardEventArgs } from '@syncfusion/ej2-base'; | ||
import { IGrid, IFocus, FocusInfo, FocusedContainer, IIndex, CellFocusArgs, SwapInfo } from '../base/interface'; | ||
import { IGrid, IFocus, FocusInfo, FocusedContainer, IIndex, CellFocusArgs, SwapInfo, VirtualSelectionInfo } from '../base/interface'; | ||
import { Row } from '../models/row'; | ||
@@ -23,2 +23,4 @@ import { Cell } from '../models/cell'; | ||
isInfiniteScroll: boolean; | ||
/** @hidden */ | ||
virtualSelectionInfo: VirtualSelectionInfo; | ||
private forget; | ||
@@ -25,0 +27,0 @@ private skipFocus; |
@@ -85,2 +85,3 @@ import { Browser, isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
this_1.getStartIndex(values[parseInt(i.toString(), 10)], data); | ||
startIdx = isGroupAdaptive(this_1.parent) && !this_1.parent.vcRows.length && e.requestType === 'sorting' ? 0 : startIdx; | ||
var rows = this_1.rowModelGenerator.generateRows(data, { | ||
@@ -87,0 +88,0 @@ virtualInfo: info, startIndex: startIdx |
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 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
394696
38111850
537