myio-js-library 0.1.135 → 0.1.136
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 +14 -6
- package/dist/index.js +14 -6
- package/dist/myio-js-library.umd.js +14 -6
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7073,15 +7073,23 @@ if (typeof module !== "undefined" && module.exports) {
|
|
|
7073
7073
|
|
|
7074
7074
|
// src/components/RealTimeTelemetryModal.ts
|
|
7075
7075
|
var TELEMETRY_CONFIG = {
|
|
7076
|
-
|
|
7076
|
+
// Voltage phases
|
|
7077
|
+
voltage_a: { label: "Tens\xE3o Fase A", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
7078
|
+
voltage_b: { label: "Tens\xE3o Fase B", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
7079
|
+
voltage_c: { label: "Tens\xE3o Fase C", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
7080
|
+
// Current
|
|
7081
|
+
total_current: { label: "Corrente Total", unit: "A", icon: "\u{1F50C}", decimals: 2 },
|
|
7077
7082
|
current: { label: "Corrente", unit: "A", icon: "\u{1F50C}", decimals: 2 },
|
|
7083
|
+
// Power and Energy
|
|
7084
|
+
consumption: { label: "Consumo", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
7078
7085
|
power: { label: "Pot\xEAncia", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
7079
7086
|
energy: { label: "Energia", unit: "kWh", icon: "\u{1F4CA}", decimals: 1 },
|
|
7080
|
-
temperature: { label: "Temperatura", unit: "\xB0C", icon: "\u{1F321}\uFE0F", decimals: 1 },
|
|
7081
7087
|
activePower: { label: "Pot\xEAncia Ativa", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
7082
7088
|
reactivePower: { label: "Pot\xEAncia Reativa", unit: "kVAr", icon: "\u{1F504}", decimals: 2 },
|
|
7083
7089
|
apparentPower: { label: "Pot\xEAncia Aparente", unit: "kVA", icon: "\u{1F4C8}", decimals: 2 },
|
|
7084
|
-
powerFactor: { label: "Fator de Pot\xEAncia", unit: "", icon: "\u{1F4D0}", decimals: 3 }
|
|
7090
|
+
powerFactor: { label: "Fator de Pot\xEAncia", unit: "", icon: "\u{1F4D0}", decimals: 3 },
|
|
7091
|
+
// Temperature
|
|
7092
|
+
temperature: { label: "Temperatura", unit: "\xB0C", icon: "\u{1F321}\uFE0F", decimals: 1 }
|
|
7085
7093
|
};
|
|
7086
7094
|
var STRINGS = {
|
|
7087
7095
|
"pt-BR": {
|
|
@@ -7120,7 +7128,7 @@ async function openRealTimeTelemetryModal(params) {
|
|
|
7120
7128
|
token,
|
|
7121
7129
|
deviceId,
|
|
7122
7130
|
deviceLabel = "Dispositivo",
|
|
7123
|
-
telemetryKeys = ["
|
|
7131
|
+
telemetryKeys = ["voltage_a", "voltage_b", "voltage_c", "total_current", "consumption"],
|
|
7124
7132
|
refreshInterval = 8e3,
|
|
7125
7133
|
historyPoints = 50,
|
|
7126
7134
|
onClose,
|
|
@@ -11537,7 +11545,7 @@ var EnergyModalView = class {
|
|
|
11537
11545
|
let startDate;
|
|
11538
11546
|
let endDate;
|
|
11539
11547
|
if (this.dateRangePicker) {
|
|
11540
|
-
const dates = this.dateRangePicker.
|
|
11548
|
+
const dates = this.dateRangePicker.getDates();
|
|
11541
11549
|
startDate = dates.startISO;
|
|
11542
11550
|
endDate = dates.endISO;
|
|
11543
11551
|
} else {
|
|
@@ -11575,7 +11583,7 @@ var EnergyModalView = class {
|
|
|
11575
11583
|
token: jwtToken,
|
|
11576
11584
|
deviceId: this.config.params.deviceId,
|
|
11577
11585
|
deviceLabel: this.config.params.deviceLabel || "Dispositivo",
|
|
11578
|
-
telemetryKeys: ["
|
|
11586
|
+
telemetryKeys: ["voltage_a", "voltage_b", "voltage_c", "total_current", "consumption"],
|
|
11579
11587
|
refreshInterval: 8e3,
|
|
11580
11588
|
// 8 seconds
|
|
11581
11589
|
historyPoints: 50,
|
package/dist/index.js
CHANGED
|
@@ -6977,15 +6977,23 @@ if (typeof module !== "undefined" && module.exports) {
|
|
|
6977
6977
|
|
|
6978
6978
|
// src/components/RealTimeTelemetryModal.ts
|
|
6979
6979
|
var TELEMETRY_CONFIG = {
|
|
6980
|
-
|
|
6980
|
+
// Voltage phases
|
|
6981
|
+
voltage_a: { label: "Tens\xE3o Fase A", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
6982
|
+
voltage_b: { label: "Tens\xE3o Fase B", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
6983
|
+
voltage_c: { label: "Tens\xE3o Fase C", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
6984
|
+
// Current
|
|
6985
|
+
total_current: { label: "Corrente Total", unit: "A", icon: "\u{1F50C}", decimals: 2 },
|
|
6981
6986
|
current: { label: "Corrente", unit: "A", icon: "\u{1F50C}", decimals: 2 },
|
|
6987
|
+
// Power and Energy
|
|
6988
|
+
consumption: { label: "Consumo", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
6982
6989
|
power: { label: "Pot\xEAncia", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
6983
6990
|
energy: { label: "Energia", unit: "kWh", icon: "\u{1F4CA}", decimals: 1 },
|
|
6984
|
-
temperature: { label: "Temperatura", unit: "\xB0C", icon: "\u{1F321}\uFE0F", decimals: 1 },
|
|
6985
6991
|
activePower: { label: "Pot\xEAncia Ativa", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
6986
6992
|
reactivePower: { label: "Pot\xEAncia Reativa", unit: "kVAr", icon: "\u{1F504}", decimals: 2 },
|
|
6987
6993
|
apparentPower: { label: "Pot\xEAncia Aparente", unit: "kVA", icon: "\u{1F4C8}", decimals: 2 },
|
|
6988
|
-
powerFactor: { label: "Fator de Pot\xEAncia", unit: "", icon: "\u{1F4D0}", decimals: 3 }
|
|
6994
|
+
powerFactor: { label: "Fator de Pot\xEAncia", unit: "", icon: "\u{1F4D0}", decimals: 3 },
|
|
6995
|
+
// Temperature
|
|
6996
|
+
temperature: { label: "Temperatura", unit: "\xB0C", icon: "\u{1F321}\uFE0F", decimals: 1 }
|
|
6989
6997
|
};
|
|
6990
6998
|
var STRINGS = {
|
|
6991
6999
|
"pt-BR": {
|
|
@@ -7024,7 +7032,7 @@ async function openRealTimeTelemetryModal(params) {
|
|
|
7024
7032
|
token,
|
|
7025
7033
|
deviceId,
|
|
7026
7034
|
deviceLabel = "Dispositivo",
|
|
7027
|
-
telemetryKeys = ["
|
|
7035
|
+
telemetryKeys = ["voltage_a", "voltage_b", "voltage_c", "total_current", "consumption"],
|
|
7028
7036
|
refreshInterval = 8e3,
|
|
7029
7037
|
historyPoints = 50,
|
|
7030
7038
|
onClose,
|
|
@@ -11441,7 +11449,7 @@ var EnergyModalView = class {
|
|
|
11441
11449
|
let startDate;
|
|
11442
11450
|
let endDate;
|
|
11443
11451
|
if (this.dateRangePicker) {
|
|
11444
|
-
const dates = this.dateRangePicker.
|
|
11452
|
+
const dates = this.dateRangePicker.getDates();
|
|
11445
11453
|
startDate = dates.startISO;
|
|
11446
11454
|
endDate = dates.endISO;
|
|
11447
11455
|
} else {
|
|
@@ -11479,7 +11487,7 @@ var EnergyModalView = class {
|
|
|
11479
11487
|
token: jwtToken,
|
|
11480
11488
|
deviceId: this.config.params.deviceId,
|
|
11481
11489
|
deviceLabel: this.config.params.deviceLabel || "Dispositivo",
|
|
11482
|
-
telemetryKeys: ["
|
|
11490
|
+
telemetryKeys: ["voltage_a", "voltage_b", "voltage_c", "total_current", "consumption"],
|
|
11483
11491
|
refreshInterval: 8e3,
|
|
11484
11492
|
// 8 seconds
|
|
11485
11493
|
historyPoints: 50,
|
|
@@ -6975,15 +6975,23 @@ ${rangeText}`;
|
|
|
6975
6975
|
|
|
6976
6976
|
// src/components/RealTimeTelemetryModal.ts
|
|
6977
6977
|
var TELEMETRY_CONFIG = {
|
|
6978
|
-
|
|
6978
|
+
// Voltage phases
|
|
6979
|
+
voltage_a: { label: "Tens\xE3o Fase A", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
6980
|
+
voltage_b: { label: "Tens\xE3o Fase B", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
6981
|
+
voltage_c: { label: "Tens\xE3o Fase C", unit: "V", icon: "\u26A1", decimals: 1 },
|
|
6982
|
+
// Current
|
|
6983
|
+
total_current: { label: "Corrente Total", unit: "A", icon: "\u{1F50C}", decimals: 2 },
|
|
6979
6984
|
current: { label: "Corrente", unit: "A", icon: "\u{1F50C}", decimals: 2 },
|
|
6985
|
+
// Power and Energy
|
|
6986
|
+
consumption: { label: "Consumo", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
6980
6987
|
power: { label: "Pot\xEAncia", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
6981
6988
|
energy: { label: "Energia", unit: "kWh", icon: "\u{1F4CA}", decimals: 1 },
|
|
6982
|
-
temperature: { label: "Temperatura", unit: "\xB0C", icon: "\u{1F321}\uFE0F", decimals: 1 },
|
|
6983
6989
|
activePower: { label: "Pot\xEAncia Ativa", unit: "kW", icon: "\u2699\uFE0F", decimals: 2 },
|
|
6984
6990
|
reactivePower: { label: "Pot\xEAncia Reativa", unit: "kVAr", icon: "\u{1F504}", decimals: 2 },
|
|
6985
6991
|
apparentPower: { label: "Pot\xEAncia Aparente", unit: "kVA", icon: "\u{1F4C8}", decimals: 2 },
|
|
6986
|
-
powerFactor: { label: "Fator de Pot\xEAncia", unit: "", icon: "\u{1F4D0}", decimals: 3 }
|
|
6992
|
+
powerFactor: { label: "Fator de Pot\xEAncia", unit: "", icon: "\u{1F4D0}", decimals: 3 },
|
|
6993
|
+
// Temperature
|
|
6994
|
+
temperature: { label: "Temperatura", unit: "\xB0C", icon: "\u{1F321}\uFE0F", decimals: 1 }
|
|
6987
6995
|
};
|
|
6988
6996
|
var STRINGS = {
|
|
6989
6997
|
"pt-BR": {
|
|
@@ -7022,7 +7030,7 @@ ${rangeText}`;
|
|
|
7022
7030
|
token,
|
|
7023
7031
|
deviceId,
|
|
7024
7032
|
deviceLabel = "Dispositivo",
|
|
7025
|
-
telemetryKeys = ["
|
|
7033
|
+
telemetryKeys = ["voltage_a", "voltage_b", "voltage_c", "total_current", "consumption"],
|
|
7026
7034
|
refreshInterval = 8e3,
|
|
7027
7035
|
historyPoints = 50,
|
|
7028
7036
|
onClose,
|
|
@@ -11428,7 +11436,7 @@ ${rangeText}`;
|
|
|
11428
11436
|
let startDate;
|
|
11429
11437
|
let endDate;
|
|
11430
11438
|
if (this.dateRangePicker) {
|
|
11431
|
-
const dates = this.dateRangePicker.
|
|
11439
|
+
const dates = this.dateRangePicker.getDates();
|
|
11432
11440
|
startDate = dates.startISO;
|
|
11433
11441
|
endDate = dates.endISO;
|
|
11434
11442
|
} else {
|
|
@@ -11466,7 +11474,7 @@ ${rangeText}`;
|
|
|
11466
11474
|
token: jwtToken,
|
|
11467
11475
|
deviceId: this.config.params.deviceId,
|
|
11468
11476
|
deviceLabel: this.config.params.deviceLabel || "Dispositivo",
|
|
11469
|
-
telemetryKeys: ["
|
|
11477
|
+
telemetryKeys: ["voltage_a", "voltage_b", "voltage_c", "total_current", "consumption"],
|
|
11470
11478
|
refreshInterval: 8e3,
|
|
11471
11479
|
// 8 seconds
|
|
11472
11480
|
historyPoints: 50,
|