@hybridcore/ui 1.6.3 → 1.6.4

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.
@@ -1,136 +1,49 @@
1
- import { m as Z, s as ee, C as F, L as W, k as te, l as re, T as K, R as ae, A as ie } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useThemeProps as se, useTheme as oe } from "@mui/material";
3
- import ne from "dayjs";
4
- import O from "lodash";
5
- import { useId as le, useRef as ce, useEffect as ue } from "react";
6
- import { colorSetFromPalette as he } from "../_common/utils.js";
7
- import { E as Q, e as de, f as H, u as P, m as J, b as f, p as B, c as D } from "../../../ColorSet-C7vpNXhM.js";
8
- import { X as me } from "../../../AxisRenderer-DTyLLA6c.js";
9
- import { A as pe, a as fe } from "../../../AxisRendererY-C_ItLPNV.js";
10
- import { C as G } from "../../../CategoryAxis-CwnfaGc8.js";
11
- import { R as ge } from "../../../RoundedRectangle-CWLi2PXn.js";
12
- import { C as be } from "../../../ColumnSeries-CjgdJ2QL.js";
13
- class T extends Q {
14
- _afterNew() {
15
- super._afterNewApplyThemes();
16
- }
17
- /**
18
- * @ignore
19
- */
20
- getFill(i) {
21
- return {
22
- addColorStop: (s, e) => {
23
- }
24
- };
25
- }
26
- _changed() {
27
- super._changed();
28
- }
29
- /**
30
- * @ignore
31
- */
32
- getBounds(i) {
33
- const s = this.get("target");
34
- if (s) {
35
- let e = s.globalBounds();
36
- const r = i.toLocal({ x: e.left, y: e.top }), n = i.toLocal({ x: e.right, y: e.top }), o = i.toLocal({ x: e.right, y: e.bottom }), a = i.toLocal({ x: e.left, y: e.bottom });
37
- return {
38
- left: Math.min(r.x, n.x, o.x, a.x),
39
- top: Math.min(r.y, n.y, o.y, a.y),
40
- right: Math.max(r.x, n.x, o.x, a.x),
41
- bottom: Math.max(r.y, n.y, o.y, a.y)
42
- };
43
- }
44
- return i._display.getLocalBounds();
45
- }
46
- }
47
- Object.defineProperty(T, "className", {
48
- enumerable: !0,
49
- configurable: !0,
50
- writable: !0,
51
- value: "Gradient"
52
- });
53
- Object.defineProperty(T, "classNames", {
54
- enumerable: !0,
55
- configurable: !0,
56
- writable: !0,
57
- value: Q.classNames.concat([T.className])
58
- });
59
- class V extends T {
60
- /**
61
- * @ignore
62
- */
63
- getFill(i) {
64
- const s = this.get("rotation", 0);
65
- let e = this.getBounds(i), r = e.left || 0, n = e.right || 0, o = e.top || 0, a = e.bottom || 0, p = Z(s), g = ee(s), l = p * (n - r), c = g * (a - o);
66
- l == 0 && (l = 1), c == 0 && (c = 1);
67
- let u = Math.max(l, c);
68
- const b = this._root._renderer.createLinearGradient(r, o, r + u * p, o + u * g), v = this.get("stops");
69
- if (v) {
70
- let N = 0;
71
- de(v, (y) => {
72
- let t = y.offset;
73
- H(t) || (t = N / (v.length - 1));
74
- let h = y.opacity;
75
- H(h) || (h = 1);
76
- let m = y.color;
77
- if (m) {
78
- const d = y.lighten;
79
- d && (m = P.lighten(m, d));
80
- const C = y.brighten;
81
- C && (m = P.brighten(m, C)), b.addColorStop(t, "rgba(" + m.r + "," + m.g + "," + m.b + "," + h + ")");
82
- }
83
- N++;
84
- });
85
- }
86
- return b;
87
- }
88
- }
89
- Object.defineProperty(V, "className", {
90
- enumerable: !0,
91
- configurable: !0,
92
- writable: !0,
93
- value: "LinearGradient"
94
- });
95
- Object.defineProperty(V, "classNames", {
96
- enumerable: !0,
97
- configurable: !0,
98
- writable: !0,
99
- value: T.classNames.concat([V.className])
100
- });
101
- class j extends F {
1
+ import { C as L, L as B, k as $, l as J, T as U, R as K, A as Q } from "../../../AnimatedTheme-jnasw6rT.js";
2
+ import { useThemeProps as Z, useTheme as ee } from "@mui/material";
3
+ import te from "dayjs";
4
+ import T from "lodash";
5
+ import { useId as re, useRef as ae, useEffect as ie } from "react";
6
+ import { colorSetFromPalette as se } from "../_common/utils.js";
7
+ import { m as E, f as oe, u as S, b as u, p as P, c as Y } from "../../../ColorSet-C7vpNXhM.js";
8
+ import { X as ne } from "../../../AxisRenderer-DTyLLA6c.js";
9
+ import { A as le, a as he } from "../../../AxisRendererY-C_ItLPNV.js";
10
+ import { C as R } from "../../../CategoryAxis-CwnfaGc8.js";
11
+ import { R as ce } from "../../../RoundedRectangle-CWLi2PXn.js";
12
+ import { L as ue } from "../../../LinearGradient-DiRq5YcI.js";
13
+ import { C as de } from "../../../ColumnSeries-CjgdJ2QL.js";
14
+ class _ extends L {
102
15
  constructor() {
103
16
  super(...arguments), Object.defineProperty(this, "labelContainer", {
104
17
  enumerable: !0,
105
18
  configurable: !0,
106
19
  writable: !0,
107
- value: this.children.push(F.new(this._root, {}))
20
+ value: this.children.push(L.new(this._root, {}))
108
21
  }), Object.defineProperty(this, "markerContainer", {
109
22
  enumerable: !0,
110
23
  configurable: !0,
111
24
  writable: !0,
112
- value: this.children.push(F.new(this._root, {}))
25
+ value: this.children.push(L.new(this._root, {}))
113
26
  }), Object.defineProperty(this, "startLabel", {
114
27
  enumerable: !0,
115
28
  configurable: !0,
116
29
  writable: !0,
117
- value: this.labelContainer.children.push(W.new(this._root, { themeTags: ["start"] }))
30
+ value: this.labelContainer.children.push(B.new(this._root, { themeTags: ["start"] }))
118
31
  }), Object.defineProperty(this, "endLabel", {
119
32
  enumerable: !0,
120
33
  configurable: !0,
121
34
  writable: !0,
122
- value: this.labelContainer.children.push(W.new(this._root, { themeTags: ["end"] }))
35
+ value: this.labelContainer.children.push(B.new(this._root, { themeTags: ["end"] }))
123
36
  }), Object.defineProperty(this, "markers", {
124
37
  enumerable: !0,
125
38
  configurable: !0,
126
39
  writable: !0,
127
- value: this.addDisposer(new te(re.new({}), () => ge._new(this._root, {
128
- themeTags: J(this.markers.template.get("themeTags", []), [this.get("orientation"), "heatlegend", "marker"])
40
+ value: this.addDisposer(new $(J.new({}), () => ce._new(this._root, {
41
+ themeTags: E(this.markers.template.get("themeTags", []), [this.get("orientation"), "heatlegend", "marker"])
129
42
  }, [this.markers.template])))
130
43
  });
131
44
  }
132
45
  _afterNew() {
133
- this._settings.themeTags = J(this._settings.themeTags, ["heatlegend", this._settings.orientation]), super._afterNew(), this.set("tooltip", K.new(this._root, {
46
+ this._settings.themeTags = E(this._settings.themeTags, ["heatlegend", this._settings.orientation]), super._afterNew(), this.set("tooltip", U.new(this._root, {
134
47
  themeTags: ["heatlegend"]
135
48
  }));
136
49
  }
@@ -138,8 +51,8 @@ class j extends F {
138
51
  * @ignore
139
52
  */
140
53
  makeMarker() {
141
- const i = this.markers.make();
142
- return i.states.create("disabled", {}), i;
54
+ const s = this.markers.make();
55
+ return s.states.create("disabled", {}), s;
143
56
  }
144
57
  /**
145
58
  * Moves and shows tooltip at specific value.
@@ -150,206 +63,206 @@ class j extends F {
150
63
  * @param text Text
151
64
  * @param color Color
152
65
  */
153
- showValue(i, s, e) {
154
- const r = this.getTooltip();
155
- if (r && H(i)) {
156
- const n = this.get("startValue", 0), o = this.get("endValue", 1);
157
- let a = (i - n) / (o - n);
158
- (a == 1 / 0 || a == -1 / 0 || isNaN(a)) && (a = 0.5);
159
- const p = this.get("startColor"), g = this.get("endColor");
160
- s || (s = this.getNumberFormatter().format(i)), e || (e = P.interpolate(a, p, g)), r.label.set("text", s);
161
- let l;
162
- this.get("orientation") == "vertical" ? l = this.markerContainer.toGlobal({ x: 0, y: this.innerHeight() * (1 - a) }) : l = this.markerContainer.toGlobal({ x: this.innerWidth() * a, y: 0 });
163
- let c = r.get("background");
164
- c && c.set("fill", e), r.set("pointTo", l), r.show();
66
+ showValue(s, r, a) {
67
+ const i = this.getTooltip();
68
+ if (i && oe(s)) {
69
+ const d = this.get("startValue", 0), o = this.get("endValue", 1);
70
+ let t = (s - d) / (o - d);
71
+ (t == 1 / 0 || t == -1 / 0 || isNaN(t)) && (t = 0.5);
72
+ const f = this.get("startColor"), y = this.get("endColor");
73
+ r || (r = this.getNumberFormatter().format(s)), a || (a = S.interpolate(t, f, y)), i.label.set("text", r);
74
+ let n;
75
+ this.get("orientation") == "vertical" ? n = this.markerContainer.toGlobal({ x: 0, y: this.innerHeight() * (1 - t) }) : n = this.markerContainer.toGlobal({ x: this.innerWidth() * t, y: 0 });
76
+ let l = i.get("background");
77
+ l && l.set("fill", a), i.set("pointTo", n), i.show();
165
78
  }
166
79
  }
167
80
  _prepareChildren() {
168
81
  super._prepareChildren();
169
- const i = this.labelContainer, s = this.get("orientation"), e = this.startLabel, r = this.endLabel, n = this.getTooltip();
170
- if (this.isDirty("orientation") && (s == "vertical" ? (this.markerContainer.setAll({ layout: this._root.verticalLayout, height: f }), this.set("layout", this._root.horizontalLayout), e.setAll({ y: f, x: void 0, centerY: f, centerX: f }), r.setAll({ y: 0, x: void 0, centerY: 0, centerX: f }), i.setAll({ height: f, width: void 0 }), n && n.set("pointerOrientation", "horizontal")) : (this.markerContainer.setAll({ layout: this._root.horizontalLayout, width: f }), this.set("layout", this._root.verticalLayout), e.setAll({ x: 0, y: void 0, centerX: 0, centerY: 0 }), r.setAll({ x: f, y: void 0, centerX: f, centerY: 0 }), i.setAll({ width: f, height: void 0 }), n && n.set("pointerOrientation", "vertical"))), this.isDirty("stepCount")) {
171
- const o = this.get("stepCount", 1), a = this.get("startColor"), p = this.get("endColor"), g = this.get("startOpacity", 1), l = this.get("endOpacity", 1);
82
+ const s = this.labelContainer, r = this.get("orientation"), a = this.startLabel, i = this.endLabel, d = this.getTooltip();
83
+ if (this.isDirty("orientation") && (r == "vertical" ? (this.markerContainer.setAll({ layout: this._root.verticalLayout, height: u }), this.set("layout", this._root.horizontalLayout), a.setAll({ y: u, x: void 0, centerY: u, centerX: u }), i.setAll({ y: 0, x: void 0, centerY: 0, centerX: u }), s.setAll({ height: u, width: void 0 }), d && d.set("pointerOrientation", "horizontal")) : (this.markerContainer.setAll({ layout: this._root.horizontalLayout, width: u }), this.set("layout", this._root.verticalLayout), a.setAll({ x: 0, y: void 0, centerX: 0, centerY: 0 }), i.setAll({ x: u, y: void 0, centerX: u, centerY: 0 }), s.setAll({ width: u, height: void 0 }), d && d.set("pointerOrientation", "vertical"))), this.isDirty("stepCount")) {
84
+ const o = this.get("stepCount", 1), t = this.get("startColor"), f = this.get("endColor"), y = this.get("startOpacity", 1), n = this.get("endOpacity", 1);
172
85
  if (this.markerContainer.children.clear(), o > 1)
173
- for (let c = 0; c < o; c++) {
174
- const u = this.makeMarker();
175
- s == "vertical" ? this.markerContainer.children.moveValue(u, 0) : this.markerContainer.children.push(u), a && p && u.setAll({
176
- fill: P.interpolate(c / o, a, p),
177
- fillOpacity: B(c / o * 100).interpolate(g, l)
86
+ for (let l = 0; l < o; l++) {
87
+ const h = this.makeMarker();
88
+ r == "vertical" ? this.markerContainer.children.moveValue(h, 0) : this.markerContainer.children.push(h), t && f && h.setAll({
89
+ fill: S.interpolate(l / o, t, f),
90
+ fillOpacity: P(l / o * 100).interpolate(y, n)
178
91
  });
179
92
  }
180
93
  else if (o == 1) {
181
- const c = this.makeMarker();
182
- this.markerContainer.children.push(c);
183
- const u = V.new(this._root, {
94
+ const l = this.makeMarker();
95
+ this.markerContainer.children.push(l);
96
+ const h = ue.new(this._root, {
184
97
  stops: [{
185
- color: a,
186
- opacity: g
98
+ color: t,
99
+ opacity: y
187
100
  }, {
188
- color: p,
189
- opacity: l
101
+ color: f,
102
+ opacity: n
190
103
  }]
191
104
  });
192
- if (s == "vertical") {
193
- u.set("rotation", 90);
194
- let b = u.get("stops");
105
+ if (r == "vertical") {
106
+ h.set("rotation", 90);
107
+ let b = h.get("stops");
195
108
  b && b.reverse();
196
109
  } else
197
- u.set("rotation", 0);
198
- a && p && c.set("fillGradient", u);
110
+ h.set("rotation", 0);
111
+ t && f && l.set("fillGradient", h);
199
112
  }
200
113
  }
201
- (this.isDirty("startText") || this.isDirty("startValue")) && e.set("text", this.get("startText", this.getNumberFormatter().format(this.get("startValue", 0)))), (this.isDirty("endText") || this.isDirty("endValue")) && r.set("text", this.get("endText", this.getNumberFormatter().format(this.get("endValue", 1))));
114
+ (this.isDirty("startText") || this.isDirty("startValue")) && a.set("text", this.get("startText", this.getNumberFormatter().format(this.get("startValue", 0)))), (this.isDirty("endText") || this.isDirty("endValue")) && i.set("text", this.get("endText", this.getNumberFormatter().format(this.get("endValue", 1))));
202
115
  }
203
116
  }
204
- Object.defineProperty(j, "className", {
117
+ Object.defineProperty(_, "className", {
205
118
  enumerable: !0,
206
119
  configurable: !0,
207
120
  writable: !0,
208
121
  value: "HeatLegend"
209
122
  });
210
- Object.defineProperty(j, "classNames", {
123
+ Object.defineProperty(_, "classNames", {
211
124
  enumerable: !0,
212
125
  configurable: !0,
213
126
  writable: !0,
214
- value: F.classNames.concat([j.className])
127
+ value: L.classNames.concat([_.className])
215
128
  });
216
- const Oe = (L) => {
217
- const i = se({ props: L, name: "HCHeatmap" }), {
218
- dimensions: s,
219
- values: e,
220
- data: r,
221
- initDelay: n = 0,
129
+ const Ye = (X) => {
130
+ const s = Z({ props: X, name: "HCHeatmap" }), {
131
+ dimensions: r,
132
+ values: a,
133
+ data: i,
134
+ initDelay: d = 0,
222
135
  baseInterval: o,
223
- colors: a,
224
- sx: p,
225
- ...g
226
- } = i, l = oe(), u = `hc-heatmap-${le().replace(/:/g, "")}`, b = ce(null);
227
- let v = null;
228
- s.length < 2 ? v = "Heatmap requires at least 2 dimensions" : e.length < 1 && (v = "Heatmap requires at least 1 value"), ue(() => {
229
- if (v) return;
230
- let y;
231
- return y = setTimeout(() => {
232
- var E, S;
233
- const t = ae.new(u);
234
- b.current = t, t.setThemes([ie.new(t)]), t.interfaceColors.setAll({
235
- text: D(l.palette.text.primary),
236
- grid: D(l.palette.divider),
237
- stroke: D(l.palette.divider)
136
+ colors: t,
137
+ sx: f,
138
+ ...y
139
+ } = s, n = ee(), h = `hc-heatmap-${re().replace(/:/g, "")}`, b = ae(null);
140
+ let x = null;
141
+ r.length < 2 ? x = "Heatmap requires at least 2 dimensions" : a.length < 1 && (x = "Heatmap requires at least 1 value"), ie(() => {
142
+ if (x) return;
143
+ let D;
144
+ return D = setTimeout(() => {
145
+ var j, M;
146
+ const e = K.new(h);
147
+ b.current = e, e.setThemes([Q.new(e)]), e.interfaceColors.setAll({
148
+ text: Y(n.palette.text.primary),
149
+ grid: Y(n.palette.divider),
150
+ stroke: Y(n.palette.divider)
238
151
  });
239
- const h = t.container.children.push(
240
- me.new(t, {
152
+ const m = e.container.children.push(
153
+ ne.new(e, {
241
154
  panX: !1,
242
155
  panY: !1,
243
156
  wheelX: "none",
244
157
  wheelY: "none",
245
- layout: t.verticalLayout
158
+ layout: e.verticalLayout
246
159
  })
247
160
  );
248
- h.set("colors", he(t, a));
249
- const m = pe.new(t, {
161
+ m.set("colors", se(e, t));
162
+ const O = le.new(e, {
250
163
  visible: !1,
251
164
  minGridDistance: 30
252
165
  });
253
- m.grid.template.set("visible", !1);
254
- const d = s[0];
255
- let C, k = r;
256
- if (d.type === "date") {
257
- const x = (o == null ? void 0 : o.timeUnit) || "day";
258
- let A = "DD/MM/YYYY";
259
- x === "month" ? A = "MM YYYY" : x === "year" && (A = "YYYY"), C = h.xAxes.push(
260
- G.new(t, {
261
- categoryField: d.value,
262
- renderer: m
166
+ O.grid.template.set("visible", !1);
167
+ const c = r[0];
168
+ let k, v = i;
169
+ if (c.type === "date") {
170
+ const p = (o == null ? void 0 : o.timeUnit) || "day";
171
+ let C = "DD/MM/YYYY";
172
+ p === "month" ? C = "MM YYYY" : p === "year" && (C = "YYYY"), k = m.xAxes.push(
173
+ R.new(e, {
174
+ categoryField: c.value,
175
+ renderer: O
263
176
  })
264
- ), k = O.orderBy(r, [d.value]), k = k.map((_) => ({
265
- ..._,
266
- [d.value]: ne(_[d.value]).format(A)
177
+ ), v = T.orderBy(i, [c.value]), v = v.map((w) => ({
178
+ ...w,
179
+ [c.value]: te(w[c.value]).format(C)
267
180
  }));
268
181
  } else
269
- C = h.xAxes.push(
270
- G.new(t, {
271
- categoryField: d.value,
272
- renderer: m,
273
- tooltip: K.new(t, {})
182
+ k = m.xAxes.push(
183
+ R.new(e, {
184
+ categoryField: c.value,
185
+ renderer: O,
186
+ tooltip: U.new(e, {})
274
187
  })
275
188
  );
276
- const I = O.uniqBy(k, d.value);
277
- if (C.data.setAll(I), e.length === 1 && s.length > 1) {
278
- const x = s[1].value, A = fe.new(t, {
189
+ const H = T.uniqBy(v, c.value);
190
+ if (k.data.setAll(H), a.length === 1 && r.length > 1) {
191
+ const p = r[1].value, C = he.new(e, {
279
192
  visible: !1,
280
193
  minGridDistance: 20,
281
194
  inversed: !0
282
195
  });
283
- A.grid.template.set("visible", !1);
284
- const _ = h.yAxes.push(
285
- G.new(t, {
196
+ C.grid.template.set("visible", !1);
197
+ const w = m.yAxes.push(
198
+ R.new(e, {
286
199
  maxDeviation: 0,
287
- renderer: A,
288
- categoryField: x
200
+ renderer: C,
201
+ categoryField: p
289
202
  })
290
- ), q = t.interfaceColors.get("background"), M = h.bottomAxesContainer.children.push(
291
- j.new(t, {
203
+ ), G = e.interfaceColors.get("background"), N = m.bottomAxesContainer.children.push(
204
+ _.new(e, {
292
205
  orientation: "horizontal",
293
- startColor: q,
294
- endColor: (E = h.get("colors")) == null ? void 0 : E.getIndex(0),
206
+ startColor: G,
207
+ endColor: (j = m.get("colors")) == null ? void 0 : j.getIndex(0),
295
208
  startOpacity: 1,
296
209
  endOpacity: 1
297
210
  })
298
- ), w = h.series.push(
299
- be.new(t, {
211
+ ), g = m.series.push(
212
+ de.new(e, {
300
213
  calculateAggregates: !0,
301
- stroke: D(16777215),
214
+ stroke: Y(16777215),
302
215
  clustered: !1,
303
- xAxis: C,
304
- yAxis: _,
305
- categoryXField: d.value,
306
- categoryYField: x,
307
- valueField: e[0].dataFieldName
216
+ xAxis: k,
217
+ yAxis: w,
218
+ categoryXField: c.value,
219
+ categoryYField: p,
220
+ valueField: a[0].dataFieldName
308
221
  })
309
222
  );
310
- w.columns.template.setAll({
223
+ g.columns.template.setAll({
311
224
  tooltipText: "{categoryY}, {categoryX}: {value}",
312
225
  strokeOpacity: 1,
313
226
  strokeWidth: 2,
314
- width: B(100),
315
- height: B(100)
316
- }), w.columns.template.events.on("pointerover", function(X) {
317
- const Y = X.target.dataItem;
318
- Y && M.showValue(Y.get(x, 0));
319
- }), w.events.on("datavalidated", function() {
320
- M.set("startValue", w.getPrivate("valueLow")), M.set("endValue", w.getPrivate("valueHigh"));
321
- }), w.set("heatRules", [
227
+ width: P(100),
228
+ height: P(100)
229
+ }), g.columns.template.events.on("pointerover", function(V) {
230
+ const A = V.target.dataItem;
231
+ A && N.showValue(A.get(p, 0));
232
+ }), g.events.on("datavalidated", function() {
233
+ N.set("startValue", g.getPrivate("valueLow")), N.set("endValue", g.getPrivate("valueHigh"));
234
+ }), g.set("heatRules", [
322
235
  {
323
- target: w.columns.template,
324
- min: q,
325
- max: (S = h.get("colors")) == null ? void 0 : S.getIndex(0),
236
+ target: g.columns.template,
237
+ min: G,
238
+ max: (M = m.get("colors")) == null ? void 0 : M.getIndex(0),
326
239
  dataField: "value",
327
240
  key: "fill"
328
241
  }
329
242
  ]);
330
- const z = O.uniqBy(k, x), R = [];
331
- I.forEach((X) => {
332
- z.forEach((Y) => {
333
- const U = {
334
- [d.value]: X[d.value],
335
- [x]: Y[x]
336
- }, $ = O.find(k, U);
337
- $ === void 0 ? R.push({
338
- ...U,
339
- [e[0].dataFieldName]: 0
340
- }) : R.push($);
243
+ const I = T.uniqBy(v, p), F = [];
244
+ H.forEach((V) => {
245
+ I.forEach((A) => {
246
+ const q = {
247
+ [c.value]: V[c.value],
248
+ [p]: A[p]
249
+ }, z = T.find(v, q);
250
+ z === void 0 ? F.push({
251
+ ...q,
252
+ [a[0].dataFieldName]: 0
253
+ }) : F.push(z);
341
254
  });
342
- }), _.data.setAll(z), w.data.setAll(R);
255
+ }), w.data.setAll(I), g.data.setAll(F);
343
256
  }
344
- h.appear(1e3, 100);
345
- }, n), () => {
346
- var t;
347
- y && clearTimeout(y), (t = b.current) == null || t.dispose(), b.current = null;
257
+ m.appear(1e3, 100);
258
+ }, d), () => {
259
+ var e;
260
+ D && clearTimeout(D), (e = b.current) == null || e.dispose(), b.current = null;
348
261
  };
349
- }, [r, s, e, l.palette.mode, a]);
350
- const N = { ...i };
351
- return { chartId: u, ownerState: N, sx: p, error: v, other: g };
262
+ }, [i, r, a, n.palette.mode, t]);
263
+ const W = { ...s };
264
+ return { chartId: h, ownerState: W, sx: f, error: x, other: y };
352
265
  };
353
266
  export {
354
- Oe as useHeatmapLogic
267
+ Ye as useHeatmapLogic
355
268
  };