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.
@@ -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, f = Fd();
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 p, m, y = tp(), b = {}, T = u.labelFormat, S = [];
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
- p ?? (p = D), m ?? (m = D), D < p && (p = D), D > m && (m = D);
42684
+ m ?? (m = D), y ?? (y = D), D < m && (m = D), D > y && (y = D);
42685
42685
  });
42686
42686
  });
42687
- var g = y.tzDate(p).startOf(T), w = g.toFormat(om), x = y.tzDate(m).endOf(T), k = x.toFormat(om);
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
- v != null ? S.push(v(w)) : u.labelFormatString != null ? S.push(g.toFormat(u.labelFormatString)) : S.push(w), g = g.plus(b), w = g.toFormat(om);
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 : f.getColor();
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 = y.tzDate(E);
42699
- return u.labelFormat != null && (A = A.startOf(u.labelFormat)), v != null ? E = v(A.toFormat(om)) : u.labelFormatString != null && (E = A.toFormat(u.labelFormatString)), {
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, f))), D;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.315",
3
+ "version": "2.0.316",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {