@devtable/dashboard 14.56.1 → 14.56.2

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,7 +9,7 @@ import C, { unset as Mh, get as de, isObject as ql, set as Ga, omit as dn, isFun
9
9
  import { observable as Hl, runInAction as rr, toJS as xt, reaction as qe, makeAutoObservable as cr, computed as Nh, comparer as Bh, autorun as jh } from "mobx";
10
10
  import wo from "eventemitter2";
11
11
  import { jsx as r, Fragment as q, jsxs as u } from "react/jsx-runtime";
12
- import E, { useId as Qh, useState as j, useEffect as F, useCallback as ne, useMemo as z, forwardRef as ee, useRef as wt, createContext as Wl, createElement as dr, useContext as ft, memo as Gh } from "react";
12
+ import E, { useId as Qh, useState as Q, useEffect as F, useCallback as ne, useMemo as z, forwardRef as ee, useRef as wt, createContext as Wl, createElement as dr, useContext as ft, memo as Gh } from "react";
13
13
  import Sn, { random as Fr } from "chroma-js";
14
14
  import Ke from "echarts-for-react/lib/core";
15
15
  import "echarts-gl";
@@ -2522,7 +2522,7 @@ class hi {
2522
2522
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
2523
2523
  }
2524
2524
  }
2525
- const Ks = "14.56.1", Mg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2525
+ const Ks = "14.56.2", Mg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2526
2526
  __proto__: null,
2527
2527
  version: Ks
2528
2528
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2644,7 +2644,7 @@ class ve extends $g {
2644
2644
  const Y = (e, t) => {
2645
2645
  const [n, {
2646
2646
  setFalse: a
2647
- }] = we(!0), [i, o] = j();
2647
+ }] = we(!0), [i, o] = Q();
2648
2648
  F(() => (e.getItem(t).then((s) => {
2649
2649
  o(s), a();
2650
2650
  }), e.watchItem(t, (s) => {
@@ -3327,7 +3327,7 @@ const ye = (e) => (t, n) => {
3327
3327
  } = y(), [a, {
3328
3328
  setTrue: i,
3329
3329
  setFalse: o
3330
- }] = we(), [l, s] = j(e), c = () => {
3330
+ }] = we(), [l, s] = Q(e), c = () => {
3331
3331
  o();
3332
3332
  const {
3333
3333
  type: g,
@@ -3671,7 +3671,7 @@ const ff = gf(), bf = ({
3671
3671
  }, d = (_) => (w) => {
3672
3672
  const T = [...e];
3673
3673
  T[_] = w, t(T);
3674
- }, [h, p] = j(""), g = () => {
3674
+ }, [h, p] = Q(""), g = () => {
3675
3675
  h && (l(h), p(""));
3676
3676
  };
3677
3677
  return /* @__PURE__ */ u(D, { ref: a, children: [
@@ -3984,7 +3984,7 @@ const nr = "data-value", Mf = nr, Cc = "dynamicColor", kc = Rs.create({
3984
3984
  }, o) => {
3985
3985
  const {
3986
3986
  t: l
3987
- } = y(), [s, c] = j(e), d = () => {
3987
+ } = y(), [s, c] = Q(e), d = () => {
3988
3988
  t(s);
3989
3989
  }, h = () => {
3990
3990
  c(e);
@@ -4327,7 +4327,7 @@ const ra = ee(({
4327
4327
  placeholder: "This is placeholder"
4328
4328
  }), Ms, vs, zc, kc];
4329
4329
  return c && $.push(pc), $;
4330
- }, [c]), [h, p] = j(e), g = () => {
4330
+ }, [c]), [h, p] = Q(e), g = () => {
4331
4331
  t(h), i == null || i();
4332
4332
  }, _ = Ls({
4333
4333
  extensions: d,
@@ -4463,7 +4463,7 @@ const Vc = ({
4463
4463
  }) => {
4464
4464
  const {
4465
4465
  t: a
4466
- } = y(), [i, o] = j(e);
4466
+ } = y(), [i, o] = Q(e);
4467
4467
  F(() => {
4468
4468
  n && o(e);
4469
4469
  }, [e, n]);
@@ -4509,7 +4509,7 @@ const Vc = ({
4509
4509
  set: s,
4510
4510
  setFalse: c,
4511
4511
  toggle: d
4512
- }] = we(), [h, p] = j(!1), g = z(() => {
4512
+ }] = we(), [h, p] = Q(!1), g = z(() => {
4513
4513
  const M = [];
4514
4514
  return Hf.forEach(($) => {
4515
4515
  const N = o.colors[$];
@@ -5194,7 +5194,7 @@ const Xt = ee(({
5194
5194
  } = y(), [o, {
5195
5195
  setTrue: l,
5196
5196
  setFalse: s
5197
- }] = we(), [c, d] = j(e);
5197
+ }] = we(), [c, d] = Q(e);
5198
5198
  F(() => {
5199
5199
  d(e);
5200
5200
  }, [e]);
@@ -5490,7 +5490,7 @@ function Vn(e, t) {
5490
5490
  }, [e, t]);
5491
5491
  }
5492
5492
  const yt = (e, t) => {
5493
- const [n, a] = j([]);
5493
+ const [n, a] = Q([]);
5494
5494
  return F(() => e.watchTriggerSnapshotList((i) => a(i.filter((o) => o.schemaRef === t))), []), n;
5495
5495
  }, Ra = Wl(null);
5496
5496
  function aa(e) {
@@ -5738,7 +5738,9 @@ const Mb = {
5738
5738
  "builtin:op:clear_filter_values": 2,
5739
5739
  "builtin:op:set_filter_values": 3,
5740
5740
  "builtin:op:open_view": 4,
5741
- "builtin:op:open-link": 5
5741
+ "builtin:op:open-link": 5,
5742
+ "builtin:op:switch_tab": 6,
5743
+ "builtin:op:scroll_to_panel": 7
5742
5744
  };
5743
5745
  class Ti {
5744
5746
  constructor(t, n, a) {
@@ -5764,7 +5766,7 @@ function Vb(e, t) {
5764
5766
  const {
5765
5767
  value: n,
5766
5768
  set: a
5767
- } = Y(e.operation.operationData, "config"), [i, o] = j(me({}, n, t)), l = async () => {
5769
+ } = Y(e.operation.operationData, "config"), [i, o] = Q(me({}, n, t)), l = async () => {
5768
5770
  await a(i);
5769
5771
  };
5770
5772
  return F(() => {
@@ -5903,7 +5905,7 @@ const Bb = {
5903
5905
  value: e = "",
5904
5906
  onChange: t
5905
5907
  }) => {
5906
- const [n, a] = j(e);
5908
+ const [n, a] = Q(e);
5907
5909
  return F(() => {
5908
5910
  a(e);
5909
5911
  }, [e]), /* @__PURE__ */ r(L, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
@@ -6299,7 +6301,7 @@ class Nc {
6299
6301
  }
6300
6302
  }
6301
6303
  function sy(e, t) {
6302
- const [n, a] = j([]);
6304
+ const [n, a] = Q([]);
6303
6305
  return Qn(async () => {
6304
6306
  const i = await e.getInteractionList();
6305
6307
  a(i);
@@ -6331,7 +6333,7 @@ const cy = I(({
6331
6333
  }), dy = (e) => {
6332
6334
  const {
6333
6335
  t
6334
- } = y(), [n, a] = j(0), {
6336
+ } = y(), [n, a] = Q(0), {
6335
6337
  interactionManager: i,
6336
6338
  instance: o,
6337
6339
  sampleData: l,
@@ -7152,7 +7154,7 @@ function jy(e) {
7152
7154
  value: o
7153
7155
  } = e, {
7154
7156
  classes: l
7155
- } = Wc(), [s, c] = j(qo(o)), [d, {
7157
+ } = Wc(), [s, c] = Q(qo(o)), [d, {
7156
7158
  setTrue: h,
7157
7159
  setFalse: p
7158
7160
  }] = we(!1), g = i % 2 === 1, b = g && o != null, _ = !g && o != null, w = `map ${o} to color ${i}`, T = () => {
@@ -7220,7 +7222,7 @@ const Qy = I(({
7220
7222
  value: a,
7221
7223
  onChange: i,
7222
7224
  colorManager: o
7223
- } = e, l = o.getColorInterpolations(), [s, c] = j(a), d = o.decodeInterpolation(s.interpolation) || l[0], [h, {
7225
+ } = e, l = o.getColorInterpolations(), [s, c] = Q(a), d = o.decodeInterpolation(s.interpolation) || l[0], [h, {
7224
7226
  setTrue: p,
7225
7227
  setFalse: g
7226
7228
  }] = we(), b = z(() => {
@@ -7401,7 +7403,7 @@ const Qy = I(({
7401
7403
  } = d, b = t(n), _ = h.map((U, oe) => ({
7402
7404
  ...U,
7403
7405
  ...b[oe]
7404
- })), w = ((H = C.last(_)) == null ? void 0 : H.id) ?? null, [T, M] = j(w), $ = (U) => {
7406
+ })), w = ((H = C.last(_)) == null ? void 0 : H.id) ?? null, [T, M] = Q(w), $ = (U) => {
7405
7407
  U !== "add" && M(U);
7406
7408
  };
7407
7409
  return F(() => {
@@ -8528,7 +8530,7 @@ const E_ = {
8528
8530
  } = e, o = i(`visualMap.pieces.${t}`), {
8529
8531
  lower: l,
8530
8532
  upper: s
8531
- } = o, c = [No[l.symbol], Bo(l.value, n("chart.visual_map.min_value")), ",", Bo(s.value, n("chart.visual_map.max_value")), No[s.symbol]].join(""), [d, h] = j(!1);
8533
+ } = o, c = [No[l.symbol], Bo(l.value, n("chart.visual_map.min_value")), ",", Bo(s.value, n("chart.visual_map.max_value")), No[s.symbol]].join(""), [d, h] = Q(!1);
8532
8534
  return /* @__PURE__ */ r(v, { wrap: "nowrap", children: /* @__PURE__ */ u(Xe, { width: 400, position: "bottom", withArrow: !0, shadow: "md", opened: d, onChange: h, withinPortal: !0, zIndex: 340, children: [
8533
8535
  /* @__PURE__ */ r(Xe.Target, { children: /* @__PURE__ */ r(V, { variant: "subtle", size: "compact-sm", px: 0, onClick: () => h((p) => !p), fw: "normal", ff: "monospace", children: c }) }),
8534
8536
  /* @__PURE__ */ r(Xe.Dropdown, { children: /* @__PURE__ */ u(v, { wrap: "nowrap", gap: 8, children: [
@@ -10818,7 +10820,7 @@ const Ix = I(({
10818
10820
  } = e, o = z(() => me({}, a, Zc), [a]), l = e.data, {
10819
10821
  width: s,
10820
10822
  height: c
10821
- } = e.viewport, [d, h] = j(0), [p, g] = j(0), b = Math.max(0, Dt(c) - d - p), _ = Tt(s), w = Ec(o.stats, e, t);
10823
+ } = e.viewport, [d, h] = Q(0), [p, g] = Q(0), b = Math.max(0, Dt(c) - d - p), _ = Tt(s), w = Ec(o.stats, e, t);
10822
10824
  return /* @__PURE__ */ u(rt, { width: s, height: c, children: [
10823
10825
  /* @__PURE__ */ r(Dn, { onHeightChange: h, value: o.stats.top, context: e }),
10824
10826
  /* @__PURE__ */ r(Dx, { onChartRenderFinished: w, variables: i, width: _, height: b, data: l, conf: o, interactionManager: n }),
@@ -11202,7 +11204,7 @@ const Ax = ({
11202
11204
  } = y(), [a, {
11203
11205
  setTrue: i,
11204
11206
  setFalse: o
11205
- }] = we(), [l, s] = j(e), c = () => {
11207
+ }] = we(), [l, s] = Q(e), c = () => {
11206
11208
  o();
11207
11209
  const {
11208
11210
  type: g,
@@ -12426,7 +12428,7 @@ const mw = ({
12426
12428
  }), o = t("series"), l = n.map((h, p) => ({
12427
12429
  ...h,
12428
12430
  ...o[p]
12429
- })), s = C.get(l, "0.id"), [c, d] = j(s ?? null);
12431
+ })), s = C.get(l, "0.id"), [c, d] = Q(s ?? null);
12430
12432
  return F(() => {
12431
12433
  s && d((h) => h !== null ? h : s);
12432
12434
  }, [s]), /* @__PURE__ */ u(S, { value: c, onChange: (h) => d(h), styles: {
@@ -13081,7 +13083,7 @@ function Bw({
13081
13083
  const _ = Ha(h).flat();
13082
13084
  nt(t, ed(o, l, _, i, s, c));
13083
13085
  }, [h]);
13084
- const [p, g] = j(1), b = Ow(h, o, p);
13086
+ const [p, g] = Q(1), b = Ow(h, o, p);
13085
13087
  return !s || !c ? null : /* @__PURE__ */ u(rt, { width: s, height: c, children: [
13086
13088
  o.pagination.page_size > 0 && /* @__PURE__ */ r(zw, { page: p, setPage: g, totalPages: d, width: s }),
13087
13089
  /* @__PURE__ */ r(Nw, { instance: t, variables: i, width: Tt(s), height: Dt(c), data: l, seriesData: b, conf: o, interactionManager: n })
@@ -14034,7 +14036,7 @@ function M0({
14034
14036
  } = e, o = z(() => me({}, a, Bi), [a]), l = e.data, {
14035
14037
  width: s,
14036
14038
  height: c
14037
- } = e.viewport, [d, h] = j(0), [p, g] = j(0), b = Math.max(0, Dt(c) - d - p), _ = Tt(s), w = Ec(o.stats, e, t);
14039
+ } = e.viewport, [d, h] = Q(0), [p, g] = Q(0), b = Math.max(0, Dt(c) - d - p), _ = Tt(s), w = Ec(o.stats, e, t);
14038
14040
  return /* @__PURE__ */ u(rt, { width: s, height: c, children: [
14039
14041
  /* @__PURE__ */ r(Dn, { onHeightChange: h, value: o.stats.top, context: e }),
14040
14042
  /* @__PURE__ */ r(I0, { onChartRenderFinished: w, variables: i, width: _, height: b, data: l, conf: o, interactionManager: n }),
@@ -15291,7 +15293,7 @@ function w1({
15291
15293
  } = a, {
15292
15294
  estimated_value: d,
15293
15295
  actual_value: h
15294
- } = c.data_keys, [p, g] = j(h);
15296
+ } = c.data_keys, [p, g] = Q(h);
15295
15297
  if (F(() => {
15296
15298
  g((w) => w || h);
15297
15299
  }, [h]), !s.data_key || !d || !h || !o || !l)
@@ -16426,7 +16428,7 @@ function vS({
16426
16428
  } = Y(e.instanceData, "config"), n = z(() => me({}, t, Gi()), [t]), a = e.data, {
16427
16429
  width: i,
16428
16430
  height: o
16429
- } = e.viewport, [l, s] = j(0), [c, d] = j(0), h = Math.max(0, Dt(o) - l - c), p = Tt(i);
16431
+ } = e.viewport, [l, s] = Q(0), [c, d] = Q(0), h = Math.max(0, Dt(o) - l - c), p = Tt(i);
16430
16432
  return /* @__PURE__ */ u(rt, { width: i, height: o, children: [
16431
16433
  /* @__PURE__ */ r(Dn, { onHeightChange: s, value: n.stats.top, context: e }),
16432
16434
  /* @__PURE__ */ r(_S, { width: p, height: h, data: a, conf: n })
@@ -17589,7 +17591,7 @@ const mC = (e, t) => `
17589
17591
  const {
17590
17592
  t: e,
17591
17593
  i18n: t
17592
- } = y(), [n, a] = j(!1), i = z(() => mC(e("viz.pareto_chart.line_80_20.param_section_note_1"), e("viz.pareto_chart.line_80_20.param_section_note_2")), [t.language]);
17594
+ } = y(), [n, a] = Q(!1), i = z(() => mC(e("viz.pareto_chart.line_80_20.param_section_note_1"), e("viz.pareto_chart.line_80_20.param_section_note_2")), [t.language]);
17593
17595
  return /* @__PURE__ */ u(q, { children: [
17594
17596
  /* @__PURE__ */ r(V, { 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") }),
17595
17597
  /* @__PURE__ */ r(hr, { in: n, children: /* @__PURE__ */ r(Et, { language: "typescript", withCopyButton: !1, code: i }) })
@@ -18332,7 +18334,7 @@ const UC = ee(({
18332
18334
  value: t,
18333
18335
  onChange: n
18334
18336
  }, a) => {
18335
- const [i, o] = j(HC(t)), l = ne((s) => {
18337
+ const [i, o] = Q(HC(t)), l = ne((s) => {
18336
18338
  n(WC(s));
18337
18339
  }, [n]);
18338
18340
  return /* @__PURE__ */ u(D, { gap: 4, mt: 2, mb: "1rem", children: [
@@ -19987,7 +19989,7 @@ function c2({
19987
19989
  ] });
19988
19990
  }
19989
19991
  const Sa = (e) => {
19990
- const [t, n] = j(e);
19992
+ const [t, n] = Q(e);
19991
19993
  return {
19992
19994
  value: t,
19993
19995
  set: n
@@ -21139,7 +21141,7 @@ function iz({
21139
21141
  } = e, o = z(() => me({}, a, bd), [a]), l = e.data, {
21140
21142
  width: s,
21141
21143
  height: c
21142
- } = e.viewport, [d, h] = j(0), [p, g] = j(0), b = Math.max(0, Dt(c) - d - p), _ = Tt(s);
21144
+ } = e.viewport, [d, h] = Q(0), [p, g] = Q(0), b = Math.max(0, Dt(c) - d - p), _ = Tt(s);
21143
21145
  return !s || !c ? null : /* @__PURE__ */ u(rt, { width: s, height: c, children: [
21144
21146
  /* @__PURE__ */ r(Dn, { onHeightChange: h, value: o.stats.top, context: e }),
21145
21147
  /* @__PURE__ */ r(az, { instance: t, variables: i, width: _, height: b, data: l, conf: o, interactionManager: n }),
@@ -21368,7 +21370,7 @@ const uz = ({
21368
21370
  } = y(), [a, {
21369
21371
  setTrue: i,
21370
21372
  setFalse: o
21371
- }] = we(), [l, s] = j(e), c = () => {
21373
+ }] = we(), [l, s] = Q(e), c = () => {
21372
21374
  o();
21373
21375
  const {
21374
21376
  type: g,
@@ -22427,7 +22429,7 @@ function s3({
22427
22429
  F(() => {
22428
22430
  h(o);
22429
22431
  }, [o]), c(["label_key", "value_key", "group_key", "levels"]);
22430
- const [p, g] = j("Data");
22432
+ const [p, g] = Q("Data");
22431
22433
  return /* @__PURE__ */ r("form", { onSubmit: s(a), children: /* @__PURE__ */ u(D, { gap: "xs", children: [
22432
22434
  /* @__PURE__ */ r(Ie, { canSubmit: d.isDirty }),
22433
22435
  /* @__PURE__ */ u(S, { value: p, onChange: g, orientation: "vertical", styles: {
@@ -23278,7 +23280,7 @@ function nl({
23278
23280
  minSize: typeof Ee.width == "number" ? Ee.width : void 0
23279
23281
  });
23280
23282
  });
23281
- }, [g, b]), [w, T] = j([]), [M, $] = E.useState({
23283
+ }, [g, b]), [w, T] = Q([]), [M, $] = E.useState({
23282
23284
  pageIndex: 0,
23283
23285
  pageSize: a.pagination.page_size
23284
23286
  }), N = z(() => {
@@ -23502,7 +23504,7 @@ const n5 = ee((e, t) => {
23502
23504
  t: n
23503
23505
  } = y(), {
23504
23506
  colorManager: a
23505
- } = ft(ln), [i, o] = j(Dd(e.value)), [l, s] = j(e5(a, e.value)), c = zr(l), [d, h] = j(t5(a, e.value)), p = zr(d), g = (w) => {
23507
+ } = ft(ln), [i, o] = Q(Dd(e.value)), [l, s] = Q(e5(a, e.value)), c = zr(l), [d, h] = Q(t5(a, e.value)), p = zr(d), g = (w) => {
23506
23508
  var T, M, $;
23507
23509
  o(w || "none"), w === "static" ? (T = e.onChange) == null || T.call(e, c.current) : w === "none" || !w ? (M = e.onChange) == null || M.call(e, "none") : ($ = e.onChange) == null || $.call(e, p.current);
23508
23510
  }, b = (w) => {
@@ -23539,7 +23541,7 @@ const n5 = ee((e, t) => {
23539
23541
  } = y(), [i, {
23540
23542
  setTrue: o,
23541
23543
  setFalse: l
23542
- }] = we(), [s, c] = j(e), d = () => {
23544
+ }] = we(), [s, c] = Q(e), d = () => {
23543
23545
  l(), t(s);
23544
23546
  }, h = () => {
23545
23547
  l(), c(e);
@@ -23872,7 +23874,7 @@ const p5 = E.forwardRef(h5), m5 = ({
23872
23874
  } = y(), [i, {
23873
23875
  setTrue: o,
23874
23876
  setFalse: l
23875
- }] = we(), [s, c] = j(e), d = () => {
23877
+ }] = we(), [s, c] = Q(e), d = () => {
23876
23878
  l(), t(s);
23877
23879
  }, h = () => {
23878
23880
  l(), c(e);
@@ -24675,7 +24677,7 @@ const fT = ({
24675
24677
  } = y(), [n, {
24676
24678
  setTrue: a,
24677
24679
  setFalse: i
24678
- }] = we(!1), [o, l] = j("");
24680
+ }] = we(!1), [o, l] = Q("");
24679
24681
  F(() => {
24680
24682
  l("");
24681
24683
  }, [n]);
@@ -25866,7 +25868,7 @@ const Fd = m.model("DBQueryMeta", {
25866
25868
  e.value = t;
25867
25869
  }
25868
25870
  }));
25869
- var Q = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TreeSelect = "tree-select", e.TreeSingleSelect = "tree-single-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e.MericoDateRange = "merico-date-range", e))(Q || {});
25871
+ var j = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TreeSelect = "tree-select", e.TreeSingleSelect = "tree-single-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e.MericoDateRange = "merico-date-range", e))(j || {});
25870
25872
  const Qd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Gd = m.model("FilterCheckboxConfigMeta", {
25871
25873
  _name: m.literal("checkbox"),
25872
25874
  description: m.optional(m.string, ""),
@@ -26518,20 +26520,20 @@ const jT = m.model("FilterDateRangeConfigMeta", {
26518
26520
  `, eu = () => {
26519
26521
  const {
26520
26522
  t: e
26521
- } = y(), [t, n] = j(!1);
26523
+ } = y(), [t, n] = Q(!1);
26522
26524
  return /* @__PURE__ */ u(q, { children: [
26523
26525
  /* @__PURE__ */ r(V, { variant: "subtle", size: "compact-sm", onClick: () => n((a) => !a), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
26524
26526
  /* @__PURE__ */ r(hr, { in: t, children: /* @__PURE__ */ r(Et, { language: "typescript", withCopyButton: !1, code: WT }) })
26525
26527
  ] });
26526
26528
  }, UT = {
26527
- [Q.Checkbox]: "true",
26528
- [Q.DateRange]: "[new Date('2023-01-01 00:00:00'), new Date('2024-01-01 00:00:00')]",
26529
- [Q.MericoDateRange]: "[new Date('2023-01-01 00:00:00'), new Date('2024-01-01 00:00:00')]",
26530
- [Q.MultiSelect]: "[]",
26531
- [Q.Select]: '""',
26532
- [Q.TreeSelect]: "[]",
26533
- [Q.TreeSingleSelect]: '""',
26534
- [Q.TextInput]: '""'
26529
+ [j.Checkbox]: "true",
26530
+ [j.DateRange]: "[new Date('2023-01-01 00:00:00'), new Date('2024-01-01 00:00:00')]",
26531
+ [j.MericoDateRange]: "[new Date('2023-01-01 00:00:00'), new Date('2024-01-01 00:00:00')]",
26532
+ [j.MultiSelect]: "[]",
26533
+ [j.Select]: '""',
26534
+ [j.TreeSelect]: "[]",
26535
+ [j.TreeSingleSelect]: '""',
26536
+ [j.TextInput]: '""'
26535
26537
  }, KT = (e) => ["function getDefaultValue(filter, utils, context) {", ` return ${UT[e]};`, "}"].join(`
26536
26538
  `), vn = I(({
26537
26539
  filter: e
@@ -26966,9 +26968,9 @@ const jT = m.model("FilterDateRangeConfigMeta", {
26966
26968
  radius: t,
26967
26969
  width: n.width,
26968
26970
  name: "FilterTreeSelectWidget"
26969
- }), [b, _] = j(!1), w = (H) => {
26971
+ }), [b, _] = Q(!1), w = (H) => {
26970
26972
  _(H);
26971
- }, T = b && (i == null ? void 0 : i.length) > 0, M = tD(l, i, o, d), [$, N] = j("");
26973
+ }, T = b && (i == null ? void 0 : i.length) > 0, M = tD(l, i, o, d), [$, N] = Q("");
26972
26974
  return /* @__PURE__ */ u(D, { gap: 3, children: [
26973
26975
  /* @__PURE__ */ u(v, { justify: "space-between", children: [
26974
26976
  /* @__PURE__ */ u(k, { className: p.label, size: "sm", children: [
@@ -27920,7 +27922,7 @@ const fD = m.model("FilterMericoDateRangeConfigMeta", {
27920
27922
  visibleInViewsIDs: m.array(m.string),
27921
27923
  auto_submit: m.optional(m.boolean, !1),
27922
27924
  default_value_func: m.optional(m.string, ""),
27923
- type: m.enumeration("DashboardFilterType", [Q.Select, Q.MultiSelect, Q.TreeSelect, Q.TreeSingleSelect, Q.TextInput, Q.Checkbox, Q.DateRange, Q.MericoDateRange]),
27925
+ type: m.enumeration("DashboardFilterType", [j.Select, j.MultiSelect, j.TreeSelect, j.TreeSingleSelect, j.TextInput, j.Checkbox, j.DateRange, j.MericoDateRange]),
27924
27926
  config: m.union(Xd, Yd, iu, ou, Zd, Gd, Kd, du)
27925
27927
  }).views((e) => ({
27926
27928
  get contentModel() {
@@ -27937,7 +27939,7 @@ const fD = m.model("FilterMericoDateRangeConfigMeta", {
27937
27939
  return Array.isArray(t) ? [...t] : t;
27938
27940
  },
27939
27941
  get usingDefaultValue() {
27940
- return e.type !== Q.TreeSelect && e.type !== Q.TreeSingleSelect;
27942
+ return e.type !== j.TreeSelect && e.type !== j.TreeSingleSelect;
27941
27943
  },
27942
27944
  get usingDefaultValueFunc() {
27943
27945
  return !!e.default_value_func;
@@ -27946,7 +27948,7 @@ const fD = m.model("FilterMericoDateRangeConfigMeta", {
27946
27948
  return this.filters.formattedDefaultValues[e.key];
27947
27949
  },
27948
27950
  get auto_submit_supported() {
27949
- return [Q.Select, Q.Checkbox, Q.DateRange].includes(e.type);
27951
+ return [j.Select, j.Checkbox, j.DateRange].includes(e.type);
27950
27952
  }
27951
27953
  })).views((e) => ({
27952
27954
  get json() {
@@ -27999,28 +28001,28 @@ const fD = m.model("FilterMericoDateRangeConfigMeta", {
27999
28001
  },
28000
28002
  setType(t) {
28001
28003
  switch (t) {
28002
- case Q.Select:
28004
+ case j.Select:
28003
28005
  e.config = HT();
28004
28006
  break;
28005
- case Q.MultiSelect:
28007
+ case j.MultiSelect:
28006
28008
  e.config = GT();
28007
28009
  break;
28008
- case Q.TreeSelect:
28010
+ case j.TreeSelect:
28009
28011
  e.config = uD();
28010
28012
  break;
28011
- case Q.TreeSingleSelect:
28013
+ case j.TreeSingleSelect:
28012
28014
  e.config = hD();
28013
28015
  break;
28014
- case Q.TextInput:
28016
+ case j.TextInput:
28015
28017
  e.config = Jd();
28016
28018
  break;
28017
- case Q.Checkbox:
28019
+ case j.Checkbox:
28018
28020
  e.config = NT();
28019
28021
  break;
28020
- case Q.DateRange:
28022
+ case j.DateRange:
28021
28023
  e.config = QT();
28022
28024
  break;
28023
- case Q.MericoDateRange:
28025
+ case j.MericoDateRange:
28024
28026
  e.config = bD();
28025
28027
  break;
28026
28028
  default:
@@ -28852,7 +28854,10 @@ const Tu = m.model("FiltersRenderModel", {
28852
28854
  return Object.entries(e.values).forEach(([n, a]) => {
28853
28855
  t[n] = a;
28854
28856
  const i = this.findByKey(n);
28855
- i && i.config._name === Q.DateRange && (t[n] = i.config.dateStringsValue);
28857
+ i && i.config._name === j.DateRange && (t[n] = i.config.dateStringsValue), i && i.config._name === j.MericoDateRange && (t[n] = {
28858
+ ...a,
28859
+ value: i.config.dateStringsValue
28860
+ });
28856
28861
  }), t;
28857
28862
  },
28858
28863
  get contentModel() {
@@ -29245,7 +29250,7 @@ function pl(e, t, n) {
29245
29250
  function ml(e, t, n, a, i = "PRC", o = "YYYY-MM-DD") {
29246
29251
  const l = t ? C.get(a, t) : void 0, s = e ? C.get(a, e) : void 0;
29247
29252
  let c = t ? C.get(n, t, "") : "";
29248
- l === Q.MericoDateRange && t && (c = C.get(n, `${t}.step`, ""));
29253
+ l === j.MericoDateRange && t && (c = C.get(n, `${t}.step`, ""));
29249
29254
  const d = {
29250
29255
  start: "",
29251
29256
  end: "",
@@ -29255,7 +29260,7 @@ function ml(e, t, n, a, i = "PRC", o = "YYYY-MM-DD") {
29255
29260
  stepKeyFormat: o
29256
29261
  };
29257
29262
  if (e)
29258
- if (s === Q.MericoDateRange) {
29263
+ if (s === j.MericoDateRange) {
29259
29264
  const h = C.get(n, `${e}.value`), p = pl(h, i, o);
29260
29265
  p && (d.start = p.start, d.end = p.end);
29261
29266
  } else {
@@ -29435,12 +29440,12 @@ const ED = ET.views((e) => ({
29435
29440
  console.log("MMS var", i);
29436
29441
  const o = a.filters.reduce((h, p) => {
29437
29442
  const g = C.get(t, p.variable), b = C.get(n, p.variable), _ = p.dimension;
29438
- if (b === Q.DateRange) {
29443
+ if (b === j.DateRange) {
29439
29444
  const T = g.every((M) => Number.isFinite(Number(M))) ? g.map((M) => Number(M)) : g;
29440
29445
  h[_] = {
29441
29446
  between: T
29442
29447
  };
29443
- } else if (b === Q.MericoDateRange) {
29448
+ } else if (b === j.MericoDateRange) {
29444
29449
  const T = g.value.every((M) => Number.isFinite(Number(M))) ? g.value.map((M) => Number(M)) : g;
29445
29450
  h[_] = {
29446
29451
  between: T
@@ -30483,9 +30488,9 @@ const jD = (e) => new BD(e), QD = ({
30483
30488
  } = ZD({
30484
30489
  radius: t,
30485
30490
  name: "MultiSelectWidget"
30486
- }), [g, b] = j(!1), _ = (te) => {
30491
+ }), [g, b] = Q(!1), _ = (te) => {
30487
30492
  b(te);
30488
- }, w = g && (i == null ? void 0 : i.length) > 0, [T, M] = j(""), $ = z(() => {
30493
+ }, w = g && (i == null ? void 0 : i.length) > 0, [T, M] = Q(""), $ = z(() => {
30489
30494
  if (!T)
30490
30495
  return l;
30491
30496
  const te = T.toLowerCase(), Le = (Ge) => {
@@ -30694,7 +30699,7 @@ function d6(e, t) {
30694
30699
  };
30695
30700
  }
30696
30701
  const u6 = (e, t, n) => {
30697
- const a = e.step, [i, o] = j(null), [l, s] = j(e.value), c = (b, _) => {
30702
+ const a = e.step, [i, o] = Q(null), [l, s] = Q(e.value), c = (b, _) => {
30698
30703
  if (!b || !_)
30699
30704
  return;
30700
30705
  const [w, T] = l, M = b.toDate(), $ = _.toDate();
@@ -30758,7 +30763,7 @@ const u6 = (e, t, n) => {
30758
30763
  onChange: t,
30759
30764
  handleRangeChange: n
30760
30765
  }) => {
30761
- const [a, i] = j(!0), o = e.value, [l, s] = o, c = z(() => l || /* @__PURE__ */ new Date(), [l]), {
30766
+ const [a, i] = Q(!0), o = e.value, [l, s] = o, c = z(() => l || /* @__PURE__ */ new Date(), [l]), {
30762
30767
  getDayProps: d
30763
30768
  } = u6(e, n, a);
30764
30769
  return /* @__PURE__ */ r(Kh, { defaultDate: c, numberOfColumns: 2, withCellSpacing: !1, getDayProps: d, onMouseEnter: () => {
@@ -30976,21 +30981,21 @@ const u6 = (e, t, n) => {
30976
30981
  formFieldProps: i
30977
30982
  }) => {
30978
30983
  switch (e) {
30979
- case Q.Select:
30984
+ case j.Select:
30980
30985
  return /* @__PURE__ */ r(r6, { ...a, ...i, config: t });
30981
- case Q.MultiSelect:
30986
+ case j.MultiSelect:
30982
30987
  return /* @__PURE__ */ r(t6, { ...a, ...i, config: t });
30983
- case Q.TreeSelect:
30988
+ case j.TreeSelect:
30984
30989
  return /* @__PURE__ */ r(aD, { ...a, ...i, config: t });
30985
- case Q.TreeSingleSelect:
30990
+ case j.TreeSingleSelect:
30986
30991
  return /* @__PURE__ */ r(sD, { ...a, ...i, config: t });
30987
- case Q.TextInput:
30992
+ case j.TextInput:
30988
30993
  return /* @__PURE__ */ r(a6, { ...a, ...i, config: t });
30989
- case Q.DateRange:
30994
+ case j.DateRange:
30990
30995
  return /* @__PURE__ */ r(Ou, { ...a, ...i, config: t });
30991
- case Q.MericoDateRange:
30996
+ case j.MericoDateRange:
30992
30997
  return /* @__PURE__ */ r(D6, { ...a, ...i, config: t });
30993
- case Q.Checkbox:
30998
+ case j.Checkbox:
30994
30999
  return /* @__PURE__ */ r(GD, { ...a, ...i, config: t });
30995
31000
  default:
30996
31001
  return null;
@@ -31031,7 +31036,7 @@ function L6(e) {
31031
31036
  }
31032
31037
  const co = "N/A";
31033
31038
  function L$() {
31034
- const e = ea(), [t, n] = j([]);
31039
+ const e = ea(), [t, n] = Q([]);
31035
31040
  return F(() => {
31036
31041
  const a = Nh(() => e.content.views.visibleViews.map((c) => {
31037
31042
  var d;
@@ -31046,30 +31051,30 @@ function L$() {
31046
31051
  }
31047
31052
  function $6(e) {
31048
31053
  switch (e.type) {
31049
- case Q.Select:
31050
- case Q.MultiSelect:
31051
- case Q.TreeSelect:
31052
- case Q.TreeSingleSelect:
31054
+ case j.Select:
31055
+ case j.MultiSelect:
31056
+ case j.TreeSelect:
31057
+ case j.TreeSingleSelect:
31053
31058
  return {
31054
31059
  label: e.label,
31055
31060
  value: R6(e.config, e.value)
31056
31061
  };
31057
- case Q.TextInput:
31062
+ case j.TextInput:
31058
31063
  return {
31059
31064
  label: e.label,
31060
31065
  value: e.value
31061
31066
  };
31062
- case Q.DateRange:
31067
+ case j.DateRange:
31063
31068
  return {
31064
31069
  label: e.label,
31065
31070
  value: P6(e.config, e.value)
31066
31071
  };
31067
- case Q.MericoDateRange:
31072
+ case j.MericoDateRange:
31068
31073
  return {
31069
31074
  label: e.label,
31070
31075
  value: A6(e.config, e.value)
31071
31076
  };
31072
- case Q.Checkbox:
31077
+ case j.Checkbox:
31073
31078
  return {
31074
31079
  label: e.label,
31075
31080
  value: E6(e.value)
@@ -31387,7 +31392,7 @@ function Hu(e, t = !0) {
31387
31392
  }, [e.viz.type, e.viz.conf, t]);
31388
31393
  }
31389
31394
  function Wu(e) {
31390
- const [t, n] = j(!1), a = ia().getRequired(ke.instanceScope.migrator);
31395
+ const [t, n] = Q(!1), a = ia().getRequired(ke.instanceScope.migrator);
31391
31396
  return Qn(async () => {
31392
31397
  const i = a.status === Cr.notStarted;
31393
31398
  n(a.status === Cr.done), a.status === Cr.notStarted && a.runMigration().then((o) => {
@@ -32370,7 +32375,7 @@ const K4 = m.compose("FiltersModel", Tu, m.model({
32370
32375
  }));
32371
32376
  },
32372
32377
  get selects() {
32373
- return e.current.filter((t) => t.type === Q.Select).map((t) => ({
32378
+ return e.current.filter((t) => t.type === j.Select).map((t) => ({
32374
32379
  label: t.label ?? t.id,
32375
32380
  value: t.id
32376
32381
  }));
@@ -34805,7 +34810,7 @@ const QI = I(({
34805
34810
  color: "red"
34806
34811
  });
34807
34812
  }
34808
- }, [g, b] = j(null);
34813
+ }, [g, b] = Q(null);
34809
34814
  F(() => {
34810
34815
  if (!g)
34811
34816
  return;
@@ -34941,7 +34946,7 @@ const QI = I(({
34941
34946
  const {
34942
34947
  t: e,
34943
34948
  i18n: t
34944
- } = y(), n = Br(), a = le(), [i, o] = j(""), l = z(() => a.editor.spotlightActionGroups.map((c) => ({
34949
+ } = y(), n = Br(), a = le(), [i, o] = Q(""), l = z(() => a.editor.spotlightActionGroups.map((c) => ({
34945
34950
  group: e(c.group),
34946
34951
  keywords: [c.group, e(c.group)],
34947
34952
  actions: c.actions.map((d) => {
@@ -35520,7 +35525,7 @@ const z8 = I(() => {
35520
35525
  return;
35521
35526
  }
35522
35527
  t.editor.open(["_FILTERS_", n.filters.firstID]);
35523
- }, [o, l] = j(!1), s = () => l(!0), c = () => l(!1);
35528
+ }, [o, l] = Q(!1), s = () => l(!0), c = () => l(!1);
35524
35529
  return /* @__PURE__ */ u(ot.Navbar, { p: 0, zIndex: 299, children: [
35525
35530
  /* @__PURE__ */ u(ot.Section, { children: [
35526
35531
  /* @__PURE__ */ u(v, { grow: !0, gap: 0, sx: {
@@ -35637,7 +35642,7 @@ const z8 = I(() => {
35637
35642
  `, uh = () => {
35638
35643
  const {
35639
35644
  t: e
35640
- } = y(), [t, n] = j(!1);
35645
+ } = y(), [t, n] = Q(!1);
35641
35646
  return /* @__PURE__ */ u(q, { children: [
35642
35647
  /* @__PURE__ */ r(V, { variant: "subtle", size: "compact-sm", onClick: () => n((a) => !a), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
35643
35648
  /* @__PURE__ */ r(hr, { in: t, children: /* @__PURE__ */ r(Et, { language: "typescript", withCopyButton: !1, code: V8 }) })
@@ -35934,7 +35939,7 @@ const z8 = I(() => {
35934
35939
  value: _
35935
35940
  }))
35936
35941
  }));
35937
- }, [n.default_step]), i = [...n.default_value], [o, l] = j(i), s = (h) => {
35942
+ }, [n.default_step]), i = [...n.default_value], [o, l] = Q(i), s = (h) => {
35938
35943
  l(h), !(h[0] === null || h[1] === null) && (n.setDefaultValue({
35939
35944
  value: sr(h[0], h[1], n.default_step),
35940
35945
  shortcut: null,
@@ -35966,23 +35971,23 @@ const z8 = I(() => {
35966
35971
  /* @__PURE__ */ r(vn, { filter: e })
35967
35972
  ] });
35968
35973
  }), q8 = {
35969
- [Q.Select]: R8,
35970
- [Q.MultiSelect]: L8,
35971
- [Q.TreeSelect]: XT,
35972
- [Q.TreeSingleSelect]: iD,
35973
- [Q.TextInput]: P8,
35974
- [Q.Checkbox]: D8,
35975
- [Q.DateRange]: M8,
35976
- [Q.MericoDateRange]: O8
35974
+ [j.Select]: R8,
35975
+ [j.MultiSelect]: L8,
35976
+ [j.TreeSelect]: XT,
35977
+ [j.TreeSingleSelect]: iD,
35978
+ [j.TextInput]: P8,
35979
+ [j.Checkbox]: D8,
35980
+ [j.DateRange]: M8,
35981
+ [j.MericoDateRange]: O8
35977
35982
  }, jt = {
35978
- [Q.Select]: "filter.widget.names.select",
35979
- [Q.MultiSelect]: "filter.widget.names.multi_select",
35980
- [Q.TreeSelect]: "filter.widget.names.tree_select",
35981
- [Q.TreeSingleSelect]: "filter.widget.names.tree_single_select",
35982
- [Q.TextInput]: "filter.widget.names.text_input",
35983
- [Q.Checkbox]: "filter.widget.names.checkbox",
35984
- [Q.DateRange]: "filter.widget.names.date_range",
35985
- [Q.MericoDateRange]: "filter.widget.names.merico_date_range"
35983
+ [j.Select]: "filter.widget.names.select",
35984
+ [j.MultiSelect]: "filter.widget.names.multi_select",
35985
+ [j.TreeSelect]: "filter.widget.names.tree_select",
35986
+ [j.TreeSingleSelect]: "filter.widget.names.tree_single_select",
35987
+ [j.TextInput]: "filter.widget.names.text_input",
35988
+ [j.Checkbox]: "filter.widget.names.checkbox",
35989
+ [j.DateRange]: "filter.widget.names.date_range",
35990
+ [j.MericoDateRange]: "filter.widget.names.merico_date_range"
35986
35991
  }, F8 = I(({
35987
35992
  filter: e
35988
35993
  }) => {
@@ -35990,28 +35995,28 @@ const z8 = I(() => {
35990
35995
  t,
35991
35996
  i18n: n
35992
35997
  } = y(), a = ie(), i = E.useMemo(() => q8[e.type], [e.type]), o = z(() => [{
35993
- label: t(jt[Q.Select]),
35998
+ label: t(jt[j.Select]),
35994
35999
  value: "select"
35995
36000
  }, {
35996
- label: t(jt[Q.MultiSelect]),
36001
+ label: t(jt[j.MultiSelect]),
35997
36002
  value: "multi-select"
35998
36003
  }, {
35999
- label: t(jt[Q.TreeSelect]),
36004
+ label: t(jt[j.TreeSelect]),
36000
36005
  value: "tree-select"
36001
36006
  }, {
36002
- label: t(jt[Q.TreeSingleSelect]),
36007
+ label: t(jt[j.TreeSingleSelect]),
36003
36008
  value: "tree-single-select"
36004
36009
  }, {
36005
- label: t(jt[Q.TextInput]),
36010
+ label: t(jt[j.TextInput]),
36006
36011
  value: "text-input"
36007
36012
  }, {
36008
- label: t(jt[Q.Checkbox]),
36013
+ label: t(jt[j.Checkbox]),
36009
36014
  value: "checkbox"
36010
36015
  }, {
36011
- label: t(jt[Q.DateRange]),
36016
+ label: t(jt[j.DateRange]),
36012
36017
  value: "date-range"
36013
36018
  }, {
36014
- label: t(jt[Q.MericoDateRange]),
36019
+ label: t(jt[j.MericoDateRange]),
36015
36020
  value: "merico-date-range"
36016
36021
  }], [n.language]);
36017
36022
  return /* @__PURE__ */ u(v, { grow: !0, gap: 20, align: "top", children: [
@@ -36086,7 +36091,7 @@ const z8 = I(() => {
36086
36091
  }), B8 = I(() => {
36087
36092
  const {
36088
36093
  t: e
36089
- } = y(), [t, n] = j([]), a = le(), i = (d) => {
36094
+ } = y(), [t, n] = Q([]), a = le(), i = (d) => {
36090
36095
  a.editor.setPath(["_FILTERS_", d]);
36091
36096
  }, o = () => {
36092
36097
  a.content.filters.downloadSchema(t);
@@ -36159,7 +36164,7 @@ const z8 = I(() => {
36159
36164
  }), j8 = I(() => {
36160
36165
  const {
36161
36166
  t: e
36162
- } = y(), t = ie(), [n, a] = j(() => JSON.stringify(t.mock_context.current, null, 4)), i = () => {
36167
+ } = y(), t = ie(), [n, a] = Q(() => JSON.stringify(t.mock_context.current, null, 4)), i = () => {
36163
36168
  try {
36164
36169
  t.mock_context.replace(JSON.parse(n));
36165
36170
  } catch (l) {
@@ -36429,7 +36434,7 @@ const X8 = [{
36429
36434
  data: e,
36430
36435
  loading: t
36431
36436
  }) => {
36432
- const [n, a] = j(1), [i, o] = j(20), l = z(() => {
36437
+ const [n, a] = Q(1), [i, o] = Q(20), l = z(() => {
36433
36438
  const s = (n - 1) * i, c = s + i;
36434
36439
  return e.slice(s, c);
36435
36440
  }, [e, n, i]);
@@ -36509,7 +36514,7 @@ const X8 = [{
36509
36514
  t
36510
36515
  } = y(), n = le(), a = ie(), {
36511
36516
  panel: i
36512
- } = Ve(), [o, l] = j(!1), s = (d) => {
36517
+ } = Ve(), [o, l] = Q(!1), s = (d) => {
36513
36518
  n.editor.setPath(["_QUERIES_", d]);
36514
36519
  }, c = i.queryIDs.length;
36515
36520
  return /* @__PURE__ */ u(q, { children: [
@@ -36663,7 +36668,7 @@ const cM = I(() => {
36663
36668
  }) => {
36664
36669
  const {
36665
36670
  t: n
36666
- } = y(), a = ie(), [i, o] = j(t);
36671
+ } = y(), a = ie(), [i, o] = Q(t);
36667
36672
  F(() => {
36668
36673
  o(t);
36669
36674
  }, [t]);
@@ -36924,7 +36929,7 @@ const vM = I(({
36924
36929
  }) => {
36925
36930
  const {
36926
36931
  t
36927
- } = y(), n = Ot(), a = le(), i = ie(), [o, l] = j(a.editor.panelTab), s = e.queries, d = _M(e.viz.type) && e.dataLoading, h = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || s.length === 0, p = a.editor.path[1];
36932
+ } = y(), n = Ot(), a = le(), i = ie(), [o, l] = Q(a.editor.panelTab), s = e.queries, d = _M(e.viz.type) && e.dataLoading, h = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || s.length === 0, p = a.editor.path[1];
36928
36933
  F(() => {
36929
36934
  l((w) => h && w === "Visualization" ? "Data" : w);
36930
36935
  }, [e.id, h]);
@@ -37007,7 +37012,7 @@ const vM = I(({
37007
37012
  }), wM = I(() => {
37008
37013
  const {
37009
37014
  t: e
37010
- } = y(), [t, n] = j([]), a = Ot(), i = le(), o = (g) => {
37015
+ } = y(), [t, n] = Q([]), a = Ot(), i = le(), o = (g) => {
37011
37016
  i.editor.setPath(["_QUERIES_", g]);
37012
37017
  }, l = () => {
37013
37018
  a.openConfirmModal({
@@ -37493,7 +37498,7 @@ const LM = I(({
37493
37498
  }) => {
37494
37499
  const {
37495
37500
  t: n
37496
- } = y(), [a, i] = j(!1), {
37501
+ } = y(), [a, i] = Q(!1), {
37497
37502
  type: o
37498
37503
  } = e;
37499
37504
  return o === "http" || o === "merico_metric_system" ? null : /* @__PURE__ */ u(q, { children: [
@@ -37608,7 +37613,7 @@ const LM = I(({
37608
37613
  }) => {
37609
37614
  const {
37610
37615
  t
37611
- } = y(), [n, a] = j(e.name);
37616
+ } = y(), [n, a] = Q(e.name);
37612
37617
  F(() => {
37613
37618
  a(e.name);
37614
37619
  }, [e.name]);
@@ -37710,7 +37715,7 @@ WHERE
37710
37715
  }), _o = I(() => {
37711
37716
  const {
37712
37717
  t: e
37713
- } = y(), [t, n] = j(!1);
37718
+ } = y(), [t, n] = Q(!1);
37714
37719
  return /* @__PURE__ */ u(q, { children: [
37715
37720
  /* @__PURE__ */ r(_e, { opened: t, onClose: () => n(!1), title: e("query_variable.labels"), zIndex: 320, size: "800px", children: /* @__PURE__ */ r(bh, {}) }),
37716
37721
  /* @__PURE__ */ r(V, { variant: "subtle", onClick: () => n(!0), px: 16, styles: {
@@ -37815,7 +37820,7 @@ WHERE
37815
37820
  }) => {
37816
37821
  const {
37817
37822
  t
37818
- } = y(), n = e.config, [a, i] = j(n.sql), o = () => {
37823
+ } = y(), n = e.config, [a, i] = Q(n.sql), o = () => {
37819
37824
  n.setSQL(a);
37820
37825
  }, l = () => {
37821
37826
  i(n.sql);
@@ -37932,7 +37937,7 @@ WHERE
37932
37937
  }) => {
37933
37938
  const {
37934
37939
  t
37935
- } = y(), n = ie(), a = z(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [i, o] = j(a);
37940
+ } = y(), n = ie(), a = z(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [i, o] = Q(a);
37936
37941
  F(() => {
37937
37942
  o((c) => c !== "Configurations" && a === "Configurations" ? "Configurations" : c);
37938
37943
  }, [a]);
@@ -38164,7 +38169,7 @@ const s9 = [{
38164
38169
  data: e,
38165
38170
  loading: t
38166
38171
  }) => {
38167
- const [n, a] = j(1), [i, o] = j(20), l = z(() => {
38172
+ const [n, a] = Q(1), [i, o] = Q(20), l = z(() => {
38168
38173
  const s = (n - 1) * i, c = s + i;
38169
38174
  return e.slice(s, c);
38170
38175
  }, [e, n, i]);
@@ -38873,7 +38878,7 @@ const s9 = [{
38873
38878
  }, O9 = I(({
38874
38879
  queryModel: e
38875
38880
  }) => {
38876
- const [t, n] = j("编辑查询");
38881
+ const [t, n] = Q("编辑查询");
38877
38882
  return /* @__PURE__ */ u(S, { color: "red", defaultValue: "编辑查询", styles: E9, value: t, onChange: n, w: "60%", children: [
38878
38883
  /* @__PURE__ */ u(S.List, { children: [
38879
38884
  /* @__PURE__ */ r(S.Tab, { value: "编辑查询", size: "xs", children: "编辑查询" }),
@@ -39019,9 +39024,9 @@ const s9 = [{
39019
39024
  }) => {
39020
39025
  const {
39021
39026
  t: a
39022
- } = y(), [i, o] = j("SQL"), [l, s] = j(e.key), c = () => {
39027
+ } = y(), [i, o] = Q("SQL"), [l, s] = Q(e.key), c = () => {
39023
39028
  e.setKey(l), n(l);
39024
- }, d = l !== e.key, h = e.isADuplicatedKey(l), [p, g] = j(e.value), b = () => {
39029
+ }, d = l !== e.key, h = e.isADuplicatedKey(l), [p, g] = Q(e.value), b = () => {
39025
39030
  e.setValue(p);
39026
39031
  };
39027
39032
  F(() => {
@@ -39102,7 +39107,7 @@ const s9 = [{
39102
39107
  }), W9 = I(() => {
39103
39108
  const {
39104
39109
  t: e
39105
- } = y(), [t, n] = j([]), a = Ot(), i = le(), o = (g) => {
39110
+ } = y(), [t, n] = Q([]), a = Ot(), i = le(), o = (g) => {
39106
39111
  i.editor.setPath(["_SQL_SNIPPETS_", g]);
39107
39112
  }, l = () => {
39108
39113
  a.openConfirmModal({
@@ -39253,7 +39258,7 @@ const s9 = [{
39253
39258
  } = y(), [a, {
39254
39259
  setTrue: i,
39255
39260
  setFalse: o
39256
- }] = we(), [l, s] = j(e ?? Na), c = (b) => {
39261
+ }] = we(), [l, s] = Q(e ?? Na), c = (b) => {
39257
39262
  s({
39258
39263
  ...l,
39259
39264
  enabled: b
@@ -39410,7 +39415,7 @@ const s9 = [{
39410
39415
  key: a,
39411
39416
  label: a,
39412
39417
  order: t.content.filters.current.length + 1,
39413
- type: Q.TextInput,
39418
+ type: j.TextInput,
39414
39419
  config: Jd(),
39415
39420
  visibleInViewsIDs: ["Main"],
39416
39421
  auto_submit: !1
@@ -39546,7 +39551,7 @@ const s9 = [{
39546
39551
  var g;
39547
39552
  const {
39548
39553
  t
39549
- } = y(), n = ie(), a = le().editor, i = a.isOptionActive, o = i(a.path, e), l = a.isOptionOpened, s = a.navigate, c = l(e), [d, h] = j(c);
39554
+ } = y(), n = ie(), a = le().editor, i = a.isOptionActive, o = i(a.path, e), l = a.isOptionOpened, s = a.navigate, c = l(e), [d, h] = Q(c);
39550
39555
  F(() => {
39551
39556
  h(c);
39552
39557
  }, [c]);
@@ -40037,7 +40042,7 @@ export {
40037
40042
  CT as DashboardApiClient,
40038
40043
  kT as DashboardApiFacadeClient,
40039
40044
  E$ as DashboardEditor,
40040
- Q as DashboardFilterType,
40045
+ j as DashboardFilterType,
40041
40046
  G4 as DashboardMode,
40042
40047
  DI as DashboardModel,
40043
40048
  Xs as DashboardModelContextProvider,