bt-core-app 2.0.315 → 2.0.316
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bt-core-app.js +9 -9
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -42675,35 +42675,35 @@ function Ej(e) {
|
|
|
42675
42675
|
responsive: !0,
|
|
42676
42676
|
...c
|
|
42677
42677
|
}
|
|
42678
|
-
}, v = u.labelFormatFilter != null ? t.findFilter(u.labelFormatFilter) : void 0,
|
|
42678
|
+
}, v = tp(), f = u.labelFormatFilter != null ? t.findFilter(u.labelFormatFilter) : void 0, p = Fd();
|
|
42679
42679
|
if (u.fillGaps && u.labelFormat != null) {
|
|
42680
|
-
var
|
|
42680
|
+
var m, y, b = {}, T = u.labelFormat, S = [];
|
|
42681
42681
|
T == "day" ? b = { days: 1 } : T == "week" ? b = { weeks: 1 } : T == "month" ? b = { months: 1 } : T == "year" && (b = { years: 1 }), u.datasets.forEach((M) => {
|
|
42682
42682
|
M.data.forEach((h) => {
|
|
42683
42683
|
var D = M.getLabelValue(h);
|
|
42684
|
-
|
|
42684
|
+
m ?? (m = D), y ?? (y = D), D < m && (m = D), D > y && (y = D);
|
|
42685
42685
|
});
|
|
42686
42686
|
});
|
|
42687
|
-
var g =
|
|
42687
|
+
var g = v.tzDate(m).startOf(T), w = g.toFormat(om), x = v.tzDate(y).endOf(T), k = x.toFormat(om);
|
|
42688
42688
|
if (w < k)
|
|
42689
42689
|
for (; w < k; )
|
|
42690
|
-
|
|
42690
|
+
f != null ? S.push(f(w)) : u.labelFormatString != null ? S.push(g.toFormat(u.labelFormatString)) : S.push(w), g = g.plus(b), w = g.toFormat(om);
|
|
42691
42691
|
}
|
|
42692
42692
|
return d.data.datasets = u.datasets.map((M) => {
|
|
42693
|
-
let h = M.noBackgroundColor == !0 && M.noBorderColor == !0 ? void 0 :
|
|
42693
|
+
let h = M.noBackgroundColor == !0 && M.noBorderColor == !0 ? void 0 : p.getColor();
|
|
42694
42694
|
var D = {
|
|
42695
42695
|
backgroundColor: M.noBackgroundColor == !0 ? void 0 : M.backgroundColor ?? h,
|
|
42696
42696
|
borderColor: M.noBorderColor == !0 ? void 0 : M.borderColor ?? h,
|
|
42697
42697
|
data: M.data.map((L) => {
|
|
42698
|
-
var E = M.getLabelValue(L), A =
|
|
42699
|
-
return u.labelFormat != null && (A = A.startOf(u.labelFormat)),
|
|
42698
|
+
var E = M.getLabelValue(L), A = v.tzDate(E);
|
|
42699
|
+
return u.labelFormat != null && (A = A.startOf(u.labelFormat)), f != null ? E = f(A.toFormat(om)) : u.labelFormatString != null && (E = A.toFormat(u.labelFormatString)), {
|
|
42700
42700
|
x: E,
|
|
42701
42701
|
y: M.getValue(L)
|
|
42702
42702
|
};
|
|
42703
42703
|
}),
|
|
42704
42704
|
label: M.lineLabel
|
|
42705
42705
|
};
|
|
42706
|
-
return M.getBackgroundColor != null && (D.backgroundColor = M.data.map((L, E) => M.getBackgroundColor(L, E,
|
|
42706
|
+
return M.getBackgroundColor != null && (D.backgroundColor = M.data.map((L, E) => M.getBackgroundColor(L, E, p))), D;
|
|
42707
42707
|
}), d;
|
|
42708
42708
|
}
|
|
42709
42709
|
function o(u) {
|
package/package.json
CHANGED