myio-js-library 0.1.525 → 0.1.527
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 +335 -234
- package/dist/index.d.cts +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.js +335 -234
- package/dist/myio-js-library.umd.js +335 -234
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -768,7 +768,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
768
768
|
// package.json
|
|
769
769
|
var package_default = {
|
|
770
770
|
name: "myio-js-library",
|
|
771
|
-
version: "0.1.
|
|
771
|
+
version: "0.1.527",
|
|
772
772
|
description: "A clean, standalone JS SDK for MYIO projects",
|
|
773
773
|
license: "MIT",
|
|
774
774
|
repository: "github:gh-myio/myio-js-library",
|
|
@@ -3551,7 +3551,7 @@ var CSS_TOKENS = `
|
|
|
3551
3551
|
--myio-spacing-lg: 24px;
|
|
3552
3552
|
|
|
3553
3553
|
/* Typography */
|
|
3554
|
-
--myio-font: '
|
|
3554
|
+
--myio-font: 'Nunito', system-ui, sans-serif;
|
|
3555
3555
|
--myio-font-size: 14px;
|
|
3556
3556
|
--myio-font-size-sm: 12px;
|
|
3557
3557
|
--myio-font-size-lg: 16px;
|
|
@@ -3877,7 +3877,7 @@ var DATERANGEPICKER_STYLES = `
|
|
|
3877
3877
|
========================================== */
|
|
3878
3878
|
|
|
3879
3879
|
.daterangepicker {
|
|
3880
|
-
font-family: '
|
|
3880
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
3881
3881
|
border: 1px solid #e0e0e0;
|
|
3882
3882
|
border-radius: 10px;
|
|
3883
3883
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
@@ -5987,7 +5987,7 @@ function injectStyles() {
|
|
|
5987
5987
|
const s = document.createElement("style");
|
|
5988
5988
|
s.id = STYLE_ID;
|
|
5989
5989
|
s.textContent = `
|
|
5990
|
-
.myio-divcard { box-sizing: border-box; font-family: 'Nunito', sans-serif; border: 1px solid #e2e8f0;
|
|
5990
|
+
.myio-divcard { box-sizing: border-box; font-family: 'Nunito', system-ui, sans-serif; border: 1px solid #e2e8f0;
|
|
5991
5991
|
border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #fff; }
|
|
5992
5992
|
.myio-divcard * { box-sizing: border-box; }
|
|
5993
5993
|
.myio-divcard__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px;
|
|
@@ -6589,7 +6589,7 @@ function injectStyles2() {
|
|
|
6589
6589
|
const s = document.createElement("style");
|
|
6590
6590
|
s.id = STYLE_ID2;
|
|
6591
6591
|
s.textContent = `
|
|
6592
|
-
.mdp-root, .mdp-root * { box-sizing: border-box; font-family: 'Nunito', sans-serif; }
|
|
6592
|
+
.mdp-root, .mdp-root * { box-sizing: border-box; font-family: 'Nunito', system-ui, sans-serif; }
|
|
6593
6593
|
.mdp-tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid #eee; }
|
|
6594
6594
|
.mdp-tab { border: 1px solid transparent; border-bottom: none; background: none; cursor: pointer;
|
|
6595
6595
|
font-size: 13px; font-weight: 700; color: #64748b; padding: 8px 14px; border-radius: 8px 8px 0 0; }
|
|
@@ -9320,7 +9320,7 @@ var CSS_STRING = `
|
|
|
9320
9320
|
border-radius: var(--myio-card-radius);
|
|
9321
9321
|
box-shadow: var(--myio-card-shadow);
|
|
9322
9322
|
padding: 14px;
|
|
9323
|
-
font-family:
|
|
9323
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
9324
9324
|
font-size: 14px;
|
|
9325
9325
|
line-height: 1.4;
|
|
9326
9326
|
color: var(--myio-text-1);
|
|
@@ -9567,7 +9567,7 @@ var CSS_STRING = `
|
|
|
9567
9567
|
position: relative;
|
|
9568
9568
|
min-width: 300px;
|
|
9569
9569
|
text-align: left;
|
|
9570
|
-
font-family: sans-serif; /* Use a fonte que preferir */
|
|
9570
|
+
font-family: 'Nunito', system-ui, sans-serif; /* Use a fonte que preferir */
|
|
9571
9571
|
line-height: 1.6;
|
|
9572
9572
|
}
|
|
9573
9573
|
|
|
@@ -10181,7 +10181,7 @@ var CSS_STRING = `
|
|
|
10181
10181
|
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
10182
10182
|
min-width: 340px;
|
|
10183
10183
|
max-width: 420px;
|
|
10184
|
-
font-family:
|
|
10184
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
10185
10185
|
font-size: 12px;
|
|
10186
10186
|
color: #e2e8f0;
|
|
10187
10187
|
overflow: hidden;
|
|
@@ -10373,7 +10373,7 @@ var CSS_STRING = `
|
|
|
10373
10373
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
10374
10374
|
min-width: 280px;
|
|
10375
10375
|
max-width: 320px;
|
|
10376
|
-
font-family:
|
|
10376
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
10377
10377
|
font-size: 12px;
|
|
10378
10378
|
color: #1e293b;
|
|
10379
10379
|
overflow: hidden;
|
|
@@ -10607,7 +10607,7 @@ var CSS_STRING = `
|
|
|
10607
10607
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
10608
10608
|
min-width: 300px;
|
|
10609
10609
|
max-width: 360px;
|
|
10610
|
-
font-family:
|
|
10610
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
10611
10611
|
font-size: 12px;
|
|
10612
10612
|
color: #1e293b;
|
|
10613
10613
|
overflow: hidden;
|
|
@@ -17231,7 +17231,7 @@ function renderCardComponentV5({
|
|
|
17231
17231
|
width: 320px;
|
|
17232
17232
|
padding: 16px;
|
|
17233
17233
|
border-radius: 8px;
|
|
17234
|
-
font-family: 'Nunito', -
|
|
17234
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
17235
17235
|
font-size: 15px;
|
|
17236
17236
|
color: #fff;
|
|
17237
17237
|
transform: translateX(120%);
|
|
@@ -18924,7 +18924,7 @@ function injectCardActionSelectorStyles() {
|
|
|
18924
18924
|
position: relative; width: 90%; max-width: 380px;
|
|
18925
18925
|
background: #fff; border-radius: 16px; overflow: hidden;
|
|
18926
18926
|
box-shadow: 0 20px 60px rgba(0,0,0,.3);
|
|
18927
|
-
font-family: 'Nunito', -
|
|
18927
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
18928
18928
|
transform: translateY(16px) scale(.98); transition: transform .2s ease;
|
|
18929
18929
|
}
|
|
18930
18930
|
.myio-card-action-picker.show .myio-card-action-picker__content { transform: translateY(0) scale(1); }
|
|
@@ -19073,7 +19073,7 @@ function renderCardComponentV6({
|
|
|
19073
19073
|
width: 320px;
|
|
19074
19074
|
padding: 16px;
|
|
19075
19075
|
border-radius: 8px;
|
|
19076
|
-
font-family: 'Nunito', -
|
|
19076
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
19077
19077
|
font-size: 15px;
|
|
19078
19078
|
color: #fff;
|
|
19079
19079
|
transform: translateX(120%);
|
|
@@ -21217,7 +21217,7 @@ var HEADER_CSS = `
|
|
|
21217
21217
|
flex-direction: column;
|
|
21218
21218
|
flex-shrink: 0;
|
|
21219
21219
|
box-sizing: border-box;
|
|
21220
|
-
font-family:
|
|
21220
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
21221
21221
|
}
|
|
21222
21222
|
|
|
21223
21223
|
.myio-hp--top-border {
|
|
@@ -21753,7 +21753,7 @@ var PANEL_CSS = `
|
|
|
21753
21753
|
background: #faf8f1;
|
|
21754
21754
|
border: 1px solid #e8e4d9;
|
|
21755
21755
|
overflow: hidden;
|
|
21756
|
-
font-family:
|
|
21756
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
21757
21757
|
position: relative;
|
|
21758
21758
|
height: 100%;
|
|
21759
21759
|
min-width: 180px;
|
|
@@ -22284,7 +22284,7 @@ var PANEL_CSS2 = `
|
|
|
22284
22284
|
background: #faf8f1;
|
|
22285
22285
|
border: 1px solid #e8e4d9;
|
|
22286
22286
|
overflow: hidden;
|
|
22287
|
-
font-family:
|
|
22287
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
22288
22288
|
height: 100%;
|
|
22289
22289
|
min-width: 0;
|
|
22290
22290
|
}
|
|
@@ -23185,7 +23185,7 @@ var MyIOChartModalClass = class {
|
|
|
23185
23185
|
max-width: 900px;
|
|
23186
23186
|
margin: auto;
|
|
23187
23187
|
color: #fff;
|
|
23188
|
-
font-family:
|
|
23188
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
23189
23189
|
box-shadow: 0 8px 30px rgba(0,0,0,0.5);
|
|
23190
23190
|
">
|
|
23191
23191
|
|
|
@@ -23657,7 +23657,7 @@ var MyIOToast = (function() {
|
|
|
23657
23657
|
padding: 16px 20px;
|
|
23658
23658
|
background-color: #323232;
|
|
23659
23659
|
color: white;
|
|
23660
|
-
font-family: 'Nunito', -
|
|
23660
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
23661
23661
|
font-size: 14px;
|
|
23662
23662
|
border-radius: 8px;
|
|
23663
23663
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
|
@@ -24034,7 +24034,7 @@ var LoadingSpinner = class {
|
|
|
24034
24034
|
align-items: center;
|
|
24035
24035
|
text-align: center;
|
|
24036
24036
|
color: #ffffff;
|
|
24037
|
-
font-family:
|
|
24037
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
24038
24038
|
font-size: 14px;
|
|
24039
24039
|
line-height: 1.5;
|
|
24040
24040
|
padding: 24px 32px;
|
|
@@ -24348,7 +24348,7 @@ function injectStyles8(doc) {
|
|
|
24348
24348
|
justify-content: center;
|
|
24349
24349
|
align-items: center;
|
|
24350
24350
|
gap: 6px;
|
|
24351
|
-
font-family:
|
|
24351
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
24352
24352
|
}
|
|
24353
24353
|
|
|
24354
24354
|
/* Dark theme (default) */
|
|
@@ -24445,7 +24445,7 @@ function injectTooltipStyles(doc) {
|
|
|
24445
24445
|
.myio-ver-tooltip-container {
|
|
24446
24446
|
position: fixed;
|
|
24447
24447
|
z-index: 999999;
|
|
24448
|
-
font-family:
|
|
24448
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
24449
24449
|
}
|
|
24450
24450
|
|
|
24451
24451
|
/* Light theme tooltip (default) */
|
|
@@ -26815,7 +26815,7 @@ async function openRealTimeTelemetryModal(params) {
|
|
|
26815
26815
|
border:1px solid #e2e8f0;
|
|
26816
26816
|
box-shadow:0 10px 40px rgba(0,0,0,0.15),0 2px 10px rgba(0,0,0,0.08);
|
|
26817
26817
|
min-width:240px;max-width:320px;overflow:hidden;
|
|
26818
|
-
font-family
|
|
26818
|
+
font-family:Nunito, system-ui, sans-serif;
|
|
26819
26819
|
font-size:12px;color:#1e293b;
|
|
26820
26820
|
user-select:none;
|
|
26821
26821
|
}
|
|
@@ -26843,7 +26843,7 @@ async function openRealTimeTelemetryModal(params) {
|
|
|
26843
26843
|
padding:4px 14px;font-size:12px;border-bottom:1px solid #f5f5f5;}
|
|
26844
26844
|
.rtt-tt-history-row{display:flex;align-items:center;gap:6px;
|
|
26845
26845
|
padding:5px 14px;font-size:12px;color:#374151;border-bottom:1px solid #f8fafc;
|
|
26846
|
-
font-family
|
|
26846
|
+
font-family:Nunito, system-ui, sans-serif;}
|
|
26847
26847
|
.rtt-tt-history-row:last-child{border-bottom:none;}
|
|
26848
26848
|
.rtt-tt-row-ts{color:#bbb;}
|
|
26849
26849
|
.rtt-tt-row-val{font-weight:600;}
|
|
@@ -28604,7 +28604,7 @@ var DEFAULT_STYLES = {
|
|
|
28604
28604
|
spacingMd: "16px",
|
|
28605
28605
|
spacingLg: "24px",
|
|
28606
28606
|
spacingXl: "32px",
|
|
28607
|
-
fontFamily:
|
|
28607
|
+
fontFamily: "Nunito, system-ui, sans-serif",
|
|
28608
28608
|
fontSizeXs: "12px",
|
|
28609
28609
|
fontSizeSm: "14px",
|
|
28610
28610
|
fontSizeMd: "16px",
|
|
@@ -30155,7 +30155,7 @@ var DEFAULT_STYLES2 = {
|
|
|
30155
30155
|
textColor: "#1f2937",
|
|
30156
30156
|
borderColor: "#e5e7eb",
|
|
30157
30157
|
borderRadius: "8px",
|
|
30158
|
-
fontFamily:
|
|
30158
|
+
fontFamily: "Nunito, system-ui, sans-serif",
|
|
30159
30159
|
modalWidth: "90vw",
|
|
30160
30160
|
modalHeight: "90vh"
|
|
30161
30161
|
};
|
|
@@ -32275,7 +32275,7 @@ var EnergyModalView = class {
|
|
|
32275
32275
|
getModalStyles() {
|
|
32276
32276
|
const styles = this.config.params.styles || {};
|
|
32277
32277
|
const defaultPrimary = styles.primaryColor || "#4A148C";
|
|
32278
|
-
const defaultFont = styles.fontFamily ||
|
|
32278
|
+
const defaultFont = styles.fontFamily || "Nunito, system-ui, sans-serif";
|
|
32279
32279
|
return `
|
|
32280
32280
|
/* --- VARI\xC1VEIS DE TEMA (LIGHT MODE - PADR\xC3O) --- */
|
|
32281
32281
|
.myio-energy-modal-scope {
|
|
@@ -33465,7 +33465,7 @@ function injectParticipationChartStyles() {
|
|
|
33465
33465
|
border-radius: 10px;
|
|
33466
33466
|
background: var(--mpc-bg, var(--mpc-bg-default));
|
|
33467
33467
|
color: var(--mpc-text, var(--mpc-text-default));
|
|
33468
|
-
font-family:
|
|
33468
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
33469
33469
|
font-size: 13px;
|
|
33470
33470
|
}
|
|
33471
33471
|
.${P2} * { box-sizing: border-box; }
|
|
@@ -33965,7 +33965,7 @@ function createParticipationChart(container, params) {
|
|
|
33965
33965
|
text2.setAttribute("fill", "#ffffff");
|
|
33966
33966
|
text2.setAttribute("font-size", "12");
|
|
33967
33967
|
text2.setAttribute("font-weight", "700");
|
|
33968
|
-
text2.setAttribute("font-family", "
|
|
33968
|
+
text2.setAttribute("font-family", "'Nunito', system-ui, sans-serif");
|
|
33969
33969
|
text2.setAttribute("pointer-events", "none");
|
|
33970
33970
|
text2.textContent = fmtPct(pct);
|
|
33971
33971
|
svg.appendChild(text2);
|
|
@@ -33997,7 +33997,7 @@ function createParticipationChart(container, params) {
|
|
|
33997
33997
|
label.setAttribute("text-anchor", "end");
|
|
33998
33998
|
label.setAttribute("fill", textColor);
|
|
33999
33999
|
label.setAttribute("font-size", "11");
|
|
34000
|
-
label.setAttribute("font-family", "
|
|
34000
|
+
label.setAttribute("font-family", "'Nunito', system-ui, sans-serif");
|
|
34001
34001
|
const raw = item.label || "";
|
|
34002
34002
|
label.textContent = raw.length > 18 ? `${raw.slice(0, 17)}\u2026` : raw;
|
|
34003
34003
|
svg.appendChild(label);
|
|
@@ -34018,7 +34018,7 @@ function createParticipationChart(container, params) {
|
|
|
34018
34018
|
value.setAttribute("text-anchor", "start");
|
|
34019
34019
|
value.setAttribute("fill", mutedColor);
|
|
34020
34020
|
value.setAttribute("font-size", "10.5");
|
|
34021
|
-
value.setAttribute("font-family", "
|
|
34021
|
+
value.setAttribute("font-family", "'Nunito', system-ui, sans-serif");
|
|
34022
34022
|
value.textContent = `${settings.formatValue(item.value)}${settings.unit ? ` ${settings.unit}` : ""} \xB7 ${fmtPct(pct)}`;
|
|
34023
34023
|
svg.appendChild(value);
|
|
34024
34024
|
});
|
|
@@ -39855,7 +39855,7 @@ var PowerLimitsModalView = class {
|
|
|
39855
39855
|
opacity: 0;
|
|
39856
39856
|
visibility: hidden;
|
|
39857
39857
|
transition: all 0.3s ease;
|
|
39858
|
-
font-family: ${styles.fontFamily || "'
|
|
39858
|
+
font-family: ${styles.fontFamily || "'Nunito', system-ui, sans-serif"};
|
|
39859
39859
|
}
|
|
39860
39860
|
|
|
39861
39861
|
.myio-power-limits-overlay.active {
|
|
@@ -41414,7 +41414,7 @@ var WelcomeModalView = class _WelcomeModalView {
|
|
|
41414
41414
|
RFC-0112: Welcome Modal Head Office
|
|
41415
41415
|
========================================== */
|
|
41416
41416
|
|
|
41417
|
-
@import url('https://fonts.googleapis.com/css2?family=
|
|
41417
|
+
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');
|
|
41418
41418
|
|
|
41419
41419
|
/* CSS Reset to isolate modal from parent styles */
|
|
41420
41420
|
.myio-welcome-modal,
|
|
@@ -41449,7 +41449,7 @@ var WelcomeModalView = class _WelcomeModalView {
|
|
|
41449
41449
|
display: flex;
|
|
41450
41450
|
align-items: center;
|
|
41451
41451
|
justify-content: center;
|
|
41452
|
-
font-family: '
|
|
41452
|
+
font-family: 'Nunito', system-ui, sans-serif !important;
|
|
41453
41453
|
font-size: 16px !important;
|
|
41454
41454
|
line-height: 1.5 !important;
|
|
41455
41455
|
font-weight: 400 !important;
|
|
@@ -44486,7 +44486,7 @@ var HeaderView = class {
|
|
|
44486
44486
|
height: 100%;
|
|
44487
44487
|
padding: 8px 12px 4px 12px;
|
|
44488
44488
|
box-sizing: border-box;
|
|
44489
|
-
font-family:
|
|
44489
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
44490
44490
|
color: var(--hdr-ink-1);
|
|
44491
44491
|
background: transparent;
|
|
44492
44492
|
}
|
|
@@ -45287,7 +45287,7 @@ var HeaderFilterModal = class {
|
|
|
45287
45287
|
justify-content: center;
|
|
45288
45288
|
align-items: center;
|
|
45289
45289
|
z-index: 10000;
|
|
45290
|
-
font-family:
|
|
45290
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
45291
45291
|
}
|
|
45292
45292
|
|
|
45293
45293
|
.${HEADER_CSS_PREFIX}-filter-backdrop {
|
|
@@ -46259,7 +46259,7 @@ function getStyles() {
|
|
|
46259
46259
|
--fc-empty-border: rgba(184, 165, 214, 0.4);
|
|
46260
46260
|
|
|
46261
46261
|
/* Static tokens */
|
|
46262
|
-
--fc-font-family: 'Nunito',
|
|
46262
|
+
--fc-font-family: 'Nunito', system-ui, sans-serif;
|
|
46263
46263
|
--fc-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
46264
46264
|
--fc-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
46265
46265
|
--fc-radius-sm: 6px;
|
|
@@ -47388,7 +47388,7 @@ function render(container, modalId, state6) {
|
|
|
47388
47388
|
max-height: ${state6.isMaximized ? "100%" : "92vh"};
|
|
47389
47389
|
display: flex; flex-direction: column; overflow: hidden;
|
|
47390
47390
|
border: 1px solid ${colors2.border};
|
|
47391
|
-
font-family: '
|
|
47391
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
47392
47392
|
}
|
|
47393
47393
|
#${modalId} .myio-alarm-compare-header {
|
|
47394
47394
|
background: #3e1a7d; color: white;
|
|
@@ -47804,7 +47804,7 @@ function render2(container, modalId, state6) {
|
|
|
47804
47804
|
display: flex; flex-direction: column; overflow: hidden;
|
|
47805
47805
|
border: 1px solid ${colors2.border};
|
|
47806
47806
|
border-radius: 12px;
|
|
47807
|
-
font-family: '
|
|
47807
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
47808
47808
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
47809
47809
|
}
|
|
47810
47810
|
#${modalId} .myio-op-compare-content.maximized {
|
|
@@ -48956,7 +48956,7 @@ var MODAL_CSS = `
|
|
|
48956
48956
|
display: flex;
|
|
48957
48957
|
align-items: center;
|
|
48958
48958
|
justify-content: center;
|
|
48959
|
-
font-family: '
|
|
48959
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
48960
48960
|
}
|
|
48961
48961
|
|
|
48962
48962
|
.myio-integrations-modal {
|
|
@@ -49434,7 +49434,7 @@ var ANNOTATIONS_STYLES = `
|
|
|
49434
49434
|
display: flex;
|
|
49435
49435
|
flex-direction: column;
|
|
49436
49436
|
height: 100%;
|
|
49437
|
-
font-family: '
|
|
49437
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
49438
49438
|
color: #1a1a2e;
|
|
49439
49439
|
padding: 4px;
|
|
49440
49440
|
}
|
|
@@ -51891,7 +51891,7 @@ var ANNOTATIONS_STYLES = `
|
|
|
51891
51891
|
max-width: 340px;
|
|
51892
51892
|
min-width: 280px;
|
|
51893
51893
|
animation: annotationTourSlideIn 0.3s ease;
|
|
51894
|
-
font-family: '
|
|
51894
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
51895
51895
|
}
|
|
51896
51896
|
|
|
51897
51897
|
@keyframes annotationTourSlideIn {
|
|
@@ -57615,7 +57615,7 @@ function openAlarmDetailsModal(alarm, themeMode = "light", groupMode, onAction)
|
|
|
57615
57615
|
const sumTbl = grid.querySelector(".adm-rpt-table-wrap--summary")?.outerHTML ?? "";
|
|
57616
57616
|
win.document.write(`<!DOCTYPE html><html><head><title>Relat\xF3rio \u2014 ${escHtml2(alarm.title)}</title>
|
|
57617
57617
|
<style>
|
|
57618
|
-
body{font-family:
|
|
57618
|
+
body{font-family:Nunito, system-ui, sans-serif;padding:24px;font-size:12px;color:#111;}
|
|
57619
57619
|
h2{font-size:15px;margin:0 0 4px;}p{color:#6b7280;font-size:11px;margin:0 0 16px;}
|
|
57620
57620
|
h3{font-size:12px;font-weight:700;margin:20px 0 8px;text-transform:uppercase;letter-spacing:.5px;color:#7c3aed;}
|
|
57621
57621
|
table{border-collapse:collapse;width:100%;margin-bottom:16px;}
|
|
@@ -57888,7 +57888,7 @@ var ALARMS_NOTIFICATIONS_PANEL_STYLES = `
|
|
|
57888
57888
|
Container
|
|
57889
57889
|
===================================================================== */
|
|
57890
57890
|
.myio-alarms-panel {
|
|
57891
|
-
font-family:
|
|
57891
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
57892
57892
|
font-size: 12px;
|
|
57893
57893
|
line-height: 1.4;
|
|
57894
57894
|
color: var(--alarms-text);
|
|
@@ -59476,7 +59476,7 @@ var ALARMS_NOTIFICATIONS_PANEL_STYLES = `
|
|
|
59476
59476
|
.alarms-trend-chart .chart-label {
|
|
59477
59477
|
font-size: 10px;
|
|
59478
59478
|
fill: var(--alarms-text-muted);
|
|
59479
|
-
font-family:
|
|
59479
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
59480
59480
|
}
|
|
59481
59481
|
|
|
59482
59482
|
.alarms-trend-legend {
|
|
@@ -60030,7 +60030,7 @@ var ALARMS_NOTIFICATIONS_PANEL_STYLES = `
|
|
|
60030
60030
|
display: block;
|
|
60031
60031
|
margin: 0;
|
|
60032
60032
|
padding: 0;
|
|
60033
|
-
font-family:
|
|
60033
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
60034
60034
|
font-size: 15px;
|
|
60035
60035
|
font-weight: 700;
|
|
60036
60036
|
color: #111827;
|
|
@@ -63389,7 +63389,7 @@ var AlarmsTab = class {
|
|
|
63389
63389
|
}
|
|
63390
63390
|
showToast(msg) {
|
|
63391
63391
|
const el2 = document.createElement("div");
|
|
63392
|
-
el2.style.cssText = "position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#dc2626;color:#fff;font-size:13px;font-weight:600;padding:10px 20px;border-radius:8px;z-index:99999;box-shadow:0 4px 12px rgba(0,0,0,0.25);pointer-events:none;font-family:
|
|
63392
|
+
el2.style.cssText = "position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#dc2626;color:#fff;font-size:13px;font-weight:600;padding:10px 20px;border-radius:8px;z-index:99999;box-shadow:0 4px 12px rgba(0,0,0,0.25);pointer-events:none;font-family:Nunito, system-ui, sans-serif;white-space:nowrap;";
|
|
63393
63393
|
el2.textContent = `\u26A0\uFE0F ${msg}`;
|
|
63394
63394
|
document.body.appendChild(el2);
|
|
63395
63395
|
setTimeout(() => el2.remove(), 4e3);
|
|
@@ -63430,7 +63430,7 @@ var AlarmsTab = class {
|
|
|
63430
63430
|
flex-direction: column;
|
|
63431
63431
|
gap: 20px;
|
|
63432
63432
|
padding: 4px;
|
|
63433
|
-
font-family:
|
|
63433
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
63434
63434
|
}
|
|
63435
63435
|
.at-section {
|
|
63436
63436
|
background: #fff;
|
|
@@ -63701,7 +63701,7 @@ var AlarmsTab = class {
|
|
|
63701
63701
|
max-width: 440px;
|
|
63702
63702
|
width: calc(100% - 32px);
|
|
63703
63703
|
overflow: hidden;
|
|
63704
|
-
font-family:
|
|
63704
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
63705
63705
|
}
|
|
63706
63706
|
.at-confirm-warning-bar {
|
|
63707
63707
|
height: 4px;
|
|
@@ -65286,7 +65286,7 @@ ${this._formatFileSize(f.size)} \xB7 ${f.type || "arquivo"}`;
|
|
|
65286
65286
|
flex-direction: column;
|
|
65287
65287
|
gap: 20px;
|
|
65288
65288
|
padding: 4px;
|
|
65289
|
-
font-family:
|
|
65289
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
65290
65290
|
}
|
|
65291
65291
|
.ct-section {
|
|
65292
65292
|
background: #fff;
|
|
@@ -66869,7 +66869,7 @@ var SettingsModalView = class {
|
|
|
66869
66869
|
align-items: center;
|
|
66870
66870
|
justify-content: center;
|
|
66871
66871
|
z-index: 9999999;
|
|
66872
|
-
font-family:
|
|
66872
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
66873
66873
|
}
|
|
66874
66874
|
|
|
66875
66875
|
.myio-device-settings-modal {
|
|
@@ -69595,7 +69595,7 @@ async function openDashboardPopupSettings(params) {
|
|
|
69595
69595
|
// src/components/createInputDateRangePickerInsideDIV.ts
|
|
69596
69596
|
var PREMIUM_STYLES = `
|
|
69597
69597
|
.myio-daterange-wrapper {
|
|
69598
|
-
font-family: '
|
|
69598
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
69599
69599
|
background: #f9f9f9;
|
|
69600
69600
|
padding: 20px;
|
|
69601
69601
|
border-radius: 8px;
|
|
@@ -69931,7 +69931,7 @@ function openGoalsPanel(params) {
|
|
|
69931
69931
|
danger: styles.errorColor || "#dc2626",
|
|
69932
69932
|
amber: styles.warningColor || "#d97706",
|
|
69933
69933
|
borderRadius: styles.borderRadius || "10px",
|
|
69934
|
-
fontFamily: styles.fontFamily || "'Nunito',
|
|
69934
|
+
fontFamily: styles.fontFamily || "'Nunito', system-ui, sans-serif",
|
|
69935
69935
|
zIndex: styles.zIndex || 1e4
|
|
69936
69936
|
};
|
|
69937
69937
|
const MODAL_ID6 = "goals-gcdr-modal";
|
|
@@ -71629,7 +71629,7 @@ function renderModal(container, state6, modalId, error) {
|
|
|
71629
71629
|
max-height: ${contentMaxHeight}; height: ${isMaximized ? "100%" : "auto"};
|
|
71630
71630
|
overflow: hidden; display: flex; flex-direction: column;
|
|
71631
71631
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
71632
|
-
font-family: '
|
|
71632
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
71633
71633
|
">
|
|
71634
71634
|
<!-- Header - MyIO Premium Style (via ModalHeader component) -->
|
|
71635
71635
|
${ModalHeader.generateInlineHTML({
|
|
@@ -71736,7 +71736,7 @@ function renderModal(container, state6, modalId, error) {
|
|
|
71736
71736
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
71737
71737
|
font-size: 14px; font-weight: 500; height: 38px;
|
|
71738
71738
|
display: flex; align-items: center; gap: 8px;
|
|
71739
|
-
font-family: '
|
|
71739
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
71740
71740
|
" ${state6.isLoading ? "disabled" : ""}>
|
|
71741
71741
|
${state6.isLoading ? '<span style="animation: spin 1s linear infinite; display: inline-block;">\u21BB</span> Carregando...' : "Carregar"}
|
|
71742
71742
|
</button>
|
|
@@ -71823,7 +71823,7 @@ function renderModal(container, state6, modalId, error) {
|
|
|
71823
71823
|
color: ${colors2.text}; border: 1px solid ${colors2.border};
|
|
71824
71824
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
71825
71825
|
font-size: 14px; display: flex; align-items: center; gap: 8px;
|
|
71826
|
-
font-family: '
|
|
71826
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
71827
71827
|
" ${state6.data.length === 0 ? "disabled" : ""}>
|
|
71828
71828
|
\u{1F4E5} Exportar CSV
|
|
71829
71829
|
</button>
|
|
@@ -71831,7 +71831,7 @@ function renderModal(container, state6, modalId, error) {
|
|
|
71831
71831
|
background: #3e1a7d; color: white; border: none;
|
|
71832
71832
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
71833
71833
|
font-size: 14px; font-weight: 500;
|
|
71834
|
-
font-family: '
|
|
71834
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
71835
71835
|
">
|
|
71836
71836
|
Fechar
|
|
71837
71837
|
</button>
|
|
@@ -72407,7 +72407,7 @@ function renderModal2(container, state6, modalId) {
|
|
|
72407
72407
|
max-height: ${contentMaxHeight}; height: ${isMaximized ? "100%" : "auto"};
|
|
72408
72408
|
overflow: hidden; display: flex; flex-direction: column;
|
|
72409
72409
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
72410
|
-
font-family: '
|
|
72410
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
72411
72411
|
">
|
|
72412
72412
|
<!-- Header - MyIO Premium Style -->
|
|
72413
72413
|
<div style="
|
|
@@ -72531,7 +72531,7 @@ function renderModal2(container, state6, modalId) {
|
|
|
72531
72531
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
72532
72532
|
font-size: 14px; font-weight: 500; height: 38px;
|
|
72533
72533
|
display: flex; align-items: center; gap: 8px;
|
|
72534
|
-
font-family: '
|
|
72534
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
72535
72535
|
" ${state6.isLoading ? "disabled" : ""}>
|
|
72536
72536
|
${state6.isLoading ? '<span style="animation: spin 1s linear infinite; display: inline-block;">\u21BB</span> Carregando...' : "Carregar"}
|
|
72537
72537
|
</button>
|
|
@@ -72578,7 +72578,7 @@ function renderModal2(container, state6, modalId) {
|
|
|
72578
72578
|
color: ${colors2.text}; border: 1px solid ${colors2.border};
|
|
72579
72579
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
72580
72580
|
font-size: 14px; display: flex; align-items: center; gap: 8px;
|
|
72581
|
-
font-family: '
|
|
72581
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
72582
72582
|
" ${state6.deviceData.every((dd) => dd.data.length === 0) ? "disabled" : ""}>
|
|
72583
72583
|
\u{1F4E5} Exportar CSV
|
|
72584
72584
|
</button>
|
|
@@ -72586,7 +72586,7 @@ function renderModal2(container, state6, modalId) {
|
|
|
72586
72586
|
background: #3e1a7d; color: white; border: none;
|
|
72587
72587
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
72588
72588
|
font-size: 14px; font-weight: 500;
|
|
72589
|
-
font-family: '
|
|
72589
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
72590
72590
|
">
|
|
72591
72591
|
Fechar
|
|
72592
72592
|
</button>
|
|
@@ -73271,7 +73271,7 @@ function renderModal3(container, state6, modalId, onClose, onSave) {
|
|
|
73271
73271
|
font-size: 14px;
|
|
73272
73272
|
font-weight: 600;
|
|
73273
73273
|
color: #fff;
|
|
73274
|
-
font-family: '
|
|
73274
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
73275
73275
|
display: flex;
|
|
73276
73276
|
align-items: center;
|
|
73277
73277
|
gap: 8px;
|
|
@@ -82855,7 +82855,7 @@ function createModalHeader(config2) {
|
|
|
82855
82855
|
color: ${textColor};
|
|
82856
82856
|
border-radius: ${borderRadius};
|
|
82857
82857
|
min-height: 20px;
|
|
82858
|
-
font-family: '
|
|
82858
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
82859
82859
|
">
|
|
82860
82860
|
<h2 id="${config2.id}-header-title" style="
|
|
82861
82861
|
margin: 6px;
|
|
@@ -84120,7 +84120,7 @@ function getWidgetStyles(theme, primaryColor, headerStyles) {
|
|
|
84120
84120
|
};
|
|
84121
84121
|
return `
|
|
84122
84122
|
.myio-chart-widget {
|
|
84123
|
-
font-family:
|
|
84123
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
84124
84124
|
background: ${colors2.chartBackground};
|
|
84125
84125
|
border: 1px solid ${colors2.border};
|
|
84126
84126
|
border-radius: 16px;
|
|
@@ -85608,7 +85608,7 @@ function injectStyles11(doc) {
|
|
|
85608
85608
|
opacity: 0;
|
|
85609
85609
|
pointer-events: none; /* unpinned: never blocks the chart hover */
|
|
85610
85610
|
transition: opacity .15s ease;
|
|
85611
|
-
font-family: Nunito, -
|
|
85611
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
85612
85612
|
}
|
|
85613
85613
|
.myio-gbt.myio-gbt--visible { opacity: 1; }
|
|
85614
85614
|
/* Header stays clickable even while unpinned, so the \u{1F4CC} pin is reachable as the
|
|
@@ -85748,6 +85748,26 @@ function injectStyles11(doc) {
|
|
|
85748
85748
|
font-variant-numeric: tabular-nums;
|
|
85749
85749
|
flex-shrink: 0;
|
|
85750
85750
|
}
|
|
85751
|
+
/* Deviation chip (pill) \u2014 good/bad/neutral. Right-aligned, roughly fixed width so
|
|
85752
|
+
the value column above lines up cleanly. */
|
|
85753
|
+
.myio-gbt__chip {
|
|
85754
|
+
display: inline-flex;
|
|
85755
|
+
align-items: center;
|
|
85756
|
+
gap: 3px;
|
|
85757
|
+
justify-content: flex-end;
|
|
85758
|
+
min-width: 66px;
|
|
85759
|
+
padding: 1px 8px;
|
|
85760
|
+
border-radius: 999px;
|
|
85761
|
+
font-size: 10.5px;
|
|
85762
|
+
font-weight: 800;
|
|
85763
|
+
line-height: 1.5;
|
|
85764
|
+
white-space: nowrap;
|
|
85765
|
+
font-variant-numeric: tabular-nums;
|
|
85766
|
+
flex-shrink: 0;
|
|
85767
|
+
}
|
|
85768
|
+
.myio-gbt__chip--good { background: rgba(22,163,74,.12); color: #16a34a; }
|
|
85769
|
+
.myio-gbt__chip--bad { background: rgba(239,68,68,.12); color: #ef4444; }
|
|
85770
|
+
.myio-gbt__chip--neutral { background: rgba(100,116,139,.12); color: #64748b; }
|
|
85751
85771
|
.myio-gbt__children {
|
|
85752
85772
|
display: none;
|
|
85753
85773
|
margin-left: 10px;
|
|
@@ -85782,6 +85802,13 @@ function resolveAccent(explicit, doc) {
|
|
|
85782
85802
|
return DEFAULT_ACCENT;
|
|
85783
85803
|
}
|
|
85784
85804
|
var _rowSeq = 0;
|
|
85805
|
+
function renderDeltaChip(delta) {
|
|
85806
|
+
const tone = delta.tone === "good" ? "good" : delta.tone === "bad" ? "bad" : "neutral";
|
|
85807
|
+
const arrow = delta.arrow === "up" ? "\u2191" : delta.arrow === "down" ? "\u2193" : "\u2248";
|
|
85808
|
+
const pctTxt = fmtPct3(Math.abs(Number(delta.pct)));
|
|
85809
|
+
const txt = delta.text ? ` ${esc5(delta.text)}` : "";
|
|
85810
|
+
return `<span class="myio-gbt__chip myio-gbt__chip--${tone}">${arrow} ${esc5(pctTxt)}${txt}</span>`;
|
|
85811
|
+
}
|
|
85785
85812
|
function renderRow(row, level) {
|
|
85786
85813
|
const hasChildren = Array.isArray(row.children) && row.children.length > 0;
|
|
85787
85814
|
const open = !!row.defaultExpanded;
|
|
@@ -85790,9 +85817,10 @@ function renderRow(row, level) {
|
|
|
85790
85817
|
const caret = hasChildren ? `<button class="myio-gbt__caret${open ? " is-open" : ""}" data-caret="${id}" title="Expandir/recolher">\u25B8</button>` : `<span class="myio-gbt__caret-spacer"></span>`;
|
|
85791
85818
|
const swatch = row.color ? `<span class="myio-gbt__swatch" style="background:${esc5(row.color)}"></span>` : "";
|
|
85792
85819
|
const icon = row.icon ? `<span class="myio-gbt__icon">${esc5(row.icon)}</span>` : "";
|
|
85793
|
-
const
|
|
85820
|
+
const chipHtml = row.delta ? renderDeltaChip(row.delta) : "";
|
|
85821
|
+
const pctHtml = !row.delta && pct != null && isFinite(pct) ? `<span class="myio-gbt__pct">${esc5(fmtPct3(pct))}</span>` : "";
|
|
85794
85822
|
const rowClass = level > 0 ? "myio-gbt__row myio-gbt__row--child" : "myio-gbt__row";
|
|
85795
|
-
let html = `<div class="${rowClass}">` + caret + swatch + icon + `<span class="myio-gbt__label">${esc5(row.label)}</span><span class="myio-gbt__value">${esc5(row.valueText)}</span>` + pctHtml + `</div>`;
|
|
85823
|
+
let html = `<div class="${rowClass}">` + caret + swatch + icon + `<span class="myio-gbt__label">${esc5(row.label)}</span><span class="myio-gbt__value">${esc5(row.valueText)}</span>` + chipHtml + pctHtml + `</div>`;
|
|
85796
85824
|
if (hasChildren) {
|
|
85797
85825
|
const childHtml = row.children.map((c) => renderRow(c, level + 1)).join("");
|
|
85798
85826
|
html += `<div class="myio-gbt__children${open ? " is-open" : ""}" data-children="${id}">${childHtml}</div>`;
|
|
@@ -85909,7 +85937,7 @@ function createGoalsBarTooltip(opts) {
|
|
|
85909
85937
|
hideTimer = setTimeout(() => {
|
|
85910
85938
|
if (!pinned) el2.classList.remove("myio-gbt--visible");
|
|
85911
85939
|
hideTimer = null;
|
|
85912
|
-
},
|
|
85940
|
+
}, 450);
|
|
85913
85941
|
}
|
|
85914
85942
|
function destroy() {
|
|
85915
85943
|
clearHideTimer();
|
|
@@ -85971,13 +85999,27 @@ var _currentDomain = "energy";
|
|
|
85971
85999
|
var _currentGran = "1d";
|
|
85972
86000
|
var _selectedDate = _todayISO();
|
|
85973
86001
|
var _selectedYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
85974
|
-
var _periodStart =
|
|
86002
|
+
var _periodStart = _firstOfMonthISO();
|
|
85975
86003
|
var _periodEnd = _todayISO();
|
|
85976
86004
|
var _chartType = "bar";
|
|
85977
86005
|
var _lastRender = null;
|
|
85978
86006
|
var _renderSeq = 0;
|
|
85979
86007
|
var _datePickerControl = null;
|
|
85980
86008
|
var _barTip = null;
|
|
86009
|
+
var _periodDeviceBreakdown = null;
|
|
86010
|
+
function _neutralDelta(a, b) {
|
|
86011
|
+
if (a == null || b == null || !(b > 0) || !isFinite(a)) return void 0;
|
|
86012
|
+
const d = (a - b) / b * 100;
|
|
86013
|
+
return { pct: Math.abs(d), tone: "neutral", arrow: d > 0.05 ? "up" : d < -0.05 ? "down" : "flat" };
|
|
86014
|
+
}
|
|
86015
|
+
function _bandDelta(real, ref, midText) {
|
|
86016
|
+
if (real == null || ref == null || !(ref > 0) || !isFinite(real)) return void 0;
|
|
86017
|
+
const d = (real - ref) / ref * 100;
|
|
86018
|
+
const abs = Math.abs(d);
|
|
86019
|
+
if (d < -3) return { pct: abs, tone: "good", arrow: "down", text: "abaixo" };
|
|
86020
|
+
if (d > 3) return { pct: abs, tone: "bad", arrow: "up", text: "ultrapassou" };
|
|
86021
|
+
return { pct: abs, tone: "neutral", arrow: "flat", text: midText };
|
|
86022
|
+
}
|
|
85981
86023
|
function _todayISO() {
|
|
85982
86024
|
const d = /* @__PURE__ */ new Date();
|
|
85983
86025
|
const mm = String(d.getMonth() + 1).padStart(2, "0");
|
|
@@ -85991,6 +86033,11 @@ function _isoNDaysAgo(n) {
|
|
|
85991
86033
|
const dd = String(d.getDate()).padStart(2, "0");
|
|
85992
86034
|
return `${d.getFullYear()}-${mm}-${dd}`;
|
|
85993
86035
|
}
|
|
86036
|
+
function _firstOfMonthISO() {
|
|
86037
|
+
const d = /* @__PURE__ */ new Date();
|
|
86038
|
+
const mm = String(d.getMonth() + 1).padStart(2, "0");
|
|
86039
|
+
return `${d.getFullYear()}-${mm}-01`;
|
|
86040
|
+
}
|
|
85994
86041
|
function _getTopDoc() {
|
|
85995
86042
|
try {
|
|
85996
86043
|
return (window.top || window).document;
|
|
@@ -86014,10 +86061,17 @@ function _applyTheme(root) {
|
|
|
86014
86061
|
}
|
|
86015
86062
|
function _formatValue(value, domain) {
|
|
86016
86063
|
const cfg = DOMAIN_CFG[domain] || DOMAIN_CFG.energy;
|
|
86017
|
-
const
|
|
86064
|
+
const U = typeof window !== "undefined" ? window.MyIOUtils : void 0;
|
|
86065
|
+
if (domain === "energy" && typeof U?.formatEnergyWithSettings === "function") {
|
|
86066
|
+
return U.formatEnergyWithSettings(value);
|
|
86067
|
+
}
|
|
86068
|
+
if (domain === "water" && typeof U?.formatWaterWithSettings === "function") {
|
|
86069
|
+
return U.formatWaterWithSettings(value);
|
|
86070
|
+
}
|
|
86071
|
+
const dec = domain === "temperature" ? 1 : 3;
|
|
86018
86072
|
const ptBR = (v, d) => v.toLocaleString("pt-BR", { minimumFractionDigits: d, maximumFractionDigits: d });
|
|
86019
86073
|
if (cfg.threshold && cfg.unitLarge && Math.abs(value) >= cfg.threshold) {
|
|
86020
|
-
return `${ptBR(value / cfg.threshold,
|
|
86074
|
+
return `${ptBR(value / cfg.threshold, 3)} ${cfg.unitLarge}`;
|
|
86021
86075
|
}
|
|
86022
86076
|
return `${ptBR(value, dec)} ${cfg.unit}`;
|
|
86023
86077
|
}
|
|
@@ -86152,7 +86206,7 @@ async function _fetchSeriesTotals(domain, boundaries, viewGran, fetchGran) {
|
|
|
86152
86206
|
async function _fetchDayData(domain) {
|
|
86153
86207
|
const boundaries = _buildDayBoundaries(_periodStart, _periodEnd);
|
|
86154
86208
|
const labels = boundaries.map((b) => b.label);
|
|
86155
|
-
const totals = await _fetchSeriesTotals(domain, boundaries, "
|
|
86209
|
+
const totals = await _fetchSeriesTotals(domain, boundaries, "1h", "1h") ?? await _fetchTotalsThrottled(domain, boundaries, "1d");
|
|
86156
86210
|
return { labels, totals };
|
|
86157
86211
|
}
|
|
86158
86212
|
async function _fetchHourData(domain, dateISO) {
|
|
@@ -86167,6 +86221,26 @@ async function _fetchMonthData(domain, year) {
|
|
|
86167
86221
|
const totals = await _fetchSeriesTotals(domain, boundaries, "1M", "1d") ?? await _fetchTotalsThrottled(domain, boundaries, "1M");
|
|
86168
86222
|
return { labels, totals };
|
|
86169
86223
|
}
|
|
86224
|
+
async function _fetchPeriodDeviceBreakdown(domain, boundaries, gran) {
|
|
86225
|
+
try {
|
|
86226
|
+
const fn = _options?.fetchConsumption;
|
|
86227
|
+
if (!fn || !boundaries.length) return null;
|
|
86228
|
+
const start = boundaries[0].startTs;
|
|
86229
|
+
const end = boundaries[boundaries.length - 1].endTs;
|
|
86230
|
+
const devices = await fn(domain, start, end, gran);
|
|
86231
|
+
if (!Array.isArray(devices) || devices.length === 0) return null;
|
|
86232
|
+
const list = devices.map((d) => ({
|
|
86233
|
+
label: String(d.name || d.label || d.deviceName || "Medidor"),
|
|
86234
|
+
value: Number(d.total_value) || Number(d.value) || 0
|
|
86235
|
+
})).filter((d) => d.value > 0);
|
|
86236
|
+
if (list.length === 0) return null;
|
|
86237
|
+
const sum = list.reduce((a, d) => a + d.value, 0);
|
|
86238
|
+
if (!(sum > 0)) return null;
|
|
86239
|
+
return { list, sum };
|
|
86240
|
+
} catch {
|
|
86241
|
+
return null;
|
|
86242
|
+
}
|
|
86243
|
+
}
|
|
86170
86244
|
function _buildBoundaries(gran, dateISO) {
|
|
86171
86245
|
if (gran === "1M") return _buildMonthBoundaries(_selectedYear);
|
|
86172
86246
|
if (gran === "1h") return _buildHourBoundaries(dateISO);
|
|
@@ -86180,7 +86254,9 @@ async function _fetchPrevYearTotals(domain, gran, boundaries) {
|
|
|
86180
86254
|
pe.setFullYear(pe.getFullYear() - 1);
|
|
86181
86255
|
return { ...b, startTs: ps.getTime(), endTs: pe.getTime() };
|
|
86182
86256
|
});
|
|
86183
|
-
const
|
|
86257
|
+
const seriesViewGran = gran === "1d" ? "1h" : gran;
|
|
86258
|
+
const seriesFetchGran = gran === "1M" ? "1d" : gran === "1d" ? "1h" : gran;
|
|
86259
|
+
const viaSeries = await _fetchSeriesTotals(domain, prevBoundaries, seriesViewGran, seriesFetchGran);
|
|
86184
86260
|
if (viaSeries) return viaSeries;
|
|
86185
86261
|
const fetchFn = _options.fetchConsumption;
|
|
86186
86262
|
const totals = new Array(prevBoundaries.length).fill(0);
|
|
@@ -86237,34 +86313,6 @@ function _goalNodeValue(node) {
|
|
|
86237
86313
|
const v = node.adjustedValue ?? node.value;
|
|
86238
86314
|
return v == null ? null : v;
|
|
86239
86315
|
}
|
|
86240
|
-
function _budgetNodeValue(node) {
|
|
86241
|
-
if (!node) return null;
|
|
86242
|
-
return node.value == null ? null : node.value;
|
|
86243
|
-
}
|
|
86244
|
-
function _buildBudgetLine(domain, labels, gran, dateISO) {
|
|
86245
|
-
const tree = _getGoalsTree(domain);
|
|
86246
|
-
if (!tree) return labels.map(() => null);
|
|
86247
|
-
if (gran === "1h") {
|
|
86248
|
-
const ref = (dateISO || _selectedDate).split("-");
|
|
86249
|
-
const mm = ref[1] ?? "";
|
|
86250
|
-
const dd = ref[2] ?? "";
|
|
86251
|
-
if (tree.hourly && Object.keys(tree.hourly).length > 0) {
|
|
86252
|
-
return labels.map((lbl) => {
|
|
86253
|
-
const hh = lbl.replace("h", "").padStart(2, "0");
|
|
86254
|
-
return _budgetNodeValue(tree.hourly[`${mm}-${dd}T${hh}`]);
|
|
86255
|
-
});
|
|
86256
|
-
}
|
|
86257
|
-
return labels.map(() => null);
|
|
86258
|
-
}
|
|
86259
|
-
if (gran === "1M") {
|
|
86260
|
-
return labels.map((lbl) => {
|
|
86261
|
-
const m = MONTH_LABELS_PT.indexOf(lbl);
|
|
86262
|
-
if (m < 0) return null;
|
|
86263
|
-
return _budgetNodeValue(tree.monthly?.[String(m + 1).padStart(2, "0")]);
|
|
86264
|
-
});
|
|
86265
|
-
}
|
|
86266
|
-
return labels.map((lbl) => _budgetNodeValue(tree.daily?.[_labelToDailyKey(lbl)]));
|
|
86267
|
-
}
|
|
86268
86316
|
function _buildGoalLine(domain, labels, gran, dateISO) {
|
|
86269
86317
|
const tree = _getGoalsTree(domain);
|
|
86270
86318
|
if (!tree) return labels.map(() => null);
|
|
@@ -86322,12 +86370,14 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86322
86370
|
fill: false,
|
|
86323
86371
|
tension: 0.4,
|
|
86324
86372
|
pointRadius: isLine ? 2 : 0,
|
|
86373
|
+
// Legenda: barra → quadradinho (usePointStyle + 'rect').
|
|
86374
|
+
pointStyle: "rect",
|
|
86325
86375
|
order: 4
|
|
86326
86376
|
});
|
|
86327
86377
|
}
|
|
86328
86378
|
datasets.push({
|
|
86329
86379
|
type: _chartType,
|
|
86330
|
-
label: `
|
|
86380
|
+
label: `Realizado (${cfg.unit})`,
|
|
86331
86381
|
data: totals,
|
|
86332
86382
|
borderColor: cfg.barColor,
|
|
86333
86383
|
backgroundColor: isLine ? cfg.barColorAlpha : cfg.barColor,
|
|
@@ -86337,6 +86387,8 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86337
86387
|
tension: 0.4,
|
|
86338
86388
|
pointRadius: isLine ? 3 : 0,
|
|
86339
86389
|
pointHoverRadius: 4,
|
|
86390
|
+
// Legenda: barra → quadradinho (usePointStyle + 'rect').
|
|
86391
|
+
pointStyle: "rect",
|
|
86340
86392
|
order: 5
|
|
86341
86393
|
});
|
|
86342
86394
|
if (hasGoals) {
|
|
@@ -86352,6 +86404,8 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86352
86404
|
fill: false,
|
|
86353
86405
|
spanGaps: true,
|
|
86354
86406
|
tension: 0.4,
|
|
86407
|
+
// Meta é LINHA — legenda deve mostrar um traço, não um quadradinho.
|
|
86408
|
+
pointStyle: "line",
|
|
86355
86409
|
order: 0
|
|
86356
86410
|
});
|
|
86357
86411
|
}
|
|
@@ -86365,7 +86419,6 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86365
86419
|
const useLarge = !!(cfg.unitLarge && cfg.threshold && yMax && yMax >= cfg.threshold);
|
|
86366
86420
|
const axisDivisor = useLarge ? cfg.threshold : 1;
|
|
86367
86421
|
const axisUnit = useLarge ? cfg.unitLarge : cfg.unit;
|
|
86368
|
-
const budgetLine = _buildBudgetLine(domain, labels, _currentGran, _selectedDate);
|
|
86369
86422
|
let accent = cfg.primaryColor;
|
|
86370
86423
|
try {
|
|
86371
86424
|
const root = _overlay || _getTopDoc().documentElement;
|
|
@@ -86377,32 +86430,47 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86377
86430
|
const realizado = totals[idx];
|
|
86378
86431
|
const meta = goalLine[idx];
|
|
86379
86432
|
const prev = prevTotals ? prevTotals[idx] : null;
|
|
86380
|
-
const budget = budgetLine[idx];
|
|
86381
|
-
const ref = meta != null && meta > 0 ? meta : realizado || null;
|
|
86382
|
-
const pctOf = (v) => v != null && ref ? v / ref * 100 : null;
|
|
86383
86433
|
const rows = [];
|
|
86384
|
-
rows.push({
|
|
86385
|
-
icon: "\u{1F4CA}",
|
|
86386
|
-
label: "Realizado",
|
|
86387
|
-
color: cfg.barColor,
|
|
86388
|
-
valueText: _formatValue(realizado, domain),
|
|
86389
|
-
pct: meta != null && meta > 0 ? pctOf(realizado) : null
|
|
86390
|
-
});
|
|
86391
86434
|
if (prev != null && prev > 0) {
|
|
86392
86435
|
rows.push({
|
|
86393
86436
|
icon: "\u{1F553}",
|
|
86394
86437
|
label: "A-1 (ano anterior)",
|
|
86395
86438
|
color: "#94a3b8",
|
|
86396
86439
|
valueText: _formatValue(prev, domain),
|
|
86397
|
-
|
|
86440
|
+
delta: meta != null && meta > 0 ? _neutralDelta(prev, meta) : void 0
|
|
86398
86441
|
});
|
|
86399
86442
|
}
|
|
86443
|
+
const realizadoRow = {
|
|
86444
|
+
icon: "\u{1F4CA}",
|
|
86445
|
+
label: "Realizado",
|
|
86446
|
+
color: cfg.barColor,
|
|
86447
|
+
valueText: _formatValue(realizado, domain),
|
|
86448
|
+
delta: prev != null && prev > 0 ? _neutralDelta(realizado, prev) : void 0
|
|
86449
|
+
};
|
|
86450
|
+
try {
|
|
86451
|
+
const bd = _periodDeviceBreakdown;
|
|
86452
|
+
if (bd && bd.sum > 0 && realizado > 0 && bd.list.length > 0) {
|
|
86453
|
+
realizadoRow.children = bd.list.map((d) => {
|
|
86454
|
+
const w = d.value / bd.sum;
|
|
86455
|
+
return {
|
|
86456
|
+
icon: cfg.icon,
|
|
86457
|
+
label: d.label,
|
|
86458
|
+
valueText: _formatValue(realizado * w, domain),
|
|
86459
|
+
pct: w * 100
|
|
86460
|
+
};
|
|
86461
|
+
});
|
|
86462
|
+
realizadoRow.defaultExpanded = false;
|
|
86463
|
+
}
|
|
86464
|
+
} catch {
|
|
86465
|
+
}
|
|
86466
|
+
rows.push(realizadoRow);
|
|
86400
86467
|
if (meta != null) {
|
|
86401
86468
|
const metaRow = {
|
|
86402
86469
|
icon: "\u{1F3AF}",
|
|
86403
86470
|
label: "Meta",
|
|
86404
86471
|
color: cfg.goalColor,
|
|
86405
|
-
valueText: _formatValue(meta, domain)
|
|
86472
|
+
valueText: _formatValue(meta, domain),
|
|
86473
|
+
delta: _bandDelta(realizado, meta, "na meta")
|
|
86406
86474
|
};
|
|
86407
86475
|
const gdata = _getGoalsData(domain);
|
|
86408
86476
|
if (gdata?.granularity === "DEVICE" && Array.isArray(gdata.devices) && gdata.devices.length && meta > 0) {
|
|
@@ -86426,15 +86494,6 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86426
86494
|
}
|
|
86427
86495
|
rows.push(metaRow);
|
|
86428
86496
|
}
|
|
86429
|
-
if (budget != null && (meta == null || Math.abs(budget - meta) > 1e-6)) {
|
|
86430
|
-
rows.push({
|
|
86431
|
-
icon: "\u{1F4CB}",
|
|
86432
|
-
label: "Or\xE7ado",
|
|
86433
|
-
color: "#f59e0b",
|
|
86434
|
-
valueText: _formatValue(budget, domain),
|
|
86435
|
-
pct: pctOf(budget)
|
|
86436
|
-
});
|
|
86437
|
-
}
|
|
86438
86497
|
let subtitle;
|
|
86439
86498
|
if (meta != null && meta > 0) {
|
|
86440
86499
|
const dev = (realizado - meta) / meta * 100;
|
|
@@ -86442,6 +86501,13 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86442
86501
|
}
|
|
86443
86502
|
return { title: labels[idx] ?? "", subtitle, rows, accentColor: accent };
|
|
86444
86503
|
};
|
|
86504
|
+
let _lastMouse = null;
|
|
86505
|
+
try {
|
|
86506
|
+
canvas.addEventListener("mousemove", (e) => {
|
|
86507
|
+
_lastMouse = { x: e.clientX, y: e.clientY };
|
|
86508
|
+
});
|
|
86509
|
+
} catch {
|
|
86510
|
+
}
|
|
86445
86511
|
const externalTip = _barTip ? (context) => {
|
|
86446
86512
|
try {
|
|
86447
86513
|
const tt = context?.tooltip;
|
|
@@ -86453,10 +86519,11 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86453
86519
|
if (!dp) return;
|
|
86454
86520
|
const idx = dp.dataIndex;
|
|
86455
86521
|
const rect = context.chart.canvas.getBoundingClientRect();
|
|
86456
|
-
|
|
86457
|
-
|
|
86458
|
-
|
|
86459
|
-
}
|
|
86522
|
+
const pos = _lastMouse ?? {
|
|
86523
|
+
x: rect.left + tt.caretX,
|
|
86524
|
+
y: rect.top + tt.caretY
|
|
86525
|
+
};
|
|
86526
|
+
_barTip.show(buildBarTipData(idx), { clientX: pos.x, clientY: pos.y });
|
|
86460
86527
|
} catch {
|
|
86461
86528
|
}
|
|
86462
86529
|
} : void 0;
|
|
@@ -86473,7 +86540,9 @@ function _renderChart(canvas, labels, totals, goalLine, domain, prevTotals) {
|
|
|
86473
86540
|
legend: {
|
|
86474
86541
|
display: hasGoals || hasPrev,
|
|
86475
86542
|
position: "bottom",
|
|
86476
|
-
|
|
86543
|
+
// usePointStyle + pointStyle por dataset: barras (Realizado/Ano anterior)
|
|
86544
|
+
// ficam quadradinhos ('rect'), Meta fica um traço ('line').
|
|
86545
|
+
labels: { color: "#374151", font: { size: 11 }, usePointStyle: true }
|
|
86477
86546
|
},
|
|
86478
86547
|
tooltip: {
|
|
86479
86548
|
// Premium tooltip via external handler; se indisponível, cai no built-in.
|
|
@@ -86584,6 +86653,15 @@ async function _loadAndRender(domain, gran, dateISO) {
|
|
|
86584
86653
|
if (!canvas) return;
|
|
86585
86654
|
_renderChart(canvas, labels, totals, goalLine, domain, prevTotals);
|
|
86586
86655
|
_lastRender = { labels, totals, goalLine, prevTotals, domain };
|
|
86656
|
+
_periodDeviceBreakdown = null;
|
|
86657
|
+
if (domain !== "temperature") {
|
|
86658
|
+
const mySeq = seq;
|
|
86659
|
+
const bnds = _buildBoundaries(gran, dateISO);
|
|
86660
|
+
_fetchPeriodDeviceBreakdown(domain, bnds, gran).then((bd) => {
|
|
86661
|
+
if (mySeq === _renderSeq) _periodDeviceBreakdown = bd;
|
|
86662
|
+
}).catch(() => {
|
|
86663
|
+
});
|
|
86664
|
+
}
|
|
86587
86665
|
if (statsEl) {
|
|
86588
86666
|
const total = totals.reduce((a, b) => a + b, 0);
|
|
86589
86667
|
const avg = totals.length ? total / totals.length : 0;
|
|
@@ -86635,7 +86713,7 @@ function _injectStyles(topDoc) {
|
|
|
86635
86713
|
const s = topDoc.createElement("style");
|
|
86636
86714
|
s.id = STYLE_ID6;
|
|
86637
86715
|
s.textContent = `
|
|
86638
|
-
.gm-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);opacity:0;transition:opacity .2s ease;font-family:
|
|
86716
|
+
.gm-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);opacity:0;transition:opacity .2s ease;font-family:'Nunito', system-ui, sans-serif;}
|
|
86639
86717
|
.gm-overlay.show{opacity:1;}
|
|
86640
86718
|
.gm-modal{position:relative;background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.25);width:min(1000px,95vw);height:min(660px,90vh);overflow:hidden;display:flex;flex-direction:column;transform:translateY(12px) scale(.98);transition:transform .2s ease;}
|
|
86641
86719
|
.gm-overlay.show .gm-modal{transform:translateY(0) scale(1);}
|
|
@@ -86692,6 +86770,10 @@ function _buildModalHTML() {
|
|
|
86692
86770
|
<button class="gm-gran-btn${_currentGran === "1d" ? " active" : ""}" data-gran="1d">1d</button>
|
|
86693
86771
|
<button class="gm-gran-btn${_currentGran === "1h" ? " active" : ""}" data-gran="1h">1h</button>
|
|
86694
86772
|
</div>
|
|
86773
|
+
<div class="gm-gran-wrap" title="Atalhos de per\xEDodo">
|
|
86774
|
+
<button class="gm-gran-btn" data-preset="prevYear">Ano ${(/* @__PURE__ */ new Date()).getFullYear() - 1}</button>
|
|
86775
|
+
<button class="gm-gran-btn" data-preset="curYear">Ano ${(/* @__PURE__ */ new Date()).getFullYear()}</button>
|
|
86776
|
+
</div>
|
|
86695
86777
|
<div class="gm-date-picker-wrap" id="gm-date-picker-wrap">
|
|
86696
86778
|
<input type="text" id="gm-date-range-input" class="gm-date-input" readonly placeholder="Selecione o per\xEDodo\u2026" />
|
|
86697
86779
|
</div>
|
|
@@ -86777,6 +86859,20 @@ function _wireEvents(overlay, topDoc) {
|
|
|
86777
86859
|
_loadAndRender(_currentDomain, _currentGran, _selectedDate);
|
|
86778
86860
|
});
|
|
86779
86861
|
});
|
|
86862
|
+
overlay.querySelectorAll(".gm-gran-btn[data-preset]").forEach((btn) => {
|
|
86863
|
+
btn.addEventListener("click", () => {
|
|
86864
|
+
const which = btn.dataset.preset;
|
|
86865
|
+
const Y = (/* @__PURE__ */ new Date()).getFullYear();
|
|
86866
|
+
const year = which === "prevYear" ? Y - 1 : Y;
|
|
86867
|
+
_selectedYear = year;
|
|
86868
|
+
_currentGran = "1M";
|
|
86869
|
+
_periodStart = `${year}-01-01`;
|
|
86870
|
+
_periodEnd = which === "prevYear" ? `${year}-12-31` : _todayISO();
|
|
86871
|
+
overlay.querySelectorAll(".gm-gran-btn[data-gran]").forEach((b) => b.classList.toggle("active", b.dataset.gran === "1M"));
|
|
86872
|
+
_initDatePicker(topDoc).catch(console.error);
|
|
86873
|
+
_loadAndRender(_currentDomain, _currentGran, _selectedDate);
|
|
86874
|
+
});
|
|
86875
|
+
});
|
|
86780
86876
|
}
|
|
86781
86877
|
function _updateGoalsHint(topDoc) {
|
|
86782
86878
|
const existing = topDoc.getElementById("gm-no-goals-hint-el");
|
|
@@ -86846,7 +86942,7 @@ var GoalsModal = {
|
|
|
86846
86942
|
_options = options;
|
|
86847
86943
|
_currentDomain = options.initialDomain ?? "energy";
|
|
86848
86944
|
_periodEnd = _todayISO();
|
|
86849
|
-
_periodStart = _isoNDaysAgo(
|
|
86945
|
+
_periodStart = options.defaultPeriodDays != null ? _isoNDaysAgo(options.defaultPeriodDays - 1) : _firstOfMonthISO();
|
|
86850
86946
|
_selectedDate = _todayISO();
|
|
86851
86947
|
_selectedYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
86852
86948
|
_currentGran = "1d";
|
|
@@ -87193,7 +87289,7 @@ function generatePDFContent(data, config2) {
|
|
|
87193
87289
|
<title>${deviceLabel} - ${domainLabel} Report</title>
|
|
87194
87290
|
<style>
|
|
87195
87291
|
body {
|
|
87196
|
-
font-family: '
|
|
87292
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
87197
87293
|
margin: 0;
|
|
87198
87294
|
padding: 24px;
|
|
87199
87295
|
color: ${colors2.text};
|
|
@@ -87628,7 +87724,7 @@ function createDistributionChartWidget(config2) {
|
|
|
87628
87724
|
return `
|
|
87629
87725
|
<style>
|
|
87630
87726
|
#${widgetId} {
|
|
87631
|
-
font-family:
|
|
87727
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
87632
87728
|
}
|
|
87633
87729
|
#${widgetId} .myio-dist-header {
|
|
87634
87730
|
display: flex;
|
|
@@ -88316,7 +88412,7 @@ var ContractDevicesModalView = class {
|
|
|
88316
88412
|
align-items: center;
|
|
88317
88413
|
justify-content: center;
|
|
88318
88414
|
z-index: 10000;
|
|
88319
|
-
font-family:
|
|
88415
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
88320
88416
|
}
|
|
88321
88417
|
|
|
88322
88418
|
.myio-contract-devices-modal {
|
|
@@ -89523,7 +89619,7 @@ var HUB_CSS = `
|
|
|
89523
89619
|
opacity: 0;
|
|
89524
89620
|
pointer-events: none;
|
|
89525
89621
|
transition: opacity 0.2s ease;
|
|
89526
|
-
font-family: Nunito,
|
|
89622
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
89527
89623
|
}
|
|
89528
89624
|
.myio-conf-picker.show {
|
|
89529
89625
|
opacity: 1;
|
|
@@ -89940,7 +90036,7 @@ var PRICING_PANEL_CSS = `
|
|
|
89940
90036
|
opacity: 0;
|
|
89941
90037
|
pointer-events: none;
|
|
89942
90038
|
transition: opacity 0.2s ease;
|
|
89943
|
-
font-family: Nunito,
|
|
90039
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
89944
90040
|
}
|
|
89945
90041
|
.myio-pricing.show {
|
|
89946
90042
|
opacity: 1;
|
|
@@ -91295,7 +91391,7 @@ var MeasurementSetupView = class {
|
|
|
91295
91391
|
opacity: 0;
|
|
91296
91392
|
visibility: hidden;
|
|
91297
91393
|
transition: all 0.3s ease;
|
|
91298
|
-
font-family: ${styles.fontFamily || "'
|
|
91394
|
+
font-family: ${styles.fontFamily || "'Nunito', system-ui, sans-serif"};
|
|
91299
91395
|
}
|
|
91300
91396
|
|
|
91301
91397
|
.myio-measurement-setup-overlay.active {
|
|
@@ -92126,7 +92222,7 @@ function ensureBusyModalDOM() {
|
|
|
92126
92222
|
z-index: 99999;
|
|
92127
92223
|
align-items: center;
|
|
92128
92224
|
justify-content: center;
|
|
92129
|
-
font-family: '
|
|
92225
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
92130
92226
|
">
|
|
92131
92227
|
<div style="
|
|
92132
92228
|
background: ${MYIO_PURPLE_DARK};
|
|
@@ -92606,7 +92702,7 @@ function renderModal4(container, state6, modalId, t, error) {
|
|
|
92606
92702
|
max-height: ${contentMaxHeight}; height: ${state6.isMaximized ? "100%" : "auto"};
|
|
92607
92703
|
overflow: hidden; display: flex; flex-direction: column;
|
|
92608
92704
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
92609
|
-
font-family: '
|
|
92705
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
92610
92706
|
">
|
|
92611
92707
|
<!-- Header - MyIO Premium Style -->
|
|
92612
92708
|
<div style="
|
|
@@ -92665,7 +92761,7 @@ function renderModal4(container, state6, modalId, t, error) {
|
|
|
92665
92761
|
background: ${state6.theme === "dark" ? "rgba(255,255,255,0.1)" : "#f3f4f6"};
|
|
92666
92762
|
color: ${colors2.text}; border: 1px solid ${colors2.border};
|
|
92667
92763
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92668
|
-
font-size: 14px; font-family: '
|
|
92764
|
+
font-size: 14px; font-family: 'Nunito', system-ui, sans-serif;
|
|
92669
92765
|
">${t.back}</button>
|
|
92670
92766
|
` : ""}
|
|
92671
92767
|
</div>
|
|
@@ -92674,49 +92770,49 @@ function renderModal4(container, state6, modalId, t, error) {
|
|
|
92674
92770
|
<button id="${modalId}-bulk-attr" style="
|
|
92675
92771
|
background: #f59e0b; color: white; border: none;
|
|
92676
92772
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92677
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92773
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92678
92774
|
display: flex; align-items: center; gap: 6px;
|
|
92679
92775
|
">\u26A1 For\xE7ar Atributo (${state6.selectedDevices.length})</button>
|
|
92680
92776
|
<button id="${modalId}-bulk-profile" style="
|
|
92681
92777
|
background: #8b5cf6; color: white; border: none;
|
|
92682
92778
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92683
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92779
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92684
92780
|
display: flex; align-items: center; gap: 6px;
|
|
92685
92781
|
">\u{1F3F7}\uFE0F For\xE7ar Profile (${state6.selectedDevices.length})</button>
|
|
92686
92782
|
<button id="${modalId}-bulk-owner" style="
|
|
92687
92783
|
background: #10b981; color: white; border: none;
|
|
92688
92784
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92689
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92785
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92690
92786
|
display: flex; align-items: center; gap: 6px;
|
|
92691
92787
|
" ${!state6.selectedCustomer ? 'disabled title="Selecione um Customer primeiro"' : ""}>\u{1F464} Atribuir Owner (${state6.selectedDevices.length})</button>
|
|
92692
92788
|
<button id="${modalId}-bulk-relation" style="
|
|
92693
92789
|
background: #0a6d5e; color: white; border: none;
|
|
92694
92790
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92695
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92791
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92696
92792
|
display: flex; align-items: center; gap: 6px;
|
|
92697
92793
|
" ${!state6.selectedCustomer ? 'disabled title="Selecione um Customer primeiro"' : ""}>\u{1F517} For\xE7ar Rela\xE7\xE3o (${state6.selectedDevices.length})</button>
|
|
92698
92794
|
<button id="${modalId}-clear-gcdr-ids" style="
|
|
92699
92795
|
background: #dc2626; color: white; border: none;
|
|
92700
92796
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92701
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92797
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92702
92798
|
display: flex; align-items: center; gap: 6px;
|
|
92703
92799
|
" ${!state6.selectedCustomer ? 'disabled title="Selecione um Customer primeiro"' : ""}>\u{1F9F9} Clear GCDR IDs</button>
|
|
92704
92800
|
<button id="${modalId}-custom-shortcut" style="
|
|
92705
92801
|
background: #ef4444; color: white; border: none;
|
|
92706
92802
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92707
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92803
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92708
92804
|
display: flex; align-items: center; gap: 6px;
|
|
92709
92805
|
">\u{1F39B}\uFE0F CUSTOM (${state6.selectedDevices.length})</button>
|
|
92710
92806
|
<button id="${modalId}-bulk-sync-ingestion" style="
|
|
92711
92807
|
background: #0284c7; color: white; border: none;
|
|
92712
92808
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92713
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92809
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92714
92810
|
display: flex; align-items: center; gap: 6px;
|
|
92715
92811
|
" ${!state6.selectedCustomer ? 'disabled title="Selecione um Customer primeiro"' : ""}>\u{1F504} Sync Ingestion ID (${state6.selectedDevices.length})</button>
|
|
92716
92812
|
<button id="${modalId}-bulk-delete" style="
|
|
92717
92813
|
background: #b91c1c; color: white; border: 1px solid #7f1d1d;
|
|
92718
92814
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92719
|
-
font-size: 14px; font-weight: 600; font-family: '
|
|
92815
|
+
font-size: 14px; font-weight: 600; font-family: 'Nunito', system-ui, sans-serif;
|
|
92720
92816
|
display: flex; align-items: center; gap: 6px;
|
|
92721
92817
|
" title="Deletar permanentemente os dispositivos selecionados (irrevers\xEDvel)">\u{1F5D1}\uFE0F Deletar (${state6.selectedDevices.length})</button>
|
|
92722
92818
|
` : ""}
|
|
@@ -92724,13 +92820,13 @@ function renderModal4(container, state6, modalId, t, error) {
|
|
|
92724
92820
|
<button id="${modalId}-lojas-sync" style="
|
|
92725
92821
|
background: #3b82f6; color: white; border: none;
|
|
92726
92822
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92727
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92823
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92728
92824
|
display: flex; align-items: center; gap: 6px;
|
|
92729
92825
|
" ${state6.lojasDataLoading ? "disabled" : ""}>\u{1F504} Sync Ingestion</button>
|
|
92730
92826
|
<button id="${modalId}-lojas-apply" style="
|
|
92731
92827
|
background: #ef4444; color: white; border: none;
|
|
92732
92828
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92733
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92829
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92734
92830
|
display: flex; align-items: center; gap: 6px;
|
|
92735
92831
|
" ${state6.lojasDataLoading ? "disabled" : ""}>\u{1F3EC} Aplicar ${state6.lojasConfig?.label ?? "LOJAS"} (${state6.lojasDeviceData.length})</button>
|
|
92736
92832
|
` : ""}
|
|
@@ -92738,19 +92834,19 @@ function renderModal4(container, state6, modalId, t, error) {
|
|
|
92738
92834
|
background: ${state6.theme === "dark" ? "rgba(255,255,255,0.1)" : "#f3f4f6"};
|
|
92739
92835
|
color: ${colors2.text}; border: 1px solid ${colors2.border};
|
|
92740
92836
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92741
|
-
font-size: 14px; font-family: '
|
|
92837
|
+
font-size: 14px; font-family: 'Nunito', system-ui, sans-serif;
|
|
92742
92838
|
">${t.cancel}</button>
|
|
92743
92839
|
${state6.currentStep < 3 ? `
|
|
92744
92840
|
<button id="${modalId}-next" style="
|
|
92745
92841
|
background: ${MYIO_PURPLE}; color: white; border: none;
|
|
92746
92842
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92747
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92843
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92748
92844
|
" ${state6.deviceSelectionMode === "multi" ? 'disabled title="Desabilitado no modo multi"' : ""}>${t.next}</button>
|
|
92749
92845
|
` : state6.lojasMode ? "" : `
|
|
92750
92846
|
<button id="${modalId}-save" style="
|
|
92751
92847
|
background: ${colors2.success}; color: white; border: none;
|
|
92752
92848
|
padding: 8px 16px; border-radius: 6px; cursor: pointer;
|
|
92753
|
-
font-size: 14px; font-weight: 500; font-family: '
|
|
92849
|
+
font-size: 14px; font-weight: 500; font-family: 'Nunito', system-ui, sans-serif;
|
|
92754
92850
|
">${t.save}</button>
|
|
92755
92851
|
`}
|
|
92756
92852
|
</div>
|
|
@@ -94839,7 +94935,7 @@ function openRelationsDetailPanel(deviceId, deviceName, direction, rels, state6,
|
|
|
94839
94935
|
z-index:99999; background:${colors2.bg}; border:1px solid ${colors2.border};
|
|
94840
94936
|
border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.35);
|
|
94841
94937
|
min-width:380px; max-width:500px; width:90vw; max-height:70vh;
|
|
94842
|
-
display:flex; flex-direction:column; font-family:system-ui,sans-serif;
|
|
94938
|
+
display:flex; flex-direction:column; font-family:Nunito, system-ui, sans-serif;
|
|
94843
94939
|
`;
|
|
94844
94940
|
const rows = currentRels.map((rel, idx) => {
|
|
94845
94941
|
const [tcBg, tcColor] = typeColor(rel.entityType);
|
|
@@ -95010,7 +95106,7 @@ async function openClearGcdrIdsModal(state6) {
|
|
|
95010
95106
|
position:fixed; inset:0; z-index:99999;
|
|
95011
95107
|
background:rgba(0,0,0,0.55); backdrop-filter:blur(4px);
|
|
95012
95108
|
display:flex; align-items:center; justify-content:center;
|
|
95013
|
-
font-family:'
|
|
95109
|
+
font-family:'Nunito', system-ui, sans-serif;
|
|
95014
95110
|
`;
|
|
95015
95111
|
overlay.addEventListener("click", (e) => {
|
|
95016
95112
|
if (e.target === overlay) close();
|
|
@@ -96278,7 +96374,7 @@ function showMiniTooltip(trigger, content, colors2) {
|
|
|
96278
96374
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
96279
96375
|
white-space: pre-line;
|
|
96280
96376
|
max-width: 280px;
|
|
96281
|
-
font-family: '
|
|
96377
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
96282
96378
|
`;
|
|
96283
96379
|
miniTooltipEl.textContent = content;
|
|
96284
96380
|
document.body.appendChild(miniTooltipEl);
|
|
@@ -97315,7 +97411,7 @@ function openCheckFixScopeDialog(state6, onConfirm) {
|
|
|
97315
97411
|
}
|
|
97316
97412
|
const overlay = document.createElement("div");
|
|
97317
97413
|
overlay.id = DIALOG_ID;
|
|
97318
|
-
overlay.style.cssText = "position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,0.55);display:flex;align-items:center;justify-content:center;font-family:
|
|
97414
|
+
overlay.style.cssText = "position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,0.55);display:flex;align-items:center;justify-content:center;font-family:Nunito, system-ui, sans-serif;";
|
|
97319
97415
|
overlay.innerHTML = `
|
|
97320
97416
|
<div style="background:${c.surface};border-radius:12px;width:480px;max-width:92vw;max-height:88vh;
|
|
97321
97417
|
overflow:hidden;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,0.4);">
|
|
@@ -97919,7 +98015,7 @@ function injectDialogStyles() {
|
|
|
97919
98015
|
align-items: center;
|
|
97920
98016
|
justify-content: center;
|
|
97921
98017
|
background: rgba(17, 24, 39, 0.55);
|
|
97922
|
-
font-family: 'Nunito', -
|
|
98018
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
97923
98019
|
}
|
|
97924
98020
|
.myio-dialog {
|
|
97925
98021
|
background: #ffffff;
|
|
@@ -98210,7 +98306,7 @@ function injectGenericModalStyles() {
|
|
|
98210
98306
|
align-items: center;
|
|
98211
98307
|
justify-content: center;
|
|
98212
98308
|
background: rgba(17, 24, 39, 0.55);
|
|
98213
|
-
font-family: 'Nunito', -
|
|
98309
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
98214
98310
|
}
|
|
98215
98311
|
.myio-genmodal {
|
|
98216
98312
|
background: #ffffff;
|
|
@@ -98449,7 +98545,7 @@ function injectStyles12() {
|
|
|
98449
98545
|
display: flex;
|
|
98450
98546
|
align-items: center;
|
|
98451
98547
|
gap: 6px;
|
|
98452
|
-
font-family: 'Nunito', -
|
|
98548
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
98453
98549
|
max-width: 100%;
|
|
98454
98550
|
}
|
|
98455
98551
|
.myio-tabs__arrow {
|
|
@@ -98670,7 +98766,7 @@ function injectStyles13() {
|
|
|
98670
98766
|
style.id = STYLE_ID11;
|
|
98671
98767
|
style.textContent = `
|
|
98672
98768
|
.myio-gallery {
|
|
98673
|
-
font-family: 'Nunito', -
|
|
98769
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
98674
98770
|
display: flex;
|
|
98675
98771
|
flex-direction: column;
|
|
98676
98772
|
gap: 14px;
|
|
@@ -98770,7 +98866,7 @@ function injectStyles13() {
|
|
|
98770
98866
|
position: fixed; inset: 0; z-index: 10800;
|
|
98771
98867
|
display: flex; align-items: center; justify-content: center;
|
|
98772
98868
|
background: rgba(0,0,0,.82);
|
|
98773
|
-
font-family: 'Nunito', -
|
|
98869
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
98774
98870
|
}
|
|
98775
98871
|
.myio-gallery-lb__img { max-width: 88vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
|
|
98776
98872
|
.myio-gallery-lb__cap {
|
|
@@ -102641,7 +102737,7 @@ var UserManagementModalView = class {
|
|
|
102641
102737
|
/* \u2500\u2500 Component styles (theme-agnostic via variables) \u2500\u2500 */
|
|
102642
102738
|
.um-modal {
|
|
102643
102739
|
background: var(--um-modal-bg);
|
|
102644
|
-
font-family: 'Nunito', -
|
|
102740
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
102645
102741
|
border-radius: 14px; width: 96vw; max-width: 1200px;
|
|
102646
102742
|
--modal-header-radius: 14px 14px 0 0;
|
|
102647
102743
|
height: 84vh; display: flex; flex-direction: column;
|
|
@@ -102785,7 +102881,7 @@ var UserManagementModalView = class {
|
|
|
102785
102881
|
background: var(--um-modal-bg); border: 1px solid var(--um-border);
|
|
102786
102882
|
border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
|
|
102787
102883
|
width: 260px; pointer-events: none;
|
|
102788
|
-
font-family: 'Nunito', -
|
|
102884
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
102789
102885
|
}
|
|
102790
102886
|
.um-sync-tooltip-header {
|
|
102791
102887
|
display: flex; align-items: center; gap: 7px;
|
|
@@ -102811,7 +102907,7 @@ var UserManagementModalView = class {
|
|
|
102811
102907
|
background: var(--um-modal-bg); border: 1px solid var(--um-border);
|
|
102812
102908
|
border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
|
|
102813
102909
|
width: 320px; max-height: 340px; overflow-y: auto;
|
|
102814
|
-
font-family: 'Nunito', -
|
|
102910
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
102815
102911
|
}
|
|
102816
102912
|
.um-assign-popup-header {
|
|
102817
102913
|
display: flex; align-items: center; justify-content: space-between;
|
|
@@ -103759,7 +103855,7 @@ var MenuView = class {
|
|
|
103759
103855
|
========================================== */
|
|
103760
103856
|
|
|
103761
103857
|
.myio-menu-root {
|
|
103762
|
-
font-family: '
|
|
103858
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
103763
103859
|
width: 100%;
|
|
103764
103860
|
box-sizing: border-box;
|
|
103765
103861
|
}
|
|
@@ -110874,7 +110970,7 @@ var MODAL_CSS2 = `
|
|
|
110874
110970
|
overflow: hidden;
|
|
110875
110971
|
transform: scale(0.95) translateY(10px);
|
|
110876
110972
|
transition: transform 0.2s ease;
|
|
110877
|
-
font-family:
|
|
110973
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
110878
110974
|
}
|
|
110879
110975
|
|
|
110880
110976
|
/* Two-column layout when device grid is shown */
|
|
@@ -112482,7 +112578,7 @@ var CSS3 = `
|
|
|
112482
112578
|
border:1px solid var(--cgc-border);
|
|
112483
112579
|
border-radius:12px;
|
|
112484
112580
|
overflow:hidden;
|
|
112485
|
-
font-family:'Nunito',sans-serif;
|
|
112581
|
+
font-family:'Nunito', system-ui, sans-serif;
|
|
112486
112582
|
transition:transform .15s ease, box-shadow .15s ease;
|
|
112487
112583
|
}
|
|
112488
112584
|
.myio-cgc[data-theme="dark"]{
|
|
@@ -112504,7 +112600,7 @@ var CSS3 = `
|
|
|
112504
112600
|
.myio-cgc__expand{
|
|
112505
112601
|
position:absolute;top:6px;right:8px;z-index:2;
|
|
112506
112602
|
border:none;background:transparent;cursor:pointer;
|
|
112507
|
-
color:var(--cgc-muted);font:700 13px 'Nunito',sans-serif;line-height:1;
|
|
112603
|
+
color:var(--cgc-muted);font:700 13px 'Nunito', system-ui, sans-serif;line-height:1;
|
|
112508
112604
|
padding:3px 5px;border-radius:6px;opacity:.55;transition:opacity .15s, background .15s;
|
|
112509
112605
|
}
|
|
112510
112606
|
.myio-cgc__expand:hover{opacity:1;background:rgba(124,58,237,.12);color:#7C3AED;}
|
|
@@ -112512,7 +112608,7 @@ var CSS3 = `
|
|
|
112512
112608
|
font-size/margin grandes em h4, cortando o t\xEDtulo dentro do card). */
|
|
112513
112609
|
.myio-cgc h4.myio-cgc__title{
|
|
112514
112610
|
margin:0!important;padding:10px 26px 4px;
|
|
112515
|
-
font:800 14px/1.4 'Nunito',sans-serif!important;color:var(--cgc-text);
|
|
112611
|
+
font:800 14px/1.4 'Nunito', system-ui, sans-serif!important;color:var(--cgc-text);
|
|
112516
112612
|
text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
|
|
112517
112613
|
}
|
|
112518
112614
|
.myio-cgc__title--clickable{cursor:pointer;}
|
|
@@ -112521,7 +112617,7 @@ var CSS3 = `
|
|
|
112521
112617
|
.myio-cgc__chart canvas{width:100%!important;height:100%!important;}
|
|
112522
112618
|
.myio-cgc__chart-empty{
|
|
112523
112619
|
display:flex;align-items:center;justify-content:center;height:100%;
|
|
112524
|
-
font:600 11px 'Nunito',sans-serif;color:var(--cgc-muted);
|
|
112620
|
+
font:600 11px 'Nunito', system-ui, sans-serif;color:var(--cgc-muted);
|
|
112525
112621
|
}
|
|
112526
112622
|
.myio-cgc__totals{
|
|
112527
112623
|
display:grid;grid-template-columns:repeat(4,1fr);
|
|
@@ -112529,13 +112625,13 @@ var CSS3 = `
|
|
|
112529
112625
|
}
|
|
112530
112626
|
.myio-cgc__total{padding:6px 3px;text-align:center;border-right:1px solid var(--cgc-border);min-width:0;}
|
|
112531
112627
|
.myio-cgc__total:last-child{border-right:none;}
|
|
112532
|
-
.myio-cgc__total-label{display:block;font:700 9.5px 'Nunito',sans-serif;line-height:1.35;white-space:nowrap;}
|
|
112628
|
+
.myio-cgc__total-label{display:block;font:700 9.5px 'Nunito', system-ui, sans-serif;line-height:1.35;white-space:nowrap;}
|
|
112533
112629
|
.myio-cgc__total-label--realized{color:var(--cgc-realized);}
|
|
112534
112630
|
.myio-cgc__total-label--prev{color:var(--cgc-prev);}
|
|
112535
112631
|
.myio-cgc__total-label--budget{color:var(--cgc-budget);}
|
|
112536
112632
|
.myio-cgc__total-label--orcado{color:var(--cgc-orcado);}
|
|
112537
112633
|
.myio-cgc__total-value{
|
|
112538
|
-
display:block;font:700 11px 'Nunito',sans-serif;color:var(--cgc-text);
|
|
112634
|
+
display:block;font:700 11px 'Nunito', system-ui, sans-serif;color:var(--cgc-text);
|
|
112539
112635
|
white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
|
|
112540
112636
|
}
|
|
112541
112637
|
.myio-cgc__deltas{
|
|
@@ -112544,16 +112640,23 @@ var CSS3 = `
|
|
|
112544
112640
|
}
|
|
112545
112641
|
.myio-cgc__delta{padding:5px 3px 8px;text-align:center;border-right:1px solid var(--cgc-border);min-width:0;}
|
|
112546
112642
|
.myio-cgc__delta:last-child{border-right:none;}
|
|
112547
|
-
.myio-cgc__delta-label{display:block;font:600 9px 'Nunito',sans-serif;color:var(--cgc-muted);line-height:1.4;margin-bottom:2px;}
|
|
112548
|
-
.myio-cgc__delta-value{display:block;font:800 11.5px 'Nunito',sans-serif;}
|
|
112643
|
+
.myio-cgc__delta-label{display:block;font:600 9px 'Nunito', system-ui, sans-serif;color:var(--cgc-muted);line-height:1.4;margin-bottom:2px;}
|
|
112644
|
+
.myio-cgc__delta-value{display:block;font:800 11.5px 'Nunito', system-ui, sans-serif;}
|
|
112549
112645
|
/* Coluna A-1: dois chips pequenos empilhados (Or\xE7ado vs A-1, Meta vs A-1). */
|
|
112550
112646
|
.myio-cgc__delta-dual{display:flex;flex-direction:column;gap:2px;align-items:center;}
|
|
112551
112647
|
.myio-cgc__delta-mini{display:inline-flex;align-items:center;gap:3px;line-height:1.2;}
|
|
112552
|
-
.myio-cgc__delta-mini-label{font:700 8px 'Nunito',sans-serif;color:var(--cgc-muted);}
|
|
112648
|
+
.myio-cgc__delta-mini-label{font:700 8px 'Nunito', system-ui, sans-serif;color:var(--cgc-muted);}
|
|
112553
112649
|
.myio-cgc__delta-mini .myio-cgc__delta-value{display:inline;font-size:9.5px;}
|
|
112554
112650
|
.myio-cgc__delta-value--good{color:var(--cgc-good);}
|
|
112555
112651
|
.myio-cgc__delta-value--bad{color:var(--cgc-bad);}
|
|
112556
112652
|
.myio-cgc__delta-value--neutral{color:var(--cgc-muted);}
|
|
112653
|
+
/* Linhas "vs <ref>" (col2/3/4): "vs" na cor da coluna, ref na sua cor, + chip.
|
|
112654
|
+
col1 mostra "<ref> SEM DADOS". */
|
|
112655
|
+
.myio-cgc__delta-lines{display:flex;flex-direction:column;gap:2px;align-items:center;}
|
|
112656
|
+
.myio-cgc__vsline{display:inline-flex;align-items:center;gap:3px;line-height:1.25;font:800 8.5px 'Nunito',sans-serif;white-space:nowrap;}
|
|
112657
|
+
.myio-cgc__vs,.myio-cgc__vsref{font-weight:800;}
|
|
112658
|
+
.myio-cgc__vsline .myio-cgc__delta-value{font-size:9.5px;}
|
|
112659
|
+
.myio-cgc__nodata{color:var(--cgc-muted);font-weight:600;font-size:8px;letter-spacing:.3px;}
|
|
112557
112660
|
`;
|
|
112558
112661
|
function injectCustomerGoalsCardStyles() {
|
|
112559
112662
|
if (typeof document === "undefined") return;
|
|
@@ -112809,49 +112912,49 @@ var CustomerGoalsCard = class {
|
|
|
112809
112912
|
const hasBudget = !!s.budget || !!(s.budgetBreakdown && s.budgetBreakdown.length);
|
|
112810
112913
|
const hasOrcado = this.hasRawOrcado();
|
|
112811
112914
|
const t = totals;
|
|
112812
|
-
const yl = this.params.yearLabels;
|
|
112813
|
-
const curLbl = yl?.current || "Atual";
|
|
112814
|
-
const prevLbl = yl?.previous || "A-1";
|
|
112815
112915
|
const orcadoVal = hasOrcado ? t.orcado : hasBudget ? t.budget : null;
|
|
112816
112916
|
const hasMetaCol = hasOrcado && hasBudget;
|
|
112817
112917
|
const valueCell = (cls, label, total, val) => `<div class="myio-cgc__total"><span class="myio-cgc__total-label myio-cgc__total-label--${cls}">${label}</span><span class="myio-cgc__total-value" data-total="${total}">${this.fmtQty(val)}</span></div>`;
|
|
112818
|
-
const
|
|
112819
|
-
const
|
|
112918
|
+
const vsLine = (vsVar, refLabel, refVar, badge) => `<span class="myio-cgc__vsline"><span class="myio-cgc__vs" style="color:var(${vsVar})">vs</span> <span class="myio-cgc__vsref" style="color:var(${refVar})">${refLabel}</span>${badge}</span>`;
|
|
112919
|
+
const noDataLine = (refVar, refLabel) => `<span class="myio-cgc__vsline"><span class="myio-cgc__vsref" style="color:var(${refVar})">${refLabel}</span> <span class="myio-cgc__nodata">SEM DADOS</span></span>`;
|
|
112920
|
+
const deltaLines = (lines) => `<div class="myio-cgc__delta"><div class="myio-cgc__delta-lines">${lines.join("")}</div></div>`;
|
|
112820
112921
|
const valueCells = [];
|
|
112821
112922
|
const deltaCells = [];
|
|
112822
112923
|
let anyDelta = false;
|
|
112823
112924
|
if (hasPrev) {
|
|
112824
112925
|
valueCells.push(valueCell("prev", "A-1", "prev", t.previousYear));
|
|
112825
|
-
const
|
|
112826
|
-
if (hasOrcado)
|
|
112827
|
-
if (hasMetaCol)
|
|
112828
|
-
if (
|
|
112829
|
-
|
|
112830
|
-
anyDelta = true;
|
|
112831
|
-
const header = grow.length > 1 ? "vs Orçado & vs Meta" : "vs Orçado";
|
|
112832
|
-
deltaCells.push(deltaCell(header, `<div class="myio-cgc__delta-dual">${grow.join("")}</div>`));
|
|
112833
|
-
} else {
|
|
112834
|
-
deltaCells.push(deltaCell("", ""));
|
|
112835
|
-
}
|
|
112926
|
+
const lines = [];
|
|
112927
|
+
if (hasOrcado || hasBudget) lines.push(noDataLine("--cgc-orcado", "Orç."));
|
|
112928
|
+
if (hasMetaCol) lines.push(noDataLine("--cgc-budget", "Meta"));
|
|
112929
|
+
if (lines.length) anyDelta = true;
|
|
112930
|
+
deltaCells.push(deltaLines(lines));
|
|
112836
112931
|
}
|
|
112837
112932
|
valueCells.push(valueCell("realized", "Realizado", "realized", t.realized));
|
|
112838
112933
|
if (hasPrev) {
|
|
112839
112934
|
anyDelta = true;
|
|
112840
112935
|
deltaCells.push(
|
|
112841
|
-
|
|
112936
|
+
deltaLines([vsLine("--cgc-realized", "A-1", "--cgc-prev", this.growthBadge(t.realized, t.previousYear))])
|
|
112842
112937
|
);
|
|
112843
112938
|
} else {
|
|
112844
|
-
deltaCells.push(
|
|
112939
|
+
deltaCells.push(deltaLines([]));
|
|
112845
112940
|
}
|
|
112846
112941
|
if (hasOrcado || hasBudget) {
|
|
112847
112942
|
anyDelta = true;
|
|
112848
112943
|
valueCells.push(valueCell("orcado", "Orçado", hasOrcado ? "orcado" : "budget", orcadoVal));
|
|
112849
|
-
|
|
112944
|
+
const lines = [
|
|
112945
|
+
vsLine("--cgc-orcado", "Realizado", "--cgc-realized", this.deltaBadge(t.realized, orcadoVal))
|
|
112946
|
+
];
|
|
112947
|
+
if (hasPrev) lines.push(vsLine("--cgc-orcado", "A-1", "--cgc-prev", this.growthBadge(orcadoVal, t.previousYear)));
|
|
112948
|
+
deltaCells.push(deltaLines(lines));
|
|
112850
112949
|
}
|
|
112851
112950
|
if (hasMetaCol) {
|
|
112852
112951
|
anyDelta = true;
|
|
112853
112952
|
valueCells.push(valueCell("budget", "Meta", "budget", t.budget));
|
|
112854
|
-
|
|
112953
|
+
const lines = [
|
|
112954
|
+
vsLine("--cgc-budget", "Realizado", "--cgc-realized", this.deltaBadge(t.realized, t.budget))
|
|
112955
|
+
];
|
|
112956
|
+
if (hasPrev) lines.push(vsLine("--cgc-budget", "A-1", "--cgc-prev", this.growthBadge(t.budget, t.previousYear)));
|
|
112957
|
+
deltaCells.push(deltaLines(lines));
|
|
112855
112958
|
}
|
|
112856
112959
|
const nCols = valueCells.length;
|
|
112857
112960
|
const gridStyle = `grid-template-columns:repeat(${nCols},1fr);`;
|
|
@@ -113196,7 +113299,7 @@ var EnergyPanelController = class {
|
|
|
113196
113299
|
// src/components/energy-panel/styles.ts
|
|
113197
113300
|
var ENERGY_PANEL_STYLES = `
|
|
113198
113301
|
.energy-panel-wrap {
|
|
113199
|
-
font-family: '
|
|
113302
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
113200
113303
|
color: #1e293b;
|
|
113201
113304
|
background-color: #f8fafc;
|
|
113202
113305
|
padding: 16px;
|
|
@@ -114166,7 +114269,7 @@ var WaterPanelController = class {
|
|
|
114166
114269
|
// src/components/water-panel/styles.ts
|
|
114167
114270
|
var WATER_PANEL_STYLES = `
|
|
114168
114271
|
.water-panel-wrap {
|
|
114169
|
-
font-family: '
|
|
114272
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
114170
114273
|
color: #1e293b;
|
|
114171
114274
|
background-color: #f8fafc;
|
|
114172
114275
|
padding: 16px;
|
|
@@ -115348,7 +115451,7 @@ var HEADER_SHOPPING_STYLES = `
|
|
|
115348
115451
|
|
|
115349
115452
|
/* ===== Base ===== */
|
|
115350
115453
|
.tbx-toolbar {
|
|
115351
|
-
font-family: 'Nunito',
|
|
115454
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
115352
115455
|
color: var(--tbx-text);
|
|
115353
115456
|
background: var(--tbx-bg);
|
|
115354
115457
|
width: 100%;
|
|
@@ -116743,7 +116846,7 @@ var MENU_SHOPPING_STYLES = `
|
|
|
116743
116846
|
height: 100%;
|
|
116744
116847
|
padding: 16px 0;
|
|
116745
116848
|
box-sizing: border-box;
|
|
116746
|
-
font-family: 'Nunito',
|
|
116849
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
116747
116850
|
position: relative;
|
|
116748
116851
|
background: var(--bg);
|
|
116749
116852
|
color: var(--text);
|
|
@@ -118024,8 +118127,7 @@ var TELEMETRY_GRID_SHOPPING_STYLES = `
|
|
|
118024
118127
|
--brand: #5B2EBC;
|
|
118025
118128
|
--brand-ghost: rgba(91, 46, 188, 0.08);
|
|
118026
118129
|
--bg-soft: #f7fbff;
|
|
118027
|
-
--font-ui: 'Nunito',
|
|
118028
|
-
Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
118130
|
+
--font-ui: 'Nunito', system-ui, sans-serif;
|
|
118029
118131
|
}
|
|
118030
118132
|
|
|
118031
118133
|
/* Light mode explicit */
|
|
@@ -118379,8 +118481,7 @@ var TELEMETRY_GRID_SHOPPING_STYLES = `
|
|
|
118379
118481
|
--brand: #5B2EBC;
|
|
118380
118482
|
--brand-ghost: rgba(91, 46, 188, 0.08);
|
|
118381
118483
|
--bg-soft: #f7fbff;
|
|
118382
|
-
--font-ui: 'Nunito',
|
|
118383
|
-
Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
118484
|
+
--font-ui: 'Nunito', system-ui, sans-serif;
|
|
118384
118485
|
|
|
118385
118486
|
position: fixed;
|
|
118386
118487
|
inset: 0;
|
|
@@ -120063,7 +120164,7 @@ var TELEMETRY_INFO_SHOPPING_STYLES = `
|
|
|
120063
120164
|
padding: 12px !important;
|
|
120064
120165
|
background: var(--tis-bg) !important;
|
|
120065
120166
|
color: var(--tis-text) !important;
|
|
120066
|
-
font-family: 'Nunito',
|
|
120167
|
+
font-family: 'Nunito', system-ui, sans-serif !important;
|
|
120067
120168
|
box-sizing: border-box !important;
|
|
120068
120169
|
border-radius: 12px !important;
|
|
120069
120170
|
overflow: auto !important;
|
|
@@ -122058,7 +122159,7 @@ var OPERATIONAL_GENERAL_LIST_STYLES = `
|
|
|
122058
122159
|
display: flex;
|
|
122059
122160
|
flex-direction: column;
|
|
122060
122161
|
background: transparent;
|
|
122061
|
-
font-family:
|
|
122162
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
122062
122163
|
}
|
|
122063
122164
|
|
|
122064
122165
|
/* ====== LIGHT/DARK THEME MODE ====== */
|
|
@@ -124493,7 +124594,7 @@ var DEVICE_OPERATIONAL_CARD_STYLES = `
|
|
|
124493
124594
|
--myio-chip-not-installed-bg: #e9d5ff;
|
|
124494
124595
|
--myio-chip-not-installed-fg: #7c3aed;
|
|
124495
124596
|
|
|
124496
|
-
font-family: '
|
|
124597
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
124497
124598
|
background: var(--alarms-bg-primary);
|
|
124498
124599
|
color: var(--alarms-text-primary);
|
|
124499
124600
|
height: 100%;
|
|
@@ -126145,7 +126246,7 @@ var DEVICE_OPERATIONAL_CARD_GRID_STYLES = `
|
|
|
126145
126246
|
--grid-accent: #8b5cf6;
|
|
126146
126247
|
--grid-accent-light: rgba(139, 92, 246, 0.1);
|
|
126147
126248
|
|
|
126148
|
-
font-family: '
|
|
126249
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
126149
126250
|
background: var(--grid-bg-primary);
|
|
126150
126251
|
color: var(--grid-text-primary);
|
|
126151
126252
|
height: 100%;
|
|
@@ -130975,7 +131076,7 @@ var OPERATIONAL_DASHBOARD_STYLES = `
|
|
|
130975
131076
|
width: 100%;
|
|
130976
131077
|
background: transparent;
|
|
130977
131078
|
color: var(--ink-1, #f1f5f9);
|
|
130978
|
-
font-family:
|
|
131079
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
130979
131080
|
overflow: auto;
|
|
130980
131081
|
padding: 0;
|
|
130981
131082
|
box-sizing: border-box;
|
|
@@ -134528,7 +134629,7 @@ var BAS_DASHBOARD_STYLES = `
|
|
|
134528
134629
|
flex-direction: column;
|
|
134529
134630
|
width: 100%;
|
|
134530
134631
|
height: 100%;
|
|
134531
|
-
font-family: '
|
|
134632
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
134532
134633
|
overflow: hidden;
|
|
134533
134634
|
background: var(--bas-bg-main);
|
|
134534
134635
|
color: var(--bas-text-primary);
|
|
@@ -135316,7 +135417,7 @@ function injectFancoilRemoteStyles() {
|
|
|
135316
135417
|
background: #BBB8A6;
|
|
135317
135418
|
border-radius: 18px;
|
|
135318
135419
|
padding: 12px;
|
|
135319
|
-
font-family: '
|
|
135420
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
135320
135421
|
color: #18446C;
|
|
135321
135422
|
display: flex;
|
|
135322
135423
|
flex-direction: column;
|
|
@@ -135606,7 +135707,7 @@ function injectFancoilRemoteStyles() {
|
|
|
135606
135707
|
text-align: center;
|
|
135607
135708
|
max-width: 360px;
|
|
135608
135709
|
width: 90%;
|
|
135609
|
-
font-family: '
|
|
135710
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
135610
135711
|
color: #222;
|
|
135611
135712
|
}
|
|
135612
135713
|
|
|
@@ -136136,7 +136237,7 @@ function injectSolenoidControlStyles() {
|
|
|
136136
136237
|
justify-content: center;
|
|
136137
136238
|
gap: 5%;
|
|
136138
136239
|
margin: 0;
|
|
136139
|
-
font-family: '
|
|
136240
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
136140
136241
|
color: #18446C;
|
|
136141
136242
|
box-sizing: border-box;
|
|
136142
136243
|
overflow: hidden;
|
|
@@ -136257,7 +136358,7 @@ function injectSolenoidControlStyles() {
|
|
|
136257
136358
|
text-align: center;
|
|
136258
136359
|
max-width: 90%;
|
|
136259
136360
|
width: 300px;
|
|
136260
|
-
font-family: '
|
|
136361
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
136261
136362
|
z-index: 2147483647;
|
|
136262
136363
|
color: #222;
|
|
136263
136364
|
}
|
|
@@ -136650,7 +136751,7 @@ function injectSwitchControlStyles() {
|
|
|
136650
136751
|
border-radius: 12px;
|
|
136651
136752
|
background: #ffffff;
|
|
136652
136753
|
border: 1px solid #e0e0e0;
|
|
136653
|
-
font-family:
|
|
136754
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
136654
136755
|
transition: all 0.2s ease;
|
|
136655
136756
|
cursor: pointer;
|
|
136656
136757
|
user-select: none;
|
|
@@ -137213,7 +137314,7 @@ function injectActionButtonStyles() {
|
|
|
137213
137314
|
gap: 8px;
|
|
137214
137315
|
border: none;
|
|
137215
137316
|
cursor: pointer;
|
|
137216
|
-
font-family: '
|
|
137317
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
137217
137318
|
font-weight: 600;
|
|
137218
137319
|
white-space: nowrap;
|
|
137219
137320
|
transition: all 0.2s ease;
|
|
@@ -137539,7 +137640,7 @@ var SCHEDULING_SHARED_STYLES = `
|
|
|
137539
137640
|
display: flex;
|
|
137540
137641
|
flex-direction: column;
|
|
137541
137642
|
overflow-y: auto;
|
|
137542
|
-
font-family:
|
|
137643
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
137543
137644
|
color: #e0e0e0;
|
|
137544
137645
|
box-sizing: border-box;
|
|
137545
137646
|
}
|
|
@@ -138061,7 +138162,7 @@ var SCHEDULING_SHARED_STYLES = `
|
|
|
138061
138162
|
text-align: center;
|
|
138062
138163
|
max-width: 360px;
|
|
138063
138164
|
width: 100%;
|
|
138064
|
-
font-family: sans-serif;
|
|
138165
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
138065
138166
|
color: #222 !important;
|
|
138066
138167
|
}
|
|
138067
138168
|
|
|
@@ -139719,7 +139820,7 @@ var STYLES = `
|
|
|
139719
139820
|
--dgv6-card: #0f1d30;
|
|
139720
139821
|
--dgv6-bg: rgba(11, 18, 32, 0.65);
|
|
139721
139822
|
--dgv6-accent: #38bdf8;
|
|
139722
|
-
--dgv6-font:
|
|
139823
|
+
--dgv6-font: 'Nunito', system-ui, sans-serif;
|
|
139723
139824
|
|
|
139724
139825
|
display: flex;
|
|
139725
139826
|
flex-direction: column;
|
|
@@ -140434,7 +140535,7 @@ function injectOnOffDeviceModalStyles() {
|
|
|
140434
140535
|
flex-direction: row;
|
|
140435
140536
|
width: 100%;
|
|
140436
140537
|
max-width: 100%;
|
|
140437
|
-
font-family: '
|
|
140538
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
140438
140539
|
box-sizing: border-box;
|
|
140439
140540
|
overflow: hidden;
|
|
140440
140541
|
}
|
|
@@ -141333,7 +141434,7 @@ function injectOnOffTimelineStyles() {
|
|
|
141333
141434
|
|
|
141334
141435
|
.${ONOFF_TIMELINE_CSS_PREFIX} {
|
|
141335
141436
|
width: 100%;
|
|
141336
|
-
font-family: '
|
|
141437
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
141337
141438
|
box-sizing: border-box;
|
|
141338
141439
|
}
|
|
141339
141440
|
|
|
@@ -142336,7 +142437,7 @@ function exportTimelineToPDF(data, labels = {}, locale = "pt-BR", opts = {}) {
|
|
|
142336
142437
|
<style>
|
|
142337
142438
|
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');
|
|
142338
142439
|
* { box-sizing: border-box; }
|
|
142339
|
-
body { font-family: 'Nunito',
|
|
142440
|
+
body { font-family: 'Nunito', system-ui, sans-serif; margin: 0; padding: 32px 40px; color: #1f2937; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
|
|
142340
142441
|
|
|
142341
142442
|
.report-header { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); color: #fff; border-radius: 14px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
|
|
142342
142443
|
.report-header .brand { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
|
|
@@ -142469,7 +142570,7 @@ function exportSchedulesToPDF(schedules, deviceName, locale = "pt-BR") {
|
|
|
142469
142570
|
<meta charset="UTF-8">
|
|
142470
142571
|
<title>Agendamentos - ${deviceName}</title>
|
|
142471
142572
|
<style>
|
|
142472
|
-
body { font-family: '
|
|
142573
|
+
body { font-family: 'Nunito', system-ui, sans-serif; margin: 40px; color: #1f2937; }
|
|
142473
142574
|
h1 { color: #3b82f6; font-size: 24px; margin-bottom: 8px; }
|
|
142474
142575
|
.subtitle { color: #6b7280; font-size: 14px; margin-bottom: 24px; }
|
|
142475
142576
|
.schedule-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; margin-bottom: 12px; }
|
|
@@ -143220,7 +143321,7 @@ var OnOffDeviceModalView = class {
|
|
|
143220
143321
|
position: relative; background: #1f2937; color: #f9fafb;
|
|
143221
143322
|
border-radius: 12px; padding: 24px 28px; min-width: 280px; max-width: 380px;
|
|
143222
143323
|
box-shadow: 0 20px 60px rgba(0,0,0,0.5); text-align: center;
|
|
143223
|
-
font-family: sans-serif;
|
|
143324
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
143224
143325
|
`;
|
|
143225
143326
|
const msg = document.createElement("p");
|
|
143226
143327
|
msg.style.cssText = "margin: 0 0 20px; font-size: 15px; line-height: 1.5;";
|
|
@@ -143664,7 +143765,7 @@ var OnOffDeviceModalController = class {
|
|
|
143664
143765
|
display: flex;
|
|
143665
143766
|
flex-direction: column;
|
|
143666
143767
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
143667
|
-
font-family: '
|
|
143768
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
143668
143769
|
}
|
|
143669
143770
|
|
|
143670
143771
|
.${ON_OFF_MODAL_CSS_PREFIX}-content.maximized {
|
|
@@ -144016,7 +144117,7 @@ function injectAmbienteModalStyles() {
|
|
|
144016
144117
|
align-items: center;
|
|
144017
144118
|
justify-content: center;
|
|
144018
144119
|
z-index: 10000;
|
|
144019
|
-
font-family:
|
|
144120
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
144020
144121
|
opacity: 0;
|
|
144021
144122
|
visibility: hidden;
|
|
144022
144123
|
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
@@ -144974,7 +145075,7 @@ function injectAmbienteGroupModalStyles() {
|
|
|
144974
145075
|
align-items: center;
|
|
144975
145076
|
justify-content: center;
|
|
144976
145077
|
z-index: 10000;
|
|
144977
|
-
font-family:
|
|
145078
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
144978
145079
|
opacity: 0;
|
|
144979
145080
|
visibility: hidden;
|
|
144980
145081
|
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
@@ -145881,7 +145982,7 @@ function injectSidebarMenuStyles() {
|
|
|
145881
145982
|
background: #ffffff;
|
|
145882
145983
|
border-right: 1px solid #e5e7eb;
|
|
145883
145984
|
border-radius: 0 16px 16px 0;
|
|
145884
|
-
font-family:
|
|
145985
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
145885
145986
|
transition: width var(--sidebar-transition);
|
|
145886
145987
|
overflow: hidden;
|
|
145887
145988
|
z-index: 100;
|
|
@@ -148151,7 +148252,7 @@ var STYLES2 = `
|
|
|
148151
148252
|
display: flex;
|
|
148152
148253
|
align-items: center;
|
|
148153
148254
|
justify-content: center;
|
|
148154
|
-
font-family: '
|
|
148255
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
148155
148256
|
}
|
|
148156
148257
|
#${MODAL_ID4} .gcdr-card {
|
|
148157
148258
|
background: #fff;
|
|
@@ -148789,7 +148890,7 @@ var STYLES3 = `
|
|
|
148789
148890
|
display: flex;
|
|
148790
148891
|
align-items: center;
|
|
148791
148892
|
justify-content: center;
|
|
148792
|
-
font-family: '
|
|
148893
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
148793
148894
|
}
|
|
148794
148895
|
#${MODAL_ID5} .abm-card {
|
|
148795
148896
|
background: #fff;
|
|
@@ -149070,7 +149171,7 @@ var STYLES3 = `
|
|
|
149070
149171
|
position: fixed; inset: 0;
|
|
149071
149172
|
background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
|
|
149072
149173
|
z-index: 99999; display: flex; align-items: center; justify-content: center;
|
|
149073
|
-
font-family: '
|
|
149174
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
149074
149175
|
}
|
|
149075
149176
|
.abm-confirm-modal {
|
|
149076
149177
|
background: #fff; border-radius: 10px; width: min(420px, 94vw);
|
|
@@ -150534,7 +150635,7 @@ var DEFAULT_INGESTION_API = "https://management.myio-bas.com";
|
|
|
150534
150635
|
var DEFAULT_INGESTION_AUTH = "https://api.myio-bas.com/auth/token";
|
|
150535
150636
|
var DEFAULT_PROVISIONING_API = "https://provisioning.apps.myio-bas.com";
|
|
150536
150637
|
var S = {
|
|
150537
|
-
root: "font-family:system-ui,sans-serif;font-size:14px;color:#111;background:#fff;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;",
|
|
150638
|
+
root: "font-family:Nunito, system-ui, sans-serif;font-size:14px;color:#111;background:#fff;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;",
|
|
150538
150639
|
header: "padding:12px 16px;background:#f5f6fa;border-bottom:1px solid #e0e0e0;display:flex;align-items:center;gap:12px;",
|
|
150539
150640
|
badge: (bg, fg) => `font-size:12px;padding:2px 8px;border-radius:9999px;background:${bg};color:${fg};`,
|
|
150540
150641
|
tableWrap: "overflow-x:auto;border-bottom:1px solid #e0e0e0;",
|
|
@@ -152198,7 +152299,7 @@ var TicketDetailModal = class {
|
|
|
152198
152299
|
width: 100%; max-width: 580px;
|
|
152199
152300
|
max-height: 86vh; min-height: 0;
|
|
152200
152301
|
display: flex; flex-direction: column;
|
|
152201
|
-
font-family:
|
|
152302
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
152202
152303
|
font-size: 13px; color: #1a1a2e;
|
|
152203
152304
|
animation: tdm-slide-up 0.2s ease;
|
|
152204
152305
|
}
|
|
@@ -152950,7 +153051,7 @@ var HEADER_ANNOTATIONS_STYLES = `
|
|
|
152950
153051
|
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
|
|
152951
153052
|
display: flex;
|
|
152952
153053
|
flex-direction: column;
|
|
152953
|
-
font-family: 'Nunito', -
|
|
153054
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
152954
153055
|
color: #1e293b;
|
|
152955
153056
|
overflow: hidden;
|
|
152956
153057
|
animation: myio-anno-pop 0.16s ease-out;
|
|
@@ -153835,7 +153936,7 @@ var STYLES4 = `
|
|
|
153835
153936
|
border-radius: 12px;
|
|
153836
153937
|
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
|
|
153837
153938
|
padding: 18px 20px;
|
|
153838
|
-
font-family: 'Nunito', -
|
|
153939
|
+
font-family: 'Nunito', system-ui, sans-serif;
|
|
153839
153940
|
color: #1e293b;
|
|
153840
153941
|
}
|
|
153841
153942
|
.${MODAL_DOM_ID} .${MODAL_DOM_ID}__title {
|