@devtable/dashboard 13.43.11 → 13.43.13

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.
@@ -2,7 +2,7 @@ var gg = Object.defineProperty;
2
2
  var fg = (e, t, n) => t in e ? gg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var K = (e, t, n) => (fg(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import N, { forwardRef as oe, useMemo as z, useRef as Rn, useEffect as Q, useLayoutEffect as bg, useState as X, useCallback as ye, createElement as Ur, useContext as tr, createContext as Id, memo as yg } from "react";
5
- import { TextInput as A, Box as $, Group as y, Text as k, Select as B, Button as M, Modal as He, Stack as T, Divider as R, NumberInput as le, SimpleGrid as et, Menu as se, UnstyledButton as ro, Tooltip as _e, Flex as Zt, ColorInput as _r, Center as nr, ActionIcon as ue, Badge as Jn, CloseButton as On, Overlay as vr, NativeSelect as io, useMantineTheme as Da, ColorSwatch as la, Popover as Yt, ColorPicker as dc, HoverCard as Ye, Checkbox as he, Switch as at, Table as j, MultiSelect as Br, Paper as _g, Code as uc, Tabs as v, LoadingOverlay as jr, Alert as Ii, Collapse as Li, CheckIcon as vg, SegmentedControl as Ld, Anchor as ca, Pagination as ao, Textarea as Md, RangeSlider as jg, Mark as Ed, Slider as wg, List as Ht, getRadius as so, Affix as Sg, AppShell as At, FileInput as Cg, Highlight as kg, rem as hc, ThemeIcon as hs, JsonInput as Ad, Drawer as Tg, Radio as pc, Skeleton as mc, NavLink as zs } from "@mantine/core";
5
+ import { TextInput as A, Box as $, Group as y, Text as k, Select as B, Button as M, Modal as He, Stack as T, Divider as R, NumberInput as le, SimpleGrid as Ue, Menu as se, UnstyledButton as ro, Tooltip as _e, Flex as Zt, ColorInput as _r, Center as nr, ActionIcon as ue, Badge as Jn, CloseButton as On, Overlay as vr, NativeSelect as io, useMantineTheme as Da, ColorSwatch as la, Popover as Yt, ColorPicker as dc, HoverCard as Xe, Checkbox as he, Switch as at, Table as j, MultiSelect as Br, Paper as _g, Code as uc, Tabs as v, LoadingOverlay as jr, Alert as Ii, Collapse as Li, CheckIcon as vg, SegmentedControl as Ld, Anchor as ca, Pagination as ao, Textarea as Md, RangeSlider as jg, Mark as Ed, Slider as wg, List as Ht, getRadius as so, Affix as Sg, AppShell as At, FileInput as Cg, Highlight as kg, rem as hc, ThemeIcon as hs, JsonInput as Ad, Drawer as Tg, Radio as pc, Skeleton as mc, NavLink as zs } from "@mantine/core";
6
6
  import { useModals as Tn, ModalsProvider as Pd } from "@mantine/modals";
7
7
  import { useBoolean as st, useCreation as hn, useAsyncEffect as Mi, useRequest as mr, useLatest as xc, usePrevious as zg, useWhyDidYouUpdate as $d } from "ahooks";
8
8
  import { toJS as zn, observable as Rd, runInAction as ji, reaction as zt, makeAutoObservable as Ei } from "mobx";
@@ -370,18 +370,18 @@ function iy() {
370
370
  if (Lt && ae && typeof Lt.stack == "string") {
371
371
  for (var ge = Lt.stack.split(`
372
372
  `), kt = ae.stack.split(`
373
- `), Ke = ge.length - 1, Xe = kt.length - 1; Ke >= 1 && Xe >= 0 && ge[Ke] !== kt[Xe]; )
374
- Xe--;
375
- for (; Ke >= 1 && Xe >= 0; Ke--, Xe--)
376
- if (ge[Ke] !== kt[Xe]) {
377
- if (Ke !== 1 || Xe !== 1)
373
+ `), Ye = ge.length - 1, Je = kt.length - 1; Ye >= 1 && Je >= 0 && ge[Ye] !== kt[Je]; )
374
+ Je--;
375
+ for (; Ye >= 1 && Je >= 0; Ye--, Je--)
376
+ if (ge[Ye] !== kt[Je]) {
377
+ if (Ye !== 1 || Je !== 1)
378
378
  do
379
- if (Ke--, Xe--, Xe < 0 || ge[Ke] !== kt[Xe]) {
379
+ if (Ye--, Je--, Je < 0 || ge[Ye] !== kt[Je]) {
380
380
  var Ut = `
381
- ` + ge[Ke].replace(" at new ", " at ");
381
+ ` + ge[Ye].replace(" at new ", " at ");
382
382
  return w.displayName && Ut.includes("<anonymous>") && (Ut = Ut.replace("<anonymous>", w.displayName)), typeof w == "function" && It.set(w, Ut), Ut;
383
383
  }
384
- while (Ke >= 1 && Xe >= 0);
384
+ while (Ye >= 1 && Je >= 0);
385
385
  break;
386
386
  }
387
387
  }
@@ -447,8 +447,8 @@ function iy() {
447
447
  throw kt.name = "Invariant Violation", kt;
448
448
  }
449
449
  ge = w[je](O, je, ae, U, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
450
- } catch (Ke) {
451
- ge = Ke;
450
+ } catch (Ye) {
451
+ ge = Ye;
452
452
  }
453
453
  ge && !(ge instanceof Error) && (Qi(De), I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ae || "React class", U, je, typeof ge), Qi(null)), ge instanceof Error && !(ge.message in Xl) && (Xl[ge.message] = !0, Qi(De), I("Failed %s type: %s", U, ge.message), Qi(null));
454
454
  }
@@ -565,13 +565,13 @@ function iy() {
565
565
  for ($e in O)
566
566
  li.call(O, $e) && !Jx.hasOwnProperty($e) && (je[$e] = O[$e]);
567
567
  if (w && w.defaultProps) {
568
- var Ke = w.defaultProps;
569
- for ($e in Ke)
570
- je[$e] === void 0 && (je[$e] = Ke[$e]);
568
+ var Ye = w.defaultProps;
569
+ for ($e in Ye)
570
+ je[$e] === void 0 && (je[$e] = Ye[$e]);
571
571
  }
572
572
  if (ge || kt) {
573
- var Xe = typeof w == "function" ? w.displayName || w.name || "Unknown" : w;
574
- ge && ng(je, Xe), kt && rg(je, Xe);
573
+ var Je = typeof w == "function" ? w.displayName || w.name || "Unknown" : w;
574
+ ge && ng(je, Je), kt && rg(je, Je);
575
575
  }
576
576
  return ig(w, ge, kt, De, ae, ci.current, je);
577
577
  }
@@ -703,12 +703,12 @@ Check the top-level render call using <` + U + ">.");
703
703
  (w === void 0 || typeof w == "object" && w !== null && Object.keys(w).length === 0) && (ge += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
704
704
  var kt = sg(De);
705
705
  kt ? ge += kt : ge += ic();
706
- var Ke;
707
- w === null ? Ke = "null" : ss(w) ? Ke = "array" : w !== void 0 && w.$$typeof === t ? (Ke = "<" + (J(w.type) || "Unknown") + " />", ge = " Did you accidentally export a JSX literal instead of a component?") : Ke = typeof w, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ke, ge);
706
+ var Ye;
707
+ w === null ? Ye = "null" : ss(w) ? Ye = "array" : w !== void 0 && w.$$typeof === t ? (Ye = "<" + (J(w.type) || "Unknown") + " />", ge = " Did you accidentally export a JSX literal instead of a component?") : Ye = typeof w, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ye, ge);
708
708
  }
709
- var Xe = ag(w, O, U, De, $e);
710
- if (Xe == null)
711
- return Xe;
709
+ var Je = ag(w, O, U, De, $e);
710
+ if (Je == null)
711
+ return Je;
712
712
  if (je) {
713
713
  var Ut = O.children;
714
714
  if (Ut !== void 0)
@@ -736,7 +736,7 @@ React keys must be passed directly to JSX without using spread:
736
736
  <%s key={someKey} {...props} />`, us, dr, mg, dr), lc[dr + us] = !0;
737
737
  }
738
738
  }
739
- return w === i ? cg(Xe) : lg(Xe), Xe;
739
+ return w === i ? cg(Je) : lg(Je), Je;
740
740
  }
741
741
  }
742
742
  function dg(w, O, U) {
@@ -1168,7 +1168,7 @@ function Fu() {
1168
1168
  throw new Error("Please use ContentModelContextProvider");
1169
1169
  return e;
1170
1170
  }
1171
- const ve = () => Fu(), Ue = () => Fu(), Ty = {
1171
+ const ve = () => Fu(), Ke = () => Fu(), Ty = {
1172
1172
  inEditMode: !1
1173
1173
  }, wo = N.createContext(Ty), qu = N.createContext({
1174
1174
  panel: null,
@@ -4353,7 +4353,7 @@ const jp = {
4353
4353
  label: a("chart.number_or_dynamic_value.type.dynamic"),
4354
4354
  value: "dynamic"
4355
4355
  }], [s.language]);
4356
- return /* @__PURE__ */ r.jsxs(et, { cols: 2, children: [
4356
+ return /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
4357
4357
  /* @__PURE__ */ r.jsx(B, { ref: i, label: e, data: l, value: t.type, onChange: o, sx: {
4358
4358
  flexGrow: 1
4359
4359
  } }),
@@ -5937,7 +5937,7 @@ const Op = ({
5937
5937
  /* @__PURE__ */ r.jsx(ue, { variant: "default", onClick: D, title: a("common.actions.clear"), children: /* @__PURE__ */ r.jsx(Kd, { stroke: 1.5, size: "1rem" }) }),
5938
5938
  /* @__PURE__ */ r.jsx(ue, { variant: "default", onClick: c, title: a("common.actions.close"), children: /* @__PURE__ */ r.jsx(uo, { stroke: 1.5, size: "1rem" }) })
5939
5939
  ] }),
5940
- /* @__PURE__ */ r.jsxs(et, { cols: 2, children: [
5940
+ /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
5941
5941
  /* @__PURE__ */ r.jsx(dc, { format: "hex", swatches: p, value: t, onChange: _, size: "sm", withPicker: !1, styles: {
5942
5942
  swatches: {
5943
5943
  marginTop: "0 !important"
@@ -6512,7 +6512,7 @@ class hl {
6512
6512
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
6513
6513
  }
6514
6514
  }
6515
- const Wp = "13.43.11", Uj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6515
+ const Wp = "13.43.13", Uj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6516
6516
  __proto__: null,
6517
6517
  version: Wp
6518
6518
  }, Symbol.toStringTag, { value: "Module" }));
@@ -6768,9 +6768,9 @@ const te = L(oe(({
6768
6768
  } = ht(), h = N.useMemo(() => u.dataFieldOptionGroups(i, o, s), [i, o, s]);
6769
6769
  if (h.length === 0) {
6770
6770
  const p = u.explainDataKey(i);
6771
- return /* @__PURE__ */ r.jsxs(Ye, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
6772
- /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx($, { children: /* @__PURE__ */ r.jsx(A, { label: e, required: t, defaultValue: p.columnKey, readOnly: !0, disabled: !0 }) }) }),
6773
- /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsxs(y, { justify: "flex-start", gap: 0, children: [
6771
+ return /* @__PURE__ */ r.jsxs(Xe, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
6772
+ /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx($, { children: /* @__PURE__ */ r.jsx(A, { label: e, required: t, defaultValue: p.columnKey, readOnly: !0, disabled: !0 }) }) }),
6773
+ /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsxs(y, { justify: "flex-start", gap: 0, children: [
6774
6774
  /* @__PURE__ */ r.jsx(k, { size: "xs", c: p.queryName ? "black" : "red", ff: "monospace", children: p.queryName ?? p.queryID }),
6775
6775
  /* @__PURE__ */ r.jsx(k, { size: "xs", c: "black", ff: "monospace", children: "." }),
6776
6776
  /* @__PURE__ */ r.jsx(k, { size: "xs", c: "red", ff: "monospace", children: p.columnKey })
@@ -9281,6 +9281,7 @@ const Nn = oe(({
9281
9281
  paddingRight: "6px"
9282
9282
  }
9283
9283
  }, value: t, onChange: (o) => {
9284
+ typeof o != "string" && n(o);
9284
9285
  } });
9285
9286
  }), Q0 = ({
9286
9287
  control: e,
@@ -9498,7 +9499,7 @@ function J0({
9498
9499
  /* @__PURE__ */ r.jsx(v.Panel, { value: "Y Axis", children: /* @__PURE__ */ r.jsx(X0, { control: o, watch: c }) }),
9499
9500
  /* @__PURE__ */ r.jsx(v.Panel, { value: "Legend", children: /* @__PURE__ */ r.jsx(q0, { control: o, watch: c }) }),
9500
9501
  /* @__PURE__ */ r.jsx(v.Panel, { value: "Tooltip", children: /* @__PURE__ */ r.jsx(W0, { control: o, watch: c }) }),
9501
- /* @__PURE__ */ r.jsx(v.Panel, { value: "Style", children: /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "color", control: o, render: ({
9502
+ /* @__PURE__ */ r.jsx(v.Panel, { value: "Style", children: /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "color", control: o, render: ({
9502
9503
  field: h
9503
9504
  }) => /* @__PURE__ */ r.jsx(Dt, { label: t("chart.color.label"), ...h }) }) }) }),
9504
9505
  /* @__PURE__ */ r.jsx(v.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(B0, { variables: a, control: o, watch: c }) }),
@@ -9796,7 +9797,7 @@ const yl = {
9796
9797
  const n = Qt({
9797
9798
  vizManager: e.vizManager,
9798
9799
  instance: t
9799
- }), i = Wt(n.triggerManager, nm.id), a = Ue(), {
9800
+ }), i = Wt(n.triggerManager, nm.id), a = Ke(), {
9800
9801
  value: s
9801
9802
  } = ne(e.instanceData, "config"), o = z(() => jt({}, s, yl), [s]), {
9802
9803
  content: l,
@@ -9899,7 +9900,7 @@ function bS({
9899
9900
  field: u
9900
9901
  }) => /* @__PURE__ */ r.jsx(A, { label: "Content Template", description: "Filter values & context entries are supported", ...u, required: !0 }) }),
9901
9902
  /* @__PURE__ */ r.jsx(R, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
9902
- /* @__PURE__ */ r.jsxs(et, { cols: 2, children: [
9903
+ /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
9903
9904
  /* @__PURE__ */ r.jsx(f, { control: s, name: "variant", render: ({
9904
9905
  field: u
9905
9906
  }) => /* @__PURE__ */ r.jsx(B, { label: "Variant", data: fS, ...u }) }),
@@ -9907,7 +9908,7 @@ function bS({
9907
9908
  field: u
9908
9909
  }) => /* @__PURE__ */ r.jsx(xS, { label: "Theme", ...u }) })
9909
9910
  ] }),
9910
- /* @__PURE__ */ r.jsxs(et, { cols: 2, children: [
9911
+ /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
9911
9912
  /* @__PURE__ */ r.jsx(f, { control: s, name: "size", render: ({
9912
9913
  field: u
9913
9914
  }) => /* @__PURE__ */ r.jsx(Ks, { label: "Size", ...u }) }),
@@ -9915,7 +9916,7 @@ function bS({
9915
9916
  field: u
9916
9917
  }) => /* @__PURE__ */ r.jsx(he, { label: "Compact", checked: u.value, onChange: (h) => u.onChange(h.currentTarget.checked), mt: 26 }) })
9917
9918
  ] }),
9918
- /* @__PURE__ */ r.jsxs(et, { cols: 2, children: [
9919
+ /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
9919
9920
  /* @__PURE__ */ r.jsx(f, { control: s, name: "horizontal_align", render: ({
9920
9921
  field: u
9921
9922
  }) => /* @__PURE__ */ r.jsx(bl, { ...u }) }),
@@ -10647,7 +10648,7 @@ const im = {
10647
10648
  var h;
10648
10649
  const {
10649
10650
  ref: i
10650
- } = Wd(), a = Ue(), {
10651
+ } = Wd(), a = Ke(), {
10651
10652
  panel: s
10652
10653
  } = Vt(), {
10653
10654
  variables: o,
@@ -11455,7 +11456,7 @@ function D1({
11455
11456
  flexGrow: 1
11456
11457
  }, ...l }) })
11457
11458
  ] }),
11458
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
11459
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
11459
11460
  field: l
11460
11461
  }) => /* @__PURE__ */ r.jsx(Dt, { label: s("chart.color.label"), ...l }) }) }),
11461
11462
  /* @__PURE__ */ r.jsx(R, { mb: -10, mt: 10, variant: "dashed", label: s("chart.behavior.label"), labelPosition: "center" }),
@@ -11584,7 +11585,7 @@ function L1({
11584
11585
  flexGrow: 1
11585
11586
  }, ...c }) })
11586
11587
  ] }),
11587
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `regressions.${n}.plot.color`, control: e, render: ({
11588
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `regressions.${n}.plot.color`, control: e, render: ({
11588
11589
  field: c
11589
11590
  }) => /* @__PURE__ */ r.jsx(Dt, { label: a("chart.color.label"), ...c }) }) })
11590
11591
  ] });
@@ -11734,7 +11735,7 @@ const E1 = ({
11734
11735
  ...wl[c]
11735
11736
  });
11736
11737
  };
11737
- return /* @__PURE__ */ r.jsxs(et, { cols: 2, children: [
11738
+ return /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
11738
11739
  /* @__PURE__ */ r.jsx(B, { ref: i, label: e ?? a("chart.symbol_size.label"), data: o, value: t.type, onChange: l, sx: {
11739
11740
  flexGrow: 1
11740
11741
  } }),
@@ -12122,7 +12123,7 @@ function q1({
12122
12123
  flex: 1
12123
12124
  } }) })
12124
12125
  ] }),
12125
- /* @__PURE__ */ r.jsxs(y, { grow: !0, wrap: "nowrap", children: [
12126
+ /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
12126
12127
  /* @__PURE__ */ r.jsx(f, { name: `series.${t}.y_axis_data_key`, control: e, render: ({
12127
12128
  field: o
12128
12129
  }) => /* @__PURE__ */ r.jsx(te, { label: a("chart.series.data_field"), required: !0, sx: {
@@ -12144,7 +12145,7 @@ function q1({
12144
12145
  /* @__PURE__ */ r.jsx(f, { name: `series.${t}.label_position`, control: e, render: ({
12145
12146
  field: o
12146
12147
  }) => /* @__PURE__ */ r.jsx(si, { label: a("chart.label_position.label"), withOffOption: !0, ...o }) }),
12147
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `series.${t}.color`, control: e, render: ({
12148
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `series.${t}.color`, control: e, render: ({
12148
12149
  field: o
12149
12150
  }) => /* @__PURE__ */ r.jsx(Dt, { label: a("chart.color.label"), ...o }) }) }),
12150
12151
  /* @__PURE__ */ r.jsx(R, { mb: -10, mt: 10, variant: "dashed", label: a("chart.behavior.label"), labelPosition: "center" }),
@@ -12285,11 +12286,11 @@ const Q1 = () => {
12285
12286
  display: "inline-flex"
12286
12287
  }, gap: 6, mr: 14, children: [
12287
12288
  /* @__PURE__ */ r.jsx(k, { size: "sm", children: e("chart.x_axis.x_axis_type") }),
12288
- /* @__PURE__ */ r.jsxs(Ye, { width: 340, shadow: "md", position: "top", children: [
12289
- /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(ue, { size: "xs", variant: "subtle", sx: {
12289
+ /* @__PURE__ */ r.jsxs(Xe, { width: 340, shadow: "md", position: "top", children: [
12290
+ /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(ue, { size: "xs", variant: "subtle", sx: {
12290
12291
  transform: "none !important"
12291
12292
  }, children: /* @__PURE__ */ r.jsx(wt, {}) }) }),
12292
- /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(k, { size: "sm", children: /* @__PURE__ */ r.jsxs(Ma, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
12293
+ /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(k, { size: "sm", children: /* @__PURE__ */ r.jsxs(Ma, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
12293
12294
  "Click",
12294
12295
  /* @__PURE__ */ r.jsx(ca, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 3, children: "here" }),
12295
12296
  "to learn more about these options"
@@ -14668,7 +14669,7 @@ function Ik({
14668
14669
  flex: 1
14669
14670
  }, ...i }) })
14670
14671
  ] }),
14671
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "bar.color", control: e, render: ({
14672
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "bar.color", control: e, render: ({
14672
14673
  field: i
14673
14674
  }) => /* @__PURE__ */ r.jsx(Dt, { label: n("chart.color.label"), ...i }) }) }),
14674
14675
  /* @__PURE__ */ r.jsxs(T, { children: [
@@ -14699,7 +14700,7 @@ function Lk({
14699
14700
  flex: 1
14700
14701
  }, ...i }) })
14701
14702
  ] }),
14702
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "line.color", control: e, render: ({
14703
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "line.color", control: e, render: ({
14703
14704
  field: i
14704
14705
  }) => /* @__PURE__ */ r.jsx(Dt, { label: n("chart.color.label"), ...i }) }) })
14705
14706
  ] });
@@ -14745,7 +14746,7 @@ function Ak({
14745
14746
  t: n
14746
14747
  } = b();
14747
14748
  return t(["markLine"]), /* @__PURE__ */ r.jsxs(T, { children: [
14748
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "markLine.color", control: e, render: ({
14749
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "markLine.color", control: e, render: ({
14749
14750
  field: i
14750
14751
  }) => /* @__PURE__ */ r.jsx(Dt, { label: n("chart.color.label"), ...i }) }) }),
14751
14752
  /* @__PURE__ */ r.jsxs(T, { gap: 4, children: [
@@ -14823,7 +14824,7 @@ function Pk({
14823
14824
  flexGrow: 1
14824
14825
  }, ...l }) })
14825
14826
  ] }),
14826
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
14827
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
14827
14828
  field: l
14828
14829
  }) => /* @__PURE__ */ r.jsx(Dt, { label: s("chart.color.label"), ...l }) }) })
14829
14830
  ] });
@@ -16537,9 +16538,9 @@ function az({
16537
16538
  const {
16538
16539
  t: n
16539
16540
  } = b();
16540
- return /* @__PURE__ */ r.jsxs(Ye, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
16541
- /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "compact-xs", leftSection: /* @__PURE__ */ r.jsx(wt, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
16542
- /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(dt, { children: /* @__PURE__ */ r.jsx(iz, { conf: e, queryData: t }) }) })
16541
+ return /* @__PURE__ */ r.jsxs(Xe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
16542
+ /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "compact-xs", leftSection: /* @__PURE__ */ r.jsx(wt, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
16543
+ /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(dt, { children: /* @__PURE__ */ r.jsx(iz, { conf: e, queryData: t }) }) })
16543
16544
  ] });
16544
16545
  }
16545
16546
  function sz(e) {
@@ -16660,7 +16661,7 @@ function lz({
16660
16661
  flex: 1
16661
16662
  }, ...l }) })
16662
16663
  ] }),
16663
- !s && /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "regression.plot.color", control: e, render: ({
16664
+ !s && /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: "regression.plot.color", control: e, render: ({
16664
16665
  field: l
16665
16666
  }) => /* @__PURE__ */ r.jsx(Dt, { label: n("chart.color.label"), ...l }) }) })
16666
16667
  ] });
@@ -16870,7 +16871,7 @@ const bz = {
16870
16871
  }, yz = L(({
16871
16872
  context: e
16872
16873
  }) => {
16873
- const t = Ue(), {
16874
+ const t = Ke(), {
16874
16875
  panel: n
16875
16876
  } = Vt(), {
16876
16877
  value: i
@@ -17790,7 +17791,7 @@ const iD = oe(({
17790
17791
  ] })
17791
17792
  ] }),
17792
17793
  /* @__PURE__ */ r.jsx(R, { mb: -15, variant: "dashed", label: o("chart.style.label"), labelPosition: "right" }),
17793
- /* @__PURE__ */ r.jsxs(et, { cols: 2, children: [
17794
+ /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
17794
17795
  /* @__PURE__ */ r.jsx(Dt, { label: o("chart.color.background_color"), value: e.itemStyle.color, onChange: (d) => c("itemStyle.color", d) }),
17795
17796
  /* @__PURE__ */ r.jsx(Dt, { label: o("chart.color.text_color"), value: e.label.color, onChange: (d) => c("label.color", d) })
17796
17797
  ] })
@@ -17913,7 +17914,7 @@ function oD({
17913
17914
  flexGrow: 1
17914
17915
  }, ...l }) })
17915
17916
  ] }),
17916
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
17917
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
17917
17918
  field: l
17918
17919
  }) => /* @__PURE__ */ r.jsx(Dt, { label: s("chart.color.label"), ...l }) }) })
17919
17920
  ] });
@@ -18047,7 +18048,7 @@ const cD = ({
18047
18048
  ...Gi[c]
18048
18049
  });
18049
18050
  };
18050
- return /* @__PURE__ */ r.jsxs(et, { cols: 2, children: [
18051
+ return /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
18051
18052
  /* @__PURE__ */ r.jsx(B, { ref: i, label: e, data: o, value: t.type, onChange: l, sx: {
18052
18053
  flexGrow: 1
18053
18054
  } }),
@@ -18580,7 +18581,7 @@ const VD = L(({
18580
18581
  const n = Rn(null), i = Qt({
18581
18582
  vizManager: e.vizManager,
18582
18583
  instance: t
18583
- }), a = Wt(i.triggerManager, _m.id), s = Ue(), {
18584
+ }), a = Wt(i.triggerManager, _m.id), s = Ke(), {
18584
18585
  panel: o
18585
18586
  } = Vt(), l = o.viz.conf.config, {
18586
18587
  data: c,
@@ -20282,7 +20283,7 @@ const Ys = {
20282
20283
  }, aL = L(({
20283
20284
  context: e
20284
20285
  }) => {
20285
- const t = Ue(), {
20286
+ const t = Ke(), {
20286
20287
  value: n = El
20287
20288
  } = ne(e.instanceData, "config"), {
20288
20289
  variables: i
@@ -21792,7 +21793,7 @@ function kM({
21792
21793
  flexGrow: 1
21793
21794
  }, ...l }) })
21794
21795
  ] }),
21795
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
21796
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
21796
21797
  field: l
21797
21798
  }) => /* @__PURE__ */ r.jsx(Dt, { label: s("chart.color.label"), ...l }) }) }),
21798
21799
  /* @__PURE__ */ r.jsx(R, { mb: -10, mt: 10, variant: "dashed", label: s("chart.behavior.label"), labelPosition: "center" }),
@@ -21896,7 +21897,7 @@ function DM({
21896
21897
  flex: 1
21897
21898
  }, ...s }) })
21898
21899
  ] }),
21899
- /* @__PURE__ */ r.jsxs(y, { grow: !0, wrap: "nowrap", children: [
21900
+ /* @__PURE__ */ r.jsxs(Ue, { cols: 2, children: [
21900
21901
  /* @__PURE__ */ r.jsx(f, { name: `series.${t}.data_key`, control: e, render: ({
21901
21902
  field: s
21902
21903
  }) => /* @__PURE__ */ r.jsx(te, { label: a("common.data_field"), required: !0, sx: {
@@ -21918,7 +21919,7 @@ function DM({
21918
21919
  }) => /* @__PURE__ */ r.jsx(si, { label: a("chart.label_position.label"), ...s, withOffOption: !0, onChange: (o) => {
21919
21920
  o && s.onChange(o);
21920
21921
  } }) }),
21921
- /* @__PURE__ */ r.jsx(et, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `series.${t}.color`, control: e, render: ({
21922
+ /* @__PURE__ */ r.jsx(Ue, { cols: 2, children: /* @__PURE__ */ r.jsx(f, { name: `series.${t}.color`, control: e, render: ({
21922
21923
  field: s
21923
21924
  }) => /* @__PURE__ */ r.jsx(Dt, { label: a("chart.color.label"), ...s }) }) }),
21924
21925
  /* @__PURE__ */ r.jsx(R, { mb: -10, mt: 10, variant: "dashed", label: a("chart.behavior.label"), labelPosition: "center" }),
@@ -22826,9 +22827,9 @@ const a2 = {
22826
22827
  }
22827
22828
  };
22828
22829
  function l2() {
22829
- return /* @__PURE__ */ r.jsxs(Ye, { width: 400, shadow: "md", children: [
22830
- /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "compact-xs", leftSection: /* @__PURE__ */ r.jsx(wt, { size: 14 }), children: "指标说明" }) }),
22831
- /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(j, { fz: 14, sx: o2, children: /* @__PURE__ */ r.jsxs(j.Tbody, { children: [
22830
+ return /* @__PURE__ */ r.jsxs(Xe, { width: 400, shadow: "md", children: [
22831
+ /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "compact-xs", leftSection: /* @__PURE__ */ r.jsx(wt, { size: 14 }), children: "指标说明" }) }),
22832
+ /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(j, { fz: 14, sx: o2, children: /* @__PURE__ */ r.jsxs(j.Tbody, { children: [
22832
22833
  /* @__PURE__ */ r.jsxs(j.Tr, { children: [
22833
22834
  /* @__PURE__ */ r.jsx(j.Th, { children: "估算偏差" }),
22834
22835
  /* @__PURE__ */ r.jsx(j.Td, { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
@@ -23156,7 +23157,7 @@ const xd = ({
23156
23157
  data_keys: i,
23157
23158
  formatter: a,
23158
23159
  postfix: s
23159
- } = e, o = Ue(), l = z(() => {
23160
+ } = e, o = Ke(), l = z(() => {
23160
23161
  if (s.type === "text" && s.value)
23161
23162
  return s.value;
23162
23163
  if (s.type === "filter-option-label" && s.value) {
@@ -24192,7 +24193,7 @@ const cE = {
24192
24193
  viz: Fl,
24193
24194
  color: [...dE, ...uE]
24194
24195
  }
24195
- }), vi = new Yj(), Je = {
24196
+ }), vi = new Yj(), Ze = {
24196
24197
  pluginManager: Ln("pluginManager"),
24197
24198
  vizManager: Ln("vizManager"),
24198
24199
  colorManager: Ln("colorManager"),
@@ -24448,11 +24449,11 @@ const pE = x.model("PanelStyleBorderMeta", {
24448
24449
  e.variables.remove(t);
24449
24450
  }
24450
24451
  }));
24451
- var Ze = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e.Transform = "transform", e))(Ze || {});
24452
+ var et = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e.Transform = "transform", e))(et || {});
24452
24453
  const yE = x.model("QueryMeta", {
24453
24454
  id: x.string,
24454
24455
  name: x.string,
24455
- type: x.enumeration("DataSourceType", [Ze.Postgresql, Ze.MySQL, Ze.HTTP, Ze.Transform]),
24456
+ type: x.enumeration("DataSourceType", [et.Postgresql, et.MySQL, et.HTTP, et.Transform]),
24456
24457
  key: x.string,
24457
24458
  sql: x.string,
24458
24459
  pre_process: x.optional(x.string, ""),
@@ -24462,7 +24463,7 @@ const yE = x.model("QueryMeta", {
24462
24463
  dep_query_ids: x.optional(x.array(x.string), [])
24463
24464
  }).views((e) => ({
24464
24465
  get valid() {
24465
- return e.id && e.type && e.key && e.name ? e.type === Ze.HTTP ? !!e.pre_process : !!e.sql : !1;
24466
+ return e.id && e.type && e.key && e.name ? e.type === et.HTTP ? !!e.pre_process : !!e.sql : !1;
24466
24467
  },
24467
24468
  get json() {
24468
24469
  const {
@@ -26732,7 +26733,7 @@ const Zm = x.model("ViewDivisionConfig", {
26732
26733
  }]
26733
26734
  }, nx = x.model("DataSourceMetaModel", {
26734
26735
  id: x.string,
26735
- type: x.enumeration("DataSourceType", [Ze.HTTP, Ze.MySQL, Ze.Postgresql]),
26736
+ type: x.enumeration("DataSourceType", [et.HTTP, et.MySQL, et.Postgresql]),
26736
26737
  key: x.string,
26737
26738
  config: x.frozen()
26738
26739
  }), ZE = x.model("DataSourcesMetaModel", {
@@ -27358,13 +27359,13 @@ const sA = yE.views((e) => ({
27358
27359
  return console.groupCollapsed(`Request config for: ${i}`), console.log(s), console.groupEnd(), JSON.stringify(s);
27359
27360
  },
27360
27361
  get typedAsSQL() {
27361
- return [Ze.Postgresql, Ze.MySQL].includes(e.type);
27362
+ return [et.Postgresql, et.MySQL].includes(e.type);
27362
27363
  },
27363
27364
  get typedAsHTTP() {
27364
- return [Ze.HTTP].includes(e.type);
27365
+ return [et.HTTP].includes(e.type);
27365
27366
  },
27366
27367
  get isTransform() {
27367
- return e.type === Ze.Transform;
27368
+ return e.type === et.Transform;
27368
27369
  },
27369
27370
  get reQueryKey() {
27370
27371
  const {
@@ -28315,7 +28316,7 @@ const uA = (e) => new dA(e), hA = ({
28315
28316
  value: n,
28316
28317
  onChange: i
28317
28318
  }) => {
28318
- const a = Ue(), s = !!t.options_query_id, {
28319
+ const a = Ke(), s = !!t.options_query_id, {
28319
28320
  state: o,
28320
28321
  error: l
28321
28322
  } = a.getDataStuffByID(t.options_query_id), c = o === "loading", d = t.min_width ? t.min_width : "200px", u = s ? c : !1, h = z(() => t.initialSelection(n), [n, t.initialSelection]), p = (g) => i(g, !1);
@@ -28345,7 +28346,7 @@ const uA = (e) => new dA(e), hA = ({
28345
28346
  }) => {
28346
28347
  const {
28347
28348
  t: a
28348
- } = b(), s = Ue(), o = !!t.options_query_id, {
28349
+ } = b(), s = Ke(), o = !!t.options_query_id, {
28349
28350
  state: l,
28350
28351
  error: c
28351
28352
  } = s.getDataStuffByID(t.options_query_id), d = l === "loading", u = ye((h, p) => {
@@ -28458,7 +28459,7 @@ const DA = ({
28458
28459
  }) {
28459
28460
  const [n, {
28460
28461
  toggle: i
28461
- }] = rr(!0), a = Ue(), {
28462
+ }] = rr(!0), a = Ke(), {
28462
28463
  control: s,
28463
28464
  handleSubmit: o,
28464
28465
  reset: l
@@ -28584,7 +28585,7 @@ function EA(e) {
28584
28585
  return e ? ["<p><br></p>", "<p></p>"].includes(e) : !0;
28585
28586
  }
28586
28587
  const AA = L(() => {
28587
- const e = Ue(), {
28588
+ const e = Ke(), {
28588
28589
  panel: t
28589
28590
  } = Vt(), n = z(() => Wa(t.description, t.json.variables, e.payloadForViz, t.data), [t.data, t.description, t.json.variables, e.payloadForViz]);
28590
28591
  return /* @__PURE__ */ r.jsx(ii, { value: n, styles: {
@@ -28659,7 +28660,7 @@ class RA {
28659
28660
  K(this, "runningMigration");
28660
28661
  K(this, "panelModel");
28661
28662
  K(this, "status", "notStarted");
28662
- this.panelModel = t.getRequired(Je.instanceScope.panelModel), this.vizInstance = t.getRequired(Je.instanceScope.vizInstance), this.operationManager = t.getRequired(Je.instanceScope.operationManager), this.triggerManager = t.getRequired(Je.instanceScope.triggerManager), this.vizManager = t.getRequired(Je.vizManager);
28663
+ this.panelModel = t.getRequired(Ze.instanceScope.panelModel), this.vizInstance = t.getRequired(Ze.instanceScope.vizInstance), this.operationManager = t.getRequired(Ze.instanceScope.operationManager), this.triggerManager = t.getRequired(Ze.instanceScope.triggerManager), this.vizManager = t.getRequired(Ze.vizManager);
28663
28664
  }
28664
28665
  async createMigrationTask() {
28665
28666
  const t = [];
@@ -28704,15 +28705,15 @@ function Sx(e) {
28704
28705
  panel: t
28705
28706
  } = Vt();
28706
28707
  return ye((n) => {
28707
- const i = n.getRequired(Je.vizManager), a = i.resolveComponent(e.viz.type);
28708
- return n.createScoped().provideFactory(Je.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(Je.instanceScope.interactionManager, (s) => {
28709
- const o = s.getRequired(Je.instanceScope.vizInstance);
28708
+ const i = n.getRequired(Ze.vizManager), a = i.resolveComponent(e.viz.type);
28709
+ return n.createScoped().provideFactory(Ze.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(Ze.instanceScope.interactionManager, (s) => {
28710
+ const o = s.getRequired(Ze.instanceScope.vizInstance);
28710
28711
  return new gl(o, a, Ua);
28711
- }).provideFactory(Je.instanceScope.operationManager, (s) => s.getRequired(Je.instanceScope.interactionManager).operationManager).provideFactory(Je.instanceScope.triggerManager, (s) => s.getRequired(Je.instanceScope.interactionManager).triggerManager).provideValue(Je.instanceScope.panelModel, t).provideFactory(Je.instanceScope.migrator, (s) => new RA(s));
28712
+ }).provideFactory(Ze.instanceScope.operationManager, (s) => s.getRequired(Ze.instanceScope.interactionManager).operationManager).provideFactory(Ze.instanceScope.triggerManager, (s) => s.getRequired(Ze.instanceScope.interactionManager).triggerManager).provideValue(Ze.instanceScope.panelModel, t).provideFactory(Ze.instanceScope.migrator, (s) => new RA(s));
28712
28713
  }, [e.viz.type, e.viz.conf]);
28713
28714
  }
28714
28715
  function Cx(e) {
28715
- const [t, n] = X(!1), i = Am().getRequired(Je.instanceScope.migrator);
28716
+ const [t, n] = X(!1), i = Am().getRequired(Ze.instanceScope.migrator);
28716
28717
  return Mi(async () => {
28717
28718
  const a = i.status === sa.notStarted;
28718
28719
  n(i.status === sa.done), i.status === sa.notStarted && i.runMigration().then((s) => {
@@ -28723,7 +28724,7 @@ function Cx(e) {
28723
28724
  }, [i]), t;
28724
28725
  }
28725
28726
  function kx(e, t) {
28726
- const n = Am().getRequired(Je.instanceScope.vizInstance);
28727
+ const n = Am().getRequired(Ze.instanceScope.vizInstance);
28727
28728
  return Q(() => (n.instanceData.setItem(null, t.viz.conf), n.instanceData.watchItem(null, (i) => {
28728
28729
  e(i);
28729
28730
  })), [e, t.viz.type]), n;
@@ -28932,7 +28933,7 @@ const Dx = L(({
28932
28933
  function JA(e, t, n) {
28933
28934
  const {
28934
28935
  panels: i
28935
- } = Ue(), a = e.id === "Main", [s, o] = N.useState(() => a && i.findByID(t) ? t : null), l = N.useCallback((h) => {
28936
+ } = Ke(), a = e.id === "Main", [s, o] = N.useState(() => a && i.findByID(t) ? t : null), l = N.useCallback((h) => {
28936
28937
  o(h), a && n(h);
28937
28938
  }, [a, n]), c = N.useCallback(() => {
28938
28939
  o(null), a && n("");
@@ -28996,7 +28997,7 @@ const ZA = N.forwardRef(({
28996
28997
  view: e,
28997
28998
  className: t = "layout"
28998
28999
  }) => {
28999
- const n = Ue(), i = n.layouts.items(e.panelIDs), a = n.layouts.gridLayouts(e.panelIDs);
29000
+ const n = Ke(), i = n.layouts.items(e.panelIDs), a = n.layouts.gridLayouts(e.panelIDs);
29000
29001
  return /* @__PURE__ */ r.jsx(rP, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: a, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: i.map((s) => /* @__PURE__ */ r.jsx("div", { "data-grid": s.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(Dx, { view: e, panel: s.panel }) }, s.id)) });
29001
29002
  });
29002
29003
  function Wl(e) {
@@ -29018,7 +29019,7 @@ const aP = L(({
29018
29019
  } = b(), [n, {
29019
29020
  setTrue: i,
29020
29021
  setFalse: a
29021
- }] = st(!1), s = Cy(), o = Ue(), l = () => {
29022
+ }] = st(!1), s = Cy(), o = Ke(), l = () => {
29022
29023
  const c = JSON.stringify(o.contentJSON, null, 2), d = `${s.name}__${o.name}`;
29023
29024
  oi(d, c);
29024
29025
  };
@@ -29061,7 +29062,7 @@ const aP = L(({
29061
29062
  children: e,
29062
29063
  view: t
29063
29064
  }) => {
29064
- const n = Ue(), i = t.config, a = n.views.visibleViewIDs.includes(t.id), s = () => n.views.rmVisibleViewID(t.id), {
29065
+ const n = Ke(), i = t.config, a = n.views.visibleViewIDs.includes(t.id), s = () => n.views.rmVisibleViewID(t.id), {
29065
29066
  ref: o,
29066
29067
  downloadScreenshot: l
29067
29068
  } = Wl(t);
@@ -29110,7 +29111,7 @@ const aP = L(({
29110
29111
  } : {}, lP = L(({
29111
29112
  view: e
29112
29113
  }) => {
29113
- const t = Ue(), n = e.config;
29114
+ const t = Ke(), n = e.config;
29114
29115
  return /* @__PURE__ */ r.jsxs(v, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, value: e.tab, onChange: e.setTab, styles: {
29115
29116
  root: {
29116
29117
  height: "100%",
@@ -29495,7 +29496,7 @@ const _P = x.compose("FiltersModel", mx, x.model("FiltersModel", {
29495
29496
  return S.sortBy(t, (n) => n.label.toLowerCase());
29496
29497
  },
29497
29498
  get optionsWithoutTransform() {
29498
- const t = e.current.filter((n) => n.type !== Ze.Transform).map((n) => ({
29499
+ const t = e.current.filter((n) => n.type !== et.Transform).map((n) => ({
29499
29500
  value: n.id,
29500
29501
  label: n.name,
29501
29502
  _type: "query"
@@ -33091,7 +33092,7 @@ function Px(e, t) {
33091
33092
  }, [e]);
33092
33093
  }
33093
33094
  function $x(e) {
33094
- return N.useCallback((t) => t.provideValue(Je.pluginManager, e.pluginManager).provideValue(Je.vizManager, e.vizManager).provideValue(Je.colorManager, e.colorManager), []);
33095
+ return N.useCallback((t) => t.provideValue(Ze.pluginManager, e.pluginManager).provideValue(Ze.vizManager, e.vizManager).provideValue(Ze.colorManager, e.colorManager), []);
33095
33096
  }
33096
33097
  const JP = L(({
33097
33098
  saveDashboardChanges: e
@@ -34105,9 +34106,9 @@ const N$ = yg(({
34105
34106
  top: 0,
34106
34107
  right: 0
34107
34108
  }, children: /* @__PURE__ */ r.jsx(ff, { size: 12 }) }),
34108
- /* @__PURE__ */ r.jsxs(Ye, { shadow: "xl", withinPortal: !0, children: [
34109
- /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(k, { size: "sm", children: e.label }) }),
34110
- /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(Ht, { spacing: "xs", size: "sm", center: !0, children: s.map((o) => /* @__PURE__ */ r.jsx(Ht.Item, { icon: o.icon, children: o.text }, o.key)) }) })
34109
+ /* @__PURE__ */ r.jsxs(Xe, { shadow: "xl", withinPortal: !0, children: [
34110
+ /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(k, { size: "sm", children: e.label }) }),
34111
+ /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(Ht, { spacing: "xs", size: "sm", center: !0, children: s.map((o) => /* @__PURE__ */ r.jsx(Ht.Item, { icon: o.icon, children: o.text }, o.key)) }) })
34111
34112
  ] }),
34112
34113
  /* @__PURE__ */ r.jsx(yc, { type: "source", position: n, isConnectable: t })
34113
34114
  ] });
@@ -34115,7 +34116,7 @@ const N$ = yg(({
34115
34116
  const B$ = {
34116
34117
  interaction: N$
34117
34118
  }, H$ = L(() => {
34118
- const e = Ue(), {
34119
+ const e = Ke(), {
34119
34120
  edges: t,
34120
34121
  nodes: n
34121
34122
  } = F$(e);
@@ -34790,7 +34791,7 @@ const U$ = L(() => {
34790
34791
  t: e
34791
34792
  } = b(), {
34792
34793
  panel: t
34793
- } = ht(), n = Ue().layouts.findItemByPanelID(t.id), {
34794
+ } = ht(), n = Ke().layouts.findItemByPanelID(t.id), {
34794
34795
  style: i
34795
34796
  } = t;
34796
34797
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(T, { gap: 20, children: [
@@ -35019,7 +35020,7 @@ const gR = [{
35019
35020
  }), _R = ({
35020
35021
  queryID: e
35021
35022
  }) => {
35022
- const t = Ue(), {
35023
+ const t = Ke(), {
35023
35024
  state: n,
35024
35025
  error: i
35025
35026
  } = t.getDataStuffByID(e), a = N.useMemo(() => t.queries.findByID(e), [t, e]);
@@ -35031,7 +35032,7 @@ const gR = [{
35031
35032
  }) => {
35032
35033
  const {
35033
35034
  t: i
35034
- } = b(), a = Ue(), {
35035
+ } = b(), a = Ke(), {
35035
35036
  data: s,
35036
35037
  state: o
35037
35038
  } = a.getDataStuffByID(e), l = o === "loading", c = ye(() => {
@@ -35138,7 +35139,11 @@ const CR = L(({
35138
35139
  a(e);
35139
35140
  }, [e]);
35140
35141
  const s = SR(), o = e !== i;
35141
- return /* @__PURE__ */ r.jsx(B, { label: n("visualization.component"), value: i, searchable: !0, onChange: a, data: s, rightSection: /* @__PURE__ */ r.jsx(ue, { variant: "filled", color: "green", disabled: !o, onClick: () => t(i), children: /* @__PURE__ */ r.jsx(Re, { size: 20 }) }), maxDropdownHeight: 600 });
35142
+ return /* @__PURE__ */ r.jsx(B, { label: n("visualization.component"), value: i, searchable: !0, onChange: a, data: s, rightSection: /* @__PURE__ */ r.jsx(ue, { variant: "filled", color: "green", disabled: !o, onClick: () => t(i), styles: {
35143
+ root: {
35144
+ pointerEvents: "all"
35145
+ }
35146
+ }, children: /* @__PURE__ */ r.jsx(Re, { size: 20 }) }), maxDropdownHeight: 600 });
35142
35147
  }), Td = [];
35143
35148
  function kR(e, t) {
35144
35149
  try {
@@ -35257,7 +35262,7 @@ const zR = L(() => {
35257
35262
  }) => {
35258
35263
  const {
35259
35264
  t
35260
- } = b(), n = Ue(), {
35265
+ } = b(), n = Ke(), {
35261
35266
  panel: i
35262
35267
  } = Vt(), a = n.dashboardState, s = (() => {
35263
35268
  const o = {
@@ -35885,7 +35890,7 @@ const VR = L(({
35885
35890
  const {
35886
35891
  indexes: t
35887
35892
  } = e;
35888
- return t.loading || t.empty ? null : e.type === Ze.MySQL ? /* @__PURE__ */ r.jsx(WR, { dataSource: e }) : e.type === Ze.Postgresql ? /* @__PURE__ */ r.jsx(QR, { dataSource: e }) : null;
35893
+ return t.loading || t.empty ? null : e.type === et.MySQL ? /* @__PURE__ */ r.jsx(WR, { dataSource: e }) : e.type === et.Postgresql ? /* @__PURE__ */ r.jsx(QR, { dataSource: e }) : null;
35889
35894
  }), KR = L(({
35890
35895
  dataSource: e
35891
35896
  }) => /* @__PURE__ */ r.jsxs(T, { gap: 40, pt: 10, sx: {
@@ -36080,7 +36085,7 @@ const XR = L(({
36080
36085
  label: n,
36081
36086
  type: i
36082
36087
  } = e;
36083
- return i === Ze.Transform ? /* @__PURE__ */ r.jsxs(y, { className: "transform-query-option", justify: "flex-start", ...t, sx: {
36088
+ return i === et.Transform ? /* @__PURE__ */ r.jsxs(y, { className: "transform-query-option", justify: "flex-start", ...t, sx: {
36084
36089
  '&[data-selected="true"]': {
36085
36090
  ".mantine-Text-root": {
36086
36091
  color: "white"
@@ -36115,8 +36120,8 @@ const XR = L(({
36115
36120
  }));
36116
36121
  return u.push({
36117
36122
  label: n("query.transform.data_source"),
36118
- value: Ze.Transform,
36119
- type: Ze.Transform
36123
+ value: et.Transform,
36124
+ type: et.Transform
36120
36125
  }), u;
36121
36126
  }, [a]), l = z(() => o.reduce((u, h) => (u[h.value] = h.type, u), {}), [o]), c = (u) => {
36122
36127
  u !== null && t({
@@ -36186,9 +36191,9 @@ const XR = L(({
36186
36191
  function cO({
36187
36192
  content: e
36188
36193
  }) {
36189
- return /* @__PURE__ */ r.jsxs(Ye, { width: "60vw", shadow: "md", zIndex: 340, children: [
36190
- /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(ue, { size: 16, color: "blue", variant: "subtle", children: /* @__PURE__ */ r.jsx(ru, {}) }) }),
36191
- /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(Vn, { language: "sql", withCopyButton: !1, code: e }) })
36194
+ return /* @__PURE__ */ r.jsxs(Xe, { width: "60vw", shadow: "md", zIndex: 340, children: [
36195
+ /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(ue, { size: 16, color: "blue", variant: "subtle", children: /* @__PURE__ */ r.jsx(ru, {}) }) }),
36196
+ /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(Vn, { language: "sql", withCopyButton: !1, code: e }) })
36192
36197
  ] });
36193
36198
  }
36194
36199
  const dO = L(() => {
@@ -36340,9 +36345,9 @@ WHERE
36340
36345
  const {
36341
36346
  t
36342
36347
  } = b(), n = z(() => S.groupBy(e.dependencies, "type"), [e.dependencies]), i = z(() => e.dependencies.some((s) => !s.valid), [e.dependencies]), a = e.dependencies.length > 0;
36343
- return a ? /* @__PURE__ */ r.jsxs(Ye, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !a, children: [
36344
- /* @__PURE__ */ r.jsx(Ye.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", color: i ? "red" : "green", disabled: !a, leftSection: i ? /* @__PURE__ */ r.jsx(tu, { size: 16 }) : /* @__PURE__ */ r.jsx(Cf, { size: 16 }), children: t("query.dependency.label") }) }),
36345
- /* @__PURE__ */ r.jsx(Ye.Dropdown, { children: /* @__PURE__ */ r.jsx(Ht, { spacing: "md", size: "sm", listStyleType: "none", children: Object.entries(n).map(([s, o]) => /* @__PURE__ */ r.jsxs(Ht.Item, { children: [
36348
+ return a ? /* @__PURE__ */ r.jsxs(Xe, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !a, children: [
36349
+ /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", color: i ? "red" : "green", disabled: !a, leftSection: i ? /* @__PURE__ */ r.jsx(tu, { size: 16 }) : /* @__PURE__ */ r.jsx(Cf, { size: 16 }), children: t("query.dependency.label") }) }),
36350
+ /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(Ht, { spacing: "md", size: "sm", listStyleType: "none", children: Object.entries(n).map(([s, o]) => /* @__PURE__ */ r.jsxs(Ht.Item, { children: [
36346
36351
  /* @__PURE__ */ r.jsx(k, { size: "sm", fw: "bold", ff: "monospace", children: t(`${s}.label`) }),
36347
36352
  /* @__PURE__ */ r.jsx(Ht, { withPadding: !0, size: "sm", sx: {
36348
36353
  fontFamily: "monospace",
@@ -36408,7 +36413,7 @@ WHERE
36408
36413
  } }), bO = L(({
36409
36414
  value: e
36410
36415
  }) => {
36411
- const n = Ue().payloadForSQL, i = N.useMemo(() => _o(e, n), [e, n]);
36416
+ const n = Ke().payloadForSQL, i = N.useMemo(() => _o(e, n), [e, n]);
36412
36417
  return /* @__PURE__ */ r.jsx(fO, { height: "100%", value: i });
36413
36418
  }), Dd = {
36414
36419
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
@@ -36519,7 +36524,7 @@ WHERE
36519
36524
  }), SO = L(({
36520
36525
  value: e
36521
36526
  }) => {
36522
- const n = Ue().payloadForSQL, i = z(() => _o(e, n), [e, n]);
36527
+ const n = Ke().payloadForSQL, i = z(() => _o(e, n), [e, n]);
36523
36528
  return /* @__PURE__ */ r.jsx(cl, { height: "100%", value: i });
36524
36529
  }), CO = L(({
36525
36530
  item: e,
@@ -36960,7 +36965,7 @@ WHERE
36960
36965
  const i = (/* @__PURE__ */ new Date()).getTime().toString(), a = {
36961
36966
  id: i,
36962
36967
  name: i,
36963
- type: Ze.Postgresql,
36968
+ type: et.Postgresql,
36964
36969
  key: "",
36965
36970
  sql: ""
36966
36971
  };
@@ -37543,7 +37548,7 @@ export {
37543
37548
  gP as DashboardViewEditor,
37544
37549
  Ql as DashboardViewRender,
37545
37550
  nx as DataSourceMetaModel,
37546
- Ze as DataSourceType,
37551
+ et as DataSourceType,
37547
37552
  ZE as DataSourcesMetaModel,
37548
37553
  Gu as DatesProvider,
37549
37554
  hy as DefaultApiClient,
@@ -37645,7 +37650,7 @@ export {
37645
37650
  Dy as useIsInEditPanelContext,
37646
37651
  zy as useIsInRenderPanelContext,
37647
37652
  JA as usePanelFullScreen,
37648
- Ue as useRenderContentModelContext,
37653
+ Ke as useRenderContentModelContext,
37649
37654
  Cy as useRenderDashboardContext,
37650
37655
  Vt as useRenderPanelContext
37651
37656
  };