@devtable/dashboard 14.16.0 → 14.16.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.
@@ -2442,7 +2442,7 @@ function im() {
2442
2442
  } = $.useContext(Xl);
2443
2443
  return e ? document.getElementById(e) : null;
2444
2444
  }
2445
- const Jl = "14.16.0", om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2445
+ const Jl = "14.16.1", om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2446
2446
  __proto__: null,
2447
2447
  version: Jl
2448
2448
  }, Symbol.toStringTag, { value: "Module" }));
@@ -13869,14 +13869,14 @@ const Zv = {
13869
13869
  }
13870
13870
  }
13871
13871
  }
13872
- }, e0 = [{
13872
+ }, e1 = [{
13873
13873
  lang: "en",
13874
13874
  resources: Zv
13875
13875
  }, {
13876
13876
  lang: "zh",
13877
13877
  resources: Jv
13878
13878
  }];
13879
- function t0(e) {
13879
+ function t1(e) {
13880
13880
  const {
13881
13881
  color_field: t = "",
13882
13882
  ...n
@@ -13886,7 +13886,7 @@ function t0(e) {
13886
13886
  color_field: t
13887
13887
  };
13888
13888
  }
13889
- function n0(e, {
13889
+ function n1(e, {
13890
13890
  panelModel: t
13891
13891
  }) {
13892
13892
  try {
@@ -13907,7 +13907,7 @@ function n0(e, {
13907
13907
  throw console.error("[Migration failed]", n), n;
13908
13908
  }
13909
13909
  }
13910
- function r0(e) {
13910
+ function r1(e) {
13911
13911
  const {
13912
13912
  radius: t = ["50%", "80%"],
13913
13913
  ...n
@@ -13917,7 +13917,7 @@ function r0(e) {
13917
13917
  radius: t
13918
13918
  };
13919
13919
  }
13920
- function a0(e) {
13920
+ function a1(e) {
13921
13921
  const {
13922
13922
  color: t = {
13923
13923
  map: []
@@ -13932,7 +13932,7 @@ function a0(e) {
13932
13932
  }
13933
13933
  };
13934
13934
  }
13935
- function i0(e) {
13935
+ function i1(e) {
13936
13936
  const {
13937
13937
  series_order: t = Br(),
13938
13938
  ...n
@@ -13942,7 +13942,7 @@ function i0(e) {
13942
13942
  series_order: t
13943
13943
  };
13944
13944
  }
13945
- class o0 extends Se {
13945
+ class o1 extends Se {
13946
13946
  constructor() {
13947
13947
  super(...arguments);
13948
13948
  j(this, "VERSION", 6);
@@ -13954,30 +13954,30 @@ class o0 extends Se {
13954
13954
  })), this.version(2, (n) => ({
13955
13955
  ...n,
13956
13956
  version: 2,
13957
- config: t0(n.config)
13957
+ config: t1(n.config)
13958
13958
  })), this.version(3, (n, a) => ({
13959
13959
  ...n,
13960
13960
  version: 3,
13961
- config: n0(n.config, a)
13961
+ config: n1(n.config, a)
13962
13962
  })), this.version(4, (n) => ({
13963
13963
  ...n,
13964
13964
  version: 4,
13965
- config: r0(n.config)
13965
+ config: r1(n.config)
13966
13966
  })), this.version(5, (n) => ({
13967
13967
  ...n,
13968
13968
  version: 5,
13969
- config: a0(n.config)
13969
+ config: a1(n.config)
13970
13970
  })), this.version(6, (n) => ({
13971
13971
  ...n,
13972
13972
  version: 6,
13973
- config: i0(n.config)
13973
+ config: i1(n.config)
13974
13974
  }));
13975
13975
  }
13976
13976
  }
13977
- const l0 = {
13977
+ const l1 = {
13978
13978
  displayName: "viz.pie_chart.viz_name",
13979
13979
  displayGroup: "chart.groups.echarts_based_charts",
13980
- migrator: new o0(),
13980
+ migrator: new o1(),
13981
13981
  name: "pie",
13982
13982
  viewRender: Fv,
13983
13983
  configRender: Xv,
@@ -13988,12 +13988,12 @@ const l0 = {
13988
13988
  };
13989
13989
  },
13990
13990
  triggers: [nc],
13991
- translation: e0
13991
+ translation: e1
13992
13992
  };
13993
- function s0(e) {
13993
+ function s1(e) {
13994
13994
  return /* @__PURE__ */ r(F, {});
13995
13995
  }
13996
- function c0(e) {
13996
+ function c1(e) {
13997
13997
  const {
13998
13998
  t
13999
13999
  } = x();
@@ -14002,8 +14002,8 @@ function c0(e) {
14002
14002
  const ac = {
14003
14003
  id: "builtin:echarts:click-radar-chart:series",
14004
14004
  displayName: "viz.radar_chart.click_series.label",
14005
- nameRender: c0,
14006
- configRender: s0,
14005
+ nameRender: c1,
14006
+ configRender: s1,
14007
14007
  payload: [{
14008
14008
  name: "seriesType",
14009
14009
  description: "'radar'",
@@ -14066,14 +14066,14 @@ function lc(e, t) {
14066
14066
  return e[a.columnKey];
14067
14067
  });
14068
14068
  }
14069
- function d0(e, t, n) {
14069
+ function d1(e, t, n) {
14070
14070
  const a = B(t);
14071
14071
  return e[a.queryID].map((i) => ({
14072
14072
  value: lc(i, n),
14073
14073
  name: i[a.columnKey]
14074
14074
  }));
14075
14075
  }
14076
- function u0(e, t) {
14076
+ function u1(e, t) {
14077
14077
  const {
14078
14078
  series_name_key: n,
14079
14079
  dimensions: a
@@ -14081,7 +14081,7 @@ function u0(e, t) {
14081
14081
  return [{
14082
14082
  type: "radar",
14083
14083
  name: "main-radar",
14084
- data: d0(e, n, a),
14084
+ data: d1(e, n, a),
14085
14085
  symbolSize: 4,
14086
14086
  lineStyle: {
14087
14087
  width: 1
@@ -14097,7 +14097,7 @@ function u0(e, t) {
14097
14097
  label: oc(t)
14098
14098
  }];
14099
14099
  }
14100
- function h0(e, t) {
14100
+ function h1(e, t) {
14101
14101
  const {
14102
14102
  additional_series: n,
14103
14103
  dimensions: a
@@ -14133,10 +14133,10 @@ function h0(e, t) {
14133
14133
  };
14134
14134
  }).flat();
14135
14135
  }
14136
- function p0(e, t) {
14137
- return [...u0(e, t), ...h0(e, t)];
14136
+ function p1(e, t) {
14137
+ return [...u1(e, t), ...h1(e, t)];
14138
14138
  }
14139
- function m0(e) {
14139
+ function m1(e) {
14140
14140
  return ({
14141
14141
  name: t,
14142
14142
  marker: n,
@@ -14179,7 +14179,7 @@ function m0(e) {
14179
14179
  `;
14180
14180
  };
14181
14181
  }
14182
- const g0 = {
14182
+ const g1 = {
14183
14183
  legend: {
14184
14184
  show: !0,
14185
14185
  bottom: 0,
@@ -14188,8 +14188,8 @@ const g0 = {
14188
14188
  tooltip: {
14189
14189
  trigger: "item"
14190
14190
  }
14191
- }, f0 = ["#66B4DB", "#39BFA2", "#E46464", "#33A678", "#EEBA00", "#9D88CB", "#939943", "#E49792", "#09A2B8", "#AF5F6B", "#6CA157", "#09A2B8", "#6398C7", "#E692BA", "#97B566", "#8CACE2", "#CA79AC", "#6DBC80", "#B08F4B", "#826BAF"];
14192
- function b0(e, t) {
14191
+ }, f1 = ["#66B4DB", "#39BFA2", "#E46464", "#33A678", "#EEBA00", "#9D88CB", "#939943", "#E49792", "#09A2B8", "#AF5F6B", "#6CA157", "#09A2B8", "#6398C7", "#E692BA", "#97B566", "#8CACE2", "#CA79AC", "#6DBC80", "#B08F4B", "#826BAF"];
14192
+ function b1(e, t) {
14193
14193
  const {
14194
14194
  series_name_key: n,
14195
14195
  dimensions: a,
@@ -14212,7 +14212,7 @@ function b0(e, t) {
14212
14212
  },
14213
14213
  tooltip: pe.getTooltip({
14214
14214
  backgroundColor: "rgba(255,255,255,0.6)",
14215
- formatter: m0(e)
14215
+ formatter: m1(e)
14216
14216
  }),
14217
14217
  legend: {
14218
14218
  show: !0,
@@ -14220,12 +14220,12 @@ function b0(e, t) {
14220
14220
  left: "center",
14221
14221
  type: "scroll"
14222
14222
  },
14223
- series: p0(t, e),
14224
- color: f0
14223
+ series: p1(t, e),
14224
+ color: f1
14225
14225
  };
14226
- return C.merge({}, g0, l);
14226
+ return C.merge({}, g1, l);
14227
14227
  }
14228
- function y0({
14228
+ function y1({
14229
14229
  conf: e,
14230
14230
  data: t,
14231
14231
  width: n,
@@ -14266,13 +14266,13 @@ function y0({
14266
14266
  }, [s, c, i]), g = z(() => ({
14267
14267
  click: p,
14268
14268
  finished: h
14269
- }), [p]), y = z(() => b0(Ge({}, e, Qr), t), [e, t]);
14269
+ }), [p]), y = z(() => b1(Ge({}, e, Qr), t), [e, t]);
14270
14270
  return !n || !a ? null : /* @__PURE__ */ r(He, { echarts: Be, option: y, ref: d, style: {
14271
14271
  width: n,
14272
14272
  height: a
14273
14273
  }, onEvents: g, notMerge: !0, theme: "merico-light" });
14274
14274
  }
14275
- function _0({
14275
+ function _1({
14276
14276
  context: e,
14277
14277
  instance: t
14278
14278
  }) {
@@ -14287,9 +14287,9 @@ function _0({
14287
14287
  width: s,
14288
14288
  height: c
14289
14289
  } = e.viewport;
14290
- return !s || !c || !o || tl(o == null ? void 0 : o.dimensions) ? null : /* @__PURE__ */ r(nt, { width: s, height: c, children: /* @__PURE__ */ r(y0, { instance: t, variables: i, width: St(s), height: Ct(c), data: l, conf: o, interactionManager: n }) });
14290
+ return !s || !c || !o || tl(o == null ? void 0 : o.dimensions) ? null : /* @__PURE__ */ r(nt, { width: s, height: c, children: /* @__PURE__ */ r(y1, { instance: t, variables: i, width: St(s), height: Ct(c), data: l, conf: o, interactionManager: n }) });
14291
14291
  }
14292
- function x0({
14292
+ function x1({
14293
14293
  control: e,
14294
14294
  index: t
14295
14295
  }) {
@@ -14312,7 +14312,7 @@ function x0({
14312
14312
  }, ...a }) }) })
14313
14313
  ] });
14314
14314
  }
14315
- function v0({
14315
+ function v1({
14316
14316
  control: e,
14317
14317
  watch: t
14318
14318
  }) {
@@ -14332,10 +14332,10 @@ function v0({
14332
14332
  /* @__PURE__ */ r(fe, { control: e, watch: t, name: "additional_series", getItem: a, addButtonText: n("viz.radar_chart.additional_series.add"), deleteButtonText: n("viz.radar_chart.additional_series.delete"), renderTabName: i, children: ({
14333
14333
  field: o,
14334
14334
  index: l
14335
- }) => /* @__PURE__ */ r(x0, { control: e, index: l }) })
14335
+ }) => /* @__PURE__ */ r(x1, { control: e, index: l }) })
14336
14336
  ] });
14337
14337
  }
14338
- function w0({
14338
+ function w1({
14339
14339
  control: e,
14340
14340
  index: t
14341
14341
  }) {
@@ -14380,7 +14380,7 @@ function w0({
14380
14380
  ] })
14381
14381
  ] });
14382
14382
  }
14383
- function S0({
14383
+ function S1({
14384
14384
  control: e,
14385
14385
  watch: t
14386
14386
  }) {
@@ -14402,9 +14402,9 @@ function S0({
14402
14402
  return /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(fe, { control: e, watch: t, name: "dimensions", getItem: a, addButtonText: n("viz.radar_chart.metric.add"), deleteButtonText: n("viz.radar_chart.metric.delete"), renderTabName: i, children: ({
14403
14403
  field: o,
14404
14404
  index: l
14405
- }) => /* @__PURE__ */ r(w0, { control: e, index: l }) }) });
14405
+ }) => /* @__PURE__ */ r(w1, { control: e, index: l }) }) });
14406
14406
  }
14407
- function C0({
14407
+ function C1({
14408
14408
  context: e
14409
14409
  }) {
14410
14410
  const {
@@ -14438,7 +14438,7 @@ function C0({
14438
14438
  }) => /* @__PURE__ */ r(K, { label: t("viz.radar_chart.series.series_name_field"), required: !0, sx: {
14439
14439
  flex: 1
14440
14440
  }, ...h }) }) }),
14441
- /* @__PURE__ */ r(S.Panel, { value: "metrics", p: "md", children: /* @__PURE__ */ r(S0, { control: o, watch: s }) }),
14441
+ /* @__PURE__ */ r(S.Panel, { value: "metrics", p: "md", children: /* @__PURE__ */ r(S1, { control: o, watch: s }) }),
14442
14442
  /* @__PURE__ */ r(S.Panel, { value: "style", p: "md", children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
14443
14443
  /* @__PURE__ */ r(f, { name: "background.enabled", control: o, render: ({
14444
14444
  field: h
@@ -14447,11 +14447,11 @@ function C0({
14447
14447
  field: h
14448
14448
  }) => /* @__PURE__ */ r(te, { label: t("viz.radar_chart.style.show_value_label"), checked: h.value, onChange: (p) => h.onChange(p.currentTarget.checked) }) })
14449
14449
  ] }) }),
14450
- /* @__PURE__ */ r(S.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ r(v0, { control: o, watch: s }) })
14450
+ /* @__PURE__ */ r(S.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ r(v1, { control: o, watch: s }) })
14451
14451
  ] })
14452
14452
  ] }) });
14453
14453
  }
14454
- const k0 = {
14454
+ const k1 = {
14455
14455
  radar_chart: {
14456
14456
  viz_name: "Radar Chart",
14457
14457
  series: {
@@ -14478,7 +14478,7 @@ const k0 = {
14478
14478
  label: "Click radar chart series"
14479
14479
  }
14480
14480
  }
14481
- }, z0 = {
14481
+ }, z1 = {
14482
14482
  radar_chart: {
14483
14483
  viz_name: "雷达图",
14484
14484
  series: {
@@ -14505,14 +14505,14 @@ const k0 = {
14505
14505
  label: "点击雷达系列"
14506
14506
  }
14507
14507
  }
14508
- }, T0 = [{
14508
+ }, T1 = [{
14509
14509
  lang: "en",
14510
- resources: k0
14510
+ resources: k1
14511
14511
  }, {
14512
14512
  lang: "zh",
14513
- resources: z0
14513
+ resources: z1
14514
14514
  }];
14515
- function D0(e) {
14515
+ function D1(e) {
14516
14516
  const {
14517
14517
  dimensions: t = [],
14518
14518
  ...n
@@ -14535,7 +14535,7 @@ function D0(e) {
14535
14535
  dimensions: t.map(a)
14536
14536
  };
14537
14537
  }
14538
- function I0(e) {
14538
+ function I1(e) {
14539
14539
  const {
14540
14540
  dimensions: t = [],
14541
14541
  ...n
@@ -14548,7 +14548,7 @@ function I0(e) {
14548
14548
  }))
14549
14549
  };
14550
14550
  }
14551
- function M0(e) {
14551
+ function M1(e) {
14552
14552
  const t = {
14553
14553
  background: {
14554
14554
  enabled: !0
@@ -14559,7 +14559,7 @@ function M0(e) {
14559
14559
  };
14560
14560
  return C.defaultsDeep(t, e);
14561
14561
  }
14562
- function L0(e, {
14562
+ function L1(e, {
14563
14563
  panelModel: t
14564
14564
  }) {
14565
14565
  try {
@@ -14583,13 +14583,13 @@ function L0(e, {
14583
14583
  throw console.error("[Migration failed]", n), n;
14584
14584
  }
14585
14585
  }
14586
- function A0(e) {
14586
+ function A1(e) {
14587
14587
  const t = {
14588
14588
  additional_series: []
14589
14589
  };
14590
14590
  return C.defaultsDeep(t, e);
14591
14591
  }
14592
- function V0(e) {
14592
+ function V1(e) {
14593
14593
  const t = {
14594
14594
  ...e,
14595
14595
  dimensions: e.dimensions.map((n) => ({
@@ -14599,7 +14599,7 @@ function V0(e) {
14599
14599
  };
14600
14600
  return delete t.additionalSeries, t;
14601
14601
  }
14602
- class $0 extends Se {
14602
+ class $1 extends Se {
14603
14603
  constructor() {
14604
14604
  super(...arguments);
14605
14605
  j(this, "VERSION", 7);
@@ -14615,7 +14615,7 @@ class $0 extends Se {
14615
14615
  return {
14616
14616
  ...n,
14617
14617
  version: 2,
14618
- config: D0(a)
14618
+ config: D1(a)
14619
14619
  };
14620
14620
  }), this.version(3, (n) => {
14621
14621
  const {
@@ -14624,7 +14624,7 @@ class $0 extends Se {
14624
14624
  return {
14625
14625
  ...n,
14626
14626
  version: 3,
14627
- config: I0(a)
14627
+ config: I1(a)
14628
14628
  };
14629
14629
  }), this.version(4, (n) => {
14630
14630
  const {
@@ -14633,7 +14633,7 @@ class $0 extends Se {
14633
14633
  return {
14634
14634
  ...n,
14635
14635
  version: 4,
14636
- config: M0(a)
14636
+ config: M1(a)
14637
14637
  };
14638
14638
  }), this.version(5, (n, a) => {
14639
14639
  const {
@@ -14642,7 +14642,7 @@ class $0 extends Se {
14642
14642
  return {
14643
14643
  ...n,
14644
14644
  version: 5,
14645
- config: L0(i, a)
14645
+ config: L1(i, a)
14646
14646
  };
14647
14647
  }), this.version(6, (n) => {
14648
14648
  const {
@@ -14651,7 +14651,7 @@ class $0 extends Se {
14651
14651
  return {
14652
14652
  ...n,
14653
14653
  version: 6,
14654
- config: A0(a)
14654
+ config: A1(a)
14655
14655
  };
14656
14656
  }), this.version(7, (n) => {
14657
14657
  const {
@@ -14660,26 +14660,26 @@ class $0 extends Se {
14660
14660
  return {
14661
14661
  ...n,
14662
14662
  version: 7,
14663
- config: V0(a)
14663
+ config: V1(a)
14664
14664
  };
14665
14665
  });
14666
14666
  }
14667
14667
  }
14668
- const P0 = {
14668
+ const P1 = {
14669
14669
  displayName: "viz.radar_chart.viz_name",
14670
14670
  displayGroup: "chart.groups.echarts_based_charts",
14671
- migrator: new $0(),
14671
+ migrator: new $1(),
14672
14672
  name: "radar",
14673
- viewRender: _0,
14674
- configRender: C0,
14673
+ viewRender: _1,
14674
+ configRender: C1,
14675
14675
  createConfig: () => ({
14676
14676
  version: 7,
14677
14677
  config: Qr
14678
14678
  }),
14679
14679
  triggers: [ac],
14680
- translation: T0
14680
+ translation: T1
14681
14681
  };
14682
- function R0(e, t) {
14682
+ function R1(e, t) {
14683
14683
  const {
14684
14684
  plot: n,
14685
14685
  transform: a
@@ -14705,7 +14705,7 @@ function sc(e, t) {
14705
14705
  const n = B(e.x_axis.data_key), a = B(e.regression.y_axis_data_key);
14706
14706
  return C.uniqBy(t.map((i) => [i[n.columnKey], i[a.columnKey]]), 0);
14707
14707
  }
14708
- function E0(e, t) {
14708
+ function E1(e, t) {
14709
14709
  const {
14710
14710
  plot: n,
14711
14711
  transform: a
@@ -14726,7 +14726,7 @@ function E0(e, t) {
14726
14726
  }
14727
14727
  }];
14728
14728
  }
14729
- function O0(e, t) {
14729
+ function O1(e, t) {
14730
14730
  const {
14731
14731
  plot: n,
14732
14732
  transform: a,
@@ -14749,15 +14749,15 @@ function O0(e, t) {
14749
14749
  };
14750
14750
  });
14751
14751
  }
14752
- function q0(e, t) {
14752
+ function q1(e, t) {
14753
14753
  if (t.length === 0)
14754
14754
  return [];
14755
14755
  const {
14756
14756
  group_by_key: n
14757
14757
  } = e.regression;
14758
- return n ? O0(e, t) : E0(e, t);
14758
+ return n ? O1(e, t) : E1(e, t);
14759
14759
  }
14760
- function F0(e) {
14760
+ function F1(e) {
14761
14761
  return Array.isArray(e) || (e = [e]), e.map((t) => ({
14762
14762
  marker: t.marker,
14763
14763
  label: t.seriesName,
@@ -14765,11 +14765,11 @@ function F0(e) {
14765
14765
  y: t.value[1]
14766
14766
  }));
14767
14767
  }
14768
- function N0(e) {
14768
+ function N1(e) {
14769
14769
  return pe.getTooltip({
14770
14770
  trigger: "axis",
14771
14771
  formatter: (t) => {
14772
- const n = F0(t);
14772
+ const n = F1(t);
14773
14773
  return n.length === 0 ? "" : `
14774
14774
  <table style="width: auto">
14775
14775
  <thead>
@@ -14800,7 +14800,7 @@ function N0(e) {
14800
14800
  }
14801
14801
  });
14802
14802
  }
14803
- function B0(e) {
14803
+ function B1(e) {
14804
14804
  const {
14805
14805
  overflow: t,
14806
14806
  format: n,
@@ -14826,7 +14826,7 @@ function B0(e) {
14826
14826
  }
14827
14827
  });
14828
14828
  }
14829
- const j0 = {
14829
+ const j1 = {
14830
14830
  tooltip: {
14831
14831
  trigger: "axis"
14832
14832
  },
@@ -14845,9 +14845,9 @@ const j0 = {
14845
14845
  yAxisIndex: [0]
14846
14846
  }]
14847
14847
  };
14848
- function Q0(e, t) {
14849
- const n = q0(e, t), a = R0(e, n), i = {
14850
- xAxis: B0(e),
14848
+ function Q1(e, t) {
14849
+ const n = q1(e, t), a = R1(e, n), i = {
14850
+ xAxis: B1(e),
14851
14851
  yAxis: pe.getYAxis({
14852
14852
  name: e.y_axis.name ?? "",
14853
14853
  nameLocation: "end",
@@ -14857,7 +14857,7 @@ function Q0(e, t) {
14857
14857
  nameGap: 5
14858
14858
  }),
14859
14859
  series: [...n, ...a],
14860
- tooltip: N0(e),
14860
+ tooltip: N1(e),
14861
14861
  legend: {
14862
14862
  show: !0,
14863
14863
  type: "scroll",
@@ -14871,7 +14871,7 @@ function Q0(e, t) {
14871
14871
  data: n.map((o) => o.name)
14872
14872
  }
14873
14873
  };
14874
- return Ge({}, i, j0);
14874
+ return Ge({}, i, j1);
14875
14875
  }
14876
14876
  const ho = {
14877
14877
  output: "number",
@@ -14882,7 +14882,7 @@ const ho = {
14882
14882
  function Gr(e, t, n) {
14883
14883
  return 1 - (1 - e) * (t - 1) / (t - n - 1);
14884
14884
  }
14885
- function G0(e, t, n, a) {
14885
+ function G1(e, t, n, a) {
14886
14886
  const {
14887
14887
  x_axis: i,
14888
14888
  y_axis: o
@@ -14906,7 +14906,7 @@ function G0(e, t, n, a) {
14906
14906
  adjustedRSquared: Gr(d, t.length, 1)
14907
14907
  };
14908
14908
  }
14909
- function H0(e, t, n, a) {
14909
+ function H1(e, t, n, a) {
14910
14910
  const {
14911
14911
  x_axis: i,
14912
14912
  y_axis: o
@@ -14934,7 +14934,7 @@ function H0(e, t, n, a) {
14934
14934
  adjustedRSquared: Gr(c, t.length, 1)
14935
14935
  };
14936
14936
  }
14937
- function W0(e, t, n, a) {
14937
+ function W1(e, t, n, a) {
14938
14938
  const {
14939
14939
  x_axis: i,
14940
14940
  y_axis: o
@@ -14962,7 +14962,7 @@ function W0(e, t, n, a) {
14962
14962
  adjustedRSquared: Gr(c, t.length, 1)
14963
14963
  };
14964
14964
  }
14965
- function U0(e, t, n, a) {
14965
+ function U1(e, t, n, a) {
14966
14966
  const {
14967
14967
  x_axis: i,
14968
14968
  y_axis: o,
@@ -14982,14 +14982,14 @@ function po(e, t, n) {
14982
14982
  regression: a,
14983
14983
  x_axis: i
14984
14984
  } = n, o = B(i.data_key), l = B(a.y_axis_data_key), s = t.map((c) => [c[o.columnKey], c[l.columnKey]]);
14985
- return a.transform.config.method === "linear" ? G0(e, t, s, n) : a.transform.config.method === "exponential" ? H0(e, t, s, n) : a.transform.config.method === "logistic" ? W0(e, t, s, n) : a.transform.config.method === "polynomial" ? U0(e, t, s, n) : {
14985
+ return a.transform.config.method === "linear" ? G1(e, t, s, n) : a.transform.config.method === "exponential" ? H1(e, t, s, n) : a.transform.config.method === "logistic" ? W1(e, t, s, n) : a.transform.config.method === "polynomial" ? U1(e, t, s, n) : {
14986
14986
  name: e,
14987
14987
  expression: "",
14988
14988
  rSquared: 0,
14989
14989
  adjustedRSquared: 0
14990
14990
  };
14991
14991
  }
14992
- function K0(e, t) {
14992
+ function K1(e, t) {
14993
14993
  if (!t)
14994
14994
  return [{
14995
14995
  name: "",
@@ -15002,7 +15002,7 @@ function K0(e, t) {
15002
15002
  const n = B(t.regression.group_by_key), a = C.groupBy(e, n.columnKey);
15003
15003
  return Object.entries(a).map(([i, o]) => po(i, o, t));
15004
15004
  }
15005
- const Y0 = {
15005
+ const Y1 = {
15006
15006
  marginTop: "10px",
15007
15007
  "tbody th, tbody td": {
15008
15008
  padding: "7px 10px"
@@ -15021,7 +15021,7 @@ function mo({
15021
15021
  rSquared: a,
15022
15022
  adjustedRSquared: i
15023
15023
  } = e;
15024
- return n ? /* @__PURE__ */ r(w, { fz: 14, sx: Y0, children: /* @__PURE__ */ u(w.Tbody, { children: [
15024
+ return n ? /* @__PURE__ */ r(w, { fz: 14, sx: Y1, children: /* @__PURE__ */ u(w.Tbody, { children: [
15025
15025
  /* @__PURE__ */ r(w.Tr, { children: /* @__PURE__ */ r(w.Td, { colSpan: 2, children: /* @__PURE__ */ r(k, { size: "sm", ta: "center", children: n }) }) }),
15026
15026
  /* @__PURE__ */ u(w.Tr, { children: [
15027
15027
  /* @__PURE__ */ r(w.Td, { children: t("viz.regression_chart.r_sq") }),
@@ -15045,18 +15045,18 @@ function mo({
15045
15045
  ] })
15046
15046
  ] }) }) : /* @__PURE__ */ r(k, { size: "sm", children: "Unavailable for this regression method" });
15047
15047
  }
15048
- function X0({
15048
+ function X1({
15049
15049
  conf: e,
15050
15050
  queryData: t
15051
15051
  }) {
15052
15052
  var a;
15053
- const n = z(() => K0(t, e), [e, t]);
15053
+ const n = z(() => K1(t, e), [e, t]);
15054
15054
  return e.regression.group_by_key ? (console.log(n), /* @__PURE__ */ u(S, { defaultValue: (a = n[0]) == null ? void 0 : a.name, color: "gray", children: [
15055
15055
  /* @__PURE__ */ r(S.List, { grow: !0, children: n.map((i) => /* @__PURE__ */ r(S.Tab, { value: i.name, children: i.name }, i.name)) }),
15056
15056
  n.map((i) => /* @__PURE__ */ r(S.Panel, { value: i.name, children: /* @__PURE__ */ r(mo, { desc: i }) }, i.name))
15057
15057
  ] })) : /* @__PURE__ */ r(mo, { desc: n[0] });
15058
15058
  }
15059
- function Z0({
15059
+ function Z1({
15060
15060
  conf: e,
15061
15061
  queryData: t
15062
15062
  }) {
@@ -15065,10 +15065,10 @@ function Z0({
15065
15065
  } = x();
15066
15066
  return /* @__PURE__ */ u(_e, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
15067
15067
  /* @__PURE__ */ r(_e.Target, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "compact-xs", leftSection: /* @__PURE__ */ r(Re, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
15068
- /* @__PURE__ */ r(_e.Dropdown, { children: /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(X0, { conf: e, queryData: t }) }) })
15068
+ /* @__PURE__ */ r(_e.Dropdown, { children: /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(X1, { conf: e, queryData: t }) }) })
15069
15069
  ] });
15070
15070
  }
15071
- function J0(e) {
15071
+ function J1(e) {
15072
15072
  return /* @__PURE__ */ r(_, { justify: "space-between", sx: {
15073
15073
  position: "absolute",
15074
15074
  top: 0,
@@ -15076,7 +15076,7 @@ function J0(e) {
15076
15076
  right: Ze.right,
15077
15077
  height: "22px",
15078
15078
  zIndex: 1
15079
- }, children: /* @__PURE__ */ r(Z0, { ...e }) });
15079
+ }, children: /* @__PURE__ */ r(Z1, { ...e }) });
15080
15080
  }
15081
15081
  const yi = {
15082
15082
  x_axis: {
@@ -15115,7 +15115,7 @@ const yi = {
15115
15115
  y_axis_data_key: "value"
15116
15116
  }
15117
15117
  };
15118
- function e1({
15118
+ function e0({
15119
15119
  context: e,
15120
15120
  instance: t
15121
15121
  }) {
@@ -15134,7 +15134,7 @@ function e1({
15134
15134
  ...M,
15135
15135
  [v.columnKey]: Number(M[v.columnKey])
15136
15136
  });
15137
- }, [e.data, n == null ? void 0 : n.regression.y_axis_data_key]), l = z(() => Q0(Ge({}, n, yi), o), [n, o]), s = Vt(null), c = (p) => {
15137
+ }, [e.data, n == null ? void 0 : n.regression.y_axis_data_key]), l = z(() => Q1(Ge({}, n, yi), o), [n, o]), s = Vt(null), c = (p) => {
15138
15138
  s.current = p;
15139
15139
  }, d = ae(() => {
15140
15140
  const p = s.current;
@@ -15143,11 +15143,11 @@ function e1({
15143
15143
  finished: d
15144
15144
  }), [d]);
15145
15145
  return !a || !i || !n ? null : /* @__PURE__ */ u(nt, { width: a, height: i, children: [
15146
- /* @__PURE__ */ r(J0, { conf: n, queryData: o }),
15146
+ /* @__PURE__ */ r(J1, { conf: n, queryData: o }),
15147
15147
  /* @__PURE__ */ r(He, { echarts: Be, onChartReady: c, option: l, onEvents: h, style: Xn(a, i), notMerge: !0, theme: "merico-light" })
15148
15148
  ] });
15149
15149
  }
15150
- function t1({
15150
+ function t0({
15151
15151
  control: e,
15152
15152
  watch: t
15153
15153
  }) {
@@ -15197,7 +15197,7 @@ function t1({
15197
15197
  }) => /* @__PURE__ */ r(Ke, { label: n("chart.color.label"), ...s }) }) })
15198
15198
  ] });
15199
15199
  }
15200
- function n1({
15200
+ function n0({
15201
15201
  control: e,
15202
15202
  watch: t
15203
15203
  }) {
@@ -15240,7 +15240,7 @@ function n1({
15240
15240
  }) => /* @__PURE__ */ r(Tt, { ...n }) })
15241
15241
  ] });
15242
15242
  }
15243
- function r1({
15243
+ function r0({
15244
15244
  control: e,
15245
15245
  watch: t
15246
15246
  }) {
@@ -15257,7 +15257,7 @@ function r1({
15257
15257
  }, ...n }) })
15258
15258
  ] }) });
15259
15259
  }
15260
- function a1({
15260
+ function a0({
15261
15261
  context: e
15262
15262
  }) {
15263
15263
  const {
@@ -15287,13 +15287,13 @@ function a1({
15287
15287
  /* @__PURE__ */ r(S.Tab, { value: "Y轴", children: "Y轴" }),
15288
15288
  /* @__PURE__ */ r(S.Tab, { value: "回归", children: "回归" })
15289
15289
  ] }),
15290
- /* @__PURE__ */ r(S.Panel, { value: "X轴", children: /* @__PURE__ */ r(n1, { watch: l, control: i }) }),
15291
- /* @__PURE__ */ r(S.Panel, { value: "Y轴", children: /* @__PURE__ */ r(r1, { watch: l, control: i }) }),
15292
- /* @__PURE__ */ r(S.Panel, { value: "回归", children: /* @__PURE__ */ r(t1, { control: i, watch: l }) })
15290
+ /* @__PURE__ */ r(S.Panel, { value: "X轴", children: /* @__PURE__ */ r(n0, { watch: l, control: i }) }),
15291
+ /* @__PURE__ */ r(S.Panel, { value: "Y轴", children: /* @__PURE__ */ r(r0, { watch: l, control: i }) }),
15292
+ /* @__PURE__ */ r(S.Panel, { value: "回归", children: /* @__PURE__ */ r(t0, { control: i, watch: l }) })
15293
15293
  ] })
15294
15294
  ] }) });
15295
15295
  }
15296
- function i1(e) {
15296
+ function i0(e) {
15297
15297
  const t = {
15298
15298
  x_axis: {
15299
15299
  axisLabel: {
@@ -15309,7 +15309,7 @@ function i1(e) {
15309
15309
  };
15310
15310
  return C.defaultsDeep(t, e);
15311
15311
  }
15312
- function o1(e, {
15312
+ function o0(e, {
15313
15313
  panelModel: t
15314
15314
  }) {
15315
15315
  try {
@@ -15337,28 +15337,28 @@ function o1(e, {
15337
15337
  throw console.error("[Migration failed]", n), n;
15338
15338
  }
15339
15339
  }
15340
- const l1 = {
15340
+ const l0 = {
15341
15341
  regression_chart: {
15342
15342
  viz_name: "Regression Chart",
15343
15343
  regression_info: "Regression Info",
15344
15344
  r_sq: "R-Sq",
15345
15345
  r_sq_adjusted: "R-Sq(Adjusted)"
15346
15346
  }
15347
- }, s1 = {
15347
+ }, s0 = {
15348
15348
  regression_chart: {
15349
15349
  viz_name: "回归分析图",
15350
15350
  regression_info: "回归信息",
15351
15351
  r_sq: "R方",
15352
15352
  r_sq_adjusted: "R方(调整)"
15353
15353
  }
15354
- }, c1 = [{
15354
+ }, c0 = [{
15355
15355
  lang: "en",
15356
- resources: l1
15356
+ resources: l0
15357
15357
  }, {
15358
15358
  lang: "zh",
15359
- resources: s1
15359
+ resources: s0
15360
15360
  }];
15361
- class d1 extends Se {
15361
+ class d0 extends Se {
15362
15362
  constructor() {
15363
15363
  super(...arguments);
15364
15364
  j(this, "VERSION", 3);
@@ -15370,7 +15370,7 @@ class d1 extends Se {
15370
15370
  })), this.version(2, (n) => ({
15371
15371
  ...n,
15372
15372
  version: 2,
15373
- config: i1(n.config)
15373
+ config: i0(n.config)
15374
15374
  })), this.version(3, (n, a) => {
15375
15375
  const {
15376
15376
  config: i
@@ -15378,28 +15378,28 @@ class d1 extends Se {
15378
15378
  return {
15379
15379
  ...n,
15380
15380
  version: 3,
15381
- config: o1(i, a)
15381
+ config: o0(i, a)
15382
15382
  };
15383
15383
  });
15384
15384
  }
15385
15385
  }
15386
- const u1 = {
15386
+ const u0 = {
15387
15387
  displayName: "viz.regression_chart.viz_name",
15388
15388
  displayGroup: "chart.groups.merico_suite",
15389
- migrator: new d1(),
15389
+ migrator: new d0(),
15390
15390
  name: "regressionChart",
15391
- viewRender: e1,
15392
- configRender: a1,
15391
+ viewRender: e0,
15392
+ configRender: a0,
15393
15393
  createConfig() {
15394
15394
  return {
15395
15395
  version: 3,
15396
15396
  config: Pe(yi)
15397
15397
  };
15398
15398
  },
15399
- translation: c1
15399
+ translation: c0
15400
15400
  }, Hr = {
15401
15401
  content: ""
15402
- }, h1 = D(({
15402
+ }, h0 = D(({
15403
15403
  context: e
15404
15404
  }) => {
15405
15405
  const t = Te(), {
@@ -15422,7 +15422,7 @@ const u1 = {
15422
15422
  padding: 0
15423
15423
  }
15424
15424
  }, dashboardState: t.dashboardState, variableAggValueMap: n.variableAggValueMap }) : null;
15425
- }), p1 = D(({
15425
+ }), p0 = D(({
15426
15426
  context: e
15427
15427
  }) => {
15428
15428
  const {
@@ -15470,22 +15470,22 @@ const u1 = {
15470
15470
  }
15471
15471
  }, label: n("rich_text.content.label"), onSubmit: p }) })
15472
15472
  ] }) });
15473
- }), m1 = {
15473
+ }), m0 = {
15474
15474
  rich_text: {
15475
15475
  viz_name: "Rich Text"
15476
15476
  }
15477
- }, g1 = {
15477
+ }, g0 = {
15478
15478
  rich_text: {
15479
15479
  viz_name: "富文本"
15480
15480
  }
15481
- }, f1 = [{
15481
+ }, f0 = [{
15482
15482
  lang: "en",
15483
- resources: m1
15483
+ resources: m0
15484
15484
  }, {
15485
15485
  lang: "zh",
15486
- resources: g1
15486
+ resources: g0
15487
15487
  }];
15488
- class b1 extends Se {
15488
+ class b0 extends Se {
15489
15489
  constructor() {
15490
15490
  super(...arguments);
15491
15491
  j(this, "VERSION", 1);
@@ -15500,20 +15500,20 @@ class b1 extends Se {
15500
15500
  }));
15501
15501
  }
15502
15502
  }
15503
- const y1 = {
15503
+ const y0 = {
15504
15504
  displayName: "viz.rich_text.viz_name",
15505
15505
  displayGroup: "chart.groups.others",
15506
- migrator: new b1(),
15506
+ migrator: new b0(),
15507
15507
  name: "richText",
15508
- viewRender: h1,
15509
- configRender: p1,
15508
+ viewRender: h0,
15509
+ configRender: p0,
15510
15510
  createConfig() {
15511
15511
  return {
15512
15512
  version: 1,
15513
15513
  config: Pe(Hr)
15514
15514
  };
15515
15515
  },
15516
- translation: f1
15516
+ translation: f0
15517
15517
  }, Jn = {
15518
15518
  static: {
15519
15519
  type: "static",
@@ -15577,7 +15577,7 @@ const dc = {
15577
15577
  reference_areas: [],
15578
15578
  dataZoom: yn
15579
15579
  };
15580
- function _1(e) {
15580
+ function _0(e) {
15581
15581
  const {
15582
15582
  dataZoom: t = yn,
15583
15583
  ...n
@@ -15587,7 +15587,7 @@ function _1(e) {
15587
15587
  dataZoom: t
15588
15588
  };
15589
15589
  }
15590
- function x1(e) {
15590
+ function x0(e) {
15591
15591
  const t = {
15592
15592
  scatter: {
15593
15593
  label_overflow: cc()
@@ -15595,7 +15595,7 @@ function x1(e) {
15595
15595
  };
15596
15596
  return C.defaultsDeep(t, e);
15597
15597
  }
15598
- function v1(e) {
15598
+ function v0(e) {
15599
15599
  const {
15600
15600
  color: t
15601
15601
  } = e.scatter;
@@ -15610,7 +15610,7 @@ function v1(e) {
15610
15610
  }
15611
15611
  } : e;
15612
15612
  }
15613
- function w1(e) {
15613
+ function w0(e) {
15614
15614
  const t = e.reference_lines.map((n) => {
15615
15615
  const {
15616
15616
  lineStyle: a = {
@@ -15633,7 +15633,7 @@ function w1(e) {
15633
15633
  reference_lines: t
15634
15634
  };
15635
15635
  }
15636
- function S1(e) {
15636
+ function S0(e) {
15637
15637
  const t = {
15638
15638
  tooltip: {
15639
15639
  trigger: "item"
@@ -15641,7 +15641,7 @@ function S1(e) {
15641
15641
  };
15642
15642
  return C.defaultsDeep({}, e, t);
15643
15643
  }
15644
- function C1(e, {
15644
+ function C0(e, {
15645
15645
  panelModel: t
15646
15646
  }) {
15647
15647
  try {
@@ -15677,7 +15677,7 @@ function C1(e, {
15677
15677
  throw console.error("[Migration failed]", n), n;
15678
15678
  }
15679
15679
  }
15680
- function k1(e) {
15680
+ function k0(e) {
15681
15681
  const t = {
15682
15682
  x_axis: {
15683
15683
  axisLabel: {
@@ -15687,7 +15687,7 @@ function k1(e) {
15687
15687
  };
15688
15688
  return C.defaultsDeep(t, e);
15689
15689
  }
15690
- function z1(e, t) {
15690
+ function z0(e, t) {
15691
15691
  const {
15692
15692
  stats: n,
15693
15693
  ...a
@@ -15700,7 +15700,7 @@ function z1(e, t) {
15700
15700
  ...a
15701
15701
  };
15702
15702
  }
15703
- class T1 extends Se {
15703
+ class T0 extends Se {
15704
15704
  constructor() {
15705
15705
  super(...arguments);
15706
15706
  j(this, "VERSION", 11);
@@ -15727,7 +15727,7 @@ class T1 extends Se {
15727
15727
  }), this.version(3, (n) => ({
15728
15728
  ...n,
15729
15729
  version: 3,
15730
- config: _1(n.config)
15730
+ config: _0(n.config)
15731
15731
  })), this.version(4, (n) => {
15732
15732
  const {
15733
15733
  config: a
@@ -15735,7 +15735,7 @@ class T1 extends Se {
15735
15735
  return {
15736
15736
  ...n,
15737
15737
  version: 5,
15738
- config: x1(a)
15738
+ config: x0(a)
15739
15739
  };
15740
15740
  }), this.version(6, (n) => {
15741
15741
  const {
@@ -15744,7 +15744,7 @@ class T1 extends Se {
15744
15744
  return {
15745
15745
  ...n,
15746
15746
  version: 6,
15747
- config: v1(a)
15747
+ config: v0(a)
15748
15748
  };
15749
15749
  }), this.version(7, (n) => {
15750
15750
  const {
@@ -15753,7 +15753,7 @@ class T1 extends Se {
15753
15753
  return {
15754
15754
  ...n,
15755
15755
  version: 7,
15756
- config: w1(a)
15756
+ config: w0(a)
15757
15757
  };
15758
15758
  }), this.version(8, (n) => {
15759
15759
  const {
@@ -15762,7 +15762,7 @@ class T1 extends Se {
15762
15762
  return {
15763
15763
  ...n,
15764
15764
  version: 8,
15765
- config: S1(a)
15765
+ config: S0(a)
15766
15766
  };
15767
15767
  }), this.version(9, (n, a) => {
15768
15768
  const {
@@ -15771,7 +15771,7 @@ class T1 extends Se {
15771
15771
  return {
15772
15772
  ...n,
15773
15773
  version: 9,
15774
- config: C1(i, a)
15774
+ config: C0(i, a)
15775
15775
  };
15776
15776
  }), this.version(10, (n, a) => {
15777
15777
  const {
@@ -15780,7 +15780,7 @@ class T1 extends Se {
15780
15780
  return {
15781
15781
  ...n,
15782
15782
  version: 10,
15783
- config: k1(i)
15783
+ config: k0(i)
15784
15784
  };
15785
15785
  }), this.version(11, (n, a) => {
15786
15786
  const {
@@ -15789,12 +15789,12 @@ class T1 extends Se {
15789
15789
  return {
15790
15790
  ...n,
15791
15791
  version: 11,
15792
- config: z1(i, a.panelModel)
15792
+ config: z0(i, a.panelModel)
15793
15793
  };
15794
15794
  });
15795
15795
  }
15796
15796
  }
15797
- const D1 = {
15797
+ const D0 = {
15798
15798
  scatter_chart: {
15799
15799
  viz_name: "Scatter Chart",
15800
15800
  color: {
@@ -15811,7 +15811,7 @@ const D1 = {
15811
15811
  trigger: "Click Scatter"
15812
15812
  }
15813
15813
  }
15814
- }, I1 = {
15814
+ }, I0 = {
15815
15815
  scatter_chart: {
15816
15816
  viz_name: "散点图",
15817
15817
  color: {
@@ -15828,17 +15828,17 @@ const D1 = {
15828
15828
  trigger: "点击散点"
15829
15829
  }
15830
15830
  }
15831
- }, M1 = [{
15831
+ }, M0 = [{
15832
15832
  lang: "en",
15833
- resources: D1
15833
+ resources: D0
15834
15834
  }, {
15835
15835
  lang: "zh",
15836
- resources: I1
15836
+ resources: I0
15837
15837
  }], uc = {
15838
15838
  id: "builtin:echarts:click-scatter-chart:series",
15839
15839
  displayName: "viz.scatter_chart.click_scatter.trigger",
15840
- nameRender: A1,
15841
- configRender: L1,
15840
+ nameRender: A0,
15841
+ configRender: L0,
15842
15842
  payload: [{
15843
15843
  name: "seriesType",
15844
15844
  description: '"scatter"',
@@ -15865,16 +15865,16 @@ const D1 = {
15865
15865
  valueType: "object"
15866
15866
  }]
15867
15867
  };
15868
- function L1(e) {
15868
+ function L0(e) {
15869
15869
  return /* @__PURE__ */ r(F, {});
15870
15870
  }
15871
- function A1(e) {
15871
+ function A0(e) {
15872
15872
  const {
15873
15873
  t
15874
15874
  } = x();
15875
15875
  return /* @__PURE__ */ r(k, { size: "sm", children: t("viz.scatter_chart.click_scatter.trigger") });
15876
15876
  }
15877
- function V1(e, t) {
15877
+ function V0(e, t) {
15878
15878
  if (!e.x_axis.data_key)
15879
15879
  return [];
15880
15880
  const n = B(e.x_axis.data_key);
@@ -15882,7 +15882,7 @@ function V1(e, t) {
15882
15882
  source: t[n.queryID]
15883
15883
  }];
15884
15884
  }
15885
- function $1(e) {
15885
+ function $0(e) {
15886
15886
  const t = e.y_axes.some((i) => !!i.name);
15887
15887
  let n = 15;
15888
15888
  t && (n += 20), e.dataZoom.x_axis_slider && (n += 20);
@@ -15892,7 +15892,7 @@ function $1(e) {
15892
15892
  bottom: a
15893
15893
  };
15894
15894
  }
15895
- function P1() {
15895
+ function P0() {
15896
15896
  return {
15897
15897
  show: !1,
15898
15898
  bottom: 0,
@@ -15904,7 +15904,7 @@ function tr(e, t) {
15904
15904
  if (e)
15905
15905
  return t[e] ?? void 0;
15906
15906
  }
15907
- function R1({
15907
+ function R0({
15908
15908
  reference_areas: e,
15909
15909
  variableValueMap: t
15910
15910
  }) {
@@ -15929,7 +15929,7 @@ function R1({
15929
15929
  }
15930
15930
  };
15931
15931
  }
15932
- function E1({
15932
+ function E0({
15933
15933
  type: e,
15934
15934
  ...t
15935
15935
  }, n) {
@@ -15960,7 +15960,7 @@ function E1({
15960
15960
  }
15961
15961
  };
15962
15962
  }
15963
- function O1({
15963
+ function O0({
15964
15964
  type: e,
15965
15965
  ...t
15966
15966
  }, n) {
@@ -15991,7 +15991,7 @@ function O1({
15991
15991
  }
15992
15992
  };
15993
15993
  }
15994
- function q1(e, t, n, a) {
15994
+ function q0(e, t, n, a) {
15995
15995
  return e.map((i) => {
15996
15996
  const o = i.orientation === "horizontal", l = o ? "yAxis" : "xAxis", s = o ? "insideEndTop" : "end";
15997
15997
  return {
@@ -16019,7 +16019,7 @@ function q1(e, t, n, a) {
16019
16019
  };
16020
16020
  });
16021
16021
  }
16022
- function F1({
16022
+ function F0({
16023
16023
  x_axis: e,
16024
16024
  scatter: t
16025
16025
  }, n) {
@@ -16039,17 +16039,17 @@ function F1({
16039
16039
  yAxisIndex: 0,
16040
16040
  datasetIndex: 0,
16041
16041
  itemStyle: {
16042
- color: O1(t.color, n)
16042
+ color: O0(t.color, n)
16043
16043
  },
16044
- symbolSize: E1(t.symbolSize, n),
16044
+ symbolSize: E0(t.symbolSize, n),
16045
16045
  encode: {
16046
16046
  x: a.columnKey,
16047
16047
  y: i.columnKey
16048
16048
  }
16049
16049
  };
16050
16050
  }
16051
- function N1(e, t, n, a) {
16052
- return [F1(e, a)].concat(q1(e.reference_lines, n, a, t)).concat(R1({
16051
+ function N0(e, t, n, a) {
16052
+ return [F0(e, a)].concat(q0(e.reference_lines, n, a, t)).concat(R0({
16053
16053
  reference_areas: e.reference_areas,
16054
16054
  variableValueMap: a
16055
16055
  }));
@@ -16060,7 +16060,7 @@ function go(e, t, n) {
16060
16060
  } = n;
16061
16061
  return a.axisLabel.formatter.enabled ? Je(a.axisLabel.formatter)(e, t) : e;
16062
16062
  }
16063
- function B1(e, t) {
16063
+ function B0(e, t) {
16064
16064
  const {
16065
16065
  x_axis: n,
16066
16066
  tooltip: a
@@ -16078,13 +16078,13 @@ function B1(e, t) {
16078
16078
  } = i;
16079
16079
  return go(o, l, t);
16080
16080
  }
16081
- const j1 = (e) => se(e, {
16081
+ const j0 = (e) => se(e, {
16082
16082
  output: "number",
16083
16083
  trimMantissa: !0,
16084
16084
  mantissa: 2,
16085
16085
  absolute: !1
16086
16086
  });
16087
- function Q1(e, t) {
16087
+ function Q0(e, t) {
16088
16088
  const {
16089
16089
  scatter: n,
16090
16090
  tooltip: a
@@ -16095,7 +16095,7 @@ function Q1(e, t) {
16095
16095
  const o = t[0] ?? t.default, l = Array.isArray(i) ? i : [i];
16096
16096
  if (l.length === 0)
16097
16097
  return "";
16098
- const s = B1(l, e), c = pt(e.scatter.label_overflow.tooltip), d = l.map(
16098
+ const s = B0(l, e), c = pt(e.scatter.label_overflow.tooltip), d = l.map(
16099
16099
  // @ts-expect-error type of value
16100
16100
  ({
16101
16101
  value: b
@@ -16121,7 +16121,7 @@ function Q1(e, t) {
16121
16121
  <th style="text-align: right;">${b.name}</th>
16122
16122
  ${l.map(({
16123
16123
  value: v
16124
- }) => `<td style="text-align: right; padding: 0 1em;">${j1(or(v, b.data_key))}</td>`).join("")}
16124
+ }) => `<td style="text-align: right; padding: 0 1em;">${j0(or(v, b.data_key))}</td>`).join("")}
16125
16125
  </tr>`);
16126
16126
  return p.push(...g), `
16127
16127
  <table style="width: auto">
@@ -16132,7 +16132,7 @@ function Q1(e, t) {
16132
16132
  }
16133
16133
  });
16134
16134
  }
16135
- function G1(e, t) {
16135
+ function G0(e, t) {
16136
16136
  const n = t.every((s) => !Number.isNaN(Number(s))), {
16137
16137
  overflow: a,
16138
16138
  ...i
@@ -16150,7 +16150,7 @@ function G1(e, t) {
16150
16150
  }
16151
16151
  })];
16152
16152
  }
16153
- function H1(e, t) {
16153
+ function H0(e, t) {
16154
16154
  return e.y_axes.map(({
16155
16155
  nameAlignment: n,
16156
16156
  min: a,
@@ -16182,7 +16182,7 @@ function H1(e, t) {
16182
16182
  });
16183
16183
  });
16184
16184
  }
16185
- const W1 = {
16185
+ const W0 = {
16186
16186
  xAxis: [{
16187
16187
  type: "category",
16188
16188
  nameGap: 25,
@@ -16206,7 +16206,7 @@ const W1 = {
16206
16206
  containLabel: !0
16207
16207
  }
16208
16208
  };
16209
- function U1(e, t, n) {
16209
+ function U0(e, t, n) {
16210
16210
  const a = n.reduce((c, d) => {
16211
16211
  const h = qt(d, t);
16212
16212
  return c[d.name] = gt(d, h), c;
@@ -16225,19 +16225,19 @@ function U1(e, t, n) {
16225
16225
  default: ({
16226
16226
  value: c
16227
16227
  }) => c
16228
- }), o = C.uniq(ht(t, e.x_axis.data_key)), l = N1(e, t, n, a), s = {
16229
- xAxis: G1(e, o),
16230
- yAxis: H1(e, i),
16228
+ }), o = C.uniq(ht(t, e.x_axis.data_key)), l = N0(e, t, n, a), s = {
16229
+ xAxis: G0(e, o),
16230
+ yAxis: H0(e, i),
16231
16231
  series: l,
16232
- dataset: V1(e, t),
16233
- tooltip: Q1(e, i),
16234
- grid: $1(e),
16235
- legend: P1(),
16232
+ dataset: V0(e, t),
16233
+ tooltip: Q0(e, i),
16234
+ grid: $0(e),
16235
+ legend: P0(),
16236
16236
  dataZoom: Fr(e.dataZoom)
16237
16237
  };
16238
- return Ge({}, s, W1);
16238
+ return Ge({}, s, W0);
16239
16239
  }
16240
- function K1({
16240
+ function K0({
16241
16241
  conf: e,
16242
16242
  data: t,
16243
16243
  width: n,
@@ -16261,13 +16261,13 @@ function K1({
16261
16261
  }, [l]), g = z(() => ({
16262
16262
  click: d,
16263
16263
  finished: p
16264
- }), [d, p]), y = $.useMemo(() => U1(e, t, o), [e, t]);
16264
+ }), [d, p]), y = $.useMemo(() => U0(e, t, o), [e, t]);
16265
16265
  return /* @__PURE__ */ r(He, { echarts: Be, option: y, ref: h, style: {
16266
16266
  width: n,
16267
16267
  height: a
16268
16268
  }, onEvents: g, notMerge: !0, theme: "merico-light" });
16269
16269
  }
16270
- function Y1({
16270
+ function Y0({
16271
16271
  context: e,
16272
16272
  instance: t
16273
16273
  }) {
@@ -16284,11 +16284,11 @@ function Y1({
16284
16284
  } = e.viewport, [d, h] = G(0), [p, g] = G(0), y = Math.max(0, Ct(c) - d - p), b = St(s);
16285
16285
  return !s || !c ? null : /* @__PURE__ */ u(nt, { width: s, height: c, children: [
16286
16286
  /* @__PURE__ */ r(fr, { onHeightChange: h, value: o.stats.top, context: e }),
16287
- /* @__PURE__ */ r(K1, { instance: t, variables: i, width: b, height: y, data: l, conf: o, interactionManager: n }),
16287
+ /* @__PURE__ */ r(K0, { instance: t, variables: i, width: b, height: y, data: l, conf: o, interactionManager: n }),
16288
16288
  /* @__PURE__ */ r(fr, { onHeightChange: g, value: o.stats.bottom, context: e })
16289
16289
  ] });
16290
16290
  }
16291
- const X1 = J(({
16291
+ const X0 = J(({
16292
16292
  value: e,
16293
16293
  onChange: t,
16294
16294
  xAxisOptions: n,
@@ -16334,7 +16334,7 @@ const X1 = J(({
16334
16334
  ] })
16335
16335
  ] });
16336
16336
  });
16337
- function Z1() {
16337
+ function Z0() {
16338
16338
  const e = (/* @__PURE__ */ new Date()).getTime().toString();
16339
16339
  return {
16340
16340
  id: e,
@@ -16360,14 +16360,14 @@ function Z1() {
16360
16360
  yAxisIndex: "0"
16361
16361
  };
16362
16362
  }
16363
- function J1({
16363
+ function J0({
16364
16364
  control: e,
16365
16365
  watch: t,
16366
16366
  variables: n
16367
16367
  }) {
16368
16368
  const {
16369
16369
  t: a
16370
- } = x(), i = () => Z1(), o = z(() => n.map((d) => ({
16370
+ } = x(), i = () => Z0(), o = z(() => n.map((d) => ({
16371
16371
  label: d.name,
16372
16372
  value: d.name
16373
16373
  })), [n]), l = t("y_axes"), s = z(() => l.map(({
@@ -16381,7 +16381,7 @@ function J1({
16381
16381
  index: h
16382
16382
  }) => /* @__PURE__ */ r(f, { name: `reference_areas.${h}`, control: e, render: ({
16383
16383
  field: p
16384
- }) => /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(X1, { variableOptions: o, yAxisOptions: s, ...p }) }) }) });
16384
+ }) => /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(X0, { variableOptions: o, yAxisOptions: s, ...p }) }) }) });
16385
16385
  }
16386
16386
  function ew({
16387
16387
  control: e,
@@ -16908,7 +16908,7 @@ function fw({
16908
16908
  /* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(hw, { control: l, watch: c }) }),
16909
16909
  /* @__PURE__ */ r(S.Panel, { value: "Stats", children: /* @__PURE__ */ r(cw, { control: l, watch: c }) }),
16910
16910
  /* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(tw, { variables: i, control: l, watch: c }) }),
16911
- /* @__PURE__ */ r(S.Panel, { value: "Reference Areas", children: /* @__PURE__ */ r(J1, { variables: i, control: l, watch: c }) }),
16911
+ /* @__PURE__ */ r(S.Panel, { value: "Reference Areas", children: /* @__PURE__ */ r(J0, { variables: i, control: l, watch: c }) }),
16912
16912
  /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
16913
16913
  field: p
16914
16914
  }) => /* @__PURE__ */ r(Nr, { ...p }) }) })
@@ -16925,9 +16925,9 @@ function bw(e) {
16925
16925
  const yw = {
16926
16926
  displayName: "viz.scatter_chart.viz_name",
16927
16927
  displayGroup: "chart.groups.echarts_based_charts",
16928
- migrator: new T1(),
16928
+ migrator: new T0(),
16929
16929
  name: "scatterChart",
16930
- viewRender: Y1,
16930
+ viewRender: Y0,
16931
16931
  configRender: bw,
16932
16932
  createConfig() {
16933
16933
  return {
@@ -16936,7 +16936,7 @@ const yw = {
16936
16936
  };
16937
16937
  },
16938
16938
  triggers: [uc],
16939
- translation: M1
16939
+ translation: M0
16940
16940
  }, _w = {
16941
16941
  content: "Use double curly brackets to wrap js code: {{ new Date().getTime() }}",
16942
16942
  vertical_align: "center"
@@ -22749,7 +22749,7 @@ const n5 = {
22749
22749
  value: e.value,
22750
22750
  type: "single",
22751
22751
  category: "basic"
22752
- })), a5 = [Xp, Zp, tm, em, Jp, nm], Di = [pa, qw, sC, y1, sS, l0, $2, Og, jb, tx, Hx, YC, Lv, $_, yw, P0, u1, _C, gk, n5, Ik, ry], i5 = Di.reduce((e, t) => (e[t.name] = {
22752
+ })), a5 = [Xp, Zp, tm, em, Jp, nm], Di = [pa, qw, sC, y0, sS, l1, $2, Og, jb, tx, Hx, YC, Lv, $_, yw, P1, u0, _C, gk, n5, Ik, ry], i5 = Di.reduce((e, t) => (e[t.name] = {
22753
22753
  displayName: t.displayName,
22754
22754
  displayGroup: t.displayGroup
22755
22755
  }, e), {}), kc = () => ({
@@ -30817,7 +30817,7 @@ function Od(e, t) {
30817
30817
  }, [e]);
30818
30818
  }
30819
30819
  function qd(e) {
30820
- return $.useCallback((t) => t.provideValue(ye.pluginManager, e.pluginManager).provideValue(ye.vizManager, e.vizManager).provideValue(ye.panelAddonManager, e.panelAddonManager).provideValue(ye.colorManager, e.colorManager), []);
30820
+ return $.useCallback((t) => t.provideValue(ye.pluginManager, e.pluginManager).provideValue(ye.vizManager, e.vizManager).provideValue(ye.panelAddonManager, e.panelAddonManager).provideValue(ye.colorManager, e.colorManager), [e]);
30821
30821
  }
30822
30822
  const vT = D(({
30823
30823
  saveDashboardChanges: e
@@ -36137,7 +36137,7 @@ const uI = ({
36137
36137
  data: g = []
36138
36138
  } = dn(Mi), {
36139
36139
  data: y = []
36140
- } = dn(Dc), b = $.useMemo(() => dI(t, n, g, y, e, s ?? {}, d ?? null), [t, n, d]);
36140
+ } = dn(Dc), b = $.useMemo(() => dI(t, n, g, y, e, s ?? {}, d ?? null), [t, n]);
36141
36141
  Od(b.content, !1), $.useEffect(() => {
36142
36142
  b.context.replace(e);
36143
36143
  }, [e]), $.useEffect(() => {
@@ -36153,7 +36153,7 @@ const uI = ({
36153
36153
  }, [h, b.content.views.firstVisibleTabsViewActiveTabStr]), $.useEffect(() => {
36154
36154
  d && b.content.views.setFirstVisibleTabsViewActiveTab(d);
36155
36155
  }, [d, b.content.views.setFirstVisibleTabsViewActiveTab]);
36156
- const v = $t(Ii, []), I = qd(v);
36156
+ const v = $t(Ii, [b]), I = qd(v);
36157
36157
  return ol("@devtable/dashboard render", {
36158
36158
  context: e,
36159
36159
  dashboard: t,