@devtable/dashboard 10.62.1 → 10.62.3

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.
@@ -102,11 +102,11 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, _var
102
102
  color: string;
103
103
  };
104
104
  data: ({
105
- type: string;
105
+ coord: (string | number)[];
106
106
  xAxis?: undefined;
107
107
  } | {
108
108
  xAxis: string | number;
109
- type?: undefined;
109
+ coord?: undefined;
110
110
  })[][];
111
111
  } | undefined;
112
112
  barMaxWidth?: undefined;
@@ -29,11 +29,11 @@ export declare function getMarkLineAndArea(conf: IParetoChartConf, lineData: TLi
29
29
  color: string;
30
30
  };
31
31
  data: ({
32
- type: string;
32
+ coord: (string | number)[];
33
33
  xAxis?: undefined;
34
34
  } | {
35
35
  xAxis: string | number;
36
- type?: undefined;
36
+ coord?: undefined;
37
37
  })[][];
38
38
  };
39
39
  };
@@ -65,11 +65,11 @@ export declare function getSeries(conf: IParetoChartConf, data: TPanelData, form
65
65
  color: string;
66
66
  };
67
67
  data: ({
68
- type: string;
68
+ coord: (string | number)[];
69
69
  xAxis?: undefined;
70
70
  } | {
71
71
  xAxis: string | number;
72
- type?: undefined;
72
+ coord?: undefined;
73
73
  })[][];
74
74
  } | undefined;
75
75
  barMaxWidth?: undefined;
@@ -1099,12 +1099,14 @@ function Z(e, {
1099
1099
  ...n
1100
1100
  }) {
1101
1101
  if (e === null)
1102
- return "";
1102
+ return String(e);
1103
1103
  try {
1104
1104
  let s = si(e).value();
1105
+ if (s === void 0)
1106
+ throw new Error(`[formatNumber]Not a number: ${e}`);
1105
1107
  return t && (s = Math.abs(s)), si(s).format(n);
1106
1108
  } catch (s) {
1107
- return console.error(s), "";
1109
+ return console.debug(s), String(e);
1108
1110
  }
1109
1111
  }
1110
1112
  function om(e) {
@@ -1713,7 +1715,7 @@ class Ei {
1713
1715
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1714
1716
  }
1715
1717
  }
1716
- const sc = "10.62.1", Rm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1718
+ const sc = "10.62.3", Rm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1717
1719
  __proto__: null,
1718
1720
  version: sc
1719
1721
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3536,18 +3538,12 @@ const rg = (e, t) => {
3536
3538
  </tbody>
3537
3539
  </table>
3538
3540
  `;
3539
- }, sg = (e) => {
3540
- try {
3541
- return Z(e, {
3542
- output: "number",
3543
- trimMantissa: !0,
3544
- mantissa: 2,
3545
- absolute: !1
3546
- });
3547
- } catch {
3548
- return e;
3549
- }
3550
- };
3541
+ }, sg = (e) => Z(e, {
3542
+ output: "number",
3543
+ trimMantissa: !0,
3544
+ mantissa: 2,
3545
+ absolute: !1
3546
+ });
3551
3547
  function _c(e, t) {
3552
3548
  return e.tooltip.metrics.map((n) => {
3553
3549
  const s = $(n.data_key);
@@ -11151,18 +11147,12 @@ function Ov(e, t, n) {
11151
11147
  }
11152
11148
  };
11153
11149
  }
11154
- const $v = (e) => {
11155
- try {
11156
- return Z(e, {
11157
- output: "number",
11158
- trimMantissa: !0,
11159
- mantissa: 2,
11160
- absolute: !1
11161
- });
11162
- } catch {
11163
- return e;
11164
- }
11165
- };
11150
+ const $v = (e) => Z(e, {
11151
+ output: "number",
11152
+ trimMantissa: !0,
11153
+ mantissa: 2,
11154
+ absolute: !1
11155
+ });
11166
11156
  function Pv({
11167
11157
  conf: e,
11168
11158
  labelFormatters: t,
@@ -12230,7 +12220,7 @@ function vw(e, t) {
12230
12220
  color: "rgba(47, 140, 192, 0.05)"
12231
12221
  },
12232
12222
  data: [[{
12233
- type: "min"
12223
+ coord: ["min", 0]
12234
12224
  }, {
12235
12225
  xAxis: a
12236
12226
  }]]
@@ -15141,18 +15131,12 @@ function k_(e, t) {
15141
15131
  } = i;
15142
15132
  return Ea(o, a, t);
15143
15133
  }
15144
- const T_ = (e) => {
15145
- try {
15146
- return Z(e, {
15147
- output: "number",
15148
- trimMantissa: !0,
15149
- mantissa: 2,
15150
- absolute: !1
15151
- });
15152
- } catch {
15153
- return e;
15154
- }
15155
- };
15134
+ const T_ = (e) => Z(e, {
15135
+ output: "number",
15136
+ trimMantissa: !0,
15137
+ mantissa: 2,
15138
+ absolute: !1
15139
+ });
15156
15140
  function D_(e, t) {
15157
15141
  const {
15158
15142
  scatter: n,
@@ -18811,18 +18795,12 @@ function w1(e, t, n, s) {
18811
18795
  data: d.map((u) => [w.get(u, a.columnKey), w.get(u, l.columnKey)])
18812
18796
  }));
18813
18797
  }
18814
- const _1 = (e) => {
18815
- try {
18816
- return Z(e, {
18817
- output: "number",
18818
- trimMantissa: !0,
18819
- mantissa: 2,
18820
- absolute: !1
18821
- });
18822
- } catch {
18823
- return e;
18824
- }
18825
- };
18798
+ const _1 = (e) => Z(e, {
18799
+ output: "number",
18800
+ trimMantissa: !0,
18801
+ mantissa: 2,
18802
+ absolute: !1
18803
+ });
18826
18804
  function S1({
18827
18805
  conf: e,
18828
18806
  valueFormatters: t,
@@ -22203,18 +22181,12 @@ function VT(e, t) {
22203
22181
  }
22204
22182
  };
22205
22183
  }
22206
- const NT = (e) => {
22207
- try {
22208
- return Z(e, {
22209
- output: "number",
22210
- trimMantissa: !0,
22211
- mantissa: 2,
22212
- absolute: !1
22213
- });
22214
- } catch {
22215
- return e;
22216
- }
22217
- };
22184
+ const NT = (e) => Z(e, {
22185
+ output: "number",
22186
+ trimMantissa: !0,
22187
+ mantissa: 2,
22188
+ absolute: !1
22189
+ });
22218
22190
  function BT({
22219
22191
  conf: e,
22220
22192
  labelFormatters: t,