@gisce/react-ooui 1.1.39 → 1.1.40-rc.1

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.
@@ -18887,17 +18887,22 @@ const formatter = (e) => (t) => {
18887
18887
  useGrouping: !0
18888
18888
  });
18889
18889
  return { name: e === "pie" ? t.x : t.type, value: r };
18890
- }, DefaultGraphOptions = {
18890
+ }, axisFormatter = (e) => typeof e == "string" && stringIsValidNumeric(e) ? parseFloat(e).toLocaleString("es-ES", {
18891
+ useGrouping: !0
18892
+ }) : isNumber$1(e) ? e.toLocaleString("es-ES", {
18893
+ useGrouping: !0
18894
+ }) : e, stringIsValidNumeric = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), isNumber$1 = (e) => typeof e == "number" && !isNaN(e), DefaultGraphOptions = {
18891
18895
  default: {
18892
18896
  padding: "auto",
18893
18897
  xAxis: {
18894
- tickCount: 5
18898
+ tickCount: 5,
18899
+ label: {
18900
+ formatter: axisFormatter
18901
+ }
18895
18902
  },
18896
18903
  yAxis: {
18897
18904
  label: {
18898
- formatter: (e) => e.toLocaleString("es-ES", {
18899
- useGrouping: !0
18900
- })
18905
+ formatter: axisFormatter
18901
18906
  }
18902
18907
  },
18903
18908
  legend: {
@@ -18942,11 +18947,14 @@ const formatter = (e) => (t) => {
18942
18947
  tooltip: {
18943
18948
  formatter: formatter("barGrouped")
18944
18949
  },
18950
+ xAxis: {
18951
+ label: {
18952
+ formatter: axisFormatter
18953
+ }
18954
+ },
18945
18955
  yAxis: {
18946
18956
  label: {
18947
- formatter: (e) => e.toLocaleString("es-ES", {
18948
- useGrouping: !0
18949
- })
18957
+ formatter: axisFormatter
18950
18958
  }
18951
18959
  },
18952
18960
  label: {
@@ -22714,7 +22722,11 @@ const DatePickerConfig = {
22714
22722
  required: a
22715
22723
  }),
22716
22724
  onChange: (p) => {
22717
- f(p), c([]), r == null || r(void 0);
22725
+ f(p);
22726
+ let h = l[0] || 0;
22727
+ p !== d && (c([]), h = 0);
22728
+ const m = `${p},${h}`;
22729
+ m !== t && (r == null || r(m));
22718
22730
  },
22719
22731
  value: d
22720
22732
  })
@@ -22730,7 +22742,7 @@ const DatePickerConfig = {
22730
22742
  value: l,
22731
22743
  onChange: (p) => {
22732
22744
  c(p);
22733
- const h = `${d},${p[0]}`;
22745
+ const h = `${d},${p[0] || 0}`;
22734
22746
  h !== t && (r == null || r(h));
22735
22747
  }
22736
22748
  })