@c8y/ngx-components 1024.15.13 → 1024.15.16
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/c8y-ngx-components-ai-ai-chat.mjs +4 -4
- package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +3 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +14 -8
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/locales/locales.pot +3 -0
- package/package.json +1 -1
- package/types/c8y-ngx-components-context-dashboard.d.ts.map +1 -1
- package/types/c8y-ngx-components-echart.d.ts.map +1 -1
|
@@ -2402,13 +2402,16 @@ class ChartEventsService {
|
|
|
2402
2402
|
pageSize: 1000,
|
|
2403
2403
|
...params
|
|
2404
2404
|
};
|
|
2405
|
-
return this.eventService
|
|
2405
|
+
return this.eventService
|
|
2406
|
+
.list(fetchOptions)
|
|
2407
|
+
.then(result => {
|
|
2406
2408
|
result.data.forEach(iEvent => {
|
|
2407
2409
|
iEvent['color'] = event.color;
|
|
2408
2410
|
iEvent['selectedDatapoint'] = event.selectedDatapoint;
|
|
2409
2411
|
});
|
|
2410
2412
|
return result.data;
|
|
2411
|
-
})
|
|
2413
|
+
})
|
|
2414
|
+
.catch(() => []);
|
|
2412
2415
|
});
|
|
2413
2416
|
const result = await Promise.all(promises);
|
|
2414
2417
|
return result.flat();
|
|
@@ -2456,13 +2459,16 @@ class ChartAlarmsService {
|
|
|
2456
2459
|
pageSize: 1000,
|
|
2457
2460
|
...params
|
|
2458
2461
|
};
|
|
2459
|
-
return this.alarmService
|
|
2462
|
+
return this.alarmService
|
|
2463
|
+
.list(fetchOptions)
|
|
2464
|
+
.then(result => {
|
|
2460
2465
|
result.data.forEach(iAlarm => {
|
|
2461
2466
|
iAlarm['color'] = alarm.color;
|
|
2462
2467
|
iAlarm['selectedDatapoint'] = alarm.selectedDatapoint;
|
|
2463
2468
|
});
|
|
2464
2469
|
return result.data;
|
|
2465
|
-
})
|
|
2470
|
+
})
|
|
2471
|
+
.catch(() => []);
|
|
2466
2472
|
});
|
|
2467
2473
|
const result = await Promise.all(promises);
|
|
2468
2474
|
return result.flat();
|
|
@@ -3499,7 +3505,7 @@ class ChartsComponent {
|
|
|
3499
3505
|
aggregationInterval: this.AGGREGATION_INTERVAL_MAP[this.config.aggregation]
|
|
3500
3506
|
})
|
|
3501
3507
|
})).pipe(map(res => {
|
|
3502
|
-
const values = res.data.values;
|
|
3508
|
+
const values = res.data.values || {};
|
|
3503
3509
|
if (res.data.truncated && this.config.dateFrom) {
|
|
3504
3510
|
values[new Date(this.config.dateFrom).toISOString()] = [{ min: null, max: null }];
|
|
3505
3511
|
}
|
|
@@ -3552,7 +3558,7 @@ class ChartsComponent {
|
|
|
3552
3558
|
aggregationInterval: this.AGGREGATION_INTERVAL_MAP[this.config.aggregation]
|
|
3553
3559
|
})
|
|
3554
3560
|
})).pipe(map(res => {
|
|
3555
|
-
const values = res.data.values;
|
|
3561
|
+
const values = res.data.values || {};
|
|
3556
3562
|
if (res.data.truncated && this.config.dateFrom) {
|
|
3557
3563
|
values[new Date(this.config.dateFrom).toISOString()] = [{ min: null, max: null }];
|
|
3558
3564
|
}
|
|
@@ -3563,7 +3569,7 @@ class ChartsComponent {
|
|
|
3563
3569
|
}
|
|
3564
3570
|
// If the datapoint already has a unit (e.g. from config), keep it. Otherwise, try to get it from the series response.
|
|
3565
3571
|
if (!dp.unit) {
|
|
3566
|
-
const unitFromSeries = res.data.series[0]?.unit;
|
|
3572
|
+
const unitFromSeries = res.data.series?.[0]?.unit;
|
|
3567
3573
|
if (unitFromSeries) {
|
|
3568
3574
|
dp.unit = unitFromSeries;
|
|
3569
3575
|
}
|
|
@@ -3636,7 +3642,7 @@ class ChartsComponent {
|
|
|
3636
3642
|
aggregationInterval: this.AGGREGATION_INTERVAL_MAP[(customTimeRange ? this.getAggregationTypeForTimeRange() : this.config.aggregation)]
|
|
3637
3643
|
})
|
|
3638
3644
|
})).pipe(map(res => {
|
|
3639
|
-
const values = res.data.values;
|
|
3645
|
+
const values = res.data.values || {};
|
|
3640
3646
|
if (res.data.truncated && this.config.dateFrom) {
|
|
3641
3647
|
values[new Date(this.config.dateFrom).toISOString()] = [{ min: null, max: null }];
|
|
3642
3648
|
}
|