@pie-lib/charting 8.0.4-next.20261010135116 → 8.0.4-next.20261011174919
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/axes.js
CHANGED
package/dist/mark-label.js
CHANGED
|
@@ -31,7 +31,6 @@ var y = u("div")(({ theme: e }) => ({
|
|
|
31
31
|
fontSize: e.typography.fontSize + 2,
|
|
32
32
|
fontFamily: e.typography.fontFamily,
|
|
33
33
|
color: f.defaults.PRIMARY_DARK,
|
|
34
|
-
paddingTop: e.typography.fontSize / 2,
|
|
35
34
|
"&.disabledMarkLabel": {
|
|
36
35
|
...r("color"),
|
|
37
36
|
color: v,
|
|
@@ -56,24 +55,24 @@ function x(e) {
|
|
|
56
55
|
if (b(e)) return i[0] && i[1] && (r = i[0]), a = `\\(${r}\\frac{${n[0]}}{${n[1]}}\\)`, a;
|
|
57
56
|
}
|
|
58
57
|
var S = (n) => {
|
|
59
|
-
let [r, i] = c(null), l = a((e) => i(e), null), { mark: u = {}, disabled: d, inputRef: f, barWidth: b, rotate: S, correctness: C, autoFocus: w, error: T, isHiddenLabel: E, limitCharacters: D, correctnessIndicator: O, ariaLabel: k, mathAriaLabel: A } = n, [j, M] = c(u.label), [N, P] = c(
|
|
58
|
+
let [r, i] = c(null), l = a((e) => i(e), null), { mark: u = {}, disabled: d, inputRef: f, barWidth: b, rotate: S, correctness: C, autoFocus: w, error: T, isHiddenLabel: E, limitCharacters: D, correctnessIndicator: O, ariaLabel: k, mathAriaLabel: A } = n, [j, M] = c(u.label), [N, P] = c(u.label), [F, I] = c(!1), L = x(N), R = s(null), z = (e) => {
|
|
60
59
|
D && e.target.value && e.target.value.length > 20 || M(e.target.value);
|
|
61
|
-
},
|
|
62
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
63
|
-
},
|
|
64
|
-
P(
|
|
65
|
-
},
|
|
66
|
-
return S && (
|
|
60
|
+
}, B = () => F === !1 && L !== void 0, V = () => I(!0), H = (e) => {
|
|
61
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), V());
|
|
62
|
+
}, U = (e) => {
|
|
63
|
+
P(e.target.value), I(!1), n.onChange(e.target.value);
|
|
64
|
+
}, W = {};
|
|
65
|
+
return S && (W = {
|
|
67
66
|
width: "unset",
|
|
68
67
|
textAlign: "left"
|
|
69
68
|
}), o(() => {
|
|
70
|
-
M(u.label);
|
|
69
|
+
M(u.label), P(u.label);
|
|
71
70
|
}, [u.label]), o(() => {
|
|
72
|
-
let e =
|
|
73
|
-
e &&
|
|
74
|
-
}, [
|
|
71
|
+
let e = R.current;
|
|
72
|
+
e && L && !F && (e.innerHTML = g(L), h(e));
|
|
73
|
+
}, [L, F]), /* @__PURE__ */ m(_, { children: [O, B() ? /* @__PURE__ */ p(y, {
|
|
75
74
|
ref: (e) => {
|
|
76
|
-
|
|
75
|
+
R.current = e, typeof f == "function" && f(e);
|
|
77
76
|
},
|
|
78
77
|
"data-math-label": !0,
|
|
79
78
|
className: e({
|
|
@@ -86,8 +85,8 @@ var S = (n) => {
|
|
|
86
85
|
role: "button",
|
|
87
86
|
tabIndex: 0,
|
|
88
87
|
"aria-label": A || k,
|
|
89
|
-
onClick:
|
|
90
|
-
onKeyDown:
|
|
88
|
+
onClick: V,
|
|
89
|
+
onKeyDown: H
|
|
91
90
|
},
|
|
92
91
|
style: {
|
|
93
92
|
minWidth: b,
|
|
@@ -118,7 +117,7 @@ var S = (n) => {
|
|
|
118
117
|
color: v,
|
|
119
118
|
WebkitTextFillColor: v
|
|
120
119
|
} : {},
|
|
121
|
-
...
|
|
120
|
+
...W
|
|
122
121
|
},
|
|
123
122
|
value: j,
|
|
124
123
|
style: {
|
|
@@ -132,8 +131,8 @@ var S = (n) => {
|
|
|
132
131
|
visibility: E ? "hidden" : "unset",
|
|
133
132
|
marginTop: O ? "24px" : "0"
|
|
134
133
|
},
|
|
135
|
-
onChange:
|
|
136
|
-
onBlur:
|
|
134
|
+
onChange: z,
|
|
135
|
+
onBlur: U
|
|
137
136
|
})] });
|
|
138
137
|
};
|
|
139
138
|
S.propTypes = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/charting",
|
|
3
|
-
"version": "8.0.4-next.
|
|
3
|
+
"version": "8.0.4-next.20261011174919",
|
|
4
4
|
"description": "charting",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@mui/icons-material": "^7.3.4",
|
|
15
15
|
"@mui/material": "^7.3.4",
|
|
16
16
|
"@pie-element/shared-utils": "0.1.4-next.20261008072957",
|
|
17
|
-
"@pie-lib/plot": "5.0.4-next.
|
|
17
|
+
"@pie-lib/plot": "5.0.4-next.20261011174919",
|
|
18
18
|
"@pie-lib/render-ui": "8.0.4-next.20261009061152",
|
|
19
19
|
"@pie-lib/translator": "5.0.2-next.20261006160832",
|
|
20
20
|
"@visx/axis": "^4.0.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"invariant": "^2.2.4",
|
|
31
31
|
"react-draggable": "^4.7.1",
|
|
32
32
|
"prop-types": "^15.8.1",
|
|
33
|
-
"@pie-lib/config-ui": "14.0.4-next.
|
|
33
|
+
"@pie-lib/config-ui": "14.0.4-next.20261011174919",
|
|
34
34
|
"@pie-element/shared-math-rendering-mathjax": "0.1.5-next.20261009061152",
|
|
35
35
|
"@pie-element/shared-lodash": "0.1.3-next.20261006160832",
|
|
36
36
|
"clsx": "^2.1.1",
|