@devtable/dashboard 10.46.0 → 10.47.0

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.
@@ -1307,7 +1307,7 @@ class Di {
1307
1307
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1308
1308
  }
1309
1309
  }
1310
- const Ql = "10.46.0", qx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1310
+ const Ql = "10.47.0", qx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1311
1311
  __proto__: null,
1312
1312
  version: Ql
1313
1313
  }, Symbol.toStringTag, { value: "Module" }));
@@ -8415,10 +8415,11 @@ function gy(t, e) {
8415
8415
  const {
8416
8416
  overflow: n,
8417
8417
  ...s
8418
- } = t.x_axis.axisLabel, i = kt(n.on_axis);
8418
+ } = t.x_axis.axisLabel, i = kt(n.on_axis), a = e.length === 0;
8419
8419
  return [{
8420
8420
  data: e,
8421
8421
  name: t.x_axis_name ?? "",
8422
+ nameGap: a ? 5 : void 0,
8422
8423
  id: "main-x-axis",
8423
8424
  axisTick: {
8424
8425
  show: !0,
@@ -12378,7 +12379,7 @@ function Zv({
12378
12379
  ] })
12379
12380
  ] });
12380
12381
  }
12381
- function ew(t) {
12382
+ function e0(t) {
12382
12383
  const {
12383
12384
  dataZoom: e = qn,
12384
12385
  ...n
@@ -12388,7 +12389,7 @@ function ew(t) {
12388
12389
  dataZoom: e
12389
12390
  };
12390
12391
  }
12391
- function tw(t) {
12392
+ function t0(t) {
12392
12393
  const {
12393
12394
  markLine: e = Oc,
12394
12395
  ...n
@@ -12398,7 +12399,7 @@ function tw(t) {
12398
12399
  markLine: e
12399
12400
  };
12400
12401
  }
12401
- function nw(t) {
12402
+ function n0(t) {
12402
12403
  const e = w.defaultsDeep({}, t.x_axis.axisLabel, {
12403
12404
  rotate: 0,
12404
12405
  formatter: {
@@ -12413,7 +12414,7 @@ function nw(t) {
12413
12414
  }
12414
12415
  };
12415
12416
  }
12416
- function rw(t) {
12417
+ function r0(t) {
12417
12418
  const {
12418
12419
  label_formatter: e = Ve
12419
12420
  } = t.bar;
@@ -12425,7 +12426,7 @@ function rw(t) {
12425
12426
  }
12426
12427
  };
12427
12428
  }
12428
- function sw(t) {
12429
+ function s0(t) {
12429
12430
  const e = {
12430
12431
  x_axis: {
12431
12432
  axisLabel: {
@@ -12446,7 +12447,7 @@ function sw(t) {
12446
12447
  };
12447
12448
  return w.defaultsDeep(e, t);
12448
12449
  }
12449
- function iw(t) {
12450
+ function i0(t) {
12450
12451
  const e = {
12451
12452
  bar: {
12452
12453
  nameAlignment: "left"
@@ -12457,7 +12458,7 @@ function iw(t) {
12457
12458
  };
12458
12459
  return w.defaultsDeep(e, t);
12459
12460
  }
12460
- function aw(t) {
12461
+ function a0(t) {
12461
12462
  console.log(t);
12462
12463
  const {
12463
12464
  x_axis: e,
@@ -12474,7 +12475,7 @@ function aw(t) {
12474
12475
  };
12475
12476
  return w.defaultsDeep(s, t);
12476
12477
  }
12477
- function ow(t, {
12478
+ function o0(t, {
12478
12479
  panelModel: e
12479
12480
  }) {
12480
12481
  try {
@@ -12498,7 +12499,7 @@ function ow(t, {
12498
12499
  throw console.error("[Migration failed]", n), n;
12499
12500
  }
12500
12501
  }
12501
- class lw extends we {
12502
+ class l0 extends we {
12502
12503
  constructor() {
12503
12504
  super(...arguments);
12504
12505
  O(this, "VERSION", 9);
@@ -12510,42 +12511,42 @@ class lw extends we {
12510
12511
  })), this.version(2, (n) => ({
12511
12512
  ...n,
12512
12513
  version: 2,
12513
- config: ew(n.config)
12514
+ config: e0(n.config)
12514
12515
  })), this.version(3, (n) => ({
12515
12516
  ...n,
12516
12517
  version: 3,
12517
- config: tw(n.config)
12518
+ config: t0(n.config)
12518
12519
  })), this.version(4, (n) => ({
12519
12520
  ...n,
12520
12521
  version: 4,
12521
- config: nw(n.config)
12522
+ config: n0(n.config)
12522
12523
  })), this.version(5, (n) => ({
12523
12524
  ...n,
12524
12525
  version: 5,
12525
- config: rw(n.config)
12526
+ config: r0(n.config)
12526
12527
  })), this.version(6, (n) => ({
12527
12528
  ...n,
12528
12529
  version: 6,
12529
- config: sw(n.config)
12530
+ config: s0(n.config)
12530
12531
  })), this.version(7, (n) => ({
12531
12532
  ...n,
12532
12533
  version: 7,
12533
- config: iw(n.config)
12534
+ config: i0(n.config)
12534
12535
  })), this.version(8, (n) => ({
12535
12536
  ...n,
12536
12537
  version: 8,
12537
- config: aw(n.config)
12538
+ config: a0(n.config)
12538
12539
  })), this.version(9, (n, s) => ({
12539
12540
  ...n,
12540
12541
  version: 9,
12541
- config: ow(n.config, s)
12542
+ config: o0(n.config, s)
12542
12543
  }));
12543
12544
  }
12544
12545
  }
12545
- const cw = {
12546
+ const c0 = {
12546
12547
  displayName: "Pareto Chart",
12547
12548
  displayGroup: "ECharts-based charts",
12548
- migrator: new lw(),
12549
+ migrator: new l0(),
12549
12550
  name: "paretoChart",
12550
12551
  viewRender: qv,
12551
12552
  configRender: Zv,
@@ -12619,7 +12620,7 @@ const cw = {
12619
12620
  }
12620
12621
  }
12621
12622
  };
12622
- function dw() {
12623
+ function d0() {
12623
12624
  ae.registerTheme("merico-light", {
12624
12625
  color: Object.values(si.graphics.multiple),
12625
12626
  visualMap: {
@@ -12628,9 +12629,9 @@ function dw() {
12628
12629
  });
12629
12630
  }
12630
12631
  function Vc() {
12631
- dw();
12632
+ d0();
12632
12633
  }
12633
- function* uw(t) {
12634
+ function* u0(t) {
12634
12635
  const e = si.graphics[t];
12635
12636
  if (!e)
12636
12637
  throw new Error("Invalid palette key provided");
@@ -12639,7 +12640,7 @@ function* uw(t) {
12639
12640
  for (; ; )
12640
12641
  yield n[s % n.length], s++;
12641
12642
  }
12642
- function hw(t, e, n) {
12643
+ function h0(t, e, n) {
12643
12644
  const {
12644
12645
  label_field: s,
12645
12646
  value_field: i,
@@ -12651,7 +12652,7 @@ function hw(t, e, n) {
12651
12652
  name: u[o.columnKey],
12652
12653
  value: Number(u[l.columnKey]),
12653
12654
  color: c.columnKey ? u[c.columnKey] : void 0
12654
- })), h = uw("multiple");
12655
+ })), h = u0("multiple");
12655
12656
  return {
12656
12657
  type: "pie",
12657
12658
  name: "pie",
@@ -12695,20 +12696,20 @@ function hw(t, e, n) {
12695
12696
  right: 10
12696
12697
  };
12697
12698
  }
12698
- function pw(t, e, n) {
12699
+ function p0(t, e, n) {
12699
12700
  return {
12700
12701
  tooltip: {
12701
12702
  show: !0,
12702
12703
  confine: !0
12703
12704
  },
12704
- series: hw(t, e, n)
12705
+ series: h0(t, e, n)
12705
12706
  };
12706
12707
  }
12707
12708
  const Nc = {
12708
12709
  id: "builtin:echarts:click-pie-chart:series",
12709
12710
  displayName: "Click Pie Series",
12710
- nameRender: mw,
12711
- configRender: xw,
12711
+ nameRender: m0,
12712
+ configRender: x0,
12712
12713
  payload: [{
12713
12714
  name: "seriesType",
12714
12715
  description: "'line' | 'scatter' | 'bar'",
@@ -12735,10 +12736,10 @@ const Nc = {
12735
12736
  valueType: "object"
12736
12737
  }]
12737
12738
  };
12738
- function xw(t) {
12739
+ function x0(t) {
12739
12740
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
12740
12741
  }
12741
- function mw(t) {
12742
+ function m0(t) {
12742
12743
  return /* @__PURE__ */ r.jsx(j, { children: "Click chart's series" });
12743
12744
  }
12744
12745
  const Zi = {
@@ -12747,7 +12748,7 @@ const Zi = {
12747
12748
  color_field: ""
12748
12749
  };
12749
12750
  ae.use([Th, Ue]);
12750
- function fw({
12751
+ function f0({
12751
12752
  conf: t,
12752
12753
  data: e,
12753
12754
  width: n,
@@ -12764,7 +12765,7 @@ function fw({
12764
12765
  rowData: u
12765
12766
  });
12766
12767
  });
12767
- }, [a, o, i]), c = M.useMemo(() => pw(t, e, n), [t, e, n]), d = T(() => ({
12768
+ }, [a, o, i]), c = M.useMemo(() => p0(t, e, n), [t, e, n]), d = T(() => ({
12768
12769
  click: l
12769
12770
  }), [l]);
12770
12771
  return !n || !s || !c.series.name ? null : /* @__PURE__ */ r.jsx(He, { echarts: ae, option: c, style: {
@@ -12772,7 +12773,7 @@ function fw({
12772
12773
  height: s
12773
12774
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
12774
12775
  }
12775
- function gw({
12776
+ function g0({
12776
12777
  context: t,
12777
12778
  instance: e
12778
12779
  }) {
@@ -12785,9 +12786,9 @@ function gw({
12785
12786
  width: o,
12786
12787
  height: l
12787
12788
  } = t.viewport;
12788
- return !o || !l ? null : /* @__PURE__ */ r.jsx(et, { width: o, height: l, children: /* @__PURE__ */ r.jsx(fw, { conf: i, width: _t(o), height: Ct(l), data: a, interactionManager: n }) });
12789
+ return !o || !l ? null : /* @__PURE__ */ r.jsx(et, { width: o, height: l, children: /* @__PURE__ */ r.jsx(f0, { conf: i, width: _t(o), height: Ct(l), data: a, interactionManager: n }) });
12789
12790
  }
12790
- function bw({
12791
+ function b0({
12791
12792
  context: t
12792
12793
  }) {
12793
12794
  const {
@@ -12830,7 +12831,7 @@ function bw({
12830
12831
  ] })
12831
12832
  ] }) });
12832
12833
  }
12833
- function yw(t) {
12834
+ function y0(t) {
12834
12835
  const {
12835
12836
  color_field: e = "",
12836
12837
  ...n
@@ -12840,7 +12841,7 @@ function yw(t) {
12840
12841
  color_field: e
12841
12842
  };
12842
12843
  }
12843
- function jw(t, {
12844
+ function j0(t, {
12844
12845
  panelModel: e
12845
12846
  }) {
12846
12847
  try {
@@ -12861,7 +12862,7 @@ function jw(t, {
12861
12862
  throw console.error("[Migration failed]", n), n;
12862
12863
  }
12863
12864
  }
12864
- class vw extends we {
12865
+ class v0 extends we {
12865
12866
  constructor() {
12866
12867
  super(...arguments);
12867
12868
  O(this, "VERSION", 3);
@@ -12873,21 +12874,21 @@ class vw extends we {
12873
12874
  })), this.version(2, (n) => ({
12874
12875
  ...n,
12875
12876
  version: 2,
12876
- config: yw(n.config)
12877
+ config: y0(n.config)
12877
12878
  })), this.version(3, (n, s) => ({
12878
12879
  ...n,
12879
12880
  version: 3,
12880
- config: jw(n.config, s)
12881
+ config: j0(n.config, s)
12881
12882
  }));
12882
12883
  }
12883
12884
  }
12884
- const ww = {
12885
+ const w0 = {
12885
12886
  displayName: "Pie Chart",
12886
12887
  displayGroup: "ECharts-based charts",
12887
- migrator: new vw(),
12888
+ migrator: new v0(),
12888
12889
  name: "pie",
12889
- viewRender: gw,
12890
- configRender: bw,
12890
+ viewRender: g0,
12891
+ configRender: b0,
12891
12892
  createConfig() {
12892
12893
  return {
12893
12894
  version: 3,
@@ -12896,17 +12897,17 @@ const ww = {
12896
12897
  },
12897
12898
  triggers: [Nc]
12898
12899
  };
12899
- function _w(t) {
12900
+ function _0(t) {
12900
12901
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
12901
12902
  }
12902
- function Cw(t) {
12903
+ function C0(t) {
12903
12904
  return /* @__PURE__ */ r.jsx(j, { children: "Click heat block" });
12904
12905
  }
12905
12906
  const Bc = {
12906
12907
  id: "builtin:echarts:click-radar-chart:series",
12907
12908
  displayName: "Click radar chart series",
12908
- nameRender: Cw,
12909
- configRender: _w,
12909
+ nameRender: C0,
12910
+ configRender: _0,
12910
12911
  payload: [{
12911
12912
  name: "seriesType",
12912
12913
  description: "'radar'",
@@ -12969,14 +12970,14 @@ function Gc(t, e) {
12969
12970
  return t[s.columnKey];
12970
12971
  });
12971
12972
  }
12972
- function Sw(t, e, n) {
12973
+ function S0(t, e, n) {
12973
12974
  const s = F(e);
12974
12975
  return t[s.queryID].map((i) => ({
12975
12976
  value: Gc(i, n),
12976
12977
  name: i[s.columnKey]
12977
12978
  }));
12978
12979
  }
12979
- function kw(t, e) {
12980
+ function k0(t, e) {
12980
12981
  const {
12981
12982
  series_name_key: n,
12982
12983
  dimensions: s
@@ -12984,7 +12985,7 @@ function kw(t, e) {
12984
12985
  return [{
12985
12986
  type: "radar",
12986
12987
  name: "main-radar",
12987
- data: Sw(t, n, s),
12988
+ data: S0(t, n, s),
12988
12989
  symbolSize: 4,
12989
12990
  lineStyle: {
12990
12991
  width: 1
@@ -13000,7 +13001,7 @@ function kw(t, e) {
13000
13001
  label: Wc(e)
13001
13002
  }];
13002
13003
  }
13003
- function Tw(t, e) {
13004
+ function T0(t, e) {
13004
13005
  const {
13005
13006
  additional_series: n,
13006
13007
  dimensions: s
@@ -13036,10 +13037,10 @@ function Tw(t, e) {
13036
13037
  };
13037
13038
  }).flat();
13038
13039
  }
13039
- function Iw(t, e) {
13040
- return [...kw(t, e), ...Tw(t, e)];
13040
+ function I0(t, e) {
13041
+ return [...k0(t, e), ...T0(t, e)];
13041
13042
  }
13042
- function Dw(t) {
13043
+ function D0(t) {
13043
13044
  return ({
13044
13045
  name: e,
13045
13046
  marker: n,
@@ -13082,7 +13083,7 @@ function Dw(t) {
13082
13083
  `;
13083
13084
  };
13084
13085
  }
13085
- const zw = {
13086
+ const z0 = {
13086
13087
  legend: {
13087
13088
  show: !0,
13088
13089
  bottom: 0,
@@ -13091,8 +13092,8 @@ const zw = {
13091
13092
  tooltip: {
13092
13093
  trigger: "item"
13093
13094
  }
13094
- }, Lw = ["#66B4DB", "#39BFA2", "#E46464", "#33A678", "#EEBA00", "#9D88CB", "#939943", "#E49792", "#09A2B8", "#AF5F6B", "#6CA157", "#09A2B8", "#6398C7", "#E692BA", "#97B566", "#8CACE2", "#CA79AC", "#6DBC80", "#B08F4B", "#826BAF"];
13095
- function Mw(t, e) {
13095
+ }, L0 = ["#66B4DB", "#39BFA2", "#E46464", "#33A678", "#EEBA00", "#9D88CB", "#939943", "#E49792", "#09A2B8", "#AF5F6B", "#6CA157", "#09A2B8", "#6398C7", "#E692BA", "#97B566", "#8CACE2", "#CA79AC", "#6DBC80", "#B08F4B", "#826BAF"];
13096
+ function M0(t, e) {
13096
13097
  const {
13097
13098
  series_name_key: n,
13098
13099
  dimensions: s,
@@ -13116,7 +13117,7 @@ function Mw(t, e) {
13116
13117
  tooltip: {
13117
13118
  confine: !0,
13118
13119
  backgroundColor: "rgba(255,255,255,0.6)",
13119
- formatter: Dw(t)
13120
+ formatter: D0(t)
13120
13121
  },
13121
13122
  legend: {
13122
13123
  show: !0,
@@ -13124,13 +13125,13 @@ function Mw(t, e) {
13124
13125
  left: "center",
13125
13126
  type: "scroll"
13126
13127
  },
13127
- series: Iw(e, t),
13128
- color: Lw
13128
+ series: I0(e, t),
13129
+ color: L0
13129
13130
  };
13130
- return w.merge({}, zw, o);
13131
+ return w.merge({}, z0, o);
13131
13132
  }
13132
13133
  ae.use([Ih, at, ot, lt, Ue]);
13133
- function Aw({
13134
+ function A0({
13134
13135
  conf: t,
13135
13136
  data: e,
13136
13137
  width: n,
@@ -13165,13 +13166,13 @@ function Aw({
13165
13166
  });
13166
13167
  }, [o, l, i]), d = T(() => ({
13167
13168
  click: c
13168
- }), [c]), h = T(() => Mw(fe({}, t, xs), e), [t, e]);
13169
+ }), [c]), h = T(() => M0(fe({}, t, xs), e), [t, e]);
13169
13170
  return !n || !s ? null : /* @__PURE__ */ r.jsx(He, { echarts: ae, option: h, style: {
13170
13171
  width: n,
13171
13172
  height: s
13172
13173
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
13173
13174
  }
13174
- function Rw({
13175
+ function R0({
13175
13176
  context: t,
13176
13177
  instance: e
13177
13178
  }) {
@@ -13186,9 +13187,9 @@ function Rw({
13186
13187
  width: l,
13187
13188
  height: c
13188
13189
  } = t.viewport;
13189
- return !l || !c || !a || il(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ r.jsx(et, { width: l, height: c, children: /* @__PURE__ */ r.jsx(Aw, { variables: i, width: _t(l), height: Ct(c), data: o, conf: a, interactionManager: n }) });
13190
+ return !l || !c || !a || il(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ r.jsx(et, { width: l, height: c, children: /* @__PURE__ */ r.jsx(A0, { variables: i, width: _t(l), height: Ct(c), data: o, conf: a, interactionManager: n }) });
13190
13191
  }
13191
- function Ew({
13192
+ function E0({
13192
13193
  control: t,
13193
13194
  index: e,
13194
13195
  remove: n
@@ -13210,7 +13211,7 @@ function Ew({
13210
13211
  /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), children: "Delete" })
13211
13212
  ] });
13212
13213
  }
13213
- function Fw({
13214
+ function F0({
13214
13215
  control: t,
13215
13216
  watch: e
13216
13217
  }) {
@@ -13258,11 +13259,11 @@ function Fw({
13258
13259
  o.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: p.id, children: x + 1 }, p.id)),
13259
13260
  /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(At, { size: 18, color: "#228be6" }) })
13260
13261
  ] }),
13261
- o.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: p.id, children: /* @__PURE__ */ r.jsx(Ew, { control: t, index: x, remove: u }) }, p.id))
13262
+ o.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: p.id, children: /* @__PURE__ */ r.jsx(E0, { control: t, index: x, remove: u }) }, p.id))
13262
13263
  ] })
13263
13264
  ] });
13264
13265
  }
13265
- function $w({
13266
+ function $0({
13266
13267
  control: t,
13267
13268
  index: e,
13268
13269
  remove: n
@@ -13306,7 +13307,7 @@ function $w({
13306
13307
  /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this Metric" })
13307
13308
  ] });
13308
13309
  }
13309
- function Pw({
13310
+ function P0({
13310
13311
  control: t,
13311
13312
  watch: e
13312
13313
  }) {
@@ -13351,10 +13352,10 @@ function Pw({
13351
13352
  o.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: p.id, children: p.name ? p.name : x + 1 }, p.id)),
13352
13353
  /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(At, { size: 18, color: "#228be6" }) })
13353
13354
  ] }),
13354
- o.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: p.id, children: /* @__PURE__ */ r.jsx($w, { control: t, index: x, remove: u }) }, p.id))
13355
+ o.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: p.id, children: /* @__PURE__ */ r.jsx($0, { control: t, index: x, remove: u }) }, p.id))
13355
13356
  ] }) });
13356
13357
  }
13357
- function Ow({
13358
+ function O0({
13358
13359
  context: t
13359
13360
  }) {
13360
13361
  const {
@@ -13395,7 +13396,7 @@ function Ow({
13395
13396
  }) => /* @__PURE__ */ r.jsx(W, { label: "Series Name Field", required: !0, sx: {
13396
13397
  flex: 1
13397
13398
  }, ...p }) }) }),
13398
- /* @__PURE__ */ r.jsx(m.Panel, { value: "metrics", p: "md", children: /* @__PURE__ */ r.jsx(Pw, { control: i, watch: o }) }),
13399
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "metrics", p: "md", children: /* @__PURE__ */ r.jsx(P0, { control: i, watch: o }) }),
13399
13400
  /* @__PURE__ */ r.jsx(m.Panel, { value: "style", p: "md", children: /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
13400
13401
  /* @__PURE__ */ r.jsx(g, { name: "background.enabled", control: i, render: ({
13401
13402
  field: p
@@ -13404,11 +13405,11 @@ function Ow({
13404
13405
  field: p
13405
13406
  }) => /* @__PURE__ */ r.jsx(U, { label: "Show value label", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) })
13406
13407
  ] }) }),
13407
- /* @__PURE__ */ r.jsx(m.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ r.jsx(Fw, { control: i, watch: o }) })
13408
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ r.jsx(F0, { control: i, watch: o }) })
13408
13409
  ] })
13409
13410
  ] }) });
13410
13411
  }
13411
- function Vw(t) {
13412
+ function V0(t) {
13412
13413
  const {
13413
13414
  dimensions: e = [],
13414
13415
  ...n
@@ -13431,7 +13432,7 @@ function Vw(t) {
13431
13432
  dimensions: e.map(s)
13432
13433
  };
13433
13434
  }
13434
- function Nw(t) {
13435
+ function N0(t) {
13435
13436
  const {
13436
13437
  dimensions: e = [],
13437
13438
  ...n
@@ -13444,7 +13445,7 @@ function Nw(t) {
13444
13445
  }))
13445
13446
  };
13446
13447
  }
13447
- function Bw(t) {
13448
+ function B0(t) {
13448
13449
  const e = {
13449
13450
  background: {
13450
13451
  enabled: !0
@@ -13455,7 +13456,7 @@ function Bw(t) {
13455
13456
  };
13456
13457
  return w.defaultsDeep(e, t);
13457
13458
  }
13458
- function qw(t, {
13459
+ function q0(t, {
13459
13460
  panelModel: e
13460
13461
  }) {
13461
13462
  try {
@@ -13479,13 +13480,13 @@ function qw(t, {
13479
13480
  throw console.error("[Migration failed]", n), n;
13480
13481
  }
13481
13482
  }
13482
- function Ww(t) {
13483
+ function W0(t) {
13483
13484
  const e = {
13484
13485
  additional_series: []
13485
13486
  };
13486
13487
  return w.defaultsDeep(e, t);
13487
13488
  }
13488
- function Gw(t) {
13489
+ function G0(t) {
13489
13490
  const e = {
13490
13491
  ...t,
13491
13492
  dimensions: t.dimensions.map((n) => ({
@@ -13495,7 +13496,7 @@ function Gw(t) {
13495
13496
  };
13496
13497
  return delete e.additionalSeries, e;
13497
13498
  }
13498
- class Qw extends we {
13499
+ class Q0 extends we {
13499
13500
  constructor() {
13500
13501
  super(...arguments);
13501
13502
  O(this, "VERSION", 7);
@@ -13511,7 +13512,7 @@ class Qw extends we {
13511
13512
  return {
13512
13513
  ...n,
13513
13514
  version: 2,
13514
- config: Vw(s)
13515
+ config: V0(s)
13515
13516
  };
13516
13517
  }), this.version(3, (n) => {
13517
13518
  const {
@@ -13520,7 +13521,7 @@ class Qw extends we {
13520
13521
  return {
13521
13522
  ...n,
13522
13523
  version: 3,
13523
- config: Nw(s)
13524
+ config: N0(s)
13524
13525
  };
13525
13526
  }), this.version(4, (n) => {
13526
13527
  const {
@@ -13529,7 +13530,7 @@ class Qw extends we {
13529
13530
  return {
13530
13531
  ...n,
13531
13532
  version: 4,
13532
- config: Bw(s)
13533
+ config: B0(s)
13533
13534
  };
13534
13535
  }), this.version(5, (n, s) => {
13535
13536
  const {
@@ -13538,7 +13539,7 @@ class Qw extends we {
13538
13539
  return {
13539
13540
  ...n,
13540
13541
  version: 5,
13541
- config: qw(i, s)
13542
+ config: q0(i, s)
13542
13543
  };
13543
13544
  }), this.version(6, (n) => {
13544
13545
  const {
@@ -13547,7 +13548,7 @@ class Qw extends we {
13547
13548
  return {
13548
13549
  ...n,
13549
13550
  version: 6,
13550
- config: Ww(s)
13551
+ config: W0(s)
13551
13552
  };
13552
13553
  }), this.version(7, (n) => {
13553
13554
  const {
@@ -13556,25 +13557,25 @@ class Qw extends we {
13556
13557
  return {
13557
13558
  ...n,
13558
13559
  version: 7,
13559
- config: Gw(s)
13560
+ config: G0(s)
13560
13561
  };
13561
13562
  });
13562
13563
  }
13563
13564
  }
13564
- const Hw = {
13565
+ const H0 = {
13565
13566
  displayName: "Radar Chart",
13566
13567
  displayGroup: "ECharts-based charts",
13567
- migrator: new Qw(),
13568
+ migrator: new Q0(),
13568
13569
  name: "radar",
13569
- viewRender: Rw,
13570
- configRender: Ow,
13570
+ viewRender: R0,
13571
+ configRender: O0,
13571
13572
  createConfig: () => ({
13572
13573
  version: 7,
13573
13574
  config: xs
13574
13575
  }),
13575
13576
  triggers: [Bc]
13576
13577
  };
13577
- function Uw(t, e) {
13578
+ function U0(t, e) {
13578
13579
  const {
13579
13580
  plot: n,
13580
13581
  transform: s
@@ -13600,7 +13601,7 @@ function Qc(t, e) {
13600
13601
  const n = F(t.x_axis.data_key), s = F(t.regression.y_axis_data_key);
13601
13602
  return w.uniqBy(e.map((i) => [i[n.columnKey], i[s.columnKey]]), 0);
13602
13603
  }
13603
- function Kw(t, e) {
13604
+ function K0(t, e) {
13604
13605
  const {
13605
13606
  plot: n,
13606
13607
  transform: s
@@ -13621,7 +13622,7 @@ function Kw(t, e) {
13621
13622
  }
13622
13623
  }];
13623
13624
  }
13624
- function Yw(t, e) {
13625
+ function Y0(t, e) {
13625
13626
  const {
13626
13627
  plot: n,
13627
13628
  transform: s,
@@ -13644,15 +13645,15 @@ function Yw(t, e) {
13644
13645
  };
13645
13646
  });
13646
13647
  }
13647
- function Xw(t, e) {
13648
+ function X0(t, e) {
13648
13649
  if (e.length === 0)
13649
13650
  return [];
13650
13651
  const {
13651
13652
  group_by_key: n
13652
13653
  } = t.regression;
13653
- return n ? Yw(t, e) : Kw(t, e);
13654
+ return n ? Y0(t, e) : K0(t, e);
13654
13655
  }
13655
- function Jw(t) {
13656
+ function J0(t) {
13656
13657
  return Array.isArray(t) || (t = [t]), t.map((e) => ({
13657
13658
  marker: e.marker,
13658
13659
  label: e.seriesName,
@@ -13660,12 +13661,12 @@ function Jw(t) {
13660
13661
  y: e.value[1]
13661
13662
  }));
13662
13663
  }
13663
- function Zw(t) {
13664
+ function Z0(t) {
13664
13665
  return {
13665
13666
  confine: !0,
13666
13667
  trigger: "axis",
13667
13668
  formatter: (e) => {
13668
- const n = Jw(e);
13669
+ const n = J0(e);
13669
13670
  return n.length === 0 ? "" : `
13670
13671
  <table style="width: auto">
13671
13672
  <thead>
@@ -13710,7 +13711,7 @@ function Hc({
13710
13711
  }
13711
13712
  };
13712
13713
  }
13713
- function e0(t) {
13714
+ function ew(t) {
13714
13715
  const {
13715
13716
  overflow: e,
13716
13717
  format: n,
@@ -13740,7 +13741,7 @@ function e0(t) {
13740
13741
  }
13741
13742
  };
13742
13743
  }
13743
- const t0 = {
13744
+ const tw = {
13744
13745
  tooltip: {
13745
13746
  trigger: "axis"
13746
13747
  },
@@ -13759,9 +13760,9 @@ const t0 = {
13759
13760
  yAxisIndex: [0]
13760
13761
  }]
13761
13762
  };
13762
- function n0(t, e) {
13763
- const n = Xw(t, e), s = Uw(t, n), i = {
13764
- xAxis: e0(t),
13763
+ function nw(t, e) {
13764
+ const n = X0(t, e), s = U0(t, n), i = {
13765
+ xAxis: ew(t),
13765
13766
  yAxis: {
13766
13767
  name: t.y_axis.name ?? "",
13767
13768
  nameLocation: "end",
@@ -13774,7 +13775,7 @@ function n0(t, e) {
13774
13775
  }
13775
13776
  },
13776
13777
  series: [...n, ...s],
13777
- tooltip: Zw(t),
13778
+ tooltip: Z0(t),
13778
13779
  legend: {
13779
13780
  show: !0,
13780
13781
  type: "scroll",
@@ -13788,12 +13789,12 @@ function n0(t, e) {
13788
13789
  data: n.map((a) => a.name)
13789
13790
  }
13790
13791
  };
13791
- return fe({}, i, t0);
13792
+ return fe({}, i, tw);
13792
13793
  }
13793
13794
  function ms(t, e, n) {
13794
13795
  return 1 - (1 - t) * (e - 1) / (e - n - 1);
13795
13796
  }
13796
- function r0(t, e, n, s) {
13797
+ function rw(t, e, n, s) {
13797
13798
  const {
13798
13799
  x_axis: i,
13799
13800
  y_axis: a
@@ -13823,7 +13824,7 @@ function r0(t, e, n, s) {
13823
13824
  adjustedRSquared: ms(d, e.length, 1)
13824
13825
  };
13825
13826
  }
13826
- function s0(t, e, n, s) {
13827
+ function sw(t, e, n, s) {
13827
13828
  const {
13828
13829
  x_axis: i,
13829
13830
  y_axis: a
@@ -13851,7 +13852,7 @@ function s0(t, e, n, s) {
13851
13852
  adjustedRSquared: ms(c, e.length, 1)
13852
13853
  };
13853
13854
  }
13854
- function i0(t, e, n, s) {
13855
+ function iw(t, e, n, s) {
13855
13856
  const {
13856
13857
  x_axis: i,
13857
13858
  y_axis: a
@@ -13879,7 +13880,7 @@ function i0(t, e, n, s) {
13879
13880
  adjustedRSquared: ms(c, e.length, 1)
13880
13881
  };
13881
13882
  }
13882
- function a0(t, e, n, s) {
13883
+ function aw(t, e, n, s) {
13883
13884
  const {
13884
13885
  x_axis: i,
13885
13886
  y_axis: a,
@@ -13899,14 +13900,14 @@ function Co(t, e, n) {
13899
13900
  regression: s,
13900
13901
  x_axis: i
13901
13902
  } = n, a = F(i.data_key), o = F(s.y_axis_data_key), l = e.map((c) => [c[a.columnKey], c[o.columnKey]]);
13902
- return s.transform.config.method === "linear" ? r0(t, e, l, n) : s.transform.config.method === "exponential" ? s0(t, e, l, n) : s.transform.config.method === "logarithmic" ? i0(t, e, l, n) : s.transform.config.method === "polynomial" ? a0(t, e, l, n) : {
13903
+ return s.transform.config.method === "linear" ? rw(t, e, l, n) : s.transform.config.method === "exponential" ? sw(t, e, l, n) : s.transform.config.method === "logarithmic" ? iw(t, e, l, n) : s.transform.config.method === "polynomial" ? aw(t, e, l, n) : {
13903
13904
  name: t,
13904
13905
  expression: "",
13905
13906
  rSquared: 0,
13906
13907
  adjustedRSquared: 0
13907
13908
  };
13908
13909
  }
13909
- function o0(t, e) {
13910
+ function ow(t, e) {
13910
13911
  if (!e)
13911
13912
  return [{
13912
13913
  name: "",
@@ -13919,7 +13920,7 @@ function o0(t, e) {
13919
13920
  const n = F(e.regression.group_by_key), s = w.groupBy(t, n.columnKey);
13920
13921
  return Object.entries(s).map(([i, a]) => Co(i, a, e));
13921
13922
  }
13922
- const l0 = {
13923
+ const lw = {
13923
13924
  marginTop: "10px",
13924
13925
  "tbody th, tbody td": {
13925
13926
  padding: "7px 10px"
@@ -13936,7 +13937,7 @@ function So({
13936
13937
  rSquared: n,
13937
13938
  adjustedRSquared: s
13938
13939
  } = t;
13939
- return e ? /* @__PURE__ */ r.jsx(Ze, { fontSize: 14, sx: l0, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
13940
+ return e ? /* @__PURE__ */ r.jsx(Ze, { fontSize: 14, sx: lw, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
13940
13941
  /* @__PURE__ */ r.jsx("tr", { children: /* @__PURE__ */ r.jsx("td", { colSpan: 2, children: /* @__PURE__ */ r.jsx(j, { align: "center", children: e }) }) }),
13941
13942
  /* @__PURE__ */ r.jsxs("tr", { children: [
13942
13943
  /* @__PURE__ */ r.jsx("td", { children: "R-Sq" }),
@@ -13958,27 +13959,27 @@ function So({
13958
13959
  ] })
13959
13960
  ] }) }) : /* @__PURE__ */ r.jsx(j, { children: "Unavailable for this regression method" });
13960
13961
  }
13961
- function c0({
13962
+ function cw({
13962
13963
  conf: t,
13963
13964
  queryData: e
13964
13965
  }) {
13965
13966
  var s;
13966
- const n = T(() => o0(e, t), [t, e]);
13967
+ const n = T(() => ow(e, t), [t, e]);
13967
13968
  return t.regression.group_by_key ? (console.log(n), /* @__PURE__ */ r.jsxs(m, { defaultValue: (s = n[0]) == null ? void 0 : s.name, color: "gray", children: [
13968
13969
  /* @__PURE__ */ r.jsx(m.List, { grow: !0, children: n.map((i) => /* @__PURE__ */ r.jsx(m.Tab, { value: i.name, children: i.name }, i.name)) }),
13969
13970
  n.map((i) => /* @__PURE__ */ r.jsx(m.Panel, { value: i.name, children: /* @__PURE__ */ r.jsx(So, { desc: i }) }, i.name))
13970
13971
  ] })) : /* @__PURE__ */ r.jsx(So, { desc: n[0] });
13971
13972
  }
13972
- function d0({
13973
+ function dw({
13973
13974
  conf: t,
13974
13975
  queryData: e
13975
13976
  }) {
13976
13977
  return /* @__PURE__ */ r.jsxs($e, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
13977
13978
  /* @__PURE__ */ r.jsx($e.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(vn, { size: 14 }), children: "Regression Info" }) }),
13978
- /* @__PURE__ */ r.jsx($e.Dropdown, { children: /* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(c0, { conf: t, queryData: e }) }) })
13979
+ /* @__PURE__ */ r.jsx($e.Dropdown, { children: /* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(cw, { conf: t, queryData: e }) }) })
13979
13980
  ] });
13980
13981
  }
13981
- function u0(t) {
13982
+ function uw(t) {
13982
13983
  return /* @__PURE__ */ r.jsx(b, { position: "apart", sx: {
13983
13984
  position: "absolute",
13984
13985
  top: 0,
@@ -13986,7 +13987,7 @@ function u0(t) {
13986
13987
  right: Xe.right,
13987
13988
  height: "22px",
13988
13989
  zIndex: 1
13989
- }, children: /* @__PURE__ */ r.jsx(d0, { ...t }) });
13990
+ }, children: /* @__PURE__ */ r.jsx(dw, { ...t }) });
13990
13991
  }
13991
13992
  const fs = {
13992
13993
  enabled: !1,
@@ -14032,7 +14033,7 @@ const fs = {
14032
14033
  }
14033
14034
  };
14034
14035
  ae.use([Mt, Zr, at, ot, lt, Ue]);
14035
- function h0({
14036
+ function hw({
14036
14037
  context: t
14037
14038
  }) {
14038
14039
  const {
@@ -14050,15 +14051,15 @@ function h0({
14050
14051
  ...y,
14051
14052
  [p.columnKey]: Number(y[p.columnKey])
14052
14053
  });
14053
- }, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = T(() => n0(fe({}, e, ea), i), [e, i]), o = Kr(null), l = (c) => {
14054
+ }, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = T(() => nw(fe({}, e, ea), i), [e, i]), o = Kr(null), l = (c) => {
14054
14055
  o.current = c;
14055
14056
  };
14056
14057
  return !n || !s || !e ? null : /* @__PURE__ */ r.jsxs(et, { width: n, height: s, children: [
14057
- /* @__PURE__ */ r.jsx(u0, { conf: e, queryData: i }),
14058
+ /* @__PURE__ */ r.jsx(uw, { conf: e, queryData: i }),
14058
14059
  /* @__PURE__ */ r.jsx(He, { echarts: ae, onChartReady: l, option: a, style: hr(n, s), notMerge: !0, theme: "merico-light" })
14059
14060
  ] });
14060
14061
  }
14061
- const p0 = [{
14062
+ const pw = [{
14062
14063
  label: "Linear",
14063
14064
  value: "linear"
14064
14065
  }, {
@@ -14071,7 +14072,7 @@ const p0 = [{
14071
14072
  label: "Polynomial",
14072
14073
  value: "polynomial"
14073
14074
  }];
14074
- function x0({
14075
+ function xw({
14075
14076
  control: t,
14076
14077
  watch: e
14077
14078
  }) {
@@ -14096,7 +14097,7 @@ function x0({
14096
14097
  control: t,
14097
14098
  render: ({
14098
14099
  field: i
14099
- }) => /* @__PURE__ */ r.jsx(A, { label: "回归方法", data: p0, sx: {
14100
+ }) => /* @__PURE__ */ r.jsx(A, { label: "回归方法", data: pw, sx: {
14100
14101
  flex: 1
14101
14102
  }, ...i })
14102
14103
  }
@@ -14122,7 +14123,7 @@ function x0({
14122
14123
  ] })
14123
14124
  ] });
14124
14125
  }
14125
- const m0 = ({
14126
+ const mw = ({
14126
14127
  disabled: t,
14127
14128
  value: e,
14128
14129
  onChange: n
@@ -14184,7 +14185,7 @@ const m0 = ({
14184
14185
  }, children: n }),
14185
14186
  /* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(_, { children: [
14186
14187
  /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (y) => d(y.currentTarget.checked) }),
14187
- /* @__PURE__ */ r.jsx(m0, { value: l.func_content, onChange: p, disabled: !l.enabled }),
14188
+ /* @__PURE__ */ r.jsx(mw, { value: l.func_content, onChange: p, disabled: !l.enabled }),
14188
14189
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
14189
14190
  /* @__PURE__ */ r.jsx(C, { onClick: x, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
14190
14191
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
@@ -14195,7 +14196,7 @@ const m0 = ({
14195
14196
  ] }) })
14196
14197
  ] });
14197
14198
  });
14198
- function f0({
14199
+ function fw({
14199
14200
  control: t,
14200
14201
  watch: e
14201
14202
  }) {
@@ -14241,7 +14242,7 @@ function f0({
14241
14242
  }) => /* @__PURE__ */ r.jsx(Rt, { ...n }) })
14242
14243
  ] });
14243
14244
  }
14244
- function g0({
14245
+ function gw({
14245
14246
  control: t,
14246
14247
  watch: e
14247
14248
  }) {
@@ -14258,7 +14259,7 @@ function g0({
14258
14259
  }, ...n }) })
14259
14260
  ] }) });
14260
14261
  }
14261
- function b0({
14262
+ function bw({
14262
14263
  context: t
14263
14264
  }) {
14264
14265
  const {
@@ -14296,13 +14297,13 @@ function b0({
14296
14297
  /* @__PURE__ */ r.jsx(m.Tab, { value: "Y轴", children: "Y轴" }),
14297
14298
  /* @__PURE__ */ r.jsx(m.Tab, { value: "回归", children: "回归" })
14298
14299
  ] }),
14299
- /* @__PURE__ */ r.jsx(m.Panel, { value: "X轴", children: /* @__PURE__ */ r.jsx(f0, { watch: o, control: i }) }),
14300
- /* @__PURE__ */ r.jsx(m.Panel, { value: "Y轴", children: /* @__PURE__ */ r.jsx(g0, { watch: o, control: i }) }),
14301
- /* @__PURE__ */ r.jsx(m.Panel, { value: "回归", children: /* @__PURE__ */ r.jsx(x0, { control: i, watch: o }) })
14300
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "X轴", children: /* @__PURE__ */ r.jsx(fw, { watch: o, control: i }) }),
14301
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "Y轴", children: /* @__PURE__ */ r.jsx(gw, { watch: o, control: i }) }),
14302
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "回归", children: /* @__PURE__ */ r.jsx(xw, { control: i, watch: o }) })
14302
14303
  ] })
14303
14304
  ] }) });
14304
14305
  }
14305
- function y0(t) {
14306
+ function yw(t) {
14306
14307
  const e = {
14307
14308
  x_axis: {
14308
14309
  axisLabel: {
@@ -14318,7 +14319,7 @@ function y0(t) {
14318
14319
  };
14319
14320
  return w.defaultsDeep(e, t);
14320
14321
  }
14321
- function j0(t, {
14322
+ function jw(t, {
14322
14323
  panelModel: e
14323
14324
  }) {
14324
14325
  try {
@@ -14346,7 +14347,7 @@ function j0(t, {
14346
14347
  throw console.error("[Migration failed]", n), n;
14347
14348
  }
14348
14349
  }
14349
- class v0 extends we {
14350
+ class vw extends we {
14350
14351
  constructor() {
14351
14352
  super(...arguments);
14352
14353
  O(this, "VERSION", 3);
@@ -14358,7 +14359,7 @@ class v0 extends we {
14358
14359
  })), this.version(2, (n) => ({
14359
14360
  ...n,
14360
14361
  version: 2,
14361
- config: y0(n.config)
14362
+ config: yw(n.config)
14362
14363
  })), this.version(3, (n, s) => {
14363
14364
  const {
14364
14365
  config: i
@@ -14366,18 +14367,18 @@ class v0 extends we {
14366
14367
  return {
14367
14368
  ...n,
14368
14369
  version: 3,
14369
- config: j0(i, s)
14370
+ config: jw(i, s)
14370
14371
  };
14371
14372
  });
14372
14373
  }
14373
14374
  }
14374
- const w0 = {
14375
+ const ww = {
14375
14376
  displayName: "Regression Chart",
14376
14377
  displayGroup: "Merico suite",
14377
- migrator: new v0(),
14378
+ migrator: new vw(),
14378
14379
  name: "regressionChart",
14379
- viewRender: h0,
14380
- configRender: b0,
14380
+ viewRender: hw,
14381
+ configRender: bw,
14381
14382
  createConfig() {
14382
14383
  return {
14383
14384
  version: 3,
@@ -14387,7 +14388,7 @@ const w0 = {
14387
14388
  }, gs = {
14388
14389
  content: ""
14389
14390
  };
14390
- function _0(t, e) {
14391
+ function _w(t, e) {
14391
14392
  const n = {};
14392
14393
  return t.forEach((s) => {
14393
14394
  const {
@@ -14398,11 +14399,11 @@ function _0(t, e) {
14398
14399
  n[i] = ft(s, l);
14399
14400
  }), n;
14400
14401
  }
14401
- function C0(t) {
14402
+ function Cw(t) {
14402
14403
  const e = document.createElement("span");
14403
14404
  return e.innerHTML = t, e.innerText;
14404
14405
  }
14405
- function S0(t, e, n) {
14406
+ function Sw(t, e, n) {
14406
14407
  try {
14407
14408
  return new Function("payload", `
14408
14409
  const filters = payload.filters;
@@ -14415,8 +14416,8 @@ function S0(t, e, n) {
14415
14416
  return console.error(s), console.log(t), t;
14416
14417
  }
14417
14418
  }
14418
- function k0(t, e, n, s) {
14419
- const i = _0(e, s), a = /^(.+)\}\}(.*)$/;
14419
+ function kw(t, e, n, s) {
14420
+ const i = _w(e, s), a = /^(.+)\}\}(.*)$/;
14420
14421
  return t.split("{{").map((o) => {
14421
14422
  const l = a.exec(o);
14422
14423
  if (!l)
@@ -14426,11 +14427,11 @@ function k0(t, e, n, s) {
14426
14427
  const h = l[2] ?? "";
14427
14428
  return `${c}${h}`;
14428
14429
  }
14429
- const d = C0(l[1]);
14430
- return `${S0(d, i, n)}${l[2]}`;
14430
+ const d = Cw(l[1]);
14431
+ return `${Sw(d, i, n)}${l[2]}`;
14431
14432
  }).join("");
14432
14433
  }
14433
- const T0 = k(({
14434
+ const Tw = k(({
14434
14435
  context: t
14435
14436
  }) => {
14436
14437
  const e = Fe(), {
@@ -14440,7 +14441,7 @@ const T0 = k(({
14440
14441
  data: i
14441
14442
  } = t, a = T(() => {
14442
14443
  const o = Ce({}, n, gs);
14443
- return o.content ? k0(o.content, s, e.payloadForViz, i) : "";
14444
+ return o.content ? kw(o.content, s, e.payloadForViz, i) : "";
14444
14445
  }, [n, s, e.payloadForViz]);
14445
14446
  return a ? /* @__PURE__ */ r.jsx(ls, { value: a, styles: {
14446
14447
  root: {
@@ -14452,7 +14453,7 @@ const T0 = k(({
14452
14453
  }
14453
14454
  } }) : null;
14454
14455
  });
14455
- function I0() {
14456
+ function Iw() {
14456
14457
  const {
14457
14458
  editor: t
14458
14459
  } = ep();
@@ -14541,14 +14542,14 @@ const ta = de(({
14541
14542
  /* @__PURE__ */ r.jsx(X.AlignJustify, {}),
14542
14543
  /* @__PURE__ */ r.jsx(X.AlignRight, {})
14543
14544
  ] }),
14544
- /* @__PURE__ */ r.jsx(X.ControlsGroup, { children: /* @__PURE__ */ r.jsx(I0, {}) }),
14545
+ /* @__PURE__ */ r.jsx(X.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Iw, {}) }),
14545
14546
  /* @__PURE__ */ r.jsx(Bg, { editor: c })
14546
14547
  ] }),
14547
14548
  /* @__PURE__ */ r.jsx(X.Content, {})
14548
14549
  ] })
14549
14550
  ] }) : null;
14550
14551
  });
14551
- function D0({
14552
+ function Dw({
14552
14553
  context: t
14553
14554
  }) {
14554
14555
  const {
@@ -14596,7 +14597,7 @@ function D0({
14596
14597
  ) })
14597
14598
  ] }) });
14598
14599
  }
14599
- class z0 extends we {
14600
+ class zw extends we {
14600
14601
  constructor() {
14601
14602
  super(...arguments);
14602
14603
  O(this, "VERSION", 1);
@@ -14611,13 +14612,13 @@ class z0 extends we {
14611
14612
  }));
14612
14613
  }
14613
14614
  }
14614
- const L0 = {
14615
+ const Lw = {
14615
14616
  displayName: "Rich Text",
14616
14617
  displayGroup: "Others",
14617
- migrator: new z0(),
14618
+ migrator: new zw(),
14618
14619
  name: "richText",
14619
- viewRender: T0,
14620
- configRender: D0,
14620
+ viewRender: Tw,
14621
+ configRender: Dw,
14621
14622
  createConfig() {
14622
14623
  return {
14623
14624
  version: 1,
@@ -14637,8 +14638,8 @@ const L0 = {
14637
14638
  }, Kc = {
14638
14639
  id: "builtin:echarts:click-scatter-chart:series",
14639
14640
  displayName: "Click Scatter",
14640
- nameRender: A0,
14641
- configRender: M0,
14641
+ nameRender: Aw,
14642
+ configRender: Mw,
14642
14643
  payload: [{
14643
14644
  name: "seriesType",
14644
14645
  description: "'scatter'",
@@ -14665,10 +14666,10 @@ const L0 = {
14665
14666
  valueType: "object"
14666
14667
  }]
14667
14668
  };
14668
- function M0(t) {
14669
+ function Mw(t) {
14669
14670
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
14670
14671
  }
14671
- function A0(t) {
14672
+ function Aw(t) {
14672
14673
  return /* @__PURE__ */ r.jsx(j, { children: "Click scatter" });
14673
14674
  }
14674
14675
  const Yc = {
@@ -14723,7 +14724,7 @@ const Yc = {
14723
14724
  reference_areas: [],
14724
14725
  dataZoom: qn
14725
14726
  };
14726
- function R0(t, e) {
14727
+ function Rw(t, e) {
14727
14728
  if (!t.x_axis.data_key)
14728
14729
  return [];
14729
14730
  const n = F(t.x_axis.data_key);
@@ -14731,7 +14732,7 @@ function R0(t, e) {
14731
14732
  source: e[n.queryID]
14732
14733
  }];
14733
14734
  }
14734
- function E0(t) {
14735
+ function Ew(t) {
14735
14736
  const e = t.y_axes.some((i) => !!i.name);
14736
14737
  let n = 15;
14737
14738
  e && (n += 20), t.dataZoom.x_axis_slider && (n += 20);
@@ -14741,7 +14742,7 @@ function E0(t) {
14741
14742
  bottom: s
14742
14743
  };
14743
14744
  }
14744
- function F0() {
14745
+ function Fw() {
14745
14746
  return {
14746
14747
  show: !1,
14747
14748
  bottom: 0,
@@ -14753,7 +14754,7 @@ function kr(t, e) {
14753
14754
  if (t)
14754
14755
  return e[t] ?? void 0;
14755
14756
  }
14756
- function $0({
14757
+ function $w({
14757
14758
  reference_areas: t,
14758
14759
  variableValueMap: e
14759
14760
  }) {
@@ -14778,7 +14779,7 @@ function $0({
14778
14779
  }
14779
14780
  };
14780
14781
  }
14781
- function P0({
14782
+ function Pw({
14782
14783
  type: t,
14783
14784
  ...e
14784
14785
  }, n) {
@@ -14809,7 +14810,7 @@ function P0({
14809
14810
  }
14810
14811
  };
14811
14812
  }
14812
- function O0({
14813
+ function Ow({
14813
14814
  type: t,
14814
14815
  ...e
14815
14816
  }, n) {
@@ -14840,7 +14841,7 @@ function O0({
14840
14841
  }
14841
14842
  };
14842
14843
  }
14843
- function V0(t, e, n, s) {
14844
+ function Vw(t, e, n, s) {
14844
14845
  return t.map((i) => {
14845
14846
  const a = i.orientation === "horizontal", o = a ? "yAxis" : "xAxis", l = a ? "insideEndTop" : "end";
14846
14847
  return {
@@ -14868,7 +14869,7 @@ function V0(t, e, n, s) {
14868
14869
  };
14869
14870
  });
14870
14871
  }
14871
- function N0({
14872
+ function Nw({
14872
14873
  x_axis: t,
14873
14874
  scatter: e
14874
14875
  }, n) {
@@ -14888,17 +14889,17 @@ function N0({
14888
14889
  yAxisIndex: 0,
14889
14890
  datasetIndex: 0,
14890
14891
  itemStyle: {
14891
- color: O0(e.color, n)
14892
+ color: Ow(e.color, n)
14892
14893
  },
14893
- symbolSize: P0(e.symbolSize, n),
14894
+ symbolSize: Pw(e.symbolSize, n),
14894
14895
  encode: {
14895
14896
  x: s.columnKey,
14896
14897
  y: i.columnKey
14897
14898
  }
14898
14899
  };
14899
14900
  }
14900
- function B0(t, e, n, s) {
14901
- return [N0(t, s)].concat(V0(t.reference_lines, n, s, e)).concat($0({
14901
+ function Bw(t, e, n, s) {
14902
+ return [Nw(t, s)].concat(Vw(t.reference_lines, n, s, e)).concat($w({
14902
14903
  reference_areas: t.reference_areas,
14903
14904
  variableValueMap: s
14904
14905
  }));
@@ -14923,7 +14924,7 @@ function ko(t, e, n) {
14923
14924
  } = n;
14924
14925
  return s.axisLabel.formatter.enabled ? Jc(s.axisLabel.formatter)(t, e) : t;
14925
14926
  }
14926
- function q0(t, e) {
14927
+ function qw(t, e) {
14927
14928
  const {
14928
14929
  x_axis: n,
14929
14930
  tooltip: s
@@ -14941,7 +14942,7 @@ function q0(t, e) {
14941
14942
  } = i;
14942
14943
  return ko(a, o, e);
14943
14944
  }
14944
- const W0 = (t) => {
14945
+ const Ww = (t) => {
14945
14946
  try {
14946
14947
  return Y(t).format({
14947
14948
  trimMantissa: !0,
@@ -14951,7 +14952,7 @@ const W0 = (t) => {
14951
14952
  return t;
14952
14953
  }
14953
14954
  };
14954
- function G0(t, e) {
14955
+ function Gw(t, e) {
14955
14956
  const {
14956
14957
  scatter: n,
14957
14958
  tooltip: s
@@ -14963,7 +14964,7 @@ function G0(t, e) {
14963
14964
  const a = e[0] ?? e.default, o = Array.isArray(i) ? i : [i];
14964
14965
  if (o.length === 0)
14965
14966
  return "";
14966
- const l = q0(o, t), c = zt(t.scatter.label_overflow.tooltip), d = o.map(
14967
+ const l = qw(o, t), c = zt(t.scatter.label_overflow.tooltip), d = o.map(
14967
14968
  // @ts-expect-error type of value
14968
14969
  ({
14969
14970
  value: x
@@ -14989,7 +14990,7 @@ function G0(t, e) {
14989
14990
  <th style="text-align: right;">${x.name}</th>
14990
14991
  ${o.map(({
14991
14992
  value: y
14992
- }) => `<td style="text-align: right; padding: 0 1em;">${W0(zr(y, x.data_key))}</td>`).join("")}
14993
+ }) => `<td style="text-align: right; padding: 0 1em;">${Ww(zr(y, x.data_key))}</td>`).join("")}
14993
14994
  </tr>`);
14994
14995
  return h.push(...u), `
14995
14996
  <table style="width: auto">
@@ -15000,13 +15001,14 @@ function G0(t, e) {
15000
15001
  }
15001
15002
  };
15002
15003
  }
15003
- function Q0(t, e) {
15004
- const n = e.every((i) => !Number.isNaN(Number(i))), {
15004
+ function Qw(t, e) {
15005
+ const n = e.every((a) => !Number.isNaN(Number(a))), {
15005
15006
  axisLabel: s
15006
- } = t.x_axis;
15007
+ } = t.x_axis, i = e.length === 0;
15007
15008
  return [{
15008
15009
  data: e,
15009
15010
  name: t.x_axis.name ?? "",
15011
+ nameGap: i ? 5 : void 0,
15010
15012
  id: "main-x-axis",
15011
15013
  axisTick: {
15012
15014
  show: !0,
@@ -15019,7 +15021,7 @@ function Q0(t, e) {
15019
15021
  }
15020
15022
  }];
15021
15023
  }
15022
- function H0(t, e) {
15024
+ function Hw(t, e) {
15023
15025
  return t.y_axes.map(({
15024
15026
  nameAlignment: n,
15025
15027
  min: s,
@@ -15052,7 +15054,7 @@ function H0(t, e) {
15052
15054
  };
15053
15055
  });
15054
15056
  }
15055
- const U0 = {
15057
+ const Uw = {
15056
15058
  xAxis: [{
15057
15059
  type: "category",
15058
15060
  nameGap: 25,
@@ -15076,7 +15078,7 @@ const U0 = {
15076
15078
  containLabel: !0
15077
15079
  }
15078
15080
  };
15079
- function K0(t, e, n) {
15081
+ function Kw(t, e, n) {
15080
15082
  const s = n.reduce((c, d) => {
15081
15083
  const h = Yt(d, e);
15082
15084
  return c[d.name] = ft(d, h), c;
@@ -15095,23 +15097,23 @@ function K0(t, e, n) {
15095
15097
  default: ({
15096
15098
  value: c
15097
15099
  }) => c
15098
- }), a = w.uniq(Wt(e, t.x_axis.data_key)), o = B0(t, e, n, s), l = {
15099
- xAxis: Q0(t, a),
15100
- yAxis: H0(t, i),
15100
+ }), a = w.uniq(Wt(e, t.x_axis.data_key)), o = Bw(t, e, n, s), l = {
15101
+ xAxis: Qw(t, a),
15102
+ yAxis: Hw(t, i),
15101
15103
  series: o,
15102
- dataset: R0(t, e),
15103
- tooltip: G0(t, i),
15104
- grid: E0(t),
15105
- legend: F0(),
15104
+ dataset: Rw(t, e),
15105
+ tooltip: Gw(t, i),
15106
+ grid: Ew(t),
15107
+ legend: Fw(),
15106
15108
  dataZoom: Gi(t.dataZoom)
15107
15109
  };
15108
- return fe({}, l, U0);
15110
+ return fe({}, l, Uw);
15109
15111
  }
15110
15112
  ae.use([Mt, On, Vn, Zr, at, ot, lt, Ue, Xr, gi]);
15111
15113
  function To(t) {
15112
15114
  return t.trim().length > 0;
15113
15115
  }
15114
- function Y0({
15116
+ function Yw({
15115
15117
  conf: t,
15116
15118
  data: e,
15117
15119
  width: n,
@@ -15129,13 +15131,13 @@ function Y0({
15129
15131
  });
15130
15132
  }, [o, l, i]), d = T(() => ({
15131
15133
  click: c
15132
- }), [c]), h = M.useMemo(() => K0(t, e, a), [t, e]);
15134
+ }), [c]), h = M.useMemo(() => Kw(t, e, a), [t, e]);
15133
15135
  return /* @__PURE__ */ r.jsx(He, { echarts: ae, option: h, style: {
15134
15136
  width: n,
15135
15137
  height: s
15136
15138
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
15137
15139
  }
15138
- function X0({
15140
+ function Xw({
15139
15141
  context: t,
15140
15142
  instance: e
15141
15143
  }) {
@@ -15170,13 +15172,13 @@ function X0({
15170
15172
  /* @__PURE__ */ r.jsx(j, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
15171
15173
  display: To(a.stats.templates.top) ? "block" : "none"
15172
15174
  }, children: Object.values(x.top).map((S) => S) }),
15173
- /* @__PURE__ */ r.jsx(Y0, { variables: i, width: _t(l), height: y, data: o, conf: a, interactionManager: n }),
15175
+ /* @__PURE__ */ r.jsx(Yw, { variables: i, width: _t(l), height: y, data: o, conf: a, interactionManager: n }),
15174
15176
  /* @__PURE__ */ r.jsx(j, { ref: u, align: "left", size: "xs", pl: "sm", sx: {
15175
15177
  display: To(a.stats.templates.bottom) ? "block" : "none"
15176
15178
  }, children: Object.values(x.bottom).map((S) => S) })
15177
15179
  ] });
15178
15180
  }
15179
- const J0 = de(({
15181
+ const Jw = de(({
15180
15182
  value: t,
15181
15183
  onChange: e,
15182
15184
  xAxisOptions: n,
@@ -15223,7 +15225,7 @@ const J0 = de(({
15223
15225
  ] })
15224
15226
  ] });
15225
15227
  });
15226
- function Z0() {
15228
+ function Zw() {
15227
15229
  const t = (/* @__PURE__ */ new Date()).getTime().toString();
15228
15230
  return {
15229
15231
  id: t,
@@ -15265,7 +15267,7 @@ function e_({
15265
15267
  ...p,
15266
15268
  ...o[x]
15267
15269
  })), c = () => {
15268
- const p = Z0();
15270
+ const p = Zw();
15269
15271
  i(p);
15270
15272
  }, d = T(() => n.map((p) => ({
15271
15273
  label: p.name,
@@ -15292,7 +15294,7 @@ function e_({
15292
15294
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(g, { name: `reference_areas.${x}`, control: t, render: ({
15293
15295
  field: y
15294
15296
  }) => /* @__PURE__ */ r.jsxs(_, { children: [
15295
- /* @__PURE__ */ r.jsx(J0, { variableOptions: d, yAxisOptions: u, ...y }),
15297
+ /* @__PURE__ */ r.jsx(Jw, { variableOptions: d, yAxisOptions: u, ...y }),
15296
15298
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed" }),
15297
15299
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(en, { size: 16 }), color: "red", variant: "light", onClick: () => a(x), children: "Delete this Reference Area" })
15298
15300
  ] }) }) }, p.id))
@@ -16374,7 +16376,7 @@ const B_ = {
16374
16376
  displayGroup: "ECharts-based charts",
16375
16377
  migrator: new N_(),
16376
16378
  name: "scatterChart",
16377
- viewRender: X0,
16379
+ viewRender: Xw,
16378
16380
  configRender: R_,
16379
16381
  createConfig() {
16380
16382
  return {
@@ -22280,7 +22282,7 @@ const pT = {
22280
22282
  id: "dashboard",
22281
22283
  version: Ql,
22282
22284
  manifest: {
22283
- viz: [ii, eC, CS, L0, wC, ww, H1, rm, Eb, Hj, zv, o1, cw, Cj, B_, Hw, w0, MS, Sk, pT, Ok, Kb],
22285
+ viz: [ii, eC, CS, Lw, wC, w0, H1, rm, Eb, Hj, zv, o1, c0, Cj, B_, H0, ww, MS, Sk, pT, Ok, Kb],
22284
22286
  color: [...xT, ...mT]
22285
22287
  }
22286
22288
  }), Kn = new Gx(), De = {