bt-core-app 2.0.319 → 2.0.321

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.
Files changed (2) hide show
  1. package/dist/bt-core-app.js +18 -16
  2. package/package.json +1 -1
@@ -10425,12 +10425,12 @@ function Fd() {
10425
10425
  { color: "#27D81E" },
10426
10426
  { color: "#1E78D8" },
10427
10427
  { color: "#8F1ED8" },
10428
+ { color: "#D2D81E" },
10428
10429
  { color: "#D83F1E" },
10429
- { color: "#D81EBE" },
10430
- { color: "#D81E5C" },
10431
10430
  { color: "#1ED5D8" },
10432
- { color: "#D2D81E" },
10433
- { color: "#186A3B" }
10431
+ { color: "#186A3B" },
10432
+ { color: "#D81E5C" },
10433
+ { color: "#D81EBE" }
10434
10434
  ];
10435
10435
  let t = -1;
10436
10436
  function a(l) {
@@ -42695,23 +42695,25 @@ function Ej(e) {
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.reduce((E, L) => {
42698
- var A = M.getLabelValue(L), I = v.tzDate(A);
42699
- u.labelFormat != null && (I = I.startOf(u.labelFormat)), f != null ? A = f(I.toFormat(om)) : u.labelFormatString != null && (A = I.toFormat(u.labelFormatString));
42700
- var V = M.getValue(L);
42701
- if (V != null)
42698
+ var A = M.getLabelValue(L), I = v.tzDate(A), V = A;
42699
+ u.labelFormat != null && (I = I.startOf(u.labelFormat)), f != null ? V = f(I.toFormat(om)) : u.labelFormatString != null && (V = I.toFormat(u.labelFormatString));
42700
+ var R = M.getValue(L);
42701
+ if (R != null)
42702
42702
  if (M.groupValues == !0) {
42703
- var R = E.find((P) => P.x == A);
42704
- R != null ? R.y += V : E.push({
42705
- x: A,
42706
- y: V
42707
- });
42703
+ var P = E.find((F) => F.x == V);
42704
+ P != null ? (console.log(`merging: ${P.x}`), P.y += R) : (console.log(`adding: ${A}`), E.push({
42705
+ x: V,
42706
+ y: R,
42707
+ z: A
42708
+ }));
42708
42709
  } else
42709
42710
  E.push({
42710
- x: A,
42711
- y: V
42711
+ x: V,
42712
+ y: R,
42713
+ z: A
42712
42714
  });
42713
42715
  return E;
42714
- }, []).sort(ll.firstBy((E) => E.x)),
42716
+ }, []).sort(ll.firstBy((E) => E.z)),
42715
42717
  label: M.lineLabel
42716
42718
  };
42717
42719
  return M.getBackgroundColor != null && (D.backgroundColor = M.data.map((E, L) => M.getBackgroundColor(E, L, p))), D;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.319",
3
+ "version": "2.0.321",
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": {