@syncfusion/ej2-grids
Advanced tools
Comparing version 25.1.42 to 25.2.3
/*! | ||
* filename: index.d.ts | ||
* version : 25.1.42 | ||
* version : 25.2.3 | ||
* 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@25.1.40", | ||
"_id": "@syncfusion/ej2-grids@25.1.42", | ||
"_inBundle": false, | ||
"_integrity": "sha512-3536Y6lbFzUyNiPARm2hVbRqFUuK1evQ+67lSHJ1Q6Tvk/qU4o/F3dT7OFWGxqVI7vc5tD98451tIyMAKTrMFw==", | ||
"_integrity": "sha512-1dIgnx8x8wd9ooyZ96xR627ONOmiQT8Xn5lY+vlqpy7Rm8GC7zPvN+t7vtxP+8DRiqBZQgE+KSDkxQNMuj+WNg==", | ||
"_location": "/@syncfusion/ej2-grids", | ||
@@ -31,4 +31,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-grids/-/ej2-grids-25.1.40.tgz", | ||
"_shasum": "01a0e77e0a43c32184bbd5d8c08662621f93df64", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-grids/-/ej2-grids-25.1.42.tgz", | ||
"_shasum": "66beba8d9d0055490018b44f7c3213f207df9e20", | ||
"_spec": "@syncfusion/ej2-grids@*", | ||
@@ -41,17 +41,17 @@ "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~25.1.35", | ||
"@syncfusion/ej2-buttons": "~25.1.39", | ||
"@syncfusion/ej2-calendars": "~25.1.42", | ||
"@syncfusion/ej2-compression": "~25.1.35", | ||
"@syncfusion/ej2-data": "~25.1.35", | ||
"@syncfusion/ej2-dropdowns": "~25.1.41", | ||
"@syncfusion/ej2-excel-export": "~25.1.35", | ||
"@syncfusion/ej2-file-utils": "~25.1.35", | ||
"@syncfusion/ej2-inputs": "~25.1.42", | ||
"@syncfusion/ej2-lists": "~25.1.41", | ||
"@syncfusion/ej2-navigations": "~25.1.42", | ||
"@syncfusion/ej2-notifications": "~25.1.35", | ||
"@syncfusion/ej2-pdf-export": "~25.1.38", | ||
"@syncfusion/ej2-popups": "~25.1.42", | ||
"@syncfusion/ej2-splitbuttons": "~25.1.38" | ||
"@syncfusion/ej2-base": "~25.2.3", | ||
"@syncfusion/ej2-buttons": "~25.2.3", | ||
"@syncfusion/ej2-calendars": "~25.2.3", | ||
"@syncfusion/ej2-compression": "~25.2.3", | ||
"@syncfusion/ej2-data": "~25.2.3", | ||
"@syncfusion/ej2-dropdowns": "~25.2.3", | ||
"@syncfusion/ej2-excel-export": "~25.2.3", | ||
"@syncfusion/ej2-file-utils": "~25.2.3", | ||
"@syncfusion/ej2-inputs": "~25.2.3", | ||
"@syncfusion/ej2-lists": "~25.2.3", | ||
"@syncfusion/ej2-navigations": "~25.2.3", | ||
"@syncfusion/ej2-notifications": "~25.2.3", | ||
"@syncfusion/ej2-pdf-export": "~25.2.3", | ||
"@syncfusion/ej2-popups": "~25.2.3", | ||
"@syncfusion/ej2-splitbuttons": "~25.2.3" | ||
}, | ||
@@ -82,5 +82,5 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "25.1.42", | ||
"version": "25.2.3", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -15,2 +15,3 @@ import { ServiceLocator } from '../services/service-locator'; | ||
getShowHideService: ShowHide; | ||
private filterColumns; | ||
private showColumn; | ||
@@ -17,0 +18,0 @@ private hideColumn; |
@@ -23,2 +23,3 @@ import { classList, addClass, removeClass, isNullOrUndefined, Browser } from '@syncfusion/ej2-base'; | ||
function ColumnChooser(parent, serviceLocator) { | ||
this.filterColumns = []; | ||
this.showColumn = []; | ||
@@ -469,2 +470,4 @@ this.hideColumn = []; | ||
this.changedColumns = []; | ||
this.filterColumns = []; | ||
this.searchValue = ''; | ||
this.hideDialog(); | ||
@@ -533,3 +536,2 @@ }; | ||
var clearSearch = false; | ||
var fltrCol; | ||
var okButton; | ||
@@ -545,13 +547,13 @@ var buttonEle = this.dlgDiv.querySelector('.e-footer-content'); | ||
this.removeCancelIcon(); | ||
fltrCol = this.getColumns(); | ||
this.filterColumns = this.getColumns(); | ||
clearSearch = true; | ||
} | ||
else { | ||
fltrCol = new DataManager(this.getColumns()).executeLocal(new Query() | ||
this.filterColumns = new DataManager(this.getColumns()).executeLocal(new Query() | ||
.where('headerText', this.searchOperator, searchVal, true, this.parent.columnChooserSettings.ignoreAccent)); | ||
} | ||
if (fltrCol.length) { | ||
if (this.filterColumns.length) { | ||
this.innerDiv.innerHTML = ' '; | ||
this.innerDiv.classList.remove('e-ccnmdiv'); | ||
this.innerDiv.appendChild(this.refreshCheckboxList(fltrCol)); | ||
this.innerDiv.appendChild(this.refreshCheckboxList(this.filterColumns)); | ||
if (!clearSearch) { | ||
@@ -625,3 +627,3 @@ this.addcancelIcon(); | ||
var columnUid = parentsUntil(elem, 'e-ccheck').getAttribute('uid'); | ||
var column = this.parent.getColumns(); | ||
var column = (this.searchValue && this.searchValue.length) ? this.filterColumns : this.parent.getColumns(); | ||
if (columnUid === 'grid-selectAll') { | ||
@@ -628,0 +630,0 @@ this.changedColumns = []; |
@@ -744,2 +744,3 @@ import { closest, addClass, select } from '@syncfusion/ej2-base'; | ||
var formObjects = [this.formObj, this.mFormObj, this.frFormObj, this.virtualFormObj]; | ||
var col = this.parent.columnModel.filter(function (col) { return col.editTemplate; }); | ||
for (var i = 0; i < formObjects.length; i++) { | ||
@@ -750,3 +751,3 @@ if (formObjects[parseInt(i.toString(), 10)] && formObjects[parseInt(i.toString(), 10)].element | ||
if (this.parent.isReact && this.parent.editSettings.mode === 'Dialog' | ||
&& !isNullOrUndefined(this.parent.editSettings.template)) { | ||
&& (!isNullOrUndefined(this.parent.editSettings.template) || col.length)) { | ||
formObjects[parseInt(i.toString(), 10)].element.remove(); | ||
@@ -753,0 +754,0 @@ } |
@@ -158,4 +158,3 @@ /** | ||
opt = { | ||
success: parent.allowGrouping || !isUndefined(parent.detailTemplate) || !isUndefined(parent.childGrid) | ||
|| !isUndefined(parent.rowTemplate) || parent.enableVirtualization, | ||
success: !isUndefined(parent.detailTemplate) || !isUndefined(parent.childGrid), | ||
options: { name: 'freeze' } | ||
@@ -166,4 +165,3 @@ }; | ||
opt = { | ||
success: !isUndefined(parent.detailTemplate) || !isUndefined(parent.childGrid) || parent.frozenRows !== 0 | ||
|| parent.frozenColumns !== 0, | ||
success: !isUndefined(parent.detailTemplate) || !isUndefined(parent.childGrid), | ||
options: { name: 'virtualization' } | ||
@@ -184,11 +182,7 @@ }; | ||
opt = 'Frozen rows and columns do not support the following features:\n' + | ||
'* Virtualization\n' + | ||
'* Row Template\n' + | ||
'* Details Template\n' + | ||
'* Hierarchy Grid\n' + | ||
'* Grouping'; | ||
'* Hierarchy Grid\n'; | ||
break; | ||
case 'virtualization': | ||
opt = 'Virtualization does not support the following features.\n' + | ||
'* Freeze rows and columns.\n' + | ||
'* Details Template.\n' + | ||
@@ -195,0 +189,0 @@ '* Hierarchy Grid.\n'; |
@@ -17,2 +17,9 @@ import { IGrid, IAction, NotifyArgs } from '../base/interface'; | ||
/** | ||
* Checks if the input string contains non-numeric characters. | ||
* | ||
* @param input The string to be checked for non-numeric characters. | ||
* @returns `true` if the input string contains non-numeric characters, `false` otherwise. | ||
*/ | ||
private hasNonNumericCharacters; | ||
/** | ||
* Searches Grid records by given key. | ||
@@ -19,0 +26,0 @@ * |
@@ -19,2 +19,25 @@ import { extend, isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
/** | ||
* Checks if the input string contains non-numeric characters. | ||
* | ||
* @param input The string to be checked for non-numeric characters. | ||
* @returns `true` if the input string contains non-numeric characters, `false` otherwise. | ||
*/ | ||
Search.prototype.hasNonNumericCharacters = function (searchString) { | ||
var decimalFound = false; | ||
for (var _i = 0, searchString_1 = searchString; _i < searchString_1.length; _i++) { | ||
var char = searchString_1[_i]; | ||
if ((char < '0' || char > '9') && char !== '.') { | ||
return true; | ||
} | ||
if (char === '.') { | ||
if (decimalFound) { | ||
// If decimal is found more than once, it's not valid | ||
return true; | ||
} | ||
decimalFound = true; | ||
} | ||
} | ||
return false; | ||
}; | ||
/** | ||
* Searches Grid records by given key. | ||
@@ -36,3 +59,3 @@ * | ||
// Check searchString is number and parseFloat to remove trailing zeros | ||
gObj.searchSettings.key = !isNaN(parseFloat(searchString)) ? parseFloat(searchString).toString() : searchString.toString(); | ||
gObj.searchSettings.key = (searchString !== "" && !this.hasNonNumericCharacters(searchString)) ? parseFloat(searchString).toString() : searchString.toString(); | ||
gObj.dataBind(); | ||
@@ -39,0 +62,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 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
38362326
384982
+ Added@syncfusion/ej2-base@25.2.7(transitive)
+ Added@syncfusion/ej2-buttons@25.2.7(transitive)
+ Added@syncfusion/ej2-calendars@25.2.7(transitive)
+ Added@syncfusion/ej2-compression@25.2.3(transitive)
+ Added@syncfusion/ej2-data@25.2.3(transitive)
+ Added@syncfusion/ej2-dropdowns@25.2.7(transitive)
+ Added@syncfusion/ej2-excel-export@25.2.3(transitive)
+ Added@syncfusion/ej2-file-utils@25.2.3(transitive)
+ Added@syncfusion/ej2-icons@25.2.3(transitive)
+ Added@syncfusion/ej2-inputs@25.2.6(transitive)
+ Added@syncfusion/ej2-lists@25.2.3(transitive)
+ Added@syncfusion/ej2-navigations@25.2.6(transitive)
+ Added@syncfusion/ej2-notifications@25.2.3(transitive)
+ Added@syncfusion/ej2-pdf-export@25.2.3(transitive)
+ Added@syncfusion/ej2-popups@25.2.7(transitive)
+ Added@syncfusion/ej2-splitbuttons@25.2.4(transitive)
- Removed@syncfusion/ej2-base@25.1.35(transitive)
- Removed@syncfusion/ej2-buttons@25.1.39(transitive)
- Removed@syncfusion/ej2-calendars@25.1.42(transitive)
- Removed@syncfusion/ej2-compression@25.1.35(transitive)
- Removed@syncfusion/ej2-data@25.1.35(transitive)
- Removed@syncfusion/ej2-dropdowns@25.1.41(transitive)
- Removed@syncfusion/ej2-excel-export@25.1.35(transitive)
- Removed@syncfusion/ej2-file-utils@25.1.35(transitive)
- Removed@syncfusion/ej2-icons@25.1.35(transitive)
- Removed@syncfusion/ej2-inputs@25.1.42(transitive)
- Removed@syncfusion/ej2-lists@25.1.41(transitive)
- Removed@syncfusion/ej2-navigations@25.1.42(transitive)
- Removed@syncfusion/ej2-notifications@25.1.35(transitive)
- Removed@syncfusion/ej2-pdf-export@25.1.38(transitive)
- Removed@syncfusion/ej2-popups@25.1.42(transitive)
- Removed@syncfusion/ej2-splitbuttons@25.1.38(transitive)
Updated@syncfusion/ej2-base@~25.2.3
Updated@syncfusion/ej2-data@~25.2.3