@altimateai/ui-components 0.0.77-beta.3 → 0.0.77-beta.5

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 (64) hide show
  1. package/dist/Accordion.js +402 -0
  2. package/dist/CoachForm.css +1 -1
  3. package/dist/CoachForm.js +21630 -18090
  4. package/dist/Stack.js +2820 -2260
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +5956 -4781
  7. package/dist/_basePickBy.js +25 -25
  8. package/dist/_baseUniq.js +122 -122
  9. package/dist/arc.js +36 -36
  10. package/dist/architectureDiagram-VXUJARFQ.js +1 -1
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +61 -10
  16. package/dist/chatbotV2/index.js +442 -56
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +1 -1
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +1 -1
  28. package/dist/dagre-6UL2VRFP.js +58 -58
  29. package/dist/dayjs.min.js +1 -1
  30. package/dist/diagram-PSM6KHXK.js +48 -48
  31. package/dist/diagram-QEK2KX5R.js +26 -26
  32. package/dist/diagram-S2PKOQOG.js +9 -9
  33. package/dist/erDiagram-Q2GNP2WA.js +12 -12
  34. package/dist/flowDiagram-NV44I4VS.js +6 -6
  35. package/dist/ganttDiagram-LVOFAZNH.js +322 -322
  36. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  37. package/dist/graph.js +5 -5
  38. package/dist/index.css +1 -1
  39. package/dist/index.d.ts +9 -1
  40. package/dist/index.js +24 -23
  41. package/dist/index2.css +1 -0
  42. package/dist/index2.js +22 -22
  43. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  44. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  45. package/dist/kanban-definition-3W4ZIXB7.js +54 -54
  46. package/dist/layout.js +52 -52
  47. package/dist/lineage/index.js +381 -381
  48. package/dist/main.js +6 -6
  49. package/dist/mermaid-parser.core.js +1 -1
  50. package/dist/mindmap-definition-VGOIOE7T.js +16 -16
  51. package/dist/pieDiagram-ADFJNKIX.js +25 -25
  52. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  53. package/dist/redux-toolkit.modern.js +7 -7
  54. package/dist/requirementDiagram-UZGBJVZJ.js +1 -1
  55. package/dist/sankeyDiagram-TZEHDZUN.js +16 -16
  56. package/dist/sequenceDiagram-WL72ISMW.js +28 -28
  57. package/dist/shadcn/index.d.ts +22 -35
  58. package/dist/shadcn/index.js +6232 -4805
  59. package/dist/stateDiagram-FKZM4ZOC.js +34 -34
  60. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  61. package/dist/storybook/Typography.stories.tsx +93 -120
  62. package/dist/timeline-definition-IT6M3QCI.js +54 -54
  63. package/dist/xychartDiagram-PRI3JC2R.js +32 -32
  64. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a1 as s, at as xt, aN as kt, an as vt, a7 as _t, ad as E, aO as bt, aP as wt, aQ as St, aR as Et } from "./CoachForm.js";
2
- import { s as q } from "./redux-toolkit.modern.js";
1
+ import { _ as s, A as xt, U as kt, r as vt, d as _t, l as E, V as bt, W as wt, X as St, Y as Et } from "./CoachForm.js";
2
+ import { s as U } from "./redux-toolkit.modern.js";
3
3
  import { d as nt } from "./arc.js";
4
4
  var X = function() {
5
5
  var n = /* @__PURE__ */ s(function(f, i, a, h) {
@@ -63,7 +63,7 @@ var X = function() {
63
63
  }
64
64
  }, "parseError"),
65
65
  parse: /* @__PURE__ */ s(function(i) {
66
- var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, Q = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
66
+ var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
67
67
  for (var L in this.yy)
68
68
  Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
69
69
  v.setInput(i, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
@@ -75,20 +75,20 @@ var X = function() {
75
75
  h.length = h.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
76
76
  }
77
77
  s(R, "popStack");
78
- function A() {
78
+ function P() {
79
79
  var T;
80
- return T = u.pop() || v.lex() || Q, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
80
+ return T = u.pop() || v.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
81
81
  }
82
- s(A, "lex");
83
- for (var w, P, I, J, z = {}, j, H, et, G; ; ) {
84
- if (P = h[h.length - 1], this.defaultActions[P] ? I = this.defaultActions[P] : ((w === null || typeof w > "u") && (w = A()), I = S[P] && S[P][w]), typeof I > "u" || !I.length || !I[0]) {
85
- var K = "";
82
+ s(P, "lex");
83
+ for (var w, A, I, K, V = {}, j, H, et, G; ; ) {
84
+ if (A = h[h.length - 1], this.defaultActions[A] ? I = this.defaultActions[A] : ((w === null || typeof w > "u") && (w = P()), I = S[A] && S[A][w]), typeof I > "u" || !I.length || !I[0]) {
85
+ var Q = "";
86
86
  G = [];
87
- for (j in S[P])
87
+ for (j in S[A])
88
88
  this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
89
- v.showPosition ? K = "Parse error on line " + (M + 1) + `:
89
+ v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
90
90
  ` + v.showPosition() + `
91
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : K = "Parse error on line " + (M + 1) + ": Unexpected " + (w == Q ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(K, {
91
+ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
92
92
  text: v.match,
93
93
  token: this.terminals_[w] || w,
94
94
  line: v.yylineno,
@@ -97,21 +97,21 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : K = "
97
97
  });
98
98
  }
99
99
  if (I[0] instanceof Array && I.length > 1)
100
- throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + w);
100
+ throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + w);
101
101
  switch (I[0]) {
102
102
  case 1:
103
103
  h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext, M = v.yylineno, b = v.yylloc;
104
104
  break;
105
105
  case 2:
106
- if (H = this.productions_[I[1]][1], z.$ = y[y.length - H], z._$ = {
106
+ if (H = this.productions_[I[1]][1], V.$ = y[y.length - H], V._$ = {
107
107
  first_line: o[o.length - (H || 1)].first_line,
108
108
  last_line: o[o.length - 1].last_line,
109
109
  first_column: o[o.length - (H || 1)].first_column,
110
110
  last_column: o[o.length - 1].last_column
111
- }, $ && (z._$.range = [
111
+ }, $ && (V._$.range = [
112
112
  o[o.length - (H || 1)].range[0],
113
113
  o[o.length - 1].range[1]
114
- ]), J = this.performAction.apply(z, [
114
+ ]), K = this.performAction.apply(V, [
115
115
  k,
116
116
  C,
117
117
  M,
@@ -119,9 +119,9 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : K = "
119
119
  I[1],
120
120
  y,
121
121
  o
122
- ].concat(O)), typeof J < "u")
123
- return J;
124
- H && (h = h.slice(0, -1 * H * 2), y = y.slice(0, -1 * H), o = o.slice(0, -1 * H)), h.push(this.productions_[I[1]][0]), y.push(z.$), o.push(z._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
122
+ ].concat(O)), typeof K < "u")
123
+ return K;
124
+ H && (h = h.slice(0, -1 * H * 2), y = y.slice(0, -1 * H), o = o.slice(0, -1 * H)), h.push(this.productions_[I[1]][0]), y.push(V.$), o.push(V._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
125
125
  break;
126
126
  case 3:
127
127
  return !0;
@@ -367,10 +367,10 @@ xt(at, {
367
367
  getSections: () => dt,
368
368
  getTasks: () => ut
369
369
  });
370
- var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
371
- Y.length = 0, U.length = 0, V = "", W.length = 0, vt();
370
+ var W = "", lt = 0, Y = [], q = [], z = [], ot = /* @__PURE__ */ s(() => kt, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
371
+ Y.length = 0, q.length = 0, W = "", z.length = 0, vt();
372
372
  }, "clear"), ht = /* @__PURE__ */ s(function(n) {
373
- V = n, Y.push(n);
373
+ W = n, Y.push(n);
374
374
  }, "addSection"), dt = /* @__PURE__ */ s(function() {
375
375
  return Y;
376
376
  }, "getSections"), ut = /* @__PURE__ */ s(function() {
@@ -379,35 +379,35 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "ge
379
379
  let e = 0;
380
380
  for (; !n && e < t; )
381
381
  n = rt(), e++;
382
- return U.push(...W), U;
382
+ return q.push(...z), q;
383
383
  }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
384
384
  const l = {
385
385
  id: lt++,
386
- section: V,
387
- type: V,
386
+ section: W,
387
+ type: W,
388
388
  task: n,
389
389
  score: t || 0,
390
390
  //if event is defined, then add it the events array
391
391
  events: e ? [e] : []
392
392
  };
393
- W.push(l);
393
+ z.push(l);
394
394
  }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
395
- W.find((e) => e.id === lt - 1).events.push(n);
395
+ z.find((e) => e.id === lt - 1).events.push(n);
396
396
  }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
397
397
  const t = {
398
- section: V,
399
- type: V,
398
+ section: W,
399
+ type: W,
400
400
  description: n,
401
401
  task: n,
402
402
  classes: []
403
403
  };
404
- U.push(t);
404
+ q.push(t);
405
405
  }, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
406
406
  const n = /* @__PURE__ */ s(function(e) {
407
- return W[e].processed;
407
+ return z[e].processed;
408
408
  }, "compileTask");
409
409
  let t = !0;
410
- for (const [e, l] of W.entries())
410
+ for (const [e, l] of z.entries())
411
411
  n(e), t = t && l.processed;
412
412
  return t;
413
413
  }, "compileTasks"), It = {
@@ -454,7 +454,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "ge
454
454
  s(e, "genPoints");
455
455
  const l = n.append("polygon");
456
456
  l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
457
- }, "drawLabel"), Pt = /* @__PURE__ */ s(function(n, t, e) {
457
+ }, "drawLabel"), At = /* @__PURE__ */ s(function(n, t, e) {
458
458
  const l = n.append("g"), r = D();
459
459
  r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Z(l, r), mt(e)(
460
460
  t.text,
@@ -488,7 +488,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "ge
488
488
  e,
489
489
  t.colour
490
490
  );
491
- }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
491
+ }, "drawTask"), Pt = /* @__PURE__ */ s(function(n, t) {
492
492
  Z(n, {
493
493
  x: t.startx,
494
494
  y: t.starty,
@@ -550,7 +550,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "ge
550
550
  }, "initGraphics");
551
551
  function tt(n, t) {
552
552
  n.each(function() {
553
- var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, d = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
553
+ var e = U(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, d = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
554
554
  for (let x = 0; x < l.length; x++)
555
555
  r = l[l.length - 1 - x], d.push(r), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || r === "<br>") && (d.pop(), p.text(d.join(" ").trim()), r === "<br>" ? d = [""] : d = [r], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(r));
556
556
  });
@@ -564,12 +564,12 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
564
564
  (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
565
565
  );
566
566
  const c = d.append("g"), g = d.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (_ = l.fontSize) != null && _.replace ? l.fontSize.replace("px", "") : l.fontSize;
567
- return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(c, t, r, l), t;
568
- }, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
567
+ return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Wt(c, t, r, l), t;
568
+ }, "drawNode"), Vt = /* @__PURE__ */ s(function(n, t, e) {
569
569
  var g;
570
570
  const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
571
571
  return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
572
- }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
572
+ }, "getVirtualNodeHeight"), Wt = /* @__PURE__ */ s(function(n, t, e) {
573
573
  n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
574
574
  "d",
575
575
  `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
@@ -577,24 +577,24 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
577
577
  }, "defaultBkg"), F = {
578
578
  drawRect: Z,
579
579
  drawCircle: Mt,
580
- drawSection: Pt,
580
+ drawSection: At,
581
581
  drawText: ft,
582
582
  drawLabel: $t,
583
583
  drawTask: Ht,
584
- drawBackgroundRect: At,
584
+ drawBackgroundRect: Pt,
585
585
  getTextObj: Ct,
586
586
  getNoteRect: D,
587
587
  initGraphics: Rt,
588
588
  drawNode: Ft,
589
- getVirtualNodeHeight: zt
590
- }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
589
+ getVirtualNodeHeight: Vt
590
+ }, zt = /* @__PURE__ */ s(function(n, t, e, l) {
591
591
  var O, v, N;
592
592
  const r = _t(), d = ((O = r.timeline) == null ? void 0 : O.leftMargin) ?? 50;
593
593
  E.debug("timeline", l.db);
594
594
  const c = r.securityLevel;
595
595
  let g;
596
- c === "sandbox" && (g = q("#i" + t));
597
- const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
596
+ c === "sandbox" && (g = U("#i" + t));
597
+ const p = (c === "sandbox" ? U(g.nodes()[0].contentDocument.body) : U("body")).select("#" + t);
598
598
  p.append("g");
599
599
  const x = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
600
600
  E.debug("task", x), F.initGraphics(p);
@@ -626,9 +626,9 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
626
626
  maxHeight: a
627
627
  }, R = F.getVirtualNodeHeight(p, $, r);
628
628
  E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), M = Math.max(M, b.events.length);
629
- let A = 0;
629
+ let P = 0;
630
630
  for (const w of b.events) {
631
- const P = {
631
+ const A = {
632
632
  descr: w,
633
633
  section: b.section,
634
634
  number: b.section,
@@ -636,9 +636,9 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
636
636
  padding: 20,
637
637
  maxHeight: 50
638
638
  };
639
- A += F.getVirtualNodeHeight(p, P, r);
639
+ P += F.getVirtualNodeHeight(p, A, r);
640
640
  }
641
- b.events.length > 0 && (A += (b.events.length - 1) * 10), C = Math.max(C, A);
641
+ b.events.length > 0 && (P += (b.events.length - 1) * 10), C = Math.max(C, P);
642
642
  }
643
643
  E.debug("maxSectionHeight before draw", i), E.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((L) => {
644
644
  const b = x.filter((w) => w.section === L), $ = {
@@ -650,8 +650,8 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
650
650
  maxHeight: i
651
651
  };
652
652
  E.debug("sectionNode", $);
653
- const R = p.append("g"), A = F.drawNode(R, $, S, r);
654
- E.debug("sectionNode output", A), R.attr("transform", `translate(${y}, ${u})`), o += i + 50, b.length > 0 && st(
653
+ const R = p.append("g"), P = F.drawNode(R, $, S, r);
654
+ E.debug("sectionNode output", P), R.attr("transform", `translate(${y}, ${u})`), o += i + 50, b.length > 0 && st(
655
655
  p,
656
656
  b,
657
657
  S,
@@ -726,7 +726,7 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
726
726
  }, "drawEvents"), Ot = {
727
727
  setConf: /* @__PURE__ */ s(() => {
728
728
  }, "setConf"),
729
- draw: Wt
729
+ draw: zt
730
730
  }, jt = /* @__PURE__ */ s((n) => {
731
731
  let t = "";
732
732
  for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
@@ -791,12 +791,12 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
791
791
  .eventWrapper {
792
792
  filter: brightness(120%);
793
793
  }
794
- `, "getStyles"), qt = Gt, Jt = {
794
+ `, "getStyles"), Ut = Gt, Kt = {
795
795
  db: at,
796
796
  renderer: Ot,
797
797
  parser: Tt,
798
- styles: qt
798
+ styles: Ut
799
799
  };
800
800
  export {
801
- Jt as diagram
801
+ Kt as diagram
802
802
  };
@@ -1,4 +1,4 @@
1
- import { a1 as a, bv as gi, ad as Xt, aJ as Wt, aB as xi, aw as St, av as Nt, au as di, ac as fi, ah as Yt, a3 as pi, a4 as mi, ag as yi, a5 as bi, a6 as Ai, an as wi, az as Ci, ae as Si } from "./CoachForm.js";
1
+ import { _ as a, aE as gi, l as Xt, Q as Wt, I as xi, D as St, C as Nt, B as di, i as fi, n as Yt, s as pi, g as mi, m as yi, b as bi, c as Ai, r as wi, G as Ci, j as Si } from "./CoachForm.js";
2
2
  import "./redux-toolkit.modern.js";
3
3
  import { i as _i } from "./init.js";
4
4
  import { o as ki } from "./ordinal.js";
@@ -173,7 +173,7 @@ var bt = function() {
173
173
  return V = d.pop() || T.lex() || Mt, typeof V != "number" && (V instanceof Array && (d = V, V = d.pop()), V = u.symbols_[V] || V), V;
174
174
  }
175
175
  a(Vt, "lex");
176
- for (var M, H, B, pt, q = {}, ct, F, Bt, ut; ; ) {
176
+ for (var M, H, B, pt, G = {}, ct, F, Bt, ut; ; ) {
177
177
  if (H = x[x.length - 1], this.defaultActions[H] ? B = this.defaultActions[H] : ((M === null || typeof M > "u") && (M = Vt()), B = at[H] && at[H][M]), typeof B > "u" || !B.length || !B[0]) {
178
178
  var mt = "";
179
179
  ut = [];
@@ -196,15 +196,15 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
196
196
  x.push(M), w.push(T.yytext), r.push(T.yylloc), x.push(B[1]), M = null, It = T.yyleng, f = T.yytext, lt = T.yylineno, ft = T.yylloc;
197
197
  break;
198
198
  case 2:
199
- if (F = this.productions_[B[1]][1], q.$ = w[w.length - F], q._$ = {
199
+ if (F = this.productions_[B[1]][1], G.$ = w[w.length - F], G._$ = {
200
200
  first_line: r[r.length - (F || 1)].first_line,
201
201
  last_line: r[r.length - 1].last_line,
202
202
  first_column: r[r.length - (F || 1)].first_column,
203
203
  last_column: r[r.length - 1].last_column
204
- }, ci && (q._$.range = [
204
+ }, ci && (G._$.range = [
205
205
  r[r.length - (F || 1)].range[0],
206
206
  r[r.length - 1].range[1]
207
- ]), pt = this.performAction.apply(q, [
207
+ ]), pt = this.performAction.apply(G, [
208
208
  f,
209
209
  It,
210
210
  lt,
@@ -214,7 +214,7 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
214
214
  r
215
215
  ].concat(li)), typeof pt < "u")
216
216
  return pt;
217
- F && (x = x.slice(0, -1 * F * 2), w = w.slice(0, -1 * F), r = r.slice(0, -1 * F)), x.push(this.productions_[B[1]][0]), w.push(q.$), r.push(q._$), Bt = at[x[x.length - 2]][x[x.length - 1]], x.push(Bt);
217
+ F && (x = x.slice(0, -1 * F * 2), w = w.slice(0, -1 * F), r = r.slice(0, -1 * F)), x.push(this.productions_[B[1]][0]), w.push(G.$), r.push(G._$), Bt = at[x[x.length - 2]][x[x.length - 1]], x.push(Bt);
218
218
  break;
219
219
  case 3:
220
220
  return !0;
@@ -516,11 +516,11 @@ function _t(e) {
516
516
  return e.type === "band";
517
517
  }
518
518
  a(_t, "isBandAxisData");
519
- function G(e) {
519
+ function j(e) {
520
520
  return e.type === "linear";
521
521
  }
522
- a(G, "isLinearAxisData");
523
- var j, Ht = (j = class {
522
+ a(j, "isLinearAxisData");
523
+ var q, Ht = (q = class {
524
524
  constructor(t) {
525
525
  this.parentGroup = t;
526
526
  }
@@ -540,7 +540,7 @@ var j, Ht = (j = class {
540
540
  }
541
541
  return n.remove(), s;
542
542
  }
543
- }, a(j, "TextDimensionCalculatorWithFont"), j), Ot = 0.7, Ft = 0.2, Q, Ut = (Q = class {
543
+ }, a(q, "TextDimensionCalculatorWithFont"), q), Ot = 0.7, Ft = 0.2, Q, Ut = (Q = class {
544
544
  constructor(t, i, s, n) {
545
545
  this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
546
546
  }
@@ -809,7 +809,7 @@ var j, Ht = (j = class {
809
809
  getScaleValue(t) {
810
810
  return this.scale(t) ?? this.getRange()[0];
811
811
  }
812
- }, a(K, "BandAxis"), K), J, vi = (J = class extends Ut {
812
+ }, a(K, "BandAxis"), K), Z, vi = (Z = class extends Ut {
813
813
  constructor(t, i, s, n, o) {
814
814
  super(t, n, o, i), this.domain = s, this.scale = zt().domain(this.domain).range(this.getRange());
815
815
  }
@@ -823,7 +823,7 @@ var j, Ht = (j = class {
823
823
  getScaleValue(t) {
824
824
  return this.scale(t);
825
825
  }
826
- }, a(J, "LinearAxis"), J);
826
+ }, a(Z, "LinearAxis"), Z);
827
827
  function wt(e, t, i, s) {
828
828
  const n = new Ht(s);
829
829
  return _t(e) ? new Di(
@@ -841,7 +841,7 @@ function wt(e, t, i, s) {
841
841
  );
842
842
  }
843
843
  a(wt, "getAxis");
844
- var Z, Pi = (Z = class {
844
+ var J, Pi = (J = class {
845
845
  constructor(t, i, s, n) {
846
846
  this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
847
847
  x: 0,
@@ -882,7 +882,7 @@ var Z, Pi = (Z = class {
882
882
  ]
883
883
  }), t;
884
884
  }
885
- }, a(Z, "ChartTitle"), Z);
885
+ }, a(J, "ChartTitle"), J);
886
886
  function $t(e, t, i, s) {
887
887
  const n = new Ht(s);
888
888
  return new Pi(n, e, t, i);
@@ -1007,15 +1007,15 @@ var tt, Li = (tt = class {
1007
1007
  return t;
1008
1008
  }
1009
1009
  }, a(et, "BasePlot"), et);
1010
- function qt(e, t, i) {
1010
+ function Gt(e, t, i) {
1011
1011
  return new Ii(e, t, i);
1012
1012
  }
1013
- a(qt, "getPlotComponent");
1013
+ a(Gt, "getPlotComponent");
1014
1014
  var st, Mi = (st = class {
1015
1015
  constructor(t, i, s, n) {
1016
1016
  this.chartConfig = t, this.chartData = i, this.componentStore = {
1017
1017
  title: $t(t, i, s, n),
1018
- plot: qt(t, i, s),
1018
+ plot: Gt(t, i, s),
1019
1019
  xAxis: wt(
1020
1020
  i.xAxis,
1021
1021
  t.xAxis,
@@ -1097,7 +1097,7 @@ var st, Mi = (st = class {
1097
1097
  static build(t, i, s, n) {
1098
1098
  return new Mi(t, i, s, n).getDrawableElement();
1099
1099
  }
1100
- }, a(nt, "XYChartBuilder"), nt), rt = 0, Gt, ot = Tt(), ht = Rt(), A = Dt(), Ct = ht.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1100
+ }, a(nt, "XYChartBuilder"), nt), rt = 0, jt, ot = Tt(), ht = Rt(), A = Dt(), Ct = ht.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1101
1101
  function Rt() {
1102
1102
  const e = xi(), t = St();
1103
1103
  return Nt(e.xyChart, t.themeVariables.xyChart);
@@ -1134,10 +1134,10 @@ function xt(e) {
1134
1134
  return fi(e.trim(), t);
1135
1135
  }
1136
1136
  a(xt, "textSanitizer");
1137
- function jt(e) {
1138
- Gt = e;
1137
+ function qt(e) {
1138
+ jt = e;
1139
1139
  }
1140
- a(jt, "setTmpSVGG");
1140
+ a(qt, "setTmpSVGG");
1141
1141
  function Qt(e) {
1142
1142
  e === "horizontal" ? ot.chartOrientation = "horizontal" : ot.chartOrientation = "vertical";
1143
1143
  }
@@ -1150,24 +1150,24 @@ function vt(e, t) {
1150
1150
  A.xAxis = { type: "linear", title: A.xAxis.title, min: e, max: t }, gt = !0;
1151
1151
  }
1152
1152
  a(vt, "setXAxisRangeData");
1153
- function Jt(e) {
1153
+ function Zt(e) {
1154
1154
  A.xAxis = {
1155
1155
  type: "band",
1156
1156
  title: A.xAxis.title,
1157
1157
  categories: e.map((t) => xt(t.text))
1158
1158
  }, gt = !0;
1159
1159
  }
1160
- a(Jt, "setXAxisBand");
1161
- function Zt(e) {
1160
+ a(Zt, "setXAxisBand");
1161
+ function Jt(e) {
1162
1162
  A.yAxis.title = xt(e.text);
1163
1163
  }
1164
- a(Zt, "setYAxisTitle");
1164
+ a(Jt, "setYAxisTitle");
1165
1165
  function ti(e, t) {
1166
1166
  A.yAxis = { type: "linear", title: A.yAxis.title, min: e, max: t }, kt = !0;
1167
1167
  }
1168
1168
  a(ti, "setYAxisRangeData");
1169
1169
  function ii(e) {
1170
- const t = Math.min(...e), i = Math.max(...e), s = G(A.yAxis) ? A.yAxis.min : 1 / 0, n = G(A.yAxis) ? A.yAxis.max : -1 / 0;
1170
+ const t = Math.min(...e), i = Math.max(...e), s = j(A.yAxis) ? A.yAxis.min : 1 / 0, n = j(A.yAxis) ? A.yAxis.max : -1 / 0;
1171
1171
  A.yAxis = {
1172
1172
  type: "linear",
1173
1173
  title: A.yAxis.title,
@@ -1181,10 +1181,10 @@ function Pt(e) {
1181
1181
  if (e.length === 0)
1182
1182
  return t;
1183
1183
  if (!gt) {
1184
- const i = G(A.xAxis) ? A.xAxis.min : 1 / 0, s = G(A.xAxis) ? A.xAxis.max : -1 / 0;
1184
+ const i = j(A.xAxis) ? A.xAxis.min : 1 / 0, s = j(A.xAxis) ? A.xAxis.max : -1 / 0;
1185
1185
  vt(Math.min(i, 1), Math.max(s, e.length));
1186
1186
  }
1187
- if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])), G(A.xAxis)) {
1187
+ if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])), j(A.xAxis)) {
1188
1188
  const i = A.xAxis.min, s = A.xAxis.max, n = (s - i) / (e.length - 1), o = [];
1189
1189
  for (let g = i; g <= s; g += n)
1190
1190
  o.push(`${g}`);
@@ -1219,7 +1219,7 @@ a(si, "setBarData");
1219
1219
  function ni() {
1220
1220
  if (A.plots.length === 0)
1221
1221
  throw Error("No Plot to render, please provide a plot with some data");
1222
- return A.title = Yt(), Vi.build(ot, A, ht, Gt);
1222
+ return A.title = Yt(), Vi.build(ot, A, ht, jt);
1223
1223
  }
1224
1224
  a(ni, "getDrawableElem");
1225
1225
  function ai() {
@@ -1248,12 +1248,12 @@ var Bi = /* @__PURE__ */ a(function() {
1248
1248
  setOrientation: Qt,
1249
1249
  setXAxisTitle: Kt,
1250
1250
  setXAxisRangeData: vt,
1251
- setXAxisBand: Jt,
1252
- setYAxisTitle: Zt,
1251
+ setXAxisBand: Zt,
1252
+ setYAxisTitle: Jt,
1253
1253
  setYAxisRangeData: ti,
1254
1254
  setLineData: ei,
1255
1255
  setBarData: si,
1256
- setTmpSVGG: jt,
1256
+ setTmpSVGG: qt,
1257
1257
  getChartThemeConfig: ai,
1258
1258
  getChartConfig: ri,
1259
1259
  getXYChartData: oi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.77-beta.3",
3
+ "version": "0.0.77-beta.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"