@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.
- package/fesm2022/masterteam-components-entities.mjs +18 -4
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +9 -4
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +2 -0
|
@@ -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
|
-
|
|
357
|
-
|
|
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
|
}
|