bt-core-app 2.0.304 → 2.0.306

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 +25 -17
  2. package/package.json +1 -1
@@ -42570,17 +42570,19 @@ function Tse() {
42570
42570
  }
42571
42571
  function Vj(e) {
42572
42572
  const t = Tu();
42573
- function a(i, o) {
42574
- const s = tk();
42573
+ function a(i, o, s) {
42574
+ const c = tk();
42575
42575
  return {
42576
42576
  chartType: o ?? "line",
42577
42577
  data: {
42578
- datasets: i.map((c) => {
42579
- var u = l(c);
42578
+ datasets: i.map((u) => {
42579
+ var d = l(u);
42580
+ let v = c.getColor();
42580
42581
  return {
42581
- backgroundColor: s.getColor(),
42582
- data: u,
42583
- label: c.label
42582
+ backgroundColor: v,
42583
+ borderColor: v,
42584
+ data: d,
42585
+ label: u.label
42584
42586
  };
42585
42587
  })
42586
42588
  },
@@ -42589,24 +42591,30 @@ function Vj(e) {
42589
42591
  parsing: {
42590
42592
  xAxisKey: "xValue",
42591
42593
  yAxisKey: "yValue"
42592
- }
42594
+ },
42595
+ ...s
42593
42596
  }
42594
42597
  };
42595
42598
  }
42596
- function n(i) {
42597
- const o = tk();
42599
+ function n(i, o) {
42600
+ const s = tk();
42598
42601
  return {
42599
42602
  chartType: "bar",
42600
42603
  data: {
42601
- datasets: i.getXYSets.map((s) => ({
42602
- backgroundColor: o.getColor(),
42603
- data: i.list.map((c) => s.getValue(c)),
42604
- label: s.getLabel()
42605
- })),
42606
- labels: i.list.map((s) => i.getBottomLabel(s))
42604
+ datasets: i.getXYSets.map((c) => {
42605
+ let u = s.getColor();
42606
+ return {
42607
+ backgroundColor: u,
42608
+ borderColor: u,
42609
+ data: i.list.map((d) => c.getValue(d)),
42610
+ label: c.getLabel()
42611
+ };
42612
+ }),
42613
+ labels: i.list.map((c) => i.getBottomLabel(c))
42607
42614
  },
42608
42615
  options: {
42609
- responsive: !0
42616
+ responsive: !0,
42617
+ ...o
42610
42618
  }
42611
42619
  };
42612
42620
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.304",
3
+ "version": "2.0.306",
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": {