@yuuvis/client-core 2.3.30 → 2.3.31
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,6 @@ var ClassificationPrefix;
|
|
|
408
408
|
})(ClassificationPrefix || (ClassificationPrefix = {}));
|
|
409
409
|
|
|
410
410
|
class Utils {
|
|
411
|
-
static { this.DEFAULT_RANGE_TIME_V1 = 'T00:00:00.000Z'; }
|
|
412
|
-
static { this.DEFAULT_RANGE_TIME_V2 = 'T23:59:59.000Z'; }
|
|
413
411
|
static { this.DEFAULT_TIME_OFFSET_V2 = (60000 * 60 * 24) - 1; } // T+23:59:59:999
|
|
414
412
|
static optionsToURLParams(options) {
|
|
415
413
|
if (options) {
|
|
@@ -2179,12 +2177,12 @@ class SearchService {
|
|
|
2179
2177
|
if (!Utils.isValidDate(date))
|
|
2180
2178
|
return '';
|
|
2181
2179
|
const isoDateString = date.toISOString();
|
|
2182
|
-
const isoDateStringWithOffset = new Date(date.getTime() + offset).toISOString();
|
|
2180
|
+
// const isoDateStringWithOffset = new Date(date.getTime() + offset).toISOString();
|
|
2183
2181
|
switch (range) {
|
|
2184
2182
|
case 'start':
|
|
2185
2183
|
return isoDateString;
|
|
2186
2184
|
case 'end':
|
|
2187
|
-
return
|
|
2185
|
+
return isoDateString;
|
|
2188
2186
|
default:
|
|
2189
2187
|
return isoDateString;
|
|
2190
2188
|
}
|
|
@@ -4898,7 +4896,7 @@ class SearchUtils {
|
|
|
4898
4896
|
const yesterday = new Date();
|
|
4899
4897
|
yesterday.setDate(yesterday.getDate() - 1);
|
|
4900
4898
|
start = yesterday;
|
|
4901
|
-
end = yesterday;
|
|
4899
|
+
end = new Date(yesterday);
|
|
4902
4900
|
break;
|
|
4903
4901
|
}
|
|
4904
4902
|
case 'thisWeek': {
|
|
@@ -4956,10 +4954,10 @@ class SearchUtils {
|
|
|
4956
4954
|
break;
|
|
4957
4955
|
}
|
|
4958
4956
|
}
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4957
|
+
if (start)
|
|
4958
|
+
start.setHours(0, 0, 0, 0);
|
|
4959
|
+
if (end)
|
|
4960
|
+
end.setHours(23, 59, 59, 999);
|
|
4963
4961
|
return { start, end };
|
|
4964
4962
|
}
|
|
4965
4963
|
/**
|
|
@@ -4970,8 +4968,7 @@ class SearchUtils {
|
|
|
4970
4968
|
static getMatchingDateRange(rangeValue) {
|
|
4971
4969
|
return SearchUtils.dateRanges.find((dateRange) => {
|
|
4972
4970
|
const { start, end } = SearchUtils.dateRangeStartEnd(dateRange);
|
|
4973
|
-
return
|
|
4974
|
-
rangeValue.secondValue.toISOString() === end.toISOString().split('T')[0] + Utils.DEFAULT_RANGE_TIME_V2);
|
|
4971
|
+
return rangeValue.firstValue.toISOString() === start.toISOString() && rangeValue.secondValue.toISOString() === end.toISOString();
|
|
4975
4972
|
});
|
|
4976
4973
|
}
|
|
4977
4974
|
// Files size ranges
|