@builttocreate/engine-utils 2.9.0-beta.1 → 2.9.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,6 +88,13 @@ var getFilteredRowOrder = exports.getFilteredRowOrder = function getFilteredRowO
88
88
  if (row.deleted) return;
89
89
  var rowMatched = true;
90
90
  filteredColumnIds.forEach(function (columnId) {
91
+ /**
92
+ * The following logic compares the filter value with the cell value.
93
+ *
94
+ * 1. For table text columns, the cell value is a string.
95
+ * 2. For table number columns, the cell value is a number.
96
+ */
97
+
91
98
  var filter = filters[columnId] && typeof filters[columnId] === 'string' ? filters[columnId].toLowerCase() : filters[columnId] && typeof filters[columnId] === 'number' ? filters[columnId] : '';
92
99
  var value = row.cells && row.cells[columnId] && typeof row.cells[columnId] === 'string' ? row.cells[columnId].toLowerCase() : row.cells && row.cells[columnId] && typeof row.cells[columnId] === 'number' ? row.cells[columnId] : '';
93
100
  if (filter && typeof value === 'string' && (!value || value.indexOf(filter) === -1)) rowMatched = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.9.0-beta.1",
3
+ "version": "2.9.0-beta.2",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [