@cqa-lib/cqa-ui 1.0.76 → 1.0.77
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.
|
@@ -2171,20 +2171,20 @@ class DynamicFilterComponent {
|
|
|
2171
2171
|
endOfMonth(year, month) { return new Date(year, month + 1, 0, 23, 59, 59, 999); }
|
|
2172
2172
|
buildNgxRanges() {
|
|
2173
2173
|
const today = new Date();
|
|
2174
|
-
const yesterday = new Date();
|
|
2175
|
-
yesterday.setDate(yesterday.getDate() - 1);
|
|
2176
2174
|
const last7Start = new Date();
|
|
2177
2175
|
last7Start.setDate(last7Start.getDate() - 6);
|
|
2178
2176
|
const last30Start = new Date();
|
|
2179
2177
|
last30Start.setDate(last30Start.getDate() - 29);
|
|
2178
|
+
const last90Start = new Date();
|
|
2179
|
+
last90Start.setDate(last90Start.getDate() - 89);
|
|
2180
2180
|
const thisMonthStart = this.startOfMonth(today.getFullYear(), today.getMonth());
|
|
2181
2181
|
const lastMonthStart = this.startOfMonth(today.getFullYear(), today.getMonth() - 1);
|
|
2182
2182
|
const lastMonthEnd = this.endOfMonth(today.getFullYear(), today.getMonth() - 1);
|
|
2183
2183
|
return {
|
|
2184
2184
|
'Today': [this.startOfDay(today), this.endOfDay(today)],
|
|
2185
|
-
'Yesterday': [this.startOfDay(yesterday), this.endOfDay(yesterday)],
|
|
2186
2185
|
'Last 7 Days': [this.startOfDay(last7Start), this.endOfDay(today)],
|
|
2187
2186
|
'Last 30 Days': [this.startOfDay(last30Start), this.endOfDay(today)],
|
|
2187
|
+
'Last 90 Days': [this.startOfDay(last90Start), this.endOfDay(today)],
|
|
2188
2188
|
'This Month': [this.startOfDay(thisMonthStart), this.endOfDay(today)],
|
|
2189
2189
|
'Last Month': [this.startOfDay(lastMonthStart), this.endOfDay(lastMonthEnd)],
|
|
2190
2190
|
};
|