@devtable/dashboard 14.50.5 → 14.50.6

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.
@@ -9,14 +9,14 @@ import C, { unset as uh, get as de, isObject as Dl, set as Fa, omit as xn, isFun
9
9
  import { observable as Pl, runInAction as er, toJS as Ht, reaction as qe, makeAutoObservable as or } from "mobx";
10
10
  import go from "eventemitter2";
11
11
  import { jsx as r, Fragment as F, jsxs as u } from "react/jsx-runtime";
12
- import E, { useId as xh, useState as H, useEffect as N, useCallback as ne, forwardRef as te, useMemo as k, useRef as Ft, createContext as Al, createElement as Bn, useContext as ut, memo as wh } from "react";
12
+ import E, { useId as xh, useState as H, useEffect as N, useCallback as ne, forwardRef as te, useMemo as k, useRef as kt, createContext as Al, createElement as Bn, useContext as ut, memo as wh } from "react";
13
13
  import wn, { random as Ar } from "chroma-js";
14
14
  import We from "echarts-for-react/lib/core";
15
15
  import "echarts-gl";
16
16
  import * as Ne from "echarts/core";
17
17
  import { use as Sh } from "echarts/core";
18
18
  import { useBoolean as De, useCreation as Nt, usePrevious as Ch, useAsyncEffect as jn, useRequest as Sn, useLatest as Ca, useWhyDidYouUpdate as El } from "ahooks";
19
- import { Box as $, TextInput as V, Group as _, Text as z, Select as q, Button as L, Modal as Se, Stack as I, Divider as A, NumberInput as re, SimpleGrid as Te, Menu as K, UnstyledButton as ja, Tooltip as ae, Flex as rt, ColorInput as un, Center as Gt, ActionIcon as ee, Badge as Bt, CloseButton as kt, Overlay as hn, NativeSelect as Er, useMantineTheme as Or, ColorSwatch as wr, Popover as Ye, ColorPicker as fo, HoverCard as pe, Checkbox as J, Paper as kh, Code as bo, Tabs as S, Switch as ke, Table as w, MultiSelect as Jt, LoadingOverlay as pn, Alert as lr, Collapse as sr, CheckIcon as zh, SegmentedControl as Qa, Anchor as On, Pagination as qr, Textarea as Ol, RangeSlider as Th, Autocomplete as Dh, Combobox as Zt, Mark as ql, Slider as Ih, ThemeIcon as tr, Pill as Mh, List as Ke, getRadius as Ha, Affix as Lh, AppShell as tt, FileInput as Vh, Highlight as $h, rem as yo, JsonInput as Fl, Drawer as Rh, Radio as _o, Skeleton as vo, NavLink as ka, useCombobox as Ph, Loader as Ga, InputBase as Ah, Input as Eh } from "@mantine/core";
19
+ import { Box as $, TextInput as V, Group as _, Text as z, Select as q, Button as L, Modal as Se, Stack as I, Divider as A, NumberInput as re, SimpleGrid as Te, Menu as K, UnstyledButton as ja, Tooltip as ae, Flex as rt, ColorInput as un, Center as Gt, ActionIcon as ee, Badge as Bt, CloseButton as zt, Overlay as hn, NativeSelect as Er, useMantineTheme as Or, ColorSwatch as wr, Popover as Ye, ColorPicker as fo, HoverCard as pe, Checkbox as J, Paper as kh, Code as bo, Tabs as S, Switch as ke, Table as w, MultiSelect as Jt, LoadingOverlay as pn, Alert as lr, Collapse as sr, CheckIcon as zh, SegmentedControl as Qa, Anchor as On, Pagination as qr, Textarea as Ol, RangeSlider as Th, Autocomplete as Dh, Combobox as Zt, Mark as ql, Slider as Ih, ThemeIcon as tr, Pill as Mh, List as Ke, getRadius as Ha, Affix as Lh, AppShell as tt, FileInput as Vh, Highlight as $h, rem as yo, JsonInput as Fl, Drawer as Rh, Radio as _o, Skeleton as vo, NavLink as ka, useCombobox as Ph, Loader as Ga, InputBase as Ah, Input as Eh } from "@mantine/core";
20
20
  import { useHover as Oh, useDisclosure as nn, useClipboard as qh, randomId as Cn, useElementSize as Nl, useResizeObserver as Fh, useInputState as Bl } from "@mantine/hooks";
21
21
  import * as Nh from "popmotion";
22
22
  import { interpolate as Dn } from "popmotion";
@@ -61,7 +61,7 @@ import { constrainedEditor as Yp } from "constrained-editor-plugin";
61
61
  import { showNotification as zn, updateNotification as Xp, notifications as Ss } from "@mantine/notifications";
62
62
  import { createStyles as Gn, MantineEmotionProvider as Cs } from "@mantine/emotion";
63
63
  import * as sn from "d3-regression";
64
- import { CodeHighlight as zt } from "@mantine/code-highlight";
64
+ import { CodeHighlight as Tt } from "@mantine/code-highlight";
65
65
  import { flexRender as qn, createColumnHelper as ai, useReactTable as ii, getCoreRowModel as oi, getSortedRowModel as Zp } from "@tanstack/react-table";
66
66
  import { useVirtualizer as Jp } from "@tanstack/react-virtual";
67
67
  import st from "axios";
@@ -98,7 +98,7 @@ import Im from "dayjs/plugin/utc";
98
98
  import Mm from "dayjs/plugin/weekday";
99
99
  import Lm from "dayjs/plugin/weekOfYear";
100
100
  import Vm from "dayjs/plugin/weekYear";
101
- import { types as m, cast as Qt, getParent as we, destroy as $m, getRoot as Re, addDisposer as Xe, detach as Sr, isAlive as ks, flow as Ot, toGenerator as At, clone as Rm, getSnapshot as Et, applySnapshot as He, addMiddleware as Pm, getType as Am, castToSnapshot as zs } from "mobx-state-tree";
101
+ import { types as m, cast as Qt, getParent as we, destroy as $m, getRoot as Re, addDisposer as Xe, detach as Sr, isAlive as ks, flow as qt, toGenerator as Et, clone as Rm, getSnapshot as Ot, applySnapshot as He, addMiddleware as Pm, getType as Am, castToSnapshot as zs } from "mobx-state-tree";
102
102
  import Ts from "dom-to-image-more";
103
103
  import { saveAs as Hr } from "file-saver";
104
104
  import Ds from "jszip";
@@ -109,7 +109,7 @@ import { arrayToTree as Nm } from "performant-array-to-tree";
109
109
  import Bm, { Option as jm } from "rc-select";
110
110
  import { createPortal as Qm } from "react-dom";
111
111
  import { WidthProvider as Ms, Responsive as Ls } from "react-grid-layout";
112
- import { useModals as Tt, ModalsProvider as Vs } from "@mantine/modals";
112
+ import { useModals as Dt, ModalsProvider as Vs } from "@mantine/modals";
113
113
  import { useNavigate as Hm } from "react-router-dom";
114
114
  import { Spotlight as En, spotlight as Gm } from "@mantine/spotlight";
115
115
  import "@mantine/spotlight/styles.css";
@@ -2428,7 +2428,7 @@ class cg {
2428
2428
  this.symbol = Symbol(t);
2429
2429
  }
2430
2430
  }
2431
- function $t(e) {
2431
+ function Rt(e) {
2432
2432
  return new cg(e);
2433
2433
  }
2434
2434
  class li {
@@ -2504,7 +2504,7 @@ function ug() {
2504
2504
  } = E.useContext(Ps);
2505
2505
  return e ? document.getElementById(e) : null;
2506
2506
  }
2507
- const Es = "14.50.5", hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2507
+ const Es = "14.50.6", hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2508
2508
  __proto__: null,
2509
2509
  version: Es
2510
2510
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2645,9 +2645,9 @@ const Y = (e, t) => {
2645
2645
  right: 16,
2646
2646
  bottom: 16,
2647
2647
  left: 16
2648
- }, Dt = (e) => Math.max(0, e - nt.left - nt.right), It = (e) => Math.max(0, e - nt.top - nt.bottom), cr = (e, t) => ({
2649
- width: Dt(e),
2650
- height: It(t)
2648
+ }, It = (e) => Math.max(0, e - nt.left - nt.right), Mt = (e) => Math.max(0, e - nt.top - nt.bottom), cr = (e, t) => ({
2649
+ width: It(e),
2650
+ height: Mt(t)
2651
2651
  }), at = ({
2652
2652
  width: e,
2653
2653
  height: t,
@@ -2732,7 +2732,7 @@ function _r(e, t) {
2732
2732
  } = j(t);
2733
2733
  return e[a];
2734
2734
  }
2735
- const Mt = {
2735
+ const Lt = {
2736
2736
  CryptoJS: Qh,
2737
2737
  d3Array: jl,
2738
2738
  dayjs: P,
@@ -2844,7 +2844,7 @@ function zg(e, t, n) {
2844
2844
  const a = Ur(e, t);
2845
2845
  return new Function(`return ${n.config.func}`)()({
2846
2846
  queryData: a
2847
- }, Mt);
2847
+ }, Lt);
2848
2848
  } catch (a) {
2849
2849
  return console.error(a), a.message;
2850
2850
  }
@@ -2893,7 +2893,7 @@ const ie = () => Qs(), Mg = {
2893
2893
  errors: [],
2894
2894
  downloadPanelScreenshot: () => {
2895
2895
  },
2896
- echartsOptions: null,
2896
+ getEchartsOptions: () => null,
2897
2897
  setEchartsOptions: () => {
2898
2898
  }
2899
2899
  }), Gs = Hs.Provider;
@@ -3163,7 +3163,7 @@ const $e = {
3163
3163
  }) => e.unsetMark(this.name)
3164
3164
  };
3165
3165
  }
3166
- }), qt = {
3166
+ }), Ft = {
3167
3167
  grid: {
3168
3168
  axis: "#97999D",
3169
3169
  scope: "rgba(47,140,192,0.1)",
@@ -3228,9 +3228,9 @@ const $e = {
3228
3228
  };
3229
3229
  function Bg() {
3230
3230
  Ne.registerTheme("merico-light", {
3231
- color: Object.values(qt.graphics.multiple),
3231
+ color: Object.values(Ft.graphics.multiple),
3232
3232
  visualMap: {
3233
- color: Object.values(qt.graphics.depth).reverse()
3233
+ color: Object.values(Ft.graphics.depth).reverse()
3234
3234
  },
3235
3235
  axes: [{
3236
3236
  type: "all",
@@ -3446,7 +3446,7 @@ function ac(e) {
3446
3446
  itemHeight: 140,
3447
3447
  show: !0,
3448
3448
  inRange: {
3449
- color: e ?? Object.values(qt.graphics.depth)
3449
+ color: e ?? Object.values(Ft.graphics.depth)
3450
3450
  },
3451
3451
  skipRange: {
3452
3452
  lt_min: "",
@@ -3486,9 +3486,9 @@ function en() {
3486
3486
  }
3487
3487
  function Kg() {
3488
3488
  return {
3489
- compared: Object.values(qt.graphics.compared),
3490
- level: Object.values(qt.graphics.level),
3491
- depth: Object.values(qt.graphics.depth),
3489
+ compared: Object.values(Ft.graphics.compared),
3490
+ level: Object.values(Ft.graphics.level),
3491
+ depth: Object.values(Ft.graphics.depth),
3492
3492
  yellow_blue: ["#8f531d", "#ffd347", "#e3efe3", "#eefaee", "#4ecbbf", "#003f94"],
3493
3493
  blue: ["#f9fcff", "#48b3e9", "#003f94"],
3494
3494
  darkgreen_pink: ["#0c525a", "#f21f99"],
@@ -3642,7 +3642,7 @@ const Yg = Kg(), Xg = ({
3642
3642
  minWidth: "40px",
3643
3643
  maxWidth: "40px",
3644
3644
  flex: 0
3645
- }, children: /* @__PURE__ */ r(kt, { onClick: a, size: "sm" }) })
3645
+ }, children: /* @__PURE__ */ r(zt, { onClick: a, size: "sm" }) })
3646
3646
  ] });
3647
3647
  }, oc = te(({
3648
3648
  value: e,
@@ -3774,14 +3774,14 @@ const tf = () => /* @__PURE__ */ r("div", { style: {
3774
3774
  width: "20px",
3775
3775
  height: "13px",
3776
3776
  borderRadius: "2px",
3777
- background: lc(90, ...Object.values(qt.graphics.depth))
3777
+ background: lc(90, ...Object.values(Ft.graphics.depth))
3778
3778
  } }), nf = ({
3779
3779
  disabled: e
3780
3780
  }) => /* @__PURE__ */ r($, { sx: {
3781
3781
  width: "16px",
3782
3782
  height: "10px",
3783
3783
  borderRadius: "2px",
3784
- background: lc(90, ...Object.values(qt.graphics.depth)),
3784
+ background: lc(90, ...Object.values(Ft.graphics.depth)),
3785
3785
  opacity: e ? "0.5" : 1,
3786
3786
  position: "relative",
3787
3787
  "&:after": {
@@ -3877,7 +3877,7 @@ const uc = (e) => {
3877
3877
  function df(e, t, n) {
3878
3878
  const a = {}, i = (l) => new Function(`return ${cc(l)}`)()({
3879
3879
  variables: n
3880
- }, t, Mt);
3880
+ }, t, Lt);
3881
3881
  return e.querySelectorAll("dynamic-color").forEach((l) => {
3882
3882
  const s = l.getAttribute("data-value");
3883
3883
  s && (a[`#${dc(l.id)}`] = {
@@ -3933,7 +3933,7 @@ const Jn = "data-value", uf = Jn, hc = "dynamicColor", pc = xs.create({
3933
3933
  onChange: t,
3934
3934
  onMount: n
3935
3935
  }) => {
3936
- const a = Ft(null), i = Ft(null), o = (s) => {
3936
+ const a = kt(null), i = kt(null), o = (s) => {
3937
3937
  if (!s) {
3938
3938
  t("");
3939
3939
  return;
@@ -4625,7 +4625,7 @@ function ur(e, t, n) {
4625
4625
  }).join("");
4626
4626
  }
4627
4627
  function* Lf(e) {
4628
- const t = qt.graphics[e];
4628
+ const t = Ft.graphics[e];
4629
4629
  if (!t)
4630
4630
  throw new Error("Invalid palette key provided");
4631
4631
  const n = Object.values(t);
@@ -4687,7 +4687,7 @@ function wc(e, t = {
4687
4687
  return (n) => /* @__PURE__ */ r(ze, { ...t, children: /* @__PURE__ */ r(e, { ...n }) });
4688
4688
  }
4689
4689
  function Vf(e, t) {
4690
- return new Function(`return ${e}`)()(t, Mt);
4690
+ return new Function(`return ${e}`)()(t, Lt);
4691
4691
  }
4692
4692
  function $f(e, t, n) {
4693
4693
  return Vf(e, {
@@ -4697,16 +4697,16 @@ function $f(e, t, n) {
4697
4697
  }
4698
4698
  function kr(e, t) {
4699
4699
  try {
4700
- return new Function(`return ${e.config.processing.pre}`)()(t, Mt);
4700
+ return new Function(`return ${e.config.processing.pre}`)()(t, Lt);
4701
4701
  } catch (n) {
4702
4702
  return console.error(n), t;
4703
4703
  }
4704
4704
  }
4705
4705
  function zr(e, t) {
4706
- return new Function(`return ${e.config.processing.post}`)()(t, Mt);
4706
+ return new Function(`return ${e.config.processing.post}`)()(t, Lt);
4707
4707
  }
4708
4708
  function Do(e, t, n) {
4709
- return e ? new Function(`return ${e}`)()(t, Mt, n) : t;
4709
+ return e ? new Function(`return ${e}`)()(t, Lt, n) : t;
4710
4710
  }
4711
4711
  function Sc() {
4712
4712
  Sh([Kp, Lp, Vp, $p, Rp, Pp, Ap, Ep, Op, qp, Fp, Np, Bp, jp, Qp, Hp, Gp, Wp, Up]);
@@ -4739,7 +4739,7 @@ function Rf({
4739
4739
  try {
4740
4740
  return new Function(`return ${t}`)()({
4741
4741
  sql: e
4742
- }, Mt);
4742
+ }, Lt);
4743
4743
  } catch (n) {
4744
4744
  throw console.error(n), n;
4745
4745
  }
@@ -4748,7 +4748,7 @@ function Pf(e, t, n) {
4748
4748
  if (!e.trim())
4749
4749
  return t;
4750
4750
  try {
4751
- return new Function(`return ${e}`)()(t, Mt, n);
4751
+ return new Function(`return ${e}`)()(t, Lt, n);
4752
4752
  } catch (a) {
4753
4753
  throw console.error(a), a;
4754
4754
  }
@@ -4857,7 +4857,7 @@ function qf({
4857
4857
  min: de(W, x.columnKey),
4858
4858
  max: de(oe, x.columnKey)
4859
4859
  };
4860
- }, [g, x]), R = Ft(null), O = k(() => ({
4860
+ }, [g, x]), R = kt(null), O = k(() => ({
4861
4861
  finished: () => {
4862
4862
  var oe;
4863
4863
  const W = (oe = R.current) == null ? void 0 : oe.getEchartsInstance();
@@ -5333,7 +5333,7 @@ function bt({
5333
5333
  text-overflow: ${i};
5334
5334
  `;
5335
5335
  }
5336
- function Lt(e) {
5336
+ function Vt(e) {
5337
5337
  return {
5338
5338
  width: e.width,
5339
5339
  overflow: e.overflow,
@@ -6853,7 +6853,7 @@ function vy({
6853
6853
  x_axis: i,
6854
6854
  y_axis: o,
6855
6855
  reference_lines: l
6856
- } = e, s = ty(e, t), c = Lt(i.axisLabel.overflow.on_axis), d = _y(a), h = uy(e, s).map((p) => ({
6856
+ } = e, s = ty(e, t), c = Vt(i.axisLabel.overflow.on_axis), d = _y(a), h = uy(e, s).map((p) => ({
6857
6857
  ...p,
6858
6858
  name: C.get(d, p.name, p.name)
6859
6859
  }));
@@ -6922,7 +6922,7 @@ function xy({
6922
6922
  rowData: R
6923
6923
  });
6924
6924
  });
6925
- }, [p, h, d]), b = Ft(null), v = ne(() => {
6925
+ }, [p, h, d]), b = kt(null), v = ne(() => {
6926
6926
  var R;
6927
6927
  const M = (R = b.current) == null ? void 0 : R.getEchartsInstance();
6928
6928
  M && Ue(t, M.getOption());
@@ -7099,7 +7099,7 @@ function Cy(e) {
7099
7099
  backgroundColor: a
7100
7100
  } }) }),
7101
7101
  /* @__PURE__ */ u(Ye.Dropdown, { children: [
7102
- /* @__PURE__ */ r(ae, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ r(kt, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: T, style: {
7102
+ /* @__PURE__ */ r(ae, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ r(zt, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: T, style: {
7103
7103
  position: "absolute",
7104
7104
  top: "0.5em",
7105
7105
  right: "0.8em"
@@ -7699,7 +7699,7 @@ function jy({
7699
7699
  /* @__PURE__ */ r(By, { format: e })
7700
7700
  ] });
7701
7701
  }
7702
- const Vt = E.forwardRef(jy), Qy = ({
7702
+ const $t = E.forwardRef(jy), Qy = ({
7703
7703
  control: e,
7704
7704
  watch: t
7705
7705
  }) => {
@@ -7726,7 +7726,7 @@ const Vt = E.forwardRef(jy), Qy = ({
7726
7726
  /* @__PURE__ */ r(A, { mt: 10, mb: -15, variant: "dashed", label: n("chart.axis.section_title.label_format"), labelPosition: "center" }),
7727
7727
  /* @__PURE__ */ r(f, { name: "y_axis.label_formatter", control: e, render: ({
7728
7728
  field: a
7729
- }) => /* @__PURE__ */ r(Vt, { ...a }) })
7729
+ }) => /* @__PURE__ */ r($t, { ...a }) })
7730
7730
  ] })
7731
7731
  ] });
7732
7732
  };
@@ -8352,7 +8352,7 @@ const y_ = {
8352
8352
  }, i) => /* @__PURE__ */ r(un, { ref: i, label: n, placeholder: a, value: e, onChange: t, size: "xs", popoverProps: {
8353
8353
  withinPortal: !0,
8354
8354
  zIndex: 340
8355
- }, rightSection: e ? /* @__PURE__ */ r(kt, { size: "sm", onClick: () => {
8355
+ }, rightSection: e ? /* @__PURE__ */ r(zt, { size: "sm", onClick: () => {
8356
8356
  t("");
8357
8357
  } }) : null })), x_ = te(({
8358
8358
  value: e,
@@ -9599,7 +9599,7 @@ function bv(e, t) {
9599
9599
  const {
9600
9600
  overflow: n,
9601
9601
  ...a
9602
- } = e.x_axis.axisLabel, i = Lt(n.on_axis), o = t.length === 0;
9602
+ } = e.x_axis.axisLabel, i = Vt(n.on_axis), o = t.length === 0;
9603
9603
  return [ge.getXAxis({
9604
9604
  data: t,
9605
9605
  name: e.x_axis_name ?? "",
@@ -9769,7 +9769,7 @@ const Cv = D(({
9769
9769
  } = e, o = k(() => me({}, a, Ec), [a]), l = e.data, {
9770
9770
  width: s,
9771
9771
  height: c
9772
- } = e.viewport, [d, h] = H(0), [p, g] = H(0), b = Math.max(0, It(c) - d - p), v = Dt(s), x = _e();
9772
+ } = e.viewport, [d, h] = H(0), [p, g] = H(0), b = Math.max(0, Mt(c) - d - p), v = It(s), x = _e();
9773
9773
  function T(M) {
9774
9774
  const R = dn(o.stats.top, e.variables, x.payloadForViz, e.data), O = dn(o.stats.bottom, e.variables, x.payloadForViz, e.data);
9775
9775
  Ue(t, {
@@ -10949,7 +10949,7 @@ function Wv({
10949
10949
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("chart.y_axis.label_format"), labelPosition: "center" }),
10950
10950
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
10951
10951
  field: a
10952
- }) => /* @__PURE__ */ r(Vt, { ...a }) })
10952
+ }) => /* @__PURE__ */ r($t, { ...a }) })
10953
10953
  ] }),
10954
10954
  /* @__PURE__ */ u(I, { children: [
10955
10955
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("chart.y_axis.value_range"), labelPosition: "center" }),
@@ -11110,7 +11110,7 @@ function tx(e, t) {
11110
11110
  const p = j(a), g = j(i), b = t[p.queryID].map((x) => ({
11111
11111
  name: x[p.columnKey],
11112
11112
  value: x[g.columnKey]
11113
- })), v = Lt(o.overflow.on_axis);
11113
+ })), v = Vt(o.overflow.on_axis);
11114
11114
  return {
11115
11115
  type: "funnel",
11116
11116
  ...ex(n),
@@ -11258,7 +11258,7 @@ function sx({
11258
11258
  width: o,
11259
11259
  height: l
11260
11260
  } = e.viewport;
11261
- return !o || !l ? null : /* @__PURE__ */ r(at, { width: o, height: l, children: /* @__PURE__ */ r(lx, { instance: t, width: Dt(o), height: It(l), data: i, conf: a }) });
11261
+ return !o || !l ? null : /* @__PURE__ */ r(at, { width: o, height: l, children: /* @__PURE__ */ r(lx, { instance: t, width: It(o), height: Mt(l), data: i, conf: a }) });
11262
11262
  }
11263
11263
  const cx = ({
11264
11264
  item: e,
@@ -11762,7 +11762,7 @@ function Ix(e, t, n, a) {
11762
11762
  const {
11763
11763
  overflow: i,
11764
11764
  rotate: o
11765
- } = e.x_axis.axisLabel, l = Lt(i.on_axis);
11765
+ } = e.x_axis.axisLabel, l = Vt(i.on_axis);
11766
11766
  return ge.getXAxis({
11767
11767
  id: "main-x-axis",
11768
11768
  type: "category",
@@ -11810,7 +11810,7 @@ function Mx(e, t, n) {
11810
11810
  } = e.y_axis, {
11811
11811
  overflow: s,
11812
11812
  rotate: c
11813
- } = e.y_axis.axisLabel, d = Lt(s.on_axis);
11813
+ } = e.y_axis.axisLabel, d = Vt(s.on_axis);
11814
11814
  return ge.getYAxis({
11815
11815
  ...l,
11816
11816
  type: "category",
@@ -11863,7 +11863,7 @@ const mr = ({
11863
11863
  return /* @__PURE__ */ r(un, { label: e, placeholder: n("chart.visual_map.skip_range.follow_visual_map"), size: "xs", popoverProps: {
11864
11864
  withinPortal: !0,
11865
11865
  zIndex: 340
11866
- }, rightSection: t.value ? /* @__PURE__ */ r(kt, { size: "sm", onClick: () => {
11866
+ }, rightSection: t.value ? /* @__PURE__ */ r(zt, { size: "sm", onClick: () => {
11867
11867
  t.onChange("");
11868
11868
  } }) : null, ...t });
11869
11869
  }, Lx = ({
@@ -12029,10 +12029,10 @@ const mr = ({
12029
12029
  }) => /* @__PURE__ */ r(un, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
12030
12030
  withinPortal: !0,
12031
12031
  zIndex: 340
12032
- }, rightSection: o.value ? /* @__PURE__ */ r(kt, { size: "sm", onClick: () => {
12032
+ }, rightSection: o.value ? /* @__PURE__ */ r(zt, { size: "sm", onClick: () => {
12033
12033
  o.onChange("");
12034
12034
  } }) : null, ...o }) }) }),
12035
- /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(kt, { size: "sm", onClick: () => n(t) }) })
12035
+ /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(zt, { size: "sm", onClick: () => n(t) }) })
12036
12036
  ] });
12037
12037
  }, Ax = ({
12038
12038
  form: e
@@ -12359,7 +12359,7 @@ function Qx({
12359
12359
  const [p, g] = H(1), b = Fx(h, o, p);
12360
12360
  return !s || !c ? null : /* @__PURE__ */ u(at, { width: s, height: c, children: [
12361
12361
  o.pagination.page_size > 0 && /* @__PURE__ */ r(xx, { page: p, setPage: g, totalPages: d, width: s }),
12362
- /* @__PURE__ */ r(jx, { instance: t, variables: i, width: Dt(s), height: It(c), data: l, seriesData: b, conf: o, interactionManager: n })
12362
+ /* @__PURE__ */ r(jx, { instance: t, variables: i, width: It(s), height: Mt(c), data: l, seriesData: b, conf: o, interactionManager: n })
12363
12363
  ] });
12364
12364
  }
12365
12365
  function Hx({
@@ -12390,7 +12390,7 @@ function Hx({
12390
12390
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
12391
12391
  /* @__PURE__ */ r(f, { name: "heat_block.value_formatter", control: e, render: ({
12392
12392
  field: i
12393
- }) => /* @__PURE__ */ r(Vt, { ...i }) }),
12393
+ }) => /* @__PURE__ */ r($t, { ...i }) }),
12394
12394
  /* @__PURE__ */ r(A, { mb: -5, variant: "dashed", label: n("chart.label.label"), labelPosition: "center" }),
12395
12395
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12396
12396
  /* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
@@ -13141,7 +13141,7 @@ function kw(e, t) {
13141
13141
  const {
13142
13142
  name: n,
13143
13143
  axisLabel: a
13144
- } = e.x_axis, i = Lt(a.overflow.on_axis);
13144
+ } = e.x_axis, i = Vt(a.overflow.on_axis);
13145
13145
  return [ge.getXAxis({
13146
13146
  type: "category",
13147
13147
  id: "main-x-axis",
@@ -13318,7 +13318,7 @@ function Lw({
13318
13318
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("chart.label.label_format"), labelPosition: "center" }),
13319
13319
  /* @__PURE__ */ r(f, { name: "bar.label_formatter", control: e, render: ({
13320
13320
  field: a
13321
- }) => /* @__PURE__ */ r(Vt, { ...a }) })
13321
+ }) => /* @__PURE__ */ r($t, { ...a }) })
13322
13322
  ] })
13323
13323
  ] });
13324
13324
  }
@@ -13377,7 +13377,7 @@ const $w = (e, t) => `
13377
13377
  } = y(), [n, a] = H(!1), i = k(() => $w(e("viz.pareto_chart.line_80_20.param_section_note_1"), e("viz.pareto_chart.line_80_20.param_section_note_2")), [t.language]);
13378
13378
  return /* @__PURE__ */ u(F, { children: [
13379
13379
  /* @__PURE__ */ r(L, { variant: "subtle", size: "compact-sm", onClick: () => a((o) => !o), children: e(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
13380
- /* @__PURE__ */ r(sr, { in: n, children: /* @__PURE__ */ r(zt, { language: "typescript", withCopyButton: !1, code: i }) })
13380
+ /* @__PURE__ */ r(sr, { in: n, children: /* @__PURE__ */ r(Tt, { language: "typescript", withCopyButton: !1, code: i }) })
13381
13381
  ] });
13382
13382
  };
13383
13383
  function Pw({
@@ -14102,7 +14102,7 @@ function d0({
14102
14102
  width: l,
14103
14103
  height: s
14104
14104
  } = e.viewport;
14105
- return !l || !s || !i.label_field || !i.value_field ? null : /* @__PURE__ */ r(at, { width: l, height: s, children: /* @__PURE__ */ r(c0, { instance: t, conf: i, width: Dt(l), height: It(s), data: o, interactionManager: n }) });
14105
+ return !l || !s || !i.label_field || !i.value_field ? null : /* @__PURE__ */ r(at, { width: l, height: s, children: /* @__PURE__ */ r(c0, { instance: t, conf: i, width: It(l), height: Mt(s), data: o, interactionManager: n }) });
14106
14106
  }
14107
14107
  function u0(e) {
14108
14108
  const [t, n] = e;
@@ -14178,7 +14178,7 @@ const p0 = te(({
14178
14178
  minWidth: "40px",
14179
14179
  maxWidth: "40px",
14180
14180
  flex: 0
14181
- }, children: /* @__PURE__ */ r(kt, { onClick: a, size: "sm" }) })
14181
+ }, children: /* @__PURE__ */ r(zt, { onClick: a, size: "sm" }) })
14182
14182
  ] });
14183
14183
  }, g0 = ({
14184
14184
  append: e
@@ -14206,7 +14206,7 @@ const p0 = te(({
14206
14206
  flex: 0
14207
14207
  } })
14208
14208
  ] });
14209
- }, f0 = Object.entries(C.pick(qt.graphics, ["compared", "level", "depth", "multiple"])).map(([e, t]) => ({
14209
+ }, f0 = Object.entries(C.pick(Ft.graphics, ["compared", "level", "depth", "multiple"])).map(([e, t]) => ({
14210
14210
  name: e,
14211
14211
  colors: Object.values(t)
14212
14212
  }));
@@ -14865,7 +14865,7 @@ function H0({
14865
14865
  width: s,
14866
14866
  height: c
14867
14867
  } = e.viewport;
14868
- return !s || !c || !o || Ll(o == null ? void 0 : o.dimensions) ? null : /* @__PURE__ */ r(at, { width: s, height: c, children: /* @__PURE__ */ r(Q0, { instance: t, variables: i, width: Dt(s), height: It(c), data: l, conf: o, interactionManager: n }) });
14868
+ return !s || !c || !o || Ll(o == null ? void 0 : o.dimensions) ? null : /* @__PURE__ */ r(at, { width: s, height: c, children: /* @__PURE__ */ r(Q0, { instance: t, variables: i, width: It(s), height: Mt(c), data: l, conf: o, interactionManager: n }) });
14869
14869
  }
14870
14870
  function G0({
14871
14871
  control: e,
@@ -14954,7 +14954,7 @@ function U0({
14954
14954
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("viz.radar_chart.metric.value_formatter"), labelPosition: "center" }),
14955
14955
  /* @__PURE__ */ r(f, { name: `dimensions.${t}.formatter`, control: e, render: ({
14956
14956
  field: a
14957
- }) => /* @__PURE__ */ r(Vt, { ...a }) })
14957
+ }) => /* @__PURE__ */ r($t, { ...a }) })
14958
14958
  ] })
14959
14959
  ] });
14960
14960
  }
@@ -15778,7 +15778,7 @@ const fa = (e) => {
15778
15778
  width: a,
15779
15779
  height: i
15780
15780
  }) => {
15781
- const o = fa(n.x_axis.data_key), l = fa(n.regression.y_axis_data_key), s = fa(n.regression.group_by_key), c = j(o.value), d = j(l.value), h = j(s.value), p = k(() => y1(Ge({}, n, Xc()), e.data, c, d, h), [n, e.data, c, d, h]), g = Ft(null), b = (T) => {
15781
+ const o = fa(n.x_axis.data_key), l = fa(n.regression.y_axis_data_key), s = fa(n.regression.group_by_key), c = j(o.value), d = j(l.value), h = j(s.value), p = k(() => y1(Ge({}, n, Xc()), e.data, c, d, h), [n, e.data, c, d, h]), g = kt(null), b = (T) => {
15782
15782
  g.current = T;
15783
15783
  }, v = ne(() => {
15784
15784
  const T = g.current;
@@ -16002,7 +16002,7 @@ const E1 = {
16002
16002
  c("content"), N(() => {
16003
16003
  d(o);
16004
16004
  }, [o]);
16005
- const h = Ft(null), p = () => {
16005
+ const h = kt(null), p = () => {
16006
16006
  var g;
16007
16007
  return (g = h.current) == null ? void 0 : g.click();
16008
16008
  };
@@ -16641,7 +16641,7 @@ function mS({
16641
16641
  label: {
16642
16642
  show: !!t.label_position,
16643
16643
  position: t.label_position,
16644
- ...Lt(t.label_overflow.label),
16644
+ ...Vt(t.label_overflow.label),
16645
16645
  formatter: ({
16646
16646
  value: l
16647
16647
  }) => l[o.columnKey]
@@ -16766,7 +16766,7 @@ function _S(e, t) {
16766
16766
  const n = t.every((s) => !Number.isNaN(Number(s))), {
16767
16767
  overflow: a,
16768
16768
  ...i
16769
- } = e.x_axis.axisLabel, o = Lt(a.on_axis), l = t.length === 0;
16769
+ } = e.x_axis.axisLabel, o = Vt(a.on_axis), l = t.length === 0;
16770
16770
  return [ge.getXAxis({
16771
16771
  data: t,
16772
16772
  name: e.x_axis.name ?? "",
@@ -16918,7 +16918,7 @@ function CS({
16918
16918
  } = e, o = k(() => me({}, a, ed), [a]), l = e.data, {
16919
16919
  width: s,
16920
16920
  height: c
16921
- } = e.viewport, [d, h] = H(0), [p, g] = H(0), b = Math.max(0, It(c) - d - p), v = Dt(s);
16921
+ } = e.viewport, [d, h] = H(0), [p, g] = H(0), b = Math.max(0, Mt(c) - d - p), v = It(s);
16922
16922
  return !s || !c ? null : /* @__PURE__ */ u(at, { width: s, height: c, children: [
16923
16923
  /* @__PURE__ */ r(Dr, { onHeightChange: h, value: o.stats.top, context: e }),
16924
16924
  /* @__PURE__ */ r(SS, { instance: t, variables: i, width: v, height: b, data: l, conf: o, interactionManager: n }),
@@ -17467,7 +17467,7 @@ function BS({
17467
17467
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("chart.y_axis.label_format"), labelPosition: "center" }),
17468
17468
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
17469
17469
  field: a
17470
- }) => /* @__PURE__ */ r(Vt, { ...a }) })
17470
+ }) => /* @__PURE__ */ r($t, { ...a }) })
17471
17471
  ] }),
17472
17472
  /* @__PURE__ */ u(I, { children: [
17473
17473
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("chart.y_axis.value_range"), labelPosition: "center" }),
@@ -17762,7 +17762,7 @@ const oC = D(({
17762
17762
  context: e,
17763
17763
  instance: t
17764
17764
  }) => {
17765
- const n = Ft(null), a = mt({
17765
+ const n = kt(null), a = mt({
17766
17766
  vizManager: e.vizManager,
17767
17767
  instance: t
17768
17768
  }), i = pt(a.triggerManager, nd.id), o = _e(), {
@@ -18751,7 +18751,7 @@ function tk(e) {
18751
18751
  const i = new Function(`return ${a}`)()({
18752
18752
  value: t,
18753
18753
  row_data: n
18754
- }, Mt);
18754
+ }, Lt);
18755
18755
  return /* @__PURE__ */ r(Nn, { ...e, children: i });
18756
18756
  }
18757
18757
  function nk(e) {
@@ -20404,7 +20404,7 @@ function v2({
20404
20404
  rowData: M
20405
20405
  });
20406
20406
  });
20407
- }, [s, c, i]), h = Ft(null), p = ne(() => {
20407
+ }, [s, c, i]), h = kt(null), p = ne(() => {
20408
20408
  var x;
20409
20409
  const v = (x = h.current) == null ? void 0 : x.getEchartsInstance();
20410
20410
  v && Ue(l, v.getOption());
@@ -20435,7 +20435,7 @@ function x2({
20435
20435
  width: s,
20436
20436
  height: c
20437
20437
  } = e.viewport;
20438
- return !o.calendar.data_key || !o.heat_block.data_key || !s || !c ? null : /* @__PURE__ */ r(at, { width: s, height: c, children: /* @__PURE__ */ r(v2, { instance: t, variables: i, width: Dt(s), height: It(c), data: l, conf: o, interactionManager: n }) });
20438
+ return !o.calendar.data_key || !o.heat_block.data_key || !s || !c ? null : /* @__PURE__ */ r(at, { width: s, height: c, children: /* @__PURE__ */ r(v2, { instance: t, variables: i, width: It(s), height: Mt(c), data: l, conf: o, interactionManager: n }) });
20439
20439
  }
20440
20440
  const w2 = [{
20441
20441
  label: "中文",
@@ -20490,7 +20490,7 @@ function C2({
20490
20490
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
20491
20491
  /* @__PURE__ */ r(f, { name: "heat_block.value_formatter", control: e, render: ({
20492
20492
  field: a
20493
- }) => /* @__PURE__ */ r(Vt, { ...a }) })
20493
+ }) => /* @__PURE__ */ r($t, { ...a }) })
20494
20494
  ] });
20495
20495
  }
20496
20496
  const k2 = ({
@@ -21026,7 +21026,7 @@ function K2(e, t) {
21026
21026
  const n = t.every((l) => !Number.isNaN(Number(l))), {
21027
21027
  overflow: a,
21028
21028
  ...i
21029
- } = e.y_axis.axisLabel, o = Lt(a.on_axis);
21029
+ } = e.y_axis.axisLabel, o = Vt(a.on_axis);
21030
21030
  return [ge.getXAxis({
21031
21031
  data: t,
21032
21032
  name: e.y_axis.name ?? "",
@@ -21105,7 +21105,7 @@ function Z2({
21105
21105
  width: s,
21106
21106
  height: c
21107
21107
  } = e.viewport;
21108
- return !s || !c ? null : /* @__PURE__ */ r(at, { width: s, height: c, children: /* @__PURE__ */ r(X2, { instance: t, variables: i, width: Dt(s), height: It(c), data: l, conf: o, interactionManager: n }) });
21108
+ return !s || !c ? null : /* @__PURE__ */ r(at, { width: s, height: c, children: /* @__PURE__ */ r(X2, { instance: t, variables: i, width: It(s), height: Mt(c), data: l, conf: o, interactionManager: n }) });
21109
21109
  }
21110
21110
  function J2({
21111
21111
  control: e,
@@ -21370,7 +21370,7 @@ function i3({
21370
21370
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("chart.x_axis.label_format"), labelPosition: "center" }),
21371
21371
  /* @__PURE__ */ r(f, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
21372
21372
  field: a
21373
- }) => /* @__PURE__ */ r(Vt, { ...a }) })
21373
+ }) => /* @__PURE__ */ r($t, { ...a }) })
21374
21374
  ] }),
21375
21375
  /* @__PURE__ */ u(I, { children: [
21376
21376
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("chart.x_axis.value_range"), labelPosition: "center" }),
@@ -22322,7 +22322,7 @@ function B3({
22322
22322
  g((x) => x || h);
22323
22323
  }, [h]), !s.data_key || !d || !h || !o || !l)
22324
22324
  return null;
22325
- const b = Math.max(Dt(o), 300), v = Math.max(It(l), 370);
22325
+ const b = Math.max(It(o), 300), v = Math.max(Mt(l), 370);
22326
22326
  return /* @__PURE__ */ u($, { pt: nt.top, pr: nt.right, pb: nt.bottom, pl: nt.left, sx: {
22327
22327
  overflow: "hidden",
22328
22328
  height: l,
@@ -22740,7 +22740,7 @@ function iz({
22740
22740
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: i("numbro.format.label"), labelPosition: "center" }),
22741
22741
  /* @__PURE__ */ r(f, { name: `metrics.${t}.formatter`, control: e, render: ({
22742
22742
  field: o
22743
- }) => /* @__PURE__ */ r(Vt, { ...o }) }),
22743
+ }) => /* @__PURE__ */ r($t, { ...o }) }),
22744
22744
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: i("viz.merico_stats.metric.others"), labelPosition: "center" }),
22745
22745
  /* @__PURE__ */ r(f, { name: `metrics.${t}.postfix`, control: e, render: ({
22746
22746
  field: o
@@ -22980,7 +22980,7 @@ function gz({
22980
22980
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
22981
22981
  /* @__PURE__ */ r(f, { name: "heat_block.value_formatter", control: e, render: ({
22982
22982
  field: i
22983
- }) => /* @__PURE__ */ r(Vt, { ...i }) }),
22983
+ }) => /* @__PURE__ */ r($t, { ...i }) }),
22984
22984
  /* @__PURE__ */ r(A, { mb: -5, variant: "dashed", label: n("chart.label.label"), labelPosition: "center" }),
22985
22985
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
22986
22986
  /* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
@@ -23393,7 +23393,7 @@ function Lz(e, t, n) {
23393
23393
  const {
23394
23394
  overflow: a,
23395
23395
  rotate: i
23396
- } = e.x_axis.axisLabel, o = Lt(a.on_axis);
23396
+ } = e.x_axis.axisLabel, o = Vt(a.on_axis);
23397
23397
  return ge.getXAxis({
23398
23398
  id: "main-x-axis",
23399
23399
  type: "category",
@@ -23435,7 +23435,7 @@ function Vz(e, t) {
23435
23435
  } = e.y_axis, {
23436
23436
  overflow: o,
23437
23437
  rotate: l
23438
- } = e.y_axis.axisLabel, s = Lt(o.on_axis);
23438
+ } = e.y_axis.axisLabel, s = Vt(o.on_axis);
23439
23439
  return ge.getYAxis({
23440
23440
  ...i,
23441
23441
  type: "category",
@@ -23551,7 +23551,7 @@ function Pz({
23551
23551
  width: s,
23552
23552
  height: c
23553
23553
  } = e.viewport;
23554
- return !s || !c ? null : /* @__PURE__ */ r(at, { width: s, height: c, children: /* @__PURE__ */ r(Rz, { instance: t, variables: i, width: Dt(s), height: It(c), data: l, conf: o, interactionManager: n }) });
23554
+ return !s || !c ? null : /* @__PURE__ */ r(at, { width: s, height: c, children: /* @__PURE__ */ r(Rz, { instance: t, variables: i, width: It(s), height: Mt(c), data: l, conf: o, interactionManager: n }) });
23555
23555
  }
23556
23556
  const Az = {
23557
23557
  merico_heatmap: {
@@ -24024,17 +24024,17 @@ const y5 = {
24024
24024
  color: [..._5, ...v5]
24025
24025
  }
24026
24026
  }), $n = new mg(), xe = {
24027
- pluginManager: $t("pluginManager"),
24028
- vizManager: $t("vizManager"),
24029
- colorManager: $t("colorManager"),
24030
- panelAddonManager: $t("panelAddonManager"),
24027
+ pluginManager: Rt("pluginManager"),
24028
+ vizManager: Rt("vizManager"),
24029
+ colorManager: Rt("colorManager"),
24030
+ panelAddonManager: Rt("panelAddonManager"),
24031
24031
  instanceScope: {
24032
- panelModel: $t("panelModel"),
24033
- vizInstance: $t("vizInstance"),
24034
- interactionManager: $t("interactionManager"),
24035
- migrator: $t("migrator"),
24036
- operationManager: $t("operationManager"),
24037
- triggerManager: $t("triggerManager")
24032
+ panelModel: Rt("panelModel"),
24033
+ vizInstance: Rt("vizInstance"),
24034
+ interactionManager: Rt("interactionManager"),
24035
+ migrator: Rt("migrator"),
24036
+ operationManager: Rt("operationManager"),
24037
+ triggerManager: Rt("triggerManager")
24038
24038
  }
24039
24039
  }, Wi = () => {
24040
24040
  try {
@@ -25663,7 +25663,7 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
25663
25663
  } = y(), [t, n] = H(!1);
25664
25664
  return /* @__PURE__ */ u(F, { children: [
25665
25665
  /* @__PURE__ */ r(L, { variant: "subtle", size: "compact-sm", onClick: () => n((a) => !a), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
25666
- /* @__PURE__ */ r(sr, { in: t, children: /* @__PURE__ */ r(zt, { language: "typescript", withCopyButton: !1, code: W5 }) })
25666
+ /* @__PURE__ */ r(sr, { in: t, children: /* @__PURE__ */ r(Tt, { language: "typescript", withCopyButton: !1, code: W5 }) })
25667
25667
  ] });
25668
25668
  }, U5 = {
25669
25669
  [Q.Checkbox]: "true",
@@ -26126,7 +26126,7 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
26126
26126
  {
26127
26127
  disabled: e,
26128
26128
  allowClear: {
26129
- clearIcon: /* @__PURE__ */ r(kt, { size: "sm" })
26129
+ clearIcon: /* @__PURE__ */ r(zt, { size: "sm" })
26130
26130
  },
26131
26131
  treeCheckStrictly: d,
26132
26132
  labelInValue: !0,
@@ -26478,7 +26478,7 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
26478
26478
  {
26479
26479
  disabled: e,
26480
26480
  allowClear: {
26481
- clearIcon: /* @__PURE__ */ r(kt, { size: "sm" })
26481
+ clearIcon: /* @__PURE__ */ r(zt, { size: "sm" })
26482
26482
  },
26483
26483
  multiple: !1,
26484
26484
  labelInValue: !0,
@@ -26779,14 +26779,14 @@ const mT = {
26779
26779
  month: /* @__PURE__ */ new Set(["m", "m2", "m3", "m6", "y"]),
26780
26780
  quarter: /* @__PURE__ */ new Set(["m", "m2", "m6", "y"])
26781
26781
  };
26782
- function Rt(e, t) {
26782
+ function Pt(e, t) {
26783
26783
  return !mT[e].has(t);
26784
26784
  }
26785
26785
  const Hd = (e) => [{
26786
26786
  key: "m",
26787
26787
  value: "last month",
26788
26788
  group: "last",
26789
- disabled: Rt(e, "m"),
26789
+ disabled: Pt(e, "m"),
26790
26790
  getRange: (t) => {
26791
26791
  const n = P();
26792
26792
  return {
@@ -26799,7 +26799,7 @@ const Hd = (e) => [{
26799
26799
  key: "m2",
26800
26800
  value: "last 2 months",
26801
26801
  group: "last",
26802
- disabled: Rt(e, "m2"),
26802
+ disabled: Pt(e, "m2"),
26803
26803
  getRange: (t) => {
26804
26804
  const n = P();
26805
26805
  return {
@@ -26812,7 +26812,7 @@ const Hd = (e) => [{
26812
26812
  key: "m3",
26813
26813
  value: "last 3 months",
26814
26814
  group: "last",
26815
- disabled: Rt(e, "m3"),
26815
+ disabled: Pt(e, "m3"),
26816
26816
  getRange: (t) => {
26817
26817
  const n = P();
26818
26818
  return {
@@ -26825,7 +26825,7 @@ const Hd = (e) => [{
26825
26825
  key: "m6",
26826
26826
  value: "last 6 months",
26827
26827
  group: "last",
26828
- disabled: Rt(e, "m6"),
26828
+ disabled: Pt(e, "m6"),
26829
26829
  getRange: (t) => {
26830
26830
  const n = P();
26831
26831
  return {
@@ -26838,7 +26838,7 @@ const Hd = (e) => [{
26838
26838
  key: "y",
26839
26839
  value: "last year",
26840
26840
  group: "last",
26841
- disabled: Rt(e, "y"),
26841
+ disabled: Pt(e, "y"),
26842
26842
  getRange: (t) => {
26843
26843
  const n = P();
26844
26844
  return {
@@ -26851,7 +26851,7 @@ const Hd = (e) => [{
26851
26851
  key: "d30",
26852
26852
  value: "recent 30 days",
26853
26853
  group: "recent",
26854
- disabled: Rt(e, "d30"),
26854
+ disabled: Pt(e, "d30"),
26855
26855
  getRange: (t) => {
26856
26856
  const n = P();
26857
26857
  return {
@@ -26864,7 +26864,7 @@ const Hd = (e) => [{
26864
26864
  key: "d60",
26865
26865
  value: "recent 60 days",
26866
26866
  group: "recent",
26867
- disabled: Rt(e, "d60"),
26867
+ disabled: Pt(e, "d60"),
26868
26868
  getRange: (t) => {
26869
26869
  const n = P();
26870
26870
  return {
@@ -26877,7 +26877,7 @@ const Hd = (e) => [{
26877
26877
  key: "d90",
26878
26878
  value: "recent 90 days",
26879
26879
  group: "recent",
26880
- disabled: Rt(e, "d90"),
26880
+ disabled: Pt(e, "d90"),
26881
26881
  getRange: (t) => {
26882
26882
  const n = P();
26883
26883
  return {
@@ -26890,7 +26890,7 @@ const Hd = (e) => [{
26890
26890
  key: "d180",
26891
26891
  value: "recent 180 days",
26892
26892
  group: "recent",
26893
- disabled: Rt(e, "d180"),
26893
+ disabled: Pt(e, "d180"),
26894
26894
  getRange: (t) => {
26895
26895
  const n = P();
26896
26896
  return {
@@ -26903,7 +26903,7 @@ const Hd = (e) => [{
26903
26903
  key: "d365",
26904
26904
  value: "recent 365 days",
26905
26905
  group: "recent",
26906
- disabled: Rt(e, "d365"),
26906
+ disabled: Pt(e, "d365"),
26907
26907
  getRange: (t) => {
26908
26908
  const n = P();
26909
26909
  return {
@@ -27887,7 +27887,7 @@ function lu(e) {
27887
27887
  function IT(e, t) {
27888
27888
  const n = e.default_value_func;
27889
27889
  try {
27890
- const a = new Function(`return ${n}`)()(e, Mt, t);
27890
+ const a = new Function(`return ${n}`)()(e, Lt, t);
27891
27891
  return e.config._name === "date-range" && Array.isArray(a) ? {
27892
27892
  value: a,
27893
27893
  shortcut: null
@@ -28477,13 +28477,13 @@ const RT = E5.views((e) => ({
28477
28477
  e.error = t;
28478
28478
  }
28479
28479
  })).actions((e) => ({
28480
- runSQL: Ot(function* () {
28480
+ runSQL: qt(function* () {
28481
28481
  var t;
28482
28482
  if (e.valid && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
28483
28483
  e.controller = new AbortController(), e.state = "loading";
28484
28484
  try {
28485
28485
  const n = e.payload, a = e.config;
28486
- e.data = yield* At(LT({
28486
+ e.data = yield* Et(LT({
28487
28487
  payload: n,
28488
28488
  name: e.name,
28489
28489
  query: {
@@ -28506,7 +28506,7 @@ const RT = E5.views((e) => ({
28506
28506
  }
28507
28507
  }
28508
28508
  }),
28509
- runHTTP: Ot(function* () {
28509
+ runHTTP: qt(function* () {
28510
28510
  var t;
28511
28511
  if (!(!e.valid || !e.datasource) && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
28512
28512
  e.controller = new AbortController(), e.state = "loading";
@@ -28518,7 +28518,7 @@ const RT = E5.views((e) => ({
28518
28518
  } = e.json;
28519
28519
  let o = JSON.parse(e.httpConfigString);
28520
28520
  o = kr(e.datasource, o);
28521
- const l = yield* At(VT({
28521
+ const l = yield* Et(VT({
28522
28522
  type: n,
28523
28523
  key: a,
28524
28524
  configString: JSON.stringify(o),
@@ -28537,7 +28537,7 @@ const RT = E5.views((e) => ({
28537
28537
  }
28538
28538
  }
28539
28539
  }),
28540
- runMericoMetricQuery: Ot(function* () {
28540
+ runMericoMetricQuery: qt(function* () {
28541
28541
  var t;
28542
28542
  if (!(!e.valid || !e.datasource) && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet && e.metricQueryPayloadValid)) {
28543
28543
  e.controller = new AbortController(), e.state = "loading";
@@ -28553,7 +28553,7 @@ const RT = E5.views((e) => ({
28553
28553
  data: e.metricQueryPayload
28554
28554
  };
28555
28555
  o = kr(e.datasource, o);
28556
- const l = yield* At($T({
28556
+ const l = yield* Et($T({
28557
28557
  key: a,
28558
28558
  configString: JSON.stringify(o),
28559
28559
  name: e.name,
@@ -28578,7 +28578,7 @@ const RT = E5.views((e) => ({
28578
28578
  id: o.id,
28579
28579
  name: o.name,
28580
28580
  data: C.cloneDeep(o.data)
28581
- })), n = e.contentModel.dashboardStateValues, a = e.pre_process, i = new Function(`return ${a}`)()(t, n, Mt);
28581
+ })), n = e.contentModel.dashboardStateValues, a = e.pre_process, i = new Function(`return ${a}`)()(t, n, Lt);
28582
28582
  e.data = i, e.state = "idle", e.error = null;
28583
28583
  } catch (t) {
28584
28584
  e.data = [], e.error = t.message, e.state = "error";
@@ -28747,7 +28747,7 @@ const RT = E5.views((e) => ({
28747
28747
  const n = JSON.stringify(this.getSchema(t), null, 2);
28748
28748
  Xn("Queries", n);
28749
28749
  },
28750
- forceReloadVisibleQueries: Ot(function* () {
28750
+ forceReloadVisibleQueries: qt(function* () {
28751
28751
  const {
28752
28752
  filterQueries: t,
28753
28753
  panelQueries: n
@@ -28944,13 +28944,13 @@ class OT {
28944
28944
  });
28945
28945
  }
28946
28946
  get changed() {
28947
- return !Oe(Et(this.origin), Et(this.copy));
28947
+ return !Oe(Ot(this.origin), Ot(this.copy));
28948
28948
  }
28949
28949
  commit() {
28950
- He(this.origin, Et(this.copy));
28950
+ He(this.origin, Ot(this.copy));
28951
28951
  }
28952
28952
  reset() {
28953
- He(this.copy, Et(this.origin));
28953
+ He(this.copy, Ot(this.origin));
28954
28954
  }
28955
28955
  update(t) {
28956
28956
  He(this.copy, t);
@@ -29425,7 +29425,7 @@ const qT = (e) => new OT(e), FT = ({
29425
29425
  count: i.length
29426
29426
  }), children: /* @__PURE__ */ r(Bt, { variant: "light", children: i.length }) })
29427
29427
  ] }),
29428
- /* @__PURE__ */ r(Bm, { disabled: e, allowClear: !0, className: p(h.root, "check-select"), dropdownClassName: p(h.dropdown, ""), onDropdownVisibleChange: v, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: n, clearIcon: () => /* @__PURE__ */ r(kt, { size: "sm" }), value: i, onChange: o, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r(Yi, { errorMessage: s }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => d("filter.widget.common.x_selected", {
29428
+ /* @__PURE__ */ r(Bm, { disabled: e, allowClear: !0, className: p(h.root, "check-select"), dropdownClassName: p(h.dropdown, ""), onDropdownVisibleChange: v, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: n, clearIcon: () => /* @__PURE__ */ r(zt, { size: "sm" }), value: i, onChange: o, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r(Yi, { errorMessage: s }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => d("filter.widget.common.x_selected", {
29429
29429
  count: Z.length
29430
29430
  }), searchValue: T, onSearch: M, filterOption: !1, dropdownRender: (Z) => /* @__PURE__ */ u(F, { children: [
29431
29431
  O.size > 0 && !T && /* @__PURE__ */ r(_, { px: "xs", py: "xs", onClick: oe, styles: KT, children: /* @__PURE__ */ r(J, { size: "xs", checked: W, onChange: C.noop, label: d("common.actions.select_all") }) }),
@@ -30106,14 +30106,14 @@ const OD = D(function() {
30106
30106
  name: n,
30107
30107
  title: a
30108
30108
  } = t;
30109
- return a.show ? /* @__PURE__ */ r(_, { grow: !0, justify: "center", className: "panel-title-wrapper", sx: {
30109
+ return a.show ? /* @__PURE__ */ r(_, { "data-testid": "panel-title-bar", grow: !0, justify: "center", className: "panel-title-wrapper", sx: {
30110
30110
  flexGrow: 1
30111
30111
  }, children: /* @__PURE__ */ r(z, { size: "sm", ta: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
30112
30112
  }), io = E.createContext({
30113
30113
  onScreenshot: $l
30114
30114
  });
30115
30115
  function qD(e) {
30116
- const t = Ft(null), {
30116
+ const t = kt(null), {
30117
30117
  onScreenshot: n
30118
30118
  } = ut(io);
30119
30119
  return {
@@ -30450,11 +30450,13 @@ const JD = D(({
30450
30450
  /* @__PURE__ */ r(K.Dropdown, { children: e })
30451
30451
  ] }) }));
30452
30452
  function e6(e) {
30453
- const [t, n] = H(null);
30453
+ const t = kt(null), n = ne((a) => {
30454
+ t.current = a;
30455
+ }, []);
30454
30456
  return N(() => {
30455
- n(null);
30457
+ t.current = null;
30456
30458
  }, [e]), {
30457
- echartsOptions: t,
30459
+ getEchartsOptions: () => t.current,
30458
30460
  setEchartsOptions: n
30459
30461
  };
30460
30462
  }
@@ -30472,7 +30474,7 @@ const t6 = {
30472
30474
  withAddon: o,
30473
30475
  withPanelTitle: l
30474
30476
  } = ao(), s = o ? As : E.Fragment, {
30475
- echartsOptions: c,
30477
+ getEchartsOptions: c,
30476
30478
  setEchartsOptions: d
30477
30479
  } = e6(e.viz.type), {
30478
30480
  inEditMode: h
@@ -30483,9 +30485,9 @@ const t6 = {
30483
30485
  loading: e.dataLoading,
30484
30486
  errors: e.queryErrors,
30485
30487
  downloadPanelScreenshot: i,
30486
- echartsOptions: c,
30488
+ getEchartsOptions: c,
30487
30489
  setEchartsOptions: d
30488
- }, children: /* @__PURE__ */ r($, { id: e.id, className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, ref: a, p: 0, sx: {
30490
+ }, children: /* @__PURE__ */ r($, { id: e.id, "data-testid": "panel-root", className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, ref: a, p: 0, sx: {
30489
30491
  ...t6,
30490
30492
  ...t
30491
30493
  }, children: /* @__PURE__ */ u(s, { children: [
@@ -30548,26 +30550,26 @@ const t6 = {
30548
30550
  } = Zs();
30549
30551
  return k(() => [{
30550
30552
  order: 10,
30551
- render: () => /* @__PURE__ */ r(Ru, {})
30553
+ render: () => /* @__PURE__ */ r(Ru, {}, "refresh")
30552
30554
  }, {
30553
30555
  order: 100,
30554
- render: () => /* @__PURE__ */ r(Lu, {})
30556
+ render: () => /* @__PURE__ */ r(Lu, {}, "download-data")
30555
30557
  }, {
30556
30558
  order: 300,
30557
- render: () => /* @__PURE__ */ r(Vu, {})
30559
+ render: () => /* @__PURE__ */ r(Vu, {}, "download-screenshot")
30558
30560
  }, {
30559
30561
  order: 400,
30560
- render: () => /* @__PURE__ */ r($u, { view: e })
30562
+ render: () => /* @__PURE__ */ r($u, { view: e }, "enter-full-screen")
30561
30563
  }, ...t].sort((a, i) => a.order - i.order), [t]);
30562
30564
  }, i6 = D(({
30563
30565
  view: e
30564
30566
  }) => {
30565
30567
  const {
30566
- echartsOptions: t,
30568
+ getEchartsOptions: t,
30567
30569
  panel: n
30568
30570
  } = Ie();
30569
30571
  return a6(e).map((i) => i.render({
30570
- echartsOptions: t,
30572
+ getEchartsOptions: t,
30571
30573
  inEditMode: !1,
30572
30574
  panelID: n.id,
30573
30575
  viewID: e.id
@@ -30618,7 +30620,7 @@ const t6 = {
30618
30620
  }) => {
30619
30621
  const {
30620
30622
  t: n
30621
- } = y(), a = Tt(), i = ie(), o = () => a.openConfirmModal({
30623
+ } = y(), a = Dt(), i = ie(), o = () => a.openConfirmModal({
30622
30624
  title: `${n("panel.delete")}?`,
30623
30625
  labels: {
30624
30626
  confirm: n("common.actions.confirm"),
@@ -30680,53 +30682,53 @@ const t6 = {
30680
30682
  } = Zs(), l = p6(e);
30681
30683
  return k(() => [{
30682
30684
  order: 10,
30683
- render: () => /* @__PURE__ */ r(Ru, {})
30685
+ render: () => /* @__PURE__ */ r(Ru, {}, "refresh")
30684
30686
  }, {
30685
30687
  order: 100,
30686
- render: () => /* @__PURE__ */ r(Lu, {})
30688
+ render: () => /* @__PURE__ */ r(Lu, {}, "download-data")
30687
30689
  }, {
30688
30690
  order: 200,
30689
- render: () => /* @__PURE__ */ r(n6, {})
30691
+ render: () => /* @__PURE__ */ r(n6, {}, "download-schema")
30690
30692
  }, {
30691
30693
  order: 300,
30692
- render: () => /* @__PURE__ */ r(Vu, {})
30694
+ render: () => /* @__PURE__ */ r(Vu, {}, "download-screenshot")
30693
30695
  }, {
30694
30696
  order: 400,
30695
- render: () => /* @__PURE__ */ r($u, { view: e })
30697
+ render: () => /* @__PURE__ */ r($u, { view: e }, "enter-full-screen")
30696
30698
  }, ...l, {
30697
30699
  order: 600,
30698
- render: () => /* @__PURE__ */ r(A, { label: t("common.actions.edit"), labelPosition: "center" })
30700
+ render: () => /* @__PURE__ */ r(A, { label: t("common.actions.edit"), labelPosition: "center" }, "edit-divider")
30699
30701
  }, {
30700
30702
  order: 700,
30701
- render: () => /* @__PURE__ */ r(o6, { panelID: a, viewID: i })
30703
+ render: () => /* @__PURE__ */ r(o6, { panelID: a, viewID: i }, "open-tab-panel")
30702
30704
  }, {
30703
30705
  order: 800,
30704
- render: () => /* @__PURE__ */ r(l6, { panelID: a, viewID: i })
30706
+ render: () => /* @__PURE__ */ r(l6, { panelID: a, viewID: i }, "open-tab-variable")
30705
30707
  }, {
30706
30708
  order: 900,
30707
- render: () => /* @__PURE__ */ r(s6, { panelID: a, viewID: i })
30709
+ render: () => /* @__PURE__ */ r(s6, { panelID: a, viewID: i }, "open-tab-visualization")
30708
30710
  }, {
30709
30711
  order: 1e3,
30710
- render: () => /* @__PURE__ */ r(c6, { panelID: a, viewID: i })
30712
+ render: () => /* @__PURE__ */ r(c6, { panelID: a, viewID: i }, "open-tab-interaction")
30711
30713
  }, {
30712
30714
  order: 1100,
30713
- render: () => /* @__PURE__ */ r(A, { label: t("common.actions.actions"), labelPosition: "center" })
30715
+ render: () => /* @__PURE__ */ r(A, { label: t("common.actions.actions"), labelPosition: "center" }, "actions-divider")
30714
30716
  }, {
30715
30717
  order: 1200,
30716
- render: () => /* @__PURE__ */ r(u6, { panelID: a, viewID: i })
30718
+ render: () => /* @__PURE__ */ r(u6, { panelID: a, viewID: i }, "duplicate")
30717
30719
  }, {
30718
30720
  order: 1300,
30719
- render: () => /* @__PURE__ */ r(d6, { panelID: a, viewID: i })
30721
+ render: () => /* @__PURE__ */ r(d6, { panelID: a, viewID: i }, "delete-panel")
30720
30722
  }, ...o].sort((c, d) => c.order - d.order), [l, o]);
30721
30723
  }, g6 = D(({
30722
30724
  view: e
30723
30725
  }) => {
30724
30726
  const {
30725
- echartsOptions: t,
30727
+ getEchartsOptions: t,
30726
30728
  panel: n
30727
30729
  } = Ie();
30728
30730
  return m6(e).map((i) => i.render({
30729
- echartsOptions: t,
30731
+ getEchartsOptions: t,
30730
30732
  inEditMode: !0,
30731
30733
  panelID: n.id,
30732
30734
  viewID: e.id
@@ -30846,7 +30848,7 @@ const S6 = E.forwardRef(({
30846
30848
  return /* @__PURE__ */ r(T6, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: i, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: a.map((o) => /* @__PURE__ */ r("div", { "data-grid": o.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r(Pu, { view: e, panel: o.panel }) }, o.id)) });
30847
30849
  });
30848
30850
  function so(e) {
30849
- const t = Ft(null), {
30851
+ const t = kt(null), {
30850
30852
  onScreenshot: n
30851
30853
  } = ut(io);
30852
30854
  return {
@@ -31114,7 +31116,7 @@ const P6 = D(({
31114
31116
  }) => {
31115
31117
  const {
31116
31118
  t
31117
- } = y(), n = Tt(), a = ie(), i = k(() => a.views.options.filter((d) => d.type === U.Division), [e.id, a.views.options]), o = e.config, l = (d) => n.openConfirmModal({
31119
+ } = y(), n = Dt(), a = ie(), i = k(() => a.views.options.filter((d) => d.type === U.Division), [e.id, a.views.options]), o = e.config, l = (d) => n.openConfirmModal({
31118
31120
  title: `${t("view.component.tabs.tab.delete")}?`,
31119
31121
  labels: {
31120
31122
  confirm: t("common.actions.confirm"),
@@ -31610,11 +31612,11 @@ const H6 = m.compose("FiltersModel", uu, m.model({
31610
31612
  e.setKeywords(t, n);
31611
31613
  }
31612
31614
  })).actions((e) => {
31613
- const t = Ot(function* () {
31615
+ const t = qt(function* () {
31614
31616
  var n;
31615
31617
  (n = e.controllers.tables) == null || n.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
31616
31618
  try {
31617
- const a = yield* At(gt.structure(e.controllers.tables.signal)({
31619
+ const a = yield* Et(gt.structure(e.controllers.tables.signal)({
31618
31620
  query_type: "TABLES",
31619
31621
  type: e.sqlDataSourceType,
31620
31622
  key: e.key,
@@ -31639,11 +31641,11 @@ const H6 = m.compose("FiltersModel", uu, m.model({
31639
31641
  loadTablesIfEmpty() {
31640
31642
  e.tables.empty && t();
31641
31643
  },
31642
- loadColumns: Ot(function* () {
31644
+ loadColumns: qt(function* () {
31643
31645
  var n;
31644
31646
  (n = e.controllers.columns) == null || n.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
31645
31647
  try {
31646
- e.columns.data = yield* At(gt.structure(e.controllers.columns.signal)({
31648
+ e.columns.data = yield* Et(gt.structure(e.controllers.columns.signal)({
31647
31649
  query_type: "COLUMNS",
31648
31650
  type: e.sqlDataSourceType,
31649
31651
  key: e.key,
@@ -31664,11 +31666,11 @@ const H6 = m.compose("FiltersModel", uu, m.model({
31664
31666
  }
31665
31667
  }
31666
31668
  }),
31667
- loadIndexes: Ot(function* () {
31669
+ loadIndexes: qt(function* () {
31668
31670
  var n;
31669
31671
  (n = e.controllers.indexes) == null || n.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
31670
31672
  try {
31671
- e.indexes.data = yield* At(gt.structure(e.controllers.indexes.signal)({
31673
+ e.indexes.data = yield* Et(gt.structure(e.controllers.indexes.signal)({
31672
31674
  query_type: "INDEXES",
31673
31675
  type: e.sqlDataSourceType,
31674
31676
  key: e.key,
@@ -31689,13 +31691,13 @@ const H6 = m.compose("FiltersModel", uu, m.model({
31689
31691
  }
31690
31692
  }
31691
31693
  }),
31692
- loadTableData: Ot(function* () {
31694
+ loadTableData: qt(function* () {
31693
31695
  var a;
31694
31696
  (a = e.controllers.tableData) == null || a.abort(), e.controllers.tableData = new AbortController();
31695
31697
  const n = e.tableData;
31696
31698
  n.state = "loading";
31697
31699
  try {
31698
- n.data = yield* At(gt.structure(e.controllers.tableData.signal)({
31700
+ n.data = yield* Et(gt.structure(e.controllers.tableData.signal)({
31699
31701
  query_type: "DATA",
31700
31702
  type: e.sqlDataSourceType,
31701
31703
  key: e.key,
@@ -31710,7 +31712,7 @@ const H6 = m.compose("FiltersModel", uu, m.model({
31710
31712
  }));
31711
31713
  const [{
31712
31714
  total: i
31713
- }] = yield* At(gt.structure(e.controllers.tableData.signal)({
31715
+ }] = yield* Et(gt.structure(e.controllers.tableData.signal)({
31714
31716
  query_type: "COUNT",
31715
31717
  type: e.sqlDataSourceType,
31716
31718
  key: e.key,
@@ -31902,7 +31904,7 @@ const a4 = m.model({
31902
31904
  return this.flatGroupByColOptions.filter((a) => n.has(a.value));
31903
31905
  }
31904
31906
  })).actions((e) => ({
31905
- load: Ot(function* () {
31907
+ load: qt(function* () {
31906
31908
  var t;
31907
31909
  if (e.mmInfo.type === se.MericoMetricSystem && !(!e.metricID || !e.metricType)) {
31908
31910
  (t = e.controller) == null || t.abort(), e.controller = new AbortController(), e.state = "loading";
@@ -31913,7 +31915,7 @@ const a4 = m.model({
31913
31915
  data: {
31914
31916
  key: e.mmInfo.key
31915
31917
  }
31916
- }), i = yield* At(gt.mericoMetricInfo(e.controller.signal)({
31918
+ }), i = yield* Et(gt.mericoMetricInfo(e.controller.signal)({
31917
31919
  key: e.mmInfo.key,
31918
31920
  query: JSON.stringify(a),
31919
31921
  ...e.mmInfo.additionalQueryInfo
@@ -31963,7 +31965,7 @@ const a4 = m.model({
31963
31965
  e.keyword = t;
31964
31966
  }
31965
31967
  })).actions((e) => ({
31966
- load: Ot(function* () {
31968
+ load: qt(function* () {
31967
31969
  var t;
31968
31970
  if (e.mmInfo.type === se.MericoMetricSystem) {
31969
31971
  (t = e.controller) == null || t.abort(), e.controller = new AbortController(), e.state = "loading";
@@ -31977,7 +31979,7 @@ const a4 = m.model({
31977
31979
  params: {
31978
31980
  search: e.keyword
31979
31981
  }
31980
- }), a = yield* At(gt.mericoMetricInfo(e.controller.signal)({
31982
+ }), a = yield* Et(gt.mericoMetricInfo(e.controller.signal)({
31981
31983
  key: e.mmInfo.key,
31982
31984
  query: JSON.stringify(n),
31983
31985
  ...e.mmInfo.additionalQueryInfo
@@ -32721,15 +32723,15 @@ const k4 = m.model({
32721
32723
  },
32722
32724
  get filtersChanged() {
32723
32725
  const t = "filters.current";
32724
- return !Oe(Et(de(e, t)), de(e.origin, t));
32726
+ return !Oe(Ot(de(e, t)), de(e.origin, t));
32725
32727
  },
32726
32728
  get queriesChanged() {
32727
- const t = "queries.current", n = Et(de(e, t)).map((i) => Rl(i, ["id", "name", "key", "type", "run_by", "pre_process", "post_process", "config"])), a = de(e.origin, t);
32729
+ const t = "queries.current", n = Ot(de(e, t)).map((i) => Rl(i, ["id", "name", "key", "type", "run_by", "pre_process", "post_process", "config"])), a = de(e.origin, t);
32728
32730
  return !Oe(n, a);
32729
32731
  },
32730
32732
  get sqlSnippetsChanged() {
32731
32733
  const t = "sqlSnippets.current";
32732
- return !Oe(Et(de(e, t)), de(e.origin, t));
32734
+ return !Oe(Ot(de(e, t)), de(e.origin, t));
32733
32735
  },
32734
32736
  get viewsChanged() {
32735
32737
  const t = "views.current";
@@ -32737,11 +32739,11 @@ const k4 = m.model({
32737
32739
  },
32738
32740
  get panelsChanged() {
32739
32741
  const t = "panels.list";
32740
- return !Oe(Et(de(e, t)), de(e.origin, t));
32742
+ return !Oe(Ot(de(e, t)), de(e.origin, t));
32741
32743
  },
32742
32744
  get layoutsChanged() {
32743
32745
  const t = "layouts.list";
32744
- return !Oe(Et(de(e, t)), de(e.origin, t));
32746
+ return !Oe(Ot(de(e, t)), de(e.origin, t));
32745
32747
  },
32746
32748
  get mockContextChanged() {
32747
32749
  const t = "mock_context.current";
@@ -33370,7 +33372,7 @@ const I4 = D(({
33370
33372
  }) => {
33371
33373
  const {
33372
33374
  t
33373
- } = y(), n = Tt(), a = ie(), i = () => {
33375
+ } = y(), n = Dt(), a = ie(), i = () => {
33374
33376
  n.openConfirmModal({
33375
33377
  title: /* @__PURE__ */ u(_, { justify: "flex-start", children: [
33376
33378
  /* @__PURE__ */ r(ts, { size: 18, color: "red" }),
@@ -34634,7 +34636,7 @@ const kI = D(() => {
34634
34636
  } = y(), [t, n] = H(!1);
34635
34637
  return /* @__PURE__ */ u(F, { children: [
34636
34638
  /* @__PURE__ */ r(L, { variant: "subtle", size: "compact-sm", onClick: () => n((a) => !a), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
34637
- /* @__PURE__ */ r(sr, { in: t, children: /* @__PURE__ */ r(zt, { language: "typescript", withCopyButton: !1, code: MI }) })
34639
+ /* @__PURE__ */ r(sr, { in: t, children: /* @__PURE__ */ r(Tt, { language: "typescript", withCopyButton: !1, code: MI }) })
34638
34640
  ] });
34639
34641
  }, LI = D(function({
34640
34642
  filter: t
@@ -34908,7 +34910,7 @@ const kI = D(() => {
34908
34910
  ] }),
34909
34911
  /* @__PURE__ */ r(S.Panel, { value: "config", children: /* @__PURE__ */ r($, { sx: {
34910
34912
  minWidth: "480px"
34911
- }, children: /* @__PURE__ */ r(zt, { mt: 22, language: "json", withCopyButton: !1, code: JSON.stringify(e, null, 4) }) }) }),
34913
+ }, children: /* @__PURE__ */ r(Tt, { mt: 22, language: "json", withCopyButton: !1, code: JSON.stringify(e, null, 4) }) }) }),
34912
34914
  /* @__PURE__ */ r(S.Panel, { value: "usage", children: /* @__PURE__ */ r(PI, { filter: e }) })
34913
34915
  ] });
34914
34916
  }), EI = D(({
@@ -34968,7 +34970,7 @@ const kI = D(() => {
34968
34970
  [Q.Checkbox]: TI,
34969
34971
  [Q.DateRange]: II,
34970
34972
  [Q.MericoDateRange]: EI
34971
- }, Pt = {
34973
+ }, At = {
34972
34974
  [Q.Select]: "filter.widget.names.select",
34973
34975
  [Q.MultiSelect]: "filter.widget.names.multi_select",
34974
34976
  [Q.TreeSelect]: "filter.widget.names.tree_select",
@@ -34984,28 +34986,28 @@ const kI = D(() => {
34984
34986
  t,
34985
34987
  i18n: n
34986
34988
  } = y(), a = ie(), i = E.useMemo(() => OI[e.type], [e.type]), o = k(() => [{
34987
- label: t(Pt[Q.Select]),
34989
+ label: t(At[Q.Select]),
34988
34990
  value: "select"
34989
34991
  }, {
34990
- label: t(Pt[Q.MultiSelect]),
34992
+ label: t(At[Q.MultiSelect]),
34991
34993
  value: "multi-select"
34992
34994
  }, {
34993
- label: t(Pt[Q.TreeSelect]),
34995
+ label: t(At[Q.TreeSelect]),
34994
34996
  value: "tree-select"
34995
34997
  }, {
34996
- label: t(Pt[Q.TreeSingleSelect]),
34998
+ label: t(At[Q.TreeSingleSelect]),
34997
34999
  value: "tree-single-select"
34998
35000
  }, {
34999
- label: t(Pt[Q.TextInput]),
35001
+ label: t(At[Q.TextInput]),
35000
35002
  value: "text-input"
35001
35003
  }, {
35002
- label: t(Pt[Q.Checkbox]),
35004
+ label: t(At[Q.Checkbox]),
35003
35005
  value: "checkbox"
35004
35006
  }, {
35005
- label: t(Pt[Q.DateRange]),
35007
+ label: t(At[Q.DateRange]),
35006
35008
  value: "date-range"
35007
35009
  }, {
35008
- label: t(Pt[Q.MericoDateRange]),
35010
+ label: t(At[Q.MericoDateRange]),
35009
35011
  value: "merico-date-range"
35010
35012
  }], [n.language]);
35011
35013
  return /* @__PURE__ */ u(_, { grow: !0, gap: 20, align: "top", children: [
@@ -35037,7 +35039,7 @@ const kI = D(() => {
35037
35039
  }) => {
35038
35040
  const {
35039
35041
  t
35040
- } = y(), n = Tt(), a = le(), i = ie();
35042
+ } = y(), n = Dt(), a = le(), i = ie();
35041
35043
  if (e === "")
35042
35044
  return null;
35043
35045
  const o = i.filters.findByID(e);
@@ -35145,7 +35147,7 @@ const kI = D(() => {
35145
35147
  } }) }),
35146
35148
  /* @__PURE__ */ r(w.Td, { children: d.label }),
35147
35149
  /* @__PURE__ */ r(w.Td, { children: d.key }),
35148
- /* @__PURE__ */ r(w.Td, { children: e(Pt[d.type]) }),
35150
+ /* @__PURE__ */ r(w.Td, { children: e(At[d.type]) }),
35149
35151
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", onClick: () => i(d.id), children: e("common.actions.open") }) })
35150
35152
  ] }, d.id)) })
35151
35153
  ] }) }) })
@@ -35709,10 +35711,10 @@ const s8 = D(() => {
35709
35711
  /* @__PURE__ */ r(S.Tab, { value: "guide", leftSection: /* @__PURE__ */ r(rr, { size: 14 }), children: t("panel.variable.guide.tabs.guide") }),
35710
35712
  /* @__PURE__ */ r(S.Tab, { value: "vars", leftSection: /* @__PURE__ */ r(Qn, { size: 14 }), children: t("panel.variable.guide.tabs.vars") })
35711
35713
  ] }),
35712
- /* @__PURE__ */ r(S.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r(zt, { language: "sql", sx: {
35714
+ /* @__PURE__ */ r(S.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r(Tt, { language: "sql", sx: {
35713
35715
  width: "100%"
35714
35716
  }, withCopyButton: !1, code: t("panel.variable.guide.text") }) }),
35715
- /* @__PURE__ */ r(S.Panel, { value: "vars", pt: "xs", children: /* @__PURE__ */ r(zt, { language: "json", sx: {
35717
+ /* @__PURE__ */ r(S.Panel, { value: "vars", pt: "xs", children: /* @__PURE__ */ r(Tt, { language: "json", sx: {
35716
35718
  width: "100%"
35717
35719
  }, withCopyButton: !1, code: o }) })
35718
35720
  ] }) });
@@ -35815,7 +35817,7 @@ const p8 = E.forwardRef(function({
35815
35817
  /* @__PURE__ */ r(Vi, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
35816
35818
  t.aggregation.type !== "custom" && /* @__PURE__ */ u(F, { children: [
35817
35819
  /* @__PURE__ */ r(A, { mt: "xl", mb: 0, label: o("numbro.format.label"), labelPosition: "center", variant: "dashed" }),
35818
- /* @__PURE__ */ r(Vt, { value: t.formatter, onChange: (s) => l("formatter", s) })
35820
+ /* @__PURE__ */ r($t, { value: t.formatter, onChange: (s) => l("formatter", s) })
35819
35821
  ] })
35820
35822
  ] }),
35821
35823
  /* @__PURE__ */ r(L, { mt: 20, leftSection: /* @__PURE__ */ r(Pe, { size: 16 }), color: "red", variant: "light", onClick: a, children: o("panel.variable.delete") })
@@ -35829,7 +35831,7 @@ const p8 = E.forwardRef(function({
35829
35831
  /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftSection: /* @__PURE__ */ r(yt, { size: 18 }), children: t("common.actions.revert_changes") }),
35830
35832
  /* @__PURE__ */ r(L, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftSection: /* @__PURE__ */ r(fe, { size: 18 }), children: t("common.actions.save_changes") })
35831
35833
  ] }),
35832
- /* @__PURE__ */ r(p8, { value: Et(n.copy), onChange: n.update, remove: a })
35834
+ /* @__PURE__ */ r(p8, { value: Ot(n.copy), onChange: n.update, remove: a })
35833
35835
  ] });
35834
35836
  });
35835
35837
  D((e) => {
@@ -35918,7 +35920,7 @@ const _8 = D(({
35918
35920
  }) => {
35919
35921
  const {
35920
35922
  t
35921
- } = y(), n = Tt(), a = le(), i = ie(), [o, l] = H(a.editor.panelTab), s = e.queries, d = y8(e.viz.type) && e.dataLoading, h = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || s.length === 0, p = a.editor.path[1];
35923
+ } = y(), n = Dt(), a = le(), i = ie(), [o, l] = H(a.editor.panelTab), s = e.queries, d = y8(e.viz.type) && e.dataLoading, h = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || s.length === 0, p = a.editor.path[1];
35922
35924
  N(() => {
35923
35925
  l((x) => h && x === "Visualization" ? "Data" : x);
35924
35926
  }, [e.id, h]);
@@ -35948,7 +35950,7 @@ const _8 = D(({
35948
35950
  errors: e.queryErrors,
35949
35951
  downloadPanelScreenshot: () => {
35950
35952
  },
35951
- echartsOptions: null,
35953
+ getEchartsOptions: () => null,
35952
35954
  setEchartsOptions: () => {
35953
35955
  }
35954
35956
  }, children: [
@@ -36001,7 +36003,7 @@ const _8 = D(({
36001
36003
  }), x8 = D(() => {
36002
36004
  const {
36003
36005
  t: e
36004
- } = y(), [t, n] = H([]), a = Tt(), i = le(), o = (g) => {
36006
+ } = y(), [t, n] = H([]), a = Dt(), i = le(), o = (g) => {
36005
36007
  i.editor.setPath(["_QUERIES_", g]);
36006
36008
  }, l = () => {
36007
36009
  a.openConfirmModal({
@@ -36110,7 +36112,7 @@ const _8 = D(({
36110
36112
  t
36111
36113
  } = y(), {
36112
36114
  queryModel: n
36113
- } = e, a = le(), i = ie(), l = i.findQueryUsage(n.id).length > 0, s = Tt(), c = () => {
36115
+ } = e, a = le(), i = ie(), l = i.findQueryUsage(n.id).length > 0, s = Dt(), c = () => {
36114
36116
  s.openConfirmModal({
36115
36117
  title: `${t("query.delete")}?`,
36116
36118
  labels: {
@@ -36637,7 +36639,7 @@ function B8({
36637
36639
  }) {
36638
36640
  return /* @__PURE__ */ u(pe, { width: "60vw", shadow: "md", zIndex: 340, children: [
36639
36641
  /* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(ee, { size: 16, color: "blue", variant: "subtle", children: /* @__PURE__ */ r(rs, {}) }) }),
36640
- /* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ r(zt, { language: "sql", withCopyButton: !1, code: e }) })
36642
+ /* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ r(Tt, { language: "sql", withCopyButton: !1, code: e }) })
36641
36643
  ] });
36642
36644
  }
36643
36645
  const j8 = D(() => {
@@ -36690,10 +36692,10 @@ WHERE
36690
36692
  /* @__PURE__ */ r(S.Tab, { value: "local_query_vars", leftSection: /* @__PURE__ */ r(Qn, { size: 14 }), children: a("query_variable.guide.tabs.variables_in_this_dashboard") }),
36691
36693
  /* @__PURE__ */ r(S.Tab, { value: "global_sql_snippets", leftSection: /* @__PURE__ */ r(vp, { size: 14 }), children: a("query_variable.guide.tabs.global_sql_snippets") })
36692
36694
  ] }),
36693
- /* @__PURE__ */ r(S.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r(zt, { language: "sql", sx: {
36695
+ /* @__PURE__ */ r(S.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r(Tt, { language: "sql", sx: {
36694
36696
  width: "100%"
36695
36697
  }, withCopyButton: !1, code: Q8 }) }),
36696
- /* @__PURE__ */ r(S.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r(zt, { language: "json", sx: {
36698
+ /* @__PURE__ */ r(S.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r(Tt, { language: "json", sx: {
36697
36699
  width: "100%"
36698
36700
  }, withCopyButton: !1, code: l }) }),
36699
36701
  /* @__PURE__ */ r(S.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ u(I, { gap: 10, children: [
@@ -36994,7 +36996,7 @@ WHERE
36994
36996
  }) => {
36995
36997
  const {
36996
36998
  t
36997
- } = y(), n = le(), a = ie(), o = a.findQueryUsage(e.id).length > 0, l = Tt(), s = () => {
36999
+ } = y(), n = le(), a = ie(), o = a.findQueryUsage(e.id).length > 0, l = Dt(), s = () => {
36998
37000
  l.openConfirmModal({
36999
37001
  title: `${t("query.delete")}?`,
37000
37002
  labels: {
@@ -37249,13 +37251,13 @@ const lM = [{
37249
37251
  /* @__PURE__ */ r(S.Tab, { value: "看板变量预览", children: "看板变量预览" }),
37250
37252
  /* @__PURE__ */ r(S.Tab, { value: "查询预览", children: "查询预览" })
37251
37253
  ] }),
37252
- /* @__PURE__ */ r(S.Panel, { value: "查询预览", children: /* @__PURE__ */ r(zt, { language: "json", sx: {
37254
+ /* @__PURE__ */ r(S.Panel, { value: "查询预览", children: /* @__PURE__ */ r(Tt, { language: "json", sx: {
37253
37255
  width: "100%",
37254
37256
  height: "100%",
37255
37257
  minHeight: "400px",
37256
37258
  overflowY: "auto"
37257
37259
  }, withCopyButton: !1, code: e.metricQueryPayloadString }) }),
37258
- /* @__PURE__ */ r(S.Panel, { value: "看板变量预览", children: /* @__PURE__ */ r(zt, { language: "json", sx: {
37260
+ /* @__PURE__ */ r(S.Panel, { value: "看板变量预览", children: /* @__PURE__ */ r(Tt, { language: "json", sx: {
37259
37261
  width: "100%",
37260
37262
  height: "100%",
37261
37263
  minHeight: "400px",
@@ -37373,7 +37375,7 @@ const lM = [{
37373
37375
  }) => {
37374
37376
  const i = e.metricDetail, o = e.metrics.loading || i.loading, l = i.error, s = i.filterColOptions, c = Ph({
37375
37377
  onDropdownClose: () => c.resetSelectedOption()
37376
- }), d = k(() => o ? /* @__PURE__ */ r(Ga, { size: "xs" }) : t ? /* @__PURE__ */ r(kt, { size: "xs", onClick: () => n(null) }) : /* @__PURE__ */ r(Zt.Chevron, { size: "xs" }), [o, t]), h = /* @__PURE__ */ r(Ah, { component: "button", type: "button", variant: "unstyled", size: "xs", pointer: !0, rightSection: d, rightSectionPointerEvents: !o && t ? "all" : "none", onClick: () => c.toggleDropdown(), disabled: o || s.length === 0, styles: vM, error: !!l, children: t || /* @__PURE__ */ r(Eh.Placeholder, { children: "选择维度" }) });
37378
+ }), d = k(() => o ? /* @__PURE__ */ r(Ga, { size: "xs" }) : t ? /* @__PURE__ */ r(zt, { size: "xs", onClick: () => n(null) }) : /* @__PURE__ */ r(Zt.Chevron, { size: "xs" }), [o, t]), h = /* @__PURE__ */ r(Ah, { component: "button", type: "button", variant: "unstyled", size: "xs", pointer: !0, rightSection: d, rightSectionPointerEvents: !o && t ? "all" : "none", onClick: () => c.toggleDropdown(), disabled: o || s.length === 0, styles: vM, error: !!l, children: t || /* @__PURE__ */ r(Eh.Placeholder, { children: "选择维度" }) });
37377
37379
  return /* @__PURE__ */ u(Zt, { store: c, onOptionSubmit: (p) => {
37378
37380
  n(p), c.closeDropdown();
37379
37381
  }, styles: _M, children: [
@@ -37450,7 +37452,7 @@ const lM = [{
37450
37452
  /* @__PURE__ */ r(z, { size: "xs", c: t.checked ? "rgba(255,255,255,.8)" : "dimmed", style: {
37451
37453
  flexShrink: 0,
37452
37454
  flexGrow: 0
37453
- }, children: n(Pt[a.widget]) })
37455
+ }, children: n(At[a.widget]) })
37454
37456
  ] })
37455
37457
  ] });
37456
37458
  }, $r = D(({
@@ -37878,7 +37880,7 @@ const lM = [{
37878
37880
  N(() => {
37879
37881
  s(e.key), g(e.value);
37880
37882
  }, [e]);
37881
- const v = p !== e.value, x = Tt(), T = () => {
37883
+ const v = p !== e.value, x = Dt(), T = () => {
37882
37884
  x.openConfirmModal({
37883
37885
  title: `${a("sql_snippet.delete")}?`,
37884
37886
  labels: {
@@ -37953,7 +37955,7 @@ const lM = [{
37953
37955
  }), jM = D(() => {
37954
37956
  const {
37955
37957
  t: e
37956
- } = y(), [t, n] = H([]), a = Tt(), i = le(), o = (g) => {
37958
+ } = y(), [t, n] = H([]), a = Dt(), i = le(), o = (g) => {
37957
37959
  i.editor.setPath(["_SQL_SNIPPETS_", g]);
37958
37960
  }, l = () => {
37959
37961
  a.openConfirmModal({
@@ -38206,7 +38208,7 @@ const lM = [{
38206
38208
  }) => {
38207
38209
  const {
38208
38210
  t
38209
- } = y(), n = Tt(), a = le(), i = ie();
38211
+ } = y(), n = Dt(), a = le(), i = ie();
38210
38212
  if (e === "")
38211
38213
  return null;
38212
38214
  const o = i.views.findByID(e);