@devexpress/dx-grid-core
Advanced tools
Comparing version 1.0.0-rc.2 to 1.0.0
/** | ||
* Bundle of @devexpress/dx-grid-core | ||
* Generated: 2018-01-26 | ||
* Version: 1.0.0-rc.2 | ||
* Generated: 2018-02-02 | ||
* Version: 1.0.0 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -1408,4 +1408,4 @@ */ | ||
var isDetailRowExpanded = function isDetailRowExpanded(expandedRowIds, rowId) { | ||
return expandedRowIds.indexOf(rowId) > -1; | ||
var isDetailRowExpanded = function isDetailRowExpanded(expandedDetailRowIds, rowId) { | ||
return expandedDetailRowIds.indexOf(rowId) > -1; | ||
}; | ||
@@ -1423,18 +1423,18 @@ var isDetailToggleTableCell = function isDetailToggleTableCell(tableRow, tableColumn) { | ||
var expandedRowIds = prevExpanded.slice(); | ||
var expandedIndex = expandedRowIds.indexOf(rowId); | ||
var expandedDetailRowIds = prevExpanded.slice(); | ||
var expandedIndex = expandedDetailRowIds.indexOf(rowId); | ||
var rowState = state !== undefined ? state : expandedIndex === -1; | ||
if (expandedIndex > -1 && !rowState) { | ||
expandedRowIds.splice(expandedIndex, 1); | ||
expandedDetailRowIds.splice(expandedIndex, 1); | ||
} else if (expandedIndex === -1 && rowState) { | ||
expandedRowIds.push(rowId); | ||
expandedDetailRowIds.push(rowId); | ||
} | ||
return expandedRowIds; | ||
return expandedDetailRowIds; | ||
}; | ||
var tableRowsWithExpandedDetail = function tableRowsWithExpandedDetail(tableRows, expandedRowIds, rowHeight) { | ||
var tableRowsWithExpandedDetail = function tableRowsWithExpandedDetail(tableRows, expandedDetailRowIds, rowHeight) { | ||
var result = tableRows; | ||
expandedRowIds.forEach(function (expandedRowId) { | ||
expandedDetailRowIds.forEach(function (expandedRowId) { | ||
var rowIndex = result.findIndex(function (tableRow) { | ||
@@ -1441,0 +1441,0 @@ return tableRow.type === TABLE_DATA_TYPE && tableRow.rowId === expandedRowId; |
/** | ||
* Bundle of @devexpress/dx-grid-core | ||
* Generated: 2018-01-26 | ||
* Version: 1.0.0-rc.2 | ||
* Generated: 2018-02-02 | ||
* Version: 1.0.0 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -1412,4 +1412,4 @@ */ | ||
var isDetailRowExpanded = function isDetailRowExpanded(expandedRowIds, rowId) { | ||
return expandedRowIds.indexOf(rowId) > -1; | ||
var isDetailRowExpanded = function isDetailRowExpanded(expandedDetailRowIds, rowId) { | ||
return expandedDetailRowIds.indexOf(rowId) > -1; | ||
}; | ||
@@ -1427,18 +1427,18 @@ var isDetailToggleTableCell = function isDetailToggleTableCell(tableRow, tableColumn) { | ||
var expandedRowIds = prevExpanded.slice(); | ||
var expandedIndex = expandedRowIds.indexOf(rowId); | ||
var expandedDetailRowIds = prevExpanded.slice(); | ||
var expandedIndex = expandedDetailRowIds.indexOf(rowId); | ||
var rowState = state !== undefined ? state : expandedIndex === -1; | ||
if (expandedIndex > -1 && !rowState) { | ||
expandedRowIds.splice(expandedIndex, 1); | ||
expandedDetailRowIds.splice(expandedIndex, 1); | ||
} else if (expandedIndex === -1 && rowState) { | ||
expandedRowIds.push(rowId); | ||
expandedDetailRowIds.push(rowId); | ||
} | ||
return expandedRowIds; | ||
return expandedDetailRowIds; | ||
}; | ||
var tableRowsWithExpandedDetail = function tableRowsWithExpandedDetail(tableRows, expandedRowIds, rowHeight) { | ||
var tableRowsWithExpandedDetail = function tableRowsWithExpandedDetail(tableRows, expandedDetailRowIds, rowHeight) { | ||
var result = tableRows; | ||
expandedRowIds.forEach(function (expandedRowId) { | ||
expandedDetailRowIds.forEach(function (expandedRowId) { | ||
var rowIndex = result.findIndex(function (tableRow) { | ||
@@ -1445,0 +1445,0 @@ return tableRow.type === TABLE_DATA_TYPE && tableRow.rowId === expandedRowId; |
{ | ||
"name": "@devexpress/dx-grid-core", | ||
"version": "1.0.0-rc.2", | ||
"version": "1.0.0", | ||
"description": "Core library for the DevExtreme Reactive Grid component", | ||
@@ -42,3 +42,3 @@ "author": { | ||
"devDependencies": { | ||
"@devexpress/dx-core": "1.0.0-rc.2", | ||
"@devexpress/dx-core": "1.0.0", | ||
"babel-core": "^6.26.0", | ||
@@ -62,4 +62,4 @@ "babel-jest": "^22.1.0", | ||
"peerDependencies": { | ||
"@devexpress/dx-core": "1.0.0-rc.2" | ||
"@devexpress/dx-core": "1.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
299194
0