@pie-lib/charting 8.0.8-next.20261109091947 → 8.0.8-next.20261110055344

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 (110) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +1 -2
  2. package/dist/actions-button.js +1 -2
  3. package/dist/autosize-input.js +1 -2
  4. package/dist/axes.js +5 -6
  5. package/dist/bars/bar.js +1 -2
  6. package/dist/bars/common/bars.js +1 -2
  7. package/dist/bars/common/correct-check-icon.js +1 -2
  8. package/dist/bars/histogram.js +1 -2
  9. package/dist/chart-setup.js +1 -2
  10. package/dist/chart-type.js +1 -2
  11. package/dist/chart-types.js +1 -2
  12. package/dist/chart.js +33 -34
  13. package/dist/common/correctness-indicators.js +1 -2
  14. package/dist/common/drag-handle.js +1 -2
  15. package/dist/common/drag-hover.js +1 -2
  16. package/dist/common/drag-icon.js +1 -2
  17. package/dist/common/mark-slider.js +1 -2
  18. package/dist/common/styles.js +1 -2
  19. package/dist/grid.js +6 -7
  20. package/dist/i18n/ar.js +1 -2
  21. package/dist/i18n/cy.js +1 -2
  22. package/dist/i18n/en-AU.js +1 -2
  23. package/dist/i18n/en-GB.js +1 -2
  24. package/dist/i18n/en-US.js +1 -2
  25. package/dist/i18n/es.js +1 -2
  26. package/dist/i18n/fr.js +1 -2
  27. package/dist/i18n/index.js +1 -2
  28. package/dist/i18n/ja.js +1 -2
  29. package/dist/i18n/ko.js +1 -2
  30. package/dist/i18n/nl-NL.js +1 -2
  31. package/dist/i18n/pt.js +1 -2
  32. package/dist/i18n/ro.js +1 -2
  33. package/dist/i18n/sv.js +1 -2
  34. package/dist/i18n/th-TH.js +1 -2
  35. package/dist/i18n/zh.js +1 -2
  36. package/dist/index.js +5 -5
  37. package/dist/key-legend.js +1 -2
  38. package/dist/line/common/drag-handle.js +1 -2
  39. package/dist/line/common/line.js +5 -6
  40. package/dist/line/line-cross.js +28 -29
  41. package/dist/line/line-dot.js +22 -23
  42. package/dist/mark-label.js +1 -2
  43. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js +16 -17
  44. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisBottom.js +5 -6
  45. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisLeft.js +5 -6
  46. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +5 -6
  47. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js +5 -6
  48. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/constants/orientation.js +1 -2
  49. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js +1 -2
  50. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -1
  51. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +1 -2
  52. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +1 -2
  53. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js +1 -2
  54. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js +11 -12
  55. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js +11 -12
  56. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +1 -2
  57. package/dist/node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js +1 -2
  58. package/dist/node_modules/.bun/@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js +1 -2
  59. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/align.js +1 -2
  60. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/base.js +1 -2
  61. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/clamp.js +1 -2
  62. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/constant.js +1 -2
  63. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/domain.js +1 -2
  64. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/exponent.js +1 -2
  65. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/interpolate.js +1 -2
  66. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/nice.js +1 -2
  67. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/padding.js +1 -2
  68. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/range.js +1 -2
  69. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/reverse.js +1 -2
  70. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/round.js +1 -2
  71. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/scaleOperator.js +1 -2
  72. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/unknown.js +1 -2
  73. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/zero.js +1 -2
  74. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/scales/band.js +1 -2
  75. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/scales/point.js +1 -2
  76. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +1 -2
  77. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/createColorInterpolator.js +1 -2
  78. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js +1 -2
  79. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/isUtcScale.js +1 -2
  80. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js +1 -2
  81. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Bar.js +1 -2
  82. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Circle.js +1 -2
  83. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js +1 -2
  84. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js +1 -2
  85. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +1 -2
  86. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +1 -2
  87. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js +1 -2
  88. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js +1 -2
  89. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js +1 -2
  90. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js +1 -2
  91. package/dist/node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-interpolate.js +1 -2
  92. package/dist/node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-scale.js +1 -2
  93. package/dist/node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-shape.js +1 -2
  94. package/dist/node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-time.js +1 -2
  95. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +1 -2
  96. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +1 -2
  97. package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +1 -2
  98. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +1 -2
  99. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +1 -2
  100. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +1 -2
  101. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +1 -2
  102. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +1 -2
  103. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +1 -2
  104. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +1 -2
  105. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +1 -2
  106. package/dist/plot/common/plot.js +36 -37
  107. package/dist/plot/dot.js +7 -8
  108. package/dist/plot/line.js +13 -14
  109. package/dist/utils.js +0 -1
  110. package/package.json +9 -9
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
3
3
  let r = {};
4
4
  for (var i in e) t(r, i, {
@@ -16,5 +16,4 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
16
16
  value: n,
17
17
  enumerable: !0
18
18
  }) : o, n));
19
- //#endregion
20
19
  export { o as __commonJSMin, s as __exportAll, l as __reExport, u as __toESM };
@@ -8,7 +8,7 @@ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  import { renderMath as f } from "@pie-element/shared-math-rendering-mathjax";
9
9
  import p from "@mui/material/Menu";
10
10
  import m from "@mui/material/MenuItem";
11
- //#region src/actions-button.tsx
11
+ // src/actions-button.tsx
12
12
  var h = o("div")(() => ({ alignSelf: "flex-end" })), g = o("button")(({ theme: e }) => ({
13
13
  display: "block",
14
14
  margin: 0,
@@ -111,5 +111,4 @@ var h = o("div")(() => ({ alignSelf: "flex-end" })), g = o("button")(({ theme: e
111
111
  })] });
112
112
  }
113
113
  };
114
- //#endregion
115
114
  export { y as ActionsButton, y as default };
@@ -1,6 +1,6 @@
1
1
  import e, { useCallback as t, useLayoutEffect as n, useRef as r, useState as i } from "react";
2
2
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
3
- //#region src/autosize-input.tsx
3
+ // src/autosize-input.tsx
4
4
  var s = (e) => {
5
5
  let t = Number.parseFloat(e);
6
6
  return Number.isFinite(t) ? t : 0;
@@ -62,5 +62,4 @@ var s = (e) => {
62
62
  });
63
63
  });
64
64
  l.displayName = "AutosizeInput";
65
- //#endregion
66
65
  export { l as AutosizeInput };
package/dist/axes.js CHANGED
@@ -1,5 +1,5 @@
1
- import e from "./node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisLeft.js";
2
- import t from "./node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisBottom.js";
1
+ import e from "./node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisBottom.js";
2
+ import t from "./node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisLeft.js";
3
3
  import { TickCorrectnessIndicator as n } from "./common/correctness-indicators.js";
4
4
  import { bandKey as r, getRotateAngle as i, getRotatedLabelOverhang as a, getTickValues as o, textOf as s } from "./utils.js";
5
5
  import { MarkLabel as c } from "./mark-label.js";
@@ -13,7 +13,7 @@ import { color as _ } from "@pie-lib/render-ui";
13
13
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
14
14
  import b from "@mui/material/Checkbox";
15
15
  import { renderMath as x } from "@pie-element/shared-math-rendering-mathjax";
16
- //#region src/axes.tsx
16
+ // src/axes.tsx
17
17
  var S = 24, C = -110, w = 12, T = /* @__PURE__ */ new Set(), E = null;
18
18
  function D(e) {
19
19
  T.add(e), !E && typeof document < "u" && (E = new MutationObserver(() => {
@@ -403,13 +403,13 @@ var V = (e) => /* @__PURE__ */ v(B, { ...e }), H = class extends u.Component {
403
403
  });
404
404
  return /* @__PURE__ */ y(j, {
405
405
  ref: (e) => this.axesNode = e,
406
- children: [i && /* @__PURE__ */ v(e, {
406
+ children: [i && /* @__PURE__ */ v(t, {
407
407
  scale: x.y,
408
408
  tickLength: 10,
409
409
  tickFormat: (e) => `${e}`,
410
410
  tickValues: O,
411
411
  tickComponent: V
412
- }), /* @__PURE__ */ v(t, {
412
+ }), /* @__PURE__ */ v(e, {
413
413
  scale: w,
414
414
  labelProps: { y: 60 + l },
415
415
  top: x.y && x.y(S.min),
@@ -448,5 +448,4 @@ var V = (e) => /* @__PURE__ */ v(B, { ...e }), H = class extends u.Component {
448
448
  });
449
449
  }
450
450
  };
451
- //#endregion
452
451
  export { B as RangeTickLabel, H as RawChartAxes, H as default, F as TickComponent };
package/dist/bars/bar.js CHANGED
@@ -4,7 +4,7 @@ import n from "react";
4
4
  import r from "prop-types";
5
5
  import { types as i } from "@pie-lib/plot";
6
6
  import { jsx as a } from "react/jsx-runtime";
7
- //#region src/bars/bar.tsx
7
+ // src/bars/bar.tsx
8
8
  var o = class extends n.Component {
9
9
  static propTypes = {
10
10
  data: r.array,
@@ -23,5 +23,4 @@ var o = class extends n.Component {
23
23
  Component: o,
24
24
  name: "Bar"
25
25
  });
26
- //#endregion
27
26
  export { o as Bar, s as default };
@@ -12,7 +12,7 @@ import d from "debug";
12
12
  import { types as f } from "@pie-lib/plot";
13
13
  import { color as p } from "@pie-lib/render-ui";
14
14
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
15
- //#region src/bars/common/bars.tsx
15
+ // src/bars/common/bars.tsx
16
16
  var _ = d("pie-lib:chart:bars"), v = [
17
17
  "#006699",
18
18
  "#F59B00",
@@ -198,5 +198,4 @@ var _ = d("pie-lib:chart:bars"), v = [
198
198
  }, `bar-${e.label}-${t}`)) });
199
199
  }
200
200
  };
201
- //#endregion
202
201
  export { T as Bars, T as default, C as RawBar };
@@ -2,7 +2,7 @@ import "react";
2
2
  import e from "prop-types";
3
3
  import { useUniqueId as t } from "@pie-lib/render-ui";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
- //#region src/bars/common/correct-check-icon.tsx
5
+ // src/bars/common/correct-check-icon.tsx
6
6
  var i = ({ dashColor: e }) => {
7
7
  let i = t("correct-check-mask");
8
8
  return /* @__PURE__ */ r("svg", {
@@ -50,5 +50,4 @@ var i = ({ dashColor: e }) => {
50
50
  });
51
51
  };
52
52
  i.propTypes = { dashColor: e.string };
53
- //#endregion
54
53
  export { i as CorrectCheckIcon };
@@ -4,7 +4,7 @@ import n from "react";
4
4
  import r from "prop-types";
5
5
  import { types as i } from "@pie-lib/plot";
6
6
  import { jsx as a } from "react/jsx-runtime";
7
- //#region src/bars/histogram.tsx
7
+ // src/bars/histogram.tsx
8
8
  var o = class extends n.Component {
9
9
  static propTypes = {
10
10
  data: r.array,
@@ -24,5 +24,4 @@ var o = class extends n.Component {
24
24
  Component: o,
25
25
  name: "Histogram"
26
26
  });
27
- //#endregion
28
27
  export { o as Histogram, s as default };
@@ -6,7 +6,7 @@ import { AlertDialog as a, NumberTextFieldCustom as o } from "@pie-lib/config-ui
6
6
  import { color as s } from "@pie-lib/render-ui";
7
7
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
8
  import u from "@mui/material/Typography";
9
- //#region src/chart-setup.tsx
9
+ // src/chart-setup.tsx
10
10
  var d = (e, t, n, r, i) => {
11
11
  (e || []).forEach((e) => {
12
12
  let t = Math.round(e.value * 10) % Math.round(n.step * 10) / 10;
@@ -225,5 +225,4 @@ b.propTypes = {
225
225
  availableChartTypes: r.object,
226
226
  chartTypeLabel: r.string
227
227
  };
228
- //#endregion
229
228
  export { b as default, d as resetValues };
@@ -7,7 +7,7 @@ import a from "@mui/material/MenuItem";
7
7
  import o from "@mui/material/FormControl";
8
8
  import s from "@mui/material/InputLabel";
9
9
  import { Select as c } from "@mui/material";
10
- //#region src/chart-type.tsx
10
+ // src/chart-type.tsx
11
11
  var l = t("div")(() => ({ width: "160px" })), u = t(o)(() => ({ width: "160px" })), d = t(s)(() => ({ backgroundColor: "transparent" })), f = ({ onChange: e, value: t, availableChartTypes: o, chartTypeLabel: s }) => {
12
12
  let f = n("chart-type-label");
13
13
  return /* @__PURE__ */ r(l, { children: /* @__PURE__ */ i(u, {
@@ -68,5 +68,4 @@ f.propTypes = {
68
68
  }),
69
69
  chartTypeLabel: e.string
70
70
  };
71
- //#endregion
72
71
  export { f as default };
@@ -4,7 +4,7 @@ import n from "./line/line-dot.js";
4
4
  import r from "./line/line-cross.js";
5
5
  import i from "./plot/dot.js";
6
6
  import a from "./plot/line.js";
7
- //#region src/chart-types.ts
7
+ // src/chart-types.ts
8
8
  var o = {
9
9
  Bar: e,
10
10
  Histogram: t,
@@ -13,5 +13,4 @@ var o = {
13
13
  LinePlot: a,
14
14
  LineCross: r
15
15
  };
16
- //#endregion
17
16
  export { o as default };
package/dist/chart.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Grid as e } from "./grid.js";
2
- import { dataToXBand as t, getDomainAndRangeByChartType as n, getGridLinesAndAxisByChartType as r, getTopPadding as i, textOf as a } from "./utils.js";
3
- import { catalogs as o } from "./i18n/index.js";
4
- import { RawChartAxes as s } from "./axes.js";
5
- import c from "./chart-types.js";
6
- import { ActionsButton as l } from "./actions-button.js";
2
+ import { RawChartAxes as t } from "./axes.js";
3
+ import { dataToXBand as n, getDomainAndRangeByChartType as r, getGridLinesAndAxisByChartType as i, getTopPadding as a, textOf as o } from "./utils.js";
4
+ import s from "./chart-types.js";
5
+ import { ActionsButton as c } from "./actions-button.js";
6
+ import { catalogs as l } from "./i18n/index.js";
7
7
  import u from "react";
8
8
  import d from "prop-types";
9
9
  import { styled as f } from "@mui/material/styles";
@@ -14,22 +14,22 @@ import { AlertDialog as _ } from "@pie-lib/config-ui";
14
14
  import { createUniqueId as v } from "@pie-lib/render-ui";
15
15
  import { jsx as y, jsxs as b } from "react/jsx-runtime";
16
16
  import { dynamicMessageKey as x } from "@pie-element/shared-i18n";
17
- //#region src/chart.tsx
18
- var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content" })), S = ({ title: e, chartType: t, categories: n, range: r, language: i, onLoad: s }) => {
19
- let c = o.forLocale(i, s), l = c.t(x(`chartTypes.${t}`)), u = a(r.label), d = u ? c.t("labelledValueRange", {
17
+ // src/chart.tsx
18
+ var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content" })), S = ({ title: e, chartType: t, categories: n, range: r, language: i, onLoad: a }) => {
19
+ let s = l.forLocale(i, a), c = s.t(x(`chartTypes.${t}`)), u = o(r.label), d = u ? s.t("labelledValueRange", {
20
20
  label: u,
21
21
  min: r.min,
22
22
  max: r.max
23
- }) : c.t("valueRange", {
23
+ }) : s.t("valueRange", {
24
24
  min: r.min,
25
25
  max: r.max
26
- }), f = n.length === 0 ? c.t("categoriesNone") : c.plural("categories", {
26
+ }), f = n.length === 0 ? s.t("categoriesNone") : s.plural("categories", {
27
27
  count: n.length,
28
- categories: n.map((e) => a(e.label)).join(", ")
28
+ categories: n.map((e) => o(e.label)).join(", ")
29
29
  });
30
30
  return {
31
- ariaLabel: a(e) || l,
32
- ariaDescription: `${l}. ${f} ${d}`
31
+ ariaLabel: o(e) || c,
32
+ ariaDescription: `${c}. ${f} ${d}`
33
33
  };
34
34
  }, C = class extends u.Component {
35
35
  relabel = () => this.forceUpdate();
@@ -98,12 +98,12 @@ var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content"
98
98
  } };
99
99
  state = {
100
100
  charts: [
101
- c.Bar(),
102
- c.Histogram(),
103
- c.LineDot(),
104
- c.LineCross(),
105
- c.DotPlot(),
106
- c.LinePlot()
101
+ s.Bar(),
102
+ s.Histogram(),
103
+ s.LineDot(),
104
+ s.LineCross(),
105
+ s.DotPlot(),
106
+ s.LinePlot()
107
107
  ],
108
108
  autoFocus: !1
109
109
  };
@@ -135,15 +135,15 @@ var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content"
135
135
  }
136
136
  };
137
137
  addCategory = () => {
138
- let { onDataChange: e, data: t, categoryDefaultLabel: n, defineChart: r, categoryDefaults: i, language: a } = this.props, s = o.forLocale(a);
138
+ let { onDataChange: e, data: t, categoryDefaultLabel: n, defineChart: r, categoryDefaults: i, language: a } = this.props, o = l.forLocale(a);
139
139
  (t || []).length > 19 ? this.setState({ dialog: {
140
140
  open: !0,
141
- title: s.t("warning"),
142
- text: s.plural("reachedLimit", { count: 20 }),
141
+ title: o.t("warning"),
142
+ text: o.plural("reachedLimit", { count: 20 }),
143
143
  onConfirm: () => this.handleAlertDialog(!1)
144
144
  } }) : (this.setState({ autoFocus: !0 }), e([...t, {
145
145
  inDefineChart: r,
146
- label: n || s.t("newLabel"),
146
+ label: n || o.t("newLabel"),
147
147
  value: 0,
148
148
  deletable: !0,
149
149
  editable: !i || i?.editable,
@@ -165,27 +165,27 @@ var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content"
165
165
  this.setState({ autoFocus: !1 });
166
166
  };
167
167
  render() {
168
- let { domain: a = {}, range: o = {}, chartingOptions: c, size: u, title: d, onChangeTitle: f, onChangeLabels: p, labelsPlaceholders: v, titlePlaceholder: x, addCategoryEnabled: C, changeInteractiveEnabled: w, changeEditableEnabled: T, showPixelGuides: E, error: D, mathMlOptions: O = {}, language: k, labelsCharactersLimit: A, correctData: j, disabled: M } = this.props, { chartType: N } = this.props, { dialog: P } = this.state, F = this.props.defineChart || !1, { width: I, height: L } = u || {}, R = {
169
- left: o?.label || "",
170
- bottom: a?.label || ""
171
- }, { type: z, ChartComponent: B } = this.getChart(), V = this.getFilteredCategories(), H = n(a, o, N), { ariaLabel: U, ariaDescription: W } = S({
168
+ let { domain: o = {}, range: s = {}, chartingOptions: l, size: u, title: d, onChangeTitle: f, onChangeLabels: p, labelsPlaceholders: v, titlePlaceholder: x, addCategoryEnabled: C, changeInteractiveEnabled: w, changeEditableEnabled: T, showPixelGuides: E, error: D, mathMlOptions: O = {}, language: k, labelsCharactersLimit: A, correctData: j, disabled: M } = this.props, { chartType: N } = this.props, { dialog: P } = this.state, F = this.props.defineChart || !1, { width: I, height: L } = u || {}, R = {
169
+ left: s?.label || "",
170
+ bottom: o?.label || ""
171
+ }, { type: z, ChartComponent: B } = this.getChart(), V = this.getFilteredCategories(), H = r(o, s, N), { ariaLabel: U, ariaDescription: W } = S({
172
172
  title: d,
173
173
  chartType: z,
174
174
  categories: V,
175
175
  range: {
176
176
  ...H.range,
177
- label: o.label
177
+ label: s.label
178
178
  },
179
179
  language: k,
180
180
  onLoad: this.relabel
181
- }), { verticalLines: G, horizontalLines: K, leftAxis: q } = r(H.range, N), J = { graphProps: g(H.domain, H.range, u, () => this.rootNode) };
181
+ }), { verticalLines: G, horizontalLines: K, leftAxis: q } = i(H.range, N), J = { graphProps: g(H.domain, H.range, u, () => this.rootNode) };
182
182
  ee("[render] common:", J);
183
183
  let Y = {
184
184
  x: -10,
185
185
  y: -75,
186
186
  width: I + 20,
187
187
  height: L + 130
188
- }, { scale: X } = J.graphProps, Z = t(X.x, V, I, N), ne = Z.bandwidth() || X.x(H.domain.max) / V.length, re = F ? 160 : 60, Q = Math.max(i(ne), this.state.labelOverhang), $ = m(J);
188
+ }, { scale: X } = J.graphProps, Z = n(X.x, V, I, N), ne = Z.bandwidth() || X.x(H.domain.max) / V.length, re = F ? 160 : 60, Q = Math.max(a(ne), this.state.labelOverhang), $ = m(J);
189
189
  return $.graphProps.size.height += Q + re, (N === "dotPlot" || N === "linePlot") && j?.length && R.bottom && ($.graphProps.size.height += 25), /* @__PURE__ */ b(te, { children: [/* @__PURE__ */ b(h, {
190
190
  title: d,
191
191
  onChangeTitle: f,
@@ -214,7 +214,7 @@ var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content"
214
214
  rowTickValues: K,
215
215
  columnTickValues: G
216
216
  }),
217
- /* @__PURE__ */ y(s, {
217
+ /* @__PURE__ */ y(t, {
218
218
  autoFocus: this.state.autoFocus,
219
219
  onAutoFocusUsed: this.resetAutoFocus,
220
220
  ...J,
@@ -224,7 +224,7 @@ var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content"
224
224
  leftAxis: q,
225
225
  onChange: this.changeData,
226
226
  onChangeCategory: this.changeCategory,
227
- chartingOptions: c,
227
+ chartingOptions: l,
228
228
  changeInteractiveEnabled: w,
229
229
  changeEditableEnabled: T,
230
230
  top: Q,
@@ -245,7 +245,7 @@ var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content"
245
245
  display: "flex",
246
246
  justifyContent: "flex-start"
247
247
  },
248
- children: /* @__PURE__ */ y(l, {
248
+ children: /* @__PURE__ */ y(c, {
249
249
  categories: V,
250
250
  addCategory: this.addCategory,
251
251
  deleteCategory: this.deleteCategory,
@@ -284,5 +284,4 @@ var ee = p("pie-lib:charts:chart"), te = f("div")(() => ({ width: "min-content"
284
284
  })] });
285
285
  }
286
286
  };
287
- //#endregion
288
287
  export { C as Chart, C as default, S as chartAlternative };
@@ -5,7 +5,7 @@ import { color as n } from "@pie-lib/render-ui";
5
5
  import { jsx as r } from "react/jsx-runtime";
6
6
  import i from "@mui/icons-material/Check";
7
7
  import a from "@mui/icons-material/Close";
8
- //#region src/common/correctness-indicators.tsx
8
+ // src/common/correctness-indicators.tsx
9
9
  var o = t(i)(({ theme: e }) => ({
10
10
  borderRadius: e.spacing(2),
11
11
  color: n.defaults.WHITE,
@@ -102,5 +102,4 @@ c.propTypes = {
102
102
  }),
103
103
  interactive: e.bool
104
104
  };
105
- //#endregion
106
105
  export { c as CorrectnessIndicator, l as SmallCorrectPointIndicator, u as TickCorrectnessIndicator };
@@ -8,7 +8,7 @@ import { color as s } from "@pie-lib/render-ui";
8
8
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
9
  import u from "@mui/icons-material/Check";
10
10
  import d from "@mui/icons-material/Close";
11
- //#region src/common/drag-handle.tsx
11
+ // src/common/drag-handle.tsx
12
12
  var f = r("svg")(() => ({ overflow: "visible !important" })), p = r("ellipse")(() => ({
13
13
  fill: "transparent",
14
14
  clipPath: "polygon(50% 0%, 100% 0%, 100% 50%, 0% 50%, 0% 0%)"
@@ -92,5 +92,4 @@ var _ = g, v = i({
92
92
  y: e.y
93
93
  })
94
94
  })(_);
95
- //#endregion
96
95
  export { v as D, v as default, _ as DragHandle };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- //#region src/common/drag-hover.ts
2
+ // src/common/drag-hover.ts
3
3
  var t = null, n = /* @__PURE__ */ new Set(), r = class {
4
4
  onChange;
5
5
  hovered = !1;
@@ -40,5 +40,4 @@ var t = null, n = /* @__PURE__ */ new Set(), r = class {
40
40
  onLeave: () => o.setInside(!1)
41
41
  };
42
42
  };
43
- //#endregion
44
43
  export { r as DragHover, a as useDragHover };
@@ -2,7 +2,7 @@ import { getAdjustedX as e, getScale as t } from "../utils.js";
2
2
  import "react";
3
3
  import n from "prop-types";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/common/drag-icon.tsx
5
+ // src/common/drag-icon.tsx
6
6
  var a = ({ width: n, scaleValue: a, color: o }) => /* @__PURE__ */ r("svg", {
7
7
  x: e(n, a),
8
8
  y: t(n)?.deltay,
@@ -41,5 +41,4 @@ a.propTypes = {
41
41
  scaleValue: n.number.isRequired,
42
42
  color: n.string
43
43
  };
44
- //#endregion
45
44
  export { a as default };
@@ -5,7 +5,7 @@ import { styled as i } from "@mui/material/styles";
5
5
  import { keyboard as a } from "@pie-lib/plot";
6
6
  import { color as o } from "@pie-lib/render-ui";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
- //#region src/common/mark-slider.tsx
8
+ // src/common/mark-slider.tsx
9
9
  var l = i("g")({
10
10
  outline: "none",
11
11
  "& > .focus-ring": {
@@ -64,5 +64,4 @@ var l = i("g")({
64
64
  });
65
65
  });
66
66
  p.displayName = "MarkSlider";
67
- //#endregion
68
67
  export { p as MarkSlider, p as default };
@@ -1,5 +1,5 @@
1
1
  import { color as e } from "@pie-lib/render-ui";
2
- //#region src/common/styles.ts
2
+ // src/common/styles.ts
3
3
  var t = (t = "fill") => ({
4
4
  [t]: `var(--graph-disabled, ${e.disabled()})`,
5
5
  pointerEvents: "none",
@@ -13,5 +13,4 @@ var t = (t = "fill") => ({
13
13
  pointerEvents: "none",
14
14
  border: `solid 1px ${e.incorrect()}`
15
15
  });
16
- //#endregion
17
16
  export { n as correct, t as disabled, r as incorrect };
package/dist/grid.js CHANGED
@@ -1,12 +1,12 @@
1
- import e from "./node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js";
2
- import t from "./node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js";
1
+ import e from "./node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js";
2
+ import t from "./node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js";
3
3
  import n from "react";
4
4
  import r from "prop-types";
5
5
  import { styled as i } from "@mui/material/styles";
6
6
  import { types as a } from "@pie-lib/plot";
7
7
  import { color as o } from "@pie-lib/render-ui";
8
8
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
- //#region src/grid.tsx
9
+ // src/grid.tsx
10
10
  var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Component {
11
11
  static propTypes = {
12
12
  className: r.string,
@@ -25,7 +25,7 @@ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Compon
25
25
  labeledLines: []
26
26
  });
27
27
  return /* @__PURE__ */ c(l, { children: [
28
- /* @__PURE__ */ s(e, {
28
+ /* @__PURE__ */ s(t, {
29
29
  scale: u.y,
30
30
  width: d.width,
31
31
  tickValues: _,
@@ -34,7 +34,7 @@ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Compon
34
34
  strokeWidth: 1
35
35
  }
36
36
  }),
37
- /* @__PURE__ */ s(e, {
37
+ /* @__PURE__ */ s(t, {
38
38
  scale: u.y,
39
39
  width: d.width,
40
40
  tickValues: v,
@@ -43,7 +43,7 @@ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Compon
43
43
  strokeWidth: 1
44
44
  }
45
45
  }),
46
- /* @__PURE__ */ s(t, {
46
+ /* @__PURE__ */ s(e, {
47
47
  scale: r,
48
48
  height: d.height,
49
49
  offset: r.bandwidth() / 2,
@@ -52,5 +52,4 @@ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Compon
52
52
  ] });
53
53
  }
54
54
  };
55
- //#endregion
56
55
  export { u as Grid, u as default };
package/dist/i18n/ar.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/ar.ts
1
+ // src/i18n/ar.ts
2
2
  var e = {
3
3
  actions: "الإجراءات",
4
4
  add: "إضافة",
@@ -42,5 +42,4 @@ var e = {
42
42
  valueRange: "القيم من {min} إلى {max}.",
43
43
  labelledValueRange: "{label} من {min} إلى {max}."
44
44
  };
45
- //#endregion
46
45
  export { e as default };
package/dist/i18n/cy.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/cy.ts
1
+ // src/i18n/cy.ts
2
2
  var e = {
3
3
  actions: "Camau gweithredu",
4
4
  add: "Ychwanegu",
@@ -42,5 +42,4 @@ var e = {
42
42
  valueRange: "Gwerthoedd o {min} i {max}.",
43
43
  labelledValueRange: "{label} o {min} i {max}."
44
44
  };
45
- //#endregion
46
45
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/en-AU.ts
1
+ // src/i18n/en-AU.ts
2
2
  var e = {
3
3
  actions: "Actions",
4
4
  add: "Add",
@@ -31,5 +31,4 @@ var e = {
31
31
  valueRange: "Values from {min} to {max}.",
32
32
  labelledValueRange: "{label} from {min} to {max}."
33
33
  };
34
- //#endregion
35
34
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/en-GB.ts
1
+ // src/i18n/en-GB.ts
2
2
  var e = {
3
3
  actions: "Actions",
4
4
  add: "Add",
@@ -31,5 +31,4 @@ var e = {
31
31
  valueRange: "Values from {min} to {max}.",
32
32
  labelledValueRange: "{label} from {min} to {max}."
33
33
  };
34
- //#endregion
35
34
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/en-US.ts
1
+ // src/i18n/en-US.ts
2
2
  var e = {
3
3
  actions: "Actions",
4
4
  add: "Add",
@@ -31,5 +31,4 @@ var e = {
31
31
  valueRange: "Values from {min} to {max}.",
32
32
  labelledValueRange: "{label} from {min} to {max}."
33
33
  };
34
- //#endregion
35
34
  export { e as default };
package/dist/i18n/es.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/es.ts
1
+ // src/i18n/es.ts
2
2
  var e = {
3
3
  actions: "Acciones",
4
4
  add: "Añadir",
@@ -31,5 +31,4 @@ var e = {
31
31
  valueRange: "Valores de {min} a {max}.",
32
32
  labelledValueRange: "{label} de {min} a {max}."
33
33
  };
34
- //#endregion
35
34
  export { e as default };
package/dist/i18n/fr.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/fr.ts
1
+ // src/i18n/fr.ts
2
2
  var e = {
3
3
  actions: "Actions",
4
4
  add: "Ajouter",
@@ -36,5 +36,4 @@ var e = {
36
36
  valueRange: "Valeurs de {min} à {max}.",
37
37
  labelledValueRange: "{label}\xA0: de {min} à {max}."
38
38
  };
39
- //#endregion
40
39
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import e from "./en-US.js";
2
2
  import { defineCatalogs as t } from "@pie-element/shared-i18n";
3
- //#region src/i18n/index.ts
3
+ // src/i18n/index.ts
4
4
  var n = t({
5
5
  packageName: "@pie-lib/charting",
6
6
  source: e,
@@ -63,5 +63,4 @@ var n = t({
63
63
  )
64
64
  }
65
65
  });
66
- //#endregion
67
66
  export { n as catalogs };
package/dist/i18n/ja.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/ja.ts
1
+ // src/i18n/ja.ts
2
2
  var e = {
3
3
  actions: "操作",
4
4
  add: "追加",
@@ -28,5 +28,4 @@ var e = {
28
28
  valueRange: "値の範囲:{min}~{max}。",
29
29
  labelledValueRange: "{label}:{min}~{max}。"
30
30
  };
31
- //#endregion
32
31
  export { e as default };
package/dist/i18n/ko.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/ko.ts
1
+ // src/i18n/ko.ts
2
2
  var e = {
3
3
  actions: "작업",
4
4
  add: "추가",
@@ -28,5 +28,4 @@ var e = {
28
28
  valueRange: "값은 {min}부터 {max}까지입니다.",
29
29
  labelledValueRange: "{label}: {min}부터 {max}까지."
30
30
  };
31
- //#endregion
32
31
  export { e as default };
@@ -1,4 +1,4 @@
1
- //#region src/i18n/nl-NL.ts
1
+ // src/i18n/nl-NL.ts
2
2
  var e = {
3
3
  actions: "Acties",
4
4
  add: "Toevoegen",
@@ -34,5 +34,4 @@ var e = {
34
34
  valueRange: "Waarden van {min} tot {max}.",
35
35
  labelledValueRange: "{label} van {min} tot {max}."
36
36
  };
37
- //#endregion
38
37
  export { e as default };
package/dist/i18n/pt.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/pt.ts
1
+ // src/i18n/pt.ts
2
2
  var e = {
3
3
  actions: "Ações",
4
4
  add: "Adicionar",
@@ -36,5 +36,4 @@ var e = {
36
36
  valueRange: "Valores de {min} a {max}.",
37
37
  labelledValueRange: "{label}: de {min} a {max}."
38
38
  };
39
- //#endregion
40
39
  export { e as default };
package/dist/i18n/ro.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/i18n/ro.ts
1
+ // src/i18n/ro.ts
2
2
  var e = {
3
3
  actions: "Acțiuni",
4
4
  add: "Adaugă",
@@ -36,5 +36,4 @@ var e = {
36
36
  valueRange: "Valori de la {min} la {max}.",
37
37
  labelledValueRange: "{label} de la {min} la {max}."
38
38
  };
39
- //#endregion
40
39
  export { e as default };