@embeddable.com/remarkable-ui 0.1.36 → 0.1.38

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 (37) hide show
  1. package/dist/BarChartDefaultHorizontalPro.js +2 -2
  2. package/dist/BarChartDefaultPro.js +2 -2
  3. package/dist/BarChartGroupedHorizontalPro.js +2 -2
  4. package/dist/BarChartGroupedPro.js +2 -2
  5. package/dist/BarChartStackedHorizontalPro.js +2 -2
  6. package/dist/BarChartStackedPro.js +2 -2
  7. package/dist/DonutChartPro.js +1 -1
  8. package/dist/DonutLabelChartPro.js +1 -1
  9. package/dist/LineChartComparisonDefaultPro.js +82 -76
  10. package/dist/LineChartComparisonDefaultPro.js.map +1 -1
  11. package/dist/LineChartDefaultPro.js +2 -2
  12. package/dist/LineChartGroupedPro.js +2 -2
  13. package/dist/PieChartPro.js +1 -1
  14. package/dist/{bars.utils-D2ZNn4I1.js → bars.utils-CTqUglN7.js} +3 -3
  15. package/dist/{bars.utils-D2ZNn4I1.js.map → bars.utils-CTqUglN7.js.map} +1 -1
  16. package/dist/{charts.newFillGaps.hooks-8oF8pYjr.js → charts.newFillGaps.hooks-YXEKFvmz.js} +2 -2
  17. package/dist/{charts.newFillGaps.hooks-8oF8pYjr.js.map → charts.newFillGaps.hooks-YXEKFvmz.js.map} +1 -1
  18. package/dist/{charts.utils-BFYHGiMZ.js → charts.utils-CgwyTiTH.js} +2 -2
  19. package/dist/{charts.utils-BFYHGiMZ.js.map → charts.utils-CgwyTiTH.js.map} +1 -1
  20. package/dist/embeddable-components.json +10 -10
  21. package/dist/embeddable-lifecycle.js +6 -5
  22. package/dist/{index-DWhYhJ0M.js → index-BGwJ9TYS.js} +2 -2
  23. package/dist/{index-DWhYhJ0M.js.map → index-BGwJ9TYS.js.map} +1 -1
  24. package/dist/{index-fW1psiZu.js → index-DKUEiV33.js} +2 -2
  25. package/dist/{index-fW1psiZu.js.map → index-DKUEiV33.js.map} +1 -1
  26. package/dist/{index-BsjrQxtw.js → index-DdEgKFPe.js} +2 -2
  27. package/dist/{index-BsjrQxtw.js.map → index-DdEgKFPe.js.map} +1 -1
  28. package/dist/index.js +6 -6
  29. package/dist/object.utils-Cae_z0QB.js +69 -0
  30. package/dist/object.utils-Cae_z0QB.js.map +1 -0
  31. package/dist/{pies.utils-D6CRlUd4.js → pies.utils-DArVf3EJ.js} +3 -3
  32. package/dist/{pies.utils-D6CRlUd4.js.map → pies.utils-DArVf3EJ.js.map} +1 -1
  33. package/dist/remarkable-pro/components/charts/lines/LineChartComparisonDefaultPro/LineChartComparisonDefaultPro.utils.d.ts.map +1 -1
  34. package/dist/remarkable-pro/theme/styles/styles.utils.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/object.utils-BNKDL7Y9.js +0 -67
  37. package/dist/object.utils-BNKDL7Y9.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { i as L, r as w, m as M, j as l, d as V, a as y, b as z, t as P, c as k, s as v, e as H, f as R, g as j, x as I, y as S, h as T, k as Y, l as F, n as E, V as G, o as O } from "./component.constants-D59iJ42U.js";
2
2
  import { useTheme as W, defineComponent as _ } from "@embeddable.com/react";
3
3
  import { C as q } from "./ChartCard-Cr2L2Uki.js";
4
- import { g as J, a as K, B as N } from "./bars.utils-D2ZNn4I1.js";
5
- import { u as Q } from "./charts.newFillGaps.hooks-8oF8pYjr.js";
4
+ import { g as J, a as K, B as N } from "./bars.utils-CTqUglN7.js";
5
+ import { u as Q } from "./charts.newFillGaps.hooks-YXEKFvmz.js";
6
6
  const U = (a) => {
7
7
  var i, n;
8
8
  const s = W();
@@ -1,8 +1,8 @@
1
1
  import { i as L, r as y, m as w, j as l, d as M, a as V, b as P, t as v, c as k, s as R, e as j, f as I, g as S, x as T, y as X, p as F, q, u as z, v as E, V as G, o as O } from "./component.constants-D59iJ42U.js";
2
2
  import { useTheme as W, defineComponent as _ } from "@embeddable.com/react";
3
3
  import { C as H } from "./ChartCard-Cr2L2Uki.js";
4
- import { g as J, a as K, B as N } from "./bars.utils-D2ZNn4I1.js";
5
- import { u as Q } from "./charts.newFillGaps.hooks-8oF8pYjr.js";
4
+ import { g as J, a as K, B as N } from "./bars.utils-CTqUglN7.js";
5
+ import { u as Q } from "./charts.newFillGaps.hooks-YXEKFvmz.js";
6
6
  const U = (a) => {
7
7
  var o, n;
8
8
  const s = W();
@@ -1,8 +1,8 @@
1
1
  import { i as L, r as w, m as k, j as m, d as z, w as G, b as P, z as R, t as M, c as H, A as j, s as v, e as S, f as T, g as F, x as Y, y as E, h as I, k as O, l as W, V as u, o as _ } from "./component.constants-D59iJ42U.js";
2
2
  import { useTheme as q, defineComponent as J } from "@embeddable.com/react";
3
3
  import { C as K } from "./ChartCard-Cr2L2Uki.js";
4
- import { b as N, a as Q, B as U } from "./bars.utils-D2ZNn4I1.js";
5
- import { u as X } from "./charts.newFillGaps.hooks-8oF8pYjr.js";
4
+ import { b as N, a as Q, B as U } from "./bars.utils-CTqUglN7.js";
5
+ import { u as X } from "./charts.newFillGaps.hooks-YXEKFvmz.js";
6
6
  const Z = (e) => {
7
7
  var n, l;
8
8
  const a = q();
@@ -1,8 +1,8 @@
1
1
  import { i as L, r as w, m as G, j as m, d as k, w as P, b as R, z as M, t as j, c as v, A as S, s as T, e as F, f as X, g as z, x as q, y as E, p as I, q as O, u as W, V as u, o as _ } from "./component.constants-D59iJ42U.js";
2
2
  import { useTheme as H, defineComponent as J } from "@embeddable.com/react";
3
3
  import { C as K } from "./ChartCard-Cr2L2Uki.js";
4
- import { b as N, a as Q, B as U } from "./bars.utils-D2ZNn4I1.js";
5
- import { u as Y } from "./charts.newFillGaps.hooks-8oF8pYjr.js";
4
+ import { b as N, a as Q, B as U } from "./bars.utils-CTqUglN7.js";
5
+ import { u as Y } from "./charts.newFillGaps.hooks-YXEKFvmz.js";
6
6
  const Z = (e) => {
7
7
  var n, l;
8
8
  const a = H();
@@ -1,8 +1,8 @@
1
1
  import { i as L, r as f, m as w, j as m, d as S, w as z, b as P, z as R, t as M, c as H, A as T, s as j, e as v, f as F, g as G, x as Y, y as E, h as I, k as O, l as W, B as _, V as u, o as q } from "./component.constants-D59iJ42U.js";
2
2
  import { useTheme as J, defineComponent as K } from "@embeddable.com/react";
3
3
  import { C as N } from "./ChartCard-Cr2L2Uki.js";
4
- import { b as Q, a as U, B as X } from "./bars.utils-D2ZNn4I1.js";
5
- import { u as Z } from "./charts.newFillGaps.hooks-8oF8pYjr.js";
4
+ import { b as Q, a as U, B as X } from "./bars.utils-CTqUglN7.js";
5
+ import { u as Z } from "./charts.newFillGaps.hooks-YXEKFvmz.js";
6
6
  const $ = (a) => {
7
7
  var n, l;
8
8
  const e = J();
@@ -1,8 +1,8 @@
1
1
  import { i as D, r as L, m as w, j as m, d as S, w as P, b as R, z as M, t as T, c as j, A as v, s as F, e as G, f as X, g as z, x as q, y as E, p as I, q as O, u as W, B as _, V as u, o as H } from "./component.constants-D59iJ42U.js";
2
2
  import { useTheme as J, defineComponent as K } from "@embeddable.com/react";
3
3
  import { C as N } from "./ChartCard-Cr2L2Uki.js";
4
- import { b as Q, a as U, B as Y } from "./bars.utils-D2ZNn4I1.js";
5
- import { u as Z } from "./charts.newFillGaps.hooks-8oF8pYjr.js";
4
+ import { b as Q, a as U, B as Y } from "./bars.utils-CTqUglN7.js";
5
+ import { u as Z } from "./charts.newFillGaps.hooks-YXEKFvmz.js";
6
6
  const $ = (a) => {
7
7
  var n, l;
8
8
  const e = J();
@@ -1,6 +1,6 @@
1
1
  import { d as a, w as s, z as t, t as o, c as n, s as r, a3 as i, e as m, f as l, V as d, o as u } from "./component.constants-D59iJ42U.js";
2
2
  import { defineComponent as c } from "@embeddable.com/react";
3
- import { D as p } from "./index-DWhYhJ0M.js";
3
+ import { D as p } from "./index-BGwJ9TYS.js";
4
4
  const C = {
5
5
  name: "DonutChartPro",
6
6
  label: "Donut Chart",
@@ -1,4 +1,4 @@
1
- import { D as n } from "./index-fW1psiZu.js";
1
+ import { D as n } from "./index-DKUEiV33.js";
2
2
  import { d as s, w as a, z as r, t as o, c as l, s as i, a3 as m, e as d, f as u, V as b, o as t } from "./component.constants-D59iJ42U.js";
3
3
  import { defineComponent as c } from "@embeddable.com/react";
4
4
  const p = {
@@ -1,73 +1,79 @@
1
1
  import { useTheme as Y, defineComponent as _ } from "@embeddable.com/react";
2
- import { m as E, E as G, C as w, U, _ as I, $ as O, i as q, r as z, j as V, a0 as K, d as J, a as B, Y as A, a1 as S, z as W, X as H, W as Q, t as Z, c as ee, s as ae, e as se, f as ne, g as te, x as oe, y as ie, p as re, q as le, u as me, V as de, o as F } from "./component.constants-D59iJ42U.js";
2
+ import { m as E, E as G, C as w, U, _ as I, $ as O, i as q, r as z, j as V, a0 as K, d as J, a as B, Y as A, a1 as S, z as W, X as H, W as Q, t as Z, c as ee, s as ae, e as se, f as ne, g as te, x as ie, y as oe, p as re, q as le, u as me, V as de, o as F } from "./component.constants-D59iJ42U.js";
3
3
  import { C as ce } from "./ChartCard-Cr2L2Uki.js";
4
4
  import { useEffect as pe } from "react";
5
5
  import { g as ue } from "./timeRange.utils-D6gvWIhx.js";
6
6
  import { g as M } from "./formatter.utils-DDLdrAl9.js";
7
- import { g as ge, a as he } from "./object.utils-BNKDL7Y9.js";
8
- import { i as be, s as xe } from "./color.utils-CVyp-fGP.js";
7
+ import { g as ge, a as xe } from "./object.utils-Cae_z0QB.js";
8
+ import { i as he, s as be } from "./color.utils-CVyp-fGP.js";
9
9
  import { g as Ce } from "./lines.utils-CFEUUo4k.js";
10
- import { u as N } from "./charts.newFillGaps.hooks-8oF8pYjr.js";
10
+ import { u as N } from "./charts.newFillGaps.hooks-YXEKFvmz.js";
11
11
  import { C as fe } from "./ComparisonPeriod.type.emb-C7ixEJKv.js";
12
- const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
13
- var v, R, b, u;
14
- const { data: n, measure: o, dimension: s, index: c, isPreviousPeriod: r, hasMinMaxYAxisRange: x, labels: e } = a, p = n == null ? void 0 : n.map((C) => C[s.name]), l = !!((v = o.inputs) != null && v.connectGaps), g = e ? e.map((C) => {
12
+ const L = "mainAxis", v = "comparisonAxis", $ = (a, t) => {
13
+ var P, k, h, u;
14
+ const { data: n, measure: i, dimension: s, index: c, isPreviousPeriod: r, hasMinMaxYAxisRange: b, labels: e } = a, p = n == null ? void 0 : n.map((C) => C[s.name]), l = !!((P = i.inputs) != null && P.connectGaps), g = e ? e.map((C) => {
15
15
  const D = n == null ? void 0 : n.find((T) => T[s.name] === C);
16
- return (D == null ? void 0 : D[o.name]) ?? (l ? 0 : null);
17
- }) : n == null ? void 0 : n.map((C) => C[o.name] ?? (l ? 0 : null)), h = M(t), f = ge(t), i = !!((R = o.inputs) != null && R[r ? "previousLineDashed" : "lineDashed"]), m = (b = o.inputs) == null ? void 0 : b[r ? "previousLineColor" : "lineColor"], d = be(m) ? m : he(
16
+ return (D == null ? void 0 : D[i.name]) ?? (l ? 0 : null);
17
+ }) : n == null ? void 0 : n.map((C) => C[i.name] ?? (l ? 0 : null)), x = M(t), f = ge(t), o = !!((k = i.inputs) != null && k[r ? "previousLineDashed" : "lineDashed"]), m = (h = i.inputs) == null ? void 0 : h[r ? "previousLineColor" : "lineColor"], d = he(m) ? m : xe(
18
18
  `${f}.charts.backgroundColors`,
19
- o.name,
19
+ i.name,
20
20
  t.charts.backgroundColors ?? G,
21
21
  c
22
- ), y = h.dimensionOrMeasureTitle(o);
22
+ ), y = x.dimensionOrMeasureTitle(i);
23
23
  return {
24
- xAxisID: r ? k : P,
24
+ xAxisID: r ? v : L,
25
25
  labels: p,
26
26
  rawLabel: y,
27
27
  label: (r ? `${U.t("common.compared")} ` : "") + y,
28
28
  data: g,
29
- backgroundColor: xe(
29
+ backgroundColor: be(
30
30
  d,
31
31
  w("--em-line-chart-line-fill-opacity")
32
32
  ),
33
33
  pointBackgroundColor: d,
34
- borderDash: i ? [
34
+ borderDash: o ? [
35
35
  w("--em-line-chart-line-dash-length"),
36
36
  w("--em-line-chart-line-gap-length")
37
37
  ] : void 0,
38
38
  borderColor: d,
39
- fill: (u = o.inputs) == null ? void 0 : u.fillUnderLine,
40
- clip: x
39
+ fill: (u = i.inputs) == null ? void 0 : u.fillUnderLine,
40
+ clip: b
41
41
  };
42
42
  }, ye = (a, t) => {
43
43
  if (!a.data)
44
- return { labels: [], datasets: [{ data: [] }] };
45
- const { data: n, dataComparison: o, dimension: s, measures: c, hasMinMaxYAxisRange: r } = a, e = s.nativeType === "time" ? void 0 : o ? Array.from(
44
+ return {
45
+ labels: [],
46
+ datasets: [
47
+ { xAxisID: L, data: [] },
48
+ { xAxisID: v, data: [] }
49
+ ]
50
+ };
51
+ const { data: n, dataComparison: i, dimension: s, measures: c, hasMinMaxYAxisRange: r } = a, e = s.nativeType === "time" ? void 0 : i ? Array.from(
46
52
  /* @__PURE__ */ new Set([
47
53
  ...n.map((g) => g[s.name]),
48
- ...(o == null ? void 0 : o.map((g) => g[s.name])) ?? []
54
+ ...(i == null ? void 0 : i.map((g) => g[s.name])) ?? []
49
55
  ])
50
56
  ) : void 0, p = c.map(
51
- (g, h) => $(
57
+ (g, x) => $(
52
58
  {
53
59
  data: n,
54
60
  measure: g,
55
61
  dimension: s,
56
62
  labels: e,
57
63
  hasMinMaxYAxisRange: r,
58
- index: h
64
+ index: x
59
65
  },
60
66
  t
61
67
  )
62
68
  ), l = c.map(
63
- (g, h) => $(
69
+ (g, x) => $(
64
70
  {
65
- data: o,
71
+ data: i,
66
72
  measure: g,
67
73
  dimension: s,
68
74
  labels: e,
69
75
  hasMinMaxYAxisRange: r,
70
- index: h,
76
+ index: x,
71
77
  isPreviousPeriod: !0
72
78
  },
73
79
  t
@@ -78,7 +84,7 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
78
84
  datasets: [...p, ...l]
79
85
  };
80
86
  }, De = (a, t) => {
81
- const { dimension: n, data: o, measures: s, xAxisLabel: c } = a, r = M(t);
87
+ const { dimension: n, data: i, measures: s, xAxisLabel: c } = a, r = M(t);
82
88
  return {
83
89
  plugins: {
84
90
  legend: {
@@ -114,7 +120,7 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
114
120
  x: {
115
121
  display: !1
116
122
  },
117
- [P]: {
123
+ [L]: {
118
124
  title: {
119
125
  ...O,
120
126
  text: c,
@@ -125,11 +131,11 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
125
131
  ...I,
126
132
  callback(e) {
127
133
  var p;
128
- return r.data(n, (p = o.labels) == null ? void 0 : p[e]);
134
+ return r.data(n, (p = i.labels) == null ? void 0 : p[e]);
129
135
  }
130
136
  }
131
137
  },
132
- [k]: {
138
+ [v]: {
133
139
  display: !1
134
140
  },
135
141
  y: {
@@ -140,15 +146,15 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
140
146
  }
141
147
  };
142
148
  }, Ae = (a, t) => {
143
- var h, f;
144
- const { dimension: n, data: o, measures: s, xAxisLabel: c, showComparisonAxis: r, showDataComparison: x } = a, e = M(t), p = ((h = o.datasets.find((i) => i.xAxisID === P)) == null ? void 0 : h.labels) ?? [], l = ((f = o.datasets.find((i) => i.xAxisID === k)) == null ? void 0 : f.labels) ?? [];
149
+ var x, f;
150
+ const { dimension: n, data: i, measures: s, xAxisLabel: c, showComparisonAxis: r, showDataComparison: b } = a, e = M(t), p = ((x = i.datasets.find((o) => o.xAxisID === L)) == null ? void 0 : x.labels) ?? [], l = ((f = i.datasets.find((o) => o.xAxisID === v)) == null ? void 0 : f.labels) ?? [];
145
151
  return {
146
152
  plugins: {
147
153
  legend: {
148
154
  labels: {
149
- filter: (i, m) => {
150
- if (!i) return !1;
151
- const d = m.datasets[i.datasetIndex];
155
+ filter: (o, m) => {
156
+ if (!o) return !1;
157
+ const d = m.datasets[o.datasetIndex];
152
158
  return Array.isArray(d.data) && d.data.length > 0;
153
159
  }
154
160
  }
@@ -156,34 +162,34 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
156
162
  datalabels: {
157
163
  labels: {
158
164
  value: {
159
- formatter: (i, m) => {
165
+ formatter: (o, m) => {
160
166
  const d = s[m.datasetIndex % s.length];
161
- return e.data(d, i);
167
+ return e.data(d, o);
162
168
  }
163
169
  }
164
170
  }
165
171
  },
166
172
  tooltip: {
167
173
  callbacks: {
168
- title: (i) => {
169
- const m = i[0];
170
- if (!x && m)
174
+ title: (o) => {
175
+ const m = o[0];
176
+ if (!b && m)
171
177
  return e.data(n, m.label);
172
178
  const d = m == null ? void 0 : m.dataIndex;
173
179
  if (d === void 0) return "";
174
- const y = p[d] && e.data(n, p[d]), L = l[d] && e.data(n, l[d]);
175
- return `${y ?? "-"} vs ${L ?? "-"}`;
180
+ const y = p[d] && e.data(n, p[d]), R = l[d] && e.data(n, l[d]);
181
+ return `${y ?? "-"} vs ${R ?? "-"}`;
176
182
  },
177
- label: (i) => {
178
- const m = s[i.datasetIndex % s.length], d = i.raw;
179
- return `${i.dataset.label}: ${e.data(m, d)}`;
183
+ label: (o) => {
184
+ const m = s[o.datasetIndex % s.length], d = o.raw;
185
+ return `${o.dataset.label}: ${e.data(m, d)}`;
180
186
  }
181
187
  }
182
188
  }
183
189
  },
184
190
  scales: {
185
191
  x: { display: !1 },
186
- [P]: {
192
+ [L]: {
187
193
  title: {
188
194
  ...O,
189
195
  text: c,
@@ -192,10 +198,10 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
192
198
  grid: { display: !1 },
193
199
  ticks: {
194
200
  ...I,
195
- callback: (i) => e.data(n, p[Number(i)])
201
+ callback: (o) => e.data(n, p[Number(o)])
196
202
  }
197
203
  },
198
- [k]: {
204
+ [v]: {
199
205
  title: {
200
206
  ...O,
201
207
  text: c,
@@ -205,24 +211,24 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
205
211
  display: r && l.length > 0,
206
212
  ticks: {
207
213
  ...I,
208
- callback: (i) => {
214
+ callback: (o) => {
209
215
  if (l.length === 0)
210
216
  return "";
211
- const m = l[Number(i)];
217
+ const m = l[Number(o)];
212
218
  return m ? e.data(n, m) : "";
213
219
  }
214
220
  }
215
221
  },
216
222
  y: {
217
223
  ticks: {
218
- callback: (i) => e.data(s[0], i)
224
+ callback: (o) => e.data(s[0], o)
219
225
  }
220
226
  }
221
227
  }
222
228
  };
223
229
  }, Le = (a, t) => {
224
230
  var c, r;
225
- const { onLineClicked: n, dimension: o } = a, s = o.nativeType === "time" ? Ae : De;
231
+ const { onLineClicked: n, dimension: i } = a, s = i.nativeType === "time" ? Ae : De;
226
232
  return E(
227
233
  Ce({ onLineClicked: n }),
228
234
  s(a, t),
@@ -231,22 +237,22 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
231
237
  }, ve = (a) => {
232
238
  const t = Y();
233
239
  q(t);
234
- const { title: n, description: o, xAxisLabel: s, yAxisLabel: c } = z(a), {
240
+ const { title: n, description: i, xAxisLabel: s, yAxisLabel: c } = z(a), {
235
241
  comparisonPeriod: r,
236
- measures: x,
242
+ measures: b,
237
243
  xAxis: e,
238
244
  reverseXAxis: p,
239
245
  showLegend: l,
240
246
  showLogarithmicScale: g,
241
- showTooltips: h,
247
+ showTooltips: x,
242
248
  showValueLabels: f,
243
- yAxisRangeMax: i,
249
+ yAxisRangeMax: o,
244
250
  yAxisRangeMin: m,
245
251
  primaryDateRange: d,
246
252
  comparisonDateRange: y,
247
- showComparisonAxis: L,
248
- setComparisonDateRange: v,
249
- onLineClicked: R
253
+ showComparisonAxis: R,
254
+ setComparisonDateRange: P,
255
+ onLineClicked: k
250
256
  } = a;
251
257
  pe(() => {
252
258
  const X = ue(
@@ -254,43 +260,43 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
254
260
  r,
255
261
  t
256
262
  );
257
- v(X);
263
+ P(X);
258
264
  }, [r, JSON.stringify(d), t]);
259
- const b = N({ results: a.results, dimension: e }), u = N({
265
+ const h = N({ results: a.results, dimension: e }), u = N({
260
266
  results: a.resultsComparison,
261
267
  dimension: e,
262
268
  externalDateBounds: y
263
269
  }), C = !!(d && r), D = ye(
264
270
  {
265
- data: b.data,
271
+ data: h.data,
266
272
  dataComparison: C ? (u == null ? void 0 : u.data) ?? [] : void 0,
267
273
  dimension: e,
268
- measures: x,
269
- hasMinMaxYAxisRange: m != null || i != null
274
+ measures: b,
275
+ hasMinMaxYAxisRange: m != null || o != null
270
276
  },
271
277
  t
272
278
  ), T = Le(
273
279
  {
274
280
  data: D,
275
281
  dimension: e,
276
- measures: x,
282
+ measures: b,
277
283
  xAxisLabel: s,
278
- showComparisonAxis: L,
284
+ showComparisonAxis: R,
279
285
  showDataComparison: C,
280
- onLineClicked: R
286
+ onLineClicked: k
281
287
  },
282
288
  t
283
289
  ), j = {
284
- isLoading: !!(b.isLoading || u != null && u.isLoading),
285
- data: !(b != null && b.data) && !(u != null && u.data) ? void 0 : [...b.data ?? [], ...(u == null ? void 0 : u.data) ?? []]
290
+ isLoading: !!(h.isLoading || u != null && u.isLoading),
291
+ data: !(h != null && h.data) && !(u != null && u.data) ? void 0 : [...h.data ?? [], ...(u == null ? void 0 : u.data) ?? []]
286
292
  };
287
293
  return /* @__PURE__ */ V.jsx(
288
294
  ce,
289
295
  {
290
296
  data: j,
291
- dimensionsAndMeasures: [...x, e],
292
- errorMessage: b.error || (u == null ? void 0 : u.error),
293
- subtitle: o,
297
+ dimensionsAndMeasures: [...b, e],
298
+ errorMessage: h.error || (u == null ? void 0 : u.error),
299
+ subtitle: i,
294
300
  title: n,
295
301
  children: /* @__PURE__ */ V.jsx(
296
302
  K,
@@ -299,11 +305,11 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
299
305
  reverseXAxis: p,
300
306
  showLegend: l,
301
307
  showLogarithmicScale: g,
302
- showTooltips: h,
308
+ showTooltips: x,
303
309
  showValueLabels: f,
304
310
  xAxisLabel: s,
305
311
  yAxisLabel: c,
306
- yAxisRangeMax: i,
312
+ yAxisRangeMax: o,
307
313
  yAxisRangeMin: m,
308
314
  options: T
309
315
  }
@@ -370,8 +376,8 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
370
376
  se,
371
377
  ne,
372
378
  te,
373
- oe,
374
379
  ie,
380
+ oe,
375
381
  re,
376
382
  le,
377
383
  me,
@@ -398,7 +404,7 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
398
404
  }, Ne = _(ve, Re, {
399
405
  /* @ts-expect-error - to be fixed in @embeddable.com/react */
400
406
  props: (a, [t, n]) => {
401
- const o = [
407
+ const i = [
402
408
  {
403
409
  property: a.xAxis,
404
410
  direction: "asc"
@@ -411,7 +417,7 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
411
417
  results: F({
412
418
  from: a.dataset,
413
419
  select: [...a.measures, a.xAxis],
414
- orderBy: o,
420
+ orderBy: i,
415
421
  filters: a.primaryDateRange && s ? [
416
422
  {
417
423
  property: s,
@@ -423,7 +429,7 @@ const P = "mainAxis", k = "comparisonAxis", $ = (a, t) => {
423
429
  resultsComparison: a.primaryDateRange && s && (t != null && t.comparisonDateRange) ? F({
424
430
  from: a.dataset,
425
431
  select: [...a.measures, a.xAxis],
426
- orderBy: o,
432
+ orderBy: i,
427
433
  filters: [
428
434
  {
429
435
  property: s,