myio-js-library 0.1.464 → 0.1.466
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/dist/index.cjs +19 -8
- package/dist/index.d.cts +2 -0
- package/dist/index.js +19 -8
- package/dist/myio-js-library.umd.js +19 -8
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1139,7 +1139,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
1139
1139
|
// package.json
|
|
1140
1140
|
var package_default = {
|
|
1141
1141
|
name: "myio-js-library",
|
|
1142
|
-
version: "0.1.
|
|
1142
|
+
version: "0.1.466",
|
|
1143
1143
|
description: "A clean, standalone JS SDK for MYIO projects",
|
|
1144
1144
|
license: "MIT",
|
|
1145
1145
|
repository: "github:gh-myio/myio-js-library",
|
|
@@ -27485,6 +27485,12 @@ var EnergyModalView = class {
|
|
|
27485
27485
|
/**
|
|
27486
27486
|
* Gets modal title based on mode
|
|
27487
27487
|
*/
|
|
27488
|
+
canShowDemandButtons() {
|
|
27489
|
+
const { readingType, mode, deviceProfile, canShowDemandButtons } = this.config.params;
|
|
27490
|
+
if (readingType !== "energy" || mode === "comparison") return false;
|
|
27491
|
+
if (canShowDemandButtons !== void 0 && canShowDemandButtons !== null) return canShowDemandButtons;
|
|
27492
|
+
return deviceProfile !== "3F_MEDIDOR";
|
|
27493
|
+
}
|
|
27488
27494
|
getModalTitle() {
|
|
27489
27495
|
const mode = this.config.params.mode || "single";
|
|
27490
27496
|
if (mode === "comparison") {
|
|
@@ -27534,7 +27540,7 @@ var EnergyModalView = class {
|
|
|
27534
27540
|
<button id="export-csv-btn" class="myio-btn myio-btn-secondary" disabled>
|
|
27535
27541
|
Exportar CSV
|
|
27536
27542
|
</button>
|
|
27537
|
-
${this.
|
|
27543
|
+
${this.canShowDemandButtons() ? `
|
|
27538
27544
|
<button id="view-demand-btn" class="myio-btn myio-btn-secondary" style="
|
|
27539
27545
|
background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
|
|
27540
27546
|
color: white;
|
|
@@ -49433,6 +49439,7 @@ var DEFAULT_ALARM_FILTERS = {
|
|
|
49433
49439
|
fromDate: void 0,
|
|
49434
49440
|
toDate: void 0
|
|
49435
49441
|
};
|
|
49442
|
+
var DEFAULT_EXCLUDED_ALARM_TYPES = ["DEVICE OFFLINE", "DISPOSITIVO OFFLINE"];
|
|
49436
49443
|
function getSeverityConfig(severity) {
|
|
49437
49444
|
return SEVERITY_CONFIG[severity];
|
|
49438
49445
|
}
|
|
@@ -85105,7 +85112,7 @@ var GroupManagementTab = class {
|
|
|
85105
85112
|
}
|
|
85106
85113
|
gcdrBase() {
|
|
85107
85114
|
const orch = window.MyIOOrchestrator;
|
|
85108
|
-
return (orch?.
|
|
85115
|
+
return (orch?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com").replace(/\/$/, "");
|
|
85109
85116
|
}
|
|
85110
85117
|
gcdrCid() {
|
|
85111
85118
|
return window.MyIOOrchestrator?.gcdrCustomerId || "";
|
|
@@ -86200,7 +86207,7 @@ var UserDetailTab = class {
|
|
|
86200
86207
|
}
|
|
86201
86208
|
// ── RFC-0197: Assignments Section ─────────────────────────────────────────
|
|
86202
86209
|
gcdrBase() {
|
|
86203
|
-
return window.MyIOOrchestrator?.
|
|
86210
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
86204
86211
|
}
|
|
86205
86212
|
gcdrHeaders() {
|
|
86206
86213
|
const orch = window.MyIOOrchestrator;
|
|
@@ -86631,7 +86638,7 @@ var PoliciesTab = class {
|
|
|
86631
86638
|
return email.endsWith("@myio.com.br") && !email.startsWith("alarme@") && !email.startsWith("alarmes@");
|
|
86632
86639
|
}
|
|
86633
86640
|
gcdrBase() {
|
|
86634
|
-
return window.MyIOOrchestrator?.
|
|
86641
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
86635
86642
|
}
|
|
86636
86643
|
gcdrHeaders() {
|
|
86637
86644
|
const orch = window.MyIOOrchestrator;
|
|
@@ -86858,7 +86865,7 @@ var RolesTab = class {
|
|
|
86858
86865
|
return email.endsWith("@myio.com.br") && !email.startsWith("alarme@") && !email.startsWith("alarmes@");
|
|
86859
86866
|
}
|
|
86860
86867
|
gcdrBase() {
|
|
86861
|
-
return window.MyIOOrchestrator?.
|
|
86868
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
86862
86869
|
}
|
|
86863
86870
|
gcdrHeaders() {
|
|
86864
86871
|
const orch = window.MyIOOrchestrator;
|
|
@@ -87575,7 +87582,7 @@ var UserManagementModalView = class {
|
|
|
87575
87582
|
.um-badge--admin { background: var(--um-badge-admin-bg); color: var(--um-badge-admin-text); }
|
|
87576
87583
|
.um-badge--user { background: var(--um-badge-user-bg); color: var(--um-badge-user-text); }
|
|
87577
87584
|
|
|
87578
|
-
.um-form { display: flex; flex-direction: column; gap: 14px;
|
|
87585
|
+
.um-form { display: flex; flex-direction: column; gap: 14px;}
|
|
87579
87586
|
.um-form-row { display: flex; gap: 12px; }
|
|
87580
87587
|
.um-form-row .um-form-group { flex: 1; }
|
|
87581
87588
|
.um-form-group { display: flex; flex-direction: column; gap: 5px; }
|
|
@@ -111830,6 +111837,8 @@ var AlarmsNotificationsPanelController = class {
|
|
|
111830
111837
|
const alarmType = this.state.filters.alarmType;
|
|
111831
111838
|
if (alarmType && alarmType.length > 0) {
|
|
111832
111839
|
filtered = filtered.filter((alarm) => alarmType.includes(alarm.title));
|
|
111840
|
+
} else if (window.MyIOOrchestrator?.showOfflineAlarms !== true) {
|
|
111841
|
+
filtered = filtered.filter((alarm) => !DEFAULT_EXCLUDED_ALARM_TYPES.includes((alarm.title ?? "").toUpperCase()));
|
|
111833
111842
|
}
|
|
111834
111843
|
const devices = this.state.filters.devices;
|
|
111835
111844
|
if (devices && devices.length > 0) {
|
|
@@ -112908,7 +112917,9 @@ var AlarmsNotificationsPanelView = class {
|
|
|
112908
112917
|
const allStates = ["OPEN", "ACK", "SNOOZED", "ESCALATED"];
|
|
112909
112918
|
const selSeverity = new Set(filters.severity?.length ? filters.severity : allSeverities);
|
|
112910
112919
|
const selState = new Set(filters.state?.length ? filters.state : allStates);
|
|
112911
|
-
const selAlarmType = new Set(
|
|
112920
|
+
const selAlarmType = new Set(
|
|
112921
|
+
filters.alarmType?.length ? filters.alarmType : alarmTypes.filter((t) => !DEFAULT_EXCLUDED_ALARM_TYPES.includes(t.toUpperCase()))
|
|
112922
|
+
);
|
|
112912
112923
|
const selDevices = new Set(filters.devices?.length ? filters.devices : allDevices);
|
|
112913
112924
|
const tabs = [
|
|
112914
112925
|
{ id: "severity", label: "Severidade", icon: "\u26A1", count: selSeverity.size < allSeverities.length ? allSeverities.length - selSeverity.size : 0 },
|
package/dist/index.d.cts
CHANGED
|
@@ -3725,6 +3725,8 @@ interface OpenDashboardPopupEnergyOptions {
|
|
|
3725
3725
|
granularity?: '1d' | '1h' | '15m';
|
|
3726
3726
|
deviceLabel?: string;
|
|
3727
3727
|
deviceProfile?: string;
|
|
3728
|
+
/** Customer SERVER_SCOPE attribute. When true, shows Pico de Demanda and Telemetrias Instantâneas buttons. Default: false. */
|
|
3729
|
+
canShowDemandButtons?: boolean;
|
|
3728
3730
|
closeOnEsc?: boolean;
|
|
3729
3731
|
zIndex?: number;
|
|
3730
3732
|
deep?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -546,7 +546,7 @@ var init_template_card = __esm({
|
|
|
546
546
|
// package.json
|
|
547
547
|
var package_default = {
|
|
548
548
|
name: "myio-js-library",
|
|
549
|
-
version: "0.1.
|
|
549
|
+
version: "0.1.466",
|
|
550
550
|
description: "A clean, standalone JS SDK for MYIO projects",
|
|
551
551
|
license: "MIT",
|
|
552
552
|
repository: "github:gh-myio/myio-js-library",
|
|
@@ -26892,6 +26892,12 @@ var EnergyModalView = class {
|
|
|
26892
26892
|
/**
|
|
26893
26893
|
* Gets modal title based on mode
|
|
26894
26894
|
*/
|
|
26895
|
+
canShowDemandButtons() {
|
|
26896
|
+
const { readingType, mode, deviceProfile, canShowDemandButtons } = this.config.params;
|
|
26897
|
+
if (readingType !== "energy" || mode === "comparison") return false;
|
|
26898
|
+
if (canShowDemandButtons !== void 0 && canShowDemandButtons !== null) return canShowDemandButtons;
|
|
26899
|
+
return deviceProfile !== "3F_MEDIDOR";
|
|
26900
|
+
}
|
|
26895
26901
|
getModalTitle() {
|
|
26896
26902
|
const mode = this.config.params.mode || "single";
|
|
26897
26903
|
if (mode === "comparison") {
|
|
@@ -26941,7 +26947,7 @@ var EnergyModalView = class {
|
|
|
26941
26947
|
<button id="export-csv-btn" class="myio-btn myio-btn-secondary" disabled>
|
|
26942
26948
|
Exportar CSV
|
|
26943
26949
|
</button>
|
|
26944
|
-
${this.
|
|
26950
|
+
${this.canShowDemandButtons() ? `
|
|
26945
26951
|
<button id="view-demand-btn" class="myio-btn myio-btn-secondary" style="
|
|
26946
26952
|
background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
|
|
26947
26953
|
color: white;
|
|
@@ -48840,6 +48846,7 @@ var DEFAULT_ALARM_FILTERS = {
|
|
|
48840
48846
|
fromDate: void 0,
|
|
48841
48847
|
toDate: void 0
|
|
48842
48848
|
};
|
|
48849
|
+
var DEFAULT_EXCLUDED_ALARM_TYPES = ["DEVICE OFFLINE", "DISPOSITIVO OFFLINE"];
|
|
48843
48850
|
function getSeverityConfig(severity) {
|
|
48844
48851
|
return SEVERITY_CONFIG[severity];
|
|
48845
48852
|
}
|
|
@@ -84512,7 +84519,7 @@ var GroupManagementTab = class {
|
|
|
84512
84519
|
}
|
|
84513
84520
|
gcdrBase() {
|
|
84514
84521
|
const orch = window.MyIOOrchestrator;
|
|
84515
|
-
return (orch?.
|
|
84522
|
+
return (orch?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com").replace(/\/$/, "");
|
|
84516
84523
|
}
|
|
84517
84524
|
gcdrCid() {
|
|
84518
84525
|
return window.MyIOOrchestrator?.gcdrCustomerId || "";
|
|
@@ -85607,7 +85614,7 @@ var UserDetailTab = class {
|
|
|
85607
85614
|
}
|
|
85608
85615
|
// ── RFC-0197: Assignments Section ─────────────────────────────────────────
|
|
85609
85616
|
gcdrBase() {
|
|
85610
|
-
return window.MyIOOrchestrator?.
|
|
85617
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
85611
85618
|
}
|
|
85612
85619
|
gcdrHeaders() {
|
|
85613
85620
|
const orch = window.MyIOOrchestrator;
|
|
@@ -86038,7 +86045,7 @@ var PoliciesTab = class {
|
|
|
86038
86045
|
return email.endsWith("@myio.com.br") && !email.startsWith("alarme@") && !email.startsWith("alarmes@");
|
|
86039
86046
|
}
|
|
86040
86047
|
gcdrBase() {
|
|
86041
|
-
return window.MyIOOrchestrator?.
|
|
86048
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
86042
86049
|
}
|
|
86043
86050
|
gcdrHeaders() {
|
|
86044
86051
|
const orch = window.MyIOOrchestrator;
|
|
@@ -86265,7 +86272,7 @@ var RolesTab = class {
|
|
|
86265
86272
|
return email.endsWith("@myio.com.br") && !email.startsWith("alarme@") && !email.startsWith("alarmes@");
|
|
86266
86273
|
}
|
|
86267
86274
|
gcdrBase() {
|
|
86268
|
-
return window.MyIOOrchestrator?.
|
|
86275
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
86269
86276
|
}
|
|
86270
86277
|
gcdrHeaders() {
|
|
86271
86278
|
const orch = window.MyIOOrchestrator;
|
|
@@ -86982,7 +86989,7 @@ var UserManagementModalView = class {
|
|
|
86982
86989
|
.um-badge--admin { background: var(--um-badge-admin-bg); color: var(--um-badge-admin-text); }
|
|
86983
86990
|
.um-badge--user { background: var(--um-badge-user-bg); color: var(--um-badge-user-text); }
|
|
86984
86991
|
|
|
86985
|
-
.um-form { display: flex; flex-direction: column; gap: 14px;
|
|
86992
|
+
.um-form { display: flex; flex-direction: column; gap: 14px;}
|
|
86986
86993
|
.um-form-row { display: flex; gap: 12px; }
|
|
86987
86994
|
.um-form-row .um-form-group { flex: 1; }
|
|
86988
86995
|
.um-form-group { display: flex; flex-direction: column; gap: 5px; }
|
|
@@ -111237,6 +111244,8 @@ var AlarmsNotificationsPanelController = class {
|
|
|
111237
111244
|
const alarmType = this.state.filters.alarmType;
|
|
111238
111245
|
if (alarmType && alarmType.length > 0) {
|
|
111239
111246
|
filtered = filtered.filter((alarm) => alarmType.includes(alarm.title));
|
|
111247
|
+
} else if (window.MyIOOrchestrator?.showOfflineAlarms !== true) {
|
|
111248
|
+
filtered = filtered.filter((alarm) => !DEFAULT_EXCLUDED_ALARM_TYPES.includes((alarm.title ?? "").toUpperCase()));
|
|
111240
111249
|
}
|
|
111241
111250
|
const devices = this.state.filters.devices;
|
|
111242
111251
|
if (devices && devices.length > 0) {
|
|
@@ -112315,7 +112324,9 @@ var AlarmsNotificationsPanelView = class {
|
|
|
112315
112324
|
const allStates = ["OPEN", "ACK", "SNOOZED", "ESCALATED"];
|
|
112316
112325
|
const selSeverity = new Set(filters.severity?.length ? filters.severity : allSeverities);
|
|
112317
112326
|
const selState = new Set(filters.state?.length ? filters.state : allStates);
|
|
112318
|
-
const selAlarmType = new Set(
|
|
112327
|
+
const selAlarmType = new Set(
|
|
112328
|
+
filters.alarmType?.length ? filters.alarmType : alarmTypes.filter((t) => !DEFAULT_EXCLUDED_ALARM_TYPES.includes(t.toUpperCase()))
|
|
112329
|
+
);
|
|
112319
112330
|
const selDevices = new Set(filters.devices?.length ? filters.devices : allDevices);
|
|
112320
112331
|
const tabs = [
|
|
112321
112332
|
{ id: "severity", label: "Severidade", icon: "\u26A1", count: selSeverity.size < allSeverities.length ? allSeverities.length - selSeverity.size : 0 },
|
|
@@ -4070,7 +4070,7 @@
|
|
|
4070
4070
|
|
|
4071
4071
|
// package.json
|
|
4072
4072
|
var package_default = {
|
|
4073
|
-
version: "0.1.
|
|
4073
|
+
version: "0.1.466"};
|
|
4074
4074
|
|
|
4075
4075
|
// src/format/energy.ts
|
|
4076
4076
|
function formatPower(value, decimals = 2) {
|
|
@@ -30189,6 +30189,12 @@
|
|
|
30189
30189
|
/**
|
|
30190
30190
|
* Gets modal title based on mode
|
|
30191
30191
|
*/
|
|
30192
|
+
canShowDemandButtons() {
|
|
30193
|
+
const { readingType, mode, deviceProfile, canShowDemandButtons } = this.config.params;
|
|
30194
|
+
if (readingType !== "energy" || mode === "comparison") return false;
|
|
30195
|
+
if (canShowDemandButtons !== void 0 && canShowDemandButtons !== null) return canShowDemandButtons;
|
|
30196
|
+
return deviceProfile !== "3F_MEDIDOR";
|
|
30197
|
+
}
|
|
30192
30198
|
getModalTitle() {
|
|
30193
30199
|
const mode = this.config.params.mode || "single";
|
|
30194
30200
|
if (mode === "comparison") {
|
|
@@ -30238,7 +30244,7 @@
|
|
|
30238
30244
|
<button id="export-csv-btn" class="myio-btn myio-btn-secondary" disabled>
|
|
30239
30245
|
Exportar CSV
|
|
30240
30246
|
</button>
|
|
30241
|
-
${this.
|
|
30247
|
+
${this.canShowDemandButtons() ? `
|
|
30242
30248
|
<button id="view-demand-btn" class="myio-btn myio-btn-secondary" style="
|
|
30243
30249
|
background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
|
|
30244
30250
|
color: white;
|
|
@@ -52095,6 +52101,7 @@
|
|
|
52095
52101
|
fromDate: void 0,
|
|
52096
52102
|
toDate: void 0
|
|
52097
52103
|
};
|
|
52104
|
+
var DEFAULT_EXCLUDED_ALARM_TYPES = ["DEVICE OFFLINE", "DISPOSITIVO OFFLINE"];
|
|
52098
52105
|
function getSeverityConfig(severity) {
|
|
52099
52106
|
return SEVERITY_CONFIG[severity];
|
|
52100
52107
|
}
|
|
@@ -87759,7 +87766,7 @@ ${errors.slice(0, 5).join("\n")}` + (errors.length > 5 ? `
|
|
|
87759
87766
|
}
|
|
87760
87767
|
gcdrBase() {
|
|
87761
87768
|
const orch = window.MyIOOrchestrator;
|
|
87762
|
-
return (orch?.
|
|
87769
|
+
return (orch?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com").replace(/\/$/, "");
|
|
87763
87770
|
}
|
|
87764
87771
|
gcdrCid() {
|
|
87765
87772
|
return window.MyIOOrchestrator?.gcdrCustomerId || "";
|
|
@@ -88854,7 +88861,7 @@ Esta a\xE7\xE3o afeta todos os grupos que utilizam este canal.`
|
|
|
88854
88861
|
}
|
|
88855
88862
|
// ── RFC-0197: Assignments Section ─────────────────────────────────────────
|
|
88856
88863
|
gcdrBase() {
|
|
88857
|
-
return window.MyIOOrchestrator?.
|
|
88864
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
88858
88865
|
}
|
|
88859
88866
|
gcdrHeaders() {
|
|
88860
88867
|
const orch = window.MyIOOrchestrator;
|
|
@@ -89285,7 +89292,7 @@ Esta a\xE7\xE3o afeta todos os grupos que utilizam este canal.`
|
|
|
89285
89292
|
return email.endsWith("@myio.com.br") && !email.startsWith("alarme@") && !email.startsWith("alarmes@");
|
|
89286
89293
|
}
|
|
89287
89294
|
gcdrBase() {
|
|
89288
|
-
return window.MyIOOrchestrator?.
|
|
89295
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
89289
89296
|
}
|
|
89290
89297
|
gcdrHeaders() {
|
|
89291
89298
|
const orch = window.MyIOOrchestrator;
|
|
@@ -89512,7 +89519,7 @@ Esta a\xE7\xE3o afeta todos os grupos que utilizam este canal.`
|
|
|
89512
89519
|
return email.endsWith("@myio.com.br") && !email.startsWith("alarme@") && !email.startsWith("alarmes@");
|
|
89513
89520
|
}
|
|
89514
89521
|
gcdrBase() {
|
|
89515
|
-
return window.MyIOOrchestrator?.
|
|
89522
|
+
return window.MyIOOrchestrator?.gcdrApiBaseUrl || "https://gcdr-api.a.myio-bas.com";
|
|
89516
89523
|
}
|
|
89517
89524
|
gcdrHeaders() {
|
|
89518
89525
|
const orch = window.MyIOOrchestrator;
|
|
@@ -90229,7 +90236,7 @@ Esta a\xE7\xE3o afeta todos os grupos que utilizam este canal.`
|
|
|
90229
90236
|
.um-badge--admin { background: var(--um-badge-admin-bg); color: var(--um-badge-admin-text); }
|
|
90230
90237
|
.um-badge--user { background: var(--um-badge-user-bg); color: var(--um-badge-user-text); }
|
|
90231
90238
|
|
|
90232
|
-
.um-form { display: flex; flex-direction: column; gap: 14px;
|
|
90239
|
+
.um-form { display: flex; flex-direction: column; gap: 14px;}
|
|
90233
90240
|
.um-form-row { display: flex; gap: 12px; }
|
|
90234
90241
|
.um-form-row .um-form-group { flex: 1; }
|
|
90235
90242
|
.um-form-group { display: flex; flex-direction: column; gap: 5px; }
|
|
@@ -114474,6 +114481,8 @@ Esta a\xE7\xE3o afeta todos os grupos que utilizam este canal.`
|
|
|
114474
114481
|
const alarmType = this.state.filters.alarmType;
|
|
114475
114482
|
if (alarmType && alarmType.length > 0) {
|
|
114476
114483
|
filtered = filtered.filter((alarm) => alarmType.includes(alarm.title));
|
|
114484
|
+
} else if (window.MyIOOrchestrator?.showOfflineAlarms !== true) {
|
|
114485
|
+
filtered = filtered.filter((alarm) => !DEFAULT_EXCLUDED_ALARM_TYPES.includes((alarm.title ?? "").toUpperCase()));
|
|
114477
114486
|
}
|
|
114478
114487
|
const devices = this.state.filters.devices;
|
|
114479
114488
|
if (devices && devices.length > 0) {
|
|
@@ -115552,7 +115561,9 @@ Esta a\xE7\xE3o afeta todos os grupos que utilizam este canal.`
|
|
|
115552
115561
|
const allStates = ["OPEN", "ACK", "SNOOZED", "ESCALATED"];
|
|
115553
115562
|
const selSeverity = new Set(filters.severity?.length ? filters.severity : allSeverities);
|
|
115554
115563
|
const selState = new Set(filters.state?.length ? filters.state : allStates);
|
|
115555
|
-
const selAlarmType = new Set(
|
|
115564
|
+
const selAlarmType = new Set(
|
|
115565
|
+
filters.alarmType?.length ? filters.alarmType : alarmTypes.filter((t) => !DEFAULT_EXCLUDED_ALARM_TYPES.includes(t.toUpperCase()))
|
|
115566
|
+
);
|
|
115556
115567
|
const selDevices = new Set(filters.devices?.length ? filters.devices : allDevices);
|
|
115557
115568
|
const tabs = [
|
|
115558
115569
|
{ id: "severity", label: "Severidade", icon: "\u26A1", count: selSeverity.size < allSeverities.length ? allSeverities.length - selSeverity.size : 0 },
|