@sd-angular/core 0.0.955 → 0.0.956

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.
@@ -1788,6 +1788,7 @@
1788
1788
  var columns = _this.gridOption.columns;
1789
1789
  var items = localItems.filter(function (item) {
1790
1790
  var e_4, _t;
1791
+ var _a, _b;
1791
1792
  try {
1792
1793
  for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
1793
1794
  var column = columns_1_1.value;
@@ -1802,6 +1803,11 @@
1802
1803
  return false;
1803
1804
  }
1804
1805
  }
1806
+ else if (column.type === 'values') {
1807
+ if (columnValue !== filterValue) {
1808
+ return false;
1809
+ }
1810
+ }
1805
1811
  else if (column.type === 'number') {
1806
1812
  var fValue = +filterValue.replace('>=', '').replace('<=', '').replace('>', '').replace('<', '');
1807
1813
  var cValue = +columnValue;
@@ -1835,12 +1841,14 @@
1835
1841
  }
1836
1842
  }
1837
1843
  else if (column.type === 'date' || column.type === 'datetime') {
1838
- var date = Date.toFormat(filterValue, 'MM/yyyy/dd');
1839
- var fromDate = new Date(date);
1840
- var toDate = new Date(date);
1841
- toDate.setDate(toDate.getDate() + 1);
1842
- if (new Date(columnValue).getTime() < fromDate.getTime() || new Date(columnValue).getTime() >= toDate.getTime()) {
1843
- return false;
1844
+ var from = (_a = filterInfo.rawColumnFilter[column.field]) === null || _a === void 0 ? void 0 : _a.from;
1845
+ var to = (_b = filterInfo.rawColumnFilter[column.field]) === null || _b === void 0 ? void 0 : _b.to;
1846
+ var fromDate = Date.begin(from);
1847
+ var toDate = Date.end(to);
1848
+ if (!fromDate || !toDate) {
1849
+ if (new Date(columnValue).getTime() < fromDate.getTime() || new Date(columnValue).getTime() >= toDate.getTime()) {
1850
+ return false;
1851
+ }
1844
1852
  }
1845
1853
  }
1846
1854
  }