@cloudtower/eagle 0.32.50 → 0.32.52
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/cjs/core/LineChart/LineChartLegend.js +2 -2
- package/dist/cjs/core/LineChart/RenderChart.js +19 -6
- package/dist/cjs/coreX/CheckPointList/index.js +3 -2
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2332 -2323
- package/dist/esm/core/LineChart/LineChartLegend.js +2 -2
- package/dist/esm/core/LineChart/RenderChart.js +19 -6
- package/dist/esm/coreX/CheckPointList/index.js +3 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +2642 -2635
- package/dist/src/coreX/CheckPointList/checkpointlist.type.d.ts +1 -0
- package/dist/style.css +2018 -2011
- package/package.json +4 -5
|
@@ -48,7 +48,7 @@ const LineChartLegend = (props) => {
|
|
|
48
48
|
onMouseLeave: () => onHover("leave", legend.id)
|
|
49
49
|
},
|
|
50
50
|
/* @__PURE__ */ React__default.createElement(LineChartColorBlock, { background: legend.color }),
|
|
51
|
-
/* @__PURE__ */ React__default.createElement("span",
|
|
51
|
+
/* @__PURE__ */ React__default.createElement("span", { className: "legend-name" }, legend.name)
|
|
52
52
|
);
|
|
53
53
|
}))
|
|
54
54
|
},
|
|
@@ -80,7 +80,7 @@ const LineChartLegend = (props) => {
|
|
|
80
80
|
onClick: () => onClick(legend.id)
|
|
81
81
|
},
|
|
82
82
|
/* @__PURE__ */ React__default.createElement(LineChartColorBlock, { background: legend.color }),
|
|
83
|
-
/* @__PURE__ */ React__default.createElement("span",
|
|
83
|
+
/* @__PURE__ */ React__default.createElement("span", { className: "legend-name" }, /* @__PURE__ */ React__default.createElement(Truncate, { text: legend.name, len: 50, backLen: 20 }))
|
|
84
84
|
);
|
|
85
85
|
})
|
|
86
86
|
}
|
|
@@ -121,10 +121,21 @@ const RenderChart = (props) => {
|
|
|
121
121
|
streams.map((stream) => stream.legend.id).filter((legendId) => legendId === id)
|
|
122
122
|
);
|
|
123
123
|
} else {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
if (deselected.length === streams.length - 1) {
|
|
125
|
+
setDeselected([]);
|
|
126
|
+
setHovering(
|
|
127
|
+
streams.map((stream) => stream.legend.id).filter((legendId) => legendId !== id)
|
|
128
|
+
);
|
|
129
|
+
} else {
|
|
130
|
+
setHovering(
|
|
131
|
+
streams.map((stream) => stream.legend.id).filter((legendId) => legendId !== id)
|
|
132
|
+
);
|
|
133
|
+
setHoveringSelf(
|
|
134
|
+
streams.map((stream) => stream.legend.id).filter(
|
|
135
|
+
(legendId) => legendId !== id && !deselected.includes(legendId)
|
|
136
|
+
)
|
|
137
|
+
);
|
|
138
|
+
}
|
|
128
139
|
}
|
|
129
140
|
} else {
|
|
130
141
|
setHovering(
|
|
@@ -216,7 +227,7 @@ const RenderChart = (props) => {
|
|
|
216
227
|
AreaChart,
|
|
217
228
|
{
|
|
218
229
|
style: { backgroundColor: "white" },
|
|
219
|
-
margin: showLegend ? { top: 10, left: -20, right:
|
|
230
|
+
margin: showLegend ? { top: 10, left: -20, right: 0, bottom: 0 } : { top: 20, left: -20, right: 0, bottom: 5 },
|
|
220
231
|
data: areaChartData,
|
|
221
232
|
syncId,
|
|
222
233
|
onMouseLeave: hidePointer,
|
|
@@ -247,7 +258,8 @@ const RenderChart = (props) => {
|
|
|
247
258
|
orientation: yAxisAlign,
|
|
248
259
|
tick: {
|
|
249
260
|
dx: 20,
|
|
250
|
-
dy: 16
|
|
261
|
+
dy: 16,
|
|
262
|
+
fontSize: 12
|
|
251
263
|
},
|
|
252
264
|
ticks: [yDomain[1] / 2, yDomain[1]],
|
|
253
265
|
tickFormatter: (tick) => lineChartYaxisTickFormatter(tick, metric.unit)
|
|
@@ -256,6 +268,7 @@ const RenderChart = (props) => {
|
|
|
256
268
|
/* @__PURE__ */ React__default.createElement(
|
|
257
269
|
Tooltip,
|
|
258
270
|
__spreadValues({
|
|
271
|
+
wrapperStyle: { left: 20 },
|
|
259
272
|
content: tooltipProps.format && /* @__PURE__ */ React__default.createElement(
|
|
260
273
|
TooltipFormatter,
|
|
261
274
|
{
|
|
@@ -61,7 +61,8 @@ const CheckPointList = ({
|
|
|
61
61
|
emptyText,
|
|
62
62
|
emptyTextClassName,
|
|
63
63
|
onClickSwitch,
|
|
64
|
-
defaultChecked = false
|
|
64
|
+
defaultChecked = false,
|
|
65
|
+
className
|
|
65
66
|
}) => {
|
|
66
67
|
const { t } = useParrotTranslation();
|
|
67
68
|
const [checked, setChecked] = useState(defaultChecked);
|
|
@@ -71,7 +72,7 @@ const CheckPointList = ({
|
|
|
71
72
|
onClickSwitch == null ? void 0 : onClickSwitch(nextChecked);
|
|
72
73
|
}, [onClickSwitch, checked]);
|
|
73
74
|
const isEmpty = !items.length;
|
|
74
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: cx(CheckPointListStyle) }, /* @__PURE__ */ React__default.createElement("header", { className: cx(Typo.Label.l4_bold) }, title, /* @__PURE__ */ React__default.createElement(Show, { condition: showSwitchControl }, /* @__PURE__ */ React__default.createElement("span", { className: "switch-text" }, /* @__PURE__ */ React__default.createElement(Switch, { checked, onChange: onClickSwitchFn, size: "small" }), /* @__PURE__ */ React__default.createElement("span", null, switchText || t("common.show_unpassed"))))), /* @__PURE__ */ React__default.createElement(
|
|
75
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: cx(CheckPointListStyle, className) }, /* @__PURE__ */ React__default.createElement("header", { className: cx(Typo.Label.l4_bold) }, title, /* @__PURE__ */ React__default.createElement(Show, { condition: showSwitchControl }, /* @__PURE__ */ React__default.createElement("span", { className: "switch-text" }, /* @__PURE__ */ React__default.createElement(Switch, { checked, onChange: onClickSwitchFn, size: "small" }), /* @__PURE__ */ React__default.createElement("span", null, switchText || t("common.show_unpassed"))))), /* @__PURE__ */ React__default.createElement(
|
|
75
76
|
Show,
|
|
76
77
|
{
|
|
77
78
|
condition: isEmpty,
|