@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.
- package/dist/LinearGradient-DiRq5YcI.js +93 -0
- package/dist/components/charts/chart-wrapper/index.js +41 -40
- package/dist/components/charts/chart-wrapper/logic.js +14 -12
- package/dist/components/charts/heatmap/logic.js +155 -242
- package/dist/components/metric-card/MetricChart.js +65 -50
- package/dist/components/metric-card/helpers.js +18 -0
- package/dist/components/metric-card/index.js +83 -73
- package/dist/components/metric-card/logic.js +64 -76
- package/dist/components/metric-card/styled.js +125 -137
- package/dist/components/sortable-list/index.js +1992 -346
- package/dist/main.d.ts +23 -5
- package/package.json +5 -2
|
@@ -1,136 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useId as
|
|
6
|
-
import { colorSetFromPalette as
|
|
7
|
-
import {
|
|
8
|
-
import { X as
|
|
9
|
-
import { A as
|
|
10
|
-
import { C as
|
|
11
|
-
import { R as
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
128
|
-
themeTags:
|
|
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 =
|
|
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
|
|
142
|
-
return
|
|
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(
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
(
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
let
|
|
162
|
-
this.get("orientation") == "vertical" ?
|
|
163
|
-
let
|
|
164
|
-
|
|
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
|
|
170
|
-
if (this.isDirty("orientation") && (
|
|
171
|
-
const o = this.get("stepCount", 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
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
fill:
|
|
177
|
-
fillOpacity:
|
|
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
|
|
182
|
-
this.markerContainer.children.push(
|
|
183
|
-
const
|
|
94
|
+
const l = this.makeMarker();
|
|
95
|
+
this.markerContainer.children.push(l);
|
|
96
|
+
const h = ue.new(this._root, {
|
|
184
97
|
stops: [{
|
|
185
|
-
color:
|
|
186
|
-
opacity:
|
|
98
|
+
color: t,
|
|
99
|
+
opacity: y
|
|
187
100
|
}, {
|
|
188
|
-
color:
|
|
189
|
-
opacity:
|
|
101
|
+
color: f,
|
|
102
|
+
opacity: n
|
|
190
103
|
}]
|
|
191
104
|
});
|
|
192
|
-
if (
|
|
193
|
-
|
|
194
|
-
let b =
|
|
105
|
+
if (r == "vertical") {
|
|
106
|
+
h.set("rotation", 90);
|
|
107
|
+
let b = h.get("stops");
|
|
195
108
|
b && b.reverse();
|
|
196
109
|
} else
|
|
197
|
-
|
|
198
|
-
|
|
110
|
+
h.set("rotation", 0);
|
|
111
|
+
t && f && l.set("fillGradient", h);
|
|
199
112
|
}
|
|
200
113
|
}
|
|
201
|
-
(this.isDirty("startText") || this.isDirty("startValue")) &&
|
|
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(
|
|
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(
|
|
123
|
+
Object.defineProperty(_, "classNames", {
|
|
211
124
|
enumerable: !0,
|
|
212
125
|
configurable: !0,
|
|
213
126
|
writable: !0,
|
|
214
|
-
value:
|
|
127
|
+
value: L.classNames.concat([_.className])
|
|
215
128
|
});
|
|
216
|
-
const
|
|
217
|
-
const
|
|
218
|
-
dimensions:
|
|
219
|
-
values:
|
|
220
|
-
data:
|
|
221
|
-
initDelay:
|
|
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:
|
|
224
|
-
sx:
|
|
225
|
-
...
|
|
226
|
-
} =
|
|
227
|
-
let
|
|
228
|
-
|
|
229
|
-
if (
|
|
230
|
-
let
|
|
231
|
-
return
|
|
232
|
-
var
|
|
233
|
-
const
|
|
234
|
-
b.current =
|
|
235
|
-
text:
|
|
236
|
-
grid:
|
|
237
|
-
stroke:
|
|
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
|
|
240
|
-
|
|
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:
|
|
158
|
+
layout: e.verticalLayout
|
|
246
159
|
})
|
|
247
160
|
);
|
|
248
|
-
|
|
249
|
-
const
|
|
161
|
+
m.set("colors", se(e, t));
|
|
162
|
+
const O = le.new(e, {
|
|
250
163
|
visible: !1,
|
|
251
164
|
minGridDistance: 30
|
|
252
165
|
});
|
|
253
|
-
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
if (
|
|
257
|
-
const
|
|
258
|
-
let
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
categoryField:
|
|
262
|
-
renderer:
|
|
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
|
-
),
|
|
265
|
-
...
|
|
266
|
-
[
|
|
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
|
-
|
|
270
|
-
|
|
271
|
-
categoryField:
|
|
272
|
-
renderer:
|
|
273
|
-
tooltip:
|
|
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
|
|
277
|
-
if (
|
|
278
|
-
const
|
|
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
|
-
|
|
284
|
-
const
|
|
285
|
-
|
|
196
|
+
C.grid.template.set("visible", !1);
|
|
197
|
+
const w = m.yAxes.push(
|
|
198
|
+
R.new(e, {
|
|
286
199
|
maxDeviation: 0,
|
|
287
|
-
renderer:
|
|
288
|
-
categoryField:
|
|
200
|
+
renderer: C,
|
|
201
|
+
categoryField: p
|
|
289
202
|
})
|
|
290
|
-
),
|
|
291
|
-
|
|
203
|
+
), G = e.interfaceColors.get("background"), N = m.bottomAxesContainer.children.push(
|
|
204
|
+
_.new(e, {
|
|
292
205
|
orientation: "horizontal",
|
|
293
|
-
startColor:
|
|
294
|
-
endColor: (
|
|
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
|
-
),
|
|
299
|
-
|
|
211
|
+
), g = m.series.push(
|
|
212
|
+
de.new(e, {
|
|
300
213
|
calculateAggregates: !0,
|
|
301
|
-
stroke:
|
|
214
|
+
stroke: Y(16777215),
|
|
302
215
|
clustered: !1,
|
|
303
|
-
xAxis:
|
|
304
|
-
yAxis:
|
|
305
|
-
categoryXField:
|
|
306
|
-
categoryYField:
|
|
307
|
-
valueField:
|
|
216
|
+
xAxis: k,
|
|
217
|
+
yAxis: w,
|
|
218
|
+
categoryXField: c.value,
|
|
219
|
+
categoryYField: p,
|
|
220
|
+
valueField: a[0].dataFieldName
|
|
308
221
|
})
|
|
309
222
|
);
|
|
310
|
-
|
|
223
|
+
g.columns.template.setAll({
|
|
311
224
|
tooltipText: "{categoryY}, {categoryX}: {value}",
|
|
312
225
|
strokeOpacity: 1,
|
|
313
226
|
strokeWidth: 2,
|
|
314
|
-
width:
|
|
315
|
-
height:
|
|
316
|
-
}),
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
}),
|
|
320
|
-
|
|
321
|
-
}),
|
|
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:
|
|
324
|
-
min:
|
|
325
|
-
max: (
|
|
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
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
[
|
|
335
|
-
[
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
...
|
|
339
|
-
[
|
|
340
|
-
}) :
|
|
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
|
-
}),
|
|
255
|
+
}), w.data.setAll(I), g.data.setAll(F);
|
|
343
256
|
}
|
|
344
|
-
|
|
345
|
-
},
|
|
346
|
-
var
|
|
347
|
-
|
|
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
|
-
}, [
|
|
350
|
-
const
|
|
351
|
-
return { chartId:
|
|
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
|
-
|
|
267
|
+
Ye as useHeatmapLogic
|
|
355
268
|
};
|