@c8y/ngx-components 1024.20.1 → 1024.20.8
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-application-select.mjs +1 -1
- package/fesm2022/c8y-ngx-components-application-select.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-asset-properties.mjs +3 -2
- package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +78 -17
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-profile.mjs +1 -1
- package/fesm2022/c8y-ngx-components-device-profile.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +45 -81
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem.mjs +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-icon-selector.mjs +4 -4
- package/fesm2022/c8y-ngx-components-icon-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs +2 -2
- package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs +4 -4
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs +2 -2
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-shared.mjs +2 -2
- package/fesm2022/c8y-ngx-components-repository-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-software.mjs +1 -1
- package/fesm2022/c8y-ngx-components-repository-software.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs +17 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-scada.mjs +21 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-scada.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +60 -31
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +2 -2
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +199 -21
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/pt_BR.po +2 -2
- package/package.json +1 -1
- package/types/c8y-ngx-components-asset-properties.d.ts.map +1 -1
- package/types/c8y-ngx-components-context-dashboard.d.ts +37 -3
- package/types/c8y-ngx-components-context-dashboard.d.ts.map +1 -1
- package/types/c8y-ngx-components-widgets-implementations-asset-table.d.ts +5 -0
- package/types/c8y-ngx-components-widgets-implementations-asset-table.d.ts.map +1 -1
- package/types/c8y-ngx-components.d.ts +141 -4
- package/types/c8y-ngx-components.d.ts.map +1 -1
|
@@ -1746,83 +1746,46 @@ class EchartsOptionsService {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
];
|
|
1748
1748
|
}
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
{
|
|
1790
|
-
coord: coordCreationTime,
|
|
1791
|
-
name: item.type,
|
|
1792
|
-
itemType: item.type,
|
|
1793
|
-
itemStyle: {
|
|
1794
|
-
color: item['color']
|
|
1795
|
-
},
|
|
1796
|
-
symbol: 'circle',
|
|
1797
|
-
symbolSize: 24
|
|
1798
|
-
},
|
|
1799
|
-
{
|
|
1800
|
-
coord: coordCreationTime,
|
|
1801
|
-
name: item.type,
|
|
1802
|
-
itemType: item.type,
|
|
1803
|
-
itemStyle: { color: 'white' },
|
|
1804
|
-
symbol: ICONS_MAP[item.severity],
|
|
1805
|
-
symbolSize: 16
|
|
1806
|
-
},
|
|
1807
|
-
{
|
|
1808
|
-
coord: coordLastUpdatedTime,
|
|
1809
|
-
name: item.type,
|
|
1810
|
-
itemType: item.type,
|
|
1811
|
-
itemStyle: {
|
|
1812
|
-
color: item['color']
|
|
1813
|
-
},
|
|
1814
|
-
symbol: 'circle',
|
|
1815
|
-
symbolSize: 24
|
|
1816
|
-
},
|
|
1817
|
-
{
|
|
1818
|
-
coord: coordLastUpdatedTime,
|
|
1819
|
-
name: item.type,
|
|
1820
|
-
itemType: item.type,
|
|
1821
|
-
itemStyle: { color: 'white' },
|
|
1822
|
-
symbol: ICONS_MAP[item.severity],
|
|
1823
|
-
symbolSize: 16
|
|
1824
|
-
}
|
|
1825
|
-
];
|
|
1749
|
+
const creationMarks = [
|
|
1750
|
+
{
|
|
1751
|
+
coord: coordCreationTime,
|
|
1752
|
+
name: item.type,
|
|
1753
|
+
itemType: item.type,
|
|
1754
|
+
itemStyle: { color: item['color'] },
|
|
1755
|
+
symbol: 'circle',
|
|
1756
|
+
symbolSize: 24
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
coord: coordCreationTime,
|
|
1760
|
+
name: item.type,
|
|
1761
|
+
itemType: item.type,
|
|
1762
|
+
itemStyle: { color: 'white' },
|
|
1763
|
+
symbol: ICONS_MAP[item.severity],
|
|
1764
|
+
symbolSize: 16
|
|
1765
|
+
}
|
|
1766
|
+
];
|
|
1767
|
+
if (!item['lastUpdated']) {
|
|
1768
|
+
return creationMarks;
|
|
1769
|
+
}
|
|
1770
|
+
return [
|
|
1771
|
+
...creationMarks,
|
|
1772
|
+
{
|
|
1773
|
+
coord: coordLastUpdatedTime,
|
|
1774
|
+
name: item.type,
|
|
1775
|
+
itemType: item.type,
|
|
1776
|
+
itemStyle: { color: item['color'] },
|
|
1777
|
+
symbol: 'circle',
|
|
1778
|
+
symbolSize: 24
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
coord: coordLastUpdatedTime,
|
|
1782
|
+
name: item.type,
|
|
1783
|
+
itemType: item.type,
|
|
1784
|
+
itemStyle: { color: 'white' },
|
|
1785
|
+
symbol: isCleared ? ICONS_MAP.CLEARED : ICONS_MAP[item.severity],
|
|
1786
|
+
symbolSize: 16
|
|
1787
|
+
}
|
|
1788
|
+
];
|
|
1826
1789
|
}
|
|
1827
1790
|
/**
|
|
1828
1791
|
* This method creates a markLine on the chart which represents the line between every alarm or event on the chart.
|
|
@@ -1844,7 +1807,7 @@ class EchartsOptionsService {
|
|
|
1844
1807
|
}
|
|
1845
1808
|
]);
|
|
1846
1809
|
}
|
|
1847
|
-
if (item.creationTime === item['lastUpdated']) {
|
|
1810
|
+
if (!item['lastUpdated'] || item.creationTime === item['lastUpdated']) {
|
|
1848
1811
|
return acc.concat([
|
|
1849
1812
|
{
|
|
1850
1813
|
xAxis: item.creationTime,
|
|
@@ -2300,10 +2263,11 @@ class ChartRealtimeService {
|
|
|
2300
2263
|
if (!alarmOrEvent)
|
|
2301
2264
|
return;
|
|
2302
2265
|
const matchingConfig = activeAlarmsOrEvents.find(aOrE => aOrE.filters.type === alarmOrEvent.type && aOrE.__target?.id === alarmOrEvent.source?.id);
|
|
2303
|
-
if (matchingConfig) {
|
|
2304
|
-
|
|
2305
|
-
alarmOrEvent['selectedDatapoint'] = matchingConfig.selectedDatapoint;
|
|
2266
|
+
if (!matchingConfig) {
|
|
2267
|
+
return;
|
|
2306
2268
|
}
|
|
2269
|
+
alarmOrEvent['color'] = matchingConfig.color;
|
|
2270
|
+
alarmOrEvent['selectedDatapoint'] = matchingConfig.selectedDatapoint;
|
|
2307
2271
|
if ('severity' in alarmOrEvent) {
|
|
2308
2272
|
// Alarm
|
|
2309
2273
|
const existingIdx = this.currentAlarms.findIndex(a => a.id === alarmOrEvent.id);
|