nemesischart 2.0.4 → 2.0.6
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/README.md +33 -13
- package/dist/nemesischart.js +956 -906
- package/dist/nemesischart.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/nemesischart.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { Chart as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
for (const [
|
|
6
|
-
|
|
7
|
-
return
|
|
8
|
-
},
|
|
1
|
+
import { ref as et, shallowRef as zt, onMounted as Mt, onBeforeUnmount as jt, watch as At, openBlock as s, createElementBlock as i, normalizeStyle as b, createElementVNode as $, computed as F, unref as r, normalizeClass as nt, renderSlot as q, createTextVNode as O, toDisplayString as k, createCommentVNode as p, createVNode as ut, Fragment as mt, renderList as yt } from "vue";
|
|
2
|
+
import { Chart as Bt, Title as Ht, Tooltip as Vt, Legend as Nt, Filler as Pt, LineController as Dt, LineElement as It, PointElement as Wt, BarController as Ot, BarElement as Xt, PieController as Yt, PolarAreaController as Jt, ArcElement as Qt, CategoryScale as Ut, LinearScale as Gt, RadialLinearScale as Zt } from "chart.js";
|
|
3
|
+
const ot = (t, g) => {
|
|
4
|
+
const e = t.__vccOpts || t;
|
|
5
|
+
for (const [c, o] of g)
|
|
6
|
+
e[c] = o;
|
|
7
|
+
return e;
|
|
8
|
+
}, Kt = {
|
|
9
9
|
__name: "ChartBase",
|
|
10
10
|
props: {
|
|
11
11
|
type: { type: String, required: !0 },
|
|
@@ -15,123 +15,144 @@ const et = (t, x) => {
|
|
|
15
15
|
height: { type: [String, Number], default: 300 },
|
|
16
16
|
width: { type: [String, Number], default: null }
|
|
17
17
|
},
|
|
18
|
-
setup(t, { expose:
|
|
19
|
-
|
|
20
|
-
Tt,
|
|
21
|
-
qt,
|
|
22
|
-
zt,
|
|
23
|
-
Lt,
|
|
24
|
-
jt,
|
|
25
|
-
Vt,
|
|
18
|
+
setup(t, { expose: g }) {
|
|
19
|
+
Bt.register(
|
|
26
20
|
Ht,
|
|
21
|
+
Vt,
|
|
27
22
|
Nt,
|
|
28
|
-
Dt,
|
|
29
|
-
Mt,
|
|
30
23
|
Pt,
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
Dt,
|
|
25
|
+
It,
|
|
33
26
|
Wt,
|
|
34
|
-
|
|
27
|
+
Ot,
|
|
28
|
+
Xt,
|
|
29
|
+
Yt,
|
|
30
|
+
Jt,
|
|
31
|
+
Qt,
|
|
32
|
+
Ut,
|
|
33
|
+
Gt,
|
|
34
|
+
Zt
|
|
35
35
|
);
|
|
36
|
-
const
|
|
36
|
+
const e = t, c = et(null), o = zt(null), S = {
|
|
37
37
|
responsive: !0,
|
|
38
38
|
maintainAspectRatio: !1,
|
|
39
39
|
plugins: {
|
|
40
40
|
legend: { position: "top" }
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
function
|
|
44
|
-
return { ...
|
|
43
|
+
function v() {
|
|
44
|
+
return { ...S, ...e.options };
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
type:
|
|
49
|
-
data:
|
|
50
|
-
options:
|
|
51
|
-
plugins:
|
|
46
|
+
function B() {
|
|
47
|
+
c.value && (o.value = new Bt(c.value, {
|
|
48
|
+
type: e.type,
|
|
49
|
+
data: e.data,
|
|
50
|
+
options: v(),
|
|
51
|
+
plugins: e.plugins
|
|
52
52
|
}));
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
54
|
+
function D() {
|
|
55
|
+
o.value && (o.value.destroy(), o.value = null);
|
|
56
56
|
}
|
|
57
|
-
return
|
|
58
|
-
() =>
|
|
59
|
-
(
|
|
60
|
-
if (!
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
|
|
57
|
+
return Mt(B), jt(D), At(
|
|
58
|
+
() => e.data,
|
|
59
|
+
(w) => {
|
|
60
|
+
if (!o.value) return;
|
|
61
|
+
o.value.data.labels = w.labels;
|
|
62
|
+
const T = o.value.data.datasets, R = w.datasets;
|
|
63
|
+
T.length !== R.length ? o.value.data.datasets = R : R.forEach((X, J) => Object.assign(T[J], X)), o.value.update();
|
|
64
64
|
},
|
|
65
65
|
{ deep: !0 }
|
|
66
|
-
),
|
|
67
|
-
() =>
|
|
66
|
+
), At(
|
|
67
|
+
() => e.options,
|
|
68
68
|
() => {
|
|
69
|
-
|
|
69
|
+
o.value && (o.value.options = v(), o.value.update());
|
|
70
70
|
},
|
|
71
71
|
{ deep: !0 }
|
|
72
|
-
),
|
|
72
|
+
), g({ chart: o }), (w, T) => (s(), i("div", {
|
|
73
73
|
class: "nc-chart-wrapper w-full",
|
|
74
|
-
style:
|
|
74
|
+
style: b({
|
|
75
75
|
height: typeof t.height == "number" ? `${t.height}px` : t.height,
|
|
76
76
|
width: t.width ? typeof t.width == "number" ? `${t.width}px` : t.width : "100%"
|
|
77
77
|
})
|
|
78
78
|
}, [
|
|
79
|
-
|
|
79
|
+
$("canvas", {
|
|
80
80
|
ref_key: "canvasRef",
|
|
81
|
-
ref:
|
|
81
|
+
ref: c
|
|
82
82
|
}, null, 512)
|
|
83
83
|
], 4));
|
|
84
84
|
}
|
|
85
|
-
}, lt = /* @__PURE__ */
|
|
85
|
+
}, lt = /* @__PURE__ */ ot(Kt, [["__scopeId", "data-v-9828990e"]]);
|
|
86
|
+
function _t(t) {
|
|
87
|
+
const g = t.replace("#", ""), e = g.length === 3 ? g.split("").map((X) => X + X).join("") : g, c = parseInt(e.slice(0, 2), 16) / 255, o = parseInt(e.slice(2, 4), 16) / 255, S = parseInt(e.slice(4, 6), 16) / 255, v = Math.max(c, o, S), B = Math.min(c, o, S), D = (v + B) / 2;
|
|
88
|
+
if (v === B) return [0, 0, D * 100];
|
|
89
|
+
const w = v - B, T = D > 0.5 ? w / (2 - v - B) : w / (v + B);
|
|
90
|
+
let R;
|
|
91
|
+
return v === c ? R = ((o - S) / w + (o < S ? 6 : 0)) / 6 : v === o ? R = ((S - c) / w + 2) / 6 : R = ((c - o) / w + 4) / 6, [R * 360, T * 100, D * 100];
|
|
92
|
+
}
|
|
93
|
+
function te(t, g, e) {
|
|
94
|
+
t /= 360, g /= 100, e /= 100;
|
|
95
|
+
const c = e < 0.5 ? e * (1 + g) : e + g - e * g, o = 2 * e - c, S = (w) => (w < 0 && (w += 1), w > 1 && (w -= 1), w < 1 / 6 ? o + (c - o) * 6 * w : w < 1 / 2 ? c : w < 2 / 3 ? o + (c - o) * (2 / 3 - w) * 6 : o), v = g === 0 ? e : S(t + 1 / 3), B = g === 0 ? e : S(t), D = g === 0 ? e : S(t - 1 / 3);
|
|
96
|
+
return "#" + [v, B, D].map((w) => Math.round(w * 255).toString(16).padStart(2, "0")).join("");
|
|
97
|
+
}
|
|
98
|
+
function ht(t, g = 7) {
|
|
99
|
+
if (!(t != null && t.startsWith("#"))) return Array.from({ length: g }, () => t ?? "#3B82F6");
|
|
100
|
+
const [e, c] = _t(t), o = 20, S = 72;
|
|
101
|
+
return Array.from({ length: g }, (v, B) => {
|
|
102
|
+
const D = g === 1 ? 0.5 : B / (g - 1), w = o + D * (S - o), T = Math.max(50, c - Math.max(0, w - 55) * 0.6);
|
|
103
|
+
return te(e, T, w);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
const ee = {
|
|
86
107
|
light: { bg: "#ffffff", text: "#000000", muted: "#64748B", grid: "rgba(15,23,42,0.06)" },
|
|
87
|
-
dark: { bg: "#000000", text: "#ffffff", muted: "#
|
|
88
|
-
transparent: { bg: "transparent", text: "inherit", muted: "#
|
|
108
|
+
dark: { bg: "#000000", text: "#ffffff", muted: "#7b7b7b", grid: "rgba(255,255,255,0.08)" },
|
|
109
|
+
transparent: { bg: "transparent", text: "inherit", muted: "#7b7b7b", grid: "rgba(127,127,127,0.15)" }
|
|
89
110
|
};
|
|
90
|
-
function
|
|
91
|
-
if (!t) return `rgba(59,130,246,${
|
|
111
|
+
function P(t, g) {
|
|
112
|
+
if (!t) return `rgba(59,130,246,${g})`;
|
|
92
113
|
if (t.startsWith("#")) {
|
|
93
|
-
const
|
|
94
|
-
return `rgba(${
|
|
114
|
+
const e = t.replace("#", ""), c = e.length === 3 ? e.split("").map((B) => B + B).join("") : e, o = parseInt(c.slice(0, 2), 16), S = parseInt(c.slice(2, 4), 16), v = parseInt(c.slice(4, 6), 16);
|
|
115
|
+
return `rgba(${o},${S},${v},${g})`;
|
|
95
116
|
}
|
|
96
117
|
if (t.startsWith("rgb")) {
|
|
97
|
-
const
|
|
98
|
-
if (
|
|
118
|
+
const e = t.match(/[\d.]+/g);
|
|
119
|
+
if (e && e.length >= 3) return `rgba(${e[0]},${e[1]},${e[2]},${g})`;
|
|
99
120
|
}
|
|
100
121
|
return t;
|
|
101
122
|
}
|
|
102
|
-
function
|
|
103
|
-
const
|
|
104
|
-
const
|
|
123
|
+
function st(t) {
|
|
124
|
+
const g = F(() => {
|
|
125
|
+
const c = ee[t.tema], o = c ? { ...c, bg: t.corFundo || c.bg } : { bg: t.corFundo || t.tema, text: "#F8FAFC", muted: "#7b7b7b", grid: "rgba(255,255,255,0.08)" };
|
|
105
126
|
return {
|
|
106
|
-
...
|
|
107
|
-
text: t.corTexto ||
|
|
108
|
-
muted: t.corTexto ||
|
|
127
|
+
...o,
|
|
128
|
+
text: t.corTexto || o.text,
|
|
129
|
+
muted: t.corTexto || o.muted
|
|
109
130
|
};
|
|
110
|
-
}),
|
|
111
|
-
background:
|
|
112
|
-
color:
|
|
131
|
+
}), e = F(() => ({
|
|
132
|
+
background: g.value.bg,
|
|
133
|
+
color: g.value.text,
|
|
113
134
|
borderRadius: typeof t.borderRadius == "number" ? `${t.borderRadius}px` : t.borderRadius,
|
|
114
135
|
boxShadow: t.sombra,
|
|
115
136
|
border: t.corBorda ? `1px solid ${t.corBorda}` : "none"
|
|
116
137
|
}));
|
|
117
|
-
return { palette:
|
|
138
|
+
return { palette: g, cardStyle: e, toRgba: P };
|
|
118
139
|
}
|
|
119
|
-
function
|
|
120
|
-
const
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
123
|
-
const
|
|
124
|
-
return Number.isNaN(
|
|
140
|
+
function ft(t) {
|
|
141
|
+
const g = F(() => t.tipoValor === "moeda" ? new Intl.NumberFormat(t.locale, { style: "currency", currency: t.moeda }) : t.tipoValor === "percentual" ? new Intl.NumberFormat(t.locale, { style: "percent", maximumFractionDigits: 2 }) : new Intl.NumberFormat(t.locale, { maximumFractionDigits: 2 }));
|
|
142
|
+
function e(c) {
|
|
143
|
+
if (c == null) return "";
|
|
144
|
+
const o = Number(c);
|
|
145
|
+
return Number.isNaN(o) ? String(c) : t.tipoValor === "percentual" ? g.value.format(o / 100) : g.value.format(o);
|
|
125
146
|
}
|
|
126
|
-
return { formatador:
|
|
147
|
+
return { formatador: g, formatar: e };
|
|
127
148
|
}
|
|
128
|
-
function gt(t, { caretFlexivel:
|
|
129
|
-
let
|
|
130
|
-
if (
|
|
131
|
-
|
|
149
|
+
function gt(t, { caretFlexivel: g = !1 } = {}) {
|
|
150
|
+
let e = t.querySelector(".nc-tt");
|
|
151
|
+
if (e) return e;
|
|
152
|
+
e = document.createElement("div"), e.className = "nc-tt", Object.assign(e.style, {
|
|
132
153
|
position: "absolute",
|
|
133
154
|
pointerEvents: "none",
|
|
134
|
-
transform:
|
|
155
|
+
transform: g ? "translateX(-50%)" : "translate(-50%, calc(-100% - 16px))",
|
|
135
156
|
transition: "opacity .18s ease, left .12s ease, top .12s ease",
|
|
136
157
|
opacity: "0",
|
|
137
158
|
background: "#ffffff",
|
|
@@ -145,9 +166,9 @@ function gt(t, { caretFlexivel: x = !1 } = {}) {
|
|
|
145
166
|
fontFamily: "inherit",
|
|
146
167
|
textAlign: "left"
|
|
147
168
|
});
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
const
|
|
169
|
+
const c = document.createElement("div");
|
|
170
|
+
c.className = "nc-tt__caret";
|
|
171
|
+
const o = {
|
|
151
172
|
position: "absolute",
|
|
152
173
|
left: "50%",
|
|
153
174
|
width: "10px",
|
|
@@ -156,96 +177,96 @@ function gt(t, { caretFlexivel: x = !1 } = {}) {
|
|
|
156
177
|
transform: "translateX(-50%) rotate(45deg)",
|
|
157
178
|
borderRadius: "2px"
|
|
158
179
|
};
|
|
159
|
-
|
|
180
|
+
g ? Object.assign(c.style, o) : Object.assign(c.style, o, {
|
|
160
181
|
bottom: "-5px",
|
|
161
182
|
borderRight: "1px solid rgba(15,23,42,.06)",
|
|
162
183
|
borderBottom: "1px solid rgba(15,23,42,.06)"
|
|
163
|
-
}),
|
|
164
|
-
const
|
|
165
|
-
return
|
|
184
|
+
}), e.appendChild(c);
|
|
185
|
+
const S = document.createElement("div");
|
|
186
|
+
return S.className = "nc-tt__content", Object.assign(S.style, { position: "relative", background: "#fff", borderRadius: "8px" }), e.appendChild(S), t.appendChild(e), e;
|
|
166
187
|
}
|
|
167
188
|
function at(t) {
|
|
168
|
-
const
|
|
169
|
-
return
|
|
189
|
+
const g = t.canvas.parentNode;
|
|
190
|
+
return g ? (getComputedStyle(g).position === "static" && (g.style.position = "relative"), g) : null;
|
|
170
191
|
}
|
|
171
|
-
function
|
|
172
|
-
const
|
|
173
|
-
return t -
|
|
192
|
+
function rt(t, g, e, c = 4) {
|
|
193
|
+
const o = g / 2;
|
|
194
|
+
return t - o < c ? o + c : t + o > e - c ? e - o - c : t;
|
|
174
195
|
}
|
|
175
|
-
function
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
for (let
|
|
179
|
-
const
|
|
180
|
-
let
|
|
181
|
-
if (
|
|
182
|
-
if (
|
|
183
|
-
|
|
196
|
+
function wt(t, g) {
|
|
197
|
+
const e = window.getComputedStyle(t);
|
|
198
|
+
let c = "";
|
|
199
|
+
for (let o = 0; o < e.length; o++) {
|
|
200
|
+
const S = e[o];
|
|
201
|
+
let v = e.getPropertyValue(S);
|
|
202
|
+
if (v && v.indexOf("url(") !== -1 && !/url\(["']?data:/.test(v))
|
|
203
|
+
if (S === "background-image" || S === "background" || S === "mask-image" || S === "border-image" || S === "border-image-source")
|
|
204
|
+
v = "none";
|
|
184
205
|
else
|
|
185
206
|
continue;
|
|
186
|
-
|
|
207
|
+
c += `${S}:${v};`;
|
|
187
208
|
}
|
|
188
|
-
|
|
209
|
+
g.setAttribute("style", c);
|
|
189
210
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
192
|
-
const
|
|
193
|
-
for (let
|
|
194
|
-
|
|
211
|
+
function oe(t, g) {
|
|
212
|
+
wt(t, g);
|
|
213
|
+
const e = t.querySelectorAll("*"), c = g.querySelectorAll("*");
|
|
214
|
+
for (let o = 0; o < e.length; o++)
|
|
215
|
+
c[o] && wt(e[o], c[o]);
|
|
195
216
|
}
|
|
196
|
-
function
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
if (!
|
|
200
|
-
const
|
|
217
|
+
function ae(t, g) {
|
|
218
|
+
const e = t.querySelectorAll("canvas"), c = g.querySelectorAll("canvas");
|
|
219
|
+
e.forEach((o, S) => {
|
|
220
|
+
if (!c[S]) return;
|
|
221
|
+
const v = document.createElement("img");
|
|
201
222
|
try {
|
|
202
|
-
|
|
223
|
+
v.src = o.toDataURL("image/png");
|
|
203
224
|
} catch {
|
|
204
225
|
return;
|
|
205
226
|
}
|
|
206
|
-
const
|
|
207
|
-
|
|
227
|
+
const B = o.getBoundingClientRect();
|
|
228
|
+
v.setAttribute("style", `width:${B.width}px;height:${B.height}px;display:block;`), c[S].replaceWith(v);
|
|
208
229
|
});
|
|
209
230
|
}
|
|
210
|
-
async function
|
|
231
|
+
async function it(t, g = {}) {
|
|
211
232
|
if (!t) return;
|
|
212
233
|
const {
|
|
213
|
-
nomeArquivo:
|
|
214
|
-
escala:
|
|
215
|
-
corFundo:
|
|
216
|
-
} =
|
|
217
|
-
|
|
218
|
-
const
|
|
219
|
-
await new Promise((
|
|
220
|
-
|
|
234
|
+
nomeArquivo: e = "componente.png",
|
|
235
|
+
escala: c = 2,
|
|
236
|
+
corFundo: o = null
|
|
237
|
+
} = g, S = t.getBoundingClientRect(), v = Math.ceil(S.width), B = Math.ceil(S.height), D = t.cloneNode(!0);
|
|
238
|
+
oe(t, D), ae(t, D), D.style.margin = "0", D.style.transform = "none";
|
|
239
|
+
const w = new XMLSerializer().serializeToString(D), T = `<svg xmlns="http://www.w3.org/2000/svg" width="${v}" height="${B}"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml" style="width:${v}px;height:${B}px;">` + w + "</div></foreignObject></svg>", X = "data:image/svg+xml;base64," + (typeof window < "u" && window.btoa ? window.btoa(unescape(encodeURIComponent(T))) : ""), J = new Image();
|
|
240
|
+
await new Promise((z, Q) => {
|
|
241
|
+
J.onload = z, J.onerror = Q, J.src = X;
|
|
221
242
|
});
|
|
222
243
|
const K = document.createElement("canvas");
|
|
223
|
-
K.width =
|
|
224
|
-
const
|
|
225
|
-
|
|
244
|
+
K.width = v * c, K.height = B * c;
|
|
245
|
+
const _ = K.getContext("2d");
|
|
246
|
+
_.scale(c, c), o && (_.fillStyle = o, _.fillRect(0, 0, v, B)), _.drawImage(J, 0, 0);
|
|
226
247
|
let d;
|
|
227
248
|
try {
|
|
228
249
|
d = K.toDataURL("image/png");
|
|
229
|
-
} catch (
|
|
230
|
-
console.error("Falha ao exportar imagem: canvas contaminado.",
|
|
250
|
+
} catch (z) {
|
|
251
|
+
console.error("Falha ao exportar imagem: canvas contaminado.", z);
|
|
231
252
|
return;
|
|
232
253
|
}
|
|
233
|
-
const
|
|
234
|
-
|
|
254
|
+
const L = document.createElement("a");
|
|
255
|
+
L.download = e, L.href = d, document.body.appendChild(L), L.click(), document.body.removeChild(L);
|
|
235
256
|
}
|
|
236
|
-
const
|
|
257
|
+
const ct = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>', re = { class: "card-linhas__header flex flex-column" }, ne = { class: "card-linhas__topo flex align-items-start justify-content-between gap-3" }, le = {
|
|
237
258
|
key: 0,
|
|
238
|
-
class: "
|
|
239
|
-
},
|
|
259
|
+
class: "nc-legendas-flex flex flex-column"
|
|
260
|
+
}, se = {
|
|
240
261
|
key: 1,
|
|
241
|
-
class: "
|
|
242
|
-
},
|
|
262
|
+
class: "nc-actions inline-flex align-items-center gap-2"
|
|
263
|
+
}, ie = ["innerHTML"], ce = {
|
|
243
264
|
key: 0,
|
|
244
265
|
class: "card-linhas__titulos mt-3 mb-2 flex flex-column"
|
|
245
|
-
},
|
|
266
|
+
}, de = { class: "card-linhas__chart flex-1" }, ue = {
|
|
246
267
|
key: 0,
|
|
247
268
|
class: "card-linhas__footer mt-3"
|
|
248
|
-
},
|
|
269
|
+
}, fe = {
|
|
249
270
|
__name: "CardLinhas",
|
|
250
271
|
props: {
|
|
251
272
|
legenda: { type: String, default: null },
|
|
@@ -296,76 +317,76 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
296
317
|
nomeArquivoExport: { type: String, default: "card-linhas.png" }
|
|
297
318
|
},
|
|
298
319
|
emits: ["botaoAcao", "exportado"],
|
|
299
|
-
setup(t, { emit:
|
|
300
|
-
const
|
|
301
|
-
async function
|
|
302
|
-
await
|
|
303
|
-
nomeArquivo:
|
|
304
|
-
corFundo:
|
|
305
|
-
}),
|
|
320
|
+
setup(t, { emit: g }) {
|
|
321
|
+
const e = t, c = g, { palette: o, cardStyle: S } = st(e), { formatar: v } = ft(e), B = et(null), D = ct;
|
|
322
|
+
async function w() {
|
|
323
|
+
await it(B.value, {
|
|
324
|
+
nomeArquivo: e.nomeArquivoExport,
|
|
325
|
+
corFundo: o.value.bg !== "transparent" ? o.value.bg : null
|
|
326
|
+
}), c("exportado");
|
|
306
327
|
}
|
|
307
|
-
const
|
|
308
|
-
valor:
|
|
309
|
-
rotulo:
|
|
310
|
-
cor:
|
|
311
|
-
corRotulo:
|
|
312
|
-
corTexto:
|
|
313
|
-
tracejado:
|
|
314
|
-
espessura:
|
|
315
|
-
}) : []),
|
|
316
|
-
let
|
|
328
|
+
const T = F(() => `card-linhas--${e.direcao}`), R = F(() => e.linhasReferencia ? (Array.isArray(e.linhasReferencia) ? e.linhasReferencia : [e.linhasReferencia]).filter((f) => f && (typeof f == "number" || typeof f.valor == "number")).map((f) => typeof f == "number" ? { valor: f, rotulo: null, cor: "#0F172A", corRotulo: "#0F172A", corTexto: "#FFFFFF", tracejado: [6, 6], espessura: 1 } : {
|
|
329
|
+
valor: f.valor,
|
|
330
|
+
rotulo: f.rotulo ?? null,
|
|
331
|
+
cor: f.cor || "#0F172A",
|
|
332
|
+
corRotulo: f.corRotulo || f.cor || "#0F172A",
|
|
333
|
+
corTexto: f.corTexto || "#FFFFFF",
|
|
334
|
+
tracejado: f.tracejado || [6, 6],
|
|
335
|
+
espessura: f.espessura ?? 1
|
|
336
|
+
}) : []), X = [];
|
|
337
|
+
let J = null;
|
|
317
338
|
const K = {
|
|
318
339
|
id: "linhaReferencia",
|
|
319
|
-
afterDatasetsDraw(
|
|
320
|
-
const
|
|
321
|
-
if (
|
|
322
|
-
const { ctx:
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
326
|
-
|
|
340
|
+
afterDatasetsDraw(u) {
|
|
341
|
+
const f = R.value;
|
|
342
|
+
if (X.length = 0, !f.length) return;
|
|
343
|
+
const { ctx: l, chartArea: x, scales: a } = u, y = a.y;
|
|
344
|
+
y && f.forEach((n) => {
|
|
345
|
+
const m = y.getPixelForValue(n.valor);
|
|
346
|
+
if (X.push({ linha: n, pos: m, chartArea: x }), l.save(), l.beginPath(), l.setLineDash(n.tracejado), l.lineWidth = n.espessura, l.strokeStyle = n.cor, m < x.top || m > x.bottom) {
|
|
347
|
+
l.restore();
|
|
327
348
|
return;
|
|
328
349
|
}
|
|
329
|
-
if (
|
|
330
|
-
|
|
331
|
-
const
|
|
332
|
-
let
|
|
333
|
-
|
|
350
|
+
if (l.moveTo(x.left, m), l.lineTo(x.right, m), l.stroke(), l.setLineDash([]), n.rotulo) {
|
|
351
|
+
l.font = "600 11px 'Inter', sans-serif";
|
|
352
|
+
const h = 8, M = 5, E = l.measureText(n.rotulo).width, C = 12, V = E + h * 2, Y = C + M * 2, U = Y / 2;
|
|
353
|
+
let H = x.left - V - 6, I = m - Y / 2;
|
|
354
|
+
H < 0 && (H = x.left + 6), l.fillStyle = n.corRotulo, l.beginPath(), l.roundRect ? l.roundRect(H, I, V, Y, U) : (l.moveTo(H + U, I), l.lineTo(H + V - U, I), l.quadraticCurveTo(H + V, I, H + V, I + U), l.lineTo(H + V, I + Y - U), l.quadraticCurveTo(H + V, I + Y, H + V - U, I + Y), l.lineTo(H + U, I + Y), l.quadraticCurveTo(H, I + Y, H, I + Y - U), l.lineTo(H, I + U), l.quadraticCurveTo(H, I, H + U, I)), l.fill(), l.fillStyle = n.corTexto, l.textBaseline = "middle", l.textAlign = "center", l.fillText(n.rotulo, H + V / 2, I + Y / 2);
|
|
334
355
|
}
|
|
335
|
-
|
|
356
|
+
l.restore();
|
|
336
357
|
});
|
|
337
358
|
},
|
|
338
|
-
beforeEvent(
|
|
339
|
-
if (!
|
|
340
|
-
|
|
359
|
+
beforeEvent(u, f) {
|
|
360
|
+
if (!X.length) {
|
|
361
|
+
J = null;
|
|
341
362
|
return;
|
|
342
363
|
}
|
|
343
|
-
const
|
|
344
|
-
if (!
|
|
345
|
-
|
|
364
|
+
const l = f.event;
|
|
365
|
+
if (!l || l.type === "mouseout" || l.x == null || l.y == null) {
|
|
366
|
+
J = null;
|
|
346
367
|
return;
|
|
347
368
|
}
|
|
348
|
-
const
|
|
349
|
-
let
|
|
350
|
-
for (const n of
|
|
351
|
-
const
|
|
352
|
-
|
|
369
|
+
const x = 8;
|
|
370
|
+
let a = null, y = 1 / 0;
|
|
371
|
+
for (const n of X) {
|
|
372
|
+
const m = Math.abs(l.y - n.pos), h = l.x >= n.chartArea.left && l.x <= n.chartArea.right;
|
|
373
|
+
m <= x && h && m < y && (y = m, a = n);
|
|
353
374
|
}
|
|
354
|
-
|
|
375
|
+
J = a;
|
|
355
376
|
},
|
|
356
|
-
afterEvent(
|
|
357
|
-
if (!
|
|
358
|
-
const
|
|
359
|
-
if (!
|
|
360
|
-
const
|
|
361
|
-
if (!
|
|
362
|
-
let
|
|
363
|
-
if (!
|
|
364
|
-
|
|
377
|
+
afterEvent(u, f) {
|
|
378
|
+
if (!X.length) return;
|
|
379
|
+
const l = f.event;
|
|
380
|
+
if (!l) return;
|
|
381
|
+
const x = at(u);
|
|
382
|
+
if (!x) return;
|
|
383
|
+
let a = x.querySelector(".nc-tt-linhaRef");
|
|
384
|
+
if (!J) {
|
|
385
|
+
a && (a.style.opacity = "0");
|
|
365
386
|
return;
|
|
366
387
|
}
|
|
367
|
-
const
|
|
368
|
-
|
|
388
|
+
const y = J;
|
|
389
|
+
a || (a = document.createElement("div"), a.className = "nc-tt-linhaRef", Object.assign(a.style, {
|
|
369
390
|
position: "absolute",
|
|
370
391
|
pointerEvents: "none",
|
|
371
392
|
transform: "translate(-50%, calc(-100% - 12px))",
|
|
@@ -380,95 +401,95 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
380
401
|
zIndex: "11",
|
|
381
402
|
fontFamily: "'Inter', sans-serif",
|
|
382
403
|
textAlign: "left"
|
|
383
|
-
}),
|
|
384
|
-
const n =
|
|
385
|
-
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
const
|
|
389
|
-
let
|
|
390
|
-
const
|
|
391
|
-
|
|
404
|
+
}), x.appendChild(a));
|
|
405
|
+
const n = y.linha.cor || "#0F172A", m = v(y.linha.valor), h = y.linha.rotulo;
|
|
406
|
+
a.innerHTML = (h ? `<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${h}</div>` : "") + `<div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${n};box-shadow:0 0 0 2px ${P(n, 0.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${m}</span></div>`;
|
|
407
|
+
const M = u.canvas;
|
|
408
|
+
a.style.opacity = "1", a.style.visibility = "hidden", a.style.left = "0px", a.style.top = "0px";
|
|
409
|
+
const A = a.offsetWidth, E = a.offsetHeight, C = 4, V = M.offsetLeft + l.x, Y = M.offsetTop + y.pos, U = rt(V, A, x.clientWidth, C);
|
|
410
|
+
let H = Y;
|
|
411
|
+
const I = E + 16 + C;
|
|
412
|
+
H < I && (H = I), a.style.left = U + "px", a.style.top = H + "px", a.style.visibility = "visible";
|
|
392
413
|
}
|
|
393
|
-
},
|
|
394
|
-
labels:
|
|
414
|
+
}, _ = F(() => R.value.length ? [K] : []), d = F(() => ({
|
|
415
|
+
labels: e.data.map((u) => u.rotulo),
|
|
395
416
|
datasets: [
|
|
396
417
|
{
|
|
397
|
-
data:
|
|
398
|
-
borderColor:
|
|
418
|
+
data: e.data.map((u) => u.quantidade),
|
|
419
|
+
borderColor: e.corDetalhes,
|
|
399
420
|
borderWidth: 3,
|
|
400
421
|
borderJoinStyle: "round",
|
|
401
422
|
borderCapStyle: "round",
|
|
402
|
-
backgroundColor: (
|
|
403
|
-
const { chart:
|
|
404
|
-
if (!
|
|
405
|
-
const
|
|
406
|
-
return n.addColorStop(0.16,
|
|
423
|
+
backgroundColor: (u) => {
|
|
424
|
+
const { chart: f } = u, { ctx: l, chartArea: x } = f;
|
|
425
|
+
if (!x) return "transparent";
|
|
426
|
+
const a = e.corDetalhes || "#0400FF", y = "#7C7C7C", n = l.createLinearGradient(0, x.top, 0, x.bottom);
|
|
427
|
+
return n.addColorStop(0.16, P(a, 0.2)), n.addColorStop(1, P(y, 0)), n;
|
|
407
428
|
},
|
|
408
429
|
fill: !0,
|
|
409
430
|
tension: 0.45,
|
|
410
431
|
pointRadius: 0,
|
|
411
432
|
pointHoverRadius: 6,
|
|
412
433
|
pointHoverBorderWidth: 3,
|
|
413
|
-
pointHoverBackgroundColor:
|
|
414
|
-
pointHoverBorderColor:
|
|
434
|
+
pointHoverBackgroundColor: e.corDetalhes,
|
|
435
|
+
pointHoverBorderColor: o.value.bg === "transparent" ? "#fff" : o.value.bg,
|
|
415
436
|
clip: !1
|
|
416
437
|
}
|
|
417
438
|
]
|
|
418
439
|
}));
|
|
419
|
-
function
|
|
420
|
-
const { chart:
|
|
421
|
-
if (!
|
|
422
|
-
const
|
|
423
|
-
if (
|
|
424
|
-
|
|
440
|
+
function L(u) {
|
|
441
|
+
const { chart: f, tooltip: l } = u, x = at(f);
|
|
442
|
+
if (!x) return;
|
|
443
|
+
const a = gt(x);
|
|
444
|
+
if (l.opacity === 0 || J) {
|
|
445
|
+
a.style.opacity = "0";
|
|
425
446
|
return;
|
|
426
447
|
}
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
const { offsetLeft:
|
|
430
|
-
|
|
431
|
-
const
|
|
432
|
-
let
|
|
433
|
-
|
|
434
|
-
const
|
|
435
|
-
if (
|
|
436
|
-
const N = Y -
|
|
437
|
-
|
|
448
|
+
const y = l.title || [], n = (l.body || []).flatMap((N) => N.lines), m = a.querySelector(".nc-tt__content"), h = e.corDetalhes || "#3B82F6";
|
|
449
|
+
m.innerHTML = `<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${y.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${h};box-shadow:0 0 0 2px ${P(h, 0.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${n.join(" ")}</span></div>`;
|
|
450
|
+
const { offsetLeft: M, offsetTop: A } = f.canvas;
|
|
451
|
+
a.style.opacity = "1", a.style.visibility = "hidden", a.style.left = "0px", a.style.top = "0px";
|
|
452
|
+
const E = a.offsetWidth, C = a.offsetHeight, V = 4, Y = M + l.caretX, U = A + l.caretY, H = rt(Y, E, x.clientWidth, V), I = C + 16 + V, G = U < I;
|
|
453
|
+
let Z;
|
|
454
|
+
G ? (a.style.transform = "translateX(-50%) translateY(16px)", Z = U) : (a.style.transform = "translate(-50%, calc(-100% - 16px))", Z = U), a.style.left = H + "px", a.style.top = Z + "px";
|
|
455
|
+
const j = a.querySelector(".nc-tt__caret");
|
|
456
|
+
if (j) {
|
|
457
|
+
const N = Y - H, W = E / 2, pt = Math.max(-W + 8, Math.min(W - 8, N));
|
|
458
|
+
j.style.left = `calc(50% + ${pt}px)`, G ? (j.style.bottom = "", j.style.top = "-5px", j.style.borderRight = "", j.style.borderBottom = "", j.style.borderLeft = "1px solid rgba(15,23,42,.06)", j.style.borderTop = "1px solid rgba(15,23,42,.06)") : (j.style.top = "", j.style.bottom = "-5px", j.style.borderLeft = "", j.style.borderTop = "", j.style.borderRight = "1px solid rgba(15,23,42,.06)", j.style.borderBottom = "1px solid rgba(15,23,42,.06)");
|
|
438
459
|
}
|
|
439
|
-
|
|
460
|
+
a.style.visibility = "visible";
|
|
440
461
|
}
|
|
441
|
-
const
|
|
462
|
+
const z = F(() => ({
|
|
442
463
|
responsive: !0,
|
|
443
464
|
maintainAspectRatio: !1,
|
|
444
465
|
interaction: { intersect: !1, mode: "index" },
|
|
445
466
|
layout: {
|
|
446
|
-
padding: { top:
|
|
467
|
+
padding: { top: R.value.length ? 24 : 0, right: 0, bottom: 0, left: 0 }
|
|
447
468
|
},
|
|
448
469
|
plugins: {
|
|
449
470
|
legend: { display: !1 },
|
|
450
471
|
tooltip: {
|
|
451
472
|
enabled: !1,
|
|
452
|
-
external:
|
|
473
|
+
external: L,
|
|
453
474
|
callbacks: {
|
|
454
|
-
title: (
|
|
455
|
-
var
|
|
456
|
-
return ((
|
|
475
|
+
title: (u) => {
|
|
476
|
+
var f;
|
|
477
|
+
return ((f = u[0]) == null ? void 0 : f.label) ?? "";
|
|
457
478
|
},
|
|
458
|
-
label: (
|
|
479
|
+
label: (u) => v(u.parsed.y)
|
|
459
480
|
}
|
|
460
481
|
}
|
|
461
482
|
},
|
|
462
483
|
scales: {
|
|
463
484
|
x: {
|
|
464
485
|
display: !0,
|
|
465
|
-
afterFit: (
|
|
466
|
-
|
|
486
|
+
afterFit: (u) => {
|
|
487
|
+
u.paddingLeft = 0, u.paddingRight = 0;
|
|
467
488
|
},
|
|
468
489
|
grid: { display: !1, drawBorder: !1 },
|
|
469
490
|
border: { display: !1 },
|
|
470
491
|
ticks: {
|
|
471
|
-
color:
|
|
492
|
+
color: o.value.muted,
|
|
472
493
|
font: { size: 10, family: "'Inter', sans-serif" },
|
|
473
494
|
padding: 8,
|
|
474
495
|
align: "inner"
|
|
@@ -477,112 +498,113 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
477
498
|
y: {
|
|
478
499
|
display: !1,
|
|
479
500
|
grid: { display: !1 },
|
|
480
|
-
beginAtZero: !0
|
|
501
|
+
beginAtZero: !0,
|
|
502
|
+
suggestedMax: R.value.length ? Math.max(...R.value.map((u) => u.valor)) : void 0
|
|
481
503
|
}
|
|
482
504
|
}
|
|
483
505
|
}));
|
|
484
|
-
function
|
|
485
|
-
|
|
506
|
+
function Q() {
|
|
507
|
+
c("botaoAcao");
|
|
486
508
|
}
|
|
487
|
-
return (
|
|
509
|
+
return (u, f) => (s(), i("div", {
|
|
488
510
|
ref_key: "cardRef",
|
|
489
|
-
ref:
|
|
490
|
-
class:
|
|
491
|
-
style:
|
|
511
|
+
ref: B,
|
|
512
|
+
class: nt(["card-linhas p-4 flex", T.value]),
|
|
513
|
+
style: b(r(S))
|
|
492
514
|
}, [
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
515
|
+
$("div", re, [
|
|
516
|
+
$("div", ne, [
|
|
517
|
+
u.$slots.legenda || t.legenda || u.$slots.sublegenda || t.sublegenda ? (s(), i("div", le, [
|
|
518
|
+
u.$slots.legenda || t.legenda ? (s(), i("div", {
|
|
497
519
|
key: 0,
|
|
498
520
|
class: "text-xs font-medium",
|
|
499
|
-
style:
|
|
521
|
+
style: b({ color: r(o).text, opacity: 0.85 })
|
|
500
522
|
}, [
|
|
501
|
-
|
|
502
|
-
|
|
523
|
+
q(u.$slots, "legenda", {}, () => [
|
|
524
|
+
O(k(t.legenda), 1)
|
|
503
525
|
], !0)
|
|
504
|
-
], 4)) :
|
|
505
|
-
|
|
526
|
+
], 4)) : p("", !0),
|
|
527
|
+
u.$slots.sublegenda || t.sublegenda ? (s(), i("div", {
|
|
506
528
|
key: 1,
|
|
507
529
|
class: "text-xs",
|
|
508
|
-
style:
|
|
530
|
+
style: b({ color: r(o).muted })
|
|
509
531
|
}, [
|
|
510
|
-
|
|
511
|
-
|
|
532
|
+
q(u.$slots, "sublegenda", {}, () => [
|
|
533
|
+
O(k(t.sublegenda), 1)
|
|
512
534
|
], !0)
|
|
513
|
-
], 4)) :
|
|
514
|
-
])) :
|
|
515
|
-
|
|
516
|
-
|
|
535
|
+
], 4)) : p("", !0)
|
|
536
|
+
])) : p("", !0),
|
|
537
|
+
u.$slots.actions || t.botaoVisivel || t.exportar ? (s(), i("div", se, [
|
|
538
|
+
q(u.$slots, "actions", {}, () => [
|
|
517
539
|
t.botaoVisivel ? (s(), i("button", {
|
|
518
540
|
key: 0,
|
|
519
|
-
class: "
|
|
520
|
-
style:
|
|
521
|
-
onClick:
|
|
541
|
+
class: "nc-btn inline-flex align-items-center",
|
|
542
|
+
style: b({ color: r(o).text, borderColor: r(P)(r(o).text, 0.18) }),
|
|
543
|
+
onClick: Q
|
|
522
544
|
}, [
|
|
523
|
-
|
|
524
|
-
], 4)) :
|
|
545
|
+
$("span", null, k(t.textoBotao), 1)
|
|
546
|
+
], 4)) : p("", !0)
|
|
525
547
|
], !0),
|
|
526
548
|
t.exportar ? (s(), i("button", {
|
|
527
549
|
key: 0,
|
|
528
550
|
type: "button",
|
|
529
|
-
class: "
|
|
530
|
-
style:
|
|
551
|
+
class: "nc-exportar inline-flex align-items-center justify-content-center",
|
|
552
|
+
style: b({ color: r(o).muted, borderColor: r(P)(r(o).text, 0.18) }),
|
|
531
553
|
title: "Exportar como imagem",
|
|
532
554
|
"aria-label": "Exportar como imagem",
|
|
533
|
-
onClick:
|
|
534
|
-
innerHTML:
|
|
535
|
-
}, null, 12,
|
|
536
|
-
])) :
|
|
555
|
+
onClick: w,
|
|
556
|
+
innerHTML: r(D)
|
|
557
|
+
}, null, 12, ie)) : p("", !0)
|
|
558
|
+
])) : p("", !0)
|
|
537
559
|
]),
|
|
538
|
-
|
|
539
|
-
|
|
560
|
+
u.$slots.titulo || t.titulo || u.$slots.descricao || t.descricao ? (s(), i("div", ce, [
|
|
561
|
+
u.$slots.titulo || t.titulo ? (s(), i("div", {
|
|
540
562
|
key: 0,
|
|
541
563
|
class: "m-0 text-3xl font-semibold",
|
|
542
|
-
style:
|
|
564
|
+
style: b({ color: r(o).text, lineHeight: "33px", letterSpacing: "-1px" })
|
|
543
565
|
}, [
|
|
544
|
-
|
|
545
|
-
|
|
566
|
+
q(u.$slots, "titulo", {}, () => [
|
|
567
|
+
O(k(t.titulo), 1)
|
|
546
568
|
], !0)
|
|
547
|
-
], 4)) :
|
|
548
|
-
|
|
569
|
+
], 4)) : p("", !0),
|
|
570
|
+
u.$slots.descricao || t.descricao ? (s(), i("div", {
|
|
549
571
|
key: 1,
|
|
550
572
|
class: "text-sm mt-1",
|
|
551
|
-
style:
|
|
573
|
+
style: b({ color: r(o).muted })
|
|
552
574
|
}, [
|
|
553
|
-
|
|
554
|
-
|
|
575
|
+
q(u.$slots, "descricao", {}, () => [
|
|
576
|
+
O(k(t.descricao), 1)
|
|
555
577
|
], !0)
|
|
556
|
-
], 4)) :
|
|
557
|
-
])) :
|
|
578
|
+
], 4)) : p("", !0)
|
|
579
|
+
])) : p("", !0)
|
|
558
580
|
]),
|
|
559
|
-
|
|
560
|
-
|
|
581
|
+
$("div", de, [
|
|
582
|
+
ut(lt, {
|
|
561
583
|
type: "line",
|
|
562
584
|
data: d.value,
|
|
563
|
-
options:
|
|
564
|
-
plugins:
|
|
585
|
+
options: z.value,
|
|
586
|
+
plugins: _.value,
|
|
565
587
|
height: t.height
|
|
566
588
|
}, null, 8, ["data", "options", "plugins", "height"])
|
|
567
589
|
]),
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
])) :
|
|
590
|
+
u.$slots.footer ? (s(), i("div", ue, [
|
|
591
|
+
q(u.$slots, "footer", {}, void 0, !0)
|
|
592
|
+
])) : p("", !0)
|
|
571
593
|
], 6));
|
|
572
594
|
}
|
|
573
|
-
},
|
|
595
|
+
}, pe = /* @__PURE__ */ ot(fe, [["__scopeId", "data-v-364ce1d1"]]), ge = { class: "card-pizza__topo flex align-items-start justify-content-between gap-3" }, me = {
|
|
574
596
|
key: 0,
|
|
575
|
-
class: "
|
|
576
|
-
},
|
|
597
|
+
class: "nc-legendas-flex flex flex-column"
|
|
598
|
+
}, ye = {
|
|
577
599
|
key: 1,
|
|
578
|
-
class: "
|
|
579
|
-
},
|
|
600
|
+
class: "nc-actions inline-flex align-items-center gap-2"
|
|
601
|
+
}, he = ["innerHTML"], be = { class: "card-pizza__corpo flex align-items-center" }, xe = { class: "nc-tabela flex flex-column" }, ve = { class: "nc-tabela-valor" }, $e = { class: "nc-tabela-rotulo inline-flex align-items-center gap-2" }, Se = { class: "nc-tabela-valor" }, ke = { class: "card-pizza__chart-wrap flex align-items-center justify-content-center" }, Ce = { class: "card-pizza__chart" }, Ae = {
|
|
580
602
|
key: 0,
|
|
581
|
-
class: "
|
|
582
|
-
},
|
|
603
|
+
class: "nc-centro flex flex-column align-items-center justify-content-center"
|
|
604
|
+
}, Be = {
|
|
583
605
|
key: 0,
|
|
584
606
|
class: "card-pizza__footer mt-3"
|
|
585
|
-
},
|
|
607
|
+
}, we = {
|
|
586
608
|
__name: "CardPizza",
|
|
587
609
|
props: {
|
|
588
610
|
legenda: { type: String, default: null },
|
|
@@ -595,10 +617,7 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
595
617
|
corBorda: { type: String, default: "#EAE8E8" },
|
|
596
618
|
borderRadius: { type: [String, Number], default: "0.75rem" },
|
|
597
619
|
sombra: { type: String, default: "0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)" },
|
|
598
|
-
|
|
599
|
-
type: Array,
|
|
600
|
-
default: () => ["#0A1A6B", "#1535B5", "#1A5FD4", "#2F8DDF", "#5BB1E8", "#93D0F0", "#CDEAF6"]
|
|
601
|
-
},
|
|
620
|
+
corDetalhes: { type: String, default: "#3B82F6" },
|
|
602
621
|
textoBotao: { type: String, default: "Ver mais" },
|
|
603
622
|
botaoVisivel: { type: Boolean, default: !1 },
|
|
604
623
|
direcao: {
|
|
@@ -634,22 +653,23 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
634
653
|
nomeArquivoExport: { type: String, default: "card-pizza.png" }
|
|
635
654
|
},
|
|
636
655
|
emits: ["botaoAcao", "exportado"],
|
|
637
|
-
setup(t, { emit:
|
|
638
|
-
const
|
|
639
|
-
async function
|
|
640
|
-
await
|
|
641
|
-
nomeArquivo:
|
|
642
|
-
corFundo:
|
|
643
|
-
}),
|
|
656
|
+
setup(t, { emit: g }) {
|
|
657
|
+
const e = t, c = g, { palette: o, cardStyle: S } = st(e), { formatar: v } = ft(e), B = et(null);
|
|
658
|
+
async function D() {
|
|
659
|
+
await it(B.value, {
|
|
660
|
+
nomeArquivo: e.nomeArquivoExport,
|
|
661
|
+
corFundo: o.value.bg !== "transparent" ? o.value.bg : null
|
|
662
|
+
}), c("exportado");
|
|
644
663
|
}
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
664
|
+
const w = F(() => `card-pizza--${e.direcao}`), T = F(() => {
|
|
665
|
+
const d = ht(e.corDetalhes, e.data.length);
|
|
666
|
+
return e.data.map((L, z) => L.cor ?? d[z]);
|
|
667
|
+
}), R = F(() => ({
|
|
668
|
+
labels: e.data.map((d) => d.rotulo),
|
|
649
669
|
datasets: [
|
|
650
670
|
{
|
|
651
|
-
data:
|
|
652
|
-
backgroundColor:
|
|
671
|
+
data: e.data.map((d) => d.quantidade),
|
|
672
|
+
backgroundColor: T.value,
|
|
653
673
|
borderWidth: 0,
|
|
654
674
|
borderColor: "transparent",
|
|
655
675
|
hoverOffset: 6,
|
|
@@ -658,171 +678,171 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
658
678
|
}
|
|
659
679
|
]
|
|
660
680
|
}));
|
|
661
|
-
function
|
|
662
|
-
const { chart:
|
|
663
|
-
if (!
|
|
664
|
-
const
|
|
665
|
-
if (
|
|
666
|
-
|
|
681
|
+
function X(d) {
|
|
682
|
+
const { chart: L, tooltip: z } = d, Q = at(L);
|
|
683
|
+
if (!Q) return;
|
|
684
|
+
const u = gt(Q);
|
|
685
|
+
if (z.opacity === 0) {
|
|
686
|
+
u.style.opacity = "0";
|
|
667
687
|
return;
|
|
668
688
|
}
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
const { offsetLeft: n, offsetTop:
|
|
672
|
-
|
|
673
|
-
const
|
|
674
|
-
let
|
|
675
|
-
const V =
|
|
676
|
-
|
|
689
|
+
const f = z.title || [], l = z.dataPoints && z.dataPoints[0], x = l ? T.value[l.dataIndex] : "#3B82F6", a = l ? v(l.parsed) : "", y = u.querySelector(".nc-tt__content");
|
|
690
|
+
y.innerHTML = `<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${f.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${x};box-shadow:0 0 0 2px ${P(x, 0.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${a}</span></div>`;
|
|
691
|
+
const { offsetLeft: n, offsetTop: m } = L.canvas;
|
|
692
|
+
u.style.opacity = "1", u.style.visibility = "hidden", u.style.left = "0px", u.style.top = "0px";
|
|
693
|
+
const h = u.offsetWidth, M = u.offsetHeight, A = 4, E = rt(n + z.caretX, h, Q.clientWidth, A);
|
|
694
|
+
let C = m + z.caretY;
|
|
695
|
+
const V = M + 16 + A;
|
|
696
|
+
C < V && (C = V), u.style.left = E + "px", u.style.top = C + "px", u.style.visibility = "visible";
|
|
677
697
|
}
|
|
678
|
-
const
|
|
698
|
+
const J = F(() => ({
|
|
679
699
|
responsive: !0,
|
|
680
700
|
maintainAspectRatio: !1,
|
|
681
|
-
cutout:
|
|
701
|
+
cutout: e.cutout,
|
|
682
702
|
layout: { padding: 4 },
|
|
683
703
|
plugins: {
|
|
684
704
|
legend: { display: !1 },
|
|
685
705
|
tooltip: {
|
|
686
706
|
enabled: !1,
|
|
687
|
-
external:
|
|
707
|
+
external: X,
|
|
688
708
|
callbacks: {
|
|
689
709
|
title: (d) => {
|
|
690
|
-
var
|
|
691
|
-
return ((
|
|
710
|
+
var L;
|
|
711
|
+
return ((L = d[0]) == null ? void 0 : L.label) ?? "";
|
|
692
712
|
},
|
|
693
|
-
label: (d) =>
|
|
713
|
+
label: (d) => v(d.parsed)
|
|
694
714
|
}
|
|
695
715
|
}
|
|
696
716
|
}
|
|
697
717
|
}));
|
|
698
718
|
function K() {
|
|
699
|
-
|
|
719
|
+
c("botaoAcao");
|
|
700
720
|
}
|
|
701
|
-
const
|
|
702
|
-
return (d,
|
|
721
|
+
const _ = ct;
|
|
722
|
+
return (d, L) => (s(), i("div", {
|
|
703
723
|
ref_key: "cardRef",
|
|
704
|
-
ref:
|
|
705
|
-
class:
|
|
706
|
-
style:
|
|
724
|
+
ref: B,
|
|
725
|
+
class: nt(["card-pizza p-4 flex flex-column", w.value]),
|
|
726
|
+
style: b(r(S))
|
|
707
727
|
}, [
|
|
708
|
-
|
|
709
|
-
d.$slots.legenda || t.legenda || d.$slots.sublegenda || t.sublegenda ? (s(), i("div",
|
|
728
|
+
$("div", ge, [
|
|
729
|
+
d.$slots.legenda || t.legenda || d.$slots.sublegenda || t.sublegenda ? (s(), i("div", me, [
|
|
710
730
|
d.$slots.legenda || t.legenda ? (s(), i("div", {
|
|
711
731
|
key: 0,
|
|
712
732
|
class: "text-xs font-medium",
|
|
713
|
-
style:
|
|
733
|
+
style: b({ color: r(o).text, opacity: 0.95 })
|
|
714
734
|
}, [
|
|
715
|
-
|
|
716
|
-
|
|
735
|
+
q(d.$slots, "legenda", {}, () => [
|
|
736
|
+
O(k(t.legenda), 1)
|
|
717
737
|
], !0)
|
|
718
|
-
], 4)) :
|
|
738
|
+
], 4)) : p("", !0),
|
|
719
739
|
d.$slots.sublegenda || t.sublegenda ? (s(), i("div", {
|
|
720
740
|
key: 1,
|
|
721
741
|
class: "text-xs",
|
|
722
|
-
style:
|
|
742
|
+
style: b({ color: r(o).muted })
|
|
723
743
|
}, [
|
|
724
|
-
|
|
725
|
-
|
|
744
|
+
q(d.$slots, "sublegenda", {}, () => [
|
|
745
|
+
O(k(t.sublegenda), 1)
|
|
726
746
|
], !0)
|
|
727
|
-
], 4)) :
|
|
728
|
-
])) :
|
|
729
|
-
d.$slots.actions || t.botaoVisivel || t.exportar ? (s(), i("div",
|
|
730
|
-
|
|
747
|
+
], 4)) : p("", !0)
|
|
748
|
+
])) : p("", !0),
|
|
749
|
+
d.$slots.actions || t.botaoVisivel || t.exportar ? (s(), i("div", ye, [
|
|
750
|
+
q(d.$slots, "actions", {}, () => [
|
|
731
751
|
t.botaoVisivel ? (s(), i("button", {
|
|
732
752
|
key: 0,
|
|
733
|
-
class: "
|
|
734
|
-
style:
|
|
753
|
+
class: "nc-btn inline-flex align-items-center",
|
|
754
|
+
style: b({ color: r(o).text, borderColor: r(P)(r(o).text, 0.18) }),
|
|
735
755
|
onClick: K
|
|
736
756
|
}, [
|
|
737
|
-
|
|
738
|
-
], 4)) :
|
|
757
|
+
$("span", null, k(t.textoBotao), 1)
|
|
758
|
+
], 4)) : p("", !0)
|
|
739
759
|
], !0),
|
|
740
760
|
t.exportar ? (s(), i("button", {
|
|
741
761
|
key: 0,
|
|
742
762
|
type: "button",
|
|
743
|
-
class: "
|
|
744
|
-
style:
|
|
763
|
+
class: "nc-exportar inline-flex align-items-center justify-content-center",
|
|
764
|
+
style: b({ color: r(o).muted, borderColor: r(P)(r(o).text, 0.18) }),
|
|
745
765
|
title: "Exportar como imagem",
|
|
746
766
|
"aria-label": "Exportar como imagem",
|
|
747
|
-
onClick:
|
|
748
|
-
innerHTML:
|
|
749
|
-
}, null, 12,
|
|
750
|
-
])) :
|
|
767
|
+
onClick: D,
|
|
768
|
+
innerHTML: r(_)
|
|
769
|
+
}, null, 12, he)) : p("", !0)
|
|
770
|
+
])) : p("", !0)
|
|
751
771
|
]),
|
|
752
|
-
|
|
753
|
-
|
|
772
|
+
$("div", be, [
|
|
773
|
+
$("div", xe, [
|
|
754
774
|
t.mostrarCabecalho ? (s(), i("div", {
|
|
755
775
|
key: 0,
|
|
756
|
-
class: "
|
|
757
|
-
style:
|
|
776
|
+
class: "nc-tabela-cab flex align-items-center justify-content-between",
|
|
777
|
+
style: b({ color: r(o).muted, borderColor: r(P)(r(o).muted, 0.25) })
|
|
758
778
|
}, [
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
], 4)) :
|
|
762
|
-
(s(!0), i(
|
|
763
|
-
key:
|
|
764
|
-
class: "
|
|
765
|
-
style:
|
|
779
|
+
$("span", null, k(t.rotuloCategoria), 1),
|
|
780
|
+
$("span", ve, k(t.rotuloQuantidade), 1)
|
|
781
|
+
], 4)) : p("", !0),
|
|
782
|
+
(s(!0), i(mt, null, yt(t.data, (z, Q) => (s(), i("div", {
|
|
783
|
+
key: Q,
|
|
784
|
+
class: "nc-tabela-linha flex align-items-center justify-content-between",
|
|
785
|
+
style: b({ color: r(o).text })
|
|
766
786
|
}, [
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
class: "
|
|
770
|
-
style:
|
|
787
|
+
$("span", $e, [
|
|
788
|
+
$("span", {
|
|
789
|
+
class: "nc-bolinha",
|
|
790
|
+
style: b({ background: T.value[Q] })
|
|
771
791
|
}, null, 4),
|
|
772
|
-
|
|
792
|
+
$("span", null, k(z.rotulo), 1)
|
|
773
793
|
]),
|
|
774
|
-
|
|
794
|
+
$("span", Se, k(r(v)(z.quantidade)), 1)
|
|
775
795
|
], 4))), 128))
|
|
776
796
|
]),
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
797
|
+
$("div", ke, [
|
|
798
|
+
$("div", Ce, [
|
|
799
|
+
ut(lt, {
|
|
780
800
|
type: "doughnut",
|
|
781
|
-
data:
|
|
782
|
-
options:
|
|
801
|
+
data: R.value,
|
|
802
|
+
options: J.value,
|
|
783
803
|
height: t.height
|
|
784
804
|
}, null, 8, ["data", "options", "height"]),
|
|
785
|
-
d.$slots.titulo || t.titulo || d.$slots.descricao || t.descricao ? (s(), i("div",
|
|
805
|
+
d.$slots.titulo || t.titulo || d.$slots.descricao || t.descricao ? (s(), i("div", Ae, [
|
|
786
806
|
d.$slots.titulo || t.titulo ? (s(), i("div", {
|
|
787
807
|
key: 0,
|
|
788
|
-
class: "
|
|
789
|
-
style:
|
|
808
|
+
class: "nc-centro-titulo m-0 font-semibold",
|
|
809
|
+
style: b({ color: r(o).text })
|
|
790
810
|
}, [
|
|
791
|
-
|
|
792
|
-
|
|
811
|
+
q(d.$slots, "titulo", {}, () => [
|
|
812
|
+
O(k(t.titulo), 1)
|
|
793
813
|
], !0)
|
|
794
|
-
], 4)) :
|
|
814
|
+
], 4)) : p("", !0),
|
|
795
815
|
d.$slots.descricao || t.descricao ? (s(), i("div", {
|
|
796
816
|
key: 1,
|
|
797
|
-
class: "
|
|
798
|
-
style:
|
|
817
|
+
class: "nc-centro-desc",
|
|
818
|
+
style: b({ color: r(o).muted })
|
|
799
819
|
}, [
|
|
800
|
-
|
|
801
|
-
|
|
820
|
+
q(d.$slots, "descricao", {}, () => [
|
|
821
|
+
O(k(t.descricao), 1)
|
|
802
822
|
], !0)
|
|
803
|
-
], 4)) :
|
|
804
|
-
])) :
|
|
823
|
+
], 4)) : p("", !0)
|
|
824
|
+
])) : p("", !0)
|
|
805
825
|
])
|
|
806
826
|
])
|
|
807
827
|
]),
|
|
808
|
-
d.$slots.footer ? (s(), i("div",
|
|
809
|
-
|
|
810
|
-
])) :
|
|
828
|
+
d.$slots.footer ? (s(), i("div", Be, [
|
|
829
|
+
q(d.$slots, "footer", {}, void 0, !0)
|
|
830
|
+
])) : p("", !0)
|
|
811
831
|
], 6));
|
|
812
832
|
}
|
|
813
|
-
},
|
|
833
|
+
}, Re = /* @__PURE__ */ ot(we, [["__scopeId", "data-v-2a65258f"]]), Te = { class: "card-barra__header flex flex-column" }, Ee = { class: "card-barra__topo flex align-items-start justify-content-between gap-3" }, qe = {
|
|
814
834
|
key: 0,
|
|
815
|
-
class: "
|
|
816
|
-
},
|
|
835
|
+
class: "nc-legendas-flex flex flex-column"
|
|
836
|
+
}, Fe = {
|
|
817
837
|
key: 1,
|
|
818
|
-
class: "
|
|
819
|
-
},
|
|
838
|
+
class: "nc-actions inline-flex align-items-center gap-2"
|
|
839
|
+
}, Le = ["innerHTML"], ze = {
|
|
820
840
|
key: 0,
|
|
821
841
|
class: "card-barra__titulos mt-3 mb-2 flex flex-column"
|
|
822
|
-
},
|
|
842
|
+
}, Me = { class: "card-barra__chart flex-1" }, je = {
|
|
823
843
|
key: 0,
|
|
824
844
|
class: "card-barra__footer mt-3"
|
|
825
|
-
},
|
|
845
|
+
}, He = {
|
|
826
846
|
__name: "CardBarra",
|
|
827
847
|
props: {
|
|
828
848
|
legenda: { type: String, default: null },
|
|
@@ -884,65 +904,67 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
884
904
|
raioBarra: { type: Number, default: 6 },
|
|
885
905
|
linhasReferencia: { type: [Object, Array], default: null },
|
|
886
906
|
exportar: { type: Boolean, default: !1 },
|
|
887
|
-
nomeArquivoExport: { type: String, default: "card-barra.png" }
|
|
907
|
+
nomeArquivoExport: { type: String, default: "card-barra.png" },
|
|
908
|
+
corHover: { type: String, default: null }
|
|
888
909
|
},
|
|
889
910
|
emits: ["botaoAcao", "exportado"],
|
|
890
|
-
setup(t, { emit:
|
|
891
|
-
const
|
|
892
|
-
async function
|
|
893
|
-
await
|
|
894
|
-
nomeArquivo:
|
|
895
|
-
corFundo:
|
|
896
|
-
}),
|
|
911
|
+
setup(t, { emit: g }) {
|
|
912
|
+
const e = t, c = g, { palette: o, cardStyle: S } = st(e), { formatar: v } = ft(e), B = et(null), D = ct;
|
|
913
|
+
async function w() {
|
|
914
|
+
await it(B.value, {
|
|
915
|
+
nomeArquivo: e.nomeArquivoExport,
|
|
916
|
+
corFundo: o.value.bg !== "transparent" ? o.value.bg : null
|
|
917
|
+
}), c("exportado");
|
|
897
918
|
}
|
|
898
|
-
const
|
|
899
|
-
nome:
|
|
900
|
-
cor:
|
|
901
|
-
dados: Array.isArray(
|
|
902
|
-
})) : [{ nome:
|
|
903
|
-
const
|
|
904
|
-
return
|
|
905
|
-
}), K =
|
|
906
|
-
const
|
|
907
|
-
function
|
|
908
|
-
if (!
|
|
909
|
-
const
|
|
910
|
-
return
|
|
911
|
-
topLeft:
|
|
912
|
-
bottomLeft:
|
|
913
|
-
topRight:
|
|
914
|
-
bottomRight:
|
|
919
|
+
const T = F(() => `card-barra--${e.direcao}`), R = F(() => e.orientacao === "horizontal"), X = F(() => Array.isArray(e.series) && e.series.length > 0 ? e.series.map((a, y) => ({
|
|
920
|
+
nome: a.nome ?? `Série ${y + 1}`,
|
|
921
|
+
cor: a.cor || e.cores[y % e.cores.length],
|
|
922
|
+
dados: Array.isArray(a.dados) ? a.dados : []
|
|
923
|
+
})) : [{ nome: e.legenda || "Valores", cor: e.corDetalhes, dados: e.data }]), J = F(() => {
|
|
924
|
+
const a = X.value[0];
|
|
925
|
+
return a ? a.dados.map((y) => y.rotulo) : [];
|
|
926
|
+
}), K = F(() => {
|
|
927
|
+
const a = X.value, y = a.length - 1, n = typeof e.larguraBarra == "number" ? e.larguraBarra : Number(e.larguraBarra) || 0.6, m = e.raioBarra, h = R.value;
|
|
928
|
+
function M(A) {
|
|
929
|
+
if (!e.empilhado || a.length === 1) return m;
|
|
930
|
+
const E = A === 0, C = A === y;
|
|
931
|
+
return h ? {
|
|
932
|
+
topLeft: E ? m : 0,
|
|
933
|
+
bottomLeft: E ? m : 0,
|
|
934
|
+
topRight: C ? m : 0,
|
|
935
|
+
bottomRight: C ? m : 0
|
|
915
936
|
} : {
|
|
916
|
-
bottomLeft:
|
|
917
|
-
bottomRight:
|
|
918
|
-
topLeft:
|
|
919
|
-
topRight:
|
|
937
|
+
bottomLeft: E ? m : 0,
|
|
938
|
+
bottomRight: E ? m : 0,
|
|
939
|
+
topLeft: C ? m : 0,
|
|
940
|
+
topRight: C ? m : 0
|
|
920
941
|
};
|
|
921
942
|
}
|
|
922
943
|
return {
|
|
923
|
-
labels:
|
|
924
|
-
datasets:
|
|
925
|
-
label:
|
|
926
|
-
data:
|
|
927
|
-
|
|
928
|
-
|
|
944
|
+
labels: J.value,
|
|
945
|
+
datasets: a.map((A, E) => ({
|
|
946
|
+
label: A.nome,
|
|
947
|
+
data: A.dados.map((C) => C.quantidade),
|
|
948
|
+
previstos: A.dados.map((C) => C.previsto != null ? C.previsto : null),
|
|
949
|
+
backgroundColor: P(A.cor, 0.72),
|
|
950
|
+
hoverBackgroundColor: e.corHover || A.cor,
|
|
929
951
|
borderWidth: 0,
|
|
930
|
-
borderRadius:
|
|
952
|
+
borderRadius: M(E),
|
|
931
953
|
borderSkipped: !1,
|
|
932
954
|
categoryPercentage: 1,
|
|
933
955
|
barPercentage: n
|
|
934
956
|
}))
|
|
935
957
|
};
|
|
936
958
|
});
|
|
937
|
-
function
|
|
938
|
-
|
|
959
|
+
function _(a, y) {
|
|
960
|
+
y ? Object.assign(a.style, {
|
|
939
961
|
top: "-5px",
|
|
940
962
|
bottom: "auto",
|
|
941
963
|
borderTop: "1px solid rgba(15,23,42,.06)",
|
|
942
964
|
borderLeft: "1px solid rgba(15,23,42,.06)",
|
|
943
965
|
borderRight: "none",
|
|
944
966
|
borderBottom: "none"
|
|
945
|
-
}) : Object.assign(
|
|
967
|
+
}) : Object.assign(a.style, {
|
|
946
968
|
bottom: "-5px",
|
|
947
969
|
top: "auto",
|
|
948
970
|
borderRight: "1px solid rgba(15,23,42,.06)",
|
|
@@ -952,59 +974,71 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
952
974
|
});
|
|
953
975
|
}
|
|
954
976
|
let d = null;
|
|
955
|
-
function
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
977
|
+
function L(a) {
|
|
978
|
+
var St, kt;
|
|
979
|
+
const { chart: y, tooltip: n } = a, m = at(y);
|
|
980
|
+
if (!m) return;
|
|
981
|
+
const h = gt(m, { caretFlexivel: !0 });
|
|
959
982
|
if (n.opacity === 0 || d) {
|
|
960
|
-
|
|
983
|
+
h.style.opacity = "0";
|
|
961
984
|
return;
|
|
962
985
|
}
|
|
963
|
-
const
|
|
964
|
-
var
|
|
965
|
-
const
|
|
966
|
-
return `<div style="display:flex;align-items:center;gap:6px;margin-top:2px;"><span style="width:6px;height:6px;border-radius:999px;background:${
|
|
967
|
-
}).join("");
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
986
|
+
const M = n.title || [], A = n.dataPoints || [], E = h.querySelector(".nc-tt__content"), C = A.map((tt) => {
|
|
987
|
+
var Ct;
|
|
988
|
+
const dt = ((Ct = X.value[tt.datasetIndex]) == null ? void 0 : Ct.cor) || e.corDetalhes, Ft = v(R.value ? tt.parsed.x : tt.parsed.y), Lt = tt.dataset.label && X.value.length > 1 ? `<span style="font-size:11px;color:#64748B;margin-right:6px;">${tt.dataset.label}</span>` : "";
|
|
989
|
+
return `<div style="display:flex;align-items:center;gap:6px;margin-top:2px;"><span style="width:6px;height:6px;border-radius:999px;background:${dt};box-shadow:0 0 0 2px ${P(dt, 0.15)};flex:0 0 auto;"></span>` + Lt + `<span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;margin-left:auto;">${Ft}</span></div>`;
|
|
990
|
+
}).join(""), V = (St = A[0]) == null ? void 0 : St.dataIndex;
|
|
991
|
+
let Y = null;
|
|
992
|
+
if (V != null)
|
|
993
|
+
for (const tt of y.data.datasets) {
|
|
994
|
+
const dt = (kt = tt.previstos) == null ? void 0 : kt[V];
|
|
995
|
+
if (dt != null) {
|
|
996
|
+
Y = dt;
|
|
997
|
+
break;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
const U = Y != null ? `<div style="display:flex;align-items:center;gap:6px;margin-top:6px;padding-top:4px;border-top:1px dashed rgba(15,23,42,.08);"><span style="font-size:11px;color:#64748B;margin-right:6px;">Previsto</span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;margin-left:auto;">${v(Y)}</span></div>` : "";
|
|
1001
|
+
E.innerHTML = `<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${M.join(" ")}</div>` + C + U;
|
|
1002
|
+
const { offsetLeft: H, offsetTop: I } = y.canvas;
|
|
1003
|
+
h.style.opacity = "1", h.style.visibility = "hidden", h.style.left = "0px", h.style.top = "0px";
|
|
1004
|
+
const G = h.offsetWidth, Z = h.offsetHeight, j = 4, N = H + n.caretX, W = I + n.caretY, pt = rt(N, G, m.clientWidth, j), Rt = G / 2, bt = 14, xt = W - bt - Z, vt = xt < j, Tt = vt ? W + bt : xt, $t = h.querySelector(".nc-tt__caret");
|
|
1005
|
+
_($t, vt);
|
|
1006
|
+
const Et = N - (pt - Rt), qt = Math.max(10, Math.min(G - 10, Et));
|
|
1007
|
+
$t.style.left = qt + "px", h.style.left = pt + "px", h.style.top = Tt + "px", h.style.visibility = "visible";
|
|
975
1008
|
}
|
|
976
|
-
const
|
|
977
|
-
const
|
|
1009
|
+
const z = F(() => {
|
|
1010
|
+
const a = R.value, y = {
|
|
978
1011
|
grid: { display: !1, drawBorder: !1 },
|
|
979
1012
|
border: { display: !1 },
|
|
980
|
-
ticks: { color:
|
|
981
|
-
stacked:
|
|
1013
|
+
ticks: { color: o.value.muted, font: { size: 10, family: "'Inter', sans-serif" }, padding: 8 },
|
|
1014
|
+
stacked: e.empilhado
|
|
982
1015
|
}, n = {
|
|
983
1016
|
display: !1,
|
|
984
1017
|
grid: { display: !1 },
|
|
985
1018
|
beginAtZero: !0,
|
|
986
|
-
stacked:
|
|
1019
|
+
stacked: e.empilhado,
|
|
1020
|
+
suggestedMax: u.value.length ? Math.max(...u.value.map((m) => m.valor)) : void 0
|
|
987
1021
|
};
|
|
988
1022
|
return {
|
|
989
1023
|
responsive: !0,
|
|
990
1024
|
maintainAspectRatio: !1,
|
|
991
|
-
indexAxis:
|
|
992
|
-
interaction: { intersect: !1, mode: "index", axis:
|
|
1025
|
+
indexAxis: a ? "y" : "x",
|
|
1026
|
+
interaction: { intersect: !1, mode: "index", axis: a ? "y" : "x" },
|
|
993
1027
|
layout: {
|
|
994
1028
|
padding: {
|
|
995
|
-
top:
|
|
996
|
-
right:
|
|
1029
|
+
top: u.value.length && !a ? 24 : 12,
|
|
1030
|
+
right: a ? 12 : 0,
|
|
997
1031
|
bottom: 0,
|
|
998
|
-
left:
|
|
1032
|
+
left: u.value.length && a ? 60 : 0
|
|
999
1033
|
}
|
|
1000
1034
|
},
|
|
1001
1035
|
plugins: {
|
|
1002
1036
|
legend: {
|
|
1003
|
-
display:
|
|
1037
|
+
display: e.mostrarLegendaSeries && X.value.length > 1,
|
|
1004
1038
|
position: "bottom",
|
|
1005
1039
|
align: "start",
|
|
1006
1040
|
labels: {
|
|
1007
|
-
color:
|
|
1041
|
+
color: o.value.muted,
|
|
1008
1042
|
boxWidth: 8,
|
|
1009
1043
|
boxHeight: 8,
|
|
1010
1044
|
usePointStyle: !0,
|
|
@@ -1015,94 +1049,94 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1015
1049
|
},
|
|
1016
1050
|
tooltip: {
|
|
1017
1051
|
enabled: !1,
|
|
1018
|
-
external:
|
|
1052
|
+
external: L,
|
|
1019
1053
|
callbacks: {
|
|
1020
|
-
title: (
|
|
1021
|
-
var
|
|
1022
|
-
return ((
|
|
1054
|
+
title: (m) => {
|
|
1055
|
+
var h;
|
|
1056
|
+
return ((h = m[0]) == null ? void 0 : h.label) ?? "";
|
|
1023
1057
|
},
|
|
1024
|
-
label: (
|
|
1058
|
+
label: (m) => v(a ? m.parsed.x : m.parsed.y)
|
|
1025
1059
|
}
|
|
1026
1060
|
}
|
|
1027
1061
|
},
|
|
1028
1062
|
scales: {
|
|
1029
|
-
x:
|
|
1030
|
-
y:
|
|
1063
|
+
x: a ? n : y,
|
|
1064
|
+
y: a ? y : n
|
|
1031
1065
|
}
|
|
1032
1066
|
};
|
|
1033
1067
|
});
|
|
1034
|
-
function
|
|
1035
|
-
|
|
1068
|
+
function Q() {
|
|
1069
|
+
c("botaoAcao");
|
|
1036
1070
|
}
|
|
1037
|
-
const
|
|
1038
|
-
valor:
|
|
1039
|
-
rotulo:
|
|
1040
|
-
cor:
|
|
1041
|
-
corRotulo:
|
|
1042
|
-
corTexto:
|
|
1043
|
-
tracejado:
|
|
1044
|
-
espessura:
|
|
1045
|
-
}) : []),
|
|
1071
|
+
const u = F(() => e.linhasReferencia ? (Array.isArray(e.linhasReferencia) ? e.linhasReferencia : [e.linhasReferencia]).filter((y) => y && (typeof y == "number" || typeof y.valor == "number")).map((y) => typeof y == "number" ? { valor: y, rotulo: null, cor: "#0F172A", corRotulo: "#0F172A", corTexto: "#FFFFFF", tracejado: [6, 6], espessura: 1 } : {
|
|
1072
|
+
valor: y.valor,
|
|
1073
|
+
rotulo: y.rotulo ?? null,
|
|
1074
|
+
cor: y.cor || "#0F172A",
|
|
1075
|
+
corRotulo: y.corRotulo || y.cor || "#0F172A",
|
|
1076
|
+
corTexto: y.corTexto || "#FFFFFF",
|
|
1077
|
+
tracejado: y.tracejado || [6, 6],
|
|
1078
|
+
espessura: y.espessura ?? 1
|
|
1079
|
+
}) : []), f = [], l = {
|
|
1046
1080
|
id: "linhaReferencia",
|
|
1047
|
-
afterDatasetsDraw(
|
|
1048
|
-
const
|
|
1049
|
-
if (
|
|
1050
|
-
const { ctx: n, chartArea:
|
|
1051
|
-
|
|
1052
|
-
const
|
|
1053
|
-
if (
|
|
1054
|
-
if (
|
|
1081
|
+
afterDatasetsDraw(a) {
|
|
1082
|
+
const y = u.value;
|
|
1083
|
+
if (f.length = 0, !y.length) return;
|
|
1084
|
+
const { ctx: n, chartArea: m, scales: h } = a, M = R.value, A = M ? h.x : h.y;
|
|
1085
|
+
A && y.forEach((E) => {
|
|
1086
|
+
const C = A.getPixelForValue(E.valor);
|
|
1087
|
+
if (f.push({ linha: E, pos: C, horizontal: M, chartArea: m }), n.save(), n.beginPath(), n.setLineDash(E.tracejado), n.lineWidth = E.espessura, n.strokeStyle = E.cor, M) {
|
|
1088
|
+
if (C < m.left || C > m.right) {
|
|
1055
1089
|
n.restore();
|
|
1056
1090
|
return;
|
|
1057
1091
|
}
|
|
1058
|
-
n.moveTo(
|
|
1092
|
+
n.moveTo(C, m.top), n.lineTo(C, m.bottom);
|
|
1059
1093
|
} else {
|
|
1060
|
-
if (
|
|
1094
|
+
if (C < m.top || C > m.bottom) {
|
|
1061
1095
|
n.restore();
|
|
1062
1096
|
return;
|
|
1063
1097
|
}
|
|
1064
|
-
n.moveTo(
|
|
1098
|
+
n.moveTo(m.left, C), n.lineTo(m.right, C);
|
|
1065
1099
|
}
|
|
1066
|
-
if (n.stroke(), n.setLineDash([]),
|
|
1100
|
+
if (n.stroke(), n.setLineDash([]), E.rotulo) {
|
|
1067
1101
|
n.font = "600 11px 'Inter', sans-serif";
|
|
1068
|
-
const V = 8, Y = 5,
|
|
1069
|
-
let N,
|
|
1070
|
-
|
|
1102
|
+
const V = 8, Y = 5, H = n.measureText(E.rotulo).width, I = 12, G = H + V * 2, Z = I + Y * 2, j = Z / 2;
|
|
1103
|
+
let N, W;
|
|
1104
|
+
M ? (N = C - G / 2, W = m.top - Z - 6, W < 0 && (W = m.top + 6)) : (N = m.left - G - 6, W = C - Z / 2, N < 0 && (N = m.left + 6)), n.fillStyle = E.corRotulo, n.beginPath(), n.roundRect ? n.roundRect(N, W, G, Z, j) : (n.moveTo(N + j, W), n.lineTo(N + G - j, W), n.quadraticCurveTo(N + G, W, N + G, W + j), n.lineTo(N + G, W + Z - j), n.quadraticCurveTo(N + G, W + Z, N + G - j, W + Z), n.lineTo(N + j, W + Z), n.quadraticCurveTo(N, W + Z, N, W + Z - j), n.lineTo(N, W + j), n.quadraticCurveTo(N, W, N + j, W)), n.fill(), n.fillStyle = E.corTexto, n.textBaseline = "middle", n.textAlign = "center", n.fillText(E.rotulo, N + G / 2, W + Z / 2);
|
|
1071
1105
|
}
|
|
1072
1106
|
n.restore();
|
|
1073
1107
|
});
|
|
1074
1108
|
},
|
|
1075
|
-
beforeEvent(
|
|
1076
|
-
if (!
|
|
1109
|
+
beforeEvent(a, y) {
|
|
1110
|
+
if (!f.length) {
|
|
1077
1111
|
d = null;
|
|
1078
1112
|
return;
|
|
1079
1113
|
}
|
|
1080
|
-
const n =
|
|
1114
|
+
const n = y.event;
|
|
1081
1115
|
if (!n || n.type === "mouseout" || n.x == null || n.y == null) {
|
|
1082
1116
|
d = null;
|
|
1083
1117
|
return;
|
|
1084
1118
|
}
|
|
1085
|
-
const
|
|
1086
|
-
let
|
|
1087
|
-
for (const
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1119
|
+
const m = 8;
|
|
1120
|
+
let h = null, M = 1 / 0;
|
|
1121
|
+
for (const A of f) {
|
|
1122
|
+
const E = A.horizontal ? Math.abs(n.x - A.pos) : Math.abs(n.y - A.pos), C = A.horizontal ? n.y >= A.chartArea.top && n.y <= A.chartArea.bottom : n.x >= A.chartArea.left && n.x <= A.chartArea.right;
|
|
1123
|
+
E <= m && C && E < M && (M = E, h = A);
|
|
1090
1124
|
}
|
|
1091
|
-
d =
|
|
1125
|
+
d = h;
|
|
1092
1126
|
},
|
|
1093
|
-
afterEvent(
|
|
1094
|
-
if (!
|
|
1095
|
-
const n =
|
|
1127
|
+
afterEvent(a, y) {
|
|
1128
|
+
if (!f.length) return;
|
|
1129
|
+
const n = y.event;
|
|
1096
1130
|
if (!n) return;
|
|
1097
|
-
const
|
|
1098
|
-
if (!
|
|
1099
|
-
let
|
|
1131
|
+
const m = at(a);
|
|
1132
|
+
if (!m) return;
|
|
1133
|
+
let h = m.querySelector(".nc-tt-linhaRef");
|
|
1100
1134
|
if (!d) {
|
|
1101
|
-
|
|
1135
|
+
h && (h.style.opacity = "0");
|
|
1102
1136
|
return;
|
|
1103
1137
|
}
|
|
1104
|
-
const
|
|
1105
|
-
|
|
1138
|
+
const M = d;
|
|
1139
|
+
h || (h = document.createElement("div"), h.className = "nc-tt-linhaRef", Object.assign(h.style, {
|
|
1106
1140
|
position: "absolute",
|
|
1107
1141
|
pointerEvents: "none",
|
|
1108
1142
|
transform: "translate(-50%, calc(-100% - 12px))",
|
|
@@ -1117,119 +1151,119 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1117
1151
|
zIndex: "11",
|
|
1118
1152
|
fontFamily: "'Inter', sans-serif",
|
|
1119
1153
|
textAlign: "left"
|
|
1120
|
-
}),
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1123
|
-
const V =
|
|
1124
|
-
|
|
1125
|
-
const Y =
|
|
1126
|
-
let
|
|
1127
|
-
|
|
1128
|
-
const
|
|
1129
|
-
let
|
|
1130
|
-
const N =
|
|
1131
|
-
|
|
1154
|
+
}), m.appendChild(h));
|
|
1155
|
+
const A = M.linha.cor || "#0F172A", E = v(M.linha.valor), C = M.linha.rotulo;
|
|
1156
|
+
h.innerHTML = (C ? `<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${C}</div>` : "") + `<div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${A};box-shadow:0 0 0 2px ${P(A, 0.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${E}</span></div>`;
|
|
1157
|
+
const V = a.canvas;
|
|
1158
|
+
h.style.opacity = "1", h.style.visibility = "hidden", h.style.left = "0px", h.style.top = "0px";
|
|
1159
|
+
const Y = h.offsetWidth, U = h.offsetHeight, H = 4;
|
|
1160
|
+
let I, G;
|
|
1161
|
+
M.horizontal ? (I = V.offsetLeft + M.pos, G = V.offsetTop + n.y) : (I = V.offsetLeft + n.x, G = V.offsetTop + M.pos);
|
|
1162
|
+
const Z = rt(I, Y, m.clientWidth, H);
|
|
1163
|
+
let j = G;
|
|
1164
|
+
const N = U + 16 + H;
|
|
1165
|
+
j < N && (j = N), h.style.left = Z + "px", h.style.top = j + "px", h.style.visibility = "visible";
|
|
1132
1166
|
}
|
|
1133
|
-
},
|
|
1134
|
-
return (
|
|
1167
|
+
}, x = F(() => u.value.length ? [l] : []);
|
|
1168
|
+
return (a, y) => (s(), i("div", {
|
|
1135
1169
|
ref_key: "cardRef",
|
|
1136
|
-
ref:
|
|
1137
|
-
class:
|
|
1138
|
-
style:
|
|
1170
|
+
ref: B,
|
|
1171
|
+
class: nt(["card-barra p-4 flex", T.value]),
|
|
1172
|
+
style: b(r(S))
|
|
1139
1173
|
}, [
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1174
|
+
$("div", Te, [
|
|
1175
|
+
$("div", Ee, [
|
|
1176
|
+
a.$slots.legenda || t.legenda || a.$slots.sublegenda || t.sublegenda ? (s(), i("div", qe, [
|
|
1177
|
+
a.$slots.legenda || t.legenda ? (s(), i("div", {
|
|
1144
1178
|
key: 0,
|
|
1145
1179
|
class: "text-xs font-medium",
|
|
1146
|
-
style:
|
|
1180
|
+
style: b({ color: r(o).text, opacity: 0.85 })
|
|
1147
1181
|
}, [
|
|
1148
|
-
|
|
1149
|
-
|
|
1182
|
+
q(a.$slots, "legenda", {}, () => [
|
|
1183
|
+
O(k(t.legenda), 1)
|
|
1150
1184
|
], !0)
|
|
1151
|
-
], 4)) :
|
|
1152
|
-
|
|
1185
|
+
], 4)) : p("", !0),
|
|
1186
|
+
a.$slots.sublegenda || t.sublegenda ? (s(), i("div", {
|
|
1153
1187
|
key: 1,
|
|
1154
1188
|
class: "text-xs",
|
|
1155
|
-
style:
|
|
1189
|
+
style: b({ color: r(o).muted })
|
|
1156
1190
|
}, [
|
|
1157
|
-
|
|
1158
|
-
|
|
1191
|
+
q(a.$slots, "sublegenda", {}, () => [
|
|
1192
|
+
O(k(t.sublegenda), 1)
|
|
1159
1193
|
], !0)
|
|
1160
|
-
], 4)) :
|
|
1161
|
-
])) :
|
|
1162
|
-
|
|
1163
|
-
|
|
1194
|
+
], 4)) : p("", !0)
|
|
1195
|
+
])) : p("", !0),
|
|
1196
|
+
a.$slots.actions || t.botaoVisivel || t.exportar ? (s(), i("div", Fe, [
|
|
1197
|
+
q(a.$slots, "actions", {}, () => [
|
|
1164
1198
|
t.botaoVisivel ? (s(), i("button", {
|
|
1165
1199
|
key: 0,
|
|
1166
|
-
class: "
|
|
1167
|
-
style:
|
|
1168
|
-
onClick:
|
|
1200
|
+
class: "nc-btn inline-flex align-items-center",
|
|
1201
|
+
style: b({ color: r(o).text, borderColor: r(P)(r(o).text, 0.18) }),
|
|
1202
|
+
onClick: Q
|
|
1169
1203
|
}, [
|
|
1170
|
-
|
|
1171
|
-
], 4)) :
|
|
1204
|
+
$("span", null, k(t.textoBotao), 1)
|
|
1205
|
+
], 4)) : p("", !0)
|
|
1172
1206
|
], !0),
|
|
1173
1207
|
t.exportar ? (s(), i("button", {
|
|
1174
1208
|
key: 0,
|
|
1175
1209
|
type: "button",
|
|
1176
|
-
class: "
|
|
1177
|
-
style:
|
|
1210
|
+
class: "nc-exportar inline-flex align-items-center justify-content-center",
|
|
1211
|
+
style: b({ color: r(o).muted, borderColor: r(P)(r(o).text, 0.18) }),
|
|
1178
1212
|
title: "Exportar como imagem",
|
|
1179
1213
|
"aria-label": "Exportar como imagem",
|
|
1180
|
-
onClick:
|
|
1181
|
-
innerHTML:
|
|
1182
|
-
}, null, 12,
|
|
1183
|
-
])) :
|
|
1214
|
+
onClick: w,
|
|
1215
|
+
innerHTML: r(D)
|
|
1216
|
+
}, null, 12, Le)) : p("", !0)
|
|
1217
|
+
])) : p("", !0)
|
|
1184
1218
|
]),
|
|
1185
|
-
|
|
1186
|
-
|
|
1219
|
+
a.$slots.titulo || t.titulo || a.$slots.descricao || t.descricao ? (s(), i("div", ze, [
|
|
1220
|
+
a.$slots.titulo || t.titulo ? (s(), i("div", {
|
|
1187
1221
|
key: 0,
|
|
1188
1222
|
class: "m-0 text-3xl font-semibold",
|
|
1189
|
-
style:
|
|
1223
|
+
style: b({ color: r(o).text, lineHeight: "33px", letterSpacing: "-1px" })
|
|
1190
1224
|
}, [
|
|
1191
|
-
|
|
1192
|
-
|
|
1225
|
+
q(a.$slots, "titulo", {}, () => [
|
|
1226
|
+
O(k(t.titulo), 1)
|
|
1193
1227
|
], !0)
|
|
1194
|
-
], 4)) :
|
|
1195
|
-
|
|
1228
|
+
], 4)) : p("", !0),
|
|
1229
|
+
a.$slots.descricao || t.descricao ? (s(), i("div", {
|
|
1196
1230
|
key: 1,
|
|
1197
1231
|
class: "text-sm mt-1",
|
|
1198
|
-
style:
|
|
1232
|
+
style: b({ color: r(o).muted })
|
|
1199
1233
|
}, [
|
|
1200
|
-
|
|
1201
|
-
|
|
1234
|
+
q(a.$slots, "descricao", {}, () => [
|
|
1235
|
+
O(k(t.descricao), 1)
|
|
1202
1236
|
], !0)
|
|
1203
|
-
], 4)) :
|
|
1204
|
-
])) :
|
|
1237
|
+
], 4)) : p("", !0)
|
|
1238
|
+
])) : p("", !0)
|
|
1205
1239
|
]),
|
|
1206
|
-
|
|
1207
|
-
|
|
1240
|
+
$("div", Me, [
|
|
1241
|
+
ut(lt, {
|
|
1208
1242
|
type: "bar",
|
|
1209
1243
|
data: K.value,
|
|
1210
|
-
options:
|
|
1211
|
-
plugins:
|
|
1244
|
+
options: z.value,
|
|
1245
|
+
plugins: x.value,
|
|
1212
1246
|
height: t.height
|
|
1213
1247
|
}, null, 8, ["data", "options", "plugins", "height"])
|
|
1214
1248
|
]),
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
])) :
|
|
1249
|
+
a.$slots.footer ? (s(), i("div", je, [
|
|
1250
|
+
q(a.$slots, "footer", {}, void 0, !0)
|
|
1251
|
+
])) : p("", !0)
|
|
1218
1252
|
], 6));
|
|
1219
1253
|
}
|
|
1220
|
-
},
|
|
1254
|
+
}, Ve = /* @__PURE__ */ ot(He, [["__scopeId", "data-v-6eb3d4af"]]), Ne = { class: "card-polar__topo flex align-items-start justify-content-between gap-3" }, Pe = {
|
|
1221
1255
|
key: 0,
|
|
1222
|
-
class: "
|
|
1223
|
-
},
|
|
1256
|
+
class: "nc-legendas-flex flex flex-column"
|
|
1257
|
+
}, De = {
|
|
1224
1258
|
key: 1,
|
|
1225
|
-
class: "
|
|
1226
|
-
},
|
|
1259
|
+
class: "nc-actions inline-flex align-items-center gap-2"
|
|
1260
|
+
}, Ie = ["innerHTML"], We = { class: "card-polar__corpo flex align-items-center" }, Oe = { class: "nc-tabela flex flex-column" }, Xe = { class: "nc-tabela-valor" }, Ye = { class: "nc-tabela-rotulo inline-flex align-items-center gap-2" }, Je = { class: "nc-tabela-valor" }, Qe = { class: "card-polar__chart-wrap flex align-items-center justify-content-center" }, Ue = { class: "card-polar__chart" }, Ge = {
|
|
1227
1261
|
key: 0,
|
|
1228
1262
|
class: "card-polar__centro-bottom"
|
|
1229
|
-
},
|
|
1263
|
+
}, Ze = {
|
|
1230
1264
|
key: 0,
|
|
1231
1265
|
class: "card-polar__footer mt-3"
|
|
1232
|
-
},
|
|
1266
|
+
}, Ke = {
|
|
1233
1267
|
__name: "CardPolar",
|
|
1234
1268
|
props: {
|
|
1235
1269
|
legenda: { type: String, default: null },
|
|
@@ -1242,10 +1276,7 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1242
1276
|
corBorda: { type: String, default: "#EAE8E8" },
|
|
1243
1277
|
borderRadius: { type: [String, Number], default: "0.75rem" },
|
|
1244
1278
|
sombra: { type: String, default: "0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)" },
|
|
1245
|
-
|
|
1246
|
-
type: Array,
|
|
1247
|
-
default: () => ["#0A1A6B", "#1535B5", "#1A5FD4", "#2F8DDF", "#5BB1E8", "#93D0F0", "#CDEAF6"]
|
|
1248
|
-
},
|
|
1279
|
+
corDetalhes: { type: String, default: "#3B82F6" },
|
|
1249
1280
|
textoBotao: { type: String, default: "Ver mais" },
|
|
1250
1281
|
botaoVisivel: { type: Boolean, default: !1 },
|
|
1251
1282
|
direcao: {
|
|
@@ -1281,46 +1312,47 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1281
1312
|
nomeArquivoExport: { type: String, default: "card-polar.png" }
|
|
1282
1313
|
},
|
|
1283
1314
|
emits: ["botaoAcao", "exportado"],
|
|
1284
|
-
setup(t, { emit:
|
|
1285
|
-
const
|
|
1286
|
-
async function
|
|
1287
|
-
await
|
|
1288
|
-
nomeArquivo:
|
|
1289
|
-
corFundo:
|
|
1290
|
-
}),
|
|
1315
|
+
setup(t, { emit: g }) {
|
|
1316
|
+
const e = t, c = g, { palette: o, cardStyle: S } = st(e), { formatar: v } = ft(e), B = et(null), D = ct;
|
|
1317
|
+
async function w() {
|
|
1318
|
+
await it(B.value, {
|
|
1319
|
+
nomeArquivo: e.nomeArquivoExport,
|
|
1320
|
+
corFundo: o.value.bg !== "transparent" ? o.value.bg : null
|
|
1321
|
+
}), c("exportado");
|
|
1291
1322
|
}
|
|
1292
|
-
const
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1323
|
+
const T = F(() => `card-polar--${e.direcao}`), R = F(() => {
|
|
1324
|
+
const d = ht(e.corDetalhes, e.data.length);
|
|
1325
|
+
return e.data.map((L, z) => L.cor ?? d[z]);
|
|
1326
|
+
}), X = F(() => ({
|
|
1327
|
+
labels: e.data.map((d) => d.rotulo),
|
|
1296
1328
|
datasets: [
|
|
1297
1329
|
{
|
|
1298
|
-
data:
|
|
1299
|
-
backgroundColor:
|
|
1300
|
-
borderColor:
|
|
1330
|
+
data: e.data.map((d) => d.quantidade),
|
|
1331
|
+
backgroundColor: R.value,
|
|
1332
|
+
borderColor: R.value,
|
|
1301
1333
|
borderWidth: 0,
|
|
1302
1334
|
hoverOffset: 6
|
|
1303
1335
|
}
|
|
1304
1336
|
]
|
|
1305
1337
|
}));
|
|
1306
|
-
function
|
|
1307
|
-
const { chart:
|
|
1308
|
-
if (!
|
|
1309
|
-
const
|
|
1310
|
-
if (
|
|
1311
|
-
|
|
1338
|
+
function J(d) {
|
|
1339
|
+
const { chart: L, tooltip: z } = d, Q = at(L);
|
|
1340
|
+
if (!Q) return;
|
|
1341
|
+
const u = gt(Q);
|
|
1342
|
+
if (z.opacity === 0) {
|
|
1343
|
+
u.style.opacity = "0";
|
|
1312
1344
|
return;
|
|
1313
1345
|
}
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1316
|
-
const { offsetLeft: n, offsetTop:
|
|
1317
|
-
|
|
1318
|
-
const
|
|
1319
|
-
let
|
|
1320
|
-
const V =
|
|
1321
|
-
|
|
1346
|
+
const f = z.title || [], l = z.dataPoints && z.dataPoints[0], x = l ? R.value[l.dataIndex] : "#3B82F6", a = l ? v(l.parsed.r ?? l.parsed) : "", y = u.querySelector(".nc-tt__content");
|
|
1347
|
+
y.innerHTML = `<div style="font-size:9px;font-weight:500;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1;margin-bottom:4px;">${f.join(" ")}</div><div style="display:flex;align-items:center;gap:6px;"><span style="width:6px;height:6px;border-radius:999px;background:${x};box-shadow:0 0 0 2px ${P(x, 0.15)};flex:0 0 auto;"></span><span style="font-size:12px;font-weight:700;color:#0F172A;letter-spacing:-.01em;line-height:1.1;">${a}</span></div>`;
|
|
1348
|
+
const { offsetLeft: n, offsetTop: m } = L.canvas;
|
|
1349
|
+
u.style.opacity = "1", u.style.visibility = "hidden", u.style.left = "0px", u.style.top = "0px";
|
|
1350
|
+
const h = u.offsetWidth, M = u.offsetHeight, A = 4, E = rt(n + z.caretX, h, Q.clientWidth, A);
|
|
1351
|
+
let C = m + z.caretY;
|
|
1352
|
+
const V = M + 16 + A;
|
|
1353
|
+
C < V && (C = V), u.style.left = E + "px", u.style.top = C + "px", u.style.visibility = "visible";
|
|
1322
1354
|
}
|
|
1323
|
-
const K =
|
|
1355
|
+
const K = F(() => ({
|
|
1324
1356
|
responsive: !0,
|
|
1325
1357
|
maintainAspectRatio: !1,
|
|
1326
1358
|
layout: { padding: 4 },
|
|
@@ -1329,12 +1361,12 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1329
1361
|
beginAtZero: !0,
|
|
1330
1362
|
ticks: { display: !1, backdropColor: "transparent" },
|
|
1331
1363
|
grid: {
|
|
1332
|
-
display:
|
|
1333
|
-
color:
|
|
1364
|
+
display: e.mostrarLinhasGrade,
|
|
1365
|
+
color: P(o.value.muted, 0.18)
|
|
1334
1366
|
},
|
|
1335
1367
|
angleLines: {
|
|
1336
|
-
display:
|
|
1337
|
-
color:
|
|
1368
|
+
display: e.mostrarLinhasGrade,
|
|
1369
|
+
color: P(o.value.muted, 0.18)
|
|
1338
1370
|
},
|
|
1339
1371
|
pointLabels: { display: !1 }
|
|
1340
1372
|
}
|
|
@@ -1343,150 +1375,153 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1343
1375
|
legend: { display: !1 },
|
|
1344
1376
|
tooltip: {
|
|
1345
1377
|
enabled: !1,
|
|
1346
|
-
external:
|
|
1378
|
+
external: J,
|
|
1347
1379
|
callbacks: {
|
|
1348
1380
|
title: (d) => {
|
|
1349
|
-
var
|
|
1350
|
-
return ((
|
|
1381
|
+
var L;
|
|
1382
|
+
return ((L = d[0]) == null ? void 0 : L.label) ?? "";
|
|
1351
1383
|
},
|
|
1352
1384
|
label: (d) => {
|
|
1353
|
-
var
|
|
1354
|
-
return
|
|
1385
|
+
var L;
|
|
1386
|
+
return v(((L = d.parsed) == null ? void 0 : L.r) ?? d.parsed);
|
|
1355
1387
|
}
|
|
1356
1388
|
}
|
|
1357
1389
|
}
|
|
1358
1390
|
}
|
|
1359
1391
|
}));
|
|
1360
|
-
function
|
|
1361
|
-
|
|
1392
|
+
function _() {
|
|
1393
|
+
c("botaoAcao");
|
|
1362
1394
|
}
|
|
1363
|
-
return (d,
|
|
1395
|
+
return (d, L) => (s(), i("div", {
|
|
1364
1396
|
ref_key: "cardRef",
|
|
1365
|
-
ref:
|
|
1366
|
-
class:
|
|
1367
|
-
style:
|
|
1397
|
+
ref: B,
|
|
1398
|
+
class: nt(["card-polar p-4 flex flex-column", T.value]),
|
|
1399
|
+
style: b(r(S))
|
|
1368
1400
|
}, [
|
|
1369
|
-
|
|
1370
|
-
d.$slots.legenda || t.legenda || d.$slots.sublegenda || t.sublegenda ? (s(), i("div",
|
|
1401
|
+
$("div", Ne, [
|
|
1402
|
+
d.$slots.legenda || t.legenda || d.$slots.sublegenda || t.sublegenda ? (s(), i("div", Pe, [
|
|
1371
1403
|
d.$slots.legenda || t.legenda ? (s(), i("div", {
|
|
1372
1404
|
key: 0,
|
|
1373
1405
|
class: "text-xs font-medium",
|
|
1374
|
-
style:
|
|
1406
|
+
style: b({ color: r(o).text, opacity: 0.95 })
|
|
1375
1407
|
}, [
|
|
1376
|
-
|
|
1377
|
-
|
|
1408
|
+
q(d.$slots, "legenda", {}, () => [
|
|
1409
|
+
O(k(t.legenda), 1)
|
|
1378
1410
|
], !0)
|
|
1379
|
-
], 4)) :
|
|
1411
|
+
], 4)) : p("", !0),
|
|
1380
1412
|
d.$slots.sublegenda || t.sublegenda ? (s(), i("div", {
|
|
1381
1413
|
key: 1,
|
|
1382
1414
|
class: "text-xs",
|
|
1383
|
-
style:
|
|
1415
|
+
style: b({ color: r(o).muted })
|
|
1384
1416
|
}, [
|
|
1385
|
-
|
|
1386
|
-
|
|
1417
|
+
q(d.$slots, "sublegenda", {}, () => [
|
|
1418
|
+
O(k(t.sublegenda), 1)
|
|
1387
1419
|
], !0)
|
|
1388
|
-
], 4)) :
|
|
1389
|
-
])) :
|
|
1390
|
-
d.$slots.actions || t.botaoVisivel || t.exportar ? (s(), i("div",
|
|
1391
|
-
|
|
1420
|
+
], 4)) : p("", !0)
|
|
1421
|
+
])) : p("", !0),
|
|
1422
|
+
d.$slots.actions || t.botaoVisivel || t.exportar ? (s(), i("div", De, [
|
|
1423
|
+
q(d.$slots, "actions", {}, () => [
|
|
1392
1424
|
t.botaoVisivel ? (s(), i("button", {
|
|
1393
1425
|
key: 0,
|
|
1394
|
-
class: "
|
|
1395
|
-
style:
|
|
1396
|
-
onClick:
|
|
1426
|
+
class: "nc-btn inline-flex align-items-center",
|
|
1427
|
+
style: b({ color: r(o).text, borderColor: r(P)(r(o).text, 0.18) }),
|
|
1428
|
+
onClick: _
|
|
1397
1429
|
}, [
|
|
1398
|
-
|
|
1399
|
-
], 4)) :
|
|
1430
|
+
$("span", null, k(t.textoBotao), 1)
|
|
1431
|
+
], 4)) : p("", !0)
|
|
1400
1432
|
], !0),
|
|
1401
1433
|
t.exportar ? (s(), i("button", {
|
|
1402
1434
|
key: 0,
|
|
1403
1435
|
type: "button",
|
|
1404
|
-
class: "
|
|
1405
|
-
style:
|
|
1436
|
+
class: "nc-exportar inline-flex align-items-center justify-content-center",
|
|
1437
|
+
style: b({ color: r(o).muted, borderColor: r(P)(r(o).text, 0.18) }),
|
|
1406
1438
|
title: "Exportar como imagem",
|
|
1407
1439
|
"aria-label": "Exportar como imagem",
|
|
1408
|
-
onClick:
|
|
1409
|
-
innerHTML:
|
|
1410
|
-
}, null, 12,
|
|
1411
|
-
])) :
|
|
1440
|
+
onClick: w,
|
|
1441
|
+
innerHTML: r(D)
|
|
1442
|
+
}, null, 12, Ie)) : p("", !0)
|
|
1443
|
+
])) : p("", !0)
|
|
1412
1444
|
]),
|
|
1413
|
-
|
|
1414
|
-
|
|
1445
|
+
$("div", We, [
|
|
1446
|
+
$("div", Oe, [
|
|
1415
1447
|
t.mostrarCabecalho ? (s(), i("div", {
|
|
1416
1448
|
key: 0,
|
|
1417
|
-
class: "
|
|
1418
|
-
style:
|
|
1449
|
+
class: "nc-tabela-cab flex align-items-center justify-content-between",
|
|
1450
|
+
style: b({ color: r(o).muted, borderColor: r(P)(r(o).muted, 0.25) })
|
|
1419
1451
|
}, [
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
], 4)) :
|
|
1423
|
-
(s(!0), i(
|
|
1424
|
-
key:
|
|
1425
|
-
class: "
|
|
1426
|
-
style:
|
|
1452
|
+
$("span", null, k(t.rotuloCategoria), 1),
|
|
1453
|
+
$("span", Xe, k(t.rotuloQuantidade), 1)
|
|
1454
|
+
], 4)) : p("", !0),
|
|
1455
|
+
(s(!0), i(mt, null, yt(t.data, (z, Q) => (s(), i("div", {
|
|
1456
|
+
key: Q,
|
|
1457
|
+
class: "nc-tabela-linha flex align-items-center justify-content-between",
|
|
1458
|
+
style: b({ color: r(o).text })
|
|
1427
1459
|
}, [
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
class: "
|
|
1431
|
-
style:
|
|
1460
|
+
$("span", Ye, [
|
|
1461
|
+
$("span", {
|
|
1462
|
+
class: "nc-bolinha",
|
|
1463
|
+
style: b({ background: R.value[Q] })
|
|
1432
1464
|
}, null, 4),
|
|
1433
|
-
|
|
1465
|
+
$("span", null, k(z.rotulo), 1)
|
|
1434
1466
|
]),
|
|
1435
|
-
|
|
1467
|
+
$("span", Je, k(r(v)(z.quantidade)), 1)
|
|
1436
1468
|
], 4))), 128))
|
|
1437
1469
|
]),
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1470
|
+
$("div", Qe, [
|
|
1471
|
+
$("div", Ue, [
|
|
1472
|
+
ut(lt, {
|
|
1441
1473
|
type: "polarArea",
|
|
1442
|
-
data:
|
|
1474
|
+
data: X.value,
|
|
1443
1475
|
options: K.value,
|
|
1444
1476
|
height: t.height
|
|
1445
1477
|
}, null, 8, ["data", "options", "height"]),
|
|
1446
|
-
d.$slots.titulo || t.titulo || d.$slots.descricao || t.descricao ? (s(), i("div",
|
|
1478
|
+
d.$slots.titulo || t.titulo || d.$slots.descricao || t.descricao ? (s(), i("div", Ge, [
|
|
1447
1479
|
d.$slots.titulo || t.titulo ? (s(), i("div", {
|
|
1448
1480
|
key: 0,
|
|
1449
1481
|
class: "card-polar__centro-titulo m-0 text-3xl font-semibold",
|
|
1450
|
-
style:
|
|
1482
|
+
style: b({ color: r(o).text, lineHeight: "33px", letterSpacing: "-1px" })
|
|
1451
1483
|
}, [
|
|
1452
|
-
|
|
1453
|
-
|
|
1484
|
+
q(d.$slots, "titulo", {}, () => [
|
|
1485
|
+
O(k(t.titulo), 1)
|
|
1454
1486
|
], !0)
|
|
1455
|
-
], 4)) :
|
|
1487
|
+
], 4)) : p("", !0),
|
|
1456
1488
|
d.$slots.descricao || t.descricao ? (s(), i("div", {
|
|
1457
1489
|
key: 1,
|
|
1458
1490
|
class: "card-polar__centro-desc",
|
|
1459
|
-
style:
|
|
1491
|
+
style: b({ color: r(o).muted })
|
|
1460
1492
|
}, [
|
|
1461
|
-
|
|
1462
|
-
|
|
1493
|
+
q(d.$slots, "descricao", {}, () => [
|
|
1494
|
+
O(k(t.descricao), 1)
|
|
1463
1495
|
], !0)
|
|
1464
|
-
], 4)) :
|
|
1465
|
-
])) :
|
|
1496
|
+
], 4)) : p("", !0)
|
|
1497
|
+
])) : p("", !0)
|
|
1466
1498
|
])
|
|
1467
1499
|
])
|
|
1468
1500
|
]),
|
|
1469
|
-
d.$slots.footer ? (s(), i("div",
|
|
1470
|
-
|
|
1471
|
-
])) :
|
|
1501
|
+
d.$slots.footer ? (s(), i("div", Ze, [
|
|
1502
|
+
q(d.$slots, "footer", {}, void 0, !0)
|
|
1503
|
+
])) : p("", !0)
|
|
1472
1504
|
], 6));
|
|
1473
1505
|
}
|
|
1474
|
-
},
|
|
1506
|
+
}, _e = /* @__PURE__ */ ot(Ke, [["__scopeId", "data-v-94cbf2b0"]]), to = { class: "card-progresso__topo flex align-items-start justify-content-between gap-3" }, eo = {
|
|
1475
1507
|
key: 0,
|
|
1476
|
-
class: "
|
|
1477
|
-
},
|
|
1508
|
+
class: "nc-legendas-flex flex flex-column"
|
|
1509
|
+
}, oo = {
|
|
1478
1510
|
key: 1,
|
|
1479
|
-
class: "
|
|
1480
|
-
},
|
|
1511
|
+
class: "nc-actions inline-flex align-items-center gap-2"
|
|
1512
|
+
}, ao = ["innerHTML"], ro = {
|
|
1481
1513
|
key: 0,
|
|
1482
1514
|
class: "card-progresso__titulos mt-3 mb-2 flex flex-column"
|
|
1483
|
-
},
|
|
1515
|
+
}, no = { class: "card-progresso__corpo flex align-items-center flex-wrap" }, lo = {
|
|
1484
1516
|
key: 0,
|
|
1485
1517
|
class: "card-progresso__chart-wrap flex align-items-center justify-content-center"
|
|
1486
|
-
},
|
|
1518
|
+
}, so = { class: "card-progresso__chart" }, io = { class: "nc-centro flex flex-column align-items-center justify-content-center" }, co = { class: "card-progresso__lista flex flex-column" }, uo = { class: "card-progresso__item-cab flex align-items-center justify-content-between" }, fo = {
|
|
1519
|
+
key: 0,
|
|
1520
|
+
class: "card-progresso__item-valor inline-flex align-items-center gap-2"
|
|
1521
|
+
}, po = { key: 0 }, go = {
|
|
1487
1522
|
key: 1,
|
|
1488
1523
|
class: "card-progresso__footer mt-3"
|
|
1489
|
-
},
|
|
1524
|
+
}, mo = {
|
|
1490
1525
|
__name: "CardProgresso",
|
|
1491
1526
|
props: {
|
|
1492
1527
|
legenda: { type: String, default: null },
|
|
@@ -1499,11 +1534,8 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1499
1534
|
corBorda: { type: String, default: "#EAE8E8" },
|
|
1500
1535
|
borderRadius: { type: [String, Number], default: "0.75rem" },
|
|
1501
1536
|
sombra: { type: String, default: "0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06)" },
|
|
1502
|
-
cores: {
|
|
1503
|
-
type: Array,
|
|
1504
|
-
default: () => ["#3B82F6", "#10B981", "#F59E0B", "#EF4444", "#8B5CF6", "#06B6D4", "#EC4899"]
|
|
1505
|
-
},
|
|
1506
1537
|
corDetalhes: { type: String, default: "#3B82F6" },
|
|
1538
|
+
corExcesso: { type: String, default: "#EF4444" },
|
|
1507
1539
|
textoBotao: { type: String, default: "Ver mais" },
|
|
1508
1540
|
botaoVisivel: { type: Boolean, default: !1 },
|
|
1509
1541
|
direcao: {
|
|
@@ -1543,31 +1575,42 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1543
1575
|
nomeArquivoExport: { type: String, default: "card-progresso.png" }
|
|
1544
1576
|
},
|
|
1545
1577
|
emits: ["botaoAcao", "exportado"],
|
|
1546
|
-
setup(t, { emit:
|
|
1547
|
-
const
|
|
1548
|
-
async function
|
|
1549
|
-
await
|
|
1550
|
-
nomeArquivo:
|
|
1551
|
-
corFundo:
|
|
1552
|
-
}),
|
|
1578
|
+
setup(t, { emit: g }) {
|
|
1579
|
+
const e = t, c = g, { palette: o, cardStyle: S } = st(e), { formatar: v } = ft(e), B = et(null), D = ct;
|
|
1580
|
+
async function w() {
|
|
1581
|
+
await it(B.value, {
|
|
1582
|
+
nomeArquivo: e.nomeArquivoExport,
|
|
1583
|
+
corFundo: o.value.bg !== "transparent" ? o.value.bg : null
|
|
1584
|
+
}), c("exportado");
|
|
1553
1585
|
}
|
|
1554
|
-
const
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1586
|
+
const T = F(() => `card-progresso--${e.direcao}`), R = F(() => {
|
|
1587
|
+
const f = ht(e.corDetalhes, e.data.length);
|
|
1588
|
+
return e.data.map((l, x) => {
|
|
1589
|
+
const a = Number(l.meta ?? e.metaPadrao) || 0, y = Number(l.quantidade) || 0, n = l.cor ?? f[x], m = l.modo === "reducao";
|
|
1590
|
+
let h;
|
|
1591
|
+
if (m) {
|
|
1592
|
+
const M = Number(l.valor_referencia) || 0, A = M - a;
|
|
1593
|
+
h = A > 0 ? Math.max(0, Math.min(100, (M - y) / A * 100)) : 0;
|
|
1594
|
+
} else
|
|
1595
|
+
h = a > 0 ? Math.max(0, Math.min(100, y / a * 100)) : 0;
|
|
1596
|
+
return { rotulo: l.rotulo, quantidade: y, meta: a, valorReferencia: l.valor_referencia ?? null, cor: n, percentual: h, reducao: m };
|
|
1597
|
+
});
|
|
1598
|
+
}), X = F(
|
|
1599
|
+
() => typeof e.alturaBarra == "number" ? `${e.alturaBarra}px` : e.alturaBarra
|
|
1600
|
+
), J = F(
|
|
1601
|
+
() => typeof e.raioBarra == "number" ? `${e.raioBarra}px` : e.raioBarra
|
|
1602
|
+
), K = F(() => R.value.reduce((f, l) => f + l.quantidade, 0)), _ = F(() => R.value.reduce((f, l) => f + l.meta, 0)), d = F(() => {
|
|
1603
|
+
if (!R.value.length) return 0;
|
|
1604
|
+
const f = (x) => x.reducao && x.valorReferencia != null ? Math.max(0, Number(x.valorReferencia) - x.meta) : x.meta, l = R.value.reduce((x, a) => x + f(a), 0);
|
|
1605
|
+
return l <= 0 ? 0 : R.value.reduce((x, a) => x + a.percentual * f(a), 0) / l;
|
|
1606
|
+
}), L = F(() => R.value.every((f) => f.reducao)), z = F(() => {
|
|
1607
|
+
const f = Math.min(d.value, 100), l = Math.max(0, 100 - f), x = L.value ? e.corExcesso : e.corDetalhes;
|
|
1565
1608
|
return {
|
|
1566
1609
|
labels: ["Progresso", "Restante"],
|
|
1567
1610
|
datasets: [
|
|
1568
1611
|
{
|
|
1569
|
-
data: [
|
|
1570
|
-
backgroundColor: [
|
|
1612
|
+
data: [f, l],
|
|
1613
|
+
backgroundColor: [x, P(o.value.muted, 0.15)],
|
|
1571
1614
|
borderWidth: 0,
|
|
1572
1615
|
borderColor: "transparent",
|
|
1573
1616
|
hoverOffset: 0,
|
|
@@ -1575,10 +1618,10 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1575
1618
|
}
|
|
1576
1619
|
]
|
|
1577
1620
|
};
|
|
1578
|
-
}),
|
|
1621
|
+
}), Q = F(() => ({
|
|
1579
1622
|
responsive: !0,
|
|
1580
1623
|
maintainAspectRatio: !1,
|
|
1581
|
-
cutout:
|
|
1624
|
+
cutout: e.cutout,
|
|
1582
1625
|
rotation: -90,
|
|
1583
1626
|
circumference: 360,
|
|
1584
1627
|
layout: { padding: 4 },
|
|
@@ -1587,165 +1630,171 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1587
1630
|
tooltip: { enabled: !1 }
|
|
1588
1631
|
}
|
|
1589
1632
|
}));
|
|
1590
|
-
function
|
|
1591
|
-
|
|
1633
|
+
function u() {
|
|
1634
|
+
c("botaoAcao");
|
|
1592
1635
|
}
|
|
1593
|
-
return (
|
|
1636
|
+
return (f, l) => (s(), i("div", {
|
|
1594
1637
|
ref_key: "cardRef",
|
|
1595
|
-
ref:
|
|
1596
|
-
class:
|
|
1597
|
-
style:
|
|
1638
|
+
ref: B,
|
|
1639
|
+
class: nt(["card-progresso p-4 flex flex-column", T.value]),
|
|
1640
|
+
style: b(r(S))
|
|
1598
1641
|
}, [
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1642
|
+
$("div", to, [
|
|
1643
|
+
f.$slots.legenda || t.legenda || f.$slots.sublegenda || t.sublegenda ? (s(), i("div", eo, [
|
|
1644
|
+
f.$slots.legenda || t.legenda ? (s(), i("div", {
|
|
1602
1645
|
key: 0,
|
|
1603
1646
|
class: "text-xs font-medium",
|
|
1604
|
-
style:
|
|
1647
|
+
style: b({ color: r(o).text, opacity: 0.95 })
|
|
1605
1648
|
}, [
|
|
1606
|
-
|
|
1607
|
-
|
|
1649
|
+
q(f.$slots, "legenda", {}, () => [
|
|
1650
|
+
O(k(t.legenda), 1)
|
|
1608
1651
|
], !0)
|
|
1609
|
-
], 4)) :
|
|
1610
|
-
|
|
1652
|
+
], 4)) : p("", !0),
|
|
1653
|
+
f.$slots.sublegenda || t.sublegenda ? (s(), i("div", {
|
|
1611
1654
|
key: 1,
|
|
1612
1655
|
class: "text-xs",
|
|
1613
|
-
style:
|
|
1656
|
+
style: b({ color: r(o).muted })
|
|
1614
1657
|
}, [
|
|
1615
|
-
|
|
1616
|
-
|
|
1658
|
+
q(f.$slots, "sublegenda", {}, () => [
|
|
1659
|
+
O(k(t.sublegenda), 1)
|
|
1617
1660
|
], !0)
|
|
1618
|
-
], 4)) :
|
|
1619
|
-
])) :
|
|
1620
|
-
|
|
1621
|
-
|
|
1661
|
+
], 4)) : p("", !0)
|
|
1662
|
+
])) : p("", !0),
|
|
1663
|
+
f.$slots.actions || t.botaoVisivel || t.exportar ? (s(), i("div", oo, [
|
|
1664
|
+
q(f.$slots, "actions", {}, () => [
|
|
1622
1665
|
t.botaoVisivel ? (s(), i("button", {
|
|
1623
1666
|
key: 0,
|
|
1624
|
-
class: "
|
|
1625
|
-
style:
|
|
1626
|
-
onClick:
|
|
1667
|
+
class: "nc-btn inline-flex align-items-center",
|
|
1668
|
+
style: b({ color: r(o).text, borderColor: r(P)(r(o).text, 0.18) }),
|
|
1669
|
+
onClick: u
|
|
1627
1670
|
}, [
|
|
1628
|
-
|
|
1629
|
-
], 4)) :
|
|
1671
|
+
$("span", null, k(t.textoBotao), 1)
|
|
1672
|
+
], 4)) : p("", !0)
|
|
1630
1673
|
], !0),
|
|
1631
1674
|
t.exportar ? (s(), i("button", {
|
|
1632
1675
|
key: 0,
|
|
1633
1676
|
type: "button",
|
|
1634
|
-
class: "
|
|
1635
|
-
style:
|
|
1677
|
+
class: "nc-exportar inline-flex align-items-center justify-content-center",
|
|
1678
|
+
style: b({ color: r(o).muted, borderColor: r(P)(r(o).text, 0.18) }),
|
|
1636
1679
|
title: "Exportar como imagem",
|
|
1637
1680
|
"aria-label": "Exportar como imagem",
|
|
1638
|
-
onClick:
|
|
1639
|
-
innerHTML:
|
|
1640
|
-
}, null, 12,
|
|
1641
|
-
])) :
|
|
1681
|
+
onClick: w,
|
|
1682
|
+
innerHTML: r(D)
|
|
1683
|
+
}, null, 12, ao)) : p("", !0)
|
|
1684
|
+
])) : p("", !0)
|
|
1642
1685
|
]),
|
|
1643
|
-
|
|
1644
|
-
|
|
1686
|
+
f.$slots.titulo || t.titulo || f.$slots.descricao || t.descricao ? (s(), i("div", ro, [
|
|
1687
|
+
f.$slots.titulo || t.titulo ? (s(), i("div", {
|
|
1645
1688
|
key: 0,
|
|
1646
1689
|
class: "m-0 text-3xl font-semibold",
|
|
1647
|
-
style:
|
|
1690
|
+
style: b({ color: r(o).text, lineHeight: "33px", letterSpacing: "-1px" })
|
|
1648
1691
|
}, [
|
|
1649
|
-
|
|
1650
|
-
|
|
1692
|
+
q(f.$slots, "titulo", {}, () => [
|
|
1693
|
+
O(k(t.titulo), 1)
|
|
1651
1694
|
], !0)
|
|
1652
|
-
], 4)) :
|
|
1653
|
-
|
|
1695
|
+
], 4)) : p("", !0),
|
|
1696
|
+
f.$slots.descricao || t.descricao ? (s(), i("div", {
|
|
1654
1697
|
key: 1,
|
|
1655
1698
|
class: "text-sm mt-1",
|
|
1656
|
-
style:
|
|
1699
|
+
style: b({ color: r(o).muted })
|
|
1657
1700
|
}, [
|
|
1658
|
-
|
|
1659
|
-
|
|
1701
|
+
q(f.$slots, "descricao", {}, () => [
|
|
1702
|
+
O(k(t.descricao), 1)
|
|
1660
1703
|
], !0)
|
|
1661
|
-
], 4)) :
|
|
1662
|
-
])) :
|
|
1663
|
-
|
|
1664
|
-
t.formato === "circular" ? (s(), i("div",
|
|
1665
|
-
|
|
1666
|
-
|
|
1704
|
+
], 4)) : p("", !0)
|
|
1705
|
+
])) : p("", !0),
|
|
1706
|
+
$("div", no, [
|
|
1707
|
+
t.formato === "circular" ? (s(), i("div", lo, [
|
|
1708
|
+
$("div", so, [
|
|
1709
|
+
ut(lt, {
|
|
1667
1710
|
type: "doughnut",
|
|
1668
|
-
data:
|
|
1669
|
-
options:
|
|
1711
|
+
data: z.value,
|
|
1712
|
+
options: Q.value,
|
|
1670
1713
|
height: t.height
|
|
1671
1714
|
}, null, 8, ["data", "options", "height"]),
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
class: "
|
|
1675
|
-
style:
|
|
1676
|
-
},
|
|
1677
|
-
|
|
1678
|
-
class: "
|
|
1679
|
-
style:
|
|
1680
|
-
},
|
|
1715
|
+
$("div", io, [
|
|
1716
|
+
$("div", {
|
|
1717
|
+
class: "nc-centro-titulo",
|
|
1718
|
+
style: b({ color: L.value ? e.corExcesso : r(o).text })
|
|
1719
|
+
}, k(Math.round(d.value)) + "% ", 5),
|
|
1720
|
+
$("div", {
|
|
1721
|
+
class: "nc-centro-desc",
|
|
1722
|
+
style: b({ color: r(o).muted })
|
|
1723
|
+
}, k(r(v)(K.value)) + " / " + k(r(v)(_.value)), 5)
|
|
1681
1724
|
])
|
|
1682
1725
|
])
|
|
1683
|
-
])) :
|
|
1684
|
-
|
|
1685
|
-
(s(!0), i(
|
|
1686
|
-
key:
|
|
1726
|
+
])) : p("", !0),
|
|
1727
|
+
$("div", co, [
|
|
1728
|
+
(s(!0), i(mt, null, yt(R.value, (x, a) => (s(), i("div", {
|
|
1729
|
+
key: a,
|
|
1687
1730
|
class: "card-progresso__item flex flex-column"
|
|
1688
1731
|
}, [
|
|
1689
|
-
|
|
1690
|
-
|
|
1732
|
+
$("div", uo, [
|
|
1733
|
+
$("span", {
|
|
1691
1734
|
class: "card-progresso__item-rotulo inline-flex align-items-center gap-2",
|
|
1692
|
-
style:
|
|
1735
|
+
style: b({ color: r(o).text })
|
|
1693
1736
|
}, [
|
|
1694
|
-
|
|
1695
|
-
class: "
|
|
1696
|
-
style:
|
|
1737
|
+
$("span", {
|
|
1738
|
+
class: "nc-bolinha",
|
|
1739
|
+
style: b({ background: x.cor })
|
|
1697
1740
|
}, null, 4),
|
|
1698
|
-
|
|
1741
|
+
$("span", null, k(x.rotulo), 1),
|
|
1742
|
+
x.reducao ? (s(), i("span", {
|
|
1743
|
+
key: 0,
|
|
1744
|
+
class: "card-progresso__item-modo",
|
|
1745
|
+
style: b({ color: r(o).muted })
|
|
1746
|
+
}, "↓", 4)) : p("", !0)
|
|
1699
1747
|
], 4),
|
|
1700
|
-
t.mostrarValor || t.mostrarPercentual ? (s(), i("span",
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
style: y({ color: l(e).muted })
|
|
1710
|
-
}, " / " + v(l($)(c.meta)), 5)) : u("", !0)
|
|
1711
|
-
], 64)) : u("", !0),
|
|
1748
|
+
t.mostrarValor || t.mostrarPercentual ? (s(), i("span", fo, [
|
|
1749
|
+
t.mostrarValor ? (s(), i("span", {
|
|
1750
|
+
key: 0,
|
|
1751
|
+
class: "card-progresso__item-nums",
|
|
1752
|
+
style: b({ color: r(o).muted })
|
|
1753
|
+
}, [
|
|
1754
|
+
O(k(r(v)(x.quantidade)), 1),
|
|
1755
|
+
x.meta ? (s(), i("span", po, " / " + k(r(v)(x.meta)), 1)) : p("", !0)
|
|
1756
|
+
], 4)) : p("", !0),
|
|
1712
1757
|
t.mostrarPercentual ? (s(), i("span", {
|
|
1713
1758
|
key: 1,
|
|
1714
1759
|
class: "card-progresso__item-pct",
|
|
1715
|
-
style:
|
|
1716
|
-
},
|
|
1717
|
-
]
|
|
1760
|
+
style: b({ background: r(P)(x.cor, 0.12), color: x.cor })
|
|
1761
|
+
}, k(Math.round(x.percentual)) + "% ", 5)) : p("", !0)
|
|
1762
|
+
])) : p("", !0)
|
|
1718
1763
|
]),
|
|
1719
|
-
|
|
1764
|
+
$("div", {
|
|
1720
1765
|
class: "card-progresso__trilha w-full",
|
|
1721
|
-
style:
|
|
1766
|
+
style: b({
|
|
1767
|
+
height: X.value,
|
|
1768
|
+
borderRadius: J.value,
|
|
1769
|
+
background: x.reducao ? r(P)(e.corExcesso, 0.18) : r(P)(r(o).muted, 0.15)
|
|
1770
|
+
})
|
|
1722
1771
|
}, [
|
|
1723
|
-
|
|
1772
|
+
$("div", {
|
|
1724
1773
|
class: "card-progresso__preenchimento",
|
|
1725
|
-
style:
|
|
1774
|
+
style: b({ width: x.percentual + "%", background: x.cor, borderRadius: J.value })
|
|
1726
1775
|
}, null, 4)
|
|
1727
1776
|
], 4)
|
|
1728
1777
|
]))), 128))
|
|
1729
1778
|
])
|
|
1730
1779
|
]),
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
])) :
|
|
1780
|
+
f.$slots.footer ? (s(), i("div", go, [
|
|
1781
|
+
q(f.$slots, "footer", {}, void 0, !0)
|
|
1782
|
+
])) : p("", !0)
|
|
1734
1783
|
], 6));
|
|
1735
1784
|
}
|
|
1736
|
-
},
|
|
1785
|
+
}, yo = /* @__PURE__ */ ot(mo, [["__scopeId", "data-v-36cee8f0"]]), ho = {
|
|
1737
1786
|
key: 0,
|
|
1738
1787
|
class: "card-base__topo"
|
|
1739
|
-
},
|
|
1788
|
+
}, bo = ["innerHTML"], xo = { class: "card-base__legendas flex flex-column" }, vo = {
|
|
1740
1789
|
key: 1,
|
|
1741
1790
|
class: "card-base__titulos flex flex-column"
|
|
1742
|
-
},
|
|
1791
|
+
}, $o = {
|
|
1743
1792
|
key: 2,
|
|
1744
1793
|
class: "card-base__acao flex"
|
|
1745
|
-
},
|
|
1794
|
+
}, So = {
|
|
1746
1795
|
key: 3,
|
|
1747
1796
|
class: "card-base__footer"
|
|
1748
|
-
},
|
|
1797
|
+
}, ko = {
|
|
1749
1798
|
__name: "CardBase",
|
|
1750
1799
|
props: {
|
|
1751
1800
|
legenda: { type: String, default: null },
|
|
@@ -1769,116 +1818,117 @@ const it = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewB
|
|
|
1769
1818
|
nomeArquivoExport: { type: String, default: "card-base.png" }
|
|
1770
1819
|
},
|
|
1771
1820
|
emits: ["botaoAcao", "exportado"],
|
|
1772
|
-
setup(t, { emit:
|
|
1773
|
-
const
|
|
1774
|
-
function
|
|
1775
|
-
|
|
1821
|
+
setup(t, { emit: g }) {
|
|
1822
|
+
const e = t, c = g, { palette: o, cardStyle: S } = st(e), v = et(null), B = ct;
|
|
1823
|
+
function D() {
|
|
1824
|
+
c("botaoAcao");
|
|
1776
1825
|
}
|
|
1777
|
-
async function
|
|
1778
|
-
await
|
|
1779
|
-
nomeArquivo:
|
|
1780
|
-
corFundo:
|
|
1781
|
-
}),
|
|
1826
|
+
async function w() {
|
|
1827
|
+
await it(v.value, {
|
|
1828
|
+
nomeArquivo: e.nomeArquivoExport,
|
|
1829
|
+
corFundo: o.value.bg !== "transparent" ? o.value.bg : null
|
|
1830
|
+
}), c("exportado");
|
|
1782
1831
|
}
|
|
1783
|
-
return (
|
|
1832
|
+
return (T, R) => (s(), i("div", {
|
|
1784
1833
|
ref_key: "cardRef",
|
|
1785
|
-
ref:
|
|
1786
|
-
class:
|
|
1787
|
-
style:
|
|
1834
|
+
ref: v,
|
|
1835
|
+
class: nt(["card-base flex flex-column", `card-base--${t.alinhamento}`]),
|
|
1836
|
+
style: b(r(S))
|
|
1788
1837
|
}, [
|
|
1789
|
-
t.exportar ? (s(), i("div",
|
|
1790
|
-
|
|
1838
|
+
t.exportar ? (s(), i("div", ho, [
|
|
1839
|
+
$("button", {
|
|
1791
1840
|
type: "button",
|
|
1792
|
-
class: "card-base__exportar inline-flex align-items-center justify-content-center",
|
|
1793
|
-
style:
|
|
1841
|
+
class: "nc-exportar card-base__exportar inline-flex align-items-center justify-content-center",
|
|
1842
|
+
style: b({ color: r(o).muted, borderColor: r(P)(r(o).text === "inherit" ? "#0F172A" : r(o).text, 0.18) }),
|
|
1794
1843
|
title: "Exportar como imagem",
|
|
1795
1844
|
"aria-label": "Exportar como imagem",
|
|
1796
|
-
onClick:
|
|
1797
|
-
innerHTML:
|
|
1798
|
-
}, null, 12,
|
|
1799
|
-
])) :
|
|
1800
|
-
|
|
1801
|
-
|
|
1845
|
+
onClick: w,
|
|
1846
|
+
innerHTML: r(B)
|
|
1847
|
+
}, null, 12, bo)
|
|
1848
|
+
])) : p("", !0),
|
|
1849
|
+
$("div", xo, [
|
|
1850
|
+
T.$slots.legenda || t.legenda ? (s(), i("div", {
|
|
1802
1851
|
key: 0,
|
|
1803
|
-
class: "card-base__legenda text-xs",
|
|
1804
|
-
style:
|
|
1852
|
+
class: "card-base__legenda font-medium text-xs",
|
|
1853
|
+
style: b({ color: r(o).text })
|
|
1805
1854
|
}, [
|
|
1806
|
-
|
|
1807
|
-
|
|
1855
|
+
q(T.$slots, "legenda", {}, () => [
|
|
1856
|
+
O(k(t.legenda), 1)
|
|
1808
1857
|
], !0)
|
|
1809
|
-
], 4)) :
|
|
1810
|
-
|
|
1858
|
+
], 4)) : p("", !0),
|
|
1859
|
+
T.$slots.sublegenda || t.sublegenda ? (s(), i("div", {
|
|
1811
1860
|
key: 1,
|
|
1812
1861
|
class: "card-base__sublegenda text-xs",
|
|
1813
|
-
style:
|
|
1862
|
+
style: b({ color: r(o).muted })
|
|
1814
1863
|
}, [
|
|
1815
|
-
|
|
1816
|
-
|
|
1864
|
+
q(T.$slots, "sublegenda", {}, () => [
|
|
1865
|
+
O(k(t.sublegenda), 1)
|
|
1817
1866
|
], !0)
|
|
1818
|
-
], 4)) :
|
|
1867
|
+
], 4)) : p("", !0)
|
|
1819
1868
|
]),
|
|
1820
|
-
|
|
1821
|
-
|
|
1869
|
+
T.$slots.titulo || t.titulo || T.$slots.descricao || t.descricao ? (s(), i("div", vo, [
|
|
1870
|
+
T.$slots.titulo || t.titulo ? (s(), i("div", {
|
|
1822
1871
|
key: 0,
|
|
1823
1872
|
class: "card-base__titulo m-0 text-3xl font-semibold",
|
|
1824
|
-
style:
|
|
1873
|
+
style: b({ color: r(o).text, lineHeight: "33px", letterSpacing: "-1px" })
|
|
1825
1874
|
}, [
|
|
1826
|
-
|
|
1827
|
-
|
|
1875
|
+
q(T.$slots, "titulo", {}, () => [
|
|
1876
|
+
O(k(t.titulo), 1)
|
|
1828
1877
|
], !0)
|
|
1829
|
-
], 4)) :
|
|
1830
|
-
|
|
1878
|
+
], 4)) : p("", !0),
|
|
1879
|
+
T.$slots.descricao || t.descricao ? (s(), i("div", {
|
|
1831
1880
|
key: 1,
|
|
1832
1881
|
class: "text-sm",
|
|
1833
|
-
style:
|
|
1882
|
+
style: b({ color: r(o).muted })
|
|
1834
1883
|
}, [
|
|
1835
|
-
|
|
1836
|
-
|
|
1884
|
+
q(T.$slots, "descricao", {}, () => [
|
|
1885
|
+
O(k(t.descricao), 1)
|
|
1837
1886
|
], !0)
|
|
1838
|
-
], 4)) :
|
|
1839
|
-
])) :
|
|
1840
|
-
|
|
1841
|
-
|
|
1887
|
+
], 4)) : p("", !0)
|
|
1888
|
+
])) : p("", !0),
|
|
1889
|
+
T.$slots.acao || t.botaoVisivel ? (s(), i("div", $o, [
|
|
1890
|
+
q(T.$slots, "acao", {}, () => [
|
|
1842
1891
|
t.botaoVisivel ? (s(), i("button", {
|
|
1843
1892
|
key: 0,
|
|
1844
1893
|
type: "button",
|
|
1845
1894
|
class: "card-base__link text-xs inline-flex align-items-center",
|
|
1846
|
-
style:
|
|
1847
|
-
onClick:
|
|
1895
|
+
style: b({ color: r(o).text }),
|
|
1896
|
+
onClick: D
|
|
1848
1897
|
}, [
|
|
1849
|
-
|
|
1850
|
-
|
|
1898
|
+
$("span", null, k(t.textoBotao), 1),
|
|
1899
|
+
R[0] || (R[0] = $("span", {
|
|
1851
1900
|
class: "card-base__chevron",
|
|
1852
1901
|
"aria-hidden": "true"
|
|
1853
1902
|
}, "›", -1))
|
|
1854
|
-
], 4)) :
|
|
1903
|
+
], 4)) : p("", !0)
|
|
1855
1904
|
], !0)
|
|
1856
|
-
])) :
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
])) :
|
|
1905
|
+
])) : p("", !0),
|
|
1906
|
+
T.$slots.footer ? (s(), i("div", So, [
|
|
1907
|
+
q(T.$slots, "footer", {}, void 0, !0)
|
|
1908
|
+
])) : p("", !0)
|
|
1860
1909
|
], 6));
|
|
1861
1910
|
}
|
|
1862
|
-
},
|
|
1911
|
+
}, Co = /* @__PURE__ */ ot(ko, [["__scopeId", "data-v-61091b7c"]]), wo = {
|
|
1863
1912
|
install(t) {
|
|
1864
|
-
t.component("ChartBase", lt), t.component("CardBase",
|
|
1913
|
+
t.component("ChartBase", lt), t.component("CardBase", Co), t.component("CardLinhas", pe), t.component("CardPizza", Re), t.component("CardBarra", Ve), t.component("CardPolar", _e), t.component("CardProgresso", yo);
|
|
1865
1914
|
}
|
|
1866
1915
|
};
|
|
1867
1916
|
export {
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1917
|
+
Ve as CardBarra,
|
|
1918
|
+
Co as CardBase,
|
|
1919
|
+
pe as CardLinhas,
|
|
1920
|
+
Re as CardPizza,
|
|
1921
|
+
_e as CardPolar,
|
|
1922
|
+
yo as CardProgresso,
|
|
1874
1923
|
lt as ChartBase,
|
|
1875
|
-
|
|
1876
|
-
|
|
1924
|
+
ct as ICONE_EXPORTAR_SVG,
|
|
1925
|
+
rt as clampHorizontal,
|
|
1877
1926
|
gt as criarTooltipEl,
|
|
1878
|
-
|
|
1879
|
-
|
|
1927
|
+
wo as default,
|
|
1928
|
+
it as exportarElementoComoImagem,
|
|
1929
|
+
ht as gerarPaleta,
|
|
1880
1930
|
at as prepararTooltipParent,
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1931
|
+
P as toRgba,
|
|
1932
|
+
ft as useFormatadorValor,
|
|
1933
|
+
st as useTema
|
|
1884
1934
|
};
|