@masterteam/components 0.0.198 → 0.0.199

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.
@@ -339,7 +339,9 @@ class TableValueResolver {
339
339
  const itemDateValue = filterType === 'date'
340
340
  ? typeof normalizedFilterValue === 'number'
341
341
  ? normalizedFilterValue
342
- : null
342
+ : normalizedFilterValue != null && normalizedFilterValue !== ''
343
+ ? new Date(String(normalizedFilterValue)).getTime()
344
+ : null
343
345
  : itemValue instanceof Date
344
346
  ? itemValue.getTime()
345
347
  : new Date(String(itemValue)).getTime();
@@ -352,9 +354,12 @@ class TableValueResolver {
352
354
  itemDateValue < new Date(objectFilter.from).getTime()) {
353
355
  return false;
354
356
  }
355
- if (objectFilter.to &&
356
- itemDateValue > new Date(objectFilter.to).getTime()) {
357
- return false;
357
+ if (objectFilter.to) {
358
+ const toDate = new Date(objectFilter.to);
359
+ toDate.setHours(23, 59, 59, 999);
360
+ if (itemDateValue > toDate.getTime()) {
361
+ return false;
362
+ }
358
363
  }
359
364
  return true;
360
365
  }