@devtable/dashboard 14.53.2 → 14.53.4
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 +497 -496
- package/dist/dashboard.umd.js +4 -4
- 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.4", 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
|
] });
|
|
@@ -7672,7 +7669,11 @@ function Ky({
|
|
|
7672
7669
|
} = y(), i = (d) => {
|
|
7673
7670
|
t({
|
|
7674
7671
|
...e,
|
|
7675
|
-
output: d
|
|
7672
|
+
output: d,
|
|
7673
|
+
absolute: !1,
|
|
7674
|
+
average: !1,
|
|
7675
|
+
trimMantissa: !1,
|
|
7676
|
+
mantissa: 0
|
|
7676
7677
|
});
|
|
7677
7678
|
}, o = (d) => {
|
|
7678
7679
|
if (typeof d == "string")
|
|
@@ -7702,7 +7703,7 @@ function Ky({
|
|
|
7702
7703
|
};
|
|
7703
7704
|
return /* @__PURE__ */ u(I, { ref: n, children: [
|
|
7704
7705
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
7705
|
-
/* @__PURE__ */ r(
|
|
7706
|
+
/* @__PURE__ */ r(O, { label: a("numbro.format.label"), data: [{
|
|
7706
7707
|
label: "1234",
|
|
7707
7708
|
value: "number"
|
|
7708
7709
|
}, {
|
|
@@ -7711,13 +7712,13 @@ function Ky({
|
|
|
7711
7712
|
}], value: e.output, onChange: ye(i), sx: {
|
|
7712
7713
|
flexGrow: 1
|
|
7713
7714
|
} }),
|
|
7714
|
-
/* @__PURE__ */ r(
|
|
7715
|
+
/* @__PURE__ */ r(ze, { label: /* @__PURE__ */ u(I, { gap: 0, children: [
|
|
7715
7716
|
/* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.absolute") }),
|
|
7716
7717
|
/* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.absolute_description") })
|
|
7717
7718
|
] }), checked: e.absolute, onChange: c, sx: {
|
|
7718
7719
|
flexGrow: 1
|
|
7719
7720
|
}, styles: _a }),
|
|
7720
|
-
/* @__PURE__ */ r(
|
|
7721
|
+
/* @__PURE__ */ r(ze, { label: /* @__PURE__ */ u(I, { gap: 0, children: [
|
|
7721
7722
|
/* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.abbreviation") }),
|
|
7722
7723
|
/* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.abbreviation_description") })
|
|
7723
7724
|
] }), checked: e.average, onChange: s, disabled: e.output !== "number", sx: {
|
|
@@ -7726,7 +7727,7 @@ function Ky({
|
|
|
7726
7727
|
] }),
|
|
7727
7728
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
7728
7729
|
/* @__PURE__ */ r(re, { label: a("numbro.format.mantissa"), defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: o }),
|
|
7729
|
-
/* @__PURE__ */ r(
|
|
7730
|
+
/* @__PURE__ */ r(ze, { label: /* @__PURE__ */ u(I, { gap: 0, children: [
|
|
7730
7731
|
/* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.trim_mantissa") }),
|
|
7731
7732
|
/* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.trim_mantissa_description") })
|
|
7732
7733
|
] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: _a }),
|
|
@@ -7746,7 +7747,7 @@ const qt = E.forwardRef(Ky), Yy = ({
|
|
|
7746
7747
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
7747
7748
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
7748
7749
|
field: a
|
|
7749
|
-
}) => /* @__PURE__ */ r(
|
|
7750
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), sx: {
|
|
7750
7751
|
flex: 1
|
|
7751
7752
|
}, ...a }) }),
|
|
7752
7753
|
/* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -7812,7 +7813,7 @@ function Xy({
|
|
|
7812
7813
|
/* @__PURE__ */ r(S.Panel, { value: "Y Axis", children: /* @__PURE__ */ r(Yy, { control: l, watch: c }) }),
|
|
7813
7814
|
/* @__PURE__ */ r(S.Panel, { value: "Legend", children: /* @__PURE__ */ r(Fy, { control: l, watch: c }) }),
|
|
7814
7815
|
/* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(Hy, { control: l, watch: c }) }),
|
|
7815
|
-
/* @__PURE__ */ r(S.Panel, { value: "Style", children: /* @__PURE__ */ r(
|
|
7816
|
+
/* @__PURE__ */ r(S.Panel, { value: "Style", children: /* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "color", control: l, render: ({
|
|
7816
7817
|
field: p
|
|
7817
7818
|
}) => /* @__PURE__ */ r(Ze, { label: t("chart.color.label"), ...p }) }) }) }),
|
|
7818
7819
|
/* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(By, { variables: i, control: l, watch: c }) }),
|
|
@@ -8166,8 +8167,8 @@ const Ii = {
|
|
|
8166
8167
|
width: b,
|
|
8167
8168
|
height: _
|
|
8168
8169
|
} = e.viewport, x = i.payloadForSQL, T = () => {
|
|
8169
|
-
a.forEach((
|
|
8170
|
-
n.runInteraction(
|
|
8170
|
+
a.forEach(($) => {
|
|
8171
|
+
n.runInteraction($.id, {});
|
|
8171
8172
|
});
|
|
8172
8173
|
}, M = h ? `compact-${p}` : p;
|
|
8173
8174
|
return /* @__PURE__ */ r(St, { sx: {
|
|
@@ -8205,7 +8206,7 @@ const Ii = {
|
|
|
8205
8206
|
label: l(`style.size.${d}`),
|
|
8206
8207
|
value: d
|
|
8207
8208
|
})), [s.language]);
|
|
8208
|
-
return /* @__PURE__ */ r(
|
|
8209
|
+
return /* @__PURE__ */ r(O, { ref: o, data: c, label: e, value: t, onChange: ye(n), sx: a, disabled: !0 });
|
|
8209
8210
|
}), y_ = [{
|
|
8210
8211
|
label: "Filled",
|
|
8211
8212
|
value: "filled"
|
|
@@ -8255,17 +8256,17 @@ function __({
|
|
|
8255
8256
|
/* @__PURE__ */ u(I, { children: [
|
|
8256
8257
|
/* @__PURE__ */ r(f, { control: o, name: "content", render: ({
|
|
8257
8258
|
field: h
|
|
8258
|
-
}) => /* @__PURE__ */ r(
|
|
8259
|
+
}) => /* @__PURE__ */ r(V, { label: "Content Template", description: "Filter values & context entries are supported", ...h, required: !0 }) }),
|
|
8259
8260
|
/* @__PURE__ */ r(A, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
8260
|
-
/* @__PURE__ */ u(
|
|
8261
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
8261
8262
|
/* @__PURE__ */ r(f, { control: o, name: "variant", render: ({
|
|
8262
8263
|
field: h
|
|
8263
|
-
}) => /* @__PURE__ */ r(
|
|
8264
|
+
}) => /* @__PURE__ */ r(O, { label: "Variant", data: y_, ...h }) }),
|
|
8264
8265
|
/* @__PURE__ */ r(f, { control: o, name: "color", render: ({
|
|
8265
8266
|
field: h
|
|
8266
8267
|
}) => /* @__PURE__ */ r(f_, { label: "Theme", ...h }) })
|
|
8267
8268
|
] }),
|
|
8268
|
-
/* @__PURE__ */ u(
|
|
8269
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
8269
8270
|
/* @__PURE__ */ r(f, { control: o, name: "size", render: ({
|
|
8270
8271
|
field: h
|
|
8271
8272
|
}) => /* @__PURE__ */ r(Pa, { label: "Size", ...h }) }),
|
|
@@ -8273,7 +8274,7 @@ function __({
|
|
|
8273
8274
|
field: h
|
|
8274
8275
|
}) => /* @__PURE__ */ r(ee, { label: "Compact", checked: h.value, onChange: (p) => h.onChange(p.currentTarget.checked), mt: 26 }) })
|
|
8275
8276
|
] }),
|
|
8276
|
-
/* @__PURE__ */ u(
|
|
8277
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
8277
8278
|
/* @__PURE__ */ r(f, { control: o, name: "horizontal_align", render: ({
|
|
8278
8279
|
field: h
|
|
8279
8280
|
}) => /* @__PURE__ */ r(Di, { ...h }) }),
|
|
@@ -8396,10 +8397,10 @@ const C_ = {
|
|
|
8396
8397
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
8397
8398
|
/* @__PURE__ */ r(f, { name: "visualMap.text.1", control: a, render: ({
|
|
8398
8399
|
field: d
|
|
8399
|
-
}) => /* @__PURE__ */ r(
|
|
8400
|
+
}) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.min_text"), ...d }) }),
|
|
8400
8401
|
/* @__PURE__ */ r(f, { name: "visualMap.text.0", control: a, render: ({
|
|
8401
8402
|
field: d
|
|
8402
|
-
}) => /* @__PURE__ */ r(
|
|
8403
|
+
}) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.max_text"), ...d }) })
|
|
8403
8404
|
] }),
|
|
8404
8405
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
8405
8406
|
/* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
|
|
@@ -8442,7 +8443,7 @@ const C_ = {
|
|
|
8442
8443
|
} = e, o = t === "horizontal" ? n : a, {
|
|
8443
8444
|
panel: l
|
|
8444
8445
|
} = Me(), s = ta(e, l.variableValueMap);
|
|
8445
|
-
return /* @__PURE__ */ r(
|
|
8446
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(We, { echarts: Ne, option: {
|
|
8446
8447
|
visualMap: s
|
|
8447
8448
|
}, style: {
|
|
8448
8449
|
width: "100%",
|
|
@@ -8486,20 +8487,20 @@ const C_ = {
|
|
|
8486
8487
|
/* @__PURE__ */ r(Ye.Dropdown, { children: /* @__PURE__ */ u(v, { wrap: "nowrap", gap: 8, children: [
|
|
8487
8488
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.value`, control: a, render: ({
|
|
8488
8489
|
field: p
|
|
8489
|
-
}) => /* @__PURE__ */ r(
|
|
8490
|
+
}) => /* @__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
8491
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.symbol`, control: a, render: ({
|
|
8491
8492
|
field: p
|
|
8492
|
-
}) => /* @__PURE__ */ r(
|
|
8493
|
+
}) => /* @__PURE__ */ r(O, { size: "xs", data: Ao.lower, ...p, onChange: ye((g) => p.onChange(g)) }) }),
|
|
8493
8494
|
/* @__PURE__ */ r(k, { c: "dimmed", size: "sm", sx: {
|
|
8494
8495
|
userSelect: "none",
|
|
8495
8496
|
cursor: "default"
|
|
8496
8497
|
}, children: n("common.value").toLowerCase() }),
|
|
8497
8498
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.symbol`, control: a, render: ({
|
|
8498
8499
|
field: p
|
|
8499
|
-
}) => /* @__PURE__ */ r(
|
|
8500
|
+
}) => /* @__PURE__ */ r(O, { size: "xs", data: Ao.upper, ...p, onChange: ye((g) => p.onChange(g)) }) }),
|
|
8500
8501
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.value`, control: a, render: ({
|
|
8501
8502
|
field: p
|
|
8502
|
-
}) => /* @__PURE__ */ r(
|
|
8503
|
+
}) => /* @__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
8504
|
] }) })
|
|
8504
8505
|
] }) });
|
|
8505
8506
|
}, I_ = ({
|
|
@@ -8517,7 +8518,7 @@ const C_ = {
|
|
|
8517
8518
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(D_, { form: e, index: t }) }),
|
|
8518
8519
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.label`, control: a, render: ({
|
|
8519
8520
|
field: o
|
|
8520
|
-
}) => /* @__PURE__ */ r(
|
|
8521
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", placeholder: "", ...o, onChange: (l) => o.onChange(l.currentTarget.value) }) }) }),
|
|
8521
8522
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.color`, control: a, render: ({
|
|
8522
8523
|
field: o
|
|
8523
8524
|
}) => /* @__PURE__ */ r(rn, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
|
|
@@ -8632,7 +8633,7 @@ const C_ = {
|
|
|
8632
8633
|
return;
|
|
8633
8634
|
}
|
|
8634
8635
|
};
|
|
8635
|
-
return /* @__PURE__ */ r(
|
|
8636
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(I, { children: [
|
|
8636
8637
|
/* @__PURE__ */ r(T_, { visualMap: i }),
|
|
8637
8638
|
/* @__PURE__ */ r(f, { name: "visualMap.type", control: a, render: ({
|
|
8638
8639
|
field: s
|
|
@@ -9005,19 +9006,19 @@ function X_(e) {
|
|
|
9005
9006
|
};
|
|
9006
9007
|
}
|
|
9007
9008
|
function Z_(e, t, n) {
|
|
9008
|
-
const a = n.reduce((M,
|
|
9009
|
-
const
|
|
9010
|
-
return M[
|
|
9009
|
+
const a = n.reduce((M, $) => {
|
|
9010
|
+
const q = Xt($, t);
|
|
9011
|
+
return M[$.name] = kt($, q), M;
|
|
9011
9012
|
}, {}), i = ta(e.visualMap, a), {
|
|
9012
9013
|
min: o,
|
|
9013
9014
|
max: l
|
|
9014
9015
|
} = 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: [
|
|
9016
|
+
const $ = C.get(M, c.columnKey), q = C.get(M, d.columnKey), W = Y_(M[c.columnKey]), G = {
|
|
9017
|
+
value: [$, q, W]
|
|
9017
9018
|
}, {
|
|
9018
9019
|
followVisualMap: oe,
|
|
9019
9020
|
color: Z
|
|
9020
|
-
} = fi(
|
|
9021
|
+
} = fi(q, o, l, e.visualMap);
|
|
9021
9022
|
return oe || (G.visualMap = !1, G.itemStyle = {
|
|
9022
9023
|
color: Z
|
|
9023
9024
|
}), G;
|
|
@@ -9064,8 +9065,8 @@ function ev({
|
|
|
9064
9065
|
const [x, T] = _.value, M = C.get(s, x, {
|
|
9065
9066
|
error: "rowData is not found"
|
|
9066
9067
|
});
|
|
9067
|
-
c.forEach((
|
|
9068
|
-
i.runInteraction(
|
|
9068
|
+
c.forEach(($) => {
|
|
9069
|
+
i.runInteraction($.id, {
|
|
9069
9070
|
..._,
|
|
9070
9071
|
rowData: M
|
|
9071
9072
|
});
|
|
@@ -9125,7 +9126,7 @@ function rv({
|
|
|
9125
9126
|
}, ...a }) }) }),
|
|
9126
9127
|
/* @__PURE__ */ r(f, { name: "calendar.locale", control: e, render: ({
|
|
9127
9128
|
field: a
|
|
9128
|
-
}) => /* @__PURE__ */ r(
|
|
9129
|
+
}) => /* @__PURE__ */ r(O, { label: n("viz.calendar_heatmap.calendar.locale"), data: nv, sx: {
|
|
9129
9130
|
flex: 1
|
|
9130
9131
|
}, ...a }) })
|
|
9131
9132
|
] });
|
|
@@ -9146,7 +9147,7 @@ function av({
|
|
|
9146
9147
|
}, ...a }) }),
|
|
9147
9148
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
9148
9149
|
field: a
|
|
9149
|
-
}) => /* @__PURE__ */ r(
|
|
9150
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
9150
9151
|
flex: 1
|
|
9151
9152
|
}, ...a }) })
|
|
9152
9153
|
] }),
|
|
@@ -9170,7 +9171,7 @@ const iv = ({
|
|
|
9170
9171
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
9171
9172
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
9172
9173
|
field: a
|
|
9173
|
-
}) => /* @__PURE__ */ r(
|
|
9174
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
9174
9175
|
flex: 1
|
|
9175
9176
|
}, ...a }) }),
|
|
9176
9177
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -9344,7 +9345,7 @@ const dv = {
|
|
|
9344
9345
|
description: a("chart.series.line.area_style.origin.end.description"),
|
|
9345
9346
|
value: "end"
|
|
9346
9347
|
}], [i.language]);
|
|
9347
|
-
return /* @__PURE__ */ r(
|
|
9348
|
+
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
9349
|
}), qo = te(({
|
|
9349
9350
|
value: e,
|
|
9350
9351
|
onChange: t,
|
|
@@ -9372,7 +9373,7 @@ const dv = {
|
|
|
9372
9373
|
} }),
|
|
9373
9374
|
a("chart.series.line.area_style.label")
|
|
9374
9375
|
] }), labelPosition: "center" }),
|
|
9375
|
-
/* @__PURE__ */ r(
|
|
9376
|
+
/* @__PURE__ */ r(ze, { label: a("chart.series.line.area_style.enabled"), checked: e.enabled, onChange: (o) => i("enabled")(o.currentTarget.checked) }),
|
|
9376
9377
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
9377
9378
|
/* @__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
9379
|
/* @__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 +9438,7 @@ const Nc = te(({
|
|
|
9437
9438
|
} = t;
|
|
9438
9439
|
return /* @__PURE__ */ u(v, { gap: "xs", grow: !0, align: "flex-end", children: [
|
|
9439
9440
|
/* @__PURE__ */ r(
|
|
9440
|
-
|
|
9441
|
+
O,
|
|
9441
9442
|
{
|
|
9442
9443
|
ref: i,
|
|
9443
9444
|
label: e,
|
|
@@ -10420,7 +10421,7 @@ function rx({
|
|
|
10420
10421
|
hide_in_legend: _,
|
|
10421
10422
|
areaStyle: x,
|
|
10422
10423
|
...T
|
|
10423
|
-
}, M,
|
|
10424
|
+
}, M, $, q, W) {
|
|
10424
10425
|
const G = t.type !== "category", oe = {
|
|
10425
10426
|
label: {
|
|
10426
10427
|
show: !!i,
|
|
@@ -10432,7 +10433,7 @@ function rx({
|
|
|
10432
10433
|
yAxisIndex: a,
|
|
10433
10434
|
stack: h,
|
|
10434
10435
|
color: p,
|
|
10435
|
-
symbolSize: nx(b,
|
|
10436
|
+
symbolSize: nx(b, $, e, q),
|
|
10436
10437
|
hide_in_legend: _,
|
|
10437
10438
|
labelLayout: {
|
|
10438
10439
|
hideOverlap: !0
|
|
@@ -10465,7 +10466,7 @@ function rx({
|
|
|
10465
10466
|
}), !s || s === e)
|
|
10466
10467
|
return oe.data = ex({
|
|
10467
10468
|
dataTemplate: M,
|
|
10468
|
-
data:
|
|
10469
|
+
data: $,
|
|
10469
10470
|
aggregation_on_value: d,
|
|
10470
10471
|
x_axis_data_key: e,
|
|
10471
10472
|
y_axis_data_key: n,
|
|
@@ -10473,7 +10474,7 @@ function rx({
|
|
|
10473
10474
|
}), oe;
|
|
10474
10475
|
const Z = tx({
|
|
10475
10476
|
group_by_key: s,
|
|
10476
|
-
data:
|
|
10477
|
+
data: $,
|
|
10477
10478
|
x_axis_data_key: e,
|
|
10478
10479
|
y_axis_data_key: n
|
|
10479
10480
|
});
|
|
@@ -10527,13 +10528,13 @@ function lx(e, t, n, a) {
|
|
|
10527
10528
|
}) => {
|
|
10528
10529
|
if (Array.isArray(x) && x.length === 2 && (x = x[1]), !b)
|
|
10529
10530
|
return x;
|
|
10530
|
-
const T = o[b] ?? "", M = i[b],
|
|
10531
|
+
const T = o[b] ?? "", M = i[b], $ = a[M] ?? a.default;
|
|
10531
10532
|
return `
|
|
10532
10533
|
<tr>
|
|
10533
10534
|
<td>${_}</td>
|
|
10534
10535
|
<th style="text-align: right; padding: 0 1em;">${b}</th>
|
|
10535
10536
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
10536
|
-
${
|
|
10537
|
+
${$({
|
|
10537
10538
|
value: x
|
|
10538
10539
|
})}
|
|
10539
10540
|
</td>
|
|
@@ -10734,8 +10735,8 @@ function gx({
|
|
|
10734
10735
|
const M = C.get(s, T.name, {
|
|
10735
10736
|
error: "rowData is not found"
|
|
10736
10737
|
});
|
|
10737
|
-
c.forEach((
|
|
10738
|
-
i.runInteraction(
|
|
10738
|
+
c.forEach(($) => {
|
|
10739
|
+
i.runInteraction($.id, {
|
|
10739
10740
|
...T,
|
|
10740
10741
|
rowData: M
|
|
10741
10742
|
});
|
|
@@ -10798,24 +10799,24 @@ function bx({
|
|
|
10798
10799
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
10799
10800
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.name`, control: e, render: ({
|
|
10800
10801
|
field: s
|
|
10801
|
-
}) => /* @__PURE__ */ r(
|
|
10802
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.reference_area.label"), required: !0, sx: {
|
|
10802
10803
|
flex: 1
|
|
10803
10804
|
}, ...s }) }),
|
|
10804
10805
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.color`, control: e, render: ({
|
|
10805
10806
|
field: s
|
|
10806
|
-
}) => /* @__PURE__ */ r(
|
|
10807
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.color.label"), required: !0, sx: {
|
|
10807
10808
|
flex: 1
|
|
10808
10809
|
}, ...s }) })
|
|
10809
10810
|
] }),
|
|
10810
10811
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
10811
10812
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.type`, control: e, render: ({
|
|
10812
10813
|
field: s
|
|
10813
|
-
}) => /* @__PURE__ */ r(
|
|
10814
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.type.label"), required: !0, data: o, sx: {
|
|
10814
10815
|
flex: 1
|
|
10815
10816
|
}, ...s }) }),
|
|
10816
10817
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.direction`, control: e, render: ({
|
|
10817
10818
|
field: s
|
|
10818
|
-
}) => /* @__PURE__ */ r(
|
|
10819
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.direction.label"), required: !0, data: l, sx: {
|
|
10819
10820
|
flex: 1
|
|
10820
10821
|
}, ...s }) })
|
|
10821
10822
|
] }),
|
|
@@ -10823,12 +10824,12 @@ function bx({
|
|
|
10823
10824
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
10824
10825
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.y_keys.upper`, control: e, render: ({
|
|
10825
10826
|
field: s
|
|
10826
|
-
}) => /* @__PURE__ */ r(
|
|
10827
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.boundary.upper"), required: !0, data: n, sx: {
|
|
10827
10828
|
flex: 1
|
|
10828
10829
|
}, ...s }) }),
|
|
10829
10830
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.y_keys.lower`, control: e, render: ({
|
|
10830
10831
|
field: s
|
|
10831
|
-
}) => /* @__PURE__ */ r(
|
|
10832
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.boundary.lower"), required: !0, data: n, sx: {
|
|
10832
10833
|
flex: 1
|
|
10833
10834
|
}, ...s }) })
|
|
10834
10835
|
] })
|
|
@@ -10881,7 +10882,7 @@ const Yn = te(({
|
|
|
10881
10882
|
label: o("chart.series.line.type.dotted"),
|
|
10882
10883
|
value: "dotted"
|
|
10883
10884
|
}], [l.language]);
|
|
10884
|
-
return /* @__PURE__ */ r(
|
|
10885
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("chart.series.line.type.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
10885
10886
|
});
|
|
10886
10887
|
function _x({
|
|
10887
10888
|
control: e,
|
|
@@ -10899,18 +10900,18 @@ function _x({
|
|
|
10899
10900
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
10900
10901
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
10901
10902
|
field: s
|
|
10902
|
-
}) => /* @__PURE__ */ r(
|
|
10903
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
10903
10904
|
flex: 1
|
|
10904
10905
|
}, ...s }) }),
|
|
10905
10906
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
10906
10907
|
field: s
|
|
10907
|
-
}) => /* @__PURE__ */ r(
|
|
10908
|
+
}) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
|
|
10908
10909
|
flex: 1
|
|
10909
10910
|
}, ...s }) })
|
|
10910
10911
|
] }),
|
|
10911
10912
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
10912
10913
|
field: s
|
|
10913
|
-
}) => /* @__PURE__ */ r(
|
|
10914
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
10914
10915
|
flex: 1
|
|
10915
10916
|
}, ...s }) }),
|
|
10916
10917
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -10928,7 +10929,7 @@ function _x({
|
|
|
10928
10929
|
onChange: c,
|
|
10929
10930
|
...d
|
|
10930
10931
|
}
|
|
10931
|
-
}) => /* @__PURE__ */ r(
|
|
10932
|
+
}) => /* @__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
10933
|
if (!h) {
|
|
10933
10934
|
c(0);
|
|
10934
10935
|
return;
|
|
@@ -10951,7 +10952,7 @@ function _x({
|
|
|
10951
10952
|
flexGrow: 1
|
|
10952
10953
|
}, ...s }) })
|
|
10953
10954
|
] }),
|
|
10954
|
-
/* @__PURE__ */ r(
|
|
10955
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
10955
10956
|
field: s
|
|
10956
10957
|
}) => /* @__PURE__ */ r(Ze, { label: o("chart.color.label"), ...s }) }) }),
|
|
10957
10958
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: o("chart.behavior.label"), labelPosition: "center" }),
|
|
@@ -11024,7 +11025,7 @@ function xx({
|
|
|
11024
11025
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
11025
11026
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.name`, control: e, render: ({
|
|
11026
11027
|
field: c
|
|
11027
|
-
}) => /* @__PURE__ */ r(
|
|
11028
|
+
}) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
|
|
11028
11029
|
flex: 1
|
|
11029
11030
|
}, ...c }) }),
|
|
11030
11031
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.group_by_key`, control: e, render: ({
|
|
@@ -11045,7 +11046,7 @@ function xx({
|
|
|
11045
11046
|
onChange: d,
|
|
11046
11047
|
...h
|
|
11047
11048
|
}
|
|
11048
|
-
}) => /* @__PURE__ */ r(
|
|
11049
|
+
}) => /* @__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
11050
|
if (!p) {
|
|
11050
11051
|
d(0);
|
|
11051
11052
|
return;
|
|
@@ -11058,7 +11059,7 @@ function xx({
|
|
|
11058
11059
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11059
11060
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.transform.config.method`, control: e, render: ({
|
|
11060
11061
|
field: c
|
|
11061
|
-
}) => /* @__PURE__ */ r(
|
|
11062
|
+
}) => /* @__PURE__ */ r(O, { label: i("chart.regression_line.method.label"), data: l, sx: {
|
|
11062
11063
|
flex: 1
|
|
11063
11064
|
}, ...c }) }),
|
|
11064
11065
|
s === "polynomial" && /* @__PURE__ */ r(f, { name: `regressions.${n}.transform.config.order`, control: e, render: ({
|
|
@@ -11080,7 +11081,7 @@ function xx({
|
|
|
11080
11081
|
flexGrow: 1
|
|
11081
11082
|
}, ...c }) })
|
|
11082
11083
|
] }),
|
|
11083
|
-
/* @__PURE__ */ r(
|
|
11084
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `regressions.${n}.plot.color`, control: e, render: ({
|
|
11084
11085
|
field: c
|
|
11085
11086
|
}) => /* @__PURE__ */ r(Ze, { label: i("chart.color.label"), ...c }) }) })
|
|
11086
11087
|
] });
|
|
@@ -11154,7 +11155,7 @@ const Sx = ({
|
|
|
11154
11155
|
} = y(), [a, {
|
|
11155
11156
|
setTrue: i,
|
|
11156
11157
|
setFalse: o
|
|
11157
|
-
}] =
|
|
11158
|
+
}] = De(), [l, s] = Q(e), c = () => {
|
|
11158
11159
|
o();
|
|
11159
11160
|
const {
|
|
11160
11161
|
type: g,
|
|
@@ -11227,8 +11228,8 @@ const Sx = ({
|
|
|
11227
11228
|
...Pi[c]
|
|
11228
11229
|
});
|
|
11229
11230
|
};
|
|
11230
|
-
return /* @__PURE__ */ u(
|
|
11231
|
-
/* @__PURE__ */ r(
|
|
11231
|
+
return /* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
11232
|
+
/* @__PURE__ */ r(O, { ref: a, label: e ?? i("chart.symbol_size.label"), data: l, value: t.type, onChange: s, sx: {
|
|
11232
11233
|
flexGrow: 1
|
|
11233
11234
|
} }),
|
|
11234
11235
|
/* @__PURE__ */ r(zx, { value: t, onChange: n }),
|
|
@@ -11355,9 +11356,9 @@ function Tx({
|
|
|
11355
11356
|
}], [s.language]);
|
|
11356
11357
|
return /* @__PURE__ */ u(F, { children: [
|
|
11357
11358
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", pt: a, children: [
|
|
11358
|
-
/* @__PURE__ */ r(
|
|
11359
|
+
/* @__PURE__ */ r(O, { ref: o, label: e, data: b, value: t.type, onChange: c, maxDropdownHeight: 600 }),
|
|
11359
11360
|
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(
|
|
11361
|
+
t.type === "pick_record" && /* @__PURE__ */ r(O, { label: l("aggregation.option.pick_record.method.label"), value: t.config.method, onChange: p, data: [{
|
|
11361
11362
|
label: l("aggregation.option.pick_record.method.first"),
|
|
11362
11363
|
value: "first"
|
|
11363
11364
|
}, {
|
|
@@ -11375,7 +11376,7 @@ function Tx({
|
|
|
11375
11376
|
color: "grape"
|
|
11376
11377
|
} })
|
|
11377
11378
|
] }),
|
|
11378
|
-
i && /* @__PURE__ */ r(
|
|
11379
|
+
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
11380
|
] });
|
|
11380
11381
|
}
|
|
11381
11382
|
const Ei = E.forwardRef(Tx), Xn = te(({
|
|
@@ -11439,7 +11440,7 @@ const Ei = E.forwardRef(Tx), Xn = te(({
|
|
|
11439
11440
|
value: ""
|
|
11440
11441
|
}), d;
|
|
11441
11442
|
}, [s.language, a, i]);
|
|
11442
|
-
return /* @__PURE__ */ r(
|
|
11443
|
+
return /* @__PURE__ */ r(O, { ref: o, label: e, data: c, value: t, onChange: n });
|
|
11443
11444
|
});
|
|
11444
11445
|
function Dx({
|
|
11445
11446
|
control: e,
|
|
@@ -11460,29 +11461,29 @@ function Dx({
|
|
|
11460
11461
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11461
11462
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
11462
11463
|
field: s
|
|
11463
|
-
}) => /* @__PURE__ */ r(
|
|
11464
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
11464
11465
|
flexGrow: 1
|
|
11465
11466
|
}, ...s }) }),
|
|
11466
11467
|
/* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
|
|
11467
11468
|
field: s
|
|
11468
|
-
}) => /* @__PURE__ */ r(
|
|
11469
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.series.bar.bar_gap.label"), data: l, sx: {
|
|
11469
11470
|
flexGrow: 1
|
|
11470
11471
|
}, ...s }) })
|
|
11471
11472
|
] }),
|
|
11472
11473
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11473
11474
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
11474
11475
|
field: s
|
|
11475
|
-
}) => /* @__PURE__ */ r(
|
|
11476
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
|
|
11476
11477
|
flexGrow: 1
|
|
11477
11478
|
}, ...s }) }),
|
|
11478
11479
|
/* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
11479
11480
|
field: s
|
|
11480
|
-
}) => /* @__PURE__ */ r(
|
|
11481
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
|
|
11481
11482
|
flexGrow: 1
|
|
11482
11483
|
}, ...s }) }),
|
|
11483
11484
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
11484
11485
|
field: s
|
|
11485
|
-
}) => /* @__PURE__ */ r(
|
|
11486
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
|
|
11486
11487
|
flexGrow: 1
|
|
11487
11488
|
}, ...s }) })
|
|
11488
11489
|
] })
|
|
@@ -11512,7 +11513,7 @@ function Ix({
|
|
|
11512
11513
|
return /* @__PURE__ */ u(F, { children: [
|
|
11513
11514
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
11514
11515
|
field: s
|
|
11515
|
-
}) => /* @__PURE__ */ r(
|
|
11516
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
11516
11517
|
flexGrow: 1
|
|
11517
11518
|
}, ...s }) }),
|
|
11518
11519
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: a("chart.series.line.line_settings"), labelPosition: "center" }),
|
|
@@ -11531,7 +11532,7 @@ function Ix({
|
|
|
11531
11532
|
/* @__PURE__ */ u(v, { grow: !0, align: "center", children: [
|
|
11532
11533
|
/* @__PURE__ */ r(f, { name: `series.${t}.step`, control: e, render: ({
|
|
11533
11534
|
field: s
|
|
11534
|
-
}) => /* @__PURE__ */ r(
|
|
11535
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.series.line.step.label"), data: l, sx: {
|
|
11535
11536
|
flexGrow: 1,
|
|
11536
11537
|
maxWidth: "48%"
|
|
11537
11538
|
}, ...s, value: String(s.value), onChange: ye((c) => {
|
|
@@ -11543,12 +11544,12 @@ function Ix({
|
|
|
11543
11544
|
field: s
|
|
11544
11545
|
}) => /* @__PURE__ */ r(R, { sx: {
|
|
11545
11546
|
flexGrow: 1
|
|
11546
|
-
}, children: /* @__PURE__ */ r(
|
|
11547
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.series.line.smooth_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
|
|
11547
11548
|
/* @__PURE__ */ r(f, { name: `series.${t}.display_name_on_line`, control: e, render: ({
|
|
11548
11549
|
field: s
|
|
11549
11550
|
}) => /* @__PURE__ */ r(R, { sx: {
|
|
11550
11551
|
flexGrow: 1
|
|
11551
|
-
}, children: /* @__PURE__ */ r(
|
|
11552
|
+
}, 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
11553
|
] })
|
|
11553
11554
|
] }),
|
|
11554
11555
|
/* @__PURE__ */ u(I, { children: [
|
|
@@ -11556,7 +11557,7 @@ function Ix({
|
|
|
11556
11557
|
field: s
|
|
11557
11558
|
}) => /* @__PURE__ */ r(R, { mt: 10, mb: -10, sx: {
|
|
11558
11559
|
flexGrow: 1
|
|
11559
|
-
}, children: /* @__PURE__ */ r(
|
|
11560
|
+
}, children: /* @__PURE__ */ r(ze, { label: a("chart.series.line.show_symbol_on_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
|
|
11560
11561
|
o && /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
|
|
11561
11562
|
field: s
|
|
11562
11563
|
}) => /* @__PURE__ */ r(Ai, { ...s }) })
|
|
@@ -11601,7 +11602,7 @@ function Lx({
|
|
|
11601
11602
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11602
11603
|
/* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
|
|
11603
11604
|
field: s
|
|
11604
|
-
}) => /* @__PURE__ */ r(
|
|
11605
|
+
}) => /* @__PURE__ */ r(V, { label: i("chart.series.name"), required: !0, sx: {
|
|
11605
11606
|
flex: 1
|
|
11606
11607
|
}, ...s }) }),
|
|
11607
11608
|
/* @__PURE__ */ r(f, { name: `series.${t}.yAxisIndex`, control: e, render: ({
|
|
@@ -11610,7 +11611,7 @@ function Lx({
|
|
|
11610
11611
|
onChange: c,
|
|
11611
11612
|
...d
|
|
11612
11613
|
}
|
|
11613
|
-
}) => /* @__PURE__ */ r(
|
|
11614
|
+
}) => /* @__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
11615
|
if (!h) {
|
|
11615
11616
|
c(0);
|
|
11616
11617
|
return;
|
|
@@ -11620,7 +11621,7 @@ function Lx({
|
|
|
11620
11621
|
flex: 1
|
|
11621
11622
|
} }) })
|
|
11622
11623
|
] }),
|
|
11623
|
-
/* @__PURE__ */ u(
|
|
11624
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
11624
11625
|
/* @__PURE__ */ r(f, { name: `series.${t}.y_axis_data_key`, control: e, render: ({
|
|
11625
11626
|
field: s
|
|
11626
11627
|
}) => /* @__PURE__ */ r(X, { label: i("chart.series.data_field"), required: !0, sx: {
|
|
@@ -11648,7 +11649,7 @@ function Lx({
|
|
|
11648
11649
|
/* @__PURE__ */ r(f, { name: `series.${t}.label_position`, control: e, render: ({
|
|
11649
11650
|
field: s
|
|
11650
11651
|
}) => /* @__PURE__ */ r(Xn, { label: i("chart.label_position.label"), withOffOption: !0, ...s }) }),
|
|
11651
|
-
/* @__PURE__ */ r(
|
|
11652
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `series.${t}.color`, control: e, render: ({
|
|
11652
11653
|
field: s
|
|
11653
11654
|
}) => /* @__PURE__ */ r(Ze, { label: i("chart.color.label"), ...s }) }) }),
|
|
11654
11655
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: i("chart.behavior.label"), labelPosition: "center" }),
|
|
@@ -11740,7 +11741,7 @@ const Vx = D(({
|
|
|
11740
11741
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11741
11742
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
11742
11743
|
field: a
|
|
11743
|
-
}) => /* @__PURE__ */ r(
|
|
11744
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
11744
11745
|
flex: 1
|
|
11745
11746
|
}, ...a }) }),
|
|
11746
11747
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -11833,7 +11834,7 @@ function Ox({
|
|
|
11833
11834
|
return /* @__PURE__ */ u(I, { children: [
|
|
11834
11835
|
/* @__PURE__ */ r(f, { name: "x_axis_name", control: e, render: ({
|
|
11835
11836
|
field: o
|
|
11836
|
-
}) => /* @__PURE__ */ r(
|
|
11837
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
|
|
11837
11838
|
flex: 1
|
|
11838
11839
|
}, ...o }) }),
|
|
11839
11840
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
@@ -11844,7 +11845,7 @@ function Ox({
|
|
|
11844
11845
|
}, ...o }) }),
|
|
11845
11846
|
/* @__PURE__ */ r(f, { name: "x_axis.type", control: e, render: ({
|
|
11846
11847
|
field: o
|
|
11847
|
-
}) => /* @__PURE__ */ r(
|
|
11848
|
+
}) => /* @__PURE__ */ r(O, { label: /* @__PURE__ */ r(Ex, {}), required: !0, data: i, sx: {
|
|
11848
11849
|
flex: 1
|
|
11849
11850
|
}, ...o }) })
|
|
11850
11851
|
] }),
|
|
@@ -11884,7 +11885,7 @@ const fn = te(({
|
|
|
11884
11885
|
label: l("chart.name_text.align.right"),
|
|
11885
11886
|
value: "right"
|
|
11886
11887
|
}], [s.language]);
|
|
11887
|
-
return /* @__PURE__ */ r(
|
|
11888
|
+
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
11889
|
}), jc = te(({
|
|
11889
11890
|
label: e,
|
|
11890
11891
|
value: t,
|
|
@@ -11901,7 +11902,7 @@ const fn = te(({
|
|
|
11901
11902
|
label: o("chart.y_axis.position.right"),
|
|
11902
11903
|
value: "right"
|
|
11903
11904
|
}], [l.language]);
|
|
11904
|
-
return /* @__PURE__ */ r(
|
|
11905
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("chart.y_axis.position.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
11905
11906
|
});
|
|
11906
11907
|
function qx({
|
|
11907
11908
|
control: e,
|
|
@@ -11917,7 +11918,7 @@ function qx({
|
|
|
11917
11918
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
11918
11919
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
11919
11920
|
field: a
|
|
11920
|
-
}) => /* @__PURE__ */ r(
|
|
11921
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), required: !0, sx: {
|
|
11921
11922
|
flex: 1
|
|
11922
11923
|
}, ...a }) }),
|
|
11923
11924
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -11948,10 +11949,10 @@ function qx({
|
|
|
11948
11949
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
11949
11950
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
11950
11951
|
field: a
|
|
11951
|
-
}) => /* @__PURE__ */ r(
|
|
11952
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
|
|
11952
11953
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
11953
11954
|
field: a
|
|
11954
|
-
}) => /* @__PURE__ */ r(
|
|
11955
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
|
|
11955
11956
|
] })
|
|
11956
11957
|
] }),
|
|
11957
11958
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.y_axis.behavior"), labelPosition: "center" }),
|
|
@@ -12303,7 +12304,7 @@ const tw = ({
|
|
|
12303
12304
|
return /* @__PURE__ */ u(I, { children: [
|
|
12304
12305
|
/* @__PURE__ */ r(v, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.name`, control: t, render: ({
|
|
12305
12306
|
field: p
|
|
12306
|
-
}) => /* @__PURE__ */ r(
|
|
12307
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.funnel_chart.series_name"), ...p }) }) }),
|
|
12307
12308
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
12308
12309
|
/* @__PURE__ */ r(f, { name: `series.${n}.level_name_data_key`, control: t, render: ({
|
|
12309
12310
|
field: p
|
|
@@ -12328,7 +12329,7 @@ const tw = ({
|
|
|
12328
12329
|
] }), ...p }) }),
|
|
12329
12330
|
/* @__PURE__ */ r(f, { name: `series.${n}.min.size`, control: t, render: ({
|
|
12330
12331
|
field: p
|
|
12331
|
-
}) => /* @__PURE__ */ r(
|
|
12332
|
+
}) => /* @__PURE__ */ r(V, { placeholder: "0%", label: i("viz.funnel_chart.min_size"), ...p }) })
|
|
12332
12333
|
] }),
|
|
12333
12334
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
12334
12335
|
/* @__PURE__ */ r(f, { name: `series.${n}.max.value`, control: t, render: ({
|
|
@@ -12345,7 +12346,7 @@ const tw = ({
|
|
|
12345
12346
|
] }), ...p }) }),
|
|
12346
12347
|
/* @__PURE__ */ r(f, { name: `series.${n}.max.size`, control: t, render: ({
|
|
12347
12348
|
field: p
|
|
12348
|
-
}) => /* @__PURE__ */ r(
|
|
12349
|
+
}) => /* @__PURE__ */ r(V, { placeholder: "100%", label: i("viz.funnel_chart.max_size"), ...p }) })
|
|
12349
12350
|
] }),
|
|
12350
12351
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
12351
12352
|
/* @__PURE__ */ r(f, { name: `series.${n}.orient`, control: t, render: ({
|
|
@@ -12353,7 +12354,7 @@ const tw = ({
|
|
|
12353
12354
|
}) => /* @__PURE__ */ r(gn, { ...p }) }),
|
|
12354
12355
|
/* @__PURE__ */ r(f, { name: `series.${n}.sort`, control: t, render: ({
|
|
12355
12356
|
field: p
|
|
12356
|
-
}) => /* @__PURE__ */ r(
|
|
12357
|
+
}) => /* @__PURE__ */ r(O, { label: i("viz.funnel_chart.sort.label"), data: h, ...p }) })
|
|
12357
12358
|
] }),
|
|
12358
12359
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
12359
12360
|
/* @__PURE__ */ r(f, { name: `series.${n}.funnelAlign`, control: t, render: ({
|
|
@@ -12689,7 +12690,7 @@ function _w({
|
|
|
12689
12690
|
unit: e.heat_block.unit.show_in_tooltip ? e.heat_block.unit.text : ""
|
|
12690
12691
|
}, _ = [p, g, b], x = a[`${c}---${d}`];
|
|
12691
12692
|
return x && e.tooltip.metrics.forEach((T) => {
|
|
12692
|
-
const M = H(T.data_key),
|
|
12693
|
+
const M = H(T.data_key), $ = o[T.name];
|
|
12693
12694
|
_.push({
|
|
12694
12695
|
label: T.name,
|
|
12695
12696
|
value: yw(C.get(x, M.columnKey, "")),
|
|
@@ -12697,7 +12698,7 @@ function _w({
|
|
|
12697
12698
|
label: "",
|
|
12698
12699
|
value: ""
|
|
12699
12700
|
},
|
|
12700
|
-
unit:
|
|
12701
|
+
unit: $
|
|
12701
12702
|
});
|
|
12702
12703
|
}), _;
|
|
12703
12704
|
}
|
|
@@ -12851,14 +12852,14 @@ function Sw(e, t, n, a) {
|
|
|
12851
12852
|
function Qc(e, t, n, a, i, o) {
|
|
12852
12853
|
if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
|
|
12853
12854
|
return {};
|
|
12854
|
-
const l = a.reduce((
|
|
12855
|
+
const l = a.reduce((q, W) => {
|
|
12855
12856
|
const G = Xt(W, t);
|
|
12856
|
-
return
|
|
12857
|
+
return q[W.name] = kt(W, G), q;
|
|
12857
12858
|
}, {}), s = ta(e.visualMap, l), {
|
|
12858
12859
|
min: c,
|
|
12859
12860
|
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(
|
|
12861
|
+
} = 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) => {
|
|
12862
|
+
const W = C.clone(q), {
|
|
12862
12863
|
followVisualMap: G,
|
|
12863
12864
|
color: oe
|
|
12864
12865
|
} = fi(W.value[2], c, d, e.visualMap);
|
|
@@ -13067,7 +13068,7 @@ function Mw({
|
|
|
13067
13068
|
}, ...i }) }),
|
|
13068
13069
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
13069
13070
|
field: i
|
|
13070
|
-
}) => /* @__PURE__ */ r(
|
|
13071
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13071
13072
|
flex: 1
|
|
13072
13073
|
}, ...i }) })
|
|
13073
13074
|
] }),
|
|
@@ -13082,7 +13083,7 @@ function Mw({
|
|
|
13082
13083
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
13083
13084
|
/* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
|
|
13084
13085
|
field: i
|
|
13085
|
-
}) => /* @__PURE__ */ r(
|
|
13086
|
+
}) => /* @__PURE__ */ r(ze, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
|
|
13086
13087
|
flexGrow: 1
|
|
13087
13088
|
} }) }),
|
|
13088
13089
|
/* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
|
|
@@ -13117,7 +13118,7 @@ const $w = ({
|
|
|
13117
13118
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
13118
13119
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
13119
13120
|
field: a
|
|
13120
|
-
}) => /* @__PURE__ */ r(
|
|
13121
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
13121
13122
|
flex: 1
|
|
13122
13123
|
}, ...a }) }),
|
|
13123
13124
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -13182,7 +13183,7 @@ function Pw({
|
|
|
13182
13183
|
}, ...a }) }),
|
|
13183
13184
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
13184
13185
|
field: a
|
|
13185
|
-
}) => /* @__PURE__ */ r(
|
|
13186
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13186
13187
|
flex: 1
|
|
13187
13188
|
}, ...a }) })
|
|
13188
13189
|
] }),
|
|
@@ -13220,7 +13221,7 @@ function Aw({
|
|
|
13220
13221
|
}, ...a }) }),
|
|
13221
13222
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
13222
13223
|
field: a
|
|
13223
|
-
}) => /* @__PURE__ */ r(
|
|
13224
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13224
13225
|
flex: 1
|
|
13225
13226
|
}, ...a }) })
|
|
13226
13227
|
] }),
|
|
@@ -13758,7 +13759,7 @@ function l0({
|
|
|
13758
13759
|
id: p,
|
|
13759
13760
|
...g
|
|
13760
13761
|
}, b, _, x, T, M) {
|
|
13761
|
-
const
|
|
13762
|
+
const $ = {
|
|
13762
13763
|
label: {
|
|
13763
13764
|
show: !!a,
|
|
13764
13765
|
position: a,
|
|
@@ -13779,22 +13780,22 @@ function l0({
|
|
|
13779
13780
|
...g
|
|
13780
13781
|
};
|
|
13781
13782
|
if (!o || o === e.data_key)
|
|
13782
|
-
return
|
|
13783
|
+
return $.data = i0({
|
|
13783
13784
|
dataTemplate: b,
|
|
13784
13785
|
data: x,
|
|
13785
13786
|
aggregation_on_value: l,
|
|
13786
13787
|
name_data_key: e.data_key,
|
|
13787
13788
|
value_data_key: t,
|
|
13788
13789
|
valueTypedXAxis: _
|
|
13789
|
-
}),
|
|
13790
|
-
const
|
|
13790
|
+
}), $;
|
|
13791
|
+
const q = o0({
|
|
13791
13792
|
group_by_key: o,
|
|
13792
13793
|
data: x,
|
|
13793
13794
|
name_data_key: e.data_key,
|
|
13794
13795
|
value_data_key: t
|
|
13795
13796
|
});
|
|
13796
|
-
return Object.entries(
|
|
13797
|
-
const oe = Fe(
|
|
13797
|
+
return Object.entries(q).map(([W, G]) => {
|
|
13798
|
+
const oe = Fe($);
|
|
13798
13799
|
return oe.name = W, oe.color = void 0, oe.data = G, oe;
|
|
13799
13800
|
});
|
|
13800
13801
|
}
|
|
@@ -13962,8 +13963,8 @@ function f0({
|
|
|
13962
13963
|
const M = C.get(s, T.name, {
|
|
13963
13964
|
error: "rowData is not found"
|
|
13964
13965
|
});
|
|
13965
|
-
c.forEach((
|
|
13966
|
-
i.runInteraction(
|
|
13966
|
+
c.forEach(($) => {
|
|
13967
|
+
i.runInteraction($.id, {
|
|
13967
13968
|
...T,
|
|
13968
13969
|
rowData: M
|
|
13969
13970
|
});
|
|
@@ -14019,18 +14020,18 @@ function y0({
|
|
|
14019
14020
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14020
14021
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
14021
14022
|
field: s
|
|
14022
|
-
}) => /* @__PURE__ */ r(
|
|
14023
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
14023
14024
|
flex: 1
|
|
14024
14025
|
}, ...s }) }),
|
|
14025
14026
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
14026
14027
|
field: s
|
|
14027
|
-
}) => /* @__PURE__ */ r(
|
|
14028
|
+
}) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
|
|
14028
14029
|
flex: 1
|
|
14029
14030
|
}, ...s }) })
|
|
14030
14031
|
] }),
|
|
14031
14032
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
14032
14033
|
field: s
|
|
14033
|
-
}) => /* @__PURE__ */ r(
|
|
14034
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
14034
14035
|
flex: 1
|
|
14035
14036
|
}, ...s }) }),
|
|
14036
14037
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -14044,7 +14045,7 @@ function y0({
|
|
|
14044
14045
|
] }),
|
|
14045
14046
|
l === "horizontal" && /* @__PURE__ */ r(f, { name: `reference_lines.${t}.xAxisIndex`, control: e, render: ({
|
|
14046
14047
|
field: s
|
|
14047
|
-
}) => /* @__PURE__ */ r(
|
|
14048
|
+
}) => /* @__PURE__ */ r(O, { label: o("chart.x_axis.label"), data: i, disabled: i.length === 0, sx: {
|
|
14048
14049
|
flex: 1
|
|
14049
14050
|
}, ...s }) })
|
|
14050
14051
|
] }),
|
|
@@ -14061,7 +14062,7 @@ function y0({
|
|
|
14061
14062
|
flexGrow: 1
|
|
14062
14063
|
}, ...s }) })
|
|
14063
14064
|
] }),
|
|
14064
|
-
/* @__PURE__ */ r(
|
|
14065
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
14065
14066
|
field: s
|
|
14066
14067
|
}) => /* @__PURE__ */ r(Ze, { label: o("chart.color.label"), ...s }) }) }),
|
|
14067
14068
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: o("chart.behavior.label"), labelPosition: "center" }),
|
|
@@ -14113,29 +14114,29 @@ function v0({
|
|
|
14113
14114
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14114
14115
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
14115
14116
|
field: s
|
|
14116
|
-
}) => /* @__PURE__ */ r(
|
|
14117
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
14117
14118
|
flexGrow: 1
|
|
14118
14119
|
}, ...s }) }),
|
|
14119
14120
|
/* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
|
|
14120
14121
|
field: s
|
|
14121
|
-
}) => /* @__PURE__ */ r(
|
|
14122
|
+
}) => /* @__PURE__ */ r(O, { label: a("chart.series.bar.bar_gap.label"), data: l, sx: {
|
|
14122
14123
|
flexGrow: 1
|
|
14123
14124
|
}, ...s }) })
|
|
14124
14125
|
] }),
|
|
14125
14126
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14126
14127
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
14127
14128
|
field: s
|
|
14128
|
-
}) => /* @__PURE__ */ r(
|
|
14129
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
|
|
14129
14130
|
flexGrow: 1
|
|
14130
14131
|
}, ...s }) }),
|
|
14131
14132
|
/* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
14132
14133
|
field: s
|
|
14133
|
-
}) => /* @__PURE__ */ r(
|
|
14134
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
|
|
14134
14135
|
flexGrow: 1
|
|
14135
14136
|
}, ...s }) }),
|
|
14136
14137
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
14137
14138
|
field: s
|
|
14138
|
-
}) => /* @__PURE__ */ r(
|
|
14139
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
|
|
14139
14140
|
flexGrow: 1
|
|
14140
14141
|
}, ...s }) })
|
|
14141
14142
|
] })
|
|
@@ -14156,16 +14157,16 @@ function x0({
|
|
|
14156
14157
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14157
14158
|
/* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
|
|
14158
14159
|
field: o
|
|
14159
|
-
}) => /* @__PURE__ */ r(
|
|
14160
|
+
}) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
|
|
14160
14161
|
flex: 1
|
|
14161
14162
|
}, ...o }) }),
|
|
14162
14163
|
/* @__PURE__ */ r(f, { name: `series.${t}.xAxisIndex`, control: e, render: ({
|
|
14163
14164
|
field: o
|
|
14164
|
-
}) => /* @__PURE__ */ r(
|
|
14165
|
+
}) => /* @__PURE__ */ r(O, { label: i("chart.x_axis.label"), data: a, disabled: a.length === 0, sx: {
|
|
14165
14166
|
flex: 1
|
|
14166
14167
|
}, ...o }) })
|
|
14167
14168
|
] }),
|
|
14168
|
-
/* @__PURE__ */ u(
|
|
14169
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
14169
14170
|
/* @__PURE__ */ r(f, { name: `series.${t}.data_key`, control: e, render: ({
|
|
14170
14171
|
field: o
|
|
14171
14172
|
}) => /* @__PURE__ */ r(X, { label: i("common.data_field"), required: !0, sx: {
|
|
@@ -14190,7 +14191,7 @@ function x0({
|
|
|
14190
14191
|
}) => /* @__PURE__ */ r(Xn, { label: i("chart.label_position.label"), ...o, withOffOption: !0, onChange: (l) => {
|
|
14191
14192
|
o.onChange(l ?? "");
|
|
14192
14193
|
} }) }),
|
|
14193
|
-
/* @__PURE__ */ r(
|
|
14194
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `series.${t}.color`, control: e, render: ({
|
|
14194
14195
|
field: o
|
|
14195
14196
|
}) => /* @__PURE__ */ r(Ze, { label: i("chart.color.label"), ...o }) }) }),
|
|
14196
14197
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: i("chart.behavior.label"), labelPosition: "center" }),
|
|
@@ -14238,7 +14239,7 @@ const S0 = te(({
|
|
|
14238
14239
|
label: o("chart.x_axis.position.bottom"),
|
|
14239
14240
|
value: "bottom"
|
|
14240
14241
|
}], [l.language]);
|
|
14241
|
-
return /* @__PURE__ */ r(
|
|
14242
|
+
return /* @__PURE__ */ r(O, { ref: i, label: e ?? o("chart.x_axis.position.label"), data: s, value: t, onChange: ye(n), sx: a });
|
|
14242
14243
|
});
|
|
14243
14244
|
function C0({
|
|
14244
14245
|
control: e,
|
|
@@ -14253,7 +14254,7 @@ function C0({
|
|
|
14253
14254
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14254
14255
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.name`, control: e, render: ({
|
|
14255
14256
|
field: a
|
|
14256
|
-
}) => /* @__PURE__ */ r(
|
|
14257
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
14257
14258
|
flex: 1
|
|
14258
14259
|
}, ...a }) }),
|
|
14259
14260
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.position`, control: e, render: ({
|
|
@@ -14273,10 +14274,10 @@ function C0({
|
|
|
14273
14274
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
14274
14275
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.min`, control: e, render: ({
|
|
14275
14276
|
field: a
|
|
14276
|
-
}) => /* @__PURE__ */ r(
|
|
14277
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_min"), ...a }) }),
|
|
14277
14278
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.max`, control: e, render: ({
|
|
14278
14279
|
field: a
|
|
14279
|
-
}) => /* @__PURE__ */ r(
|
|
14280
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_max"), ...a }) })
|
|
14280
14281
|
] })
|
|
14281
14282
|
] }),
|
|
14282
14283
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.x_axis.behavior"), labelPosition: "center" }),
|
|
@@ -14311,7 +14312,7 @@ function z0({
|
|
|
14311
14312
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
14312
14313
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
14313
14314
|
field: a
|
|
14314
|
-
}) => /* @__PURE__ */ r(
|
|
14315
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
14315
14316
|
flex: 1
|
|
14316
14317
|
}, ...a }) }),
|
|
14317
14318
|
/* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -15285,7 +15286,7 @@ function d1({
|
|
|
15285
15286
|
return t(["deviation"]), /* @__PURE__ */ u(I, { children: [
|
|
15286
15287
|
/* @__PURE__ */ r(v, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "deviation.name", control: e, render: ({
|
|
15287
15288
|
field: n
|
|
15288
|
-
}) => /* @__PURE__ */ r(
|
|
15289
|
+
}) => /* @__PURE__ */ r(V, { label: "指标名称", sx: {
|
|
15289
15290
|
flex: 1
|
|
15290
15291
|
}, ...n }) }) }),
|
|
15291
15292
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
@@ -15312,7 +15313,7 @@ const u1 = ({
|
|
|
15312
15313
|
return /* @__PURE__ */ r(I, { children: /* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
15313
15314
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.name`, control: e, render: ({
|
|
15314
15315
|
field: a
|
|
15315
|
-
}) => /* @__PURE__ */ r(
|
|
15316
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
15316
15317
|
flex: 1
|
|
15317
15318
|
}, ...a }) }),
|
|
15318
15319
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -15364,7 +15365,7 @@ function p1({
|
|
|
15364
15365
|
}, ...n }) }),
|
|
15365
15366
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
15366
15367
|
field: n
|
|
15367
|
-
}) => /* @__PURE__ */ r(
|
|
15368
|
+
}) => /* @__PURE__ */ r(V, { label: "X轴名称", sx: {
|
|
15368
15369
|
flex: 1
|
|
15369
15370
|
}, ...n }) })
|
|
15370
15371
|
] }),
|
|
@@ -15576,7 +15577,7 @@ function w1({
|
|
|
15576
15577
|
}, ...i }) }),
|
|
15577
15578
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
15578
15579
|
field: i
|
|
15579
|
-
}) => /* @__PURE__ */ r(
|
|
15580
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
15580
15581
|
flex: 1
|
|
15581
15582
|
}, ...i }) })
|
|
15582
15583
|
] }),
|
|
@@ -15591,7 +15592,7 @@ function w1({
|
|
|
15591
15592
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
15592
15593
|
/* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
|
|
15593
15594
|
field: i
|
|
15594
|
-
}) => /* @__PURE__ */ r(
|
|
15595
|
+
}) => /* @__PURE__ */ r(ze, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
|
|
15595
15596
|
flexGrow: 1
|
|
15596
15597
|
} }) }),
|
|
15597
15598
|
/* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
|
|
@@ -15611,7 +15612,7 @@ const S1 = ({
|
|
|
15611
15612
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
15612
15613
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
15613
15614
|
field: a
|
|
15614
|
-
}) => /* @__PURE__ */ r(
|
|
15615
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
15615
15616
|
flex: 1
|
|
15616
15617
|
}, ...a }) }),
|
|
15617
15618
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -15676,7 +15677,7 @@ function z1({
|
|
|
15676
15677
|
}, ...a }) }),
|
|
15677
15678
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
15678
15679
|
field: a
|
|
15679
|
-
}) => /* @__PURE__ */ r(
|
|
15680
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
15680
15681
|
flex: 1
|
|
15681
15682
|
}, ...a }) })
|
|
15682
15683
|
] }),
|
|
@@ -15714,7 +15715,7 @@ function T1({
|
|
|
15714
15715
|
}, ...a }) }),
|
|
15715
15716
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
15716
15717
|
field: a
|
|
15717
|
-
}) => /* @__PURE__ */ r(
|
|
15718
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
15718
15719
|
flex: 1
|
|
15719
15720
|
}, ...a }) })
|
|
15720
15721
|
] }),
|
|
@@ -15934,7 +15935,7 @@ function A1({
|
|
|
15934
15935
|
unit: e.heat_block.unit.show_in_tooltip ? e.heat_block.unit.text : ""
|
|
15935
15936
|
}, _ = [p, g, b], x = a[`${c}---${d}`];
|
|
15936
15937
|
return x && e.tooltip.metrics.forEach((T) => {
|
|
15937
|
-
const M = H(T.data_key),
|
|
15938
|
+
const M = H(T.data_key), $ = o[T.name];
|
|
15938
15939
|
_.push({
|
|
15939
15940
|
label: T.name,
|
|
15940
15941
|
value: P1(C.get(x, M.columnKey, "")),
|
|
@@ -15942,7 +15943,7 @@ function A1({
|
|
|
15942
15943
|
label: "",
|
|
15943
15944
|
value: ""
|
|
15944
15945
|
},
|
|
15945
|
-
unit:
|
|
15946
|
+
unit: $
|
|
15946
15947
|
});
|
|
15947
15948
|
}), _;
|
|
15948
15949
|
}
|
|
@@ -16088,15 +16089,15 @@ function F1(e, t, n) {
|
|
|
16088
16089
|
min: s,
|
|
16089
16090
|
max: c
|
|
16090
16091
|
} = 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,
|
|
16092
|
+
const T = C.get(x, d.columnKey), M = C.get(x, h.columnKey), $ = C.get(x, p.columnKey), q = {
|
|
16093
|
+
value: [T, M, $]
|
|
16093
16094
|
}, {
|
|
16094
16095
|
followVisualMap: W,
|
|
16095
16096
|
color: G
|
|
16096
|
-
} = fi(
|
|
16097
|
-
return W || (
|
|
16097
|
+
} = fi($, s, c, e.visualMap);
|
|
16098
|
+
return W || (q.visualMap = !1, q.itemStyle = {
|
|
16098
16099
|
color: G
|
|
16099
|
-
}),
|
|
16100
|
+
}), q;
|
|
16100
16101
|
});
|
|
16101
16102
|
return {
|
|
16102
16103
|
xAxis: O1(e, g, i.x_axis),
|
|
@@ -16123,8 +16124,8 @@ function N1({
|
|
|
16123
16124
|
const [x, T] = _.value, M = C.get(s, `${x}---${T}`, {
|
|
16124
16125
|
error: "rowData is not found"
|
|
16125
16126
|
});
|
|
16126
|
-
c.forEach((
|
|
16127
|
-
i.runInteraction(
|
|
16127
|
+
c.forEach(($) => {
|
|
16128
|
+
i.runInteraction($.id, {
|
|
16128
16129
|
..._,
|
|
16129
16130
|
rowData: M
|
|
16130
16131
|
});
|
|
@@ -16336,7 +16337,7 @@ function aS({
|
|
|
16336
16337
|
/* @__PURE__ */ r(k, { size: "sm", className: Jn.name, children: o.name }),
|
|
16337
16338
|
o.min > 0 ? /* @__PURE__ */ r(k, { size: "xs", className: Jn.min, children: o.min }) : null,
|
|
16338
16339
|
o.pointer ? /* @__PURE__ */ r(Jl, { className: `${Jn.pointer} ${o.pointer_equal ? Jn.pointer_equal : ""}`, stroke: 1.5 }) : null
|
|
16339
|
-
] }, o.name)) });
|
|
16340
|
+
] }, `${o.name}-${o.color}-${o.min}`)) });
|
|
16340
16341
|
}
|
|
16341
16342
|
function iS({
|
|
16342
16343
|
context: e
|
|
@@ -16395,10 +16396,10 @@ const oS = {
|
|
|
16395
16396
|
t: o
|
|
16396
16397
|
} = y(), [l, {
|
|
16397
16398
|
setTrue: s
|
|
16398
|
-
}] =
|
|
16399
|
+
}] = De(!1), [c, {
|
|
16399
16400
|
setTrue: d,
|
|
16400
16401
|
setFalse: h
|
|
16401
|
-
}] =
|
|
16402
|
+
}] = De(!1), {
|
|
16402
16403
|
ref: p,
|
|
16403
16404
|
handleRef: g
|
|
16404
16405
|
} = Kr({
|
|
@@ -16429,7 +16430,7 @@ const oS = {
|
|
|
16429
16430
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", style: {
|
|
16430
16431
|
flex: 1
|
|
16431
16432
|
}, children: [
|
|
16432
|
-
/* @__PURE__ */ r(
|
|
16433
|
+
/* @__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
16434
|
/* @__PURE__ */ r(rn, { styles: {
|
|
16434
16435
|
root: {
|
|
16435
16436
|
flexGrow: 1
|
|
@@ -16725,11 +16726,11 @@ const Qo = ({
|
|
|
16725
16726
|
value: "filter-option-label"
|
|
16726
16727
|
}], [i.language]);
|
|
16727
16728
|
return /* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
16728
|
-
/* @__PURE__ */ r(
|
|
16729
|
-
e.type === "text" && /* @__PURE__ */ r(
|
|
16729
|
+
/* @__PURE__ */ r(O, { label: a("viz.merico_stats.metric.postfix_type.label"), data: d, value: e.type, onChange: s }),
|
|
16730
|
+
e.type === "text" && /* @__PURE__ */ r(V, { label: a("viz.merico_stats.metric.postfix_content"), value: e.value, onChange: (h) => {
|
|
16730
16731
|
c(h.currentTarget.value);
|
|
16731
16732
|
} }),
|
|
16732
|
-
e.type === "filter-option-label" && /* @__PURE__ */ r(
|
|
16733
|
+
e.type === "filter-option-label" && /* @__PURE__ */ r(O, { label: a("viz.merico_stats.metric.postfix_filter"), value: e.value, onChange: c, data: l })
|
|
16733
16734
|
] });
|
|
16734
16735
|
}));
|
|
16735
16736
|
function xS({
|
|
@@ -16748,24 +16749,24 @@ function xS({
|
|
|
16748
16749
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
16749
16750
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.names.value`, control: e, render: ({
|
|
16750
16751
|
field: o
|
|
16751
|
-
}) => /* @__PURE__ */ r(
|
|
16752
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.metric_name"), required: !0, sx: {
|
|
16752
16753
|
flex: 1
|
|
16753
16754
|
}, ...o }) }),
|
|
16754
16755
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
|
|
16755
16756
|
field: o
|
|
16756
|
-
}) => /* @__PURE__ */ r(
|
|
16757
|
+
}) => /* @__PURE__ */ r(O, { label: i("viz.merico_stats.metric.metric_data_field"), required: !0, data: a, sx: {
|
|
16757
16758
|
flex: 1
|
|
16758
16759
|
}, ...o }) })
|
|
16759
16760
|
] }),
|
|
16760
16761
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
16761
16762
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.names.basis`, control: e, render: ({
|
|
16762
16763
|
field: o
|
|
16763
|
-
}) => /* @__PURE__ */ r(
|
|
16764
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.basis_name"), required: !0, sx: {
|
|
16764
16765
|
flex: 1
|
|
16765
16766
|
}, ...o }) }),
|
|
16766
16767
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
|
|
16767
16768
|
field: o
|
|
16768
|
-
}) => /* @__PURE__ */ r(
|
|
16769
|
+
}) => /* @__PURE__ */ r(O, { label: i("viz.merico_stats.metric.basis_data_field"), required: !0, data: a, sx: {
|
|
16769
16770
|
flex: 1
|
|
16770
16771
|
}, ...o }) })
|
|
16771
16772
|
] }),
|
|
@@ -17375,8 +17376,8 @@ function YS({
|
|
|
17375
17376
|
const M = C.get(p, T.name, {
|
|
17376
17377
|
error: "rowData is not found"
|
|
17377
17378
|
});
|
|
17378
|
-
h.forEach((
|
|
17379
|
-
d.runInteraction(
|
|
17379
|
+
h.forEach(($) => {
|
|
17380
|
+
d.runInteraction($.id, {
|
|
17380
17381
|
...T,
|
|
17381
17382
|
rowData: M
|
|
17382
17383
|
});
|
|
@@ -17402,7 +17403,7 @@ function XS({
|
|
|
17402
17403
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
17403
17404
|
/* @__PURE__ */ r(f, { name: "bar.name", control: e, render: ({
|
|
17404
17405
|
field: a
|
|
17405
|
-
}) => /* @__PURE__ */ r(
|
|
17406
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
17406
17407
|
flex: 1
|
|
17407
17408
|
}, ...a }) }),
|
|
17408
17409
|
/* @__PURE__ */ r(f, { name: "bar.nameAlignment", control: e, render: ({
|
|
@@ -17411,7 +17412,7 @@ function XS({
|
|
|
17411
17412
|
flex: 1
|
|
17412
17413
|
}, ...a }) })
|
|
17413
17414
|
] }),
|
|
17414
|
-
/* @__PURE__ */ r(
|
|
17415
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "bar.color", control: e, render: ({
|
|
17415
17416
|
field: a
|
|
17416
17417
|
}) => /* @__PURE__ */ r(Ze, { label: n("chart.color.label"), ...a }) }) }),
|
|
17417
17418
|
/* @__PURE__ */ r(f, { name: "bar.unit", control: e, render: ({
|
|
@@ -17436,7 +17437,7 @@ function ZS({
|
|
|
17436
17437
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
17437
17438
|
/* @__PURE__ */ r(f, { name: "line.name", control: e, render: ({
|
|
17438
17439
|
field: a
|
|
17439
|
-
}) => /* @__PURE__ */ r(
|
|
17440
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
17440
17441
|
flex: 1
|
|
17441
17442
|
}, ...a }) }),
|
|
17442
17443
|
/* @__PURE__ */ r(f, { name: "line.nameAlignment", control: e, render: ({
|
|
@@ -17445,7 +17446,7 @@ function ZS({
|
|
|
17445
17446
|
flex: 1
|
|
17446
17447
|
}, ...a }) })
|
|
17447
17448
|
] }),
|
|
17448
|
-
/* @__PURE__ */ r(
|
|
17449
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "line.color", control: e, render: ({
|
|
17449
17450
|
field: a
|
|
17450
17451
|
}) => /* @__PURE__ */ r(Ze, { label: n("chart.color.label"), ...a }) }) })
|
|
17451
17452
|
] });
|
|
@@ -17491,7 +17492,7 @@ function tC({
|
|
|
17491
17492
|
t: n
|
|
17492
17493
|
} = y();
|
|
17493
17494
|
return t(["markLine"]), /* @__PURE__ */ u(I, { children: [
|
|
17494
|
-
/* @__PURE__ */ r(
|
|
17495
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "markLine.color", control: e, render: ({
|
|
17495
17496
|
field: a
|
|
17496
17497
|
}) => /* @__PURE__ */ r(Ze, { label: n("chart.color.label"), ...a }) }) }),
|
|
17497
17498
|
/* @__PURE__ */ u(I, { gap: 4, children: [
|
|
@@ -17520,18 +17521,18 @@ function nC({
|
|
|
17520
17521
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
17521
17522
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
17522
17523
|
field: s
|
|
17523
|
-
}) => /* @__PURE__ */ r(
|
|
17524
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
17524
17525
|
flex: 1
|
|
17525
17526
|
}, ...s }) }),
|
|
17526
17527
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
17527
17528
|
field: s
|
|
17528
|
-
}) => /* @__PURE__ */ r(
|
|
17529
|
+
}) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
|
|
17529
17530
|
flex: 1
|
|
17530
17531
|
}, ...s }) })
|
|
17531
17532
|
] }),
|
|
17532
17533
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
17533
17534
|
field: s
|
|
17534
|
-
}) => /* @__PURE__ */ r(
|
|
17535
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
17535
17536
|
flex: 1
|
|
17536
17537
|
}, ...s }) }),
|
|
17537
17538
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -17546,7 +17547,7 @@ function nC({
|
|
|
17546
17547
|
onChange: c,
|
|
17547
17548
|
...d
|
|
17548
17549
|
}
|
|
17549
|
-
}) => /* @__PURE__ */ r(
|
|
17550
|
+
}) => /* @__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
17551
|
if (!h) {
|
|
17551
17552
|
c(0);
|
|
17552
17553
|
return;
|
|
@@ -17569,7 +17570,7 @@ function nC({
|
|
|
17569
17570
|
flexGrow: 1
|
|
17570
17571
|
}, ...s }) })
|
|
17571
17572
|
] }),
|
|
17572
|
-
/* @__PURE__ */ r(
|
|
17573
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
17573
17574
|
field: s
|
|
17574
17575
|
}) => /* @__PURE__ */ r(Ze, { label: o("chart.color.label"), ...s }) }) })
|
|
17575
17576
|
] });
|
|
@@ -17619,7 +17620,7 @@ function aC({
|
|
|
17619
17620
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
17620
17621
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
17621
17622
|
field: a
|
|
17622
|
-
}) => /* @__PURE__ */ r(
|
|
17623
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
17623
17624
|
flex: 1
|
|
17624
17625
|
}, ...a }) }),
|
|
17625
17626
|
/* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -18238,10 +18239,10 @@ const VC = te(({
|
|
|
18238
18239
|
t: o
|
|
18239
18240
|
} = y(), [l, {
|
|
18240
18241
|
setTrue: s
|
|
18241
|
-
}] =
|
|
18242
|
+
}] = De(!1), [c, {
|
|
18242
18243
|
setTrue: d,
|
|
18243
18244
|
setFalse: h
|
|
18244
|
-
}] =
|
|
18245
|
+
}] = De(!1), {
|
|
18245
18246
|
ref: p,
|
|
18246
18247
|
handleRef: g
|
|
18247
18248
|
} = Kr({
|
|
@@ -18449,7 +18450,7 @@ function FC({
|
|
|
18449
18450
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
18450
18451
|
/* @__PURE__ */ r(f, { control: o, name: "others_sector.label", render: ({
|
|
18451
18452
|
field: b
|
|
18452
|
-
}) => /* @__PURE__ */ r(
|
|
18453
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", label: a("viz.pie_chart.others_sector.label"), ...b, value: b.value ?? "" }) }),
|
|
18453
18454
|
/* @__PURE__ */ r(f, { control: o, name: "others_sector.threshold", render: ({
|
|
18454
18455
|
field: b
|
|
18455
18456
|
}) => /* @__PURE__ */ r(re, { size: "xs", label: a("viz.pie_chart.others_sector.threshold"), suffix: "%", ...b, value: b.value ?? "" }) })
|
|
@@ -18919,10 +18920,10 @@ function dk({
|
|
|
18919
18920
|
const {
|
|
18920
18921
|
queryID: _,
|
|
18921
18922
|
columnKey: x
|
|
18922
|
-
} = H(e.series_name_key), T = C.keyBy(t[_], x), M = e.additional_series.reduce((
|
|
18923
|
-
const W = H(
|
|
18923
|
+
} = H(e.series_name_key), T = C.keyBy(t[_], x), M = e.additional_series.reduce(($, q) => {
|
|
18924
|
+
const W = H(q.name_key), G = C.keyBy(t[W.queryID], W.columnKey);
|
|
18924
18925
|
return {
|
|
18925
|
-
|
|
18926
|
+
...$,
|
|
18926
18927
|
...G
|
|
18927
18928
|
};
|
|
18928
18929
|
}, T);
|
|
@@ -19030,7 +19031,7 @@ function mk({
|
|
|
19030
19031
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", align: "top", children: [
|
|
19031
19032
|
/* @__PURE__ */ r(f, { name: `dimensions.${t}.name`, control: e, render: ({
|
|
19032
19033
|
field: a
|
|
19033
|
-
}) => /* @__PURE__ */ r(
|
|
19034
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
19034
19035
|
flex: 1
|
|
19035
19036
|
}, ...a }) }),
|
|
19036
19037
|
/* @__PURE__ */ r(f, { name: `dimensions.${t}.data_key`, control: e, render: ({
|
|
@@ -19048,7 +19049,7 @@ function mk({
|
|
|
19048
19049
|
fieldState: i
|
|
19049
19050
|
}) => {
|
|
19050
19051
|
var o;
|
|
19051
|
-
return /* @__PURE__ */ r(
|
|
19052
|
+
return /* @__PURE__ */ r(V, { label: n("common.max"), required: !0, sx: {
|
|
19052
19053
|
flex: 1
|
|
19053
19054
|
}, ...a, error: (o = i.error) == null ? void 0 : o.message });
|
|
19054
19055
|
} })
|
|
@@ -19622,7 +19623,7 @@ const va = D(te((e, t) => {
|
|
|
19622
19623
|
if (d.length === 0) {
|
|
19623
19624
|
const h = c.explainDataKey(n);
|
|
19624
19625
|
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(
|
|
19626
|
+
/* @__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
19627
|
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ u(v, { justify: "flex-start", gap: 0, children: [
|
|
19627
19628
|
/* @__PURE__ */ r(k, { size: "xs", c: h.queryName ? "black" : "red", ff: "monospace", children: h.queryName ?? h.queryID }),
|
|
19628
19629
|
/* @__PURE__ */ r(k, { size: "xs", c: "black", ff: "monospace", children: "." }),
|
|
@@ -19641,7 +19642,7 @@ const va = D(te((e, t) => {
|
|
|
19641
19642
|
} = y();
|
|
19642
19643
|
return /* @__PURE__ */ u(pe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
19643
19644
|
/* @__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(
|
|
19645
|
+
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ u(ke, { children: [
|
|
19645
19646
|
/* @__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
19647
|
/* @__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
19648
|
/* @__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 +19834,7 @@ function Wk({
|
|
|
19833
19834
|
} = y();
|
|
19834
19835
|
return /* @__PURE__ */ u(pe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
19835
19836
|
/* @__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(
|
|
19837
|
+
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(Gk, { conf: e, queryData: t, x: n, y: a, g: i }) }) })
|
|
19837
19838
|
] });
|
|
19838
19839
|
}
|
|
19839
19840
|
function Uk({
|
|
@@ -19963,7 +19964,7 @@ function e2({
|
|
|
19963
19964
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
19964
19965
|
/* @__PURE__ */ r(f, { name: "regression.transform.config.method", control: e, render: ({
|
|
19965
19966
|
field: s
|
|
19966
|
-
}) => /* @__PURE__ */ r(
|
|
19967
|
+
}) => /* @__PURE__ */ r(O, { label: n("chart.regression_line.method.label"), data: l, sx: {
|
|
19967
19968
|
flex: 1
|
|
19968
19969
|
}, ...s }) }),
|
|
19969
19970
|
i === "polynomial" && /* @__PURE__ */ r(f, { name: "regression.transform.config.order", control: e, render: ({
|
|
@@ -19972,7 +19973,7 @@ function e2({
|
|
|
19972
19973
|
flex: 1
|
|
19973
19974
|
}, ...s }) })
|
|
19974
19975
|
] }),
|
|
19975
|
-
!o && /* @__PURE__ */ r(
|
|
19976
|
+
!o && /* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: "regression.plot.color", control: e, render: ({
|
|
19976
19977
|
field: s
|
|
19977
19978
|
}) => /* @__PURE__ */ r(Ze, { label: n("chart.color.label"), ...s }) }) })
|
|
19978
19979
|
] });
|
|
@@ -20820,17 +20821,17 @@ function O2(e, t) {
|
|
|
20820
20821
|
const g = A2(p, e), b = wt(e.scatter.label_overflow.tooltip), _ = p.map(
|
|
20821
20822
|
// @ts-expect-error type of value
|
|
20822
20823
|
({
|
|
20823
|
-
value:
|
|
20824
|
+
value: q
|
|
20824
20825
|
}) => `
|
|
20825
20826
|
<th style="text-align: right; padding-right: 1em">
|
|
20826
|
-
<div style="${b}">${xr(
|
|
20827
|
+
<div style="${b}">${xr(q, n.name_data_key)}</div>
|
|
20827
20828
|
</th>
|
|
20828
20829
|
`
|
|
20829
20830
|
);
|
|
20830
20831
|
_.unshift("<th></th>");
|
|
20831
20832
|
const x = wt(e.x_axis.axisLabel.overflow.in_tooltip), T = [`<tr>
|
|
20832
20833
|
<th style="text-align: right; padding: 0 1em;">${e.x_axis.name}</th>
|
|
20833
|
-
${p.map((
|
|
20834
|
+
${p.map((q) => `
|
|
20834
20835
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20835
20836
|
<div style="${x}">
|
|
20836
20837
|
${g}
|
|
@@ -20840,21 +20841,21 @@ function O2(e, t) {
|
|
|
20840
20841
|
</tr>`, `<tr>
|
|
20841
20842
|
<th style="text-align: right; padding: 0 1em;">${e.y_axes[0].name}</th>
|
|
20842
20843
|
${p.map(({
|
|
20843
|
-
value:
|
|
20844
|
+
value: q
|
|
20844
20845
|
}) => `
|
|
20845
20846
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20846
|
-
${h(xr(
|
|
20847
|
+
${h(xr(q, n.y_data_key))}
|
|
20847
20848
|
<strong>${s ?? ""}</strong>
|
|
20848
20849
|
</td>`).join("")}
|
|
20849
|
-
</tr>`], M = e.tooltip.metrics.map((
|
|
20850
|
+
</tr>`], M = e.tooltip.metrics.map((q) => `
|
|
20850
20851
|
<tr>
|
|
20851
|
-
<th style="text-align: right; padding: 0 1em;">${
|
|
20852
|
+
<th style="text-align: right; padding: 0 1em;">${q.name}</th>
|
|
20852
20853
|
${p.map(({
|
|
20853
20854
|
value: W
|
|
20854
20855
|
}) => `
|
|
20855
20856
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20856
|
-
${E2(xr(W,
|
|
20857
|
-
<strong>${c[
|
|
20857
|
+
${E2(xr(W, q.data_key))}
|
|
20858
|
+
<strong>${c[q.name] ?? ""}</strong>
|
|
20858
20859
|
</td>`).join("")}
|
|
20859
20860
|
</tr>`);
|
|
20860
20861
|
return T.push(...M), `
|
|
@@ -20989,8 +20990,8 @@ function j2({
|
|
|
20989
20990
|
});
|
|
20990
20991
|
});
|
|
20991
20992
|
}, [s, c, i]), h = E.useRef(null), p = ve(), g = E.useCallback(() => {
|
|
20992
|
-
var
|
|
20993
|
-
const x = (
|
|
20993
|
+
var $;
|
|
20994
|
+
const x = ($ = h.current) == null ? void 0 : $.getEchartsInstance();
|
|
20994
20995
|
if (!x)
|
|
20995
20996
|
return;
|
|
20996
20997
|
const T = un(e.stats.top, o, p.payloadForViz, t), M = un(e.stats.bottom, o, p.payloadForViz, t);
|
|
@@ -21046,30 +21047,30 @@ const H2 = te(({
|
|
|
21046
21047
|
return /* @__PURE__ */ u(I, { children: [
|
|
21047
21048
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.content.label"), labelPosition: "right" }),
|
|
21048
21049
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21049
|
-
/* @__PURE__ */ r(
|
|
21050
|
+
/* @__PURE__ */ r(V, { label: l("chart.reference_area.content.content_text"), value: e.content.text, onChange: (d) => c("content.text", d.currentTarget.value) }),
|
|
21050
21051
|
/* @__PURE__ */ r(Xn, { label: l("chart.reference_area.content.text_position"), value: e.label.position, onChange: (d) => c("label.position", d) })
|
|
21051
21052
|
] }),
|
|
21052
21053
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.endpoint.labels"), labelPosition: "right" }),
|
|
21053
21054
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21054
|
-
n && /* @__PURE__ */ r(
|
|
21055
|
-
a && /* @__PURE__ */ r(
|
|
21055
|
+
n && /* @__PURE__ */ r(O, { label: l("chart.x_axis.label"), data: n, value: e.xAxisIndex, onChange: (d) => c("xAxisIndex", d) }),
|
|
21056
|
+
a && /* @__PURE__ */ r(O, { label: l("chart.y_axis.label"), data: a, value: e.yAxisIndex, onChange: (d) => c("xAxisIndex", d) })
|
|
21056
21057
|
] }),
|
|
21057
21058
|
/* @__PURE__ */ u(I, { gap: 0, children: [
|
|
21058
21059
|
/* @__PURE__ */ r(k, { size: "14px", c: "#212529", fw: 500, children: l("chart.reference_area.endpoint.left_bottom_point") }),
|
|
21059
21060
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21060
|
-
/* @__PURE__ */ r(
|
|
21061
|
-
/* @__PURE__ */ r(
|
|
21061
|
+
/* @__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 }),
|
|
21062
|
+
/* @__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
21063
|
] })
|
|
21063
21064
|
] }),
|
|
21064
21065
|
/* @__PURE__ */ u(I, { gap: 0, children: [
|
|
21065
21066
|
/* @__PURE__ */ r(k, { size: "14px", c: "#212529", fw: 500, children: l("chart.reference_area.endpoint.right_top_point") }),
|
|
21066
21067
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21067
|
-
/* @__PURE__ */ r(
|
|
21068
|
-
/* @__PURE__ */ r(
|
|
21068
|
+
/* @__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 }),
|
|
21069
|
+
/* @__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
21070
|
] })
|
|
21070
21071
|
] }),
|
|
21071
21072
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.style.label"), labelPosition: "right" }),
|
|
21072
|
-
/* @__PURE__ */ u(
|
|
21073
|
+
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
21073
21074
|
/* @__PURE__ */ r(Ze, { label: l("chart.color.background_color"), value: e.itemStyle.color, onChange: (d) => c("itemStyle.color", d) }),
|
|
21074
21075
|
/* @__PURE__ */ r(Ze, { label: l("chart.color.text_color"), value: e.label.color, onChange: (d) => c("label.color", d) })
|
|
21075
21076
|
] })
|
|
@@ -21140,18 +21141,18 @@ function U2({
|
|
|
21140
21141
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21141
21142
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
21142
21143
|
field: s
|
|
21143
|
-
}) => /* @__PURE__ */ r(
|
|
21144
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
21144
21145
|
flex: 1
|
|
21145
21146
|
}, ...s }) }),
|
|
21146
21147
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
21147
21148
|
field: s
|
|
21148
|
-
}) => /* @__PURE__ */ r(
|
|
21149
|
+
}) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
|
|
21149
21150
|
flex: 1
|
|
21150
21151
|
}, ...s }) })
|
|
21151
21152
|
] }),
|
|
21152
21153
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
21153
21154
|
field: s
|
|
21154
|
-
}) => /* @__PURE__ */ r(
|
|
21155
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
21155
21156
|
flex: 1
|
|
21156
21157
|
}, ...s }) }),
|
|
21157
21158
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -21169,7 +21170,7 @@ function U2({
|
|
|
21169
21170
|
onChange: c,
|
|
21170
21171
|
...d
|
|
21171
21172
|
}
|
|
21172
|
-
}) => /* @__PURE__ */ r(
|
|
21173
|
+
}) => /* @__PURE__ */ r(O, { label: "Y Axis", data: i, disabled: i.length === 0, ...d, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (h) => {
|
|
21173
21174
|
if (!h) {
|
|
21174
21175
|
c(0);
|
|
21175
21176
|
return;
|
|
@@ -21192,7 +21193,7 @@ function U2({
|
|
|
21192
21193
|
flexGrow: 1
|
|
21193
21194
|
}, ...s }) })
|
|
21194
21195
|
] }),
|
|
21195
|
-
/* @__PURE__ */ r(
|
|
21196
|
+
/* @__PURE__ */ r(Te, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
21196
21197
|
field: s
|
|
21197
21198
|
}) => /* @__PURE__ */ r(Ze, { label: o("chart.color.label"), ...s }) }) })
|
|
21198
21199
|
] });
|
|
@@ -21251,7 +21252,7 @@ const Y2 = ({
|
|
|
21251
21252
|
} = y(), [a, {
|
|
21252
21253
|
setTrue: i,
|
|
21253
21254
|
setFalse: o
|
|
21254
|
-
}] =
|
|
21255
|
+
}] = De(), [l, s] = Q(e), c = () => {
|
|
21255
21256
|
o();
|
|
21256
21257
|
const {
|
|
21257
21258
|
type: g,
|
|
@@ -21323,8 +21324,8 @@ const Y2 = ({
|
|
|
21323
21324
|
...mr[c]
|
|
21324
21325
|
});
|
|
21325
21326
|
};
|
|
21326
|
-
return /* @__PURE__ */ u(
|
|
21327
|
-
/* @__PURE__ */ r(
|
|
21327
|
+
return /* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
21328
|
+
/* @__PURE__ */ r(O, { ref: a, label: e, data: l, value: t.type, onChange: s, sx: {
|
|
21328
21329
|
flexGrow: 1
|
|
21329
21330
|
} }),
|
|
21330
21331
|
/* @__PURE__ */ r(J2, { value: t, onChange: n }),
|
|
@@ -21431,7 +21432,7 @@ const rz = D(({
|
|
|
21431
21432
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21432
21433
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
21433
21434
|
field: a
|
|
21434
|
-
}) => /* @__PURE__ */ r(
|
|
21435
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
21435
21436
|
flex: 1
|
|
21436
21437
|
}, ...a }) }),
|
|
21437
21438
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -21492,7 +21493,7 @@ function oz({
|
|
|
21492
21493
|
return /* @__PURE__ */ u(I, { children: [
|
|
21493
21494
|
/* @__PURE__ */ r(f, { name: "tooltip.trigger", control: e, render: ({
|
|
21494
21495
|
field: o
|
|
21495
|
-
}) => /* @__PURE__ */ r(
|
|
21496
|
+
}) => /* @__PURE__ */ r(O, { label: n("chart.tooltip.trigger.label"), data: i, sx: {
|
|
21496
21497
|
flexGrow: 1
|
|
21497
21498
|
}, ...o }) }),
|
|
21498
21499
|
/* @__PURE__ */ r(A, { variant: "dashed" }),
|
|
@@ -21515,7 +21516,7 @@ function lz({
|
|
|
21515
21516
|
}, ...a }) }),
|
|
21516
21517
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
21517
21518
|
field: a
|
|
21518
|
-
}) => /* @__PURE__ */ r(
|
|
21519
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
21519
21520
|
flex: 1
|
|
21520
21521
|
}, ...a }) })
|
|
21521
21522
|
] }),
|
|
@@ -21552,7 +21553,7 @@ function sz({
|
|
|
21552
21553
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
21553
21554
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
21554
21555
|
field: a
|
|
21555
|
-
}) => /* @__PURE__ */ r(
|
|
21556
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
21556
21557
|
flex: 1
|
|
21557
21558
|
}, ...a }) }),
|
|
21558
21559
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -21578,10 +21579,10 @@ function sz({
|
|
|
21578
21579
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
21579
21580
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
21580
21581
|
field: a
|
|
21581
|
-
}) => /* @__PURE__ */ r(
|
|
21582
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
|
|
21582
21583
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
21583
21584
|
field: a
|
|
21584
|
-
}) => /* @__PURE__ */ r(
|
|
21585
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
|
|
21585
21586
|
] })
|
|
21586
21587
|
] })
|
|
21587
21588
|
] });
|
|
@@ -21906,8 +21907,8 @@ const zz = D(({
|
|
|
21906
21907
|
const {
|
|
21907
21908
|
offsetWidth: x,
|
|
21908
21909
|
offsetHeight: T
|
|
21909
|
-
} = _, M = h / x,
|
|
21910
|
-
_.style.transform = `scale(${
|
|
21910
|
+
} = _, M = h / x, $ = p / T, q = Math.min(M, $);
|
|
21911
|
+
_.style.transform = `scale(${q})`;
|
|
21911
21912
|
}, [n.current, h, p, g]), /* @__PURE__ */ r(Ue, { className: "viz-stats", sx: {
|
|
21912
21913
|
width: h,
|
|
21913
21914
|
height: p
|
|
@@ -22244,10 +22245,10 @@ const Hz = ({
|
|
|
22244
22245
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
22245
22246
|
/* @__PURE__ */ r(f, { name: `levels.${t}.r0`, control: e, render: ({
|
|
22246
22247
|
field: o
|
|
22247
|
-
}) => /* @__PURE__ */ r(
|
|
22248
|
+
}) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.inside_radius"), placeholder: "0%", ...o }) }),
|
|
22248
22249
|
/* @__PURE__ */ r(f, { name: `levels.${t}.r`, control: e, render: ({
|
|
22249
22250
|
field: o
|
|
22250
|
-
}) => /* @__PURE__ */ r(
|
|
22251
|
+
}) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.outside_radius"), placeholder: "50%", ...o }) })
|
|
22251
22252
|
] }),
|
|
22252
22253
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.label.label_full"), labelPosition: "center" }),
|
|
22253
22254
|
/* @__PURE__ */ r(f, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
|
|
@@ -22256,7 +22257,7 @@ const Hz = ({
|
|
|
22256
22257
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
22257
22258
|
/* @__PURE__ */ r(f, { name: `levels.${t}.label.rotate`, control: e, render: ({
|
|
22258
22259
|
field: o
|
|
22259
|
-
}) => /* @__PURE__ */ r(
|
|
22260
|
+
}) => /* @__PURE__ */ r(O, { label: n("viz.sunburst_chart.label.rotate.label"), data: i, ...o }) }),
|
|
22260
22261
|
/* @__PURE__ */ r(f, { name: `levels.${t}.label.align`, control: e, render: ({
|
|
22261
22262
|
field: o
|
|
22262
22263
|
}) => /* @__PURE__ */ r(fn, { ...o }) })
|
|
@@ -22977,8 +22978,8 @@ function k3(e) {
|
|
|
22977
22978
|
/* @__PURE__ */ r(Hl, { children: "Use original data columns" }),
|
|
22978
22979
|
" is enabled, you have to address trigger column by its data field"
|
|
22979
22980
|
] }) }),
|
|
22980
|
-
/* @__PURE__ */ r(
|
|
22981
|
-
] }) : /* @__PURE__ */ r(
|
|
22981
|
+
/* @__PURE__ */ r(V, { label: t("viz.table.click_cell.column_data_field"), value: c.toString(), onChange: (h) => d(h.currentTarget.value) })
|
|
22982
|
+
] }) : /* @__PURE__ */ r(O, { clearable: !1, data: o, label: t("viz.table.click_cell.choose_a_column"), value: c.toString(), onChange: d, comboboxProps: {
|
|
22982
22983
|
zIndex: 340
|
|
22983
22984
|
}, maxDropdownHeight: 500 });
|
|
22984
22985
|
}
|
|
@@ -23176,17 +23177,17 @@ function Zo({
|
|
|
23176
23177
|
minSize: typeof Ee.width == "number" ? Ee.width : void 0
|
|
23177
23178
|
});
|
|
23178
23179
|
});
|
|
23179
|
-
}, [g, b]), [x, T] = Q([]), [M,
|
|
23180
|
+
}, [g, b]), [x, T] = Q([]), [M, $] = E.useState({
|
|
23180
23181
|
pageIndex: 0,
|
|
23181
23182
|
pageSize: a.pagination.page_size
|
|
23182
|
-
}),
|
|
23183
|
+
}), q = z(() => {
|
|
23183
23184
|
const {
|
|
23184
23185
|
pageIndex: st,
|
|
23185
23186
|
pageSize: nt
|
|
23186
23187
|
} = M;
|
|
23187
23188
|
return nt === 0 ? e : e.slice(st * nt, (st + 1) * nt);
|
|
23188
23189
|
}, [e, M]), W = Math.ceil(e.length / M.pageSize), G = si({
|
|
23189
|
-
data:
|
|
23190
|
+
data: q,
|
|
23190
23191
|
state: {
|
|
23191
23192
|
sorting: x
|
|
23192
23193
|
},
|
|
@@ -23205,7 +23206,7 @@ function Zo({
|
|
|
23205
23206
|
}, "data-enable-scrollbar": !0, className: p(h.root, {
|
|
23206
23207
|
"table-highlight-on-hover": a.highlightOnHover
|
|
23207
23208
|
}), children: [
|
|
23208
|
-
/* @__PURE__ */ r(L3, { classes: h, pagination: M, totalRows: $e, setPagination:
|
|
23209
|
+
/* @__PURE__ */ r(L3, { classes: h, pagination: M, totalRows: $e, setPagination: $, pageCount: W }),
|
|
23209
23210
|
/* @__PURE__ */ u(w, { sx: {
|
|
23210
23211
|
...m3,
|
|
23211
23212
|
maxHeight: en
|
|
@@ -23374,7 +23375,7 @@ const R3 = {
|
|
|
23374
23375
|
const {
|
|
23375
23376
|
panel: d
|
|
23376
23377
|
} = Me(), h = E.useMemo(() => d.queryOptions(a, o), [a, o]);
|
|
23377
|
-
return h.length === 0 ? /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(
|
|
23378
|
+
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
23379
|
})), O3 = [{
|
|
23379
23380
|
from: 0,
|
|
23380
23381
|
to: 0
|
|
@@ -23401,8 +23402,8 @@ const N3 = te((e, t) => {
|
|
|
23401
23402
|
} = y(), {
|
|
23402
23403
|
colorManager: a
|
|
23403
23404
|
} = 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") : (
|
|
23405
|
+
var T, M, $;
|
|
23406
|
+
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
23407
|
}, b = (x) => {
|
|
23407
23408
|
var T;
|
|
23408
23409
|
s(x), (T = e.onChange) == null || T.call(e, x);
|
|
@@ -23427,7 +23428,7 @@ const N3 = te((e, t) => {
|
|
|
23427
23428
|
label: i(`viz.table.column.value_type.${s}`),
|
|
23428
23429
|
value: s
|
|
23429
23430
|
})), [o.language]);
|
|
23430
|
-
return /* @__PURE__ */ r(
|
|
23431
|
+
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
23432
|
}), j3 = te(({
|
|
23432
23433
|
value: e,
|
|
23433
23434
|
onChange: t
|
|
@@ -23437,7 +23438,7 @@ const N3 = te((e, t) => {
|
|
|
23437
23438
|
} = y(), [i, {
|
|
23438
23439
|
setTrue: o,
|
|
23439
23440
|
setFalse: l
|
|
23440
|
-
}] =
|
|
23441
|
+
}] = De(), [s, c] = Q(e), d = () => {
|
|
23441
23442
|
l(), t(s);
|
|
23442
23443
|
}, h = () => {
|
|
23443
23444
|
l(), c(e);
|
|
@@ -23482,7 +23483,7 @@ const N3 = te((e, t) => {
|
|
|
23482
23483
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
23483
23484
|
/* @__PURE__ */ r(f, { name: `columns.${t}.label`, control: e, render: ({
|
|
23484
23485
|
field: l
|
|
23485
|
-
}) => /* @__PURE__ */ r(
|
|
23486
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.label.label"), required: !0, id: `col-label-${t}`, sx: {
|
|
23486
23487
|
flex: 1
|
|
23487
23488
|
}, ...l }) }),
|
|
23488
23489
|
/* @__PURE__ */ r(f, { name: `columns.${t}.value_field`, control: e, render: ({
|
|
@@ -23539,7 +23540,7 @@ const N3 = te((e, t) => {
|
|
|
23539
23540
|
return /* @__PURE__ */ u(F, { children: [
|
|
23540
23541
|
/* @__PURE__ */ r(f, { name: "use_raw_columns", control: e, render: ({
|
|
23541
23542
|
field: l
|
|
23542
|
-
}) => /* @__PURE__ */ r(
|
|
23543
|
+
}) => /* @__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
23544
|
o && /* @__PURE__ */ r(f, { name: "ignored_column_keys", control: e, render: ({
|
|
23544
23545
|
field: l
|
|
23545
23546
|
}) => /* @__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 +23580,16 @@ function G3({
|
|
|
23579
23580
|
}
|
|
23580
23581
|
}, children: /* @__PURE__ */ r(f, { name: "fontSize", control: e, render: ({
|
|
23581
23582
|
field: a
|
|
23582
|
-
}) => /* @__PURE__ */ r(
|
|
23583
|
+
}) => /* @__PURE__ */ r(V, { label: n("style.font_size.label"), placeholder: n("style.font_size.placeholder"), required: !0, sx: {
|
|
23583
23584
|
flex: 1
|
|
23584
23585
|
}, ...a }) }) }),
|
|
23585
23586
|
/* @__PURE__ */ u(v, { justify: "space-between", grow: !0, children: [
|
|
23586
23587
|
/* @__PURE__ */ r(f, { name: "striped", control: e, render: ({
|
|
23587
23588
|
field: a
|
|
23588
|
-
}) => /* @__PURE__ */ r(
|
|
23589
|
+
}) => /* @__PURE__ */ r(ze, { label: n("viz.table.style.striped"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) }),
|
|
23589
23590
|
/* @__PURE__ */ r(f, { name: "highlightOnHover", control: e, render: ({
|
|
23590
23591
|
field: a
|
|
23591
|
-
}) => /* @__PURE__ */ r(
|
|
23592
|
+
}) => /* @__PURE__ */ r(ze, { label: n("viz.table.style.highlight_on_hover"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) })
|
|
23592
23593
|
] })
|
|
23593
23594
|
] });
|
|
23594
23595
|
}
|
|
@@ -23770,7 +23771,7 @@ const Z3 = E.forwardRef(X3), J3 = ({
|
|
|
23770
23771
|
} = y(), [i, {
|
|
23771
23772
|
setTrue: o,
|
|
23772
23773
|
setFalse: l
|
|
23773
|
-
}] =
|
|
23774
|
+
}] = De(), [s, c] = Q(e), d = () => {
|
|
23774
23775
|
l(), t(s);
|
|
23775
23776
|
}, h = () => {
|
|
23776
23777
|
l(), c(e);
|
|
@@ -23843,7 +23844,7 @@ function t5({
|
|
|
23843
23844
|
}) => /* @__PURE__ */ r(Di, { ...p }) }),
|
|
23844
23845
|
/* @__PURE__ */ r(f, { name: "font_size", control: l, render: ({
|
|
23845
23846
|
field: p
|
|
23846
|
-
}) => /* @__PURE__ */ r(
|
|
23847
|
+
}) => /* @__PURE__ */ r(V, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
|
|
23847
23848
|
flex: 1
|
|
23848
23849
|
}, ...p }) }),
|
|
23849
23850
|
/* @__PURE__ */ r(v, { justify: "space-between", grow: !0, sx: {
|
|
@@ -24342,18 +24343,18 @@ function N5({
|
|
|
24342
24343
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
24343
24344
|
/* @__PURE__ */ r(f, { name: "expertSystemURL", control: i, render: ({
|
|
24344
24345
|
field: d
|
|
24345
|
-
}) => /* @__PURE__ */ r(
|
|
24346
|
+
}) => /* @__PURE__ */ r(V, { label: "Expert System URL", ...d }) }),
|
|
24346
24347
|
/* @__PURE__ */ r(f, { name: "path", control: i, render: ({
|
|
24347
24348
|
field: d
|
|
24348
|
-
}) => /* @__PURE__ */ r(
|
|
24349
|
+
}) => /* @__PURE__ */ r(V, { label: "Path", required: !0, ...d }) })
|
|
24349
24350
|
] }),
|
|
24350
24351
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
24351
24352
|
/* @__PURE__ */ r(f, { name: "goal", control: i, render: ({
|
|
24352
24353
|
field: d
|
|
24353
|
-
}) => /* @__PURE__ */ r(
|
|
24354
|
+
}) => /* @__PURE__ */ r(V, { label: "Goal", required: !0, ...d }) }),
|
|
24354
24355
|
/* @__PURE__ */ r(f, { name: "question", control: i, render: ({
|
|
24355
24356
|
field: d
|
|
24356
|
-
}) => /* @__PURE__ */ r(
|
|
24357
|
+
}) => /* @__PURE__ */ r(V, { label: "Question", required: !0, ...d }) })
|
|
24357
24358
|
] }),
|
|
24358
24359
|
/* @__PURE__ */ r(A, { variant: "dashed", mt: 16, mb: 8 }),
|
|
24359
24360
|
/* @__PURE__ */ r(L, { type: "submit", variant: "filled", color: "blue", leftSection: /* @__PURE__ */ r(be, { size: 20 }), disabled: !s.isDirty, sx: {
|
|
@@ -26145,7 +26146,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26145
26146
|
} = y(), a = le(), i = ie(), o = E.useMemo(() => i.queries.options, [i.queries.current]), l = o.length === 0, s = (c) => {
|
|
26146
26147
|
a.editor.setPath(["_QUERIES_", c]);
|
|
26147
26148
|
};
|
|
26148
|
-
return /* @__PURE__ */ r(
|
|
26149
|
+
return /* @__PURE__ */ r(O, { label: /* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
26149
26150
|
/* @__PURE__ */ r(k, { fw: 500, size: "sm", children: n("filter.widget.common.use_query_data_as_options") }),
|
|
26150
26151
|
e && /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(Ma, { size: 16 }), variant: "subtle", color: "blue", onClick: () => s(e), children: n("query.open") })
|
|
26151
26152
|
] }), data: o, value: e, onChange: ye(t), allowDeselect: !1, clearable: !0, sx: {
|
|
@@ -26184,7 +26185,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26184
26185
|
}], [n.language]), {
|
|
26185
26186
|
default_value_mode: i
|
|
26186
26187
|
} = e;
|
|
26187
|
-
return /* @__PURE__ */ r(
|
|
26188
|
+
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
26189
|
}), kT = D(function({
|
|
26189
26190
|
filter: t
|
|
26190
26191
|
}) {
|
|
@@ -26196,7 +26197,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26196
26197
|
/* @__PURE__ */ r(ee, { checked: a.required, onChange: (i) => a.setRequired(i.currentTarget.checked), label: n("filter.widget.select.required") }),
|
|
26197
26198
|
/* @__PURE__ */ r(yn, { filter: t })
|
|
26198
26199
|
] }),
|
|
26199
|
-
/* @__PURE__ */ r(
|
|
26200
|
+
/* @__PURE__ */ r(V, { label: n("filter.widget.common.min_width"), value: a.min_width, onChange: (i) => a.setMinWidth(i.currentTarget.value), placeholder: "200px" }),
|
|
26200
26201
|
/* @__PURE__ */ r(A, { label: n("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
26201
26202
|
/* @__PURE__ */ r(ee, { checked: a.treeCheckStrictly, onChange: (i) => a.setTreeCheckStrictly(i.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
|
|
26202
26203
|
/* @__PURE__ */ r(pa, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
|
|
@@ -26553,7 +26554,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26553
26554
|
name: "FilterTreeSelectWidget"
|
|
26554
26555
|
}), [b, _] = Q(!1), x = (W) => {
|
|
26555
26556
|
_(W);
|
|
26556
|
-
}, T = b && (i == null ? void 0 : i.length) > 0, M = IT(l, i, o, d), [
|
|
26557
|
+
}, T = b && (i == null ? void 0 : i.length) > 0, M = IT(l, i, o, d), [$, q] = Q("");
|
|
26557
26558
|
return /* @__PURE__ */ u(I, { gap: 3, children: [
|
|
26558
26559
|
/* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
26559
26560
|
/* @__PURE__ */ u(k, { className: p.label, size: "sm", children: [
|
|
@@ -26596,10 +26597,10 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26596
26597
|
maxTagPlaceholder: () => h("filter.widget.common.x_selected", {
|
|
26597
26598
|
count: i.length
|
|
26598
26599
|
}),
|
|
26599
|
-
searchValue:
|
|
26600
|
-
onSearch:
|
|
26600
|
+
searchValue: $,
|
|
26601
|
+
onSearch: q,
|
|
26601
26602
|
dropdownRender: (W) => /* @__PURE__ */ u(F, { children: [
|
|
26602
|
-
M.allValueSet.size > 0 &&
|
|
26603
|
+
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
26604
|
/* @__PURE__ */ r(A, {}),
|
|
26604
26605
|
W
|
|
26605
26606
|
] })
|
|
@@ -26637,7 +26638,7 @@ const bT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26637
26638
|
/* @__PURE__ */ r(ee, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: t("filter.widget.select.required") }),
|
|
26638
26639
|
/* @__PURE__ */ r(yn, { filter: e })
|
|
26639
26640
|
] }),
|
|
26640
|
-
/* @__PURE__ */ r(
|
|
26641
|
+
/* @__PURE__ */ r(V, { label: t("filter.widget.common.min_width"), value: n.min_width, onChange: (a) => n.setMinWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
26641
26642
|
/* @__PURE__ */ r(A, { label: t("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
26642
26643
|
/* @__PURE__ */ r(pa, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
|
|
26643
26644
|
/* @__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 +28956,21 @@ const uD = uT.views((e) => ({
|
|
|
28955
28956
|
const t = this.payload, n = {
|
|
28956
28957
|
filters: e.contentModel.filters.keysToTypes
|
|
28957
28958
|
}, a = e.config, i = a.filters.reduce((_, x) => {
|
|
28958
|
-
const T = C.get(t, x.variable), M = C.get(n, x.variable),
|
|
28959
|
+
const T = C.get(t, x.variable), M = C.get(n, x.variable), $ = x.dimension;
|
|
28959
28960
|
if (M === j.DateRange) {
|
|
28960
28961
|
const W = T.every((G) => Number.isFinite(Number(G))) ? T.map((G) => Number(G)) : T;
|
|
28961
|
-
_[
|
|
28962
|
+
_[$] = {
|
|
28962
28963
|
between: W
|
|
28963
28964
|
};
|
|
28964
28965
|
} else if (M === j.MericoDateRange) {
|
|
28965
28966
|
const W = T.value.every((G) => Number.isFinite(Number(G))) ? T.value.map((G) => Number(G)) : T;
|
|
28966
|
-
_[
|
|
28967
|
+
_[$] = {
|
|
28967
28968
|
between: W
|
|
28968
28969
|
};
|
|
28969
28970
|
} else
|
|
28970
|
-
Array.isArray(T) ? _[
|
|
28971
|
+
Array.isArray(T) ? _[$] = {
|
|
28971
28972
|
in: T
|
|
28972
|
-
} : _[
|
|
28973
|
+
} : _[$] = {
|
|
28973
28974
|
eq: T
|
|
28974
28975
|
};
|
|
28975
28976
|
return _;
|
|
@@ -29737,7 +29738,7 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
29737
29738
|
/* @__PURE__ */ u(v, { justify: "flex-start", grow: !0, wrap: "nowrap", gap: 0, w: "288px", sx: {
|
|
29738
29739
|
marginTop: "3px"
|
|
29739
29740
|
}, children: [
|
|
29740
|
-
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(
|
|
29741
|
+
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(V, { label: e, labelProps: {
|
|
29741
29742
|
title: e
|
|
29742
29743
|
}, 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
29744
|
".mantine-TextInput-label": {
|
|
@@ -29762,7 +29763,7 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
29762
29763
|
opacity: 0.6
|
|
29763
29764
|
}
|
|
29764
29765
|
} }) }),
|
|
29765
|
-
/* @__PURE__ */ r(
|
|
29766
|
+
/* @__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
29767
|
".mantine-Input-section": {
|
|
29767
29768
|
transform: "translateX(-18px)"
|
|
29768
29769
|
},
|
|
@@ -30023,7 +30024,7 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
30023
30024
|
name: "MultiSelectWidget"
|
|
30024
30025
|
}), [g, b] = Q(!1), _ = (Z) => {
|
|
30025
30026
|
b(Z);
|
|
30026
|
-
}, x = g && (i == null ? void 0 : i.length) > 0, [T, M] = Q(""),
|
|
30027
|
+
}, x = g && (i == null ? void 0 : i.length) > 0, [T, M] = Q(""), $ = z(() => {
|
|
30027
30028
|
if (!T)
|
|
30028
30029
|
return l;
|
|
30029
30030
|
const Z = T.toLowerCase(), $e = (Qe) => {
|
|
@@ -30031,12 +30032,12 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
30031
30032
|
return ((en = Qe.description) == null ? void 0 : en.toLowerCase().includes(Z)) || Qe.label.toLowerCase().includes(Z);
|
|
30032
30033
|
};
|
|
30033
30034
|
return l.filter($e);
|
|
30034
|
-
}, [T, l]),
|
|
30035
|
+
}, [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
30036
|
if (G) {
|
|
30036
30037
|
o([]);
|
|
30037
30038
|
return;
|
|
30038
30039
|
}
|
|
30039
|
-
const Z = Array.from(
|
|
30040
|
+
const Z = Array.from(q);
|
|
30040
30041
|
o(Z);
|
|
30041
30042
|
};
|
|
30042
30043
|
return /* @__PURE__ */ u(I, { gap: 3, children: [
|
|
@@ -30052,10 +30053,10 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
30052
30053
|
/* @__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
30054
|
count: Z.length
|
|
30054
30055
|
}), searchValue: T, onSearch: M, filterOption: !1, dropdownRender: (Z) => /* @__PURE__ */ u(F, { children: [
|
|
30055
|
-
|
|
30056
|
+
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
30057
|
/* @__PURE__ */ r(A, {}),
|
|
30057
30058
|
Z
|
|
30058
|
-
] }), children:
|
|
30059
|
+
] }), children: $.map((Z) => /* @__PURE__ */ u(Km, { title: Z.label, children: [
|
|
30059
30060
|
/* @__PURE__ */ r(k, { size: "sm", "data-role": "label", children: Z.label }),
|
|
30060
30061
|
Z.description && /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", "data-role": "description", children: Z.description })
|
|
30061
30062
|
] }, Z.value)) })
|
|
@@ -30103,7 +30104,7 @@ const bD = (e) => new fD(e), yD = ({
|
|
|
30103
30104
|
p && a(p, !1);
|
|
30104
30105
|
}, [a]);
|
|
30105
30106
|
return /* @__PURE__ */ r(
|
|
30106
|
-
|
|
30107
|
+
O,
|
|
30107
30108
|
{
|
|
30108
30109
|
label: e,
|
|
30109
30110
|
data: t.options,
|
|
@@ -30142,7 +30143,7 @@ function $D({
|
|
|
30142
30143
|
value: n,
|
|
30143
30144
|
onChange: a
|
|
30144
30145
|
}) {
|
|
30145
|
-
return /* @__PURE__ */ r(
|
|
30146
|
+
return /* @__PURE__ */ r(V, { label: e, value: n || "", onChange: (i) => a(i.currentTarget.value), ...t, styles: {
|
|
30146
30147
|
input: {
|
|
30147
30148
|
borderColor: "#e9ecef"
|
|
30148
30149
|
}
|
|
@@ -30235,12 +30236,12 @@ const qD = (e, t, n) => {
|
|
|
30235
30236
|
const a = e.step, [i, o] = Q(null), [l, s] = Q(e.value), c = (b, _) => {
|
|
30236
30237
|
if (!b || !_)
|
|
30237
30238
|
return;
|
|
30238
|
-
const [x, T] = l, M = b.toDate(),
|
|
30239
|
+
const [x, T] = l, M = b.toDate(), $ = _.toDate();
|
|
30239
30240
|
if (x === null) {
|
|
30240
30241
|
s([M, null]);
|
|
30241
30242
|
return;
|
|
30242
30243
|
}
|
|
30243
|
-
const W = M.getTime() < x.getTime() ? [M, T] : [x,
|
|
30244
|
+
const W = M.getTime() < x.getTime() ? [M, T] : [x, $];
|
|
30244
30245
|
s(W), t(W);
|
|
30245
30246
|
};
|
|
30246
30247
|
N(() => {
|
|
@@ -30274,9 +30275,9 @@ const qD = (e, t, n) => {
|
|
|
30274
30275
|
disabled: !0
|
|
30275
30276
|
};
|
|
30276
30277
|
const {
|
|
30277
|
-
start:
|
|
30278
|
-
end:
|
|
30279
|
-
} = M, W = AD(_,
|
|
30278
|
+
start: $,
|
|
30279
|
+
end: q
|
|
30280
|
+
} = 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
30281
|
return {
|
|
30281
30282
|
onMouseEnter: () => o(b),
|
|
30282
30283
|
onMouseLeave: () => o(null),
|
|
@@ -30284,7 +30285,7 @@ const qD = (e, t, n) => {
|
|
|
30284
30285
|
firstInRange: Z,
|
|
30285
30286
|
lastInRange: $e,
|
|
30286
30287
|
selected: W || G,
|
|
30287
|
-
onClick: () => c(
|
|
30288
|
+
onClick: () => c($, q),
|
|
30288
30289
|
disabled: Qe
|
|
30289
30290
|
};
|
|
30290
30291
|
}, [i, t, a, n, d, h, l]);
|
|
@@ -30391,7 +30392,7 @@ const qD = (e, t, n) => {
|
|
|
30391
30392
|
label: i("filter.widget.date_range.step.quarter"),
|
|
30392
30393
|
value: "quarter"
|
|
30393
30394
|
}], [i]);
|
|
30394
|
-
return /* @__PURE__ */ r(
|
|
30395
|
+
return /* @__PURE__ */ r(O, { className: a, label: e, data: l, value: t, onChange: (c) => {
|
|
30395
30396
|
c && n(c);
|
|
30396
30397
|
} });
|
|
30397
30398
|
}, ZD = ({
|
|
@@ -30474,10 +30475,10 @@ const qD = (e, t, n) => {
|
|
|
30474
30475
|
/* @__PURE__ */ u(v, { justify: "flex-start", align: "text-anchor", wrap: "nowrap", gap: 0, sx: {
|
|
30475
30476
|
marginTop: "3px"
|
|
30476
30477
|
}, children: [
|
|
30477
|
-
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(
|
|
30478
|
+
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(V, { label: e, labelProps: {
|
|
30478
30479
|
title: e
|
|
30479
30480
|
}, 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(
|
|
30481
|
+
/* @__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
30482
|
/* @__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
30483
|
] }),
|
|
30483
30484
|
/* @__PURE__ */ u(Ye.Dropdown, { p: "sm", children: [
|
|
@@ -30536,7 +30537,7 @@ const qD = (e, t, n) => {
|
|
|
30536
30537
|
}), a6 = D(E.forwardRef(({
|
|
30537
30538
|
filter: e,
|
|
30538
30539
|
...t
|
|
30539
|
-
}, n) => /* @__PURE__ */ r("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ r(
|
|
30540
|
+
}, n) => /* @__PURE__ */ r("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(r6, { filter: e, formFieldProps: t }) }) }))), i6 = ({
|
|
30540
30541
|
disabled: e,
|
|
30541
30542
|
onSubmit: t
|
|
30542
30543
|
}) => {
|
|
@@ -30654,8 +30655,8 @@ const h6 = ({
|
|
|
30654
30655
|
N(() => {
|
|
30655
30656
|
s(i.filters.values);
|
|
30656
30657
|
}, [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 ||
|
|
30658
|
+
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, $) => {
|
|
30659
|
+
T(M), (x.should_auto_submit || $) && i.filters.setValueByKey(x.key, M);
|
|
30659
30660
|
}, _ = ne((x) => {
|
|
30660
30661
|
const T = C.get(x, "force", !1);
|
|
30661
30662
|
l(i.filters.setValues)(), T && i.queries.forceReloadVisibleQueries();
|
|
@@ -31015,7 +31016,7 @@ const z6 = D(function({
|
|
|
31015
31016
|
width: a,
|
|
31016
31017
|
height: i,
|
|
31017
31018
|
overflow: "hidden"
|
|
31018
|
-
}, children: l && /* @__PURE__ */ r(
|
|
31019
|
+
}, children: l && /* @__PURE__ */ r(ke, { children: o }) }) });
|
|
31019
31020
|
});
|
|
31020
31021
|
function T6(e) {
|
|
31021
31022
|
const {
|
|
@@ -31492,7 +31493,7 @@ const l4 = D(({
|
|
|
31492
31493
|
} = y(), [n, {
|
|
31493
31494
|
setTrue: a,
|
|
31494
31495
|
setFalse: i
|
|
31495
|
-
}] =
|
|
31496
|
+
}] = De(!1), o = wg(), l = ve(), s = () => {
|
|
31496
31497
|
const c = JSON.stringify(l.contentJSON, null, 2), d = `${o.name}__${l.name}`;
|
|
31497
31498
|
Zn(d, c);
|
|
31498
31499
|
};
|
|
@@ -31779,8 +31780,8 @@ const p4 = D(({
|
|
|
31779
31780
|
position: "relative",
|
|
31780
31781
|
zIndex: 200
|
|
31781
31782
|
}, children: [
|
|
31782
|
-
/* @__PURE__ */ r(
|
|
31783
|
-
/* @__PURE__ */ r(
|
|
31783
|
+
/* @__PURE__ */ r(V, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (g) => d.setName(g.currentTarget.value) }),
|
|
31784
|
+
/* @__PURE__ */ r(O, { label: t("view.label"), value: d.view_id, onChange: d.setViewID, data: i }),
|
|
31784
31785
|
/* @__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
31786
|
/* @__PURE__ */ r(rn, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: o.variant !== "default" }),
|
|
31786
31787
|
p && /* @__PURE__ */ r(L, { mt: 20, variant: "gradient", leftSection: /* @__PURE__ */ r(_p, { size: 18 }), gradient: {
|
|
@@ -34031,12 +34032,12 @@ const aI = D(({
|
|
|
34031
34032
|
}) => {
|
|
34032
34033
|
const $e = Z.filter((Qe) => Number.isFinite(Qe.breakpoint));
|
|
34033
34034
|
a.updateLayoutSetsInfo($e), e();
|
|
34034
|
-
},
|
|
34035
|
+
}, $ = c(), q = z(() => {
|
|
34035
34036
|
const Z = {
|
|
34036
|
-
list:
|
|
34037
|
+
list: $.list.filter(($e) => !!$e.name && Number.isFinite($e.breakpoint))
|
|
34037
34038
|
};
|
|
34038
34039
|
return !Oe(Z, i);
|
|
34039
|
-
}, [
|
|
34040
|
+
}, [$, i]), W = (oe = (G = h.errors.list) == null ? void 0 : G.root) == null ? void 0 : oe.message;
|
|
34040
34041
|
return /* @__PURE__ */ r(F, { children: /* @__PURE__ */ u("form", { onSubmit: l(M), children: [
|
|
34041
34042
|
/* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, withTableBorder: !0, sx: {
|
|
34042
34043
|
tableLayout: "fixed"
|
|
@@ -34054,7 +34055,7 @@ const aI = D(({
|
|
|
34054
34055
|
x.map((Z, $e) => /* @__PURE__ */ u(w.Tr, { children: [
|
|
34055
34056
|
/* @__PURE__ */ r(w.Th, { children: Z.id === "basis" ? Z.name : /* @__PURE__ */ r(f, { name: `list.${$e}.name`, control: o, render: ({
|
|
34056
34057
|
field: Qe
|
|
34057
|
-
}) => /* @__PURE__ */ r(
|
|
34058
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", label: "", required: !0, sx: {
|
|
34058
34059
|
flex: 1
|
|
34059
34060
|
}, ...Qe }) }) }),
|
|
34060
34061
|
/* @__PURE__ */ r(w.Td, { children: Z.id === "basis" ? /* @__PURE__ */ u(k, { size: "sm", ff: "monospace", children: [
|
|
@@ -34086,8 +34087,8 @@ const aI = D(({
|
|
|
34086
34087
|
] }),
|
|
34087
34088
|
/* @__PURE__ */ r(k, { mt: 6, ta: "right", size: "xs", c: "red", children: W ?? " " }),
|
|
34088
34089
|
/* @__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: !
|
|
34090
|
+
/* @__PURE__ */ r(L, { color: "orange", size: "xs", onClick: () => d(), leftSection: /* @__PURE__ */ r(Ct, { size: 18 }), disabled: !q, children: t("common.actions.revert") }),
|
|
34091
|
+
/* @__PURE__ */ r(L, { color: "green", size: "xs", type: "submit", leftSection: /* @__PURE__ */ r(be, { size: 18 }), disabled: !q, children: t("common.actions.save_changes") })
|
|
34091
34092
|
] })
|
|
34092
34093
|
] }) });
|
|
34093
34094
|
}), sI = D(() => {
|
|
@@ -34298,7 +34299,7 @@ const yI = D(({
|
|
|
34298
34299
|
stretchModal: t,
|
|
34299
34300
|
shrinkModal: n
|
|
34300
34301
|
}) => {
|
|
34301
|
-
var M,
|
|
34302
|
+
var M, $;
|
|
34302
34303
|
const {
|
|
34303
34304
|
t: a
|
|
34304
34305
|
} = y(), i = ie(), {
|
|
@@ -34315,12 +34316,12 @@ const yI = D(({
|
|
|
34315
34316
|
content: null
|
|
34316
34317
|
}
|
|
34317
34318
|
}), p = ({
|
|
34318
|
-
content:
|
|
34319
|
+
content: q
|
|
34319
34320
|
}) => {
|
|
34320
34321
|
try {
|
|
34321
|
-
if (!
|
|
34322
|
+
if (!q)
|
|
34322
34323
|
throw new Error("please use a valid json file");
|
|
34323
|
-
i.applyJSONSchema(
|
|
34324
|
+
i.applyJSONSchema(q), zn({
|
|
34324
34325
|
title: "Successful",
|
|
34325
34326
|
message: "",
|
|
34326
34327
|
color: "green"
|
|
@@ -34336,8 +34337,8 @@ const yI = D(({
|
|
|
34336
34337
|
N(() => {
|
|
34337
34338
|
if (!g)
|
|
34338
34339
|
return;
|
|
34339
|
-
const
|
|
34340
|
-
|
|
34340
|
+
const q = new FileReader();
|
|
34341
|
+
q.readAsText(g, "UTF-8"), q.onload = (W) => {
|
|
34341
34342
|
try {
|
|
34342
34343
|
const G = bI(W);
|
|
34343
34344
|
s("content", G), h("content");
|
|
@@ -34347,10 +34348,10 @@ const yI = D(({
|
|
|
34347
34348
|
message: G.message
|
|
34348
34349
|
});
|
|
34349
34350
|
}
|
|
34350
|
-
},
|
|
34351
|
-
|
|
34351
|
+
}, q.onabort = () => console.log("🟨 abort"), q.onerror = () => {
|
|
34352
|
+
q.error && (console.error(q.error), d("content", {
|
|
34352
34353
|
type: "custom",
|
|
34353
|
-
message:
|
|
34354
|
+
message: q.error.message
|
|
34354
34355
|
}));
|
|
34355
34356
|
};
|
|
34356
34357
|
}, [g]);
|
|
@@ -34360,7 +34361,7 @@ const yI = D(({
|
|
|
34360
34361
|
}, [_, T]), /* @__PURE__ */ r(R, { mx: "auto", sx: {
|
|
34361
34362
|
position: "relative"
|
|
34362
34363
|
}, children: /* @__PURE__ */ u("form", { onSubmit: o(p), children: [
|
|
34363
|
-
/* @__PURE__ */ r(Bh, { label: a("import.json_file"), required: !0, value: g, onChange: b, error: (
|
|
34364
|
+
/* @__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
34365
|
maxWidth: 500
|
|
34365
34366
|
} }),
|
|
34366
34367
|
T ? /* @__PURE__ */ r(w, { fz: 12, mt: 10, children: /* @__PURE__ */ u(w.Tbody, { children: [
|
|
@@ -34395,7 +34396,7 @@ const yI = D(({
|
|
|
34395
34396
|
}] = an(!1), [i, {
|
|
34396
34397
|
setTrue: o,
|
|
34397
34398
|
setFalse: l
|
|
34398
|
-
}] =
|
|
34399
|
+
}] = De(!1), c = ((d = le().content.views.VIE) == null ? void 0 : d.type) === K.Tabs;
|
|
34399
34400
|
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
34401
|
...bl,
|
|
34401
34402
|
transform: "none !important"
|
|
@@ -35140,7 +35141,7 @@ const e8 = D(() => {
|
|
|
35140
35141
|
/* @__PURE__ */ r(ee, { checked: a.allowSingleDateInRange, onChange: (l) => a.setAllowSingleDateInRange(l.currentTarget.checked), label: n("filter.widget.date_range.allow_single_date") })
|
|
35141
35142
|
] }),
|
|
35142
35143
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
35143
|
-
/* @__PURE__ */ r(
|
|
35144
|
+
/* @__PURE__ */ r(O, { data: r8, label: n("filter.widget.date_range.display_format"), value: a.inputFormat, onChange: a.setInputFormat }),
|
|
35144
35145
|
/* @__PURE__ */ r(re, { label: n("filter.widget.date_range.max_days"), min: 0, value: a.max_days, onChange: a.setMaxDays, hideControls: !0 })
|
|
35145
35146
|
] }),
|
|
35146
35147
|
/* @__PURE__ */ u(v, { children: [
|
|
@@ -35148,7 +35149,7 @@ const e8 = D(() => {
|
|
|
35148
35149
|
value: o,
|
|
35149
35150
|
shortcut: null
|
|
35150
35151
|
}, onChange: a.setDefaultValue, disabled: !!a.default_shortcut }),
|
|
35151
|
-
/* @__PURE__ */ r(
|
|
35152
|
+
/* @__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
35153
|
flexGrow: 1
|
|
35153
35154
|
}, maxDropdownHeight: 500 })
|
|
35154
35155
|
] }),
|
|
@@ -35185,7 +35186,7 @@ const e8 = D(() => {
|
|
|
35185
35186
|
/* @__PURE__ */ r(ee, { checked: a.required, onChange: (s) => a.setRequired(s.currentTarget.checked), label: n("filter.widget.select.required") }),
|
|
35186
35187
|
/* @__PURE__ */ r(yn, { filter: t })
|
|
35187
35188
|
] }),
|
|
35188
|
-
/* @__PURE__ */ r(
|
|
35189
|
+
/* @__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
35190
|
/* @__PURE__ */ r(A, { label: n("filter.widget.select.configure_options"), labelPosition: "center" }),
|
|
35190
35191
|
/* @__PURE__ */ u(I, { gap: 10, sx: {
|
|
35191
35192
|
position: "relative",
|
|
@@ -35211,12 +35212,12 @@ const e8 = D(() => {
|
|
|
35211
35212
|
o.map((s, c) => /* @__PURE__ */ u(Ue, { gap: 10, sx: {
|
|
35212
35213
|
position: "relative"
|
|
35213
35214
|
}, pr: "40px", children: [
|
|
35214
|
-
/* @__PURE__ */ r(
|
|
35215
|
+
/* @__PURE__ */ r(V, { label: n("common.label"), required: !0, value: a.static_options[c].label, onChange: (d) => {
|
|
35215
35216
|
a.static_options[c].setLabel(d.currentTarget.value);
|
|
35216
35217
|
}, sx: {
|
|
35217
35218
|
flexGrow: 1
|
|
35218
35219
|
} }),
|
|
35219
|
-
/* @__PURE__ */ r(
|
|
35220
|
+
/* @__PURE__ */ r(V, { label: n("common.value"), required: !0, value: a.static_options[c].value, onChange: (d) => {
|
|
35220
35221
|
a.static_options[c].setValue(d.currentTarget.value);
|
|
35221
35222
|
}, sx: {
|
|
35222
35223
|
flexGrow: 1
|
|
@@ -35300,7 +35301,7 @@ const e8 = D(() => {
|
|
|
35300
35301
|
};
|
|
35301
35302
|
return /* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
35302
35303
|
/* @__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(
|
|
35304
|
+
/* @__PURE__ */ r(O, { placeholder: t("filter.widget.select.preset_options.apply"), value: null, onChange: o, data: i, size: "xs" })
|
|
35304
35305
|
] });
|
|
35305
35306
|
}), l8 = D(({
|
|
35306
35307
|
config: e
|
|
@@ -35313,16 +35314,16 @@ const e8 = D(() => {
|
|
|
35313
35314
|
value: ""
|
|
35314
35315
|
}, ...a.filter((o) => o.value !== "")], [n.language, a]);
|
|
35315
35316
|
return a.length === 0 ? /* @__PURE__ */ r(wl, { config: e }) : /* @__PURE__ */ u(F, { children: [
|
|
35316
|
-
/* @__PURE__ */ r(
|
|
35317
|
+
/* @__PURE__ */ r(O, { label: t("filter.widget.select.default_selection"), data: i, value: e.default_value, onChange: e.setDefaultValue }),
|
|
35317
35318
|
a.map((o, l) => /* @__PURE__ */ u(Ue, { gap: 10, sx: {
|
|
35318
35319
|
position: "relative"
|
|
35319
35320
|
}, pr: "40px", children: [
|
|
35320
|
-
/* @__PURE__ */ r(
|
|
35321
|
+
/* @__PURE__ */ r(V, { label: t("common.label"), required: !0, value: e.static_options[l].label, onChange: (s) => {
|
|
35321
35322
|
e.static_options[l].setLabel(s.currentTarget.value);
|
|
35322
35323
|
}, sx: {
|
|
35323
35324
|
flexGrow: 1
|
|
35324
35325
|
} }),
|
|
35325
|
-
/* @__PURE__ */ r(
|
|
35326
|
+
/* @__PURE__ */ r(V, { label: t("common.value"), required: !0, value: e.static_options[l].value, onChange: (s) => {
|
|
35326
35327
|
e.static_options[l].setValue(s.currentTarget.value);
|
|
35327
35328
|
}, sx: {
|
|
35328
35329
|
flexGrow: 1
|
|
@@ -35347,7 +35348,7 @@ const e8 = D(() => {
|
|
|
35347
35348
|
/* @__PURE__ */ r(ee, { checked: n.clearable, onChange: (a) => n.setClearable(a.currentTarget.checked), label: t("filter.widget.select.clearable") }),
|
|
35348
35349
|
/* @__PURE__ */ r(yn, { filter: e })
|
|
35349
35350
|
] }),
|
|
35350
|
-
/* @__PURE__ */ r(
|
|
35351
|
+
/* @__PURE__ */ r(V, { label: t("filter.widget.select.width"), value: n.width, onChange: (a) => n.setWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
35351
35352
|
/* @__PURE__ */ r(A, { label: t("filter.widget.select.configure_options"), labelPosition: "center" }),
|
|
35352
35353
|
/* @__PURE__ */ u(I, { gap: 10, sx: {
|
|
35353
35354
|
position: "relative",
|
|
@@ -35384,7 +35385,7 @@ const e8 = D(() => {
|
|
|
35384
35385
|
} = y(), a = t.config;
|
|
35385
35386
|
return /* @__PURE__ */ u(F, { children: [
|
|
35386
35387
|
/* @__PURE__ */ u(v, { children: [
|
|
35387
|
-
/* @__PURE__ */ r(
|
|
35388
|
+
/* @__PURE__ */ r(V, { label: n("filter.widget.text_input.default_value"), value: a.default_value, onChange: (i) => {
|
|
35388
35389
|
a.setDefaultValue(i.currentTarget.value);
|
|
35389
35390
|
}, sx: {
|
|
35390
35391
|
flexGrow: 1
|
|
@@ -35484,7 +35485,7 @@ const e8 = D(() => {
|
|
|
35484
35485
|
/* @__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
35486
|
/* @__PURE__ */ r(Tu, { value: n.default_step, onChange: d, label: "默认步长" }),
|
|
35486
35487
|
/* @__PURE__ */ u(v, { children: [
|
|
35487
|
-
/* @__PURE__ */ r(
|
|
35488
|
+
/* @__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
35489
|
flexGrow: 1
|
|
35489
35490
|
}, maxDropdownHeight: 500 }),
|
|
35490
35491
|
/* @__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 +35553,13 @@ const e8 = D(() => {
|
|
|
35552
35553
|
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
35554
|
] }),
|
|
35554
35555
|
/* @__PURE__ */ r(Wt, { label: t("filter.field.visible_in"), data: a.views.options, value: [...e.visibleInViewsIDs], onChange: e.setVisibleInViewsIDs }),
|
|
35555
|
-
/* @__PURE__ */ r(
|
|
35556
|
+
/* @__PURE__ */ r(V, { label: t("common.key"), placeholder: t("filter.field.key_placeholder"), required: !0, value: e.key, onChange: (l) => {
|
|
35556
35557
|
e.setKey(l.currentTarget.value);
|
|
35557
35558
|
} }),
|
|
35558
|
-
/* @__PURE__ */ r(
|
|
35559
|
+
/* @__PURE__ */ r(V, { label: t("common.label"), placeholder: t("filter.field.label_placeholder"), required: !0, value: e.label, onChange: (l) => {
|
|
35559
35560
|
e.setLabel(l.currentTarget.value);
|
|
35560
35561
|
} }),
|
|
35561
|
-
/* @__PURE__ */ r(
|
|
35562
|
+
/* @__PURE__ */ r(O, { label: t("filter.field.widget"), data: o, required: !0, value: e.type, onChange: e.setType, maxDropdownHeight: 500 }),
|
|
35562
35563
|
/* @__PURE__ */ r(A, { mb: 0, mt: 10, variant: "dashed", labelPosition: "center" }),
|
|
35563
35564
|
/* @__PURE__ */ r(i, { filter: e })
|
|
35564
35565
|
] })
|
|
@@ -35798,7 +35799,7 @@ const e8 = D(() => {
|
|
|
35798
35799
|
] }),
|
|
35799
35800
|
/* @__PURE__ */ r(J, { variant: "subtle", color: "blue", disabled: !o || s, onClick: l, children: /* @__PURE__ */ r(be, { size: 18 }) })
|
|
35800
35801
|
] }),
|
|
35801
|
-
/* @__PURE__ */ r(
|
|
35802
|
+
/* @__PURE__ */ r(V, { value: a, onChange: i, required: !0 })
|
|
35802
35803
|
] });
|
|
35803
35804
|
}), w8 = D(() => {
|
|
35804
35805
|
const {
|
|
@@ -35882,14 +35883,14 @@ function eh({
|
|
|
35882
35883
|
});
|
|
35883
35884
|
return e.length === 0 ? /* @__PURE__ */ r(R, { sx: {
|
|
35884
35885
|
height: "5em"
|
|
35885
|
-
} }) : /* @__PURE__ */ r(
|
|
35886
|
+
} }) : /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(w, { sx: C8, children: [
|
|
35886
35887
|
/* @__PURE__ */ r(w.Thead, { children: n.getHeaderGroups().map((a) => /* @__PURE__ */ r(w.Tr, { children: a.headers.map((i) => /* @__PURE__ */ u(w.Th, { style: {
|
|
35887
35888
|
width: i.getSize()
|
|
35888
35889
|
}, children: [
|
|
35889
35890
|
i.isPlaceholder ? null : Fn(i.column.columnDef.header, i.getContext()),
|
|
35890
35891
|
/* @__PURE__ */ r(J, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Ja, {}) })
|
|
35891
35892
|
] }, 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(
|
|
35893
|
+
/* @__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
35894
|
] }) });
|
|
35894
35895
|
}
|
|
35895
35896
|
const k8 = [{
|
|
@@ -35937,7 +35938,7 @@ const k8 = [{
|
|
|
35937
35938
|
}
|
|
35938
35939
|
} }),
|
|
35939
35940
|
!d && /* @__PURE__ */ r(
|
|
35940
|
-
|
|
35941
|
+
O,
|
|
35941
35942
|
{
|
|
35942
35943
|
leftSection: /* @__PURE__ */ r(k, { ta: "center", c: "dimmed", size: "14px", children: o("common.pagination.page_size") }),
|
|
35943
35944
|
size: "xs",
|
|
@@ -35960,7 +35961,7 @@ const k8 = [{
|
|
|
35960
35961
|
const s = (n - 1) * i, c = s + i;
|
|
35961
35962
|
return e.slice(s, c);
|
|
35962
35963
|
}, [e, n, i]);
|
|
35963
|
-
return /* @__PURE__ */ u(
|
|
35964
|
+
return /* @__PURE__ */ u(ke, { children: [
|
|
35964
35965
|
/* @__PURE__ */ r(T8, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
|
|
35965
35966
|
/* @__PURE__ */ u(R, { py: 10, sx: {
|
|
35966
35967
|
width: "100%",
|
|
@@ -36061,7 +36062,7 @@ const k8 = [{
|
|
|
36061
36062
|
const {
|
|
36062
36063
|
panel: e
|
|
36063
36064
|
} = Ie();
|
|
36064
|
-
return /* @__PURE__ */ r(
|
|
36065
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(R, { className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, p: 0, sx: {
|
|
36065
36066
|
border: "1px solid",
|
|
36066
36067
|
borderColor: e.style.border.enabled ? "#e9ecef" : "transparent",
|
|
36067
36068
|
flexGrow: 0,
|
|
@@ -36102,7 +36103,7 @@ const R8 = D(({
|
|
|
36102
36103
|
i(e);
|
|
36103
36104
|
}, [e]);
|
|
36104
36105
|
const o = V8(), l = e !== a;
|
|
36105
|
-
return /* @__PURE__ */ r(
|
|
36106
|
+
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
36107
|
root: {
|
|
36107
36108
|
pointerEvents: "all"
|
|
36108
36109
|
}
|
|
@@ -36175,7 +36176,7 @@ const E8 = D(() => {
|
|
|
36175
36176
|
overflow: "hidden"
|
|
36176
36177
|
}, children: [
|
|
36177
36178
|
/* @__PURE__ */ r(R8, { submit: a, value: t.type }),
|
|
36178
|
-
/* @__PURE__ */ u(
|
|
36179
|
+
/* @__PURE__ */ u(ke, { children: [
|
|
36179
36180
|
/* @__PURE__ */ r(I, { pb: 10, sx: {
|
|
36180
36181
|
flexGrow: 1,
|
|
36181
36182
|
maxHeight: "100%",
|
|
@@ -36342,7 +36343,7 @@ const B8 = E.forwardRef(function({
|
|
|
36342
36343
|
border: "1px solid #e9ecef"
|
|
36343
36344
|
}, children: [
|
|
36344
36345
|
/* @__PURE__ */ u(v, { grow: !0, wrap: "nowrap", children: [
|
|
36345
|
-
/* @__PURE__ */ r(
|
|
36346
|
+
/* @__PURE__ */ r(V, { label: o("common.name"), required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
|
|
36346
36347
|
/* @__PURE__ */ r(X, { label: o("common.data_field"), required: !0, value: t.data_field, onChange: (s) => l("data_field", s) })
|
|
36347
36348
|
] }),
|
|
36348
36349
|
/* @__PURE__ */ r(Ei, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
|
|
@@ -36392,7 +36393,7 @@ const Q8 = D(({
|
|
|
36392
36393
|
} = y(), t = N8();
|
|
36393
36394
|
return t.variableOptions.length === 0 ? /* @__PURE__ */ r(Q8, { model: t }) : /* @__PURE__ */ u(I, { pb: 20, children: [
|
|
36394
36395
|
/* @__PURE__ */ u(v, { justify: "flex-start", children: [
|
|
36395
|
-
/* @__PURE__ */ r(
|
|
36396
|
+
/* @__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
36397
|
flexGrow: 1
|
|
36397
36398
|
} }),
|
|
36398
36399
|
/* @__PURE__ */ r(L, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ r(lt, { size: 16 }), onClick: t.addNew, sx: {
|
|
@@ -36510,8 +36511,8 @@ const U8 = D(({
|
|
|
36510
36511
|
] }),
|
|
36511
36512
|
/* @__PURE__ */ r(S.Panel, { value: "Panel", children: /* @__PURE__ */ r(Da, { children: /* @__PURE__ */ r(S8, {}) }) }),
|
|
36512
36513
|
/* @__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(
|
|
36514
|
+
/* @__PURE__ */ r(S.Panel, { value: "Visualization", children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(Da, { children: /* @__PURE__ */ r(E8, {}) }) }) }),
|
|
36515
|
+
/* @__PURE__ */ r(S.Panel, { value: "Interactions", children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(Jb, {}) }) })
|
|
36515
36516
|
] })
|
|
36516
36517
|
] });
|
|
36517
36518
|
}), K8 = D(({
|
|
@@ -36864,8 +36865,8 @@ const U8 = D(({
|
|
|
36864
36865
|
overflow: "auto",
|
|
36865
36866
|
position: "relative"
|
|
36866
36867
|
}, children: [
|
|
36867
|
-
/* @__PURE__ */ r(
|
|
36868
|
-
/* @__PURE__ */ r(
|
|
36868
|
+
/* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(eM, { dataSource: e }) }),
|
|
36869
|
+
/* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(rM, { dataSource: e }) })
|
|
36869
36870
|
] }));
|
|
36870
36871
|
function iM({
|
|
36871
36872
|
table_type: e
|
|
@@ -36930,7 +36931,7 @@ const oM = D(({
|
|
|
36930
36931
|
height: "30px"
|
|
36931
36932
|
}
|
|
36932
36933
|
} }),
|
|
36933
|
-
/* @__PURE__ */ r(
|
|
36934
|
+
/* @__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
36935
|
zIndex: 340
|
|
36935
36936
|
} })
|
|
36936
36937
|
] }),
|
|
@@ -36942,7 +36943,7 @@ const oM = D(({
|
|
|
36942
36943
|
dataSource: e
|
|
36943
36944
|
}) => {
|
|
36944
36945
|
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(
|
|
36946
|
+
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
36947
|
/* @__PURE__ */ r(dM, { dataSource: e }),
|
|
36947
36948
|
/* @__PURE__ */ u(R, { py: 10, sx: {
|
|
36948
36949
|
width: "100%",
|
|
@@ -36983,7 +36984,7 @@ const oM = D(({
|
|
|
36983
36984
|
flexGrow: 0,
|
|
36984
36985
|
flexShrink: 0,
|
|
36985
36986
|
position: "relative"
|
|
36986
|
-
}, children: /* @__PURE__ */ r(
|
|
36987
|
+
}, children: /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ r(oM, { dataSource: e }) }) }),
|
|
36987
36988
|
/* @__PURE__ */ u(S, { defaultValue: "structure", styles: hM, children: [
|
|
36988
36989
|
/* @__PURE__ */ u(S.List, { children: [
|
|
36989
36990
|
/* @__PURE__ */ r(S.Tab, { value: "structure", leftSection: /* @__PURE__ */ r(Tp, { size: 14 }), children: t("data_source.table_structure_short") }),
|
|
@@ -37107,7 +37108,7 @@ const oM = D(({
|
|
|
37107
37108
|
type: e.type,
|
|
37108
37109
|
key: e.key
|
|
37109
37110
|
}), [a, e.type, e.key]);
|
|
37110
|
-
return /* @__PURE__ */ r(
|
|
37111
|
+
return /* @__PURE__ */ r(O, { size: t, data: l, label: /* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
37111
37112
|
/* @__PURE__ */ r(R, { children: n("data_source.label") }),
|
|
37112
37113
|
d && /* @__PURE__ */ r(nh, { dataSource: d, triggerButtonProps: {
|
|
37113
37114
|
size: "compact-xs",
|
|
@@ -37149,7 +37150,7 @@ const oM = D(({
|
|
|
37149
37150
|
width: "100%"
|
|
37150
37151
|
}, children: [
|
|
37151
37152
|
/* @__PURE__ */ r(A, { mb: -10, variant: "dashed", label: t("query.basics"), labelPosition: "center" }),
|
|
37152
|
-
/* @__PURE__ */ r(
|
|
37153
|
+
/* @__PURE__ */ r(V, { placeholder: t("query.name_description"), label: t("query.name"), required: !0, sx: {
|
|
37153
37154
|
flex: 1
|
|
37154
37155
|
}, value: n, onChange: (o) => {
|
|
37155
37156
|
a(o.currentTarget.value);
|
|
@@ -37611,7 +37612,7 @@ function PM({
|
|
|
37611
37612
|
});
|
|
37612
37613
|
return e.length === 0 ? /* @__PURE__ */ r(R, { sx: {
|
|
37613
37614
|
height: "5em"
|
|
37614
|
-
} }) : /* @__PURE__ */ r(
|
|
37615
|
+
} }) : /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(w, { sx: RM, stickyHeader: !0, stickyHeaderOffset: 0, children: [
|
|
37615
37616
|
/* @__PURE__ */ r(w.Thead, { style: {
|
|
37616
37617
|
backgroundColor: "#F9F9FA"
|
|
37617
37618
|
}, children: n.getHeaderGroups().map((a) => /* @__PURE__ */ r(w.Tr, { children: a.headers.map((i) => /* @__PURE__ */ u(w.Th, { style: {
|
|
@@ -37620,7 +37621,7 @@ function PM({
|
|
|
37620
37621
|
i.isPlaceholder ? null : Fn(i.column.columnDef.header, i.getContext()),
|
|
37621
37622
|
/* @__PURE__ */ r(J, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Ja, {}) })
|
|
37622
37623
|
] }, 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(
|
|
37624
|
+
/* @__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
37625
|
] }) });
|
|
37625
37626
|
}
|
|
37626
37627
|
const AM = [{
|
|
@@ -37667,7 +37668,7 @@ const AM = [{
|
|
|
37667
37668
|
return /* @__PURE__ */ u(v, { pt: 10, px: 10, justify: "space-between", children: [
|
|
37668
37669
|
/* @__PURE__ */ u(v, { justify: "flex-start", children: [
|
|
37669
37670
|
!d && /* @__PURE__ */ r(
|
|
37670
|
-
|
|
37671
|
+
O,
|
|
37671
37672
|
{
|
|
37672
37673
|
leftSection: /* @__PURE__ */ r(k, { ta: "center", c: "dimmed", size: "xs", children: o("common.pagination.page_size") }),
|
|
37673
37674
|
size: "xs",
|
|
@@ -37695,7 +37696,7 @@ const AM = [{
|
|
|
37695
37696
|
const s = (n - 1) * i, c = s + i;
|
|
37696
37697
|
return e.slice(s, c);
|
|
37697
37698
|
}, [e, n, i]);
|
|
37698
|
-
return /* @__PURE__ */ r(
|
|
37699
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(I, { gap: 10, styles: {
|
|
37699
37700
|
root: {
|
|
37700
37701
|
height: "100%",
|
|
37701
37702
|
overflow: "hidden"
|
|
@@ -38011,7 +38012,7 @@ const AM = [{
|
|
|
38011
38012
|
n(s, c);
|
|
38012
38013
|
}, [n]);
|
|
38013
38014
|
return /* @__PURE__ */ r(
|
|
38014
|
-
|
|
38015
|
+
O,
|
|
38015
38016
|
{
|
|
38016
38017
|
size: "xs",
|
|
38017
38018
|
variant: "unstyled",
|
|
@@ -38099,11 +38100,11 @@ const AM = [{
|
|
|
38099
38100
|
queryModel: e
|
|
38100
38101
|
}) => {
|
|
38101
38102
|
const t = e.config, i = e.datasource.mericoMetricInfo.metricDetail, o = i.trendingDateCol, l = t.timeQuery.enabled;
|
|
38102
|
-
return i.supportTrending ? /* @__PURE__ */ r(
|
|
38103
|
+
return i.supportTrending ? /* @__PURE__ */ r(ze, { size: "xs", color: "red", checked: l, onChange: (s) => t.setTimeQueryEnabled(s.currentTarget.checked), styles: {
|
|
38103
38104
|
track: {
|
|
38104
38105
|
cursor: "pointer"
|
|
38105
38106
|
}
|
|
38106
|
-
} }) : /* @__PURE__ */ r(ae, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(
|
|
38107
|
+
} }) : /* @__PURE__ */ r(ae, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(ze, { size: "xs", color: "red", disabled: !o }) }) });
|
|
38107
38108
|
}), t9 = D(({
|
|
38108
38109
|
queryModel: e
|
|
38109
38110
|
}) => {
|
|
@@ -38209,7 +38210,7 @@ const AM = [{
|
|
|
38209
38210
|
};
|
|
38210
38211
|
return /* @__PURE__ */ u(F, { children: [
|
|
38211
38212
|
/* @__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(
|
|
38213
|
+
/* @__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
38214
|
] });
|
|
38214
38215
|
}), o9 = (e) => {
|
|
38215
38216
|
if (!e)
|
|
@@ -38396,12 +38397,12 @@ const AM = [{
|
|
|
38396
38397
|
loading: c,
|
|
38397
38398
|
error: d
|
|
38398
38399
|
} = i;
|
|
38399
|
-
return /* @__PURE__ */ r(
|
|
38400
|
-
d ? /* @__PURE__ */ r(ae, { label: d, children: /* @__PURE__ */ r(
|
|
38400
|
+
return /* @__PURE__ */ r(ke, { children: /* @__PURE__ */ u(v, { justify: "flex-end", gap: 12, align: "flex-end", children: [
|
|
38401
|
+
d ? /* @__PURE__ */ r(ae, { label: d, children: /* @__PURE__ */ r(O, { size: "xs", label: "指标", error: !0, styles: {
|
|
38401
38402
|
root: {
|
|
38402
38403
|
flexGrow: 1
|
|
38403
38404
|
}
|
|
38404
|
-
} }) }) : /* @__PURE__ */ r(
|
|
38405
|
+
} }) }) : /* @__PURE__ */ r(O, { size: "xs", label: "指标", data: o, renderOption: g9, styles: {
|
|
38405
38406
|
root: {
|
|
38406
38407
|
flexGrow: 1
|
|
38407
38408
|
}
|
|
@@ -38425,7 +38426,7 @@ const AM = [{
|
|
|
38425
38426
|
flexGrow: 0,
|
|
38426
38427
|
flexShrink: 0
|
|
38427
38428
|
}
|
|
38428
|
-
}, children: /* @__PURE__ */ r(
|
|
38429
|
+
}, children: /* @__PURE__ */ r(V, { size: "xs", placeholder: t("query.name_description"), label: t("query.name"), value: e.name, onChange: (n) => {
|
|
38429
38430
|
e.setName(n.currentTarget.value);
|
|
38430
38431
|
}, styles: {
|
|
38431
38432
|
root: {
|
|
@@ -38505,7 +38506,7 @@ const AM = [{
|
|
|
38505
38506
|
/* @__PURE__ */ u(v, { sx: {
|
|
38506
38507
|
alignItems: "end"
|
|
38507
38508
|
}, gap: 40, children: [
|
|
38508
|
-
/* @__PURE__ */ r(
|
|
38509
|
+
/* @__PURE__ */ r(V, { label: a(h ? "sql_snippet.key_occupied" : "sql_snippet.key"), value: l, onChange: (M) => {
|
|
38509
38510
|
s(M.currentTarget.value);
|
|
38510
38511
|
}, sx: {
|
|
38511
38512
|
flexGrow: "1 !important"
|
|
@@ -38680,9 +38681,9 @@ const AM = [{
|
|
|
38680
38681
|
const o = e.config;
|
|
38681
38682
|
return /* @__PURE__ */ u(I, { children: [
|
|
38682
38683
|
/* @__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(
|
|
38684
|
+
/* @__PURE__ */ r(O, { label: t("common.tabs.variant.label"), value: o.variant, onChange: o.setVariant, data: a }),
|
|
38685
|
+
/* @__PURE__ */ r(O, { label: t("common.tabs.orientation.label"), value: o.orientation, onChange: o.setOrientation, data: i }),
|
|
38686
|
+
/* @__PURE__ */ r(ze, { label: t("common.tabs.grow_tabs"), checked: o.grow, onChange: (l) => o.setGrow(l.currentTarget.checked) })
|
|
38686
38687
|
] });
|
|
38687
38688
|
}), k9 = ({
|
|
38688
38689
|
disabled: e,
|
|
@@ -38709,7 +38710,7 @@ const AM = [{
|
|
|
38709
38710
|
} = y(), [a, {
|
|
38710
38711
|
setTrue: i,
|
|
38711
38712
|
setFalse: o
|
|
38712
|
-
}] =
|
|
38713
|
+
}] = De(), [l, s] = Q(e ?? qa), c = (b) => {
|
|
38713
38714
|
s({
|
|
38714
38715
|
...l,
|
|
38715
38716
|
enabled: b
|
|
@@ -38762,14 +38763,14 @@ const AM = [{
|
|
|
38762
38763
|
return /* @__PURE__ */ u(I, { children: [
|
|
38763
38764
|
/* @__PURE__ */ r(A, { mt: 8, label: t("view.component.modal.modal_settings"), labelPosition: "center" }),
|
|
38764
38765
|
/* @__PURE__ */ u(Ue, { gap: 10, children: [
|
|
38765
|
-
/* @__PURE__ */ r(
|
|
38766
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.title"), value: a, onChange: C.noop, disabled: !0, sx: {
|
|
38766
38767
|
flexGrow: 1
|
|
38767
38768
|
} }),
|
|
38768
38769
|
/* @__PURE__ */ r(z9, { value: n.custom_modal_title, onChange: n.custom_modal_title.replace })
|
|
38769
38770
|
] }),
|
|
38770
38771
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
38771
|
-
/* @__PURE__ */ r(
|
|
38772
|
-
/* @__PURE__ */ r(
|
|
38772
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.width"), value: n.width, onChange: (i) => n.setWidth(i.currentTarget.value), placeholder: "600px / 50vw" }),
|
|
38773
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.height"), value: n.height, onChange: (i) => n.setHeight(i.currentTarget.value), placeholder: "600px / 50vw" })
|
|
38773
38774
|
] })
|
|
38774
38775
|
] });
|
|
38775
38776
|
}), D9 = D(({
|
|
@@ -38797,10 +38798,10 @@ const AM = [{
|
|
|
38797
38798
|
return e ? /* @__PURE__ */ u(I, { sx: {
|
|
38798
38799
|
position: "relative"
|
|
38799
38800
|
}, children: [
|
|
38800
|
-
/* @__PURE__ */ r(
|
|
38801
|
+
/* @__PURE__ */ r(V, { label: t("common.name"), value: e.name, onChange: (i) => {
|
|
38801
38802
|
e.setName(i.currentTarget.value);
|
|
38802
38803
|
} }),
|
|
38803
|
-
/* @__PURE__ */ r(
|
|
38804
|
+
/* @__PURE__ */ r(O, { label: t("common.type"), comboboxProps: {
|
|
38804
38805
|
withinPortal: !0,
|
|
38805
38806
|
zIndex: 320
|
|
38806
38807
|
}, value: e.type, onChange: e.setType, data: a }),
|
|
@@ -39172,7 +39173,7 @@ const Z9 = {
|
|
|
39172
39173
|
}), [T]);
|
|
39173
39174
|
const M = async () => {
|
|
39174
39175
|
await a(T.json, T.content.json);
|
|
39175
|
-
},
|
|
39176
|
+
}, $ = Ut(Xi, []), q = Uu($);
|
|
39176
39177
|
return X9(T.content.changed), Nl("@devtable/dashboard editor", {
|
|
39177
39178
|
context: e,
|
|
39178
39179
|
dashboard: t,
|
|
@@ -39194,7 +39195,7 @@ const Z9 = {
|
|
|
39194
39195
|
inEditMode: !0
|
|
39195
39196
|
}, children: [
|
|
39196
39197
|
/* @__PURE__ */ r(CI, {}),
|
|
39197
|
-
/* @__PURE__ */ r(sn.Provider, { value:
|
|
39198
|
+
/* @__PURE__ */ r(sn.Provider, { value: $, children: /* @__PURE__ */ u(na, { configure: q, children: [
|
|
39198
39199
|
/* @__PURE__ */ u(rt, { padding: 0, navbar: {
|
|
39199
39200
|
width: {
|
|
39200
39201
|
base: 200,
|
|
@@ -39449,7 +39450,7 @@ const rL = ({
|
|
|
39449
39450
|
}, [h, T.content.views.firstVisibleTabsViewActiveTabStr]), E.useEffect(() => {
|
|
39450
39451
|
d && T.content.views.setFirstVisibleTabsViewActiveTab(d);
|
|
39451
39452
|
}, [d, T.content.views.setFirstVisibleTabsViewActiveTab]);
|
|
39452
|
-
const M = Ut(Xi, [T]),
|
|
39453
|
+
const M = Ut(Xi, [T]), $ = Uu(M);
|
|
39453
39454
|
return Nl("@devtable/dashboard render", {
|
|
39454
39455
|
context: e,
|
|
39455
39456
|
dashboard: t,
|
|
@@ -39474,7 +39475,7 @@ const rL = ({
|
|
|
39474
39475
|
setFullScreenPanelID: l
|
|
39475
39476
|
}, children: /* @__PURE__ */ r(ur.Provider, { value: {
|
|
39476
39477
|
inEditMode: !1
|
|
39477
|
-
}, children: /* @__PURE__ */ r(R, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(sn.Provider, { value: M, children: /* @__PURE__ */ r(na, { configure:
|
|
39478
|
+
}, 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
39479
|
}, pV = D(rL), mV = () => Promise.resolve().then(() => yg).then(({
|
|
39479
39480
|
version: e
|
|
39480
39481
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|