@esfaenza/admin-module 11.2.31 → 11.2.33
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/bundles/esfaenza-admin-module.umd.js +10 -11
- package/bundles/esfaenza-admin-module.umd.js.map +1 -1
- package/bundles/esfaenza-admin-module.umd.min.js +1 -1
- package/bundles/esfaenza-admin-module.umd.min.js.map +1 -1
- package/esm2015/lib/components/metrics/metrics_search.component.js +3 -3
- package/esm2015/lib/components/topact/topact_search.component.js +8 -9
- package/fesm2015/esfaenza-admin-module.js +9 -10
- package/fesm2015/esfaenza-admin-module.js.map +1 -1
- package/package.json +1 -1
|
@@ -1183,23 +1183,22 @@
|
|
|
1183
1183
|
if (update === void 0) { update = false; }
|
|
1184
1184
|
if (searchViewOverride === void 0) { searchViewOverride = null; }
|
|
1185
1185
|
return __awaiter(this, void 0, void 0, function () {
|
|
1186
|
-
var dateRequestOnRealtimeWindow;
|
|
1186
|
+
var sv, dateRequestOnRealtimeWindow;
|
|
1187
1187
|
return __generator(this, function (_a) {
|
|
1188
1188
|
switch (_a.label) {
|
|
1189
1189
|
case 0:
|
|
1190
|
-
|
|
1190
|
+
sv = searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView;
|
|
1191
|
+
if (!((sv.filterfrom || sv.filterto) && !this.rtWindow)) return [3 /*break*/, 2];
|
|
1191
1192
|
return [4 /*yield*/, this.updateRealTimeWindow()];
|
|
1192
1193
|
case 1:
|
|
1193
1194
|
_a.sent();
|
|
1194
1195
|
_a.label = 2;
|
|
1195
1196
|
case 2:
|
|
1196
|
-
dateRequestOnRealtimeWindow =
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
this.searchView.page = 1;
|
|
1202
|
-
this.POSTGetItems(this.backend + Repository.POST_Adm_GetTopActivities, searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView, update);
|
|
1197
|
+
dateRequestOnRealtimeWindow = sv.filterfrom && this.dateExts.getDateConvertion(sv.filterfrom).isAfter(this.rtWindow.from) &&
|
|
1198
|
+
sv.filterto && this.dateExts.getDateConvertion(sv.filterto).isBefore(this.rtWindow.to);
|
|
1199
|
+
sv.filterrealtime = dateRequestOnRealtimeWindow;
|
|
1200
|
+
sv.searchinprogress = true;
|
|
1201
|
+
this.POSTGetItems(this.backend + Repository.POST_Adm_GetTopActivities, sv, update);
|
|
1203
1202
|
return [2 /*return*/];
|
|
1204
1203
|
}
|
|
1205
1204
|
});
|
|
@@ -1585,8 +1584,8 @@
|
|
|
1585
1584
|
this.metricsToShow = [];
|
|
1586
1585
|
this.searchView = t;
|
|
1587
1586
|
this.searchView.items.forEach(function (m) {
|
|
1588
|
-
if (!_this.Instances.find(function (t) { return t.id == m.
|
|
1589
|
-
_this.Instances.push(new KeyValue(m.
|
|
1587
|
+
if (!_this.Instances.find(function (t) { return t.id == m.name; }))
|
|
1588
|
+
_this.Instances.push(new KeyValue(m.name, m.name));
|
|
1590
1589
|
});
|
|
1591
1590
|
this.instanceRequired = this.Instances.length > 1;
|
|
1592
1591
|
if (this.Instances.length == 1) {
|