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