Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devexpress/dx-grid-core

Package Overview
Dependencies
Maintainers
11
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devexpress/dx-grid-core - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0-beta.1

185

dist/dx-grid-core.es.js
/**
* Bundle of @devexpress/dx-grid-core
* Generated: 2018-02-16
* Version: 1.0.1
* Generated: 2018-02-22
* Version: 1.1.0-beta.1
* License: https://js.devexpress.com/Licensing

@@ -89,70 +89,2 @@ */

var getColumnSortingDirection = function getColumnSortingDirection(sorting, columnName) {
var columnSorting = sorting.filter(function (s) {
return s.columnName === columnName;
})[0];
return columnSorting ? columnSorting.direction : null;
};
/* eslint-disable no-plusplus, no-param-reassign, no-use-before-define, no-constant-condition */
var merge = function merge(array, auxiliary, lo, mid, hi, compare) {
var i = lo;
var j = mid + 1;
var k = lo;
while (true) {
var cmp = compare(array[i], array[j]);
if (cmp <= 0) {
auxiliary[k++] = array[i++];
if (i > mid) {
do {
auxiliary[k++] = array[j++];
} while (j <= hi);
break;
}
} else {
auxiliary[k++] = array[j++];
if (j > hi) {
do {
auxiliary[k++] = array[i++];
} while (i <= mid);
break;
}
}
}
};
var sortArrayToAuxiliary = function sortArrayToAuxiliary(array, auxiliary, lo, hi, compare) {
if (hi < lo) return;
if (hi === lo) {
auxiliary[lo] = array[lo];
return;
}
var mid = Math.floor(lo + (hi - lo) / 2);
sortAuxiliaryToArray(array, auxiliary, lo, mid, compare);
sortAuxiliaryToArray(array, auxiliary, mid + 1, hi, compare);
merge(array, auxiliary, lo, mid, hi, compare);
};
var sortAuxiliaryToArray = function sortAuxiliaryToArray(array, auxiliary, lo, hi, compare) {
if (hi <= lo) return;
var mid = Math.floor(lo + (hi - lo) / 2);
sortArrayToAuxiliary(array, auxiliary, lo, mid, compare);
sortArrayToAuxiliary(array, auxiliary, mid + 1, hi, compare);
merge(auxiliary, array, lo, mid, hi, compare);
};
var mergeSort = (function (array) {
var compare = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (a, b) {
if (a < b) return -1;
if (a > b) return 1;
return 0;
};
var result = array.slice();
var auxiliary = array.slice();
sortAuxiliaryToArray(result, auxiliary, 0, result.length - 1, compare);
return result;
});
var asyncGenerator = function () {

@@ -402,2 +334,102 @@ function AwaitValue(value) {

var unique = function unique(arr) {
return [].concat(toConsumableArray(new Set(arr)));
};
var getColumnSortingDirection = function getColumnSortingDirection(sorting, columnName) {
var columnSorting = sorting.filter(function (s) {
return s.columnName === columnName;
})[0];
return columnSorting ? columnSorting.direction : null;
};
var getPersistentSortedColumns = function getPersistentSortedColumns(sorting) {
var columnExtensions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
return columnExtensions.reduce(function (acc, _ref) {
var columnName = _ref.columnName,
sortingEnabled = _ref.sortingEnabled;
if (sortingEnabled === false) {
if (sorting.findIndex(function (sortItem) {
return sortItem.columnName === columnName;
}) > -1) {
acc.push(columnName);
}
}
return acc;
}, []);
};
var calculateKeepOther = function calculateKeepOther(sorting, keepOther) {
var persistentSortedColumns = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
if (!persistentSortedColumns.length) return keepOther;
if (!keepOther) return persistentSortedColumns;
return Array.isArray(keepOther) ? unique([].concat(toConsumableArray(keepOther), toConsumableArray(persistentSortedColumns))) : unique([].concat(toConsumableArray(sorting.map(function (item) {
return item.columnName;
})), toConsumableArray(persistentSortedColumns)));
};
/* eslint-disable no-plusplus, no-param-reassign, no-use-before-define, no-constant-condition */
var merge = function merge(array, auxiliary, lo, mid, hi, compare) {
var i = lo;
var j = mid + 1;
var k = lo;
while (true) {
var cmp = compare(array[i], array[j]);
if (cmp <= 0) {
auxiliary[k++] = array[i++];
if (i > mid) {
do {
auxiliary[k++] = array[j++];
} while (j <= hi);
break;
}
} else {
auxiliary[k++] = array[j++];
if (j > hi) {
do {
auxiliary[k++] = array[i++];
} while (i <= mid);
break;
}
}
}
};
var sortArrayToAuxiliary = function sortArrayToAuxiliary(array, auxiliary, lo, hi, compare) {
if (hi < lo) return;
if (hi === lo) {
auxiliary[lo] = array[lo];
return;
}
var mid = Math.floor(lo + (hi - lo) / 2);
sortAuxiliaryToArray(array, auxiliary, lo, mid, compare);
sortAuxiliaryToArray(array, auxiliary, mid + 1, hi, compare);
merge(array, auxiliary, lo, mid, hi, compare);
};
var sortAuxiliaryToArray = function sortAuxiliaryToArray(array, auxiliary, lo, hi, compare) {
if (hi <= lo) return;
var mid = Math.floor(lo + (hi - lo) / 2);
sortArrayToAuxiliary(array, auxiliary, lo, mid, compare);
sortArrayToAuxiliary(array, auxiliary, mid + 1, hi, compare);
merge(auxiliary, array, lo, mid, hi, compare);
};
var mergeSort = (function (array) {
var compare = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (a, b) {
if (a < b) return -1;
if (a > b) return 1;
return 0;
};
var result = array.slice();
var auxiliary = array.slice();
sortAuxiliaryToArray(result, auxiliary, 0, result.length - 1, compare);
return result;
});
var NODE_CHECK = Symbol('node');

@@ -1504,2 +1536,13 @@

var getColumnExtensionValueGetter = function getColumnExtensionValueGetter(columnExtensions, extensionName, defaultValue) {
return function (columnName) {
if (columnExtensions) {
var columnExtension = getColumnExtension(columnExtensions, columnName);
var extensionValue = columnExtension[extensionName];
return extensionValue !== undefined ? extensionValue : defaultValue;
}
return defaultValue;
};
};
var tableColumnsWithDataRows = function tableColumnsWithDataRows(columns, columnExtensions) {

@@ -1772,3 +1815,3 @@ return columns.map(function (column) {

export { getColumnExtension, getTableRowColumnsWithColSpan, getTableColumnGeometries, getTableTargetColumnIndex, getAnimations, filterActiveAnimations, evalAnimations, getGroupCellTargetIndex, getMessagesFormatter, rowIdGetter, cellValueGetter, changeColumnSorting, getColumnSortingDirection, sortedRows, changeColumnFilter, getColumnFilterConfig, filteredRows, GROUP_KEY_SEPARATOR, changeColumnGrouping, toggleExpandedGroups, draftColumnGrouping, cancelColumnGroupingDraft, groupRowChecker, groupRowLevelKeyGetter, groupedRows, expandedGroupRows, customGroupedRows, customGroupingRowIdGetter, groupingPanelItems, setCurrentPage, setPageSize, paginatedRows, rowsWithPageHeaders, pageCount, rowCount, firstRowOnPage, lastRowOnPage, toggleSelection, getAvailableToSelect, someSelected, allSelected, startEditRows, stopEditRows, addRow, changeAddedRow, cancelAddedRows, changeRow, cancelChanges, deleteRows, cancelDeletedRows, changedRowsByIds, addedRowsByIds, createRowChangeGetter, getRowChange, TABLE_REORDERING_TYPE, changeColumnOrder, orderedColumns, tableHeaderRowsWithReordering, draftOrder, tableColumnsWithWidths, changeTableColumnWidth, draftTableColumnWidth, cancelTableColumnWidthDraft, TABLE_EDIT_COMMAND_TYPE, isHeadingEditCommandsTableCell, isEditCommandsTableCell, tableColumnsWithEditing, TABLE_ADDED_TYPE, TABLE_EDIT_TYPE, isEditTableCell, isAddedTableRow, isEditTableRow, tableRowsWithEditing, TABLE_FILTER_TYPE, isFilterTableCell, isFilterTableRow, tableHeaderRowsWithFilter, TABLE_GROUP_TYPE, isGroupTableCell, isGroupIndentTableCell, isGroupTableRow, tableColumnsWithGrouping, tableRowsWithGrouping, TABLE_HEADING_TYPE, isHeadingTableCell, isHeadingTableRow, tableRowsWithHeading, TABLE_DETAIL_TYPE, isDetailRowExpanded, isDetailToggleTableCell, isDetailTableRow, toggleDetailRowExpanded, tableRowsWithExpandedDetail, tableColumnsWithDetail, TABLE_SELECT_TYPE, isSelectTableCell, isSelectAllTableCell, tableColumnsWithSelection, TABLE_DATA_TYPE, TABLE_NODATA_TYPE, isNoDataTableRow, isDataTableCell, isHeaderStubTableCell, isDataTableRow, tableColumnsWithDataRows, tableRowsWithDataRows, visibleTableColumns, tableDataColumnsExist, columnChooserItems, toggleColumn };
export { getColumnExtension, getColumnExtensionValueGetter, getTableRowColumnsWithColSpan, getTableColumnGeometries, getTableTargetColumnIndex, getAnimations, filterActiveAnimations, evalAnimations, getGroupCellTargetIndex, getMessagesFormatter, rowIdGetter, cellValueGetter, changeColumnSorting, getColumnSortingDirection, getPersistentSortedColumns, calculateKeepOther, sortedRows, changeColumnFilter, getColumnFilterConfig, filteredRows, GROUP_KEY_SEPARATOR, changeColumnGrouping, toggleExpandedGroups, draftColumnGrouping, cancelColumnGroupingDraft, groupRowChecker, groupRowLevelKeyGetter, groupedRows, expandedGroupRows, customGroupedRows, customGroupingRowIdGetter, groupingPanelItems, setCurrentPage, setPageSize, paginatedRows, rowsWithPageHeaders, pageCount, rowCount, firstRowOnPage, lastRowOnPage, toggleSelection, getAvailableToSelect, someSelected, allSelected, startEditRows, stopEditRows, addRow, changeAddedRow, cancelAddedRows, changeRow, cancelChanges, deleteRows, cancelDeletedRows, changedRowsByIds, addedRowsByIds, createRowChangeGetter, getRowChange, TABLE_REORDERING_TYPE, changeColumnOrder, orderedColumns, tableHeaderRowsWithReordering, draftOrder, tableColumnsWithWidths, changeTableColumnWidth, draftTableColumnWidth, cancelTableColumnWidthDraft, TABLE_EDIT_COMMAND_TYPE, isHeadingEditCommandsTableCell, isEditCommandsTableCell, tableColumnsWithEditing, TABLE_ADDED_TYPE, TABLE_EDIT_TYPE, isEditTableCell, isAddedTableRow, isEditTableRow, tableRowsWithEditing, TABLE_FILTER_TYPE, isFilterTableCell, isFilterTableRow, tableHeaderRowsWithFilter, TABLE_GROUP_TYPE, isGroupTableCell, isGroupIndentTableCell, isGroupTableRow, tableColumnsWithGrouping, tableRowsWithGrouping, TABLE_HEADING_TYPE, isHeadingTableCell, isHeadingTableRow, tableRowsWithHeading, TABLE_DETAIL_TYPE, isDetailRowExpanded, isDetailToggleTableCell, isDetailTableRow, toggleDetailRowExpanded, tableRowsWithExpandedDetail, tableColumnsWithDetail, TABLE_SELECT_TYPE, isSelectTableCell, isSelectAllTableCell, tableColumnsWithSelection, TABLE_DATA_TYPE, TABLE_NODATA_TYPE, isNoDataTableRow, isDataTableCell, isHeaderStubTableCell, isDataTableRow, tableColumnsWithDataRows, tableRowsWithDataRows, visibleTableColumns, tableDataColumnsExist, columnChooserItems, toggleColumn };
//# sourceMappingURL=dx-grid-core.es.js.map
/**
* Bundle of @devexpress/dx-grid-core
* Generated: 2018-02-16
* Version: 1.0.1
* Generated: 2018-02-22
* Version: 1.1.0-beta.1
* License: https://js.devexpress.com/Licensing

@@ -93,70 +93,2 @@ */

var getColumnSortingDirection = function getColumnSortingDirection(sorting, columnName) {
var columnSorting = sorting.filter(function (s) {
return s.columnName === columnName;
})[0];
return columnSorting ? columnSorting.direction : null;
};
/* eslint-disable no-plusplus, no-param-reassign, no-use-before-define, no-constant-condition */
var merge = function merge(array, auxiliary, lo, mid, hi, compare) {
var i = lo;
var j = mid + 1;
var k = lo;
while (true) {
var cmp = compare(array[i], array[j]);
if (cmp <= 0) {
auxiliary[k++] = array[i++];
if (i > mid) {
do {
auxiliary[k++] = array[j++];
} while (j <= hi);
break;
}
} else {
auxiliary[k++] = array[j++];
if (j > hi) {
do {
auxiliary[k++] = array[i++];
} while (i <= mid);
break;
}
}
}
};
var sortArrayToAuxiliary = function sortArrayToAuxiliary(array, auxiliary, lo, hi, compare) {
if (hi < lo) return;
if (hi === lo) {
auxiliary[lo] = array[lo];
return;
}
var mid = Math.floor(lo + (hi - lo) / 2);
sortAuxiliaryToArray(array, auxiliary, lo, mid, compare);
sortAuxiliaryToArray(array, auxiliary, mid + 1, hi, compare);
merge(array, auxiliary, lo, mid, hi, compare);
};
var sortAuxiliaryToArray = function sortAuxiliaryToArray(array, auxiliary, lo, hi, compare) {
if (hi <= lo) return;
var mid = Math.floor(lo + (hi - lo) / 2);
sortArrayToAuxiliary(array, auxiliary, lo, mid, compare);
sortArrayToAuxiliary(array, auxiliary, mid + 1, hi, compare);
merge(auxiliary, array, lo, mid, hi, compare);
};
var mergeSort = (function (array) {
var compare = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (a, b) {
if (a < b) return -1;
if (a > b) return 1;
return 0;
};
var result = array.slice();
var auxiliary = array.slice();
sortAuxiliaryToArray(result, auxiliary, 0, result.length - 1, compare);
return result;
});
var asyncGenerator = function () {

@@ -406,2 +338,102 @@ function AwaitValue(value) {

var unique = function unique(arr) {
return [].concat(toConsumableArray(new Set(arr)));
};
var getColumnSortingDirection = function getColumnSortingDirection(sorting, columnName) {
var columnSorting = sorting.filter(function (s) {
return s.columnName === columnName;
})[0];
return columnSorting ? columnSorting.direction : null;
};
var getPersistentSortedColumns = function getPersistentSortedColumns(sorting) {
var columnExtensions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
return columnExtensions.reduce(function (acc, _ref) {
var columnName = _ref.columnName,
sortingEnabled = _ref.sortingEnabled;
if (sortingEnabled === false) {
if (sorting.findIndex(function (sortItem) {
return sortItem.columnName === columnName;
}) > -1) {
acc.push(columnName);
}
}
return acc;
}, []);
};
var calculateKeepOther = function calculateKeepOther(sorting, keepOther) {
var persistentSortedColumns = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
if (!persistentSortedColumns.length) return keepOther;
if (!keepOther) return persistentSortedColumns;
return Array.isArray(keepOther) ? unique([].concat(toConsumableArray(keepOther), toConsumableArray(persistentSortedColumns))) : unique([].concat(toConsumableArray(sorting.map(function (item) {
return item.columnName;
})), toConsumableArray(persistentSortedColumns)));
};
/* eslint-disable no-plusplus, no-param-reassign, no-use-before-define, no-constant-condition */
var merge = function merge(array, auxiliary, lo, mid, hi, compare) {
var i = lo;
var j = mid + 1;
var k = lo;
while (true) {
var cmp = compare(array[i], array[j]);
if (cmp <= 0) {
auxiliary[k++] = array[i++];
if (i > mid) {
do {
auxiliary[k++] = array[j++];
} while (j <= hi);
break;
}
} else {
auxiliary[k++] = array[j++];
if (j > hi) {
do {
auxiliary[k++] = array[i++];
} while (i <= mid);
break;
}
}
}
};
var sortArrayToAuxiliary = function sortArrayToAuxiliary(array, auxiliary, lo, hi, compare) {
if (hi < lo) return;
if (hi === lo) {
auxiliary[lo] = array[lo];
return;
}
var mid = Math.floor(lo + (hi - lo) / 2);
sortAuxiliaryToArray(array, auxiliary, lo, mid, compare);
sortAuxiliaryToArray(array, auxiliary, mid + 1, hi, compare);
merge(array, auxiliary, lo, mid, hi, compare);
};
var sortAuxiliaryToArray = function sortAuxiliaryToArray(array, auxiliary, lo, hi, compare) {
if (hi <= lo) return;
var mid = Math.floor(lo + (hi - lo) / 2);
sortArrayToAuxiliary(array, auxiliary, lo, mid, compare);
sortArrayToAuxiliary(array, auxiliary, mid + 1, hi, compare);
merge(auxiliary, array, lo, mid, hi, compare);
};
var mergeSort = (function (array) {
var compare = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (a, b) {
if (a < b) return -1;
if (a > b) return 1;
return 0;
};
var result = array.slice();
var auxiliary = array.slice();
sortAuxiliaryToArray(result, auxiliary, 0, result.length - 1, compare);
return result;
});
var NODE_CHECK = Symbol('node');

@@ -1508,2 +1540,13 @@

var getColumnExtensionValueGetter = function getColumnExtensionValueGetter(columnExtensions, extensionName, defaultValue) {
return function (columnName) {
if (columnExtensions) {
var columnExtension = getColumnExtension(columnExtensions, columnName);
var extensionValue = columnExtension[extensionName];
return extensionValue !== undefined ? extensionValue : defaultValue;
}
return defaultValue;
};
};
var tableColumnsWithDataRows = function tableColumnsWithDataRows(columns, columnExtensions) {

@@ -1777,2 +1820,3 @@ return columns.map(function (column) {

exports.getColumnExtension = getColumnExtension;
exports.getColumnExtensionValueGetter = getColumnExtensionValueGetter;
exports.getTableRowColumnsWithColSpan = getTableRowColumnsWithColSpan;

@@ -1790,2 +1834,4 @@ exports.getTableColumnGeometries = getTableColumnGeometries;

exports.getColumnSortingDirection = getColumnSortingDirection;
exports.getPersistentSortedColumns = getPersistentSortedColumns;
exports.calculateKeepOther = calculateKeepOther;
exports.sortedRows = sortedRows;

@@ -1792,0 +1838,0 @@ exports.changeColumnFilter = changeColumnFilter;

{
"name": "@devexpress/dx-grid-core",
"version": "1.0.1",
"version": "1.1.0-beta.1",
"description": "Core library for the DevExtreme Reactive Grid component",

@@ -42,5 +42,5 @@ "author": {

"devDependencies": {
"@devexpress/dx-core": "1.0.1",
"@devexpress/dx-core": "1.1.0-beta.1",
"babel-core": "^6.26.0",
"babel-jest": "^22.1.0",
"babel-jest": "^22.2.2",
"babel-plugin-external-helpers": "^6.22.0",

@@ -51,8 +51,8 @@ "babel-plugin-transform-object-rest-spread": "^6.26.0",

"core-js": "^2.5.3",
"eslint": "^4.16.0",
"eslint": "^4.17.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-filenames": "^1.2.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jest": "^21.7.0",
"jest": "^22.1.4",
"eslint-plugin-jest": "^21.12.1",
"jest": "^22.3.0",
"rollup": "0.50.0",

@@ -63,4 +63,4 @@ "rollup-plugin-babel": "^3.0.3",

"peerDependencies": {
"@devexpress/dx-core": "1.0.1"
"@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

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