@devtable/dashboard 14.53.2 → 14.53.3
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.
- package/dist/dashboard.es.js +492 -495
- package/dist/dashboard.umd.js +3 -3
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -15,9 +15,9 @@ 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 Mh } from "echarts/core";
|
|
18
|
-
import { useBoolean as
|
|
18
|
+
import { useBoolean as De, useCreation as Ut, usePrevious as Lh, useAsyncEffect as Qn, useRequest as Sn, useLatest as Cr, useWhyDidYouUpdate as Nl } from "ahooks";
|
|
19
19
|
import { DatesProvider as $h, DatePicker as Bl, Calendar as Vh, MonthPicker as jl, DatePickerInput as Rh } from "@mantine/dates";
|
|
20
|
-
import { TextInput as
|
|
20
|
+
import { TextInput as V, Box as R, Group as v, Text as k, Select as O, Button as L, Modal as Ce, Stack as I, Divider as A, NumberInput as re, SimpleGrid as Te, Menu as U, UnstyledButton as Wa, Tooltip as ae, Flex as Ue, ColorInput as rn, Center as St, ActionIcon as J, Badge as Vt, CloseButton as vt, Overlay as hn, NativeSelect as qr, useMantineTheme as Fr, ColorSwatch as kr, Popover as Ye, ColorPicker as vo, HoverCard as pe, Checkbox as ee, Paper as Ph, Code as xo, Tabs as S, Switch as ze, Table as w, MultiSelect as Wt, LoadingOverlay as pn, Alert as cr, Collapse as dr, CheckIcon as Ah, SegmentedControl as Ua, Anchor as qn, Pagination as Nr, Combobox as jt, Textarea as Ql, RangeSlider as Eh, Autocomplete as Oh, Mark as Hl, Slider as qh, ThemeIcon as rr, Pill as Fh, List as Ke, getRadius as Ka, Affix as Nh, AppShell as rt, FileInput as Bh, Highlight as jh, rem as wo, JsonInput as Gl, Drawer as Qh, Radio as So, Skeleton as Co, NavLink as Ia, useCombobox as Hh, Loader as Br, InputBase as Gh, Input as Wh } from "@mantine/core";
|
|
21
21
|
import { useHover as Uh, useDisclosure as an, useClipboard as Kh, randomId as Cn, useElementSize as Wl, useResizeObserver as Yh, useInputState as Ul } from "@mantine/hooks";
|
|
22
22
|
import * as Xh from "popmotion";
|
|
23
23
|
import { interpolate as In } from "popmotion";
|
|
@@ -2520,7 +2520,7 @@ class di {
|
|
|
2520
2520
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
|
-
const Fs = "14.53.
|
|
2523
|
+
const Fs = "14.53.3", yg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2524
2524
|
__proto__: null,
|
|
2525
2525
|
version: Fs
|
|
2526
2526
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2642,7 +2642,7 @@ class _e extends xg {
|
|
|
2642
2642
|
const Y = (e, t) => {
|
|
2643
2643
|
const [n, {
|
|
2644
2644
|
setFalse: a
|
|
2645
|
-
}] =
|
|
2645
|
+
}] = De(!0), [i, o] = Q();
|
|
2646
2646
|
N(() => (e.getItem(t).then((s) => {
|
|
2647
2647
|
o(s), a();
|
|
2648
2648
|
}), e.watchItem(t, (s) => {
|
|
@@ -2740,7 +2740,7 @@ te(function({
|
|
|
2740
2740
|
onChange: n,
|
|
2741
2741
|
...a
|
|
2742
2742
|
}, i) {
|
|
2743
|
-
return /* @__PURE__ */ r(
|
|
2743
|
+
return /* @__PURE__ */ r(V, { ref: i, value: t, onChange: n, ...a });
|
|
2744
2744
|
});
|
|
2745
2745
|
class Lg {
|
|
2746
2746
|
constructor({
|
|
@@ -3286,7 +3286,7 @@ const ye = (e) => (t, n) => {
|
|
|
3286
3286
|
const {
|
|
3287
3287
|
panel: p
|
|
3288
3288
|
} = Me(), g = E.useMemo(() => p.variableOptions(a, s), [a, s]);
|
|
3289
|
-
return g.length === 0 ? /* @__PURE__ */ r(
|
|
3289
|
+
return g.length === 0 ? /* @__PURE__ */ r(V, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(O, { ref: t, label: n, description: o, renderOption: Kg(d), data: g, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
|
|
3290
3290
|
withinPortal: !0,
|
|
3291
3291
|
zIndex: h
|
|
3292
3292
|
}, onChange: ye(i) });
|
|
@@ -3318,7 +3318,7 @@ const ye = (e) => (t, n) => {
|
|
|
3318
3318
|
} = y(), [a, {
|
|
3319
3319
|
setTrue: i,
|
|
3320
3320
|
setFalse: o
|
|
3321
|
-
}] =
|
|
3321
|
+
}] = De(), [l, s] = Q(e), c = () => {
|
|
3322
3322
|
o();
|
|
3323
3323
|
const {
|
|
3324
3324
|
type: g,
|
|
@@ -3391,8 +3391,8 @@ const ye = (e) => (t, n) => {
|
|
|
3391
3391
|
label: i("chart.number_or_dynamic_value.type.dynamic"),
|
|
3392
3392
|
value: "dynamic"
|
|
3393
3393
|
}], [o.language]);
|
|
3394
|
-
return /* @__PURE__ */ u(
|
|
3395
|
-
/* @__PURE__ */ r(
|
|
3394
|
+
return /* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
3395
|
+
/* @__PURE__ */ r(O, { ref: a, label: e, data: s, value: t.type, onChange: l, sx: {
|
|
3396
3396
|
flexGrow: 1
|
|
3397
3397
|
} }),
|
|
3398
3398
|
/* @__PURE__ */ r(Jg, { value: t, onChange: n }),
|
|
@@ -3613,7 +3613,7 @@ const nf = tf(), rf = ({
|
|
|
3613
3613
|
const [i, {
|
|
3614
3614
|
setTrue: o,
|
|
3615
3615
|
setFalse: l
|
|
3616
|
-
}] =
|
|
3616
|
+
}] = De(!1), {
|
|
3617
3617
|
ref: s,
|
|
3618
3618
|
handleRef: c
|
|
3619
3619
|
} = Kr({
|
|
@@ -3672,7 +3672,7 @@ const nf = tf(), rf = ({
|
|
|
3672
3672
|
source: x,
|
|
3673
3673
|
target: T
|
|
3674
3674
|
} = _.operation, M = oi(o, x, T);
|
|
3675
|
-
t(M.map((
|
|
3675
|
+
t(M.map(($) => $.value));
|
|
3676
3676
|
}, children: o.map((_, x) => /* @__PURE__ */ r(af, { color: _, handleChange: d(x), handleRemove: () => s(x), index: x }, _.id)) }),
|
|
3677
3677
|
/* @__PURE__ */ u(Ue, { gap: "sm", justify: "flex-start", align: "center", direction: "row", wrap: "nowrap", children: [
|
|
3678
3678
|
/* @__PURE__ */ r("div", { style: {
|
|
@@ -3726,7 +3726,7 @@ const nf = tf(), rf = ({
|
|
|
3726
3726
|
}, ...d }) }),
|
|
3727
3727
|
/* @__PURE__ */ r(f, { name: "min_val", control: o, render: ({
|
|
3728
3728
|
field: d
|
|
3729
|
-
}) => /* @__PURE__ */ r(
|
|
3729
|
+
}) => /* @__PURE__ */ r(V, { label: a("rich_text.color_mapping.min.val"), ...d, sx: {
|
|
3730
3730
|
maxWidth: "120px",
|
|
3731
3731
|
flexGrow: 0
|
|
3732
3732
|
} }) })
|
|
@@ -3740,7 +3740,7 @@ const nf = tf(), rf = ({
|
|
|
3740
3740
|
}, ...d }) }),
|
|
3741
3741
|
/* @__PURE__ */ r(f, { name: "max_val", control: o, render: ({
|
|
3742
3742
|
field: d
|
|
3743
|
-
}) => /* @__PURE__ */ r(
|
|
3743
|
+
}) => /* @__PURE__ */ r(V, { label: a("rich_text.color_mapping.max.val"), ...d, sx: {
|
|
3744
3744
|
maxWidth: "120px",
|
|
3745
3745
|
flexGrow: 0
|
|
3746
3746
|
} }) })
|
|
@@ -3812,7 +3812,7 @@ const sf = () => /* @__PURE__ */ r("div", { style: {
|
|
|
3812
3812
|
setTrue: i,
|
|
3813
3813
|
setFalse: o,
|
|
3814
3814
|
toggle: l
|
|
3815
|
-
}] =
|
|
3815
|
+
}] = De(), s = e.getAttributes(rc), {
|
|
3816
3816
|
empty: c,
|
|
3817
3817
|
...d
|
|
3818
3818
|
} = z(() => Wg(s), [s]), h = ne((g) => {
|
|
@@ -3988,13 +3988,13 @@ const tr = "data-value", bf = tr, gc = "dynamicColor", fc = ks.create({
|
|
|
3988
3988
|
const g = ne((x, T) => {
|
|
3989
3989
|
if (i.length === 0)
|
|
3990
3990
|
return;
|
|
3991
|
-
const M = nm(T),
|
|
3992
|
-
if (M.initializeIn(x), M.addRestrictionsTo(
|
|
3993
|
-
M.toggleDevMode(),
|
|
3994
|
-
const
|
|
3991
|
+
const M = nm(T), $ = x.getModel();
|
|
3992
|
+
if (M.initializeIn(x), M.addRestrictionsTo($, i), !!$ && !$._hasHighlight) {
|
|
3993
|
+
M.toggleDevMode(), $.toggleHighlightOfEditableAreas();
|
|
3994
|
+
const q = $.getCurrentEditableRanges(), W = $.getValueInEditableRanges();
|
|
3995
3995
|
console.debug({
|
|
3996
|
-
model:
|
|
3997
|
-
currentRanges:
|
|
3996
|
+
model: $,
|
|
3997
|
+
currentRanges: q,
|
|
3998
3998
|
currentValue: W
|
|
3999
3999
|
});
|
|
4000
4000
|
}
|
|
@@ -4306,7 +4306,7 @@ const Pt = te(({
|
|
|
4306
4306
|
const {
|
|
4307
4307
|
t: s
|
|
4308
4308
|
} = y(), c = zg(), d = z(() => {
|
|
4309
|
-
const
|
|
4309
|
+
const $ = [Cs, ws, ds, gs, ms, hs, fs.configure({
|
|
4310
4310
|
resizable: !1,
|
|
4311
4311
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
4312
4312
|
HTMLAttributes: {
|
|
@@ -4317,37 +4317,34 @@ const Pt = te(({
|
|
|
4317
4317
|
}), ps.configure({
|
|
4318
4318
|
placeholder: "This is placeholder"
|
|
4319
4319
|
}), xs, us, bc, fc];
|
|
4320
|
-
return c &&
|
|
4321
|
-
}, [c]), [h, {
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4320
|
+
return c && $.push(ac), $;
|
|
4321
|
+
}, [c]), [h, p] = Q(e), g = () => {
|
|
4322
|
+
t(h), o == null || o();
|
|
4323
|
+
}, b = () => {
|
|
4324
|
+
i && g();
|
|
4325
|
+
}, x = Ss({
|
|
4325
4326
|
extensions: d,
|
|
4326
4327
|
content: e,
|
|
4327
4328
|
onUpdate: ({
|
|
4328
|
-
editor:
|
|
4329
|
+
editor: $
|
|
4329
4330
|
}) => {
|
|
4330
|
-
const
|
|
4331
|
-
|
|
4331
|
+
const q = $.getHTML();
|
|
4332
|
+
p(q);
|
|
4332
4333
|
},
|
|
4333
4334
|
onCreate: ({
|
|
4334
|
-
editor:
|
|
4335
|
+
editor: $
|
|
4335
4336
|
}) => {
|
|
4336
|
-
|
|
4337
|
+
$.view.dom.setAttribute("spellcheck", "false"), $.view.dom.setAttribute("autocomplete", "off"), $.view.dom.setAttribute("autocapitalize", "off");
|
|
4337
4338
|
},
|
|
4338
|
-
onFocus:
|
|
4339
|
-
|
|
4339
|
+
onFocus: () => {
|
|
4340
|
+
},
|
|
4341
|
+
onBlur: b,
|
|
4342
|
+
onDestroy: b
|
|
4340
4343
|
});
|
|
4341
4344
|
N(() => {
|
|
4342
|
-
|
|
4345
|
+
p(e), x == null || x.commands.setContent(e);
|
|
4343
4346
|
}, [e]);
|
|
4344
|
-
const T = () => {
|
|
4345
|
-
t(b), o == null || o();
|
|
4346
|
-
}, M = e !== b;
|
|
4347
|
-
N(() => {
|
|
4348
|
-
!i || !h || T();
|
|
4349
|
-
}, [i, M, h]);
|
|
4350
|
-
const V = z(() => C.defaultsDeep({}, {
|
|
4347
|
+
const T = e !== h, M = z(() => C.defaultsDeep({}, {
|
|
4351
4348
|
content: {
|
|
4352
4349
|
...mi,
|
|
4353
4350
|
...Tf
|
|
@@ -4359,9 +4356,9 @@ const Pt = te(({
|
|
|
4359
4356
|
}, children: [
|
|
4360
4357
|
/* @__PURE__ */ u(v, { align: "center", children: [
|
|
4361
4358
|
/* @__PURE__ */ r(k, { size: "14px", fw: 500, children: a }),
|
|
4362
|
-
!i && /* @__PURE__ */ r(L, { variant: "filled", color: "blue", size: "compact-xs", disabled: !
|
|
4359
|
+
!i && /* @__PURE__ */ r(L, { variant: "filled", color: "blue", size: "compact-xs", disabled: !T, onClick: g, leftSection: /* @__PURE__ */ r(be, { size: 16 }), children: s("common.actions.save_changes") })
|
|
4363
4360
|
] }),
|
|
4364
|
-
/* @__PURE__ */ u(ce, { editor: x, styles:
|
|
4361
|
+
/* @__PURE__ */ u(ce, { editor: x, styles: M, children: [
|
|
4365
4362
|
/* @__PURE__ */ u(ce.Toolbar, { sticky: !0, stickyOffset: 0, children: [
|
|
4366
4363
|
/* @__PURE__ */ r(zf, { editor: x }),
|
|
4367
4364
|
c && /* @__PURE__ */ r(df, { editor: x }),
|
|
@@ -4441,7 +4438,7 @@ const wc = ({
|
|
|
4441
4438
|
const c = s.currentTarget.value;
|
|
4442
4439
|
o(c), Lf(c) && t(c);
|
|
4443
4440
|
}, [t]);
|
|
4444
|
-
return /* @__PURE__ */ r(
|
|
4441
|
+
return /* @__PURE__ */ r(V, { value: i, onChange: l, leftSection: /* @__PURE__ */ r(wc, { value: i }), size: "xs", placeholder: a("chart.color.not_set"), styles: {
|
|
4445
4442
|
root: {
|
|
4446
4443
|
flexGrow: 1
|
|
4447
4444
|
},
|
|
@@ -4479,16 +4476,16 @@ const wc = ({
|
|
|
4479
4476
|
set: s,
|
|
4480
4477
|
setFalse: c,
|
|
4481
4478
|
toggle: d
|
|
4482
|
-
}] =
|
|
4479
|
+
}] = De(), [h, p] = Q(!1), g = z(() => {
|
|
4483
4480
|
const M = [];
|
|
4484
|
-
return Vf.forEach((
|
|
4485
|
-
const
|
|
4486
|
-
|
|
4481
|
+
return Vf.forEach(($) => {
|
|
4482
|
+
const q = o.colors[$];
|
|
4483
|
+
q && q.forEach((W) => {
|
|
4487
4484
|
M.push(W);
|
|
4488
4485
|
});
|
|
4489
4486
|
}), M;
|
|
4490
|
-
}, [o.colors]), b = (M,
|
|
4491
|
-
n(M),
|
|
4487
|
+
}, [o.colors]), b = (M, $ = !0) => {
|
|
4488
|
+
n(M), $ && c();
|
|
4492
4489
|
}, _ = ne((M) => {
|
|
4493
4490
|
b(M, !1), p(!1);
|
|
4494
4491
|
}, []), x = ne((M) => {
|
|
@@ -4504,7 +4501,7 @@ const wc = ({
|
|
|
4504
4501
|
/* @__PURE__ */ r(J, { variant: "default", onClick: T, title: i("common.actions.clear"), children: /* @__PURE__ */ r(Xl, { stroke: 1.5, size: "1rem" }) }),
|
|
4505
4502
|
/* @__PURE__ */ r(J, { variant: "default", onClick: c, title: i("common.actions.close"), children: /* @__PURE__ */ r(jr, { stroke: 1.5, size: "1rem" }) })
|
|
4506
4503
|
] }),
|
|
4507
|
-
/* @__PURE__ */ u(
|
|
4504
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
4508
4505
|
/* @__PURE__ */ r(vo, { format: "hex", swatches: g, value: t, onChange: x, size: "sm", withPicker: !1, styles: {
|
|
4509
4506
|
swatches: {
|
|
4510
4507
|
marginTop: "0 !important"
|
|
@@ -4650,7 +4647,7 @@ function vi(e) {
|
|
|
4650
4647
|
context: a
|
|
4651
4648
|
};
|
|
4652
4649
|
}
|
|
4653
|
-
class
|
|
4650
|
+
class ke extends E.Component {
|
|
4654
4651
|
constructor(t) {
|
|
4655
4652
|
super(t), this.state = {
|
|
4656
4653
|
error: null
|
|
@@ -4682,7 +4679,7 @@ class ze extends E.Component {
|
|
|
4682
4679
|
function kc(e, t = {
|
|
4683
4680
|
handleError: !0
|
|
4684
4681
|
}) {
|
|
4685
|
-
return (n) => /* @__PURE__ */ r(
|
|
4682
|
+
return (n) => /* @__PURE__ */ r(ke, { ...t, children: /* @__PURE__ */ r(e, { ...n }) });
|
|
4686
4683
|
}
|
|
4687
4684
|
function Of(e, t) {
|
|
4688
4685
|
return new Function(`return ${e}`)()(t, Et);
|
|
@@ -4884,10 +4881,10 @@ function Hf({
|
|
|
4884
4881
|
min: de(G, x.columnKey),
|
|
4885
4882
|
max: de(oe, x.columnKey)
|
|
4886
4883
|
};
|
|
4887
|
-
}, [g, x]),
|
|
4884
|
+
}, [g, x]), $ = _t(null), q = z(() => ({
|
|
4888
4885
|
finished: () => {
|
|
4889
4886
|
var oe;
|
|
4890
|
-
const G = (oe =
|
|
4887
|
+
const G = (oe = $.current) == null ? void 0 : oe.getEchartsInstance();
|
|
4891
4888
|
G && et(t, G.getOption());
|
|
4892
4889
|
}
|
|
4893
4890
|
}), []), W = {
|
|
@@ -4926,7 +4923,7 @@ function Hf({
|
|
|
4926
4923
|
data: g.map((G) => [G[b.columnKey], G[_.columnKey], G[x.columnKey]])
|
|
4927
4924
|
}]
|
|
4928
4925
|
};
|
|
4929
|
-
return n ? /* @__PURE__ */ r(tt, { width: i, height: o, children: /* @__PURE__ */ r(We, { echarts: Ne, ref:
|
|
4926
|
+
return n ? /* @__PURE__ */ r(tt, { width: i, height: o, children: /* @__PURE__ */ r(We, { echarts: Ne, ref: $, option: W, style: pr(i, o), notMerge: !0, onEvents: q, theme: "merico-light" }) }) : null;
|
|
4930
4927
|
}
|
|
4931
4928
|
const X = D(te(({
|
|
4932
4929
|
label: e,
|
|
@@ -4954,7 +4951,7 @@ const X = D(te(({
|
|
|
4954
4951
|
if (b.length === 0) {
|
|
4955
4952
|
const _ = g.explainDataKey(a);
|
|
4956
4953
|
return /* @__PURE__ */ u(pe, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
|
|
4957
|
-
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(
|
|
4954
|
+
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: _.columnKey, readOnly: !0, disabled: !0 }) }) }),
|
|
4958
4955
|
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ u(v, { justify: "flex-start", gap: 0, children: [
|
|
4959
4956
|
/* @__PURE__ */ r(k, { size: "xs", c: _.queryName ? "black" : "red", ff: "monospace", children: _.queryName ?? _.queryID }),
|
|
4960
4957
|
/* @__PURE__ */ r(k, { size: "xs", c: "black", ff: "monospace", children: "." }),
|
|
@@ -4962,7 +4959,7 @@ const X = D(te(({
|
|
|
4962
4959
|
] }) })
|
|
4963
4960
|
] });
|
|
4964
4961
|
}
|
|
4965
|
-
return /* @__PURE__ */ r(
|
|
4962
|
+
return /* @__PURE__ */ r(O, { ref: h, label: e, description: n, data: b, value: a, onChange: ye(i), required: t, sx: c, maxDropdownHeight: 500, ...d });
|
|
4966
4963
|
}));
|
|
4967
4964
|
function Gf({
|
|
4968
4965
|
context: e
|
|
@@ -4990,7 +4987,7 @@ function Gf({
|
|
|
4990
4987
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
4991
4988
|
/* @__PURE__ */ r(f, { name: "xAxis3D.name", control: i, render: ({
|
|
4992
4989
|
field: s
|
|
4993
|
-
}) => /* @__PURE__ */ r(
|
|
4990
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
4994
4991
|
flexGrow: 1
|
|
4995
4992
|
}, size: "md", label: "Name", ...s }) })
|
|
4996
4993
|
] }),
|
|
@@ -5004,7 +5001,7 @@ function Gf({
|
|
|
5004
5001
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
5005
5002
|
/* @__PURE__ */ r(f, { name: "yAxis3D.name", control: i, render: ({
|
|
5006
5003
|
field: s
|
|
5007
|
-
}) => /* @__PURE__ */ r(
|
|
5004
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
5008
5005
|
flexGrow: 1
|
|
5009
5006
|
}, size: "md", label: "Name", ...s }) })
|
|
5010
5007
|
] }),
|
|
@@ -5018,7 +5015,7 @@ function Gf({
|
|
|
5018
5015
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
5019
5016
|
/* @__PURE__ */ r(f, { name: "zAxis3D.name", control: i, render: ({
|
|
5020
5017
|
field: s
|
|
5021
|
-
}) => /* @__PURE__ */ r(
|
|
5018
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
5022
5019
|
flexGrow: 1
|
|
5023
5020
|
}, size: "md", label: "Name", ...s }) })
|
|
5024
5021
|
] }),
|
|
@@ -5151,7 +5148,7 @@ const Zt = te(({
|
|
|
5151
5148
|
} = y(), [o, {
|
|
5152
5149
|
setTrue: l,
|
|
5153
5150
|
setFalse: s
|
|
5154
|
-
}] =
|
|
5151
|
+
}] = De(), [c, d] = Q(e);
|
|
5155
5152
|
N(() => {
|
|
5156
5153
|
d(e);
|
|
5157
5154
|
}, [e]);
|
|
@@ -5165,11 +5162,11 @@ const Zt = te(({
|
|
|
5165
5162
|
const {
|
|
5166
5163
|
enabled: T,
|
|
5167
5164
|
func_content: M
|
|
5168
|
-
} = c,
|
|
5165
|
+
} = c, $ = {
|
|
5169
5166
|
enabled: T,
|
|
5170
5167
|
func_content: M
|
|
5171
5168
|
};
|
|
5172
|
-
d(
|
|
5169
|
+
d($), t($);
|
|
5173
5170
|
}, g = () => {
|
|
5174
5171
|
s(), d(e);
|
|
5175
5172
|
}, b = (T) => {
|
|
@@ -5301,9 +5298,9 @@ const Mr = te(({
|
|
|
5301
5298
|
} }),
|
|
5302
5299
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
5303
5300
|
/* @__PURE__ */ r(re, { label: i("chart.axis.overflow.max_width"), hideControls: !0, value: t.width, onChange: l("width") }),
|
|
5304
|
-
/* @__PURE__ */ r(
|
|
5301
|
+
/* @__PURE__ */ r(O, { label: i("chart.axis.overflow.label"), data: s, value: t.overflow, onChange: l("overflow") }),
|
|
5305
5302
|
/* @__PURE__ */ r(
|
|
5306
|
-
|
|
5303
|
+
V,
|
|
5307
5304
|
{
|
|
5308
5305
|
label: i("chart.axis.overflow.ellipsis"),
|
|
5309
5306
|
value: t.ellipsis,
|
|
@@ -5391,7 +5388,7 @@ const je = te(({
|
|
|
5391
5388
|
};
|
|
5392
5389
|
return /* @__PURE__ */ u(I, { ref: a, gap: "sm", children: [
|
|
5393
5390
|
/* @__PURE__ */ r(A, { mb: -10, label: i("chart.unit.title"), labelPosition: "center", variant: "dashed" }),
|
|
5394
|
-
!o.has("text") && /* @__PURE__ */ r(
|
|
5391
|
+
!o.has("text") && /* @__PURE__ */ r(V, { size: "xs", placeholder: i("chart.unit.text.placeholder"), value: e.text, onChange: (s) => l("text")(s.currentTarget.value) }),
|
|
5395
5392
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
5396
5393
|
!o.has("show_in_tooltip") && /* @__PURE__ */ r(ee, { size: "xs", label: i("chart.unit.show_in_tooltip"), checked: e.show_in_tooltip, onChange: (s) => l("show_in_tooltip")(s.currentTarget.checked) }),
|
|
5397
5394
|
!o.has("show_in_legend") && /* @__PURE__ */ r(ee, { size: "xs", label: i("chart.unit.show_in_legend"), checked: e.show_in_legend, onChange: (s) => l("show_in_legend")(s.currentTarget.checked) })
|
|
@@ -5544,7 +5541,7 @@ const lb = D(({
|
|
|
5544
5541
|
async function o(l) {
|
|
5545
5542
|
await e.changeSchema(a.find((s) => s.id === l));
|
|
5546
5543
|
}
|
|
5547
|
-
return /* @__PURE__ */ r(
|
|
5544
|
+
return /* @__PURE__ */ r(O, { label: t("interactions.operation.label"), data: i, onChange: ye(o), value: e.operationSchema.id, comboboxProps: {
|
|
5548
5545
|
withinPortal: !0,
|
|
5549
5546
|
zIndex: 340
|
|
5550
5547
|
}, maxDropdownHeight: 500 });
|
|
@@ -5554,7 +5551,7 @@ const lb = D(({
|
|
|
5554
5551
|
} = y(), [n, {
|
|
5555
5552
|
setTrue: a,
|
|
5556
5553
|
setFalse: i
|
|
5557
|
-
}] =
|
|
5554
|
+
}] = De(!1), {
|
|
5558
5555
|
operationManager: o,
|
|
5559
5556
|
operationId: l,
|
|
5560
5557
|
instance: s,
|
|
@@ -5630,7 +5627,7 @@ const pb = D(({
|
|
|
5630
5627
|
async function o(l) {
|
|
5631
5628
|
await e.changeSchema(a.find((s) => s.id === l));
|
|
5632
5629
|
}
|
|
5633
|
-
return /* @__PURE__ */ r(
|
|
5630
|
+
return /* @__PURE__ */ r(O, { label: t("interactions.trigger.label"), data: i, value: e.triggerSchema.id, onChange: ye(o) });
|
|
5634
5631
|
}), gb = D(({
|
|
5635
5632
|
model: e
|
|
5636
5633
|
}) => {
|
|
@@ -5646,7 +5643,7 @@ const pb = D(({
|
|
|
5646
5643
|
} = y(), [n, {
|
|
5647
5644
|
setTrue: a,
|
|
5648
5645
|
setFalse: i
|
|
5649
|
-
}] =
|
|
5646
|
+
}] = De(!1), o = e.model;
|
|
5650
5647
|
return /* @__PURE__ */ u(F, { children: [
|
|
5651
5648
|
/* @__PURE__ */ r(Ce, { opened: n, onClose: i, title: t("interactions.trigger.setup"), zIndex: 320, children: /* @__PURE__ */ u(I, { children: [
|
|
5652
5649
|
/* @__PURE__ */ r(mb, { model: o }),
|
|
@@ -5757,8 +5754,8 @@ function _b(e) {
|
|
|
5757
5754
|
urlTemplate: c.currentTarget.value
|
|
5758
5755
|
});
|
|
5759
5756
|
return /* @__PURE__ */ u(I, { children: [
|
|
5760
|
-
/* @__PURE__ */ r(
|
|
5761
|
-
/* @__PURE__ */ r(
|
|
5757
|
+
/* @__PURE__ */ r(V, { label: t("interactions.operation.open_link.url"), value: n.urlTemplate, onChange: s, onBlur: o }),
|
|
5758
|
+
/* @__PURE__ */ r(ze, { label: t("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => l(c.currentTarget.checked) })
|
|
5762
5759
|
] });
|
|
5763
5760
|
}
|
|
5764
5761
|
async function vb(e, t) {
|
|
@@ -5810,7 +5807,7 @@ function Cb(e) {
|
|
|
5810
5807
|
const {
|
|
5811
5808
|
t
|
|
5812
5809
|
} = y(), [n, a] = Sb(e.operation);
|
|
5813
|
-
return /* @__PURE__ */ r(
|
|
5810
|
+
return /* @__PURE__ */ r(V, { defaultValue: n, onBlur: (i) => a(i.currentTarget.value), label: t("interactions.operation.console_log.log_content") });
|
|
5814
5811
|
}
|
|
5815
5812
|
async function kb(e, t) {
|
|
5816
5813
|
const n = await t.operationData.getItem("config"), a = Ga(n.template || "");
|
|
@@ -5828,7 +5825,7 @@ const zb = {
|
|
|
5828
5825
|
value: a,
|
|
5829
5826
|
set: i
|
|
5830
5827
|
} = Y(e.operation.operationData, "config"), o = (a == null ? void 0 : a.viewID) || "";
|
|
5831
|
-
return /* @__PURE__ */ r(
|
|
5828
|
+
return /* @__PURE__ */ r(O, { defaultValue: o, value: o, onChange: ye((s) => void i({
|
|
5832
5829
|
viewID: s
|
|
5833
5830
|
})), label: t("interactions.operation.open_view.view"), data: n.views.options, comboboxProps: {
|
|
5834
5831
|
withinPortal: !0,
|
|
@@ -5863,7 +5860,7 @@ const Ib = {
|
|
|
5863
5860
|
const [n, a] = Q(e);
|
|
5864
5861
|
return N(() => {
|
|
5865
5862
|
a(e);
|
|
5866
|
-
}, [e]), /* @__PURE__ */ r(
|
|
5863
|
+
}, [e]), /* @__PURE__ */ r(V, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
|
|
5867
5864
|
flexGrow: 1
|
|
5868
5865
|
}, rightSection: /* @__PURE__ */ r(J, { color: "green", size: "xs", onClick: () => {
|
|
5869
5866
|
t(n);
|
|
@@ -5986,7 +5983,7 @@ const qb = {
|
|
|
5986
5983
|
value: a,
|
|
5987
5984
|
set: i
|
|
5988
5985
|
} = Y(e.operation.operationData, "config"), o = (a == null ? void 0 : a.panelID) || "";
|
|
5989
|
-
return /* @__PURE__ */ r(
|
|
5986
|
+
return /* @__PURE__ */ r(O, { defaultValue: o, value: o, onChange: ye((s) => void i({
|
|
5990
5987
|
panelID: s
|
|
5991
5988
|
})), label: t("interactions.operation.scroll_to_panel.panel"), data: n.panels.options, comboboxProps: {
|
|
5992
5989
|
withinPortal: !0,
|
|
@@ -6023,11 +6020,11 @@ const jb = {
|
|
|
6023
6020
|
tab: d
|
|
6024
6021
|
});
|
|
6025
6022
|
return /* @__PURE__ */ u(I, { gap: "xs", children: [
|
|
6026
|
-
/* @__PURE__ */ r(
|
|
6023
|
+
/* @__PURE__ */ r(O, { defaultValue: o, value: o, onChange: ye(s), label: t("interactions.operation.switch_tab.view"), data: n.views.tabViewOptions, comboboxProps: {
|
|
6027
6024
|
withinPortal: !0,
|
|
6028
6025
|
zIndex: 340
|
|
6029
6026
|
}, maxDropdownHeight: 500 }),
|
|
6030
|
-
/* @__PURE__ */ r(
|
|
6027
|
+
/* @__PURE__ */ r(O, { defaultValue: l, value: l, onChange: ye(c), label: t("interactions.operation.switch_tab.tab"), data: n.views.tabOptions(o), comboboxProps: {
|
|
6031
6028
|
withinPortal: !0,
|
|
6032
6029
|
zIndex: 340
|
|
6033
6030
|
}, maxDropdownHeight: 500 })
|
|
@@ -6414,13 +6411,13 @@ function oy(e, t) {
|
|
|
6414
6411
|
const n = [], a = [];
|
|
6415
6412
|
return {
|
|
6416
6413
|
boxplotData: Object.entries(e).map(([o, l]) => {
|
|
6417
|
-
const s = l.map((M) => M[t]).sort((M,
|
|
6414
|
+
const s = l.map((M) => M[t]).sort((M, $) => M - $), c = vr(s, 0.25) ?? 0, d = vr(s, 0.5) ?? 0, h = vr(s, 0.75) ?? 0, p = h - c, g = c - 1.5 * p, b = h + 1.5 * p, _ = Math.max(s[0], g), x = Math.min(C.last(s) ?? 0, b);
|
|
6418
6415
|
return l.filter((M) => {
|
|
6419
|
-
const
|
|
6420
|
-
return
|
|
6416
|
+
const $ = M[t];
|
|
6417
|
+
return $ < _ || $ > x;
|
|
6421
6418
|
}).forEach((M) => n.push([o, M[t], M])), l.filter((M) => {
|
|
6422
|
-
const
|
|
6423
|
-
return
|
|
6419
|
+
const $ = M[t];
|
|
6420
|
+
return $ >= _ && $ <= x;
|
|
6424
6421
|
}).forEach((M) => a.push([o, M[t], M])), {
|
|
6425
6422
|
name: o,
|
|
6426
6423
|
min: _,
|
|
@@ -6592,15 +6589,15 @@ function uy(e, t, n) {
|
|
|
6592
6589
|
y1: _.max[1],
|
|
6593
6590
|
y2: _.q3[1]
|
|
6594
6591
|
}
|
|
6595
|
-
],
|
|
6592
|
+
], $ = {
|
|
6596
6593
|
stroke: i,
|
|
6597
6594
|
lineWidth: o
|
|
6598
6595
|
};
|
|
6599
|
-
return M.forEach((
|
|
6596
|
+
return M.forEach((q) => {
|
|
6600
6597
|
T.children.push({
|
|
6601
6598
|
type: "line",
|
|
6602
|
-
shape:
|
|
6603
|
-
style:
|
|
6599
|
+
shape: q,
|
|
6600
|
+
style: $
|
|
6604
6601
|
});
|
|
6605
6602
|
}), T.children.push({
|
|
6606
6603
|
type: "rect",
|
|
@@ -6949,18 +6946,18 @@ function Ty({
|
|
|
6949
6946
|
vizManager: e.vizManager,
|
|
6950
6947
|
instance: t
|
|
6951
6948
|
}), h = mt(d.triggerManager, Ic.id), p = Ln(o, c.x_axis.data_key), g = ne((M) => {
|
|
6952
|
-
const
|
|
6949
|
+
const $ = C.get(p, M.name, {
|
|
6953
6950
|
error: "rowData is not found"
|
|
6954
6951
|
});
|
|
6955
|
-
h.forEach((
|
|
6956
|
-
d.runInteraction(
|
|
6952
|
+
h.forEach((q) => {
|
|
6953
|
+
d.runInteraction(q.id, {
|
|
6957
6954
|
...M,
|
|
6958
|
-
rowData:
|
|
6955
|
+
rowData: $
|
|
6959
6956
|
});
|
|
6960
6957
|
});
|
|
6961
6958
|
}, [p, h, d]), b = _t(null), _ = ne(() => {
|
|
6962
|
-
var
|
|
6963
|
-
const M = (
|
|
6959
|
+
var $;
|
|
6960
|
+
const M = ($ = b.current) == null ? void 0 : $.getEchartsInstance();
|
|
6964
6961
|
M && et(t, M.getOption());
|
|
6965
6962
|
}, []), x = z(() => ({
|
|
6966
6963
|
click: g,
|
|
@@ -7007,7 +7004,7 @@ const Di = te(({
|
|
|
7007
7004
|
label: o("common.align.horizontal.right"),
|
|
7008
7005
|
value: "right"
|
|
7009
7006
|
}], [l.language]);
|
|
7010
|
-
return /* @__PURE__ */ r(
|
|
7007
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("common.align.horizontal.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
7011
7008
|
}), Ac = te(({
|
|
7012
7009
|
label: e,
|
|
7013
7010
|
value: t,
|
|
@@ -7027,7 +7024,7 @@ const Di = te(({
|
|
|
7027
7024
|
label: o("common.align.vertical.bottom"),
|
|
7028
7025
|
value: "bottom"
|
|
7029
7026
|
}], [l.language]);
|
|
7030
|
-
return /* @__PURE__ */ r(
|
|
7027
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("common.align.vertical.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
7031
7028
|
}), Ec = Wn(() => ({
|
|
7032
7029
|
palette: {
|
|
7033
7030
|
display: "flex",
|
|
@@ -7112,13 +7109,13 @@ function My(e) {
|
|
|
7112
7109
|
} = Ec(), [s, c] = Q(Po(o)), [d, {
|
|
7113
7110
|
setTrue: h,
|
|
7114
7111
|
setFalse: p
|
|
7115
|
-
}] =
|
|
7112
|
+
}] = De(!1), g = i % 2 === 1, b = g && o != null, _ = !g && o != null, x = `map ${o} to color ${i}`, T = () => {
|
|
7116
7113
|
c(Po(o)), p();
|
|
7117
7114
|
}, M = () => {
|
|
7118
7115
|
p(), n == null || n(Number(s));
|
|
7119
|
-
},
|
|
7116
|
+
}, $ = () => {
|
|
7120
7117
|
p(), n == null || n(null);
|
|
7121
|
-
},
|
|
7118
|
+
}, q = he(o ?? null, {
|
|
7122
7119
|
output: "number",
|
|
7123
7120
|
mantissa: 10,
|
|
7124
7121
|
trimMantissa: !0,
|
|
@@ -7128,7 +7125,7 @@ function My(e) {
|
|
|
7128
7125
|
return /* @__PURE__ */ u("div", { "data-testid": `palette-item-${i}`, className: l.paletteItem, children: [
|
|
7129
7126
|
/* @__PURE__ */ r(k, { title: x, style: {
|
|
7130
7127
|
opacity: b ? 1 : 0
|
|
7131
|
-
}, c: "dimmed", size: "sm", className: "palette-value--up palette-value", children:
|
|
7128
|
+
}, c: "dimmed", size: "sm", className: "palette-value--up palette-value", children: q }),
|
|
7132
7129
|
/* @__PURE__ */ u(Ye, { width: 240, trapFocus: !0, opened: d, onClose: p, zIndex: 340, withinPortal: !0, children: [
|
|
7133
7130
|
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: h, style: {
|
|
7134
7131
|
"--shadow-color": wn(a).alpha(0.5).hex(),
|
|
@@ -7141,12 +7138,12 @@ function My(e) {
|
|
|
7141
7138
|
right: "0.8em"
|
|
7142
7139
|
} }) }),
|
|
7143
7140
|
/* @__PURE__ */ u(I, { children: [
|
|
7144
|
-
/* @__PURE__ */ r(
|
|
7141
|
+
/* @__PURE__ */ r(V, { size: "xs", label: t("style.color.interpolation.palette.mapping.value_input_label"), value: s, onChange: (G) => {
|
|
7145
7142
|
const oe = G.currentTarget.value;
|
|
7146
7143
|
c(oe);
|
|
7147
7144
|
}, error: s && W }),
|
|
7148
7145
|
/* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
7149
|
-
/* @__PURE__ */ r(L, { variant: "light", color: "red", size: "xs", onClick:
|
|
7146
|
+
/* @__PURE__ */ r(L, { variant: "light", color: "red", size: "xs", onClick: $, leftSection: /* @__PURE__ */ r(Pe, { size: 16 }), children: t("common.actions.delete") }),
|
|
7150
7147
|
/* @__PURE__ */ r(L, { color: "green", leftSection: /* @__PURE__ */ r(be, { size: 16 }), "data-testid": "palette-item-ok", size: "xs", onClick: M, disabled: W, children: t("common.actions.save") })
|
|
7151
7148
|
] })
|
|
7152
7149
|
] })
|
|
@@ -7154,7 +7151,7 @@ function My(e) {
|
|
|
7154
7151
|
] }),
|
|
7155
7152
|
/* @__PURE__ */ r(k, { title: x, style: {
|
|
7156
7153
|
opacity: _ ? 1 : 0
|
|
7157
|
-
}, c: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children:
|
|
7154
|
+
}, c: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: q })
|
|
7158
7155
|
] });
|
|
7159
7156
|
}
|
|
7160
7157
|
const Ly = D(({
|
|
@@ -7180,29 +7177,29 @@ const Ly = D(({
|
|
|
7180
7177
|
} = e, l = o.getColorInterpolations(), [s, c] = Q(a), d = o.decodeInterpolation(s.interpolation) || l[0], [h, {
|
|
7181
7178
|
setTrue: p,
|
|
7182
7179
|
setFalse: g
|
|
7183
|
-
}] =
|
|
7184
|
-
const
|
|
7185
|
-
return Object.entries(
|
|
7186
|
-
group: t(`style.color.interpolation.palette.category.${
|
|
7180
|
+
}] = De(), b = z(() => {
|
|
7181
|
+
const $ = C.groupBy(l, "category");
|
|
7182
|
+
return Object.entries($).map(([q, W]) => ({
|
|
7183
|
+
group: t(`style.color.interpolation.palette.category.${q}`),
|
|
7187
7184
|
items: W.map((G) => ({
|
|
7188
7185
|
label: t(G.displayName),
|
|
7189
7186
|
value: o.encodeColor(G)
|
|
7190
7187
|
}))
|
|
7191
7188
|
}));
|
|
7192
7189
|
}, [n.language]);
|
|
7193
|
-
function _(
|
|
7194
|
-
|
|
7195
|
-
...
|
|
7196
|
-
interpolation:
|
|
7190
|
+
function _($) {
|
|
7191
|
+
$ && c((q) => ({
|
|
7192
|
+
...q,
|
|
7193
|
+
interpolation: $
|
|
7197
7194
|
}));
|
|
7198
7195
|
}
|
|
7199
7196
|
const x = () => {
|
|
7200
7197
|
g(), i == null || i(yt(s));
|
|
7201
7198
|
};
|
|
7202
|
-
function T(
|
|
7203
|
-
c((
|
|
7204
|
-
...
|
|
7205
|
-
steps:
|
|
7199
|
+
function T($) {
|
|
7200
|
+
c((q) => ({
|
|
7201
|
+
...q,
|
|
7202
|
+
steps: $
|
|
7206
7203
|
}));
|
|
7207
7204
|
}
|
|
7208
7205
|
const M = () => {
|
|
@@ -7211,7 +7208,7 @@ const Ly = D(({
|
|
|
7211
7208
|
return /* @__PURE__ */ u(F, { children: [
|
|
7212
7209
|
/* @__PURE__ */ r(L, { variant: "outline", onClick: p, children: t(d == null ? void 0 : d.displayName) }),
|
|
7213
7210
|
/* @__PURE__ */ r(Ce, { size: 508, title: t("style.color.interpolation.setup"), opened: h, onClose: g, zIndex: 320, children: h && /* @__PURE__ */ u(I, { "data-testid": "color-interpolation-modal", children: [
|
|
7214
|
-
/* @__PURE__ */ r(
|
|
7211
|
+
/* @__PURE__ */ r(O, { label: t("style.color.interpolation.palette.label"), value: s.interpolation, data: b, onChange: _, comboboxProps: {
|
|
7215
7212
|
withinPortal: !0,
|
|
7216
7213
|
zIndex: 340
|
|
7217
7214
|
}, maxDropdownHeight: 500 }),
|
|
@@ -7241,7 +7238,7 @@ const Ly = D(({
|
|
|
7241
7238
|
label: o("style.color.type.none"),
|
|
7242
7239
|
value: "none"
|
|
7243
7240
|
}], [l.language]);
|
|
7244
|
-
return /* @__PURE__ */ r(
|
|
7241
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("style.color.type.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
7245
7242
|
}), Py = te(({
|
|
7246
7243
|
label: e,
|
|
7247
7244
|
value: t,
|
|
@@ -7270,7 +7267,7 @@ const Ly = D(({
|
|
|
7270
7267
|
label: o("style.flex.justify_content.space_evenly"),
|
|
7271
7268
|
value: "space-evenly"
|
|
7272
7269
|
}], [l.language]);
|
|
7273
|
-
return /* @__PURE__ */ r(
|
|
7270
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("style.flex.justify_content.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
7274
7271
|
}), Ay = te(({
|
|
7275
7272
|
label: e,
|
|
7276
7273
|
value: t,
|
|
@@ -7293,7 +7290,7 @@ const Ly = D(({
|
|
|
7293
7290
|
label: o("style.flex.align_items.stretch"),
|
|
7294
7291
|
value: "stretch"
|
|
7295
7292
|
}], [l.language]);
|
|
7296
|
-
return /* @__PURE__ */ r(
|
|
7293
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("style.flex.align_items.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
7297
7294
|
}), Ey = ({
|
|
7298
7295
|
value: e,
|
|
7299
7296
|
index: t,
|
|
@@ -7302,7 +7299,7 @@ const Ly = D(({
|
|
|
7302
7299
|
const [a, {
|
|
7303
7300
|
setTrue: i,
|
|
7304
7301
|
setFalse: o
|
|
7305
|
-
}] =
|
|
7302
|
+
}] = De(!1), {
|
|
7306
7303
|
ref: l,
|
|
7307
7304
|
handleRef: s
|
|
7308
7305
|
} = Kr({
|
|
@@ -7358,12 +7355,12 @@ const Ly = D(({
|
|
|
7358
7355
|
} = d, b = t(n), _ = h.map((G, oe) => ({
|
|
7359
7356
|
...G,
|
|
7360
7357
|
...b[oe]
|
|
7361
|
-
})), x = ((W = C.last(_)) == null ? void 0 : W.id) ?? null, [T, M] = Q(x),
|
|
7358
|
+
})), x = ((W = C.last(_)) == null ? void 0 : W.id) ?? null, [T, M] = Q(x), $ = (G) => {
|
|
7362
7359
|
G !== "add" && M(G);
|
|
7363
7360
|
};
|
|
7364
7361
|
return N(() => {
|
|
7365
7362
|
M((G) => x === G ? G : x);
|
|
7366
|
-
}, [x]), /* @__PURE__ */ u(S, { value: T, onChange:
|
|
7363
|
+
}, [x]), /* @__PURE__ */ u(S, { value: T, onChange: $, styles: qy, children: [
|
|
7367
7364
|
/* @__PURE__ */ r(Oy, { fieldArray: d, add: () => {
|
|
7368
7365
|
const G = a();
|
|
7369
7366
|
d.append(G), M(G.id);
|
|
@@ -7401,19 +7398,19 @@ const Ly = D(({
|
|
|
7401
7398
|
/* @__PURE__ */ u(v, { children: [
|
|
7402
7399
|
/* @__PURE__ */ r(R, { sx: {
|
|
7403
7400
|
flexGrow: 1
|
|
7404
|
-
}, children: /* @__PURE__ */ r(
|
|
7401
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.zooming.scroll.x_axis"), checked: e.x_axis_scroll, onChange: (o) => i("x_axis_scroll")(o.currentTarget.checked) }) }),
|
|
7405
7402
|
/* @__PURE__ */ r(R, { sx: {
|
|
7406
7403
|
flexGrow: 1
|
|
7407
|
-
}, children: /* @__PURE__ */ r(
|
|
7404
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.zooming.scroll.y_axis"), checked: e.y_axis_scroll, onChange: (o) => i("y_axis_scroll")(o.currentTarget.checked) }) })
|
|
7408
7405
|
] }),
|
|
7409
7406
|
/* @__PURE__ */ r(A, { variant: "dashed", label: a("chart.zooming.slider.label"), labelPosition: "center" }),
|
|
7410
7407
|
/* @__PURE__ */ u(v, { children: [
|
|
7411
7408
|
/* @__PURE__ */ r(R, { sx: {
|
|
7412
7409
|
flexGrow: 1
|
|
7413
|
-
}, children: /* @__PURE__ */ r(
|
|
7410
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.zooming.slider.x_axis"), checked: e.x_axis_slider, onChange: (o) => i("x_axis_slider")(o.currentTarget.checked) }) }),
|
|
7414
7411
|
/* @__PURE__ */ r(ae, { label: a("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ r(R, { sx: {
|
|
7415
7412
|
flexGrow: 1
|
|
7416
|
-
}, children: /* @__PURE__ */ r(
|
|
7413
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.zooming.slider.y_axis"), disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (o) => i("y_axis_slider")(o.currentTarget.checked) }) }) })
|
|
7417
7414
|
] })
|
|
7418
7415
|
] });
|
|
7419
7416
|
}), gn = te(({
|
|
@@ -7433,7 +7430,7 @@ const Ly = D(({
|
|
|
7433
7430
|
label: l("chart.orientation.vertical"),
|
|
7434
7431
|
value: "vertical"
|
|
7435
7432
|
}], [s.language]);
|
|
7436
|
-
return /* @__PURE__ */ r(
|
|
7433
|
+
return /* @__PURE__ */ r(O, { ref: o, label: e ?? l("chart.orientation.label"), data: c, value: t, onChange: ye(n), sx: a, disabled: i });
|
|
7437
7434
|
}), Fy = ({
|
|
7438
7435
|
control: e,
|
|
7439
7436
|
watch: t
|
|
@@ -7450,7 +7447,7 @@ const Ly = D(({
|
|
|
7450
7447
|
return /* @__PURE__ */ u(I, { children: [
|
|
7451
7448
|
/* @__PURE__ */ r(v, { grow: !0, wrap: "nowrap", mt: 20, children: /* @__PURE__ */ r(f, { name: "legend.show", control: e, render: ({
|
|
7452
7449
|
field: o
|
|
7453
|
-
}) => /* @__PURE__ */ r(
|
|
7450
|
+
}) => /* @__PURE__ */ r(ze, { label: n("chart.legend.show_legend"), sx: {
|
|
7454
7451
|
flex: 1
|
|
7455
7452
|
}, checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }) }),
|
|
7456
7453
|
/* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(f, { name: "legend", control: e, render: ({
|
|
@@ -7477,18 +7474,18 @@ function Ny({
|
|
|
7477
7474
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
7478
7475
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
7479
7476
|
field: i
|
|
7480
|
-
}) => /* @__PURE__ */ r(
|
|
7477
|
+
}) => /* @__PURE__ */ r(V, { label: a("common.name"), placeholder: a("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
7481
7478
|
flex: 1
|
|
7482
7479
|
}, ...i }) }),
|
|
7483
7480
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
7484
7481
|
field: i
|
|
7485
|
-
}) => /* @__PURE__ */ r(
|
|
7482
|
+
}) => /* @__PURE__ */ r(O, { label: a("common.value"), required: !0, data: n, sx: {
|
|
7486
7483
|
flex: 1
|
|
7487
7484
|
}, ...i }) })
|
|
7488
7485
|
] }),
|
|
7489
7486
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
7490
7487
|
field: i
|
|
7491
|
-
}) => /* @__PURE__ */ r(
|
|
7488
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.content_template.label"), placeholder: a("chart.content_template.placeholder"), required: !0, sx: {
|
|
7492
7489
|
flex: 1
|
|
7493
7490
|
}, ...i }) })
|
|
7494
7491
|
] });
|
|
@@ -7527,7 +7524,7 @@ const jy = ({
|
|
|
7527
7524
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
7528
7525
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
7529
7526
|
field: a
|
|
7530
|
-
}) => /* @__PURE__ */ r(
|
|
7527
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
7531
7528
|
flex: 1
|
|
7532
7529
|
}, ...a }) }),
|
|
7533
7530
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -7604,7 +7601,7 @@ const ln = te(({
|
|
|
7604
7601
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
7605
7602
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
7606
7603
|
field: a
|
|
7607
|
-
}) => /* @__PURE__ */ r(
|
|
7604
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
|
|
7608
7605
|
flex: 1
|
|
7609
7606
|
}, ...a }) }),
|
|
7610
7607
|
/* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -7658,7 +7655,7 @@ function Uy({
|
|
|
7658
7655
|
] }) }),
|
|
7659
7656
|
/* @__PURE__ */ r(w.Tbody, { children: Wy.map((i) => /* @__PURE__ */ u(w.Tr, { children: [
|
|
7660
7657
|
/* @__PURE__ */ r(w.Td, { children: i }),
|
|
7661
|
-
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(
|
|
7658
|
+
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ke, { children: he(i, e) }) })
|
|
7662
7659
|
] }, i)) })
|
|
7663
7660
|
] }) })
|
|
7664
7661
|
] });
|
|
@@ -7702,7 +7699,7 @@ function Ky({
|
|
|
7702
7699
|
};
|
|
7703
7700
|
return /* @__PURE__ */ u(I, { ref: n, children: [
|
|
7704
7701
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
7705
|
-
/* @__PURE__ */ r(
|
|
7702
|
+
/* @__PURE__ */ r(O, { label: a("numbro.format.label"), data: [{
|
|
7706
7703
|
label: "1234",
|
|
7707
7704
|
value: "number"
|
|
7708
7705
|
}, {
|
|
@@ -7711,13 +7708,13 @@ function Ky({
|
|
|
7711
7708
|
}], value: e.output, onChange: ye(i), sx: {
|
|
7712
7709
|
flexGrow: 1
|
|
7713
7710
|
} }),
|
|
7714
|
-
/* @__PURE__ */ r(
|
|
7711
|
+
/* @__PURE__ */ r(ze, { label: /* @__PURE__ */ u(I, { gap: 0, children: [
|
|
7715
7712
|
/* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.absolute") }),
|
|
7716
7713
|
/* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.absolute_description") })
|
|
7717
7714
|
] }), checked: e.absolute, onChange: c, sx: {
|
|
7718
7715
|
flexGrow: 1
|
|
7719
7716
|
}, styles: _a }),
|
|
7720
|
-
/* @__PURE__ */ r(
|
|
7717
|
+
/* @__PURE__ */ r(ze, { label: /* @__PURE__ */ u(I, { gap: 0, children: [
|
|
7721
7718
|
/* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.abbreviation") }),
|
|
7722
7719
|
/* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.abbreviation_description") })
|
|
7723
7720
|
] }), checked: e.average, onChange: s, disabled: e.output !== "number", sx: {
|
|
@@ -7726,7 +7723,7 @@ function Ky({
|
|
|
7726
7723
|
] }),
|
|
7727
7724
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
7728
7725
|
/* @__PURE__ */ r(re, { label: a("numbro.format.mantissa"), defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: o }),
|
|
7729
|
-
/* @__PURE__ */ r(
|
|
7726
|
+
/* @__PURE__ */ r(ze, { label: /* @__PURE__ */ u(I, { gap: 0, children: [
|
|
7730
7727
|
/* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.trim_mantissa") }),
|
|
7731
7728
|
/* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.trim_mantissa_description") })
|
|
7732
7729
|
] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: _a }),
|
|
@@ -7746,7 +7743,7 @@ const qt = E.forwardRef(Ky), Yy = ({
|
|
|
7746
7743
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
7747
7744
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
7748
7745
|
field: a
|
|
7749
|
-
}) => /* @__PURE__ */ r(
|
|
7746
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), sx: {
|
|
7750
7747
|
flex: 1
|
|
7751
7748
|
}, ...a }) }),
|
|
7752
7749
|
/* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -7812,7 +7809,7 @@ function Xy({
|
|
|
7812
7809
|
/* @__PURE__ */ r(S.Panel, { value: "Y Axis", children: /* @__PURE__ */ r(Yy, { control: l, watch: c }) }),
|
|
7813
7810
|
/* @__PURE__ */ r(S.Panel, { value: "Legend", children: /* @__PURE__ */ r(Fy, { control: l, watch: c }) }),
|
|
7814
7811
|
/* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(Hy, { control: l, watch: c }) }),
|
|
7815
|
-
/* @__PURE__ */ r(S.Panel, { value: "Style", children: /* @__PURE__ */ r(
|
|
7812
|
+
/* @__PURE__ */ r(S.Panel, { value: "Style", children: /* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "color", control: l, render: ({
|
|
7816
7813
|
field: p
|
|
7817
7814
|
}) => /* @__PURE__ */ r(Ze, { label: t("chart.color.label"), ...p }) }) }) }),
|
|
7818
7815
|
/* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(By, { variables: i, control: l, watch: c }) }),
|
|
@@ -8166,8 +8163,8 @@ const Ii = {
|
|
|
8166
8163
|
width: b,
|
|
8167
8164
|
height: _
|
|
8168
8165
|
} = e.viewport, x = i.payloadForSQL, T = () => {
|
|
8169
|
-
a.forEach((
|
|
8170
|
-
n.runInteraction(
|
|
8166
|
+
a.forEach(($) => {
|
|
8167
|
+
n.runInteraction($.id, {});
|
|
8171
8168
|
});
|
|
8172
8169
|
}, M = h ? `compact-${p}` : p;
|
|
8173
8170
|
return /* @__PURE__ */ r(St, { sx: {
|
|
@@ -8205,7 +8202,7 @@ const Ii = {
|
|
|
8205
8202
|
label: l(`style.size.${d}`),
|
|
8206
8203
|
value: d
|
|
8207
8204
|
})), [s.language]);
|
|
8208
|
-
return /* @__PURE__ */ r(
|
|
8205
|
+
return /* @__PURE__ */ r(O, { ref: o, data: c, label: e, value: t, onChange: ye(n), sx: a, disabled: !0 });
|
|
8209
8206
|
}), y_ = [{
|
|
8210
8207
|
label: "Filled",
|
|
8211
8208
|
value: "filled"
|
|
@@ -8255,17 +8252,17 @@ function __({
|
|
|
8255
8252
|
/* @__PURE__ */ u(I, { children: [
|
|
8256
8253
|
/* @__PURE__ */ r(f, { control: o, name: "content", render: ({
|
|
8257
8254
|
field: h
|
|
8258
|
-
}) => /* @__PURE__ */ r(
|
|
8255
|
+
}) => /* @__PURE__ */ r(V, { label: "Content Template", description: "Filter values & context entries are supported", ...h, required: !0 }) }),
|
|
8259
8256
|
/* @__PURE__ */ r(A, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
8260
|
-
/* @__PURE__ */ u(
|
|
8257
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
8261
8258
|
/* @__PURE__ */ r(f, { control: o, name: "variant", render: ({
|
|
8262
8259
|
field: h
|
|
8263
|
-
}) => /* @__PURE__ */ r(
|
|
8260
|
+
}) => /* @__PURE__ */ r(O, { label: "Variant", data: y_, ...h }) }),
|
|
8264
8261
|
/* @__PURE__ */ r(f, { control: o, name: "color", render: ({
|
|
8265
8262
|
field: h
|
|
8266
8263
|
}) => /* @__PURE__ */ r(f_, { label: "Theme", ...h }) })
|
|
8267
8264
|
] }),
|
|
8268
|
-
/* @__PURE__ */ u(
|
|
8265
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
8269
8266
|
/* @__PURE__ */ r(f, { control: o, name: "size", render: ({
|
|
8270
8267
|
field: h
|
|
8271
8268
|
}) => /* @__PURE__ */ r(Pa, { label: "Size", ...h }) }),
|
|
@@ -8273,7 +8270,7 @@ function __({
|
|
|
8273
8270
|
field: h
|
|
8274
8271
|
}) => /* @__PURE__ */ r(ee, { label: "Compact", checked: h.value, onChange: (p) => h.onChange(p.currentTarget.checked), mt: 26 }) })
|
|
8275
8272
|
] }),
|
|
8276
|
-
/* @__PURE__ */ u(
|
|
8273
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
8277
8274
|
/* @__PURE__ */ r(f, { control: o, name: "horizontal_align", render: ({
|
|
8278
8275
|
field: h
|
|
8279
8276
|
}) => /* @__PURE__ */ r(Di, { ...h }) }),
|
|
@@ -8396,10 +8393,10 @@ const C_ = {
|
|
|
8396
8393
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
8397
8394
|
/* @__PURE__ */ r(f, { name: "visualMap.text.1", control: a, render: ({
|
|
8398
8395
|
field: d
|
|
8399
|
-
}) => /* @__PURE__ */ r(
|
|
8396
|
+
}) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.min_text"), ...d }) }),
|
|
8400
8397
|
/* @__PURE__ */ r(f, { name: "visualMap.text.0", control: a, render: ({
|
|
8401
8398
|
field: d
|
|
8402
|
-
}) => /* @__PURE__ */ r(
|
|
8399
|
+
}) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.max_text"), ...d }) })
|
|
8403
8400
|
] }),
|
|
8404
8401
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
8405
8402
|
/* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
|
|
@@ -8442,7 +8439,7 @@ const C_ = {
|
|
|
8442
8439
|
} = e, o = t === "horizontal" ? n : a, {
|
|
8443
8440
|
panel: l
|
|
8444
8441
|
} = Me(), s = ta(e, l.variableValueMap);
|
|
8445
|
-
return /* @__PURE__ */ r(
|
|
8442
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(We, { echarts: Ne, option: {
|
|
8446
8443
|
visualMap: s
|
|
8447
8444
|
}, style: {
|
|
8448
8445
|
width: "100%",
|
|
@@ -8486,20 +8483,20 @@ const C_ = {
|
|
|
8486
8483
|
/* @__PURE__ */ r(Ye.Dropdown, { children: /* @__PURE__ */ u(v, { wrap: "nowrap", gap: 8, children: [
|
|
8487
8484
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.value`, control: a, render: ({
|
|
8488
8485
|
field: p
|
|
8489
|
-
}) => /* @__PURE__ */ r(
|
|
8486
|
+
}) => /* @__PURE__ */ r(V, { ...p, placeholder: n("chart.visual_map.min_value"), size: "xs", onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) }),
|
|
8490
8487
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.symbol`, control: a, render: ({
|
|
8491
8488
|
field: p
|
|
8492
|
-
}) => /* @__PURE__ */ r(
|
|
8489
|
+
}) => /* @__PURE__ */ r(O, { size: "xs", data: Ao.lower, ...p, onChange: ye((g) => p.onChange(g)) }) }),
|
|
8493
8490
|
/* @__PURE__ */ r(k, { c: "dimmed", size: "sm", sx: {
|
|
8494
8491
|
userSelect: "none",
|
|
8495
8492
|
cursor: "default"
|
|
8496
8493
|
}, children: n("common.value").toLowerCase() }),
|
|
8497
8494
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.symbol`, control: a, render: ({
|
|
8498
8495
|
field: p
|
|
8499
|
-
}) => /* @__PURE__ */ r(
|
|
8496
|
+
}) => /* @__PURE__ */ r(O, { size: "xs", data: Ao.upper, ...p, onChange: ye((g) => p.onChange(g)) }) }),
|
|
8500
8497
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.value`, control: a, render: ({
|
|
8501
8498
|
field: p
|
|
8502
|
-
}) => /* @__PURE__ */ r(
|
|
8499
|
+
}) => /* @__PURE__ */ r(V, { ...p, size: "xs", placeholder: n("chart.visual_map.max_value"), onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) })
|
|
8503
8500
|
] }) })
|
|
8504
8501
|
] }) });
|
|
8505
8502
|
}, I_ = ({
|
|
@@ -8517,7 +8514,7 @@ const C_ = {
|
|
|
8517
8514
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(D_, { form: e, index: t }) }),
|
|
8518
8515
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.label`, control: a, render: ({
|
|
8519
8516
|
field: o
|
|
8520
|
-
}) => /* @__PURE__ */ r(
|
|
8517
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", placeholder: "", ...o, onChange: (l) => o.onChange(l.currentTarget.value) }) }) }),
|
|
8521
8518
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.color`, control: a, render: ({
|
|
8522
8519
|
field: o
|
|
8523
8520
|
}) => /* @__PURE__ */ r(rn, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
|
|
@@ -8632,7 +8629,7 @@ const C_ = {
|
|
|
8632
8629
|
return;
|
|
8633
8630
|
}
|
|
8634
8631
|
};
|
|
8635
|
-
return /* @__PURE__ */ r(
|
|
8632
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(I, { children: [
|
|
8636
8633
|
/* @__PURE__ */ r(T_, { visualMap: i }),
|
|
8637
8634
|
/* @__PURE__ */ r(f, { name: "visualMap.type", control: a, render: ({
|
|
8638
8635
|
field: s
|
|
@@ -9005,19 +9002,19 @@ function X_(e) {
|
|
|
9005
9002
|
};
|
|
9006
9003
|
}
|
|
9007
9004
|
function Z_(e, t, n) {
|
|
9008
|
-
const a = n.reduce((M,
|
|
9009
|
-
const
|
|
9010
|
-
return M[
|
|
9005
|
+
const a = n.reduce((M, $) => {
|
|
9006
|
+
const q = Xt($, t);
|
|
9007
|
+
return M[$.name] = kt($, q), M;
|
|
9011
9008
|
}, {}), i = ta(e.visualMap, a), {
|
|
9012
9009
|
min: o,
|
|
9013
9010
|
max: l
|
|
9014
9011
|
} = i, s = Q_(e), c = H(e.calendar.data_key), d = H(e.heat_block.data_key), h = t[c.queryID].map((M) => {
|
|
9015
|
-
const
|
|
9016
|
-
value: [
|
|
9012
|
+
const $ = C.get(M, c.columnKey), q = C.get(M, d.columnKey), W = Y_(M[c.columnKey]), G = {
|
|
9013
|
+
value: [$, q, W]
|
|
9017
9014
|
}, {
|
|
9018
9015
|
followVisualMap: oe,
|
|
9019
9016
|
color: Z
|
|
9020
|
-
} = fi(
|
|
9017
|
+
} = fi(q, o, l, e.visualMap);
|
|
9021
9018
|
return oe || (G.visualMap = !1, G.itemStyle = {
|
|
9022
9019
|
color: Z
|
|
9023
9020
|
}), G;
|
|
@@ -9064,8 +9061,8 @@ function ev({
|
|
|
9064
9061
|
const [x, T] = _.value, M = C.get(s, x, {
|
|
9065
9062
|
error: "rowData is not found"
|
|
9066
9063
|
});
|
|
9067
|
-
c.forEach((
|
|
9068
|
-
i.runInteraction(
|
|
9064
|
+
c.forEach(($) => {
|
|
9065
|
+
i.runInteraction($.id, {
|
|
9069
9066
|
..._,
|
|
9070
9067
|
rowData: M
|
|
9071
9068
|
});
|
|
@@ -9125,7 +9122,7 @@ function rv({
|
|
|
9125
9122
|
}, ...a }) }) }),
|
|
9126
9123
|
/* @__PURE__ */ r(f, { name: "calendar.locale", control: e, render: ({
|
|
9127
9124
|
field: a
|
|
9128
|
-
}) => /* @__PURE__ */ r(
|
|
9125
|
+
}) => /* @__PURE__ */ r(O, { label: n("viz.calendar_heatmap.calendar.locale"), data: nv, sx: {
|
|
9129
9126
|
flex: 1
|
|
9130
9127
|
}, ...a }) })
|
|
9131
9128
|
] });
|
|
@@ -9146,7 +9143,7 @@ function av({
|
|
|
9146
9143
|
}, ...a }) }),
|
|
9147
9144
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
9148
9145
|
field: a
|
|
9149
|
-
}) => /* @__PURE__ */ r(
|
|
9146
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
9150
9147
|
flex: 1
|
|
9151
9148
|
}, ...a }) })
|
|
9152
9149
|
] }),
|
|
@@ -9170,7 +9167,7 @@ const iv = ({
|
|
|
9170
9167
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
9171
9168
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
9172
9169
|
field: a
|
|
9173
|
-
}) => /* @__PURE__ */ r(
|
|
9170
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
9174
9171
|
flex: 1
|
|
9175
9172
|
}, ...a }) }),
|
|
9176
9173
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -9344,7 +9341,7 @@ const dv = {
|
|
|
9344
9341
|
description: a("chart.series.line.area_style.origin.end.description"),
|
|
9345
9342
|
value: "end"
|
|
9346
9343
|
}], [i.language]);
|
|
9347
|
-
return /* @__PURE__ */ r(
|
|
9344
|
+
return /* @__PURE__ */ r(O, { ref: n, label: a("chart.series.line.area_style.origin.label"), data: o, value: e, onChange: ye(t), renderOption: uv, size: "xs" });
|
|
9348
9345
|
}), qo = te(({
|
|
9349
9346
|
value: e,
|
|
9350
9347
|
onChange: t,
|
|
@@ -9372,7 +9369,7 @@ const dv = {
|
|
|
9372
9369
|
} }),
|
|
9373
9370
|
a("chart.series.line.area_style.label")
|
|
9374
9371
|
] }), labelPosition: "center" }),
|
|
9375
|
-
/* @__PURE__ */ r(
|
|
9372
|
+
/* @__PURE__ */ r(ze, { label: a("chart.series.line.area_style.enabled"), checked: e.enabled, onChange: (o) => i("enabled")(o.currentTarget.checked) }),
|
|
9376
9373
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
9377
9374
|
/* @__PURE__ */ r(qo, { label: a("chart.series.line.area_style.color"), placeholder: a("chart.series.line.area_style.use_series_color"), value: e.color, onChange: i("color") }),
|
|
9378
9375
|
/* @__PURE__ */ r(re, { size: "xs", label: a("chart.series.line.area_style.opacity"), value: e.opacity, onChange: i("opacity"), step: 0.1, decimalScale: 1, min: 0, max: 1 })
|
|
@@ -9437,7 +9434,7 @@ const Nc = te(({
|
|
|
9437
9434
|
} = t;
|
|
9438
9435
|
return /* @__PURE__ */ u(v, { gap: "xs", grow: !0, align: "flex-end", children: [
|
|
9439
9436
|
/* @__PURE__ */ r(
|
|
9440
|
-
|
|
9437
|
+
O,
|
|
9441
9438
|
{
|
|
9442
9439
|
ref: i,
|
|
9443
9440
|
label: e,
|
|
@@ -10420,7 +10417,7 @@ function rx({
|
|
|
10420
10417
|
hide_in_legend: _,
|
|
10421
10418
|
areaStyle: x,
|
|
10422
10419
|
...T
|
|
10423
|
-
}, M,
|
|
10420
|
+
}, M, $, q, W) {
|
|
10424
10421
|
const G = t.type !== "category", oe = {
|
|
10425
10422
|
label: {
|
|
10426
10423
|
show: !!i,
|
|
@@ -10432,7 +10429,7 @@ function rx({
|
|
|
10432
10429
|
yAxisIndex: a,
|
|
10433
10430
|
stack: h,
|
|
10434
10431
|
color: p,
|
|
10435
|
-
symbolSize: nx(b,
|
|
10432
|
+
symbolSize: nx(b, $, e, q),
|
|
10436
10433
|
hide_in_legend: _,
|
|
10437
10434
|
labelLayout: {
|
|
10438
10435
|
hideOverlap: !0
|
|
@@ -10465,7 +10462,7 @@ function rx({
|
|
|
10465
10462
|
}), !s || s === e)
|
|
10466
10463
|
return oe.data = ex({
|
|
10467
10464
|
dataTemplate: M,
|
|
10468
|
-
data:
|
|
10465
|
+
data: $,
|
|
10469
10466
|
aggregation_on_value: d,
|
|
10470
10467
|
x_axis_data_key: e,
|
|
10471
10468
|
y_axis_data_key: n,
|
|
@@ -10473,7 +10470,7 @@ function rx({
|
|
|
10473
10470
|
}), oe;
|
|
10474
10471
|
const Z = tx({
|
|
10475
10472
|
group_by_key: s,
|
|
10476
|
-
data:
|
|
10473
|
+
data: $,
|
|
10477
10474
|
x_axis_data_key: e,
|
|
10478
10475
|
y_axis_data_key: n
|
|
10479
10476
|
});
|
|
@@ -10527,13 +10524,13 @@ function lx(e, t, n, a) {
|
|
|
10527
10524
|
}) => {
|
|
10528
10525
|
if (Array.isArray(x) && x.length === 2 && (x = x[1]), !b)
|
|
10529
10526
|
return x;
|
|
10530
|
-
const T = o[b] ?? "", M = i[b],
|
|
10527
|
+
const T = o[b] ?? "", M = i[b], $ = a[M] ?? a.default;
|
|
10531
10528
|
return `
|
|
10532
10529
|
<tr>
|
|
10533
10530
|
<td>${_}</td>
|
|
10534
10531
|
<th style="text-align: right; padding: 0 1em;">${b}</th>
|
|
10535
10532
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
10536
|
-
${
|
|
10533
|
+
${$({
|
|
10537
10534
|
value: x
|
|
10538
10535
|
})}
|
|
10539
10536
|
</td>
|
|
@@ -10734,8 +10731,8 @@ function gx({
|
|
|
10734
10731
|
const M = C.get(s, T.name, {
|
|
10735
10732
|
error: "rowData is not found"
|
|
10736
10733
|
});
|
|
10737
|
-
c.forEach((
|
|
10738
|
-
i.runInteraction(
|
|
10734
|
+
c.forEach(($) => {
|
|
10735
|
+
i.runInteraction($.id, {
|
|
10739
10736
|
...T,
|
|
10740
10737
|
rowData: M
|
|
10741
10738
|
});
|
|
@@ -10798,24 +10795,24 @@ function bx({
|
|
|
10798
10795
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
10799
10796
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.name`, control: e, render: ({
|
|
10800
10797
|
field: s
|
|
10801
|
-
}) => /* @__PURE__ */ r(
|
|
10798
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.reference_area.label"), required: !0, sx: {
|
|
10802
10799
|
flex: 1
|
|
10803
10800
|
}, ...s }) }),
|
|
10804
10801
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.color`, control: e, render: ({
|
|
10805
10802
|
field: s
|
|
10806
|
-
}) => /* @__PURE__ */ r(
|
|
10803
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.color.label"), required: !0, sx: {
|
|
10807
10804
|
flex: 1
|
|
10808
10805
|
}, ...s }) })
|
|
10809
10806
|
] }),
|
|
10810
10807
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
10811
10808
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.type`, control: e, render: ({
|
|
10812
10809
|
field: s
|
|
10813
|
-
}) => /* @__PURE__ */ r(
|
|
10810
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.type.label"), required: !0, data: o, sx: {
|
|
10814
10811
|
flex: 1
|
|
10815
10812
|
}, ...s }) }),
|
|
10816
10813
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.direction`, control: e, render: ({
|
|
10817
10814
|
field: s
|
|
10818
|
-
}) => /* @__PURE__ */ r(
|
|
10815
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.direction.label"), required: !0, data: l, sx: {
|
|
10819
10816
|
flex: 1
|
|
10820
10817
|
}, ...s }) })
|
|
10821
10818
|
] }),
|
|
@@ -10823,12 +10820,12 @@ function bx({
|
|
|
10823
10820
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
10824
10821
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.y_keys.upper`, control: e, render: ({
|
|
10825
10822
|
field: s
|
|
10826
|
-
}) => /* @__PURE__ */ r(
|
|
10823
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.boundary.upper"), required: !0, data: n, sx: {
|
|
10827
10824
|
flex: 1
|
|
10828
10825
|
}, ...s }) }),
|
|
10829
10826
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.y_keys.lower`, control: e, render: ({
|
|
10830
10827
|
field: s
|
|
10831
|
-
}) => /* @__PURE__ */ r(
|
|
10828
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.boundary.lower"), required: !0, data: n, sx: {
|
|
10832
10829
|
flex: 1
|
|
10833
10830
|
}, ...s }) })
|
|
10834
10831
|
] })
|
|
@@ -10881,7 +10878,7 @@ const Yn = te(({
|
|
|
10881
10878
|
label: o("chart.series.line.type.dotted"),
|
|
10882
10879
|
value: "dotted"
|
|
10883
10880
|
}], [l.language]);
|
|
10884
|
-
return /* @__PURE__ */ r(
|
|
10881
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("chart.series.line.type.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
10885
10882
|
});
|
|
10886
10883
|
function _x({
|
|
10887
10884
|
control: e,
|
|
@@ -10899,18 +10896,18 @@ function _x({
|
|
|
10899
10896
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
10900
10897
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
10901
10898
|
field: s
|
|
10902
|
-
}) => /* @__PURE__ */ r(
|
|
10899
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
10903
10900
|
flex: 1
|
|
10904
10901
|
}, ...s }) }),
|
|
10905
10902
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
10906
10903
|
field: s
|
|
10907
|
-
}) => /* @__PURE__ */ r(
|
|
10904
|
+
}) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
|
|
10908
10905
|
flex: 1
|
|
10909
10906
|
}, ...s }) })
|
|
10910
10907
|
] }),
|
|
10911
10908
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
10912
10909
|
field: s
|
|
10913
|
-
}) => /* @__PURE__ */ r(
|
|
10910
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
10914
10911
|
flex: 1
|
|
10915
10912
|
}, ...s }) }),
|
|
10916
10913
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -10928,7 +10925,7 @@ function _x({
|
|
|
10928
10925
|
onChange: c,
|
|
10929
10926
|
...d
|
|
10930
10927
|
}
|
|
10931
|
-
}) => /* @__PURE__ */ r(
|
|
10928
|
+
}) => /* @__PURE__ */ r(O, { label: o("chart.y_axis.label"), data: i, disabled: i.length === 0, ...d, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (h) => {
|
|
10932
10929
|
if (!h) {
|
|
10933
10930
|
c(0);
|
|
10934
10931
|
return;
|
|
@@ -10951,7 +10948,7 @@ function _x({
|
|
|
10951
10948
|
flexGrow: 1
|
|
10952
10949
|
}, ...s }) })
|
|
10953
10950
|
] }),
|
|
10954
|
-
/* @__PURE__ */ r(
|
|
10951
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
10955
10952
|
field: s
|
|
10956
10953
|
}) => /* @__PURE__ */ r(Ze, { label: o("chart.color.label"), ...s }) }) }),
|
|
10957
10954
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: o("chart.behavior.label"), labelPosition: "center" }),
|
|
@@ -11024,7 +11021,7 @@ function xx({
|
|
|
11024
11021
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
11025
11022
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.name`, control: e, render: ({
|
|
11026
11023
|
field: c
|
|
11027
|
-
}) => /* @__PURE__ */ r(
|
|
11024
|
+
}) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
|
|
11028
11025
|
flex: 1
|
|
11029
11026
|
}, ...c }) }),
|
|
11030
11027
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.group_by_key`, control: e, render: ({
|
|
@@ -11045,7 +11042,7 @@ function xx({
|
|
|
11045
11042
|
onChange: d,
|
|
11046
11043
|
...h
|
|
11047
11044
|
}
|
|
11048
|
-
}) => /* @__PURE__ */ r(
|
|
11045
|
+
}) => /* @__PURE__ */ r(O, { label: i("chart.y_axis.label"), data: a, disabled: a.length === 0, ...h, value: (c == null ? void 0 : c.toString()) ?? "", onChange: (p) => {
|
|
11049
11046
|
if (!p) {
|
|
11050
11047
|
d(0);
|
|
11051
11048
|
return;
|
|
@@ -11058,7 +11055,7 @@ function xx({
|
|
|
11058
11055
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11059
11056
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.transform.config.method`, control: e, render: ({
|
|
11060
11057
|
field: c
|
|
11061
|
-
}) => /* @__PURE__ */ r(
|
|
11058
|
+
}) => /* @__PURE__ */ r(O, { label: i("chart.regression_line.method.label"), data: l, sx: {
|
|
11062
11059
|
flex: 1
|
|
11063
11060
|
}, ...c }) }),
|
|
11064
11061
|
s === "polynomial" && /* @__PURE__ */ r(f, { name: `regressions.${n}.transform.config.order`, control: e, render: ({
|
|
@@ -11080,7 +11077,7 @@ function xx({
|
|
|
11080
11077
|
flexGrow: 1
|
|
11081
11078
|
}, ...c }) })
|
|
11082
11079
|
] }),
|
|
11083
|
-
/* @__PURE__ */ r(
|
|
11080
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `regressions.${n}.plot.color`, control: e, render: ({
|
|
11084
11081
|
field: c
|
|
11085
11082
|
}) => /* @__PURE__ */ r(Ze, { label: i("chart.color.label"), ...c }) }) })
|
|
11086
11083
|
] });
|
|
@@ -11154,7 +11151,7 @@ const Sx = ({
|
|
|
11154
11151
|
} = y(), [a, {
|
|
11155
11152
|
setTrue: i,
|
|
11156
11153
|
setFalse: o
|
|
11157
|
-
}] =
|
|
11154
|
+
}] = De(), [l, s] = Q(e), c = () => {
|
|
11158
11155
|
o();
|
|
11159
11156
|
const {
|
|
11160
11157
|
type: g,
|
|
@@ -11227,8 +11224,8 @@ const Sx = ({
|
|
|
11227
11224
|
...Pi[c]
|
|
11228
11225
|
});
|
|
11229
11226
|
};
|
|
11230
|
-
return /* @__PURE__ */ u(
|
|
11231
|
-
/* @__PURE__ */ r(
|
|
11227
|
+
return /* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
11228
|
+
/* @__PURE__ */ r(O, { ref: a, label: e ?? i("chart.symbol_size.label"), data: l, value: t.type, onChange: s, sx: {
|
|
11232
11229
|
flexGrow: 1
|
|
11233
11230
|
} }),
|
|
11234
11231
|
/* @__PURE__ */ r(zx, { value: t, onChange: n }),
|
|
@@ -11355,9 +11352,9 @@ function Tx({
|
|
|
11355
11352
|
}], [s.language]);
|
|
11356
11353
|
return /* @__PURE__ */ u(F, { children: [
|
|
11357
11354
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", pt: a, children: [
|
|
11358
|
-
/* @__PURE__ */ r(
|
|
11355
|
+
/* @__PURE__ */ r(O, { ref: o, label: e, data: b, value: t.type, onChange: c, maxDropdownHeight: 600 }),
|
|
11359
11356
|
t.type === "quantile" && /* @__PURE__ */ r(re, { label: "p", value: t.config.p, onChange: d, decimalScale: 2, min: 0.05, step: 0.05, max: 1 }),
|
|
11360
|
-
t.type === "pick_record" && /* @__PURE__ */ r(
|
|
11357
|
+
t.type === "pick_record" && /* @__PURE__ */ r(O, { label: l("aggregation.option.pick_record.method.label"), value: t.config.method, onChange: p, data: [{
|
|
11361
11358
|
label: l("aggregation.option.pick_record.method.first"),
|
|
11362
11359
|
value: "first"
|
|
11363
11360
|
}, {
|
|
@@ -11375,7 +11372,7 @@ function Tx({
|
|
|
11375
11372
|
color: "grape"
|
|
11376
11373
|
} })
|
|
11377
11374
|
] }),
|
|
11378
|
-
i && /* @__PURE__ */ r(
|
|
11375
|
+
i && /* @__PURE__ */ r(V, { label: l("panel.variable.aggregation.fallback_value"), description: l("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: g })
|
|
11379
11376
|
] });
|
|
11380
11377
|
}
|
|
11381
11378
|
const Ei = E.forwardRef(Tx), Xn = te(({
|
|
@@ -11439,7 +11436,7 @@ const Ei = E.forwardRef(Tx), Xn = te(({
|
|
|
11439
11436
|
value: ""
|
|
11440
11437
|
}), d;
|
|
11441
11438
|
}, [s.language, a, i]);
|
|
11442
|
-
return /* @__PURE__ */ r(
|
|
11439
|
+
return /* @__PURE__ */ r(O, { ref: o, label: e, data: c, value: t, onChange: n });
|
|
11443
11440
|
});
|
|
11444
11441
|
function Dx({
|
|
11445
11442
|
control: e,
|
|
@@ -11460,29 +11457,29 @@ function Dx({
|
|
|
11460
11457
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11461
11458
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
11462
11459
|
field: s
|
|
11463
|
-
}) => /* @__PURE__ */ r(
|
|
11460
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
11464
11461
|
flexGrow: 1
|
|
11465
11462
|
}, ...s }) }),
|
|
11466
11463
|
/* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
|
|
11467
11464
|
field: s
|
|
11468
|
-
}) => /* @__PURE__ */ r(
|
|
11465
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.series.bar.bar_gap.label"), data: l, sx: {
|
|
11469
11466
|
flexGrow: 1
|
|
11470
11467
|
}, ...s }) })
|
|
11471
11468
|
] }),
|
|
11472
11469
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11473
11470
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
11474
11471
|
field: s
|
|
11475
|
-
}) => /* @__PURE__ */ r(
|
|
11472
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
|
|
11476
11473
|
flexGrow: 1
|
|
11477
11474
|
}, ...s }) }),
|
|
11478
11475
|
/* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
11479
11476
|
field: s
|
|
11480
|
-
}) => /* @__PURE__ */ r(
|
|
11477
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
|
|
11481
11478
|
flexGrow: 1
|
|
11482
11479
|
}, ...s }) }),
|
|
11483
11480
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
11484
11481
|
field: s
|
|
11485
|
-
}) => /* @__PURE__ */ r(
|
|
11482
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
|
|
11486
11483
|
flexGrow: 1
|
|
11487
11484
|
}, ...s }) })
|
|
11488
11485
|
] })
|
|
@@ -11512,7 +11509,7 @@ function Ix({
|
|
|
11512
11509
|
return /* @__PURE__ */ u(F, { children: [
|
|
11513
11510
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
11514
11511
|
field: s
|
|
11515
|
-
}) => /* @__PURE__ */ r(
|
|
11512
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
11516
11513
|
flexGrow: 1
|
|
11517
11514
|
}, ...s }) }),
|
|
11518
11515
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: a("chart.series.line.line_settings"), labelPosition: "center" }),
|
|
@@ -11531,7 +11528,7 @@ function Ix({
|
|
|
11531
11528
|
/* @__PURE__ */ u(v, { grow: !0, align: "center", children: [
|
|
11532
11529
|
/* @__PURE__ */ r(f, { name: `series.${t}.step`, control: e, render: ({
|
|
11533
11530
|
field: s
|
|
11534
|
-
}) => /* @__PURE__ */ r(
|
|
11531
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.series.line.step.label"), data: l, sx: {
|
|
11535
11532
|
flexGrow: 1,
|
|
11536
11533
|
maxWidth: "48%"
|
|
11537
11534
|
}, ...s, value: String(s.value), onChange: ye((c) => {
|
|
@@ -11543,12 +11540,12 @@ function Ix({
|
|
|
11543
11540
|
field: s
|
|
11544
11541
|
}) => /* @__PURE__ */ r(R, { sx: {
|
|
11545
11542
|
flexGrow: 1
|
|
11546
|
-
}, children: /* @__PURE__ */ r(
|
|
11543
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.series.line.smooth_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
|
|
11547
11544
|
/* @__PURE__ */ r(f, { name: `series.${t}.display_name_on_line`, control: e, render: ({
|
|
11548
11545
|
field: s
|
|
11549
11546
|
}) => /* @__PURE__ */ r(R, { sx: {
|
|
11550
11547
|
flexGrow: 1
|
|
11551
|
-
}, children: /* @__PURE__ */ r(
|
|
11548
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.series.line.show_name_on_line"), checked: s.value ?? !1, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) })
|
|
11552
11549
|
] })
|
|
11553
11550
|
] }),
|
|
11554
11551
|
/* @__PURE__ */ u(I, { children: [
|
|
@@ -11556,7 +11553,7 @@ function Ix({
|
|
|
11556
11553
|
field: s
|
|
11557
11554
|
}) => /* @__PURE__ */ r(R, { mt: 10, mb: -10, sx: {
|
|
11558
11555
|
flexGrow: 1
|
|
11559
|
-
}, children: /* @__PURE__ */ r(
|
|
11556
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.series.line.show_symbol_on_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
|
|
11560
11557
|
o && /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
|
|
11561
11558
|
field: s
|
|
11562
11559
|
}) => /* @__PURE__ */ r(Ai, { ...s }) })
|
|
@@ -11601,7 +11598,7 @@ function Lx({
|
|
|
11601
11598
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11602
11599
|
/* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
|
|
11603
11600
|
field: s
|
|
11604
|
-
}) => /* @__PURE__ */ r(
|
|
11601
|
+
}) => /* @__PURE__ */ r(V, { label: i("chart.series.name"), required: !0, sx: {
|
|
11605
11602
|
flex: 1
|
|
11606
11603
|
}, ...s }) }),
|
|
11607
11604
|
/* @__PURE__ */ r(f, { name: `series.${t}.yAxisIndex`, control: e, render: ({
|
|
@@ -11610,7 +11607,7 @@ function Lx({
|
|
|
11610
11607
|
onChange: c,
|
|
11611
11608
|
...d
|
|
11612
11609
|
}
|
|
11613
|
-
}) => /* @__PURE__ */ r(
|
|
11610
|
+
}) => /* @__PURE__ */ r(O, { label: i("chart.series.y_axis"), data: a, disabled: a.length === 0, ...d, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (h) => {
|
|
11614
11611
|
if (!h) {
|
|
11615
11612
|
c(0);
|
|
11616
11613
|
return;
|
|
@@ -11620,7 +11617,7 @@ function Lx({
|
|
|
11620
11617
|
flex: 1
|
|
11621
11618
|
} }) })
|
|
11622
11619
|
] }),
|
|
11623
|
-
/* @__PURE__ */ u(
|
|
11620
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
11624
11621
|
/* @__PURE__ */ r(f, { name: `series.${t}.y_axis_data_key`, control: e, render: ({
|
|
11625
11622
|
field: s
|
|
11626
11623
|
}) => /* @__PURE__ */ r(X, { label: i("chart.series.data_field"), required: !0, sx: {
|
|
@@ -11648,7 +11645,7 @@ function Lx({
|
|
|
11648
11645
|
/* @__PURE__ */ r(f, { name: `series.${t}.label_position`, control: e, render: ({
|
|
11649
11646
|
field: s
|
|
11650
11647
|
}) => /* @__PURE__ */ r(Xn, { label: i("chart.label_position.label"), withOffOption: !0, ...s }) }),
|
|
11651
|
-
/* @__PURE__ */ r(
|
|
11648
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `series.${t}.color`, control: e, render: ({
|
|
11652
11649
|
field: s
|
|
11653
11650
|
}) => /* @__PURE__ */ r(Ze, { label: i("chart.color.label"), ...s }) }) }),
|
|
11654
11651
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: i("chart.behavior.label"), labelPosition: "center" }),
|
|
@@ -11740,7 +11737,7 @@ const Vx = D(({
|
|
|
11740
11737
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11741
11738
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
11742
11739
|
field: a
|
|
11743
|
-
}) => /* @__PURE__ */ r(
|
|
11740
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
11744
11741
|
flex: 1
|
|
11745
11742
|
}, ...a }) }),
|
|
11746
11743
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -11833,7 +11830,7 @@ function Ox({
|
|
|
11833
11830
|
return /* @__PURE__ */ u(I, { children: [
|
|
11834
11831
|
/* @__PURE__ */ r(f, { name: "x_axis_name", control: e, render: ({
|
|
11835
11832
|
field: o
|
|
11836
|
-
}) => /* @__PURE__ */ r(
|
|
11833
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
|
|
11837
11834
|
flex: 1
|
|
11838
11835
|
}, ...o }) }),
|
|
11839
11836
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
@@ -11844,7 +11841,7 @@ function Ox({
|
|
|
11844
11841
|
}, ...o }) }),
|
|
11845
11842
|
/* @__PURE__ */ r(f, { name: "x_axis.type", control: e, render: ({
|
|
11846
11843
|
field: o
|
|
11847
|
-
}) => /* @__PURE__ */ r(
|
|
11844
|
+
}) => /* @__PURE__ */ r(O, { label: /* @__PURE__ */ r(Ex, {}), required: !0, data: i, sx: {
|
|
11848
11845
|
flex: 1
|
|
11849
11846
|
}, ...o }) })
|
|
11850
11847
|
] }),
|
|
@@ -11884,7 +11881,7 @@ const fn = te(({
|
|
|
11884
11881
|
label: l("chart.name_text.align.right"),
|
|
11885
11882
|
value: "right"
|
|
11886
11883
|
}], [s.language]);
|
|
11887
|
-
return /* @__PURE__ */ r(
|
|
11884
|
+
return /* @__PURE__ */ r(O, { ref: o, label: e ?? l("chart.name_text.align.label"), data: c, value: t, onChange: ye(n), sx: a, disabled: i });
|
|
11888
11885
|
}), jc = te(({
|
|
11889
11886
|
label: e,
|
|
11890
11887
|
value: t,
|
|
@@ -11901,7 +11898,7 @@ const fn = te(({
|
|
|
11901
11898
|
label: o("chart.y_axis.position.right"),
|
|
11902
11899
|
value: "right"
|
|
11903
11900
|
}], [l.language]);
|
|
11904
|
-
return /* @__PURE__ */ r(
|
|
11901
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("chart.y_axis.position.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
11905
11902
|
});
|
|
11906
11903
|
function qx({
|
|
11907
11904
|
control: e,
|
|
@@ -11917,7 +11914,7 @@ function qx({
|
|
|
11917
11914
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11918
11915
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
11919
11916
|
field: a
|
|
11920
|
-
}) => /* @__PURE__ */ r(
|
|
11917
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), required: !0, sx: {
|
|
11921
11918
|
flex: 1
|
|
11922
11919
|
}, ...a }) }),
|
|
11923
11920
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -11948,10 +11945,10 @@ function qx({
|
|
|
11948
11945
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
11949
11946
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
11950
11947
|
field: a
|
|
11951
|
-
}) => /* @__PURE__ */ r(
|
|
11948
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
|
|
11952
11949
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
11953
11950
|
field: a
|
|
11954
|
-
}) => /* @__PURE__ */ r(
|
|
11951
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
|
|
11955
11952
|
] })
|
|
11956
11953
|
] }),
|
|
11957
11954
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.y_axis.behavior"), labelPosition: "center" }),
|
|
@@ -12303,7 +12300,7 @@ const tw = ({
|
|
|
12303
12300
|
return /* @__PURE__ */ u(I, { children: [
|
|
12304
12301
|
/* @__PURE__ */ r(v, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.name`, control: t, render: ({
|
|
12305
12302
|
field: p
|
|
12306
|
-
}) => /* @__PURE__ */ r(
|
|
12303
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.funnel_chart.series_name"), ...p }) }) }),
|
|
12307
12304
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
12308
12305
|
/* @__PURE__ */ r(f, { name: `series.${n}.level_name_data_key`, control: t, render: ({
|
|
12309
12306
|
field: p
|
|
@@ -12328,7 +12325,7 @@ const tw = ({
|
|
|
12328
12325
|
] }), ...p }) }),
|
|
12329
12326
|
/* @__PURE__ */ r(f, { name: `series.${n}.min.size`, control: t, render: ({
|
|
12330
12327
|
field: p
|
|
12331
|
-
}) => /* @__PURE__ */ r(
|
|
12328
|
+
}) => /* @__PURE__ */ r(V, { placeholder: "0%", label: i("viz.funnel_chart.min_size"), ...p }) })
|
|
12332
12329
|
] }),
|
|
12333
12330
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
12334
12331
|
/* @__PURE__ */ r(f, { name: `series.${n}.max.value`, control: t, render: ({
|
|
@@ -12345,7 +12342,7 @@ const tw = ({
|
|
|
12345
12342
|
] }), ...p }) }),
|
|
12346
12343
|
/* @__PURE__ */ r(f, { name: `series.${n}.max.size`, control: t, render: ({
|
|
12347
12344
|
field: p
|
|
12348
|
-
}) => /* @__PURE__ */ r(
|
|
12345
|
+
}) => /* @__PURE__ */ r(V, { placeholder: "100%", label: i("viz.funnel_chart.max_size"), ...p }) })
|
|
12349
12346
|
] }),
|
|
12350
12347
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
12351
12348
|
/* @__PURE__ */ r(f, { name: `series.${n}.orient`, control: t, render: ({
|
|
@@ -12353,7 +12350,7 @@ const tw = ({
|
|
|
12353
12350
|
}) => /* @__PURE__ */ r(gn, { ...p }) }),
|
|
12354
12351
|
/* @__PURE__ */ r(f, { name: `series.${n}.sort`, control: t, render: ({
|
|
12355
12352
|
field: p
|
|
12356
|
-
}) => /* @__PURE__ */ r(
|
|
12353
|
+
}) => /* @__PURE__ */ r(O, { label: i("viz.funnel_chart.sort.label"), data: h, ...p }) })
|
|
12357
12354
|
] }),
|
|
12358
12355
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
12359
12356
|
/* @__PURE__ */ r(f, { name: `series.${n}.funnelAlign`, control: t, render: ({
|
|
@@ -12689,7 +12686,7 @@ function _w({
|
|
|
12689
12686
|
unit: e.heat_block.unit.show_in_tooltip ? e.heat_block.unit.text : ""
|
|
12690
12687
|
}, _ = [p, g, b], x = a[`${c}---${d}`];
|
|
12691
12688
|
return x && e.tooltip.metrics.forEach((T) => {
|
|
12692
|
-
const M = H(T.data_key),
|
|
12689
|
+
const M = H(T.data_key), $ = o[T.name];
|
|
12693
12690
|
_.push({
|
|
12694
12691
|
label: T.name,
|
|
12695
12692
|
value: yw(C.get(x, M.columnKey, "")),
|
|
@@ -12697,7 +12694,7 @@ function _w({
|
|
|
12697
12694
|
label: "",
|
|
12698
12695
|
value: ""
|
|
12699
12696
|
},
|
|
12700
|
-
unit:
|
|
12697
|
+
unit: $
|
|
12701
12698
|
});
|
|
12702
12699
|
}), _;
|
|
12703
12700
|
}
|
|
@@ -12851,14 +12848,14 @@ function Sw(e, t, n, a) {
|
|
|
12851
12848
|
function Qc(e, t, n, a, i, o) {
|
|
12852
12849
|
if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
|
|
12853
12850
|
return {};
|
|
12854
|
-
const l = a.reduce((
|
|
12851
|
+
const l = a.reduce((q, W) => {
|
|
12855
12852
|
const G = Xt(W, t);
|
|
12856
|
-
return
|
|
12853
|
+
return q[W.name] = kt(W, G), q;
|
|
12857
12854
|
}, {}), s = ta(e.visualMap, l), {
|
|
12858
12855
|
min: c,
|
|
12859
12856
|
max: d
|
|
12860
|
-
} = s, h = mw(e), p = gw(e), g = H(e.x_axis.data_key), b = H(e.y_axis.data_key), _ = C.uniq(t[g.queryID].map((
|
|
12861
|
-
const W = C.clone(
|
|
12857
|
+
} = s, h = mw(e), p = gw(e), g = H(e.x_axis.data_key), b = H(e.y_axis.data_key), _ = C.uniq(t[g.queryID].map((q) => q[g.columnKey])), x = C.uniq(t[g.queryID].map((q) => q[b.columnKey])), T = n.map((q) => {
|
|
12858
|
+
const W = C.clone(q), {
|
|
12862
12859
|
followVisualMap: G,
|
|
12863
12860
|
color: oe
|
|
12864
12861
|
} = fi(W.value[2], c, d, e.visualMap);
|
|
@@ -13067,7 +13064,7 @@ function Mw({
|
|
|
13067
13064
|
}, ...i }) }),
|
|
13068
13065
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
13069
13066
|
field: i
|
|
13070
|
-
}) => /* @__PURE__ */ r(
|
|
13067
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13071
13068
|
flex: 1
|
|
13072
13069
|
}, ...i }) })
|
|
13073
13070
|
] }),
|
|
@@ -13082,7 +13079,7 @@ function Mw({
|
|
|
13082
13079
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
13083
13080
|
/* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
|
|
13084
13081
|
field: i
|
|
13085
|
-
}) => /* @__PURE__ */ r(
|
|
13082
|
+
}) => /* @__PURE__ */ r(ze, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
|
|
13086
13083
|
flexGrow: 1
|
|
13087
13084
|
} }) }),
|
|
13088
13085
|
/* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
|
|
@@ -13117,7 +13114,7 @@ const $w = ({
|
|
|
13117
13114
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
13118
13115
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
13119
13116
|
field: a
|
|
13120
|
-
}) => /* @__PURE__ */ r(
|
|
13117
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
13121
13118
|
flex: 1
|
|
13122
13119
|
}, ...a }) }),
|
|
13123
13120
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -13182,7 +13179,7 @@ function Pw({
|
|
|
13182
13179
|
}, ...a }) }),
|
|
13183
13180
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
13184
13181
|
field: a
|
|
13185
|
-
}) => /* @__PURE__ */ r(
|
|
13182
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13186
13183
|
flex: 1
|
|
13187
13184
|
}, ...a }) })
|
|
13188
13185
|
] }),
|
|
@@ -13220,7 +13217,7 @@ function Aw({
|
|
|
13220
13217
|
}, ...a }) }),
|
|
13221
13218
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
13222
13219
|
field: a
|
|
13223
|
-
}) => /* @__PURE__ */ r(
|
|
13220
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13224
13221
|
flex: 1
|
|
13225
13222
|
}, ...a }) })
|
|
13226
13223
|
] }),
|
|
@@ -13758,7 +13755,7 @@ function l0({
|
|
|
13758
13755
|
id: p,
|
|
13759
13756
|
...g
|
|
13760
13757
|
}, b, _, x, T, M) {
|
|
13761
|
-
const
|
|
13758
|
+
const $ = {
|
|
13762
13759
|
label: {
|
|
13763
13760
|
show: !!a,
|
|
13764
13761
|
position: a,
|
|
@@ -13779,22 +13776,22 @@ function l0({
|
|
|
13779
13776
|
...g
|
|
13780
13777
|
};
|
|
13781
13778
|
if (!o || o === e.data_key)
|
|
13782
|
-
return
|
|
13779
|
+
return $.data = i0({
|
|
13783
13780
|
dataTemplate: b,
|
|
13784
13781
|
data: x,
|
|
13785
13782
|
aggregation_on_value: l,
|
|
13786
13783
|
name_data_key: e.data_key,
|
|
13787
13784
|
value_data_key: t,
|
|
13788
13785
|
valueTypedXAxis: _
|
|
13789
|
-
}),
|
|
13790
|
-
const
|
|
13786
|
+
}), $;
|
|
13787
|
+
const q = o0({
|
|
13791
13788
|
group_by_key: o,
|
|
13792
13789
|
data: x,
|
|
13793
13790
|
name_data_key: e.data_key,
|
|
13794
13791
|
value_data_key: t
|
|
13795
13792
|
});
|
|
13796
|
-
return Object.entries(
|
|
13797
|
-
const oe = Fe(
|
|
13793
|
+
return Object.entries(q).map(([W, G]) => {
|
|
13794
|
+
const oe = Fe($);
|
|
13798
13795
|
return oe.name = W, oe.color = void 0, oe.data = G, oe;
|
|
13799
13796
|
});
|
|
13800
13797
|
}
|
|
@@ -13962,8 +13959,8 @@ function f0({
|
|
|
13962
13959
|
const M = C.get(s, T.name, {
|
|
13963
13960
|
error: "rowData is not found"
|
|
13964
13961
|
});
|
|
13965
|
-
c.forEach((
|
|
13966
|
-
i.runInteraction(
|
|
13962
|
+
c.forEach(($) => {
|
|
13963
|
+
i.runInteraction($.id, {
|
|
13967
13964
|
...T,
|
|
13968
13965
|
rowData: M
|
|
13969
13966
|
});
|
|
@@ -14019,18 +14016,18 @@ function y0({
|
|
|
14019
14016
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14020
14017
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
14021
14018
|
field: s
|
|
14022
|
-
}) => /* @__PURE__ */ r(
|
|
14019
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
14023
14020
|
flex: 1
|
|
14024
14021
|
}, ...s }) }),
|
|
14025
14022
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
14026
14023
|
field: s
|
|
14027
|
-
}) => /* @__PURE__ */ r(
|
|
14024
|
+
}) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
|
|
14028
14025
|
flex: 1
|
|
14029
14026
|
}, ...s }) })
|
|
14030
14027
|
] }),
|
|
14031
14028
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
14032
14029
|
field: s
|
|
14033
|
-
}) => /* @__PURE__ */ r(
|
|
14030
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
14034
14031
|
flex: 1
|
|
14035
14032
|
}, ...s }) }),
|
|
14036
14033
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -14044,7 +14041,7 @@ function y0({
|
|
|
14044
14041
|
] }),
|
|
14045
14042
|
l === "horizontal" && /* @__PURE__ */ r(f, { name: `reference_lines.${t}.xAxisIndex`, control: e, render: ({
|
|
14046
14043
|
field: s
|
|
14047
|
-
}) => /* @__PURE__ */ r(
|
|
14044
|
+
}) => /* @__PURE__ */ r(O, { label: o("chart.x_axis.label"), data: i, disabled: i.length === 0, sx: {
|
|
14048
14045
|
flex: 1
|
|
14049
14046
|
}, ...s }) })
|
|
14050
14047
|
] }),
|
|
@@ -14061,7 +14058,7 @@ function y0({
|
|
|
14061
14058
|
flexGrow: 1
|
|
14062
14059
|
}, ...s }) })
|
|
14063
14060
|
] }),
|
|
14064
|
-
/* @__PURE__ */ r(
|
|
14061
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
14065
14062
|
field: s
|
|
14066
14063
|
}) => /* @__PURE__ */ r(Ze, { label: o("chart.color.label"), ...s }) }) }),
|
|
14067
14064
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: o("chart.behavior.label"), labelPosition: "center" }),
|
|
@@ -14113,29 +14110,29 @@ function v0({
|
|
|
14113
14110
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14114
14111
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
14115
14112
|
field: s
|
|
14116
|
-
}) => /* @__PURE__ */ r(
|
|
14113
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
14117
14114
|
flexGrow: 1
|
|
14118
14115
|
}, ...s }) }),
|
|
14119
14116
|
/* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
|
|
14120
14117
|
field: s
|
|
14121
|
-
}) => /* @__PURE__ */ r(
|
|
14118
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.series.bar.bar_gap.label"), data: l, sx: {
|
|
14122
14119
|
flexGrow: 1
|
|
14123
14120
|
}, ...s }) })
|
|
14124
14121
|
] }),
|
|
14125
14122
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14126
14123
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
14127
14124
|
field: s
|
|
14128
|
-
}) => /* @__PURE__ */ r(
|
|
14125
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
|
|
14129
14126
|
flexGrow: 1
|
|
14130
14127
|
}, ...s }) }),
|
|
14131
14128
|
/* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
14132
14129
|
field: s
|
|
14133
|
-
}) => /* @__PURE__ */ r(
|
|
14130
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
|
|
14134
14131
|
flexGrow: 1
|
|
14135
14132
|
}, ...s }) }),
|
|
14136
14133
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
14137
14134
|
field: s
|
|
14138
|
-
}) => /* @__PURE__ */ r(
|
|
14135
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
|
|
14139
14136
|
flexGrow: 1
|
|
14140
14137
|
}, ...s }) })
|
|
14141
14138
|
] })
|
|
@@ -14156,16 +14153,16 @@ function x0({
|
|
|
14156
14153
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14157
14154
|
/* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
|
|
14158
14155
|
field: o
|
|
14159
|
-
}) => /* @__PURE__ */ r(
|
|
14156
|
+
}) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
|
|
14160
14157
|
flex: 1
|
|
14161
14158
|
}, ...o }) }),
|
|
14162
14159
|
/* @__PURE__ */ r(f, { name: `series.${t}.xAxisIndex`, control: e, render: ({
|
|
14163
14160
|
field: o
|
|
14164
|
-
}) => /* @__PURE__ */ r(
|
|
14161
|
+
}) => /* @__PURE__ */ r(O, { label: i("chart.x_axis.label"), data: a, disabled: a.length === 0, sx: {
|
|
14165
14162
|
flex: 1
|
|
14166
14163
|
}, ...o }) })
|
|
14167
14164
|
] }),
|
|
14168
|
-
/* @__PURE__ */ u(
|
|
14165
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
14169
14166
|
/* @__PURE__ */ r(f, { name: `series.${t}.data_key`, control: e, render: ({
|
|
14170
14167
|
field: o
|
|
14171
14168
|
}) => /* @__PURE__ */ r(X, { label: i("common.data_field"), required: !0, sx: {
|
|
@@ -14190,7 +14187,7 @@ function x0({
|
|
|
14190
14187
|
}) => /* @__PURE__ */ r(Xn, { label: i("chart.label_position.label"), ...o, withOffOption: !0, onChange: (l) => {
|
|
14191
14188
|
o.onChange(l ?? "");
|
|
14192
14189
|
} }) }),
|
|
14193
|
-
/* @__PURE__ */ r(
|
|
14190
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `series.${t}.color`, control: e, render: ({
|
|
14194
14191
|
field: o
|
|
14195
14192
|
}) => /* @__PURE__ */ r(Ze, { label: i("chart.color.label"), ...o }) }) }),
|
|
14196
14193
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: i("chart.behavior.label"), labelPosition: "center" }),
|
|
@@ -14238,7 +14235,7 @@ const S0 = te(({
|
|
|
14238
14235
|
label: o("chart.x_axis.position.bottom"),
|
|
14239
14236
|
value: "bottom"
|
|
14240
14237
|
}], [l.language]);
|
|
14241
|
-
return /* @__PURE__ */ r(
|
|
14238
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("chart.x_axis.position.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
14242
14239
|
});
|
|
14243
14240
|
function C0({
|
|
14244
14241
|
control: e,
|
|
@@ -14253,7 +14250,7 @@ function C0({
|
|
|
14253
14250
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14254
14251
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.name`, control: e, render: ({
|
|
14255
14252
|
field: a
|
|
14256
|
-
}) => /* @__PURE__ */ r(
|
|
14253
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
14257
14254
|
flex: 1
|
|
14258
14255
|
}, ...a }) }),
|
|
14259
14256
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.position`, control: e, render: ({
|
|
@@ -14273,10 +14270,10 @@ function C0({
|
|
|
14273
14270
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
14274
14271
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.min`, control: e, render: ({
|
|
14275
14272
|
field: a
|
|
14276
|
-
}) => /* @__PURE__ */ r(
|
|
14273
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_min"), ...a }) }),
|
|
14277
14274
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.max`, control: e, render: ({
|
|
14278
14275
|
field: a
|
|
14279
|
-
}) => /* @__PURE__ */ r(
|
|
14276
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_max"), ...a }) })
|
|
14280
14277
|
] })
|
|
14281
14278
|
] }),
|
|
14282
14279
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.x_axis.behavior"), labelPosition: "center" }),
|
|
@@ -14311,7 +14308,7 @@ function z0({
|
|
|
14311
14308
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14312
14309
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
14313
14310
|
field: a
|
|
14314
|
-
}) => /* @__PURE__ */ r(
|
|
14311
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
14315
14312
|
flex: 1
|
|
14316
14313
|
}, ...a }) }),
|
|
14317
14314
|
/* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -15285,7 +15282,7 @@ function d1({
|
|
|
15285
15282
|
return t(["deviation"]), /* @__PURE__ */ u(I, { children: [
|
|
15286
15283
|
/* @__PURE__ */ r(v, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "deviation.name", control: e, render: ({
|
|
15287
15284
|
field: n
|
|
15288
|
-
}) => /* @__PURE__ */ r(
|
|
15285
|
+
}) => /* @__PURE__ */ r(V, { label: "指标名称", sx: {
|
|
15289
15286
|
flex: 1
|
|
15290
15287
|
}, ...n }) }) }),
|
|
15291
15288
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
@@ -15312,7 +15309,7 @@ const u1 = ({
|
|
|
15312
15309
|
return /* @__PURE__ */ r(I, { children: /* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
15313
15310
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.name`, control: e, render: ({
|
|
15314
15311
|
field: a
|
|
15315
|
-
}) => /* @__PURE__ */ r(
|
|
15312
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
15316
15313
|
flex: 1
|
|
15317
15314
|
}, ...a }) }),
|
|
15318
15315
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -15364,7 +15361,7 @@ function p1({
|
|
|
15364
15361
|
}, ...n }) }),
|
|
15365
15362
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
15366
15363
|
field: n
|
|
15367
|
-
}) => /* @__PURE__ */ r(
|
|
15364
|
+
}) => /* @__PURE__ */ r(V, { label: "X轴名称", sx: {
|
|
15368
15365
|
flex: 1
|
|
15369
15366
|
}, ...n }) })
|
|
15370
15367
|
] }),
|
|
@@ -15576,7 +15573,7 @@ function w1({
|
|
|
15576
15573
|
}, ...i }) }),
|
|
15577
15574
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
15578
15575
|
field: i
|
|
15579
|
-
}) => /* @__PURE__ */ r(
|
|
15576
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
15580
15577
|
flex: 1
|
|
15581
15578
|
}, ...i }) })
|
|
15582
15579
|
] }),
|
|
@@ -15591,7 +15588,7 @@ function w1({
|
|
|
15591
15588
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
15592
15589
|
/* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
|
|
15593
15590
|
field: i
|
|
15594
|
-
}) => /* @__PURE__ */ r(
|
|
15591
|
+
}) => /* @__PURE__ */ r(ze, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
|
|
15595
15592
|
flexGrow: 1
|
|
15596
15593
|
} }) }),
|
|
15597
15594
|
/* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
|
|
@@ -15611,7 +15608,7 @@ const S1 = ({
|
|
|
15611
15608
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
15612
15609
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
15613
15610
|
field: a
|
|
15614
|
-
}) => /* @__PURE__ */ r(
|
|
15611
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
15615
15612
|
flex: 1
|
|
15616
15613
|
}, ...a }) }),
|
|
15617
15614
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -15676,7 +15673,7 @@ function z1({
|
|
|
15676
15673
|
}, ...a }) }),
|
|
15677
15674
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
15678
15675
|
field: a
|
|
15679
|
-
}) => /* @__PURE__ */ r(
|
|
15676
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
15680
15677
|
flex: 1
|
|
15681
15678
|
}, ...a }) })
|
|
15682
15679
|
] }),
|
|
@@ -15714,7 +15711,7 @@ function T1({
|
|
|
15714
15711
|
}, ...a }) }),
|
|
15715
15712
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
15716
15713
|
field: a
|
|
15717
|
-
}) => /* @__PURE__ */ r(
|
|
15714
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
15718
15715
|
flex: 1
|
|
15719
15716
|
}, ...a }) })
|
|
15720
15717
|
] }),
|
|
@@ -15934,7 +15931,7 @@ function A1({
|
|
|
15934
15931
|
unit: e.heat_block.unit.show_in_tooltip ? e.heat_block.unit.text : ""
|
|
15935
15932
|
}, _ = [p, g, b], x = a[`${c}---${d}`];
|
|
15936
15933
|
return x && e.tooltip.metrics.forEach((T) => {
|
|
15937
|
-
const M = H(T.data_key),
|
|
15934
|
+
const M = H(T.data_key), $ = o[T.name];
|
|
15938
15935
|
_.push({
|
|
15939
15936
|
label: T.name,
|
|
15940
15937
|
value: P1(C.get(x, M.columnKey, "")),
|
|
@@ -15942,7 +15939,7 @@ function A1({
|
|
|
15942
15939
|
label: "",
|
|
15943
15940
|
value: ""
|
|
15944
15941
|
},
|
|
15945
|
-
unit:
|
|
15942
|
+
unit: $
|
|
15946
15943
|
});
|
|
15947
15944
|
}), _;
|
|
15948
15945
|
}
|
|
@@ -16088,15 +16085,15 @@ function F1(e, t, n) {
|
|
|
16088
16085
|
min: s,
|
|
16089
16086
|
max: c
|
|
16090
16087
|
} = l, d = H(e.x_axis.data_key), h = H(e.y_axis.data_key), p = H(e.heat_block.data_key), g = C.uniq(t[d.queryID].map((x) => x[d.columnKey])), b = t[d.queryID].map((x) => {
|
|
16091
|
-
const T = C.get(x, d.columnKey), M = C.get(x, h.columnKey),
|
|
16092
|
-
value: [T, M,
|
|
16088
|
+
const T = C.get(x, d.columnKey), M = C.get(x, h.columnKey), $ = C.get(x, p.columnKey), q = {
|
|
16089
|
+
value: [T, M, $]
|
|
16093
16090
|
}, {
|
|
16094
16091
|
followVisualMap: W,
|
|
16095
16092
|
color: G
|
|
16096
|
-
} = fi(
|
|
16097
|
-
return W || (
|
|
16093
|
+
} = fi($, s, c, e.visualMap);
|
|
16094
|
+
return W || (q.visualMap = !1, q.itemStyle = {
|
|
16098
16095
|
color: G
|
|
16099
|
-
}),
|
|
16096
|
+
}), q;
|
|
16100
16097
|
});
|
|
16101
16098
|
return {
|
|
16102
16099
|
xAxis: O1(e, g, i.x_axis),
|
|
@@ -16123,8 +16120,8 @@ function N1({
|
|
|
16123
16120
|
const [x, T] = _.value, M = C.get(s, `${x}---${T}`, {
|
|
16124
16121
|
error: "rowData is not found"
|
|
16125
16122
|
});
|
|
16126
|
-
c.forEach((
|
|
16127
|
-
i.runInteraction(
|
|
16123
|
+
c.forEach(($) => {
|
|
16124
|
+
i.runInteraction($.id, {
|
|
16128
16125
|
..._,
|
|
16129
16126
|
rowData: M
|
|
16130
16127
|
});
|
|
@@ -16336,7 +16333,7 @@ function aS({
|
|
|
16336
16333
|
/* @__PURE__ */ r(k, { size: "sm", className: Jn.name, children: o.name }),
|
|
16337
16334
|
o.min > 0 ? /* @__PURE__ */ r(k, { size: "xs", className: Jn.min, children: o.min }) : null,
|
|
16338
16335
|
o.pointer ? /* @__PURE__ */ r(Jl, { className: `${Jn.pointer} ${o.pointer_equal ? Jn.pointer_equal : ""}`, stroke: 1.5 }) : null
|
|
16339
|
-
] }, o.name)) });
|
|
16336
|
+
] }, `${o.name}-${o.color}-${o.min}`)) });
|
|
16340
16337
|
}
|
|
16341
16338
|
function iS({
|
|
16342
16339
|
context: e
|
|
@@ -16395,10 +16392,10 @@ const oS = {
|
|
|
16395
16392
|
t: o
|
|
16396
16393
|
} = y(), [l, {
|
|
16397
16394
|
setTrue: s
|
|
16398
|
-
}] =
|
|
16395
|
+
}] = De(!1), [c, {
|
|
16399
16396
|
setTrue: d,
|
|
16400
16397
|
setFalse: h
|
|
16401
|
-
}] =
|
|
16398
|
+
}] = De(!1), {
|
|
16402
16399
|
ref: p,
|
|
16403
16400
|
handleRef: g
|
|
16404
16401
|
} = Kr({
|
|
@@ -16429,7 +16426,7 @@ const oS = {
|
|
|
16429
16426
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", style: {
|
|
16430
16427
|
flex: 1
|
|
16431
16428
|
}, children: [
|
|
16432
|
-
/* @__PURE__ */ r(
|
|
16429
|
+
/* @__PURE__ */ r(V, { size: "xs", value: e.name, placeholder: o("viz.pie_chart.color.map.name"), onChange: (T) => b(T.currentTarget.value), onClick: s, error: l && !e.name }),
|
|
16433
16430
|
/* @__PURE__ */ r(rn, { styles: {
|
|
16434
16431
|
root: {
|
|
16435
16432
|
flexGrow: 1
|
|
@@ -16725,11 +16722,11 @@ const Qo = ({
|
|
|
16725
16722
|
value: "filter-option-label"
|
|
16726
16723
|
}], [i.language]);
|
|
16727
16724
|
return /* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
16728
|
-
/* @__PURE__ */ r(
|
|
16729
|
-
e.type === "text" && /* @__PURE__ */ r(
|
|
16725
|
+
/* @__PURE__ */ r(O, { label: a("viz.merico_stats.metric.postfix_type.label"), data: d, value: e.type, onChange: s }),
|
|
16726
|
+
e.type === "text" && /* @__PURE__ */ r(V, { label: a("viz.merico_stats.metric.postfix_content"), value: e.value, onChange: (h) => {
|
|
16730
16727
|
c(h.currentTarget.value);
|
|
16731
16728
|
} }),
|
|
16732
|
-
e.type === "filter-option-label" && /* @__PURE__ */ r(
|
|
16729
|
+
e.type === "filter-option-label" && /* @__PURE__ */ r(O, { label: a("viz.merico_stats.metric.postfix_filter"), value: e.value, onChange: c, data: l })
|
|
16733
16730
|
] });
|
|
16734
16731
|
}));
|
|
16735
16732
|
function xS({
|
|
@@ -16748,24 +16745,24 @@ function xS({
|
|
|
16748
16745
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
16749
16746
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.names.value`, control: e, render: ({
|
|
16750
16747
|
field: o
|
|
16751
|
-
}) => /* @__PURE__ */ r(
|
|
16748
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.metric_name"), required: !0, sx: {
|
|
16752
16749
|
flex: 1
|
|
16753
16750
|
}, ...o }) }),
|
|
16754
16751
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
|
|
16755
16752
|
field: o
|
|
16756
|
-
}) => /* @__PURE__ */ r(
|
|
16753
|
+
}) => /* @__PURE__ */ r(O, { label: i("viz.merico_stats.metric.metric_data_field"), required: !0, data: a, sx: {
|
|
16757
16754
|
flex: 1
|
|
16758
16755
|
}, ...o }) })
|
|
16759
16756
|
] }),
|
|
16760
16757
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
16761
16758
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.names.basis`, control: e, render: ({
|
|
16762
16759
|
field: o
|
|
16763
|
-
}) => /* @__PURE__ */ r(
|
|
16760
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.basis_name"), required: !0, sx: {
|
|
16764
16761
|
flex: 1
|
|
16765
16762
|
}, ...o }) }),
|
|
16766
16763
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
|
|
16767
16764
|
field: o
|
|
16768
|
-
}) => /* @__PURE__ */ r(
|
|
16765
|
+
}) => /* @__PURE__ */ r(O, { label: i("viz.merico_stats.metric.basis_data_field"), required: !0, data: a, sx: {
|
|
16769
16766
|
flex: 1
|
|
16770
16767
|
}, ...o }) })
|
|
16771
16768
|
] }),
|
|
@@ -17375,8 +17372,8 @@ function YS({
|
|
|
17375
17372
|
const M = C.get(p, T.name, {
|
|
17376
17373
|
error: "rowData is not found"
|
|
17377
17374
|
});
|
|
17378
|
-
h.forEach((
|
|
17379
|
-
d.runInteraction(
|
|
17375
|
+
h.forEach(($) => {
|
|
17376
|
+
d.runInteraction($.id, {
|
|
17380
17377
|
...T,
|
|
17381
17378
|
rowData: M
|
|
17382
17379
|
});
|
|
@@ -17402,7 +17399,7 @@ function XS({
|
|
|
17402
17399
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
17403
17400
|
/* @__PURE__ */ r(f, { name: "bar.name", control: e, render: ({
|
|
17404
17401
|
field: a
|
|
17405
|
-
}) => /* @__PURE__ */ r(
|
|
17402
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
17406
17403
|
flex: 1
|
|
17407
17404
|
}, ...a }) }),
|
|
17408
17405
|
/* @__PURE__ */ r(f, { name: "bar.nameAlignment", control: e, render: ({
|
|
@@ -17411,7 +17408,7 @@ function XS({
|
|
|
17411
17408
|
flex: 1
|
|
17412
17409
|
}, ...a }) })
|
|
17413
17410
|
] }),
|
|
17414
|
-
/* @__PURE__ */ r(
|
|
17411
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "bar.color", control: e, render: ({
|
|
17415
17412
|
field: a
|
|
17416
17413
|
}) => /* @__PURE__ */ r(Ze, { label: n("chart.color.label"), ...a }) }) }),
|
|
17417
17414
|
/* @__PURE__ */ r(f, { name: "bar.unit", control: e, render: ({
|
|
@@ -17436,7 +17433,7 @@ function ZS({
|
|
|
17436
17433
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
17437
17434
|
/* @__PURE__ */ r(f, { name: "line.name", control: e, render: ({
|
|
17438
17435
|
field: a
|
|
17439
|
-
}) => /* @__PURE__ */ r(
|
|
17436
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
17440
17437
|
flex: 1
|
|
17441
17438
|
}, ...a }) }),
|
|
17442
17439
|
/* @__PURE__ */ r(f, { name: "line.nameAlignment", control: e, render: ({
|
|
@@ -17445,7 +17442,7 @@ function ZS({
|
|
|
17445
17442
|
flex: 1
|
|
17446
17443
|
}, ...a }) })
|
|
17447
17444
|
] }),
|
|
17448
|
-
/* @__PURE__ */ r(
|
|
17445
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "line.color", control: e, render: ({
|
|
17449
17446
|
field: a
|
|
17450
17447
|
}) => /* @__PURE__ */ r(Ze, { label: n("chart.color.label"), ...a }) }) })
|
|
17451
17448
|
] });
|
|
@@ -17491,7 +17488,7 @@ function tC({
|
|
|
17491
17488
|
t: n
|
|
17492
17489
|
} = y();
|
|
17493
17490
|
return t(["markLine"]), /* @__PURE__ */ u(I, { children: [
|
|
17494
|
-
/* @__PURE__ */ r(
|
|
17491
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "markLine.color", control: e, render: ({
|
|
17495
17492
|
field: a
|
|
17496
17493
|
}) => /* @__PURE__ */ r(Ze, { label: n("chart.color.label"), ...a }) }) }),
|
|
17497
17494
|
/* @__PURE__ */ u(I, { gap: 4, children: [
|
|
@@ -17520,18 +17517,18 @@ function nC({
|
|
|
17520
17517
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
17521
17518
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
17522
17519
|
field: s
|
|
17523
|
-
}) => /* @__PURE__ */ r(
|
|
17520
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
17524
17521
|
flex: 1
|
|
17525
17522
|
}, ...s }) }),
|
|
17526
17523
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
17527
17524
|
field: s
|
|
17528
|
-
}) => /* @__PURE__ */ r(
|
|
17525
|
+
}) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
|
|
17529
17526
|
flex: 1
|
|
17530
17527
|
}, ...s }) })
|
|
17531
17528
|
] }),
|
|
17532
17529
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
17533
17530
|
field: s
|
|
17534
|
-
}) => /* @__PURE__ */ r(
|
|
17531
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
17535
17532
|
flex: 1
|
|
17536
17533
|
}, ...s }) }),
|
|
17537
17534
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -17546,7 +17543,7 @@ function nC({
|
|
|
17546
17543
|
onChange: c,
|
|
17547
17544
|
...d
|
|
17548
17545
|
}
|
|
17549
|
-
}) => /* @__PURE__ */ r(
|
|
17546
|
+
}) => /* @__PURE__ */ r(O, { label: o("chart.y_axis.label"), data: i, disabled: i.length === 0, ...d, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (h) => {
|
|
17550
17547
|
if (!h) {
|
|
17551
17548
|
c(0);
|
|
17552
17549
|
return;
|
|
@@ -17569,7 +17566,7 @@ function nC({
|
|
|
17569
17566
|
flexGrow: 1
|
|
17570
17567
|
}, ...s }) })
|
|
17571
17568
|
] }),
|
|
17572
|
-
/* @__PURE__ */ r(
|
|
17569
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
17573
17570
|
field: s
|
|
17574
17571
|
}) => /* @__PURE__ */ r(Ze, { label: o("chart.color.label"), ...s }) }) })
|
|
17575
17572
|
] });
|
|
@@ -17619,7 +17616,7 @@ function aC({
|
|
|
17619
17616
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
17620
17617
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
17621
17618
|
field: a
|
|
17622
|
-
}) => /* @__PURE__ */ r(
|
|
17619
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
17623
17620
|
flex: 1
|
|
17624
17621
|
}, ...a }) }),
|
|
17625
17622
|
/* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -18238,10 +18235,10 @@ const VC = te(({
|
|
|
18238
18235
|
t: o
|
|
18239
18236
|
} = y(), [l, {
|
|
18240
18237
|
setTrue: s
|
|
18241
|
-
}] =
|
|
18238
|
+
}] = De(!1), [c, {
|
|
18242
18239
|
setTrue: d,
|
|
18243
18240
|
setFalse: h
|
|
18244
|
-
}] =
|
|
18241
|
+
}] = De(!1), {
|
|
18245
18242
|
ref: p,
|
|
18246
18243
|
handleRef: g
|
|
18247
18244
|
} = Kr({
|
|
@@ -18449,7 +18446,7 @@ function FC({
|
|
|
18449
18446
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
18450
18447
|
/* @__PURE__ */ r(f, { control: o, name: "others_sector.label", render: ({
|
|
18451
18448
|
field: b
|
|
18452
|
-
}) => /* @__PURE__ */ r(
|
|
18449
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", label: a("viz.pie_chart.others_sector.label"), ...b, value: b.value ?? "" }) }),
|
|
18453
18450
|
/* @__PURE__ */ r(f, { control: o, name: "others_sector.threshold", render: ({
|
|
18454
18451
|
field: b
|
|
18455
18452
|
}) => /* @__PURE__ */ r(re, { size: "xs", label: a("viz.pie_chart.others_sector.threshold"), suffix: "%", ...b, value: b.value ?? "" }) })
|
|
@@ -18919,10 +18916,10 @@ function dk({
|
|
|
18919
18916
|
const {
|
|
18920
18917
|
queryID: _,
|
|
18921
18918
|
columnKey: x
|
|
18922
|
-
} = H(e.series_name_key), T = C.keyBy(t[_], x), M = e.additional_series.reduce((
|
|
18923
|
-
const W = H(
|
|
18919
|
+
} = H(e.series_name_key), T = C.keyBy(t[_], x), M = e.additional_series.reduce(($, q) => {
|
|
18920
|
+
const W = H(q.name_key), G = C.keyBy(t[W.queryID], W.columnKey);
|
|
18924
18921
|
return {
|
|
18925
|
-
|
|
18922
|
+
...$,
|
|
18926
18923
|
...G
|
|
18927
18924
|
};
|
|
18928
18925
|
}, T);
|
|
@@ -19030,7 +19027,7 @@ function mk({
|
|
|
19030
19027
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", align: "top", children: [
|
|
19031
19028
|
/* @__PURE__ */ r(f, { name: `dimensions.${t}.name`, control: e, render: ({
|
|
19032
19029
|
field: a
|
|
19033
|
-
}) => /* @__PURE__ */ r(
|
|
19030
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
19034
19031
|
flex: 1
|
|
19035
19032
|
}, ...a }) }),
|
|
19036
19033
|
/* @__PURE__ */ r(f, { name: `dimensions.${t}.data_key`, control: e, render: ({
|
|
@@ -19048,7 +19045,7 @@ function mk({
|
|
|
19048
19045
|
fieldState: i
|
|
19049
19046
|
}) => {
|
|
19050
19047
|
var o;
|
|
19051
|
-
return /* @__PURE__ */ r(
|
|
19048
|
+
return /* @__PURE__ */ r(V, { label: n("common.max"), required: !0, sx: {
|
|
19052
19049
|
flex: 1
|
|
19053
19050
|
}, ...a, error: (o = i.error) == null ? void 0 : o.message });
|
|
19054
19051
|
} })
|
|
@@ -19622,7 +19619,7 @@ const va = D(te((e, t) => {
|
|
|
19622
19619
|
if (d.length === 0) {
|
|
19623
19620
|
const h = c.explainDataKey(n);
|
|
19624
19621
|
return /* @__PURE__ */ u(pe, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
|
|
19625
|
-
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(
|
|
19622
|
+
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(V, { label: s.label, required: s.required, defaultValue: h.columnKey, readOnly: !0, disabled: !0 }) }) }),
|
|
19626
19623
|
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ u(v, { justify: "flex-start", gap: 0, children: [
|
|
19627
19624
|
/* @__PURE__ */ r(k, { size: "xs", c: h.queryName ? "black" : "red", ff: "monospace", children: h.queryName ?? h.queryID }),
|
|
19628
19625
|
/* @__PURE__ */ r(k, { size: "xs", c: "black", ff: "monospace", children: "." }),
|
|
@@ -19641,7 +19638,7 @@ const va = D(te((e, t) => {
|
|
|
19641
19638
|
} = y();
|
|
19642
19639
|
return /* @__PURE__ */ u(pe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
19643
19640
|
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "compact-xs", leftSection: /* @__PURE__ */ r(es, { size: 14 }), children: a("viz.regression_chart.customize") }) }),
|
|
19644
|
-
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ u(
|
|
19641
|
+
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ u(ke, { children: [
|
|
19645
19642
|
/* @__PURE__ */ r(va, { variant: "unstyled", size: "xs", onChange: e.set, value: e.value, leftSection: /* @__PURE__ */ r(k, { size: "xs", children: a("chart.x_axis.label") }), rightSectionWidth: 14, w: "auto", miw: "unset" }),
|
|
19646
19643
|
/* @__PURE__ */ r(va, { variant: "unstyled", size: "xs", onChange: t.set, value: t.value, leftSection: /* @__PURE__ */ r(k, { size: "xs", children: a("chart.y_axis.label") }), rightSectionWidth: 14, w: "auto", miw: "unset" }),
|
|
19647
19644
|
/* @__PURE__ */ r(va, { variant: "unstyled", size: "xs", onChange: n.set, value: n.value, leftSection: /* @__PURE__ */ r(k, { size: "xs", children: a("viz.regression_chart.split_by") }), rightSectionWidth: 14, w: "auto", miw: "unset", clearable: !0 })
|
|
@@ -19833,7 +19830,7 @@ function Wk({
|
|
|
19833
19830
|
} = y();
|
|
19834
19831
|
return /* @__PURE__ */ u(pe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
19835
19832
|
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "compact-xs", leftSection: /* @__PURE__ */ r(Ae, { size: 14 }), children: o("viz.regression_chart.regression_info") }) }),
|
|
19836
|
-
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ r(
|
|
19833
|
+
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(Gk, { conf: e, queryData: t, x: n, y: a, g: i }) }) })
|
|
19837
19834
|
] });
|
|
19838
19835
|
}
|
|
19839
19836
|
function Uk({
|
|
@@ -19963,7 +19960,7 @@ function e2({
|
|
|
19963
19960
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
19964
19961
|
/* @__PURE__ */ r(f, { name: "regression.transform.config.method", control: e, render: ({
|
|
19965
19962
|
field: s
|
|
19966
|
-
}) => /* @__PURE__ */ r(
|
|
19963
|
+
}) => /* @__PURE__ */ r(O, { label: n("chart.regression_line.method.label"), data: l, sx: {
|
|
19967
19964
|
flex: 1
|
|
19968
19965
|
}, ...s }) }),
|
|
19969
19966
|
i === "polynomial" && /* @__PURE__ */ r(f, { name: "regression.transform.config.order", control: e, render: ({
|
|
@@ -19972,7 +19969,7 @@ function e2({
|
|
|
19972
19969
|
flex: 1
|
|
19973
19970
|
}, ...s }) })
|
|
19974
19971
|
] }),
|
|
19975
|
-
!o && /* @__PURE__ */ r(
|
|
19972
|
+
!o && /* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "regression.plot.color", control: e, render: ({
|
|
19976
19973
|
field: s
|
|
19977
19974
|
}) => /* @__PURE__ */ r(Ze, { label: n("chart.color.label"), ...s }) }) })
|
|
19978
19975
|
] });
|
|
@@ -20820,17 +20817,17 @@ function O2(e, t) {
|
|
|
20820
20817
|
const g = A2(p, e), b = wt(e.scatter.label_overflow.tooltip), _ = p.map(
|
|
20821
20818
|
// @ts-expect-error type of value
|
|
20822
20819
|
({
|
|
20823
|
-
value:
|
|
20820
|
+
value: q
|
|
20824
20821
|
}) => `
|
|
20825
20822
|
<th style="text-align: right; padding-right: 1em">
|
|
20826
|
-
<div style="${b}">${xr(
|
|
20823
|
+
<div style="${b}">${xr(q, n.name_data_key)}</div>
|
|
20827
20824
|
</th>
|
|
20828
20825
|
`
|
|
20829
20826
|
);
|
|
20830
20827
|
_.unshift("<th></th>");
|
|
20831
20828
|
const x = wt(e.x_axis.axisLabel.overflow.in_tooltip), T = [`<tr>
|
|
20832
20829
|
<th style="text-align: right; padding: 0 1em;">${e.x_axis.name}</th>
|
|
20833
|
-
${p.map((
|
|
20830
|
+
${p.map((q) => `
|
|
20834
20831
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20835
20832
|
<div style="${x}">
|
|
20836
20833
|
${g}
|
|
@@ -20840,21 +20837,21 @@ function O2(e, t) {
|
|
|
20840
20837
|
</tr>`, `<tr>
|
|
20841
20838
|
<th style="text-align: right; padding: 0 1em;">${e.y_axes[0].name}</th>
|
|
20842
20839
|
${p.map(({
|
|
20843
|
-
value:
|
|
20840
|
+
value: q
|
|
20844
20841
|
}) => `
|
|
20845
20842
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20846
|
-
${h(xr(
|
|
20843
|
+
${h(xr(q, n.y_data_key))}
|
|
20847
20844
|
<strong>${s ?? ""}</strong>
|
|
20848
20845
|
</td>`).join("")}
|
|
20849
|
-
</tr>`], M = e.tooltip.metrics.map((
|
|
20846
|
+
</tr>`], M = e.tooltip.metrics.map((q) => `
|
|
20850
20847
|
<tr>
|
|
20851
|
-
<th style="text-align: right; padding: 0 1em;">${
|
|
20848
|
+
<th style="text-align: right; padding: 0 1em;">${q.name}</th>
|
|
20852
20849
|
${p.map(({
|
|
20853
20850
|
value: W
|
|
20854
20851
|
}) => `
|
|
20855
20852
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20856
|
-
${E2(xr(W,
|
|
20857
|
-
<strong>${c[
|
|
20853
|
+
${E2(xr(W, q.data_key))}
|
|
20854
|
+
<strong>${c[q.name] ?? ""}</strong>
|
|
20858
20855
|
</td>`).join("")}
|
|
20859
20856
|
</tr>`);
|
|
20860
20857
|
return T.push(...M), `
|
|
@@ -20989,8 +20986,8 @@ function j2({
|
|
|
20989
20986
|
});
|
|
20990
20987
|
});
|
|
20991
20988
|
}, [s, c, i]), h = E.useRef(null), p = ve(), g = E.useCallback(() => {
|
|
20992
|
-
var
|
|
20993
|
-
const x = (
|
|
20989
|
+
var $;
|
|
20990
|
+
const x = ($ = h.current) == null ? void 0 : $.getEchartsInstance();
|
|
20994
20991
|
if (!x)
|
|
20995
20992
|
return;
|
|
20996
20993
|
const T = un(e.stats.top, o, p.payloadForViz, t), M = un(e.stats.bottom, o, p.payloadForViz, t);
|
|
@@ -21046,30 +21043,30 @@ const H2 = te(({
|
|
|
21046
21043
|
return /* @__PURE__ */ u(I, { children: [
|
|
21047
21044
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.content.label"), labelPosition: "right" }),
|
|
21048
21045
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21049
|
-
/* @__PURE__ */ r(
|
|
21046
|
+
/* @__PURE__ */ r(V, { label: l("chart.reference_area.content.content_text"), value: e.content.text, onChange: (d) => c("content.text", d.currentTarget.value) }),
|
|
21050
21047
|
/* @__PURE__ */ r(Xn, { label: l("chart.reference_area.content.text_position"), value: e.label.position, onChange: (d) => c("label.position", d) })
|
|
21051
21048
|
] }),
|
|
21052
21049
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.endpoint.labels"), labelPosition: "right" }),
|
|
21053
21050
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21054
|
-
n && /* @__PURE__ */ r(
|
|
21055
|
-
a && /* @__PURE__ */ r(
|
|
21051
|
+
n && /* @__PURE__ */ r(O, { label: l("chart.x_axis.label"), data: n, value: e.xAxisIndex, onChange: (d) => c("xAxisIndex", d) }),
|
|
21052
|
+
a && /* @__PURE__ */ r(O, { label: l("chart.y_axis.label"), data: a, value: e.yAxisIndex, onChange: (d) => c("xAxisIndex", d) })
|
|
21056
21053
|
] }),
|
|
21057
21054
|
/* @__PURE__ */ u(I, { gap: 0, children: [
|
|
21058
21055
|
/* @__PURE__ */ r(k, { size: "14px", c: "#212529", fw: 500, children: l("chart.reference_area.endpoint.left_bottom_point") }),
|
|
21059
21056
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21060
|
-
/* @__PURE__ */ r(
|
|
21061
|
-
/* @__PURE__ */ r(
|
|
21057
|
+
/* @__PURE__ */ r(O, { leftSection: /* @__PURE__ */ r(k, { size: "sm", children: "x" }), data: i, value: e.leftBottomPoint.x_data_key, onChange: (d) => c("leftBottomPoint.x_data_key", d ?? ""), clearable: !0 }),
|
|
21058
|
+
/* @__PURE__ */ r(O, { leftSection: /* @__PURE__ */ r(k, { size: "sm", children: "y" }), data: i, value: e.leftBottomPoint.y_data_key, onChange: (d) => c("leftBottomPoint.y_data_key", d ?? ""), clearable: !0 })
|
|
21062
21059
|
] })
|
|
21063
21060
|
] }),
|
|
21064
21061
|
/* @__PURE__ */ u(I, { gap: 0, children: [
|
|
21065
21062
|
/* @__PURE__ */ r(k, { size: "14px", c: "#212529", fw: 500, children: l("chart.reference_area.endpoint.right_top_point") }),
|
|
21066
21063
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21067
|
-
/* @__PURE__ */ r(
|
|
21068
|
-
/* @__PURE__ */ r(
|
|
21064
|
+
/* @__PURE__ */ r(O, { leftSection: /* @__PURE__ */ r(k, { size: "sm", children: "x" }), data: i, value: e.rightTopPoint.x_data_key, onChange: (d) => c("rightTopPoint.x_data_key", d ?? ""), clearable: !0 }),
|
|
21065
|
+
/* @__PURE__ */ r(O, { leftSection: /* @__PURE__ */ r(k, { size: "sm", children: "y" }), data: i, value: e.rightTopPoint.y_data_key, onChange: (d) => c("rightTopPoint.y_data_key", d ?? ""), clearable: !0 })
|
|
21069
21066
|
] })
|
|
21070
21067
|
] }),
|
|
21071
21068
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.style.label"), labelPosition: "right" }),
|
|
21072
|
-
/* @__PURE__ */ u(
|
|
21069
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
21073
21070
|
/* @__PURE__ */ r(Ze, { label: l("chart.color.background_color"), value: e.itemStyle.color, onChange: (d) => c("itemStyle.color", d) }),
|
|
21074
21071
|
/* @__PURE__ */ r(Ze, { label: l("chart.color.text_color"), value: e.label.color, onChange: (d) => c("label.color", d) })
|
|
21075
21072
|
] })
|
|
@@ -21140,18 +21137,18 @@ function U2({
|
|
|
21140
21137
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21141
21138
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
21142
21139
|
field: s
|
|
21143
|
-
}) => /* @__PURE__ */ r(
|
|
21140
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
21144
21141
|
flex: 1
|
|
21145
21142
|
}, ...s }) }),
|
|
21146
21143
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
21147
21144
|
field: s
|
|
21148
|
-
}) => /* @__PURE__ */ r(
|
|
21145
|
+
}) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
|
|
21149
21146
|
flex: 1
|
|
21150
21147
|
}, ...s }) })
|
|
21151
21148
|
] }),
|
|
21152
21149
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
21153
21150
|
field: s
|
|
21154
|
-
}) => /* @__PURE__ */ r(
|
|
21151
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
21155
21152
|
flex: 1
|
|
21156
21153
|
}, ...s }) }),
|
|
21157
21154
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -21169,7 +21166,7 @@ function U2({
|
|
|
21169
21166
|
onChange: c,
|
|
21170
21167
|
...d
|
|
21171
21168
|
}
|
|
21172
|
-
}) => /* @__PURE__ */ r(
|
|
21169
|
+
}) => /* @__PURE__ */ r(O, { label: "Y Axis", data: i, disabled: i.length === 0, ...d, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (h) => {
|
|
21173
21170
|
if (!h) {
|
|
21174
21171
|
c(0);
|
|
21175
21172
|
return;
|
|
@@ -21192,7 +21189,7 @@ function U2({
|
|
|
21192
21189
|
flexGrow: 1
|
|
21193
21190
|
}, ...s }) })
|
|
21194
21191
|
] }),
|
|
21195
|
-
/* @__PURE__ */ r(
|
|
21192
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
21196
21193
|
field: s
|
|
21197
21194
|
}) => /* @__PURE__ */ r(Ze, { label: o("chart.color.label"), ...s }) }) })
|
|
21198
21195
|
] });
|
|
@@ -21251,7 +21248,7 @@ const Y2 = ({
|
|
|
21251
21248
|
} = y(), [a, {
|
|
21252
21249
|
setTrue: i,
|
|
21253
21250
|
setFalse: o
|
|
21254
|
-
}] =
|
|
21251
|
+
}] = De(), [l, s] = Q(e), c = () => {
|
|
21255
21252
|
o();
|
|
21256
21253
|
const {
|
|
21257
21254
|
type: g,
|
|
@@ -21323,8 +21320,8 @@ const Y2 = ({
|
|
|
21323
21320
|
...mr[c]
|
|
21324
21321
|
});
|
|
21325
21322
|
};
|
|
21326
|
-
return /* @__PURE__ */ u(
|
|
21327
|
-
/* @__PURE__ */ r(
|
|
21323
|
+
return /* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
21324
|
+
/* @__PURE__ */ r(O, { ref: a, label: e, data: l, value: t.type, onChange: s, sx: {
|
|
21328
21325
|
flexGrow: 1
|
|
21329
21326
|
} }),
|
|
21330
21327
|
/* @__PURE__ */ r(J2, { value: t, onChange: n }),
|
|
@@ -21431,7 +21428,7 @@ const rz = D(({
|
|
|
21431
21428
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21432
21429
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
21433
21430
|
field: a
|
|
21434
|
-
}) => /* @__PURE__ */ r(
|
|
21431
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
21435
21432
|
flex: 1
|
|
21436
21433
|
}, ...a }) }),
|
|
21437
21434
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -21492,7 +21489,7 @@ function oz({
|
|
|
21492
21489
|
return /* @__PURE__ */ u(I, { children: [
|
|
21493
21490
|
/* @__PURE__ */ r(f, { name: "tooltip.trigger", control: e, render: ({
|
|
21494
21491
|
field: o
|
|
21495
|
-
}) => /* @__PURE__ */ r(
|
|
21492
|
+
}) => /* @__PURE__ */ r(O, { label: n("chart.tooltip.trigger.label"), data: i, sx: {
|
|
21496
21493
|
flexGrow: 1
|
|
21497
21494
|
}, ...o }) }),
|
|
21498
21495
|
/* @__PURE__ */ r(A, { variant: "dashed" }),
|
|
@@ -21515,7 +21512,7 @@ function lz({
|
|
|
21515
21512
|
}, ...a }) }),
|
|
21516
21513
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
21517
21514
|
field: a
|
|
21518
|
-
}) => /* @__PURE__ */ r(
|
|
21515
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
21519
21516
|
flex: 1
|
|
21520
21517
|
}, ...a }) })
|
|
21521
21518
|
] }),
|
|
@@ -21552,7 +21549,7 @@ function sz({
|
|
|
21552
21549
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21553
21550
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
21554
21551
|
field: a
|
|
21555
|
-
}) => /* @__PURE__ */ r(
|
|
21552
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
21556
21553
|
flex: 1
|
|
21557
21554
|
}, ...a }) }),
|
|
21558
21555
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -21578,10 +21575,10 @@ function sz({
|
|
|
21578
21575
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
21579
21576
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
21580
21577
|
field: a
|
|
21581
|
-
}) => /* @__PURE__ */ r(
|
|
21578
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
|
|
21582
21579
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
21583
21580
|
field: a
|
|
21584
|
-
}) => /* @__PURE__ */ r(
|
|
21581
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
|
|
21585
21582
|
] })
|
|
21586
21583
|
] })
|
|
21587
21584
|
] });
|
|
@@ -21906,8 +21903,8 @@ const zz = D(({
|
|
|
21906
21903
|
const {
|
|
21907
21904
|
offsetWidth: x,
|
|
21908
21905
|
offsetHeight: T
|
|
21909
|
-
} = _, M = h / x,
|
|
21910
|
-
_.style.transform = `scale(${
|
|
21906
|
+
} = _, M = h / x, $ = p / T, q = Math.min(M, $);
|
|
21907
|
+
_.style.transform = `scale(${q})`;
|
|
21911
21908
|
}, [n.current, h, p, g]), /* @__PURE__ */ r(Ue, { className: "viz-stats", sx: {
|
|
21912
21909
|
width: h,
|
|
21913
21910
|
height: p
|
|
@@ -22244,10 +22241,10 @@ const Hz = ({
|
|
|
22244
22241
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
22245
22242
|
/* @__PURE__ */ r(f, { name: `levels.${t}.r0`, control: e, render: ({
|
|
22246
22243
|
field: o
|
|
22247
|
-
}) => /* @__PURE__ */ r(
|
|
22244
|
+
}) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.inside_radius"), placeholder: "0%", ...o }) }),
|
|
22248
22245
|
/* @__PURE__ */ r(f, { name: `levels.${t}.r`, control: e, render: ({
|
|
22249
22246
|
field: o
|
|
22250
|
-
}) => /* @__PURE__ */ r(
|
|
22247
|
+
}) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.outside_radius"), placeholder: "50%", ...o }) })
|
|
22251
22248
|
] }),
|
|
22252
22249
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.label.label_full"), labelPosition: "center" }),
|
|
22253
22250
|
/* @__PURE__ */ r(f, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
|
|
@@ -22256,7 +22253,7 @@ const Hz = ({
|
|
|
22256
22253
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
22257
22254
|
/* @__PURE__ */ r(f, { name: `levels.${t}.label.rotate`, control: e, render: ({
|
|
22258
22255
|
field: o
|
|
22259
|
-
}) => /* @__PURE__ */ r(
|
|
22256
|
+
}) => /* @__PURE__ */ r(O, { label: n("viz.sunburst_chart.label.rotate.label"), data: i, ...o }) }),
|
|
22260
22257
|
/* @__PURE__ */ r(f, { name: `levels.${t}.label.align`, control: e, render: ({
|
|
22261
22258
|
field: o
|
|
22262
22259
|
}) => /* @__PURE__ */ r(fn, { ...o }) })
|
|
@@ -22977,8 +22974,8 @@ function k3(e) {
|
|
|
22977
22974
|
/* @__PURE__ */ r(Hl, { children: "Use original data columns" }),
|
|
22978
22975
|
" is enabled, you have to address trigger column by its data field"
|
|
22979
22976
|
] }) }),
|
|
22980
|
-
/* @__PURE__ */ r(
|
|
22981
|
-
] }) : /* @__PURE__ */ r(
|
|
22977
|
+
/* @__PURE__ */ r(V, { label: t("viz.table.click_cell.column_data_field"), value: c.toString(), onChange: (h) => d(h.currentTarget.value) })
|
|
22978
|
+
] }) : /* @__PURE__ */ r(O, { clearable: !1, data: o, label: t("viz.table.click_cell.choose_a_column"), value: c.toString(), onChange: d, comboboxProps: {
|
|
22982
22979
|
zIndex: 340
|
|
22983
22980
|
}, maxDropdownHeight: 500 });
|
|
22984
22981
|
}
|
|
@@ -23176,17 +23173,17 @@ function Zo({
|
|
|
23176
23173
|
minSize: typeof Ee.width == "number" ? Ee.width : void 0
|
|
23177
23174
|
});
|
|
23178
23175
|
});
|
|
23179
|
-
}, [g, b]), [x, T] = Q([]), [M,
|
|
23176
|
+
}, [g, b]), [x, T] = Q([]), [M, $] = E.useState({
|
|
23180
23177
|
pageIndex: 0,
|
|
23181
23178
|
pageSize: a.pagination.page_size
|
|
23182
|
-
}),
|
|
23179
|
+
}), q = z(() => {
|
|
23183
23180
|
const {
|
|
23184
23181
|
pageIndex: st,
|
|
23185
23182
|
pageSize: nt
|
|
23186
23183
|
} = M;
|
|
23187
23184
|
return nt === 0 ? e : e.slice(st * nt, (st + 1) * nt);
|
|
23188
23185
|
}, [e, M]), W = Math.ceil(e.length / M.pageSize), G = si({
|
|
23189
|
-
data:
|
|
23186
|
+
data: q,
|
|
23190
23187
|
state: {
|
|
23191
23188
|
sorting: x
|
|
23192
23189
|
},
|
|
@@ -23205,7 +23202,7 @@ function Zo({
|
|
|
23205
23202
|
}, "data-enable-scrollbar": !0, className: p(h.root, {
|
|
23206
23203
|
"table-highlight-on-hover": a.highlightOnHover
|
|
23207
23204
|
}), children: [
|
|
23208
|
-
/* @__PURE__ */ r(L3, { classes: h, pagination: M, totalRows: $e, setPagination:
|
|
23205
|
+
/* @__PURE__ */ r(L3, { classes: h, pagination: M, totalRows: $e, setPagination: $, pageCount: W }),
|
|
23209
23206
|
/* @__PURE__ */ u(w, { sx: {
|
|
23210
23207
|
...m3,
|
|
23211
23208
|
maxHeight: en
|
|
@@ -23374,7 +23371,7 @@ const R3 = {
|
|
|
23374
23371
|
const {
|
|
23375
23372
|
panel: d
|
|
23376
23373
|
} = Me(), h = E.useMemo(() => d.queryOptions(a, o), [a, o]);
|
|
23377
|
-
return h.length === 0 ? /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(
|
|
23374
|
+
return h.length === 0 ? /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: a, readOnly: !0, disabled: !0 }) }) : /* @__PURE__ */ r(O, { ref: c, label: e, description: n, data: h, value: a, onChange: ye(i), required: t, sx: l, maxDropdownHeight: 500, ...s });
|
|
23378
23375
|
})), O3 = [{
|
|
23379
23376
|
from: 0,
|
|
23380
23377
|
to: 0
|
|
@@ -23401,8 +23398,8 @@ const N3 = te((e, t) => {
|
|
|
23401
23398
|
} = y(), {
|
|
23402
23399
|
colorManager: a
|
|
23403
23400
|
} = pt(sn), [i, o] = Q(yd(e.value)), [l, s] = Q(q3(a, e.value)), c = Cr(l), [d, h] = Q(F3(a, e.value)), p = Cr(d), g = (x) => {
|
|
23404
|
-
var T, M,
|
|
23405
|
-
o(x || "none"), x === "static" ? (T = e.onChange) == null || T.call(e, c.current) : x === "none" || !x ? (M = e.onChange) == null || M.call(e, "none") : (
|
|
23401
|
+
var T, M, $;
|
|
23402
|
+
o(x || "none"), x === "static" ? (T = e.onChange) == null || T.call(e, c.current) : x === "none" || !x ? (M = e.onChange) == null || M.call(e, "none") : ($ = e.onChange) == null || $.call(e, p.current);
|
|
23406
23403
|
}, b = (x) => {
|
|
23407
23404
|
var T;
|
|
23408
23405
|
s(x), (T = e.onChange) == null || T.call(e, x);
|
|
@@ -23427,7 +23424,7 @@ const N3 = te((e, t) => {
|
|
|
23427
23424
|
label: i(`viz.table.column.value_type.${s}`),
|
|
23428
23425
|
value: s
|
|
23429
23426
|
})), [o.language]);
|
|
23430
|
-
return /* @__PURE__ */ r(
|
|
23427
|
+
return /* @__PURE__ */ r(O, { ref: a, label: i("viz.table.column.value_type.label"), data: l, value: e, onChange: ye(t), maxDropdownHeight: 500, sx: n });
|
|
23431
23428
|
}), j3 = te(({
|
|
23432
23429
|
value: e,
|
|
23433
23430
|
onChange: t
|
|
@@ -23437,7 +23434,7 @@ const N3 = te((e, t) => {
|
|
|
23437
23434
|
} = y(), [i, {
|
|
23438
23435
|
setTrue: o,
|
|
23439
23436
|
setFalse: l
|
|
23440
|
-
}] =
|
|
23437
|
+
}] = De(), [s, c] = Q(e), d = () => {
|
|
23441
23438
|
l(), t(s);
|
|
23442
23439
|
}, h = () => {
|
|
23443
23440
|
l(), c(e);
|
|
@@ -23482,7 +23479,7 @@ const N3 = te((e, t) => {
|
|
|
23482
23479
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
23483
23480
|
/* @__PURE__ */ r(f, { name: `columns.${t}.label`, control: e, render: ({
|
|
23484
23481
|
field: l
|
|
23485
|
-
}) => /* @__PURE__ */ r(
|
|
23482
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.label.label"), required: !0, id: `col-label-${t}`, sx: {
|
|
23486
23483
|
flex: 1
|
|
23487
23484
|
}, ...l }) }),
|
|
23488
23485
|
/* @__PURE__ */ r(f, { name: `columns.${t}.value_field`, control: e, render: ({
|
|
@@ -23539,7 +23536,7 @@ const N3 = te((e, t) => {
|
|
|
23539
23536
|
return /* @__PURE__ */ u(F, { children: [
|
|
23540
23537
|
/* @__PURE__ */ r(f, { name: "use_raw_columns", control: e, render: ({
|
|
23541
23538
|
field: l
|
|
23542
|
-
}) => /* @__PURE__ */ r(
|
|
23539
|
+
}) => /* @__PURE__ */ r(ze, { mt: 20, mb: 20, label: n("viz.table.column.use_original_data_columns"), checked: l.value, onChange: (s) => l.onChange(s.currentTarget.checked) }) }),
|
|
23543
23540
|
o && /* @__PURE__ */ r(f, { name: "ignored_column_keys", control: e, render: ({
|
|
23544
23541
|
field: l
|
|
23545
23542
|
}) => /* @__PURE__ */ r(Ql, { label: n("viz.table.column.ignore_columns_by_these_key"), placeholder: n("viz.table.column.separate_by_line_break"), autosize: !0, minRows: 2, maxRows: 10, ...l }) }),
|
|
@@ -23579,16 +23576,16 @@ function G3({
|
|
|
23579
23576
|
}
|
|
23580
23577
|
}, children: /* @__PURE__ */ r(f, { name: "fontSize", control: e, render: ({
|
|
23581
23578
|
field: a
|
|
23582
|
-
}) => /* @__PURE__ */ r(
|
|
23579
|
+
}) => /* @__PURE__ */ r(V, { label: n("style.font_size.label"), placeholder: n("style.font_size.placeholder"), required: !0, sx: {
|
|
23583
23580
|
flex: 1
|
|
23584
23581
|
}, ...a }) }) }),
|
|
23585
23582
|
/* @__PURE__ */ u(v, { justify: "space-between", grow: !0, children: [
|
|
23586
23583
|
/* @__PURE__ */ r(f, { name: "striped", control: e, render: ({
|
|
23587
23584
|
field: a
|
|
23588
|
-
}) => /* @__PURE__ */ r(
|
|
23585
|
+
}) => /* @__PURE__ */ r(ze, { label: n("viz.table.style.striped"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) }),
|
|
23589
23586
|
/* @__PURE__ */ r(f, { name: "highlightOnHover", control: e, render: ({
|
|
23590
23587
|
field: a
|
|
23591
|
-
}) => /* @__PURE__ */ r(
|
|
23588
|
+
}) => /* @__PURE__ */ r(ze, { label: n("viz.table.style.highlight_on_hover"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) })
|
|
23592
23589
|
] })
|
|
23593
23590
|
] });
|
|
23594
23591
|
}
|
|
@@ -23770,7 +23767,7 @@ const Z3 = E.forwardRef(X3), J3 = ({
|
|
|
23770
23767
|
} = y(), [i, {
|
|
23771
23768
|
setTrue: o,
|
|
23772
23769
|
setFalse: l
|
|
23773
|
-
}] =
|
|
23770
|
+
}] = De(), [s, c] = Q(e), d = () => {
|
|
23774
23771
|
l(), t(s);
|
|
23775
23772
|
}, h = () => {
|
|
23776
23773
|
l(), c(e);
|
|
@@ -23843,7 +23840,7 @@ function t5({
|
|
|
23843
23840
|
}) => /* @__PURE__ */ r(Di, { ...p }) }),
|
|
23844
23841
|
/* @__PURE__ */ r(f, { name: "font_size", control: l, render: ({
|
|
23845
23842
|
field: p
|
|
23846
|
-
}) => /* @__PURE__ */ r(
|
|
23843
|
+
}) => /* @__PURE__ */ r(V, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
|
|
23847
23844
|
flex: 1
|
|
23848
23845
|
}, ...p }) }),
|
|
23849
23846
|
/* @__PURE__ */ r(v, { justify: "space-between", grow: !0, sx: {
|
|
@@ -24342,18 +24339,18 @@ function N5({
|
|
|
24342
24339
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
24343
24340
|
/* @__PURE__ */ r(f, { name: "expertSystemURL", control: i, render: ({
|
|
24344
24341
|
field: d
|
|
24345
|
-
}) => /* @__PURE__ */ r(
|
|
24342
|
+
}) => /* @__PURE__ */ r(V, { label: "Expert System URL", ...d }) }),
|
|
24346
24343
|
/* @__PURE__ */ r(f, { name: "path", control: i, render: ({
|
|
24347
24344
|
field: d
|
|
24348
|
-
}) => /* @__PURE__ */ r(
|
|
24345
|
+
}) => /* @__PURE__ */ r(V, { label: "Path", required: !0, ...d }) })
|
|
24349
24346
|
] }),
|
|
24350
24347
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
24351
24348
|
/* @__PURE__ */ r(f, { name: "goal", control: i, render: ({
|
|
24352
24349
|
field: d
|
|
24353
|
-
}) => /* @__PURE__ */ r(
|
|
24350
|
+
}) => /* @__PURE__ */ r(V, { label: "Goal", required: !0, ...d }) }),
|
|
24354
24351
|
/* @__PURE__ */ r(f, { name: "question", control: i, render: ({
|
|
24355
24352
|
field: d
|
|
24356
|
-
}) => /* @__PURE__ */ r(
|
|
24353
|
+
}) => /* @__PURE__ */ r(V, { label: "Question", required: !0, ...d }) })
|
|
24357
24354
|
] }),
|
|
24358
24355
|
/* @__PURE__ */ r(A, { variant: "dashed", mt: 16, mb: 8 }),
|
|
24359
24356
|
/* @__PURE__ */ r(L, { type: "submit", variant: "filled", color: "blue", leftSection: /* @__PURE__ */ r(be, { size: 20 }), disabled: !s.isDirty, sx: {
|
|
@@ -26145,7 +26142,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26145
26142
|
} = y(), a = le(), i = ie(), o = E.useMemo(() => i.queries.options, [i.queries.current]), l = o.length === 0, s = (c) => {
|
|
26146
26143
|
a.editor.setPath(["_QUERIES_", c]);
|
|
26147
26144
|
};
|
|
26148
|
-
return /* @__PURE__ */ r(
|
|
26145
|
+
return /* @__PURE__ */ r(O, { label: /* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
26149
26146
|
/* @__PURE__ */ r(k, { fw: 500, size: "sm", children: n("filter.widget.common.use_query_data_as_options") }),
|
|
26150
26147
|
e && /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(Ma, { size: 16 }), variant: "subtle", color: "blue", onClick: () => s(e), children: n("query.open") })
|
|
26151
26148
|
] }), data: o, value: e, onChange: ye(t), allowDeselect: !1, clearable: !0, sx: {
|
|
@@ -26184,7 +26181,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26184
26181
|
}], [n.language]), {
|
|
26185
26182
|
default_value_mode: i
|
|
26186
26183
|
} = e;
|
|
26187
|
-
return /* @__PURE__ */ r(
|
|
26184
|
+
return /* @__PURE__ */ r(O, { leftSection: jd[i] ?? null, label: t("filter.widget.common.default_value_mode.label"), data: a, value: i, onChange: e.setDefaultValueMode, renderOption: CT });
|
|
26188
26185
|
}), kT = D(function({
|
|
26189
26186
|
filter: t
|
|
26190
26187
|
}) {
|
|
@@ -26196,7 +26193,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26196
26193
|
/* @__PURE__ */ r(ee, { checked: a.required, onChange: (i) => a.setRequired(i.currentTarget.checked), label: n("filter.widget.select.required") }),
|
|
26197
26194
|
/* @__PURE__ */ r(yn, { filter: t })
|
|
26198
26195
|
] }),
|
|
26199
|
-
/* @__PURE__ */ r(
|
|
26196
|
+
/* @__PURE__ */ r(V, { label: n("filter.widget.common.min_width"), value: a.min_width, onChange: (i) => a.setMinWidth(i.currentTarget.value), placeholder: "200px" }),
|
|
26200
26197
|
/* @__PURE__ */ r(A, { label: n("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
26201
26198
|
/* @__PURE__ */ r(ee, { checked: a.treeCheckStrictly, onChange: (i) => a.setTreeCheckStrictly(i.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
|
|
26202
26199
|
/* @__PURE__ */ r(pa, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
|
|
@@ -26553,7 +26550,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26553
26550
|
name: "FilterTreeSelectWidget"
|
|
26554
26551
|
}), [b, _] = Q(!1), x = (W) => {
|
|
26555
26552
|
_(W);
|
|
26556
|
-
}, T = b && (i == null ? void 0 : i.length) > 0, M = IT(l, i, o, d), [
|
|
26553
|
+
}, T = b && (i == null ? void 0 : i.length) > 0, M = IT(l, i, o, d), [$, q] = Q("");
|
|
26557
26554
|
return /* @__PURE__ */ u(I, { gap: 3, children: [
|
|
26558
26555
|
/* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
26559
26556
|
/* @__PURE__ */ u(k, { className: p.label, size: "sm", children: [
|
|
@@ -26596,10 +26593,10 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26596
26593
|
maxTagPlaceholder: () => h("filter.widget.common.x_selected", {
|
|
26597
26594
|
count: i.length
|
|
26598
26595
|
}),
|
|
26599
|
-
searchValue:
|
|
26600
|
-
onSearch:
|
|
26596
|
+
searchValue: $,
|
|
26597
|
+
onSearch: q,
|
|
26601
26598
|
dropdownRender: (W) => /* @__PURE__ */ u(F, { children: [
|
|
26602
|
-
M.allValueSet.size > 0 &&
|
|
26599
|
+
M.allValueSet.size > 0 && !$ && /* @__PURE__ */ r(v, { px: "xs", pt: 8, pb: 8, onClick: M.toggleSelectAll, styles: MT, children: /* @__PURE__ */ r(ee, { size: "xs", checked: M.allSelected, onChange: C.noop, label: h("common.actions.select_all") }) }),
|
|
26603
26600
|
/* @__PURE__ */ r(A, {}),
|
|
26604
26601
|
W
|
|
26605
26602
|
] })
|
|
@@ -26637,7 +26634,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26637
26634
|
/* @__PURE__ */ r(ee, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: t("filter.widget.select.required") }),
|
|
26638
26635
|
/* @__PURE__ */ r(yn, { filter: e })
|
|
26639
26636
|
] }),
|
|
26640
|
-
/* @__PURE__ */ r(
|
|
26637
|
+
/* @__PURE__ */ r(V, { label: t("filter.widget.common.min_width"), value: n.min_width, onChange: (a) => n.setMinWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
26641
26638
|
/* @__PURE__ */ r(A, { label: t("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
26642
26639
|
/* @__PURE__ */ r(pa, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
|
|
26643
26640
|
/* @__PURE__ */ r(ee, { checked: n.default_selection_count === 1, onChange: (a) => n.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: t("filter.widget.tree_single_select.select_first_option_by_default") }),
|
|
@@ -28955,21 +28952,21 @@ const uD = uT.views((e) => ({
|
|
|
28955
28952
|
const t = this.payload, n = {
|
|
28956
28953
|
filters: e.contentModel.filters.keysToTypes
|
|
28957
28954
|
}, a = e.config, i = a.filters.reduce((_, x) => {
|
|
28958
|
-
const T = C.get(t, x.variable), M = C.get(n, x.variable),
|
|
28955
|
+
const T = C.get(t, x.variable), M = C.get(n, x.variable), $ = x.dimension;
|
|
28959
28956
|
if (M === j.DateRange) {
|
|
28960
28957
|
const W = T.every((G) => Number.isFinite(Number(G))) ? T.map((G) => Number(G)) : T;
|
|
28961
|
-
_[
|
|
28958
|
+
_[$] = {
|
|
28962
28959
|
between: W
|
|
28963
28960
|
};
|
|
28964
28961
|
} else if (M === j.MericoDateRange) {
|
|
28965
28962
|
const W = T.value.every((G) => Number.isFinite(Number(G))) ? T.value.map((G) => Number(G)) : T;
|
|
28966
|
-
_[
|
|
28963
|
+
_[$] = {
|
|
28967
28964
|
between: W
|
|
28968
28965
|
};
|
|
28969
28966
|
} else
|
|
28970
|
-
Array.isArray(T) ? _[
|
|
28967
|
+
Array.isArray(T) ? _[$] = {
|
|
28971
28968
|
in: T
|
|
28972
|
-
} : _[
|
|
28969
|
+
} : _[$] = {
|
|
28973
28970
|
eq: T
|
|
28974
28971
|
};
|
|
28975
28972
|
return _;
|
|
@@ -29737,7 +29734,7 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
29737
29734
|
/* @__PURE__ */ u(v, { justify: "flex-start", grow: !0, wrap: "nowrap", gap: 0, w: "288px", sx: {
|
|
29738
29735
|
marginTop: "3px"
|
|
29739
29736
|
}, children: [
|
|
29740
|
-
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(
|
|
29737
|
+
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(V, { label: e, labelProps: {
|
|
29741
29738
|
title: e
|
|
29742
29739
|
}, required: t, leftSection: /* @__PURE__ */ r(ts, { size: 16 }), placeholder: c("filter.widget.date_range.start_date"), readOnly: !0, disabled: s, value: _, onFocus: h, styles: dl(d), sx: {
|
|
29743
29740
|
".mantine-TextInput-label": {
|
|
@@ -29762,7 +29759,7 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
29762
29759
|
opacity: 0.6
|
|
29763
29760
|
}
|
|
29764
29761
|
} }) }),
|
|
29765
|
-
/* @__PURE__ */ r(
|
|
29762
|
+
/* @__PURE__ */ r(V, { label: /* @__PURE__ */ r(v, { justify: "flex-end", children: /* @__PURE__ */ r(xD, { begin: g, end: b }) }), leftSection: /* @__PURE__ */ r(ns, { size: 16 }), placeholder: c("filter.widget.date_range.end_date"), readOnly: !0, disabled: !g || s, value: x, onFocus: h, styles: dl(d), sx: {
|
|
29766
29763
|
".mantine-Input-section": {
|
|
29767
29764
|
transform: "translateX(-18px)"
|
|
29768
29765
|
},
|
|
@@ -30023,7 +30020,7 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
30023
30020
|
name: "MultiSelectWidget"
|
|
30024
30021
|
}), [g, b] = Q(!1), _ = (Z) => {
|
|
30025
30022
|
b(Z);
|
|
30026
|
-
}, x = g && (i == null ? void 0 : i.length) > 0, [T, M] = Q(""),
|
|
30023
|
+
}, x = g && (i == null ? void 0 : i.length) > 0, [T, M] = Q(""), $ = z(() => {
|
|
30027
30024
|
if (!T)
|
|
30028
30025
|
return l;
|
|
30029
30026
|
const Z = T.toLowerCase(), $e = (Qe) => {
|
|
@@ -30031,12 +30028,12 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
30031
30028
|
return ((en = Qe.description) == null ? void 0 : en.toLowerCase().includes(Z)) || Qe.label.toLowerCase().includes(Z);
|
|
30032
30029
|
};
|
|
30033
30030
|
return l.filter($e);
|
|
30034
|
-
}, [T, l]),
|
|
30031
|
+
}, [T, l]), q = z(() => new Set(l.map((Z) => Z.value)), [l]), W = z(() => new Set(i), [i]), G = z(() => W.size !== q.size ? !1 : Array.from(q).every((Z) => W.has(Z)), [W, q]), oe = () => {
|
|
30035
30032
|
if (G) {
|
|
30036
30033
|
o([]);
|
|
30037
30034
|
return;
|
|
30038
30035
|
}
|
|
30039
|
-
const Z = Array.from(
|
|
30036
|
+
const Z = Array.from(q);
|
|
30040
30037
|
o(Z);
|
|
30041
30038
|
};
|
|
30042
30039
|
return /* @__PURE__ */ u(I, { gap: 3, children: [
|
|
@@ -30052,10 +30049,10 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
30052
30049
|
/* @__PURE__ */ r(Um, { disabled: e, allowClear: !0, className: p(h.root, "check-select"), dropdownClassName: p(h.dropdown, ""), onDropdownVisibleChange: _, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: n, clearIcon: () => /* @__PURE__ */ r(vt, { size: "sm" }), value: i, onChange: o, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r(eo, { errorMessage: s }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => d("filter.widget.common.x_selected", {
|
|
30053
30050
|
count: Z.length
|
|
30054
30051
|
}), searchValue: T, onSearch: M, filterOption: !1, dropdownRender: (Z) => /* @__PURE__ */ u(F, { children: [
|
|
30055
|
-
|
|
30052
|
+
q.size > 0 && !T && /* @__PURE__ */ r(v, { px: "xs", py: "xs", onClick: oe, styles: TD, children: /* @__PURE__ */ r(ee, { size: "xs", checked: G, onChange: C.noop, label: d("common.actions.select_all") }) }),
|
|
30056
30053
|
/* @__PURE__ */ r(A, {}),
|
|
30057
30054
|
Z
|
|
30058
|
-
] }), children:
|
|
30055
|
+
] }), children: $.map((Z) => /* @__PURE__ */ u(Km, { title: Z.label, children: [
|
|
30059
30056
|
/* @__PURE__ */ r(k, { size: "sm", "data-role": "label", children: Z.label }),
|
|
30060
30057
|
Z.description && /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", "data-role": "description", children: Z.description })
|
|
30061
30058
|
] }, Z.value)) })
|
|
@@ -30103,7 +30100,7 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
30103
30100
|
p && a(p, !1);
|
|
30104
30101
|
}, [a]);
|
|
30105
30102
|
return /* @__PURE__ */ r(
|
|
30106
|
-
|
|
30103
|
+
O,
|
|
30107
30104
|
{
|
|
30108
30105
|
label: e,
|
|
30109
30106
|
data: t.options,
|
|
@@ -30142,7 +30139,7 @@ function $D({
|
|
|
30142
30139
|
value: n,
|
|
30143
30140
|
onChange: a
|
|
30144
30141
|
}) {
|
|
30145
|
-
return /* @__PURE__ */ r(
|
|
30142
|
+
return /* @__PURE__ */ r(V, { label: e, value: n || "", onChange: (i) => a(i.currentTarget.value), ...t, styles: {
|
|
30146
30143
|
input: {
|
|
30147
30144
|
borderColor: "#e9ecef"
|
|
30148
30145
|
}
|
|
@@ -30235,12 +30232,12 @@ const qD = (e, t, n) => {
|
|
|
30235
30232
|
const a = e.step, [i, o] = Q(null), [l, s] = Q(e.value), c = (b, _) => {
|
|
30236
30233
|
if (!b || !_)
|
|
30237
30234
|
return;
|
|
30238
|
-
const [x, T] = l, M = b.toDate(),
|
|
30235
|
+
const [x, T] = l, M = b.toDate(), $ = _.toDate();
|
|
30239
30236
|
if (x === null) {
|
|
30240
30237
|
s([M, null]);
|
|
30241
30238
|
return;
|
|
30242
30239
|
}
|
|
30243
|
-
const W = M.getTime() < x.getTime() ? [M, T] : [x,
|
|
30240
|
+
const W = M.getTime() < x.getTime() ? [M, T] : [x, $];
|
|
30244
30241
|
s(W), t(W);
|
|
30245
30242
|
};
|
|
30246
30243
|
N(() => {
|
|
@@ -30274,9 +30271,9 @@ const qD = (e, t, n) => {
|
|
|
30274
30271
|
disabled: !0
|
|
30275
30272
|
};
|
|
30276
30273
|
const {
|
|
30277
|
-
start:
|
|
30278
|
-
end:
|
|
30279
|
-
} = M, W = AD(_,
|
|
30274
|
+
start: $,
|
|
30275
|
+
end: q
|
|
30276
|
+
} = M, W = AD(_, $, l), G = ED(_, q), oe = PD(b, T, l, a), Z = oe && W, $e = oe && G, Qe = _.isBefore(d) || _.isAfter(h);
|
|
30280
30277
|
return {
|
|
30281
30278
|
onMouseEnter: () => o(b),
|
|
30282
30279
|
onMouseLeave: () => o(null),
|
|
@@ -30284,7 +30281,7 @@ const qD = (e, t, n) => {
|
|
|
30284
30281
|
firstInRange: Z,
|
|
30285
30282
|
lastInRange: $e,
|
|
30286
30283
|
selected: W || G,
|
|
30287
|
-
onClick: () => c(
|
|
30284
|
+
onClick: () => c($, q),
|
|
30288
30285
|
disabled: Qe
|
|
30289
30286
|
};
|
|
30290
30287
|
}, [i, t, a, n, d, h, l]);
|
|
@@ -30391,7 +30388,7 @@ const qD = (e, t, n) => {
|
|
|
30391
30388
|
label: i("filter.widget.date_range.step.quarter"),
|
|
30392
30389
|
value: "quarter"
|
|
30393
30390
|
}], [i]);
|
|
30394
|
-
return /* @__PURE__ */ r(
|
|
30391
|
+
return /* @__PURE__ */ r(O, { className: a, label: e, data: l, value: t, onChange: (c) => {
|
|
30395
30392
|
c && n(c);
|
|
30396
30393
|
} });
|
|
30397
30394
|
}, ZD = ({
|
|
@@ -30474,10 +30471,10 @@ const qD = (e, t, n) => {
|
|
|
30474
30471
|
/* @__PURE__ */ u(v, { justify: "flex-start", align: "text-anchor", wrap: "nowrap", gap: 0, sx: {
|
|
30475
30472
|
marginTop: "3px"
|
|
30476
30473
|
}, children: [
|
|
30477
|
-
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(
|
|
30474
|
+
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(V, { label: e, labelProps: {
|
|
30478
30475
|
title: e
|
|
30479
30476
|
}, required: t, leftSection: /* @__PURE__ */ r(ts, { size: 16 }), placeholder: l("filter.widget.date_range.start_date"), readOnly: !0, disabled: o, value: g, onFocus: c, styles: ul(s), className: ka.begin }) }),
|
|
30480
|
-
/* @__PURE__ */ r(
|
|
30477
|
+
/* @__PURE__ */ r(V, { label: /* @__PURE__ */ r(R, { children: " " }), leftSection: /* @__PURE__ */ r(ns, { size: 16, onClick: c }), placeholder: l("filter.widget.date_range.end_date"), readOnly: !0, disabled: o, value: b, onFocus: c, styles: ul(s), className: ka.end }),
|
|
30481
30478
|
/* @__PURE__ */ r(Tu, { className: ka.step, value: n.step, onChange: x, label: /* @__PURE__ */ r(v, { justify: "flex-end", children: /* @__PURE__ */ r(UD, { begin: h, end: p }) }) })
|
|
30482
30479
|
] }),
|
|
30483
30480
|
/* @__PURE__ */ u(Ye.Dropdown, { p: "sm", children: [
|
|
@@ -30536,7 +30533,7 @@ const qD = (e, t, n) => {
|
|
|
30536
30533
|
}), a6 = D(E.forwardRef(({
|
|
30537
30534
|
filter: e,
|
|
30538
30535
|
...t
|
|
30539
|
-
}, n) => /* @__PURE__ */ r("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ r(
|
|
30536
|
+
}, n) => /* @__PURE__ */ r("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(r6, { filter: e, formFieldProps: t }) }) }))), i6 = ({
|
|
30540
30537
|
disabled: e,
|
|
30541
30538
|
onSubmit: t
|
|
30542
30539
|
}) => {
|
|
@@ -30654,8 +30651,8 @@ const h6 = ({
|
|
|
30654
30651
|
N(() => {
|
|
30655
30652
|
s(i.filters.values);
|
|
30656
30653
|
}, [i.filters.values, s]), o6(c);
|
|
30657
|
-
const d = i.filters.visibleInView(t.id), h = z(() => d.every((x) => x.should_auto_submit), [d]), p = z(() => d.filter((x) => C.get(x, "config.required", !1)), [d]), g = z(() => p.length === 0 ? !1 : p.some((x) => !x.requiredAndPass(c[x.key])), [c, p]), b = (x, T) => (M,
|
|
30658
|
-
T(M), (x.should_auto_submit ||
|
|
30654
|
+
const d = i.filters.visibleInView(t.id), h = z(() => d.every((x) => x.should_auto_submit), [d]), p = z(() => d.filter((x) => C.get(x, "config.required", !1)), [d]), g = z(() => p.length === 0 ? !1 : p.some((x) => !x.requiredAndPass(c[x.key])), [c, p]), b = (x, T) => (M, $) => {
|
|
30655
|
+
T(M), (x.should_auto_submit || $) && i.filters.setValueByKey(x.key, M);
|
|
30659
30656
|
}, _ = ne((x) => {
|
|
30660
30657
|
const T = C.get(x, "force", !1);
|
|
30661
30658
|
l(i.filters.setValues)(), T && i.queries.forceReloadVisibleQueries();
|
|
@@ -31015,7 +31012,7 @@ const z6 = D(function({
|
|
|
31015
31012
|
width: a,
|
|
31016
31013
|
height: i,
|
|
31017
31014
|
overflow: "hidden"
|
|
31018
|
-
}, children: l && /* @__PURE__ */ r(
|
|
31015
|
+
}, children: l && /* @__PURE__ */ r(ke, { children: o }) }) });
|
|
31019
31016
|
});
|
|
31020
31017
|
function T6(e) {
|
|
31021
31018
|
const {
|
|
@@ -31492,7 +31489,7 @@ const l4 = D(({
|
|
|
31492
31489
|
} = y(), [n, {
|
|
31493
31490
|
setTrue: a,
|
|
31494
31491
|
setFalse: i
|
|
31495
|
-
}] =
|
|
31492
|
+
}] = De(!1), o = wg(), l = ve(), s = () => {
|
|
31496
31493
|
const c = JSON.stringify(l.contentJSON, null, 2), d = `${o.name}__${l.name}`;
|
|
31497
31494
|
Zn(d, c);
|
|
31498
31495
|
};
|
|
@@ -31779,8 +31776,8 @@ const p4 = D(({
|
|
|
31779
31776
|
position: "relative",
|
|
31780
31777
|
zIndex: 200
|
|
31781
31778
|
}, children: [
|
|
31782
|
-
/* @__PURE__ */ r(
|
|
31783
|
-
/* @__PURE__ */ r(
|
|
31779
|
+
/* @__PURE__ */ r(V, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (g) => d.setName(g.currentTarget.value) }),
|
|
31780
|
+
/* @__PURE__ */ r(O, { label: t("view.label"), value: d.view_id, onChange: d.setViewID, data: i }),
|
|
31784
31781
|
/* @__PURE__ */ r(re, { label: t("view.component.tabs.tab.order"), required: !0, value: d.order, onChange: (g) => d.setOrder(g || 0), min: 0, max: 1e3, step: 1 }),
|
|
31785
31782
|
/* @__PURE__ */ r(rn, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: o.variant !== "default" }),
|
|
31786
31783
|
p && /* @__PURE__ */ r(L, { mt: 20, variant: "gradient", leftSection: /* @__PURE__ */ r(_p, { size: 18 }), gradient: {
|
|
@@ -34031,12 +34028,12 @@ const aI = D(({
|
|
|
34031
34028
|
}) => {
|
|
34032
34029
|
const $e = Z.filter((Qe) => Number.isFinite(Qe.breakpoint));
|
|
34033
34030
|
a.updateLayoutSetsInfo($e), e();
|
|
34034
|
-
},
|
|
34031
|
+
}, $ = c(), q = z(() => {
|
|
34035
34032
|
const Z = {
|
|
34036
|
-
list:
|
|
34033
|
+
list: $.list.filter(($e) => !!$e.name && Number.isFinite($e.breakpoint))
|
|
34037
34034
|
};
|
|
34038
34035
|
return !Oe(Z, i);
|
|
34039
|
-
}, [
|
|
34036
|
+
}, [$, i]), W = (oe = (G = h.errors.list) == null ? void 0 : G.root) == null ? void 0 : oe.message;
|
|
34040
34037
|
return /* @__PURE__ */ r(F, { children: /* @__PURE__ */ u("form", { onSubmit: l(M), children: [
|
|
34041
34038
|
/* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, withTableBorder: !0, sx: {
|
|
34042
34039
|
tableLayout: "fixed"
|
|
@@ -34054,7 +34051,7 @@ const aI = D(({
|
|
|
34054
34051
|
x.map((Z, $e) => /* @__PURE__ */ u(w.Tr, { children: [
|
|
34055
34052
|
/* @__PURE__ */ r(w.Th, { children: Z.id === "basis" ? Z.name : /* @__PURE__ */ r(f, { name: `list.${$e}.name`, control: o, render: ({
|
|
34056
34053
|
field: Qe
|
|
34057
|
-
}) => /* @__PURE__ */ r(
|
|
34054
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", label: "", required: !0, sx: {
|
|
34058
34055
|
flex: 1
|
|
34059
34056
|
}, ...Qe }) }) }),
|
|
34060
34057
|
/* @__PURE__ */ r(w.Td, { children: Z.id === "basis" ? /* @__PURE__ */ u(k, { size: "sm", ff: "monospace", children: [
|
|
@@ -34086,8 +34083,8 @@ const aI = D(({
|
|
|
34086
34083
|
] }),
|
|
34087
34084
|
/* @__PURE__ */ r(k, { mt: 6, ta: "right", size: "xs", c: "red", children: W ?? " " }),
|
|
34088
34085
|
/* @__PURE__ */ u(v, { mt: 6, justify: "space-between", children: [
|
|
34089
|
-
/* @__PURE__ */ r(L, { color: "orange", size: "xs", onClick: () => d(), leftSection: /* @__PURE__ */ r(Ct, { size: 18 }), disabled: !
|
|
34090
|
-
/* @__PURE__ */ r(L, { color: "green", size: "xs", type: "submit", leftSection: /* @__PURE__ */ r(be, { size: 18 }), disabled: !
|
|
34086
|
+
/* @__PURE__ */ r(L, { color: "orange", size: "xs", onClick: () => d(), leftSection: /* @__PURE__ */ r(Ct, { size: 18 }), disabled: !q, children: t("common.actions.revert") }),
|
|
34087
|
+
/* @__PURE__ */ r(L, { color: "green", size: "xs", type: "submit", leftSection: /* @__PURE__ */ r(be, { size: 18 }), disabled: !q, children: t("common.actions.save_changes") })
|
|
34091
34088
|
] })
|
|
34092
34089
|
] }) });
|
|
34093
34090
|
}), sI = D(() => {
|
|
@@ -34298,7 +34295,7 @@ const yI = D(({
|
|
|
34298
34295
|
stretchModal: t,
|
|
34299
34296
|
shrinkModal: n
|
|
34300
34297
|
}) => {
|
|
34301
|
-
var M,
|
|
34298
|
+
var M, $;
|
|
34302
34299
|
const {
|
|
34303
34300
|
t: a
|
|
34304
34301
|
} = y(), i = ie(), {
|
|
@@ -34315,12 +34312,12 @@ const yI = D(({
|
|
|
34315
34312
|
content: null
|
|
34316
34313
|
}
|
|
34317
34314
|
}), p = ({
|
|
34318
|
-
content:
|
|
34315
|
+
content: q
|
|
34319
34316
|
}) => {
|
|
34320
34317
|
try {
|
|
34321
|
-
if (!
|
|
34318
|
+
if (!q)
|
|
34322
34319
|
throw new Error("please use a valid json file");
|
|
34323
|
-
i.applyJSONSchema(
|
|
34320
|
+
i.applyJSONSchema(q), zn({
|
|
34324
34321
|
title: "Successful",
|
|
34325
34322
|
message: "",
|
|
34326
34323
|
color: "green"
|
|
@@ -34336,8 +34333,8 @@ const yI = D(({
|
|
|
34336
34333
|
N(() => {
|
|
34337
34334
|
if (!g)
|
|
34338
34335
|
return;
|
|
34339
|
-
const
|
|
34340
|
-
|
|
34336
|
+
const q = new FileReader();
|
|
34337
|
+
q.readAsText(g, "UTF-8"), q.onload = (W) => {
|
|
34341
34338
|
try {
|
|
34342
34339
|
const G = bI(W);
|
|
34343
34340
|
s("content", G), h("content");
|
|
@@ -34347,10 +34344,10 @@ const yI = D(({
|
|
|
34347
34344
|
message: G.message
|
|
34348
34345
|
});
|
|
34349
34346
|
}
|
|
34350
|
-
},
|
|
34351
|
-
|
|
34347
|
+
}, q.onabort = () => console.log("🟨 abort"), q.onerror = () => {
|
|
34348
|
+
q.error && (console.error(q.error), d("content", {
|
|
34352
34349
|
type: "custom",
|
|
34353
|
-
message:
|
|
34350
|
+
message: q.error.message
|
|
34354
34351
|
}));
|
|
34355
34352
|
};
|
|
34356
34353
|
}, [g]);
|
|
@@ -34360,7 +34357,7 @@ const yI = D(({
|
|
|
34360
34357
|
}, [_, T]), /* @__PURE__ */ r(R, { mx: "auto", sx: {
|
|
34361
34358
|
position: "relative"
|
|
34362
34359
|
}, children: /* @__PURE__ */ u("form", { onSubmit: o(p), children: [
|
|
34363
|
-
/* @__PURE__ */ r(Bh, { label: a("import.json_file"), required: !0, value: g, onChange: b, error: (
|
|
34360
|
+
/* @__PURE__ */ r(Bh, { label: a("import.json_file"), required: !0, value: g, onChange: b, error: ($ = l == null ? void 0 : l.content) == null ? void 0 : $.message, sx: {
|
|
34364
34361
|
maxWidth: 500
|
|
34365
34362
|
} }),
|
|
34366
34363
|
T ? /* @__PURE__ */ r(w, { fz: 12, mt: 10, children: /* @__PURE__ */ u(w.Tbody, { children: [
|
|
@@ -34395,7 +34392,7 @@ const yI = D(({
|
|
|
34395
34392
|
}] = an(!1), [i, {
|
|
34396
34393
|
setTrue: o,
|
|
34397
34394
|
setFalse: l
|
|
34398
|
-
}] =
|
|
34395
|
+
}] = De(!1), c = ((d = le().content.views.VIE) == null ? void 0 : d.type) === K.Tabs;
|
|
34399
34396
|
return c ? /* @__PURE__ */ r(ae, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r(L, { variant: "outline", color: "gray", radius: 0, size: "xs", leftSection: /* @__PURE__ */ r(ko, { size: 16 }), sx: {
|
|
34400
34397
|
...bl,
|
|
34401
34398
|
transform: "none !important"
|
|
@@ -35140,7 +35137,7 @@ const e8 = D(() => {
|
|
|
35140
35137
|
/* @__PURE__ */ r(ee, { checked: a.allowSingleDateInRange, onChange: (l) => a.setAllowSingleDateInRange(l.currentTarget.checked), label: n("filter.widget.date_range.allow_single_date") })
|
|
35141
35138
|
] }),
|
|
35142
35139
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
35143
|
-
/* @__PURE__ */ r(
|
|
35140
|
+
/* @__PURE__ */ r(O, { data: r8, label: n("filter.widget.date_range.display_format"), value: a.inputFormat, onChange: a.setInputFormat }),
|
|
35144
35141
|
/* @__PURE__ */ r(re, { label: n("filter.widget.date_range.max_days"), min: 0, value: a.max_days, onChange: a.setMaxDays, hideControls: !0 })
|
|
35145
35142
|
] }),
|
|
35146
35143
|
/* @__PURE__ */ u(v, { children: [
|
|
@@ -35148,7 +35145,7 @@ const e8 = D(() => {
|
|
|
35148
35145
|
value: o,
|
|
35149
35146
|
shortcut: null
|
|
35150
35147
|
}, onChange: a.setDefaultValue, disabled: !!a.default_shortcut }),
|
|
35151
|
-
/* @__PURE__ */ r(
|
|
35148
|
+
/* @__PURE__ */ r(O, { data: i, label: n("filter.widget.date_range.default_by_shortcut"), value: a.default_shortcut, onChange: a.setDefaultShortcut, placeholder: n("filter.widget.date_range.default_by_shortcut_placeholder"), clearable: !0, sx: {
|
|
35152
35149
|
flexGrow: 1
|
|
35153
35150
|
}, maxDropdownHeight: 500 })
|
|
35154
35151
|
] }),
|
|
@@ -35185,7 +35182,7 @@ const e8 = D(() => {
|
|
|
35185
35182
|
/* @__PURE__ */ r(ee, { checked: a.required, onChange: (s) => a.setRequired(s.currentTarget.checked), label: n("filter.widget.select.required") }),
|
|
35186
35183
|
/* @__PURE__ */ r(yn, { filter: t })
|
|
35187
35184
|
] }),
|
|
35188
|
-
/* @__PURE__ */ r(
|
|
35185
|
+
/* @__PURE__ */ r(V, { label: n("filter.widget.select.width"), description: n("filter.widget.multi_select.width_description"), value: a.min_width, onChange: (s) => a.setMinWidth(s.currentTarget.value), placeholder: "200px" }),
|
|
35189
35186
|
/* @__PURE__ */ r(A, { label: n("filter.widget.select.configure_options"), labelPosition: "center" }),
|
|
35190
35187
|
/* @__PURE__ */ u(I, { gap: 10, sx: {
|
|
35191
35188
|
position: "relative",
|
|
@@ -35211,12 +35208,12 @@ const e8 = D(() => {
|
|
|
35211
35208
|
o.map((s, c) => /* @__PURE__ */ u(Ue, { gap: 10, sx: {
|
|
35212
35209
|
position: "relative"
|
|
35213
35210
|
}, pr: "40px", children: [
|
|
35214
|
-
/* @__PURE__ */ r(
|
|
35211
|
+
/* @__PURE__ */ r(V, { label: n("common.label"), required: !0, value: a.static_options[c].label, onChange: (d) => {
|
|
35215
35212
|
a.static_options[c].setLabel(d.currentTarget.value);
|
|
35216
35213
|
}, sx: {
|
|
35217
35214
|
flexGrow: 1
|
|
35218
35215
|
} }),
|
|
35219
|
-
/* @__PURE__ */ r(
|
|
35216
|
+
/* @__PURE__ */ r(V, { label: n("common.value"), required: !0, value: a.static_options[c].value, onChange: (d) => {
|
|
35220
35217
|
a.static_options[c].setValue(d.currentTarget.value);
|
|
35221
35218
|
}, sx: {
|
|
35222
35219
|
flexGrow: 1
|
|
@@ -35300,7 +35297,7 @@ const e8 = D(() => {
|
|
|
35300
35297
|
};
|
|
35301
35298
|
return /* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
35302
35299
|
/* @__PURE__ */ r(L, { size: "xs", color: "blue", leftSection: /* @__PURE__ */ r(or, { size: 20 }), onClick: a, children: t("common.actions.add_an_option") }),
|
|
35303
|
-
/* @__PURE__ */ r(
|
|
35300
|
+
/* @__PURE__ */ r(O, { placeholder: t("filter.widget.select.preset_options.apply"), value: null, onChange: o, data: i, size: "xs" })
|
|
35304
35301
|
] });
|
|
35305
35302
|
}), l8 = D(({
|
|
35306
35303
|
config: e
|
|
@@ -35313,16 +35310,16 @@ const e8 = D(() => {
|
|
|
35313
35310
|
value: ""
|
|
35314
35311
|
}, ...a.filter((o) => o.value !== "")], [n.language, a]);
|
|
35315
35312
|
return a.length === 0 ? /* @__PURE__ */ r(wl, { config: e }) : /* @__PURE__ */ u(F, { children: [
|
|
35316
|
-
/* @__PURE__ */ r(
|
|
35313
|
+
/* @__PURE__ */ r(O, { label: t("filter.widget.select.default_selection"), data: i, value: e.default_value, onChange: e.setDefaultValue }),
|
|
35317
35314
|
a.map((o, l) => /* @__PURE__ */ u(Ue, { gap: 10, sx: {
|
|
35318
35315
|
position: "relative"
|
|
35319
35316
|
}, pr: "40px", children: [
|
|
35320
|
-
/* @__PURE__ */ r(
|
|
35317
|
+
/* @__PURE__ */ r(V, { label: t("common.label"), required: !0, value: e.static_options[l].label, onChange: (s) => {
|
|
35321
35318
|
e.static_options[l].setLabel(s.currentTarget.value);
|
|
35322
35319
|
}, sx: {
|
|
35323
35320
|
flexGrow: 1
|
|
35324
35321
|
} }),
|
|
35325
|
-
/* @__PURE__ */ r(
|
|
35322
|
+
/* @__PURE__ */ r(V, { label: t("common.value"), required: !0, value: e.static_options[l].value, onChange: (s) => {
|
|
35326
35323
|
e.static_options[l].setValue(s.currentTarget.value);
|
|
35327
35324
|
}, sx: {
|
|
35328
35325
|
flexGrow: 1
|
|
@@ -35347,7 +35344,7 @@ const e8 = D(() => {
|
|
|
35347
35344
|
/* @__PURE__ */ r(ee, { checked: n.clearable, onChange: (a) => n.setClearable(a.currentTarget.checked), label: t("filter.widget.select.clearable") }),
|
|
35348
35345
|
/* @__PURE__ */ r(yn, { filter: e })
|
|
35349
35346
|
] }),
|
|
35350
|
-
/* @__PURE__ */ r(
|
|
35347
|
+
/* @__PURE__ */ r(V, { label: t("filter.widget.select.width"), value: n.width, onChange: (a) => n.setWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
35351
35348
|
/* @__PURE__ */ r(A, { label: t("filter.widget.select.configure_options"), labelPosition: "center" }),
|
|
35352
35349
|
/* @__PURE__ */ u(I, { gap: 10, sx: {
|
|
35353
35350
|
position: "relative",
|
|
@@ -35384,7 +35381,7 @@ const e8 = D(() => {
|
|
|
35384
35381
|
} = y(), a = t.config;
|
|
35385
35382
|
return /* @__PURE__ */ u(F, { children: [
|
|
35386
35383
|
/* @__PURE__ */ u(v, { children: [
|
|
35387
|
-
/* @__PURE__ */ r(
|
|
35384
|
+
/* @__PURE__ */ r(V, { label: n("filter.widget.text_input.default_value"), value: a.default_value, onChange: (i) => {
|
|
35388
35385
|
a.setDefaultValue(i.currentTarget.value);
|
|
35389
35386
|
}, sx: {
|
|
35390
35387
|
flexGrow: 1
|
|
@@ -35484,7 +35481,7 @@ const e8 = D(() => {
|
|
|
35484
35481
|
/* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(ee, { checked: n.required, onChange: (h) => n.setRequired(h.currentTarget.checked), label: t("filter.widget.date_range.required") }) }),
|
|
35485
35482
|
/* @__PURE__ */ r(Tu, { value: n.default_step, onChange: d, label: "默认步长" }),
|
|
35486
35483
|
/* @__PURE__ */ u(v, { children: [
|
|
35487
|
-
/* @__PURE__ */ r(
|
|
35484
|
+
/* @__PURE__ */ r(O, { data: a, label: t("filter.widget.date_range.default_by_shortcut"), value: n.default_shortcut, onChange: c, placeholder: t("filter.widget.date_range.default_by_shortcut_placeholder"), clearable: !0, sx: {
|
|
35488
35485
|
flexGrow: 1
|
|
35489
35486
|
}, maxDropdownHeight: 500 }),
|
|
35490
35487
|
/* @__PURE__ */ r(Rh, { type: "range", label: t("filter.widget.date_range.default_value"), value: o, onChange: s, valueFormat: n.inputFormat, allowSingleDateInRange: !0, numberOfColumns: 2, w: "50%", disabled: !!n.default_shortcut })
|
|
@@ -35552,13 +35549,13 @@ const e8 = D(() => {
|
|
|
35552
35549
|
e.auto_submit_supported && /* @__PURE__ */ r(ee, { label: t("filter.field.auto_submit"), checked: e.auto_submit, onChange: (l) => e.setAutoSubmit(l.currentTarget.checked), mt: 22 })
|
|
35553
35550
|
] }),
|
|
35554
35551
|
/* @__PURE__ */ r(Wt, { label: t("filter.field.visible_in"), data: a.views.options, value: [...e.visibleInViewsIDs], onChange: e.setVisibleInViewsIDs }),
|
|
35555
|
-
/* @__PURE__ */ r(
|
|
35552
|
+
/* @__PURE__ */ r(V, { label: t("common.key"), placeholder: t("filter.field.key_placeholder"), required: !0, value: e.key, onChange: (l) => {
|
|
35556
35553
|
e.setKey(l.currentTarget.value);
|
|
35557
35554
|
} }),
|
|
35558
|
-
/* @__PURE__ */ r(
|
|
35555
|
+
/* @__PURE__ */ r(V, { label: t("common.label"), placeholder: t("filter.field.label_placeholder"), required: !0, value: e.label, onChange: (l) => {
|
|
35559
35556
|
e.setLabel(l.currentTarget.value);
|
|
35560
35557
|
} }),
|
|
35561
|
-
/* @__PURE__ */ r(
|
|
35558
|
+
/* @__PURE__ */ r(O, { label: t("filter.field.widget"), data: o, required: !0, value: e.type, onChange: e.setType, maxDropdownHeight: 500 }),
|
|
35562
35559
|
/* @__PURE__ */ r(A, { mb: 0, mt: 10, variant: "dashed", labelPosition: "center" }),
|
|
35563
35560
|
/* @__PURE__ */ r(i, { filter: e })
|
|
35564
35561
|
] })
|
|
@@ -35798,7 +35795,7 @@ const e8 = D(() => {
|
|
|
35798
35795
|
] }),
|
|
35799
35796
|
/* @__PURE__ */ r(J, { variant: "subtle", color: "blue", disabled: !o || s, onClick: l, children: /* @__PURE__ */ r(be, { size: 18 }) })
|
|
35800
35797
|
] }),
|
|
35801
|
-
/* @__PURE__ */ r(
|
|
35798
|
+
/* @__PURE__ */ r(V, { value: a, onChange: i, required: !0 })
|
|
35802
35799
|
] });
|
|
35803
35800
|
}), w8 = D(() => {
|
|
35804
35801
|
const {
|
|
@@ -35882,14 +35879,14 @@ function eh({
|
|
|
35882
35879
|
});
|
|
35883
35880
|
return e.length === 0 ? /* @__PURE__ */ r(R, { sx: {
|
|
35884
35881
|
height: "5em"
|
|
35885
|
-
} }) : /* @__PURE__ */ r(
|
|
35882
|
+
} }) : /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(w, { sx: C8, children: [
|
|
35886
35883
|
/* @__PURE__ */ r(w.Thead, { children: n.getHeaderGroups().map((a) => /* @__PURE__ */ r(w.Tr, { children: a.headers.map((i) => /* @__PURE__ */ u(w.Th, { style: {
|
|
35887
35884
|
width: i.getSize()
|
|
35888
35885
|
}, children: [
|
|
35889
35886
|
i.isPlaceholder ? null : Fn(i.column.columnDef.header, i.getContext()),
|
|
35890
35887
|
/* @__PURE__ */ r(J, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Ja, {}) })
|
|
35891
35888
|
] }, i.id)) }, a.id)) }),
|
|
35892
|
-
/* @__PURE__ */ r(w.Tbody, { children: n.getRowModel().rows.map((a) => /* @__PURE__ */ r(w.Tr, { children: a.getVisibleCells().map((i) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(
|
|
35889
|
+
/* @__PURE__ */ r(w.Tbody, { children: n.getRowModel().rows.map((a) => /* @__PURE__ */ r(w.Tr, { children: a.getVisibleCells().map((i) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ke, { children: typeof i.getValue() == "object" ? /* @__PURE__ */ r("pre", { children: JSON.stringify(i.getValue(), null, 2) }) : Fn(i.column.columnDef.cell, i.getContext()) }) }, i.id)) }, a.id)) })
|
|
35893
35890
|
] }) });
|
|
35894
35891
|
}
|
|
35895
35892
|
const k8 = [{
|
|
@@ -35937,7 +35934,7 @@ const k8 = [{
|
|
|
35937
35934
|
}
|
|
35938
35935
|
} }),
|
|
35939
35936
|
!d && /* @__PURE__ */ r(
|
|
35940
|
-
|
|
35937
|
+
O,
|
|
35941
35938
|
{
|
|
35942
35939
|
leftSection: /* @__PURE__ */ r(k, { ta: "center", c: "dimmed", size: "14px", children: o("common.pagination.page_size") }),
|
|
35943
35940
|
size: "xs",
|
|
@@ -35960,7 +35957,7 @@ const k8 = [{
|
|
|
35960
35957
|
const s = (n - 1) * i, c = s + i;
|
|
35961
35958
|
return e.slice(s, c);
|
|
35962
35959
|
}, [e, n, i]);
|
|
35963
|
-
return /* @__PURE__ */ u(
|
|
35960
|
+
return /* @__PURE__ */ u(ke, { children: [
|
|
35964
35961
|
/* @__PURE__ */ r(T8, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
|
|
35965
35962
|
/* @__PURE__ */ u(R, { py: 10, sx: {
|
|
35966
35963
|
width: "100%",
|
|
@@ -36061,7 +36058,7 @@ const k8 = [{
|
|
|
36061
36058
|
const {
|
|
36062
36059
|
panel: e
|
|
36063
36060
|
} = Ie();
|
|
36064
|
-
return /* @__PURE__ */ r(
|
|
36061
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(R, { className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, p: 0, sx: {
|
|
36065
36062
|
border: "1px solid",
|
|
36066
36063
|
borderColor: e.style.border.enabled ? "#e9ecef" : "transparent",
|
|
36067
36064
|
flexGrow: 0,
|
|
@@ -36102,7 +36099,7 @@ const R8 = D(({
|
|
|
36102
36099
|
i(e);
|
|
36103
36100
|
}, [e]);
|
|
36104
36101
|
const o = V8(), l = e !== a;
|
|
36105
|
-
return /* @__PURE__ */ r(
|
|
36102
|
+
return /* @__PURE__ */ r(O, { label: n("visualization.component"), value: a, searchable: !0, onChange: i, data: o, rightSection: /* @__PURE__ */ r(J, { variant: "filled", color: "green", disabled: !l, onClick: () => t(a), styles: {
|
|
36106
36103
|
root: {
|
|
36107
36104
|
pointerEvents: "all"
|
|
36108
36105
|
}
|
|
@@ -36175,7 +36172,7 @@ const E8 = D(() => {
|
|
|
36175
36172
|
overflow: "hidden"
|
|
36176
36173
|
}, children: [
|
|
36177
36174
|
/* @__PURE__ */ r(R8, { submit: a, value: t.type }),
|
|
36178
|
-
/* @__PURE__ */ u(
|
|
36175
|
+
/* @__PURE__ */ u(ke, { children: [
|
|
36179
36176
|
/* @__PURE__ */ r(I, { pb: 10, sx: {
|
|
36180
36177
|
flexGrow: 1,
|
|
36181
36178
|
maxHeight: "100%",
|
|
@@ -36342,7 +36339,7 @@ const B8 = E.forwardRef(function({
|
|
|
36342
36339
|
border: "1px solid #e9ecef"
|
|
36343
36340
|
}, children: [
|
|
36344
36341
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
36345
|
-
/* @__PURE__ */ r(
|
|
36342
|
+
/* @__PURE__ */ r(V, { label: o("common.name"), required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
|
|
36346
36343
|
/* @__PURE__ */ r(X, { label: o("common.data_field"), required: !0, value: t.data_field, onChange: (s) => l("data_field", s) })
|
|
36347
36344
|
] }),
|
|
36348
36345
|
/* @__PURE__ */ r(Ei, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
|
|
@@ -36392,7 +36389,7 @@ const Q8 = D(({
|
|
|
36392
36389
|
} = y(), t = N8();
|
|
36393
36390
|
return t.variableOptions.length === 0 ? /* @__PURE__ */ r(Q8, { model: t }) : /* @__PURE__ */ u(I, { pb: 20, children: [
|
|
36394
36391
|
/* @__PURE__ */ u(v, { justify: "flex-start", children: [
|
|
36395
|
-
/* @__PURE__ */ r(
|
|
36392
|
+
/* @__PURE__ */ r(O, { label: e("panel.variable.labels"), data: t.variableOptions, value: (n = t.selected) == null ? void 0 : n.name, onChange: t.selectByName, maxDropdownHeight: 600, sx: {
|
|
36396
36393
|
flexGrow: 1
|
|
36397
36394
|
} }),
|
|
36398
36395
|
/* @__PURE__ */ r(L, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ r(lt, { size: 16 }), onClick: t.addNew, sx: {
|
|
@@ -36510,8 +36507,8 @@ const U8 = D(({
|
|
|
36510
36507
|
] }),
|
|
36511
36508
|
/* @__PURE__ */ r(S.Panel, { value: "Panel", children: /* @__PURE__ */ r(Da, { children: /* @__PURE__ */ r(S8, {}) }) }),
|
|
36512
36509
|
/* @__PURE__ */ r(S.Panel, { value: "Variables", children: /* @__PURE__ */ r(Da, { children: /* @__PURE__ */ r(H8, {}) }) }),
|
|
36513
|
-
/* @__PURE__ */ r(S.Panel, { value: "Visualization", children: /* @__PURE__ */ r(
|
|
36514
|
-
/* @__PURE__ */ r(S.Panel, { value: "Interactions", children: /* @__PURE__ */ r(
|
|
36510
|
+
/* @__PURE__ */ r(S.Panel, { value: "Visualization", children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(Da, { children: /* @__PURE__ */ r(E8, {}) }) }) }),
|
|
36511
|
+
/* @__PURE__ */ r(S.Panel, { value: "Interactions", children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(Jb, {}) }) })
|
|
36515
36512
|
] })
|
|
36516
36513
|
] });
|
|
36517
36514
|
}), K8 = D(({
|
|
@@ -36864,8 +36861,8 @@ const U8 = D(({
|
|
|
36864
36861
|
overflow: "auto",
|
|
36865
36862
|
position: "relative"
|
|
36866
36863
|
}, children: [
|
|
36867
|
-
/* @__PURE__ */ r(
|
|
36868
|
-
/* @__PURE__ */ r(
|
|
36864
|
+
/* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(eM, { dataSource: e }) }),
|
|
36865
|
+
/* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(rM, { dataSource: e }) })
|
|
36869
36866
|
] }));
|
|
36870
36867
|
function iM({
|
|
36871
36868
|
table_type: e
|
|
@@ -36930,7 +36927,7 @@ const oM = D(({
|
|
|
36930
36927
|
height: "30px"
|
|
36931
36928
|
}
|
|
36932
36929
|
} }),
|
|
36933
|
-
/* @__PURE__ */ r(
|
|
36930
|
+
/* @__PURE__ */ r(O, { leftSection: /* @__PURE__ */ r(k, { ta: "center", c: "dimmed", size: "14px", children: t("common.pagination.page_size") }), size: "xs", styles: cM, data: sM, value: String(n.limit), onChange: (a) => n.setLimit(Number(a)), comboboxProps: {
|
|
36934
36931
|
zIndex: 340
|
|
36935
36932
|
} })
|
|
36936
36933
|
] }),
|
|
@@ -36942,7 +36939,7 @@ const oM = D(({
|
|
|
36942
36939
|
dataSource: e
|
|
36943
36940
|
}) => {
|
|
36944
36941
|
const t = e.dbInfo.tableData;
|
|
36945
|
-
return t.maxPage === 0 ? /* @__PURE__ */ r(k, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: "This table is empty" }) : t.error ? /* @__PURE__ */ r(k, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ r(lM, { visible: !0 }) : /* @__PURE__ */ u(
|
|
36942
|
+
return t.maxPage === 0 ? /* @__PURE__ */ r(k, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: "This table is empty" }) : t.error ? /* @__PURE__ */ r(k, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ r(lM, { visible: !0 }) : /* @__PURE__ */ u(ke, { children: [
|
|
36946
36943
|
/* @__PURE__ */ r(dM, { dataSource: e }),
|
|
36947
36944
|
/* @__PURE__ */ u(R, { py: 10, sx: {
|
|
36948
36945
|
width: "100%",
|
|
@@ -36983,7 +36980,7 @@ const oM = D(({
|
|
|
36983
36980
|
flexGrow: 0,
|
|
36984
36981
|
flexShrink: 0,
|
|
36985
36982
|
position: "relative"
|
|
36986
|
-
}, children: /* @__PURE__ */ r(
|
|
36983
|
+
}, children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(oM, { dataSource: e }) }) }),
|
|
36987
36984
|
/* @__PURE__ */ u(S, { defaultValue: "structure", styles: hM, children: [
|
|
36988
36985
|
/* @__PURE__ */ u(S.List, { children: [
|
|
36989
36986
|
/* @__PURE__ */ r(S.Tab, { value: "structure", leftSection: /* @__PURE__ */ r(Tp, { size: 14 }), children: t("data_source.table_structure_short") }),
|
|
@@ -37107,7 +37104,7 @@ const oM = D(({
|
|
|
37107
37104
|
type: e.type,
|
|
37108
37105
|
key: e.key
|
|
37109
37106
|
}), [a, e.type, e.key]);
|
|
37110
|
-
return /* @__PURE__ */ r(
|
|
37107
|
+
return /* @__PURE__ */ r(O, { size: t, data: l, label: /* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
37111
37108
|
/* @__PURE__ */ r(R, { children: n("data_source.label") }),
|
|
37112
37109
|
d && /* @__PURE__ */ r(nh, { dataSource: d, triggerButtonProps: {
|
|
37113
37110
|
size: "compact-xs",
|
|
@@ -37149,7 +37146,7 @@ const oM = D(({
|
|
|
37149
37146
|
width: "100%"
|
|
37150
37147
|
}, children: [
|
|
37151
37148
|
/* @__PURE__ */ r(A, { mb: -10, variant: "dashed", label: t("query.basics"), labelPosition: "center" }),
|
|
37152
|
-
/* @__PURE__ */ r(
|
|
37149
|
+
/* @__PURE__ */ r(V, { placeholder: t("query.name_description"), label: t("query.name"), required: !0, sx: {
|
|
37153
37150
|
flex: 1
|
|
37154
37151
|
}, value: n, onChange: (o) => {
|
|
37155
37152
|
a(o.currentTarget.value);
|
|
@@ -37611,7 +37608,7 @@ function PM({
|
|
|
37611
37608
|
});
|
|
37612
37609
|
return e.length === 0 ? /* @__PURE__ */ r(R, { sx: {
|
|
37613
37610
|
height: "5em"
|
|
37614
|
-
} }) : /* @__PURE__ */ r(
|
|
37611
|
+
} }) : /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(w, { sx: RM, stickyHeader: !0, stickyHeaderOffset: 0, children: [
|
|
37615
37612
|
/* @__PURE__ */ r(w.Thead, { style: {
|
|
37616
37613
|
backgroundColor: "#F9F9FA"
|
|
37617
37614
|
}, children: n.getHeaderGroups().map((a) => /* @__PURE__ */ r(w.Tr, { children: a.headers.map((i) => /* @__PURE__ */ u(w.Th, { style: {
|
|
@@ -37620,7 +37617,7 @@ function PM({
|
|
|
37620
37617
|
i.isPlaceholder ? null : Fn(i.column.columnDef.header, i.getContext()),
|
|
37621
37618
|
/* @__PURE__ */ r(J, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Ja, {}) })
|
|
37622
37619
|
] }, i.id)) }, a.id)) }),
|
|
37623
|
-
/* @__PURE__ */ r(w.Tbody, { children: n.getRowModel().rows.map((a) => /* @__PURE__ */ r(w.Tr, { children: a.getVisibleCells().map((i) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(
|
|
37620
|
+
/* @__PURE__ */ r(w.Tbody, { children: n.getRowModel().rows.map((a) => /* @__PURE__ */ r(w.Tr, { children: a.getVisibleCells().map((i) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ke, { children: typeof i.getValue() == "object" ? /* @__PURE__ */ r("pre", { children: JSON.stringify(i.getValue(), null, 2) }) : Fn(i.column.columnDef.cell, i.getContext()) }) }, i.id)) }, a.id)) })
|
|
37624
37621
|
] }) });
|
|
37625
37622
|
}
|
|
37626
37623
|
const AM = [{
|
|
@@ -37667,7 +37664,7 @@ const AM = [{
|
|
|
37667
37664
|
return /* @__PURE__ */ u(v, { pt: 10, px: 10, justify: "space-between", children: [
|
|
37668
37665
|
/* @__PURE__ */ u(v, { justify: "flex-start", children: [
|
|
37669
37666
|
!d && /* @__PURE__ */ r(
|
|
37670
|
-
|
|
37667
|
+
O,
|
|
37671
37668
|
{
|
|
37672
37669
|
leftSection: /* @__PURE__ */ r(k, { ta: "center", c: "dimmed", size: "xs", children: o("common.pagination.page_size") }),
|
|
37673
37670
|
size: "xs",
|
|
@@ -37695,7 +37692,7 @@ const AM = [{
|
|
|
37695
37692
|
const s = (n - 1) * i, c = s + i;
|
|
37696
37693
|
return e.slice(s, c);
|
|
37697
37694
|
}, [e, n, i]);
|
|
37698
|
-
return /* @__PURE__ */ r(
|
|
37695
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(I, { gap: 10, styles: {
|
|
37699
37696
|
root: {
|
|
37700
37697
|
height: "100%",
|
|
37701
37698
|
overflow: "hidden"
|
|
@@ -38011,7 +38008,7 @@ const AM = [{
|
|
|
38011
38008
|
n(s, c);
|
|
38012
38009
|
}, [n]);
|
|
38013
38010
|
return /* @__PURE__ */ r(
|
|
38014
|
-
|
|
38011
|
+
O,
|
|
38015
38012
|
{
|
|
38016
38013
|
size: "xs",
|
|
38017
38014
|
variant: "unstyled",
|
|
@@ -38099,11 +38096,11 @@ const AM = [{
|
|
|
38099
38096
|
queryModel: e
|
|
38100
38097
|
}) => {
|
|
38101
38098
|
const t = e.config, i = e.datasource.mericoMetricInfo.metricDetail, o = i.trendingDateCol, l = t.timeQuery.enabled;
|
|
38102
|
-
return i.supportTrending ? /* @__PURE__ */ r(
|
|
38099
|
+
return i.supportTrending ? /* @__PURE__ */ r(ze, { size: "xs", color: "red", checked: l, onChange: (s) => t.setTimeQueryEnabled(s.currentTarget.checked), styles: {
|
|
38103
38100
|
track: {
|
|
38104
38101
|
cursor: "pointer"
|
|
38105
38102
|
}
|
|
38106
|
-
} }) : /* @__PURE__ */ r(ae, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(
|
|
38103
|
+
} }) : /* @__PURE__ */ r(ae, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(ze, { size: "xs", color: "red", disabled: !o }) }) });
|
|
38107
38104
|
}), t9 = D(({
|
|
38108
38105
|
queryModel: e
|
|
38109
38106
|
}) => {
|
|
@@ -38209,7 +38206,7 @@ const AM = [{
|
|
|
38209
38206
|
};
|
|
38210
38207
|
return /* @__PURE__ */ u(F, { children: [
|
|
38211
38208
|
/* @__PURE__ */ r(Wt, { size: "sm", label: "分组聚合维度", description: "指标在查询时按照哪些维度进行聚合计算。最多支持两个维度的聚合计算。若选择按时间序列展示,则仅可选择一个聚合维度。", data: l, searchable: !0, styles: r9, renderOption: a9, rightSection: o ? /* @__PURE__ */ r(Br, { size: "xs" }) : null, value: [...t.groupByValues], onChange: s, maxValues: t.timeQuery.enabled ? 1 : 2, placeholder: t.timeQuery.enabled ? "仅可选一个维度" : "最多选两个维度", disabled: o }),
|
|
38212
|
-
/* @__PURE__ */ r(
|
|
38209
|
+
/* @__PURE__ */ r(ze, { labelPosition: "left", label: "聚合维度为空时,自动补零", size: "sm", color: "red", checked: t.useDefaultValues, onChange: (c) => t.setUseDefaultValues(c.currentTarget.checked), disabled: l.length === 0 })
|
|
38213
38210
|
] });
|
|
38214
38211
|
}), o9 = (e) => {
|
|
38215
38212
|
if (!e)
|
|
@@ -38396,12 +38393,12 @@ const AM = [{
|
|
|
38396
38393
|
loading: c,
|
|
38397
38394
|
error: d
|
|
38398
38395
|
} = i;
|
|
38399
|
-
return /* @__PURE__ */ r(
|
|
38400
|
-
d ? /* @__PURE__ */ r(ae, { label: d, children: /* @__PURE__ */ r(
|
|
38396
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(v, { justify: "flex-end", gap: 12, align: "flex-end", children: [
|
|
38397
|
+
d ? /* @__PURE__ */ r(ae, { label: d, children: /* @__PURE__ */ r(O, { size: "xs", label: "指标", error: !0, styles: {
|
|
38401
38398
|
root: {
|
|
38402
38399
|
flexGrow: 1
|
|
38403
38400
|
}
|
|
38404
|
-
} }) }) : /* @__PURE__ */ r(
|
|
38401
|
+
} }) }) : /* @__PURE__ */ r(O, { size: "xs", label: "指标", data: o, renderOption: g9, styles: {
|
|
38405
38402
|
root: {
|
|
38406
38403
|
flexGrow: 1
|
|
38407
38404
|
}
|
|
@@ -38425,7 +38422,7 @@ const AM = [{
|
|
|
38425
38422
|
flexGrow: 0,
|
|
38426
38423
|
flexShrink: 0
|
|
38427
38424
|
}
|
|
38428
|
-
}, children: /* @__PURE__ */ r(
|
|
38425
|
+
}, children: /* @__PURE__ */ r(V, { size: "xs", placeholder: t("query.name_description"), label: t("query.name"), value: e.name, onChange: (n) => {
|
|
38429
38426
|
e.setName(n.currentTarget.value);
|
|
38430
38427
|
}, styles: {
|
|
38431
38428
|
root: {
|
|
@@ -38505,7 +38502,7 @@ const AM = [{
|
|
|
38505
38502
|
/* @__PURE__ */ u(v, { sx: {
|
|
38506
38503
|
alignItems: "end"
|
|
38507
38504
|
}, gap: 40, children: [
|
|
38508
|
-
/* @__PURE__ */ r(
|
|
38505
|
+
/* @__PURE__ */ r(V, { label: a(h ? "sql_snippet.key_occupied" : "sql_snippet.key"), value: l, onChange: (M) => {
|
|
38509
38506
|
s(M.currentTarget.value);
|
|
38510
38507
|
}, sx: {
|
|
38511
38508
|
flexGrow: "1 !important"
|
|
@@ -38680,9 +38677,9 @@ const AM = [{
|
|
|
38680
38677
|
const o = e.config;
|
|
38681
38678
|
return /* @__PURE__ */ u(I, { children: [
|
|
38682
38679
|
/* @__PURE__ */ r(A, { mt: 8, mb: 0, label: t("view.component.tabs.tabs_settings"), labelPosition: "center" }),
|
|
38683
|
-
/* @__PURE__ */ r(
|
|
38684
|
-
/* @__PURE__ */ r(
|
|
38685
|
-
/* @__PURE__ */ r(
|
|
38680
|
+
/* @__PURE__ */ r(O, { label: t("common.tabs.variant.label"), value: o.variant, onChange: o.setVariant, data: a }),
|
|
38681
|
+
/* @__PURE__ */ r(O, { label: t("common.tabs.orientation.label"), value: o.orientation, onChange: o.setOrientation, data: i }),
|
|
38682
|
+
/* @__PURE__ */ r(ze, { label: t("common.tabs.grow_tabs"), checked: o.grow, onChange: (l) => o.setGrow(l.currentTarget.checked) })
|
|
38686
38683
|
] });
|
|
38687
38684
|
}), k9 = ({
|
|
38688
38685
|
disabled: e,
|
|
@@ -38709,7 +38706,7 @@ const AM = [{
|
|
|
38709
38706
|
} = y(), [a, {
|
|
38710
38707
|
setTrue: i,
|
|
38711
38708
|
setFalse: o
|
|
38712
|
-
}] =
|
|
38709
|
+
}] = De(), [l, s] = Q(e ?? qa), c = (b) => {
|
|
38713
38710
|
s({
|
|
38714
38711
|
...l,
|
|
38715
38712
|
enabled: b
|
|
@@ -38762,14 +38759,14 @@ const AM = [{
|
|
|
38762
38759
|
return /* @__PURE__ */ u(I, { children: [
|
|
38763
38760
|
/* @__PURE__ */ r(A, { mt: 8, label: t("view.component.modal.modal_settings"), labelPosition: "center" }),
|
|
38764
38761
|
/* @__PURE__ */ u(Ue, { gap: 10, children: [
|
|
38765
|
-
/* @__PURE__ */ r(
|
|
38762
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.title"), value: a, onChange: C.noop, disabled: !0, sx: {
|
|
38766
38763
|
flexGrow: 1
|
|
38767
38764
|
} }),
|
|
38768
38765
|
/* @__PURE__ */ r(z9, { value: n.custom_modal_title, onChange: n.custom_modal_title.replace })
|
|
38769
38766
|
] }),
|
|
38770
38767
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
38771
|
-
/* @__PURE__ */ r(
|
|
38772
|
-
/* @__PURE__ */ r(
|
|
38768
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.width"), value: n.width, onChange: (i) => n.setWidth(i.currentTarget.value), placeholder: "600px / 50vw" }),
|
|
38769
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.height"), value: n.height, onChange: (i) => n.setHeight(i.currentTarget.value), placeholder: "600px / 50vw" })
|
|
38773
38770
|
] })
|
|
38774
38771
|
] });
|
|
38775
38772
|
}), D9 = D(({
|
|
@@ -38797,10 +38794,10 @@ const AM = [{
|
|
|
38797
38794
|
return e ? /* @__PURE__ */ u(I, { sx: {
|
|
38798
38795
|
position: "relative"
|
|
38799
38796
|
}, children: [
|
|
38800
|
-
/* @__PURE__ */ r(
|
|
38797
|
+
/* @__PURE__ */ r(V, { label: t("common.name"), value: e.name, onChange: (i) => {
|
|
38801
38798
|
e.setName(i.currentTarget.value);
|
|
38802
38799
|
} }),
|
|
38803
|
-
/* @__PURE__ */ r(
|
|
38800
|
+
/* @__PURE__ */ r(O, { label: t("common.type"), comboboxProps: {
|
|
38804
38801
|
withinPortal: !0,
|
|
38805
38802
|
zIndex: 320
|
|
38806
38803
|
}, value: e.type, onChange: e.setType, data: a }),
|
|
@@ -39172,7 +39169,7 @@ const Z9 = {
|
|
|
39172
39169
|
}), [T]);
|
|
39173
39170
|
const M = async () => {
|
|
39174
39171
|
await a(T.json, T.content.json);
|
|
39175
|
-
},
|
|
39172
|
+
}, $ = Ut(Xi, []), q = Uu($);
|
|
39176
39173
|
return X9(T.content.changed), Nl("@devtable/dashboard editor", {
|
|
39177
39174
|
context: e,
|
|
39178
39175
|
dashboard: t,
|
|
@@ -39194,7 +39191,7 @@ const Z9 = {
|
|
|
39194
39191
|
inEditMode: !0
|
|
39195
39192
|
}, children: [
|
|
39196
39193
|
/* @__PURE__ */ r(CI, {}),
|
|
39197
|
-
/* @__PURE__ */ r(sn.Provider, { value:
|
|
39194
|
+
/* @__PURE__ */ r(sn.Provider, { value: $, children: /* @__PURE__ */ u(na, { configure: q, children: [
|
|
39198
39195
|
/* @__PURE__ */ u(rt, { padding: 0, navbar: {
|
|
39199
39196
|
width: {
|
|
39200
39197
|
base: 200,
|
|
@@ -39449,7 +39446,7 @@ const rL = ({
|
|
|
39449
39446
|
}, [h, T.content.views.firstVisibleTabsViewActiveTabStr]), E.useEffect(() => {
|
|
39450
39447
|
d && T.content.views.setFirstVisibleTabsViewActiveTab(d);
|
|
39451
39448
|
}, [d, T.content.views.setFirstVisibleTabsViewActiveTab]);
|
|
39452
|
-
const M = Ut(Xi, [T]),
|
|
39449
|
+
const M = Ut(Xi, [T]), $ = Uu(M);
|
|
39453
39450
|
return Nl("@devtable/dashboard render", {
|
|
39454
39451
|
context: e,
|
|
39455
39452
|
dashboard: t,
|
|
@@ -39474,7 +39471,7 @@ const rL = ({
|
|
|
39474
39471
|
setFullScreenPanelID: l
|
|
39475
39472
|
}, children: /* @__PURE__ */ r(ur.Provider, { value: {
|
|
39476
39473
|
inEditMode: !1
|
|
39477
|
-
}, children: /* @__PURE__ */ r(R, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(sn.Provider, { value: M, children: /* @__PURE__ */ r(na, { configure:
|
|
39474
|
+
}, children: /* @__PURE__ */ r(R, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(sn.Provider, { value: M, children: /* @__PURE__ */ r(na, { configure: $, children: T.content.views.visibleViews.map((q) => /* @__PURE__ */ r(mo, { view: q }, q.id)) }) }) }) }) }) }) }) }) }) }) }) }) }) });
|
|
39478
39475
|
}, pV = D(rL), mV = () => Promise.resolve().then(() => yg).then(({
|
|
39479
39476
|
version: e
|
|
39480
39477
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|