@yuuvis/client-core 2.3.28 → 2.3.30
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.
|
@@ -408,8 +408,8 @@ var ClassificationPrefix;
|
|
|
408
408
|
})(ClassificationPrefix || (ClassificationPrefix = {}));
|
|
409
409
|
|
|
410
410
|
class Utils {
|
|
411
|
-
static { this.DEFAULT_RANGE_TIME_V1 = 'T00:00:00.
|
|
412
|
-
static { this.DEFAULT_RANGE_TIME_V2 = 'T23:59:59.
|
|
411
|
+
static { this.DEFAULT_RANGE_TIME_V1 = 'T00:00:00.000Z'; }
|
|
412
|
+
static { this.DEFAULT_RANGE_TIME_V2 = 'T23:59:59.000Z'; }
|
|
413
413
|
static { this.DEFAULT_TIME_OFFSET_V2 = (60000 * 60 * 24) - 1; } // T+23:59:59:999
|
|
414
414
|
static optionsToURLParams(options) {
|
|
415
415
|
if (options) {
|
|
@@ -4956,9 +4956,9 @@ class SearchUtils {
|
|
|
4956
4956
|
break;
|
|
4957
4957
|
}
|
|
4958
4958
|
}
|
|
4959
|
-
const startString = start
|
|
4959
|
+
const startString = start?.toISOString().split('T')[0] + Utils.DEFAULT_RANGE_TIME_V1;
|
|
4960
4960
|
start = new Date(startString);
|
|
4961
|
-
const endString = end
|
|
4961
|
+
const endString = end?.toISOString().split('T')[0] + Utils.DEFAULT_RANGE_TIME_V2;
|
|
4962
4962
|
end = new Date(endString);
|
|
4963
4963
|
return { start, end };
|
|
4964
4964
|
}
|
|
@@ -4970,8 +4970,8 @@ class SearchUtils {
|
|
|
4970
4970
|
static getMatchingDateRange(rangeValue) {
|
|
4971
4971
|
return SearchUtils.dateRanges.find((dateRange) => {
|
|
4972
4972
|
const { start, end } = SearchUtils.dateRangeStartEnd(dateRange);
|
|
4973
|
-
return (rangeValue.firstValue === start.toISOString().split('T')[0] + Utils.DEFAULT_RANGE_TIME_V1 &&
|
|
4974
|
-
rangeValue.secondValue === end.toISOString().split('T')[0] + Utils.DEFAULT_RANGE_TIME_V2);
|
|
4973
|
+
return (rangeValue.firstValue.toISOString() === start.toISOString().split('T')[0] + Utils.DEFAULT_RANGE_TIME_V1 &&
|
|
4974
|
+
rangeValue.secondValue.toISOString() === end.toISOString().split('T')[0] + Utils.DEFAULT_RANGE_TIME_V2);
|
|
4975
4975
|
});
|
|
4976
4976
|
}
|
|
4977
4977
|
// Files size ranges
|