@devtable/dashboard 14.50.1 → 14.50.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/filter/filter-date-range/widget/calendar.d.ts +2 -2
- package/dist/components/filter/filter-date-range/widget/shortcuts/index.d.ts +5 -2
- package/dist/components/filter/filter-date-range/widget/shortcuts/shortcuts.test.d.ts +1 -0
- package/dist/components/filter/filter-merico-date-range/widget/calendar/calendar.d.ts +2 -2
- package/dist/components/filter/filter-merico-date-range/widget/shortcuts/index.d.ts +2 -1
- package/dist/dashboard.es.js +511 -510
- package/dist/dashboard.umd.js +25 -25
- package/dist/stats.html +1 -1
- package/dist/style.css +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
- package/dist/components/filter/filter-merico-date-range/filter-merico-date-range-for-editor-field.d.ts +0 -11
package/dist/dashboard.es.js
CHANGED
|
@@ -16,7 +16,7 @@ import "echarts-gl";
|
|
|
16
16
|
import * as Ne from "echarts/core";
|
|
17
17
|
import { use as Sh } from "echarts/core";
|
|
18
18
|
import { useBoolean as De, useCreation as Nt, usePrevious as Ch, useAsyncEffect as jn, useRequest as Sn, useLatest as Ca, useWhyDidYouUpdate as El } from "ahooks";
|
|
19
|
-
import { Box as
|
|
19
|
+
import { Box as $, TextInput as V, Group as _, Text as z, Select as q, Button as L, Modal as Se, Stack as I, Divider as A, NumberInput as re, SimpleGrid as Te, Menu as K, UnstyledButton as ja, Tooltip as ae, Flex as rt, ColorInput as un, Center as Gt, ActionIcon as ee, Badge as Bt, CloseButton as kt, Overlay as hn, NativeSelect as Er, useMantineTheme as Or, ColorSwatch as wr, Popover as Ye, ColorPicker as fo, HoverCard as pe, Checkbox as J, Paper as kh, Code as bo, Tabs as S, Switch as ke, Table as w, MultiSelect as Jt, LoadingOverlay as pn, Alert as lr, Collapse as sr, CheckIcon as zh, SegmentedControl as Qa, Anchor as On, Pagination as qr, Textarea as Ol, RangeSlider as Th, Autocomplete as Dh, Combobox as Zt, Mark as ql, Slider as Ih, ThemeIcon as tr, Pill as Mh, List as Ke, getRadius as Ha, Affix as Lh, AppShell as tt, FileInput as Vh, Highlight as $h, rem as yo, JsonInput as Fl, Drawer as Rh, Radio as _o, Skeleton as vo, NavLink as ka, useCombobox as Ph, Loader as Ga, InputBase as Ah, Input as Eh } from "@mantine/core";
|
|
20
20
|
import { useHover as Oh, useDisclosure as nn, useClipboard as qh, randomId as Cn, useElementSize as Nl, useResizeObserver as Fh, useInputState as Bl } from "@mantine/hooks";
|
|
21
21
|
import * as Nh from "popmotion";
|
|
22
22
|
import { interpolate as Dn } from "popmotion";
|
|
@@ -26,7 +26,7 @@ import * as Ct from "mathjs";
|
|
|
26
26
|
import { faker as Bh } from "@faker-js/faker";
|
|
27
27
|
import * as jh from "crypto-js";
|
|
28
28
|
import Qh from "crypto-js";
|
|
29
|
-
import
|
|
29
|
+
import P from "dayjs";
|
|
30
30
|
import jt from "numbro";
|
|
31
31
|
import { IconMathFunction as rn, IconRecycle as yt, IconDeviceFloppy as fe, IconSelector as Hh, IconGripVertical as Ql, IconTrash as Pe, IconArrowBackUp as Gh, IconPlayerSkipBack as Hl, IconMathFunctionOff as Wh, IconTextSize as Wa, IconInfoCircle as Ae, IconCheck as Ua, IconBorderAll as Uh, IconCircleOff as Gl, IconX as Fr, IconAlertCircle as rr, IconPlus as ht, IconGripHorizontal as Kh, IconChevronUp as Yh, IconChevronDown as Wl, IconChartAreaLineFilled as Xh, IconPlaylistAdd as ar, IconAdjustments as Ul, IconArrowDown as Zh, IconArrowUp as Jh, IconChevronLeft as ep, IconChevronRight as tp, IconArrowBarToRight as Ka, IconArrowCurveRight as za, IconLayersIntersect as np, IconLayersSubtract as rp, IconCalendar as Kl, IconMinus as Yl, IconRefresh as Ya, IconChevronsUp as ap, IconChevronsDown as ip, IconDotsVertical as Xl, IconDownload as Nr, IconCamera as Xa, IconCode as kn, IconArrowsMaximize as op, IconAppWindow as Za, IconVariable as Qn, IconChartHistogram as Zl, IconRoute as Ja, IconCopy as Br, IconDatabase as mn, IconArrowLeft as Jl, IconMenu2 as lp, IconChevronDownRight as sp, IconShare3 as cp, IconArrowsLeftRight as dp, IconCodeDots as es, IconFilter as ei, IconBoxMultiple as ti, IconCaretDown as up, IconAlertTriangle as ts, IconDevices as hp, IconSettings as Hn, IconPointFilled as jr, IconFileImport as xo, IconSearch as ns, IconCircleDashed as pp, IconCircleDot as mp, IconChevronsUpRight as gp, IconLine as fp, IconEye as rs, IconTable as bp, IconColumns as yp, IconVectorTriangle as _p, IconVariablePlus as vp, IconHierarchy as xp, IconDiscountCheckFilled as wp, IconHash as Sp } from "@tabler/icons-react";
|
|
32
32
|
import { RichTextEditor as ce, Link as as, useRichTextEditorContext as Cp } from "@mantine/tiptap";
|
|
@@ -2504,7 +2504,7 @@ function ug() {
|
|
|
2504
2504
|
} = E.useContext(Ps);
|
|
2505
2505
|
return e ? document.getElementById(e) : null;
|
|
2506
2506
|
}
|
|
2507
|
-
const Es = "14.50.
|
|
2507
|
+
const Es = "14.50.3", hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2508
2508
|
__proto__: null,
|
|
2509
2509
|
version: Es
|
|
2510
2510
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2652,7 +2652,7 @@ const Y = (e, t) => {
|
|
|
2652
2652
|
width: e,
|
|
2653
2653
|
height: t,
|
|
2654
2654
|
children: n
|
|
2655
|
-
}) => /* @__PURE__ */ r(
|
|
2655
|
+
}) => /* @__PURE__ */ r($, { pt: nt.top, pr: nt.right, pb: nt.bottom, pl: nt.left, sx: {
|
|
2656
2656
|
width: e,
|
|
2657
2657
|
height: t,
|
|
2658
2658
|
overflow: "hidden",
|
|
@@ -2663,7 +2663,7 @@ te(function({
|
|
|
2663
2663
|
onChange: n,
|
|
2664
2664
|
...a
|
|
2665
2665
|
}, i) {
|
|
2666
|
-
return /* @__PURE__ */ r(
|
|
2666
|
+
return /* @__PURE__ */ r(V, { ref: i, value: t, onChange: n, ...a });
|
|
2667
2667
|
});
|
|
2668
2668
|
class fg {
|
|
2669
2669
|
constructor({
|
|
@@ -2735,7 +2735,7 @@ function _r(e, t) {
|
|
|
2735
2735
|
const Mt = {
|
|
2736
2736
|
CryptoJS: Qh,
|
|
2737
2737
|
d3Array: jl,
|
|
2738
|
-
dayjs:
|
|
2738
|
+
dayjs: P,
|
|
2739
2739
|
lodash: C,
|
|
2740
2740
|
numbro: jt,
|
|
2741
2741
|
mathjs: Ct,
|
|
@@ -3260,7 +3260,7 @@ function jg(e) {
|
|
|
3260
3260
|
hovered: s,
|
|
3261
3261
|
ref: c
|
|
3262
3262
|
} = Oh();
|
|
3263
|
-
return /* @__PURE__ */ r(
|
|
3263
|
+
return /* @__PURE__ */ r($, { ref: c, ...a, children: /* @__PURE__ */ u(_, { wrap: "nowrap", justify: "space-between", children: [
|
|
3264
3264
|
/* @__PURE__ */ r(z, { size: "sm", sx: {
|
|
3265
3265
|
flexGrow: 1
|
|
3266
3266
|
}, children: l }),
|
|
@@ -3288,7 +3288,7 @@ const be = (e) => (t, n) => {
|
|
|
3288
3288
|
const {
|
|
3289
3289
|
panel: p
|
|
3290
3290
|
} = Le(), g = E.useMemo(() => p.variableOptions(a, s), [a, s]);
|
|
3291
|
-
return g.length === 0 ? /* @__PURE__ */ r(
|
|
3291
|
+
return g.length === 0 ? /* @__PURE__ */ r(V, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(q, { ref: t, label: n, description: o, renderOption: jg(d), data: g, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
|
|
3292
3292
|
withinPortal: !0,
|
|
3293
3293
|
zIndex: h
|
|
3294
3294
|
}, onChange: be(i) });
|
|
@@ -3305,7 +3305,7 @@ const be = (e) => (t, n) => {
|
|
|
3305
3305
|
}, Qg = ({
|
|
3306
3306
|
value: e,
|
|
3307
3307
|
onChange: t
|
|
3308
|
-
}) => /* @__PURE__ */ r(
|
|
3308
|
+
}) => /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(Wt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
|
|
3309
3309
|
a && t(a);
|
|
3310
3310
|
}, theme: "vs-dark", options: {
|
|
3311
3311
|
minimap: {
|
|
@@ -3341,7 +3341,7 @@ const be = (e) => (t, n) => {
|
|
|
3341
3341
|
h(rc.dynamic.value);
|
|
3342
3342
|
};
|
|
3343
3343
|
return /* @__PURE__ */ u(F, { children: [
|
|
3344
|
-
/* @__PURE__ */ r(
|
|
3344
|
+
/* @__PURE__ */ r($, { sx: {
|
|
3345
3345
|
width: "50%"
|
|
3346
3346
|
}, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(rn, { size: 16 }), mt: 24, onClick: i, sx: {
|
|
3347
3347
|
flexGrow: 0
|
|
@@ -3580,7 +3580,7 @@ const Yg = Kg(), Xg = ({
|
|
|
3580
3580
|
borderRadius: "0.25rem",
|
|
3581
3581
|
columnGap: 10
|
|
3582
3582
|
}, children: [
|
|
3583
|
-
/* @__PURE__ */ r(
|
|
3583
|
+
/* @__PURE__ */ r($, { style: {
|
|
3584
3584
|
height: "20px",
|
|
3585
3585
|
flexGrow: 1,
|
|
3586
3586
|
backgroundImage: i,
|
|
@@ -3594,7 +3594,7 @@ const Yg = Kg(), Xg = ({
|
|
|
3594
3594
|
/* @__PURE__ */ r(K.Divider, {}),
|
|
3595
3595
|
Object.entries(Yg).map(([o, l]) => /* @__PURE__ */ r(ae, { label: a("chart.visual_map.use_palette_x", {
|
|
3596
3596
|
x: o
|
|
3597
|
-
}), children: /* @__PURE__ */ r(K.Item, { children: /* @__PURE__ */ r(
|
|
3597
|
+
}), children: /* @__PURE__ */ r(K.Item, { children: /* @__PURE__ */ r($, { style: {
|
|
3598
3598
|
height: "20px",
|
|
3599
3599
|
width: "100%",
|
|
3600
3600
|
backgroundImage: `linear-gradient(to right, ${l.join(", ")})`,
|
|
@@ -3674,7 +3674,7 @@ const Yg = Kg(), Xg = ({
|
|
|
3674
3674
|
source: x,
|
|
3675
3675
|
target: T
|
|
3676
3676
|
} = v.operation, M = ws(o, x, T);
|
|
3677
|
-
t(M.map((
|
|
3677
|
+
t(M.map((R) => R.value));
|
|
3678
3678
|
}, children: o.map((v, x) => /* @__PURE__ */ r(Zg, { color: v, handleChange: d(x), handleRemove: () => s(x), index: x }, v.id)) }),
|
|
3679
3679
|
/* @__PURE__ */ u(rt, { gap: "sm", justify: "flex-start", align: "center", direction: "row", wrap: "nowrap", children: [
|
|
3680
3680
|
/* @__PURE__ */ r("div", { style: {
|
|
@@ -3713,9 +3713,9 @@ const Yg = Kg(), Xg = ({
|
|
|
3713
3713
|
s(e);
|
|
3714
3714
|
}, [e]);
|
|
3715
3715
|
const c = ne(() => s(e), [s, e]);
|
|
3716
|
-
return /* @__PURE__ */ u(
|
|
3716
|
+
return /* @__PURE__ */ u($, { children: [
|
|
3717
3717
|
/* @__PURE__ */ r(A, { color: "rgb(206, 212, 218)", variant: "dotted", my: "1rem" }),
|
|
3718
|
-
/* @__PURE__ */ u(
|
|
3718
|
+
/* @__PURE__ */ u($, { px: "1rem", children: [
|
|
3719
3719
|
/* @__PURE__ */ r(f, { control: o, name: "variable", render: ({
|
|
3720
3720
|
field: d
|
|
3721
3721
|
}) => /* @__PURE__ */ r(ha, { label: a("rich_text.color_mapping.choose_value_var"), clearable: !1, preview: "aggregated", zIndex: 340, ...d }) }),
|
|
@@ -3728,7 +3728,7 @@ const Yg = Kg(), Xg = ({
|
|
|
3728
3728
|
}, ...d }) }),
|
|
3729
3729
|
/* @__PURE__ */ r(f, { name: "min_val", control: o, render: ({
|
|
3730
3730
|
field: d
|
|
3731
|
-
}) => /* @__PURE__ */ r(
|
|
3731
|
+
}) => /* @__PURE__ */ r(V, { label: a("rich_text.color_mapping.min.val"), ...d, sx: {
|
|
3732
3732
|
maxWidth: "120px",
|
|
3733
3733
|
flexGrow: 0
|
|
3734
3734
|
} }) })
|
|
@@ -3742,7 +3742,7 @@ const Yg = Kg(), Xg = ({
|
|
|
3742
3742
|
}, ...d }) }),
|
|
3743
3743
|
/* @__PURE__ */ r(f, { name: "max_val", control: o, render: ({
|
|
3744
3744
|
field: d
|
|
3745
|
-
}) => /* @__PURE__ */ r(
|
|
3745
|
+
}) => /* @__PURE__ */ r(V, { label: a("rich_text.color_mapping.max.val"), ...d, sx: {
|
|
3746
3746
|
maxWidth: "120px",
|
|
3747
3747
|
flexGrow: 0
|
|
3748
3748
|
} }) })
|
|
@@ -3777,7 +3777,7 @@ const tf = () => /* @__PURE__ */ r("div", { style: {
|
|
|
3777
3777
|
background: lc(90, ...Object.values(qt.graphics.depth))
|
|
3778
3778
|
} }), nf = ({
|
|
3779
3779
|
disabled: e
|
|
3780
|
-
}) => /* @__PURE__ */ r(
|
|
3780
|
+
}) => /* @__PURE__ */ r($, { sx: {
|
|
3781
3781
|
width: "16px",
|
|
3782
3782
|
height: "10px",
|
|
3783
3783
|
borderRadius: "2px",
|
|
@@ -3990,12 +3990,12 @@ const Jn = "data-value", uf = Jn, hc = "dynamicColor", pc = xs.create({
|
|
|
3990
3990
|
const g = ne((x, T) => {
|
|
3991
3991
|
if (i.length === 0)
|
|
3992
3992
|
return;
|
|
3993
|
-
const M = Yp(T),
|
|
3994
|
-
if (M.initializeIn(x), M.addRestrictionsTo(
|
|
3995
|
-
M.toggleDevMode(),
|
|
3996
|
-
const O =
|
|
3993
|
+
const M = Yp(T), R = x.getModel();
|
|
3994
|
+
if (M.initializeIn(x), M.addRestrictionsTo(R, i), !!R && !R._hasHighlight) {
|
|
3995
|
+
M.toggleDevMode(), R.toggleHighlightOfEditableAreas();
|
|
3996
|
+
const O = R.getCurrentEditableRanges(), G = R.getValueInEditableRanges();
|
|
3997
3997
|
console.debug({
|
|
3998
|
-
model:
|
|
3998
|
+
model: R,
|
|
3999
3999
|
currentRanges: O,
|
|
4000
4000
|
currentValue: G
|
|
4001
4001
|
});
|
|
@@ -4022,7 +4022,7 @@ const Jn = "data-value", uf = Jn, hc = "dynamicColor", pc = xs.create({
|
|
|
4022
4022
|
] })
|
|
4023
4023
|
] }),
|
|
4024
4024
|
/* @__PURE__ */ r(z, { size: "14px", children: n }),
|
|
4025
|
-
/* @__PURE__ */ u(
|
|
4025
|
+
/* @__PURE__ */ u($, { sx: {
|
|
4026
4026
|
position: "relative",
|
|
4027
4027
|
flexGrow: 1
|
|
4028
4028
|
}, children: [
|
|
@@ -4050,7 +4050,7 @@ const Jn = "data-value", uf = Jn, hc = "dynamicColor", pc = xs.create({
|
|
|
4050
4050
|
return /* @__PURE__ */ u(F, { children: [
|
|
4051
4051
|
/* @__PURE__ */ u(Se, { opened: g, onClose: v, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
|
|
4052
4052
|
i,
|
|
4053
|
-
/* @__PURE__ */ r(
|
|
4053
|
+
/* @__PURE__ */ r($, { h: 600, children: /* @__PURE__ */ r(Tn, { value: t, onChange: n, defaultValue: c, label: a, restrictions: h }) })
|
|
4054
4054
|
] }),
|
|
4055
4055
|
s == null ? void 0 : s({
|
|
4056
4056
|
onClick: b
|
|
@@ -4349,7 +4349,7 @@ const cn = te(({
|
|
|
4349
4349
|
N(() => {
|
|
4350
4350
|
!i || !h || T();
|
|
4351
4351
|
}, [i, M, h]);
|
|
4352
|
-
const
|
|
4352
|
+
const R = k(() => C.defaultsDeep({}, {
|
|
4353
4353
|
content: {
|
|
4354
4354
|
...ui,
|
|
4355
4355
|
...xf
|
|
@@ -4363,7 +4363,7 @@ const cn = te(({
|
|
|
4363
4363
|
/* @__PURE__ */ r(z, { size: "14px", fw: 500, children: a }),
|
|
4364
4364
|
!i && /* @__PURE__ */ r(L, { variant: "filled", color: "blue", size: "compact-xs", disabled: !M, onClick: T, leftSection: /* @__PURE__ */ r(fe, { size: 16 }), children: s("common.actions.save_changes") })
|
|
4365
4365
|
] }),
|
|
4366
|
-
/* @__PURE__ */ u(ce, { editor: x, styles:
|
|
4366
|
+
/* @__PURE__ */ u(ce, { editor: x, styles: R, children: [
|
|
4367
4367
|
/* @__PURE__ */ u(ce.Toolbar, { sticky: !0, stickyOffset: 0, children: [
|
|
4368
4368
|
/* @__PURE__ */ r(vf, { editor: x }),
|
|
4369
4369
|
c && /* @__PURE__ */ r(rf, { editor: x }),
|
|
@@ -4443,7 +4443,7 @@ const _c = ({
|
|
|
4443
4443
|
const c = s.currentTarget.value;
|
|
4444
4444
|
o(c), kf(c) && t(c);
|
|
4445
4445
|
}, [t]);
|
|
4446
|
-
return /* @__PURE__ */ r(
|
|
4446
|
+
return /* @__PURE__ */ r(V, { value: i, onChange: l, leftSection: /* @__PURE__ */ r(_c, { value: i }), size: "xs", placeholder: a("chart.color.not_set"), styles: {
|
|
4447
4447
|
root: {
|
|
4448
4448
|
flexGrow: 1
|
|
4449
4449
|
},
|
|
@@ -4483,14 +4483,14 @@ const _c = ({
|
|
|
4483
4483
|
toggle: d
|
|
4484
4484
|
}] = De(), [h, p] = H(!1), g = k(() => {
|
|
4485
4485
|
const M = [];
|
|
4486
|
-
return Tf.forEach((
|
|
4487
|
-
const O = o.colors[
|
|
4486
|
+
return Tf.forEach((R) => {
|
|
4487
|
+
const O = o.colors[R];
|
|
4488
4488
|
O && O.forEach((G) => {
|
|
4489
4489
|
M.push(G);
|
|
4490
4490
|
});
|
|
4491
4491
|
}), M;
|
|
4492
|
-
}, [o.colors]), b = (M,
|
|
4493
|
-
n(M),
|
|
4492
|
+
}, [o.colors]), b = (M, R = !0) => {
|
|
4493
|
+
n(M), R && c();
|
|
4494
4494
|
}, v = ne((M) => {
|
|
4495
4495
|
b(M, !1), p(!1);
|
|
4496
4496
|
}, []), x = ne((M) => {
|
|
@@ -4671,7 +4671,7 @@ class ze extends E.Component {
|
|
|
4671
4671
|
error: null
|
|
4672
4672
|
});
|
|
4673
4673
|
};
|
|
4674
|
-
return /* @__PURE__ */ u(
|
|
4674
|
+
return /* @__PURE__ */ u($, { children: [
|
|
4675
4675
|
/* @__PURE__ */ r(z, { size: "xs", children: (t = this.state.error) == null ? void 0 : t.message }),
|
|
4676
4676
|
/* @__PURE__ */ r(L, { variant: "subtle", mx: "auto", size: "compact-xs", sx: {
|
|
4677
4677
|
display: "block"
|
|
@@ -4857,10 +4857,10 @@ function qf({
|
|
|
4857
4857
|
min: de(W, x.columnKey),
|
|
4858
4858
|
max: de(oe, x.columnKey)
|
|
4859
4859
|
};
|
|
4860
|
-
}, [g, x]),
|
|
4860
|
+
}, [g, x]), R = Ft(null), O = k(() => ({
|
|
4861
4861
|
finished: () => {
|
|
4862
4862
|
var oe;
|
|
4863
|
-
const W = (oe =
|
|
4863
|
+
const W = (oe = R.current) == null ? void 0 : oe.getEchartsInstance();
|
|
4864
4864
|
W && Ue(t, W.getOption());
|
|
4865
4865
|
}
|
|
4866
4866
|
}), []), G = {
|
|
@@ -4899,7 +4899,7 @@ function qf({
|
|
|
4899
4899
|
data: g.map((W) => [W[b.columnKey], W[v.columnKey], W[x.columnKey]])
|
|
4900
4900
|
}]
|
|
4901
4901
|
};
|
|
4902
|
-
return n ? /* @__PURE__ */ r(at, { width: i, height: o, children: /* @__PURE__ */ r(We, { echarts: Ne, ref:
|
|
4902
|
+
return n ? /* @__PURE__ */ r(at, { width: i, height: o, children: /* @__PURE__ */ r(We, { echarts: Ne, ref: R, option: G, style: cr(i, o), notMerge: !0, onEvents: O, theme: "merico-light" }) }) : null;
|
|
4903
4903
|
}
|
|
4904
4904
|
const X = D(te(({
|
|
4905
4905
|
label: e,
|
|
@@ -4918,7 +4918,7 @@ const X = D(te(({
|
|
|
4918
4918
|
if (p.length === 0) {
|
|
4919
4919
|
const g = h.explainDataKey(a);
|
|
4920
4920
|
return /* @__PURE__ */ u(pe, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
|
|
4921
|
-
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(
|
|
4921
|
+
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: g.columnKey, readOnly: !0, disabled: !0 }) }) }),
|
|
4922
4922
|
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ u(_, { justify: "flex-start", gap: 0, children: [
|
|
4923
4923
|
/* @__PURE__ */ r(z, { size: "xs", c: g.queryName ? "black" : "red", ff: "monospace", children: g.queryName ?? g.queryID }),
|
|
4924
4924
|
/* @__PURE__ */ r(z, { size: "xs", c: "black", ff: "monospace", children: "." }),
|
|
@@ -4954,7 +4954,7 @@ function Ff({
|
|
|
4954
4954
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
4955
4955
|
/* @__PURE__ */ r(f, { name: "xAxis3D.name", control: i, render: ({
|
|
4956
4956
|
field: s
|
|
4957
|
-
}) => /* @__PURE__ */ r(
|
|
4957
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
4958
4958
|
flexGrow: 1
|
|
4959
4959
|
}, size: "md", label: "Name", ...s }) })
|
|
4960
4960
|
] }),
|
|
@@ -4968,7 +4968,7 @@ function Ff({
|
|
|
4968
4968
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
4969
4969
|
/* @__PURE__ */ r(f, { name: "yAxis3D.name", control: i, render: ({
|
|
4970
4970
|
field: s
|
|
4971
|
-
}) => /* @__PURE__ */ r(
|
|
4971
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
4972
4972
|
flexGrow: 1
|
|
4973
4973
|
}, size: "md", label: "Name", ...s }) })
|
|
4974
4974
|
] }),
|
|
@@ -4982,7 +4982,7 @@ function Ff({
|
|
|
4982
4982
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
4983
4983
|
/* @__PURE__ */ r(f, { name: "zAxis3D.name", control: i, render: ({
|
|
4984
4984
|
field: s
|
|
4985
|
-
}) => /* @__PURE__ */ r(
|
|
4985
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
4986
4986
|
flexGrow: 1
|
|
4987
4987
|
}, size: "md", label: "Name", ...s }) })
|
|
4988
4988
|
] }),
|
|
@@ -5071,7 +5071,7 @@ const Gf = {
|
|
|
5071
5071
|
disabled: e,
|
|
5072
5072
|
value: t,
|
|
5073
5073
|
onChange: n
|
|
5074
|
-
}) => /* @__PURE__ */ u(
|
|
5074
|
+
}) => /* @__PURE__ */ u($, { sx: {
|
|
5075
5075
|
position: "relative"
|
|
5076
5076
|
}, children: [
|
|
5077
5077
|
e && /* @__PURE__ */ r(hn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -5129,11 +5129,11 @@ const Kt = te(({
|
|
|
5129
5129
|
const {
|
|
5130
5130
|
enabled: T,
|
|
5131
5131
|
func_content: M
|
|
5132
|
-
} = c,
|
|
5132
|
+
} = c, R = {
|
|
5133
5133
|
enabled: T,
|
|
5134
5134
|
func_content: M
|
|
5135
5135
|
};
|
|
5136
|
-
d(
|
|
5136
|
+
d(R), t(R);
|
|
5137
5137
|
}, g = () => {
|
|
5138
5138
|
s(), d(e);
|
|
5139
5139
|
}, b = (T) => {
|
|
@@ -5267,7 +5267,7 @@ const Tr = te(({
|
|
|
5267
5267
|
/* @__PURE__ */ r(re, { label: i("chart.axis.overflow.max_width"), hideControls: !0, value: t.width, onChange: l("width") }),
|
|
5268
5268
|
/* @__PURE__ */ r(q, { label: i("chart.axis.overflow.label"), data: s, value: t.overflow, onChange: l("overflow") }),
|
|
5269
5269
|
/* @__PURE__ */ r(
|
|
5270
|
-
|
|
5270
|
+
V,
|
|
5271
5271
|
{
|
|
5272
5272
|
label: i("chart.axis.overflow.ellipsis"),
|
|
5273
5273
|
value: t.ellipsis,
|
|
@@ -5355,7 +5355,7 @@ const je = te(({
|
|
|
5355
5355
|
};
|
|
5356
5356
|
return /* @__PURE__ */ u(I, { ref: a, gap: "sm", children: [
|
|
5357
5357
|
/* @__PURE__ */ r(A, { mb: -10, label: i("chart.unit.title"), labelPosition: "center", variant: "dashed" }),
|
|
5358
|
-
!o.has("text") && /* @__PURE__ */ r(
|
|
5358
|
+
!o.has("text") && /* @__PURE__ */ r(V, { size: "xs", placeholder: i("chart.unit.text.placeholder"), value: e.text, onChange: (s) => l("text")(s.currentTarget.value) }),
|
|
5359
5359
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
5360
5360
|
!o.has("show_in_tooltip") && /* @__PURE__ */ r(J, { size: "xs", label: i("chart.unit.show_in_tooltip"), checked: e.show_in_tooltip, onChange: (s) => l("show_in_tooltip")(s.currentTarget.checked) }),
|
|
5361
5361
|
!o.has("show_in_legend") && /* @__PURE__ */ r(J, { size: "xs", label: i("chart.unit.show_in_legend"), checked: e.show_in_legend, onChange: (s) => l("show_in_legend")(s.currentTarget.checked) })
|
|
@@ -5721,7 +5721,7 @@ function pb(e) {
|
|
|
5721
5721
|
urlTemplate: c.currentTarget.value
|
|
5722
5722
|
});
|
|
5723
5723
|
return /* @__PURE__ */ u(I, { children: [
|
|
5724
|
-
/* @__PURE__ */ r(
|
|
5724
|
+
/* @__PURE__ */ r(V, { label: t("interactions.operation.open_link.url"), value: n.urlTemplate, onChange: s, onBlur: o }),
|
|
5725
5725
|
/* @__PURE__ */ r(ke, { label: t("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => l(c.currentTarget.checked) })
|
|
5726
5726
|
] });
|
|
5727
5727
|
}
|
|
@@ -5774,7 +5774,7 @@ function yb(e) {
|
|
|
5774
5774
|
const {
|
|
5775
5775
|
t
|
|
5776
5776
|
} = y(), [n, a] = bb(e.operation);
|
|
5777
|
-
return /* @__PURE__ */ r(
|
|
5777
|
+
return /* @__PURE__ */ r(V, { defaultValue: n, onBlur: (i) => a(i.currentTarget.value), label: t("interactions.operation.console_log.log_content") });
|
|
5778
5778
|
}
|
|
5779
5779
|
async function _b(e, t) {
|
|
5780
5780
|
const n = await t.operationData.getItem("config"), a = Ba(n.template || "");
|
|
@@ -5827,7 +5827,7 @@ const Sb = {
|
|
|
5827
5827
|
const [n, a] = H(e);
|
|
5828
5828
|
return N(() => {
|
|
5829
5829
|
a(e);
|
|
5830
|
-
}, [e]), /* @__PURE__ */ r(
|
|
5830
|
+
}, [e]), /* @__PURE__ */ r(V, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
|
|
5831
5831
|
flexGrow: 1
|
|
5832
5832
|
}, rightSection: /* @__PURE__ */ r(ee, { color: "green", size: "xs", onClick: () => {
|
|
5833
5833
|
t(n);
|
|
@@ -6378,13 +6378,13 @@ function ey(e, t) {
|
|
|
6378
6378
|
const n = [], a = [];
|
|
6379
6379
|
return {
|
|
6380
6380
|
boxplotData: Object.entries(e).map(([o, l]) => {
|
|
6381
|
-
const s = l.map((M) => M[t]).sort((M,
|
|
6381
|
+
const s = l.map((M) => M[t]).sort((M, R) => M - R), c = yr(s, 0.25) ?? 0, d = yr(s, 0.5) ?? 0, h = yr(s, 0.75) ?? 0, p = h - c, g = c - 1.5 * p, b = h + 1.5 * p, v = Math.max(s[0], g), x = Math.min(C.last(s) ?? 0, b);
|
|
6382
6382
|
return l.filter((M) => {
|
|
6383
|
-
const
|
|
6384
|
-
return
|
|
6383
|
+
const R = M[t];
|
|
6384
|
+
return R < v || R > x;
|
|
6385
6385
|
}).forEach((M) => n.push([o, M[t], M])), l.filter((M) => {
|
|
6386
|
-
const
|
|
6387
|
-
return
|
|
6386
|
+
const R = M[t];
|
|
6387
|
+
return R >= v && R <= x;
|
|
6388
6388
|
}).forEach((M) => a.push([o, M[t], M])), {
|
|
6389
6389
|
name: o,
|
|
6390
6390
|
min: v,
|
|
@@ -6556,7 +6556,7 @@ function iy(e, t, n) {
|
|
|
6556
6556
|
y1: v.max[1],
|
|
6557
6557
|
y2: v.q3[1]
|
|
6558
6558
|
}
|
|
6559
|
-
],
|
|
6559
|
+
], R = {
|
|
6560
6560
|
stroke: i,
|
|
6561
6561
|
lineWidth: o
|
|
6562
6562
|
};
|
|
@@ -6564,7 +6564,7 @@ function iy(e, t, n) {
|
|
|
6564
6564
|
T.children.push({
|
|
6565
6565
|
type: "line",
|
|
6566
6566
|
shape: O,
|
|
6567
|
-
style:
|
|
6567
|
+
style: R
|
|
6568
6568
|
});
|
|
6569
6569
|
}), T.children.push({
|
|
6570
6570
|
type: "rect",
|
|
@@ -6913,18 +6913,18 @@ function xy({
|
|
|
6913
6913
|
vizManager: e.vizManager,
|
|
6914
6914
|
instance: t
|
|
6915
6915
|
}), h = pt(d.triggerManager, kc.id), p = Mn(o, c.x_axis.data_key), g = ne((M) => {
|
|
6916
|
-
const
|
|
6916
|
+
const R = C.get(p, M.name, {
|
|
6917
6917
|
error: "rowData is not found"
|
|
6918
6918
|
});
|
|
6919
6919
|
h.forEach((O) => {
|
|
6920
6920
|
d.runInteraction(O.id, {
|
|
6921
6921
|
...M,
|
|
6922
|
-
rowData:
|
|
6922
|
+
rowData: R
|
|
6923
6923
|
});
|
|
6924
6924
|
});
|
|
6925
6925
|
}, [p, h, d]), b = Ft(null), v = ne(() => {
|
|
6926
|
-
var
|
|
6927
|
-
const M = (
|
|
6926
|
+
var R;
|
|
6927
|
+
const M = (R = b.current) == null ? void 0 : R.getEchartsInstance();
|
|
6928
6928
|
M && Ue(t, M.getOption());
|
|
6929
6929
|
}, []), x = k(() => ({
|
|
6930
6930
|
click: g,
|
|
@@ -7080,7 +7080,7 @@ function Cy(e) {
|
|
|
7080
7080
|
c(Lo(o)), p();
|
|
7081
7081
|
}, M = () => {
|
|
7082
7082
|
p(), n == null || n(Number(s));
|
|
7083
|
-
},
|
|
7083
|
+
}, R = () => {
|
|
7084
7084
|
p(), n == null || n(null);
|
|
7085
7085
|
}, O = he(o ?? null, {
|
|
7086
7086
|
output: "number",
|
|
@@ -7105,12 +7105,12 @@ function Cy(e) {
|
|
|
7105
7105
|
right: "0.8em"
|
|
7106
7106
|
} }) }),
|
|
7107
7107
|
/* @__PURE__ */ u(I, { children: [
|
|
7108
|
-
/* @__PURE__ */ r(
|
|
7108
|
+
/* @__PURE__ */ r(V, { size: "xs", label: t("style.color.interpolation.palette.mapping.value_input_label"), value: s, onChange: (W) => {
|
|
7109
7109
|
const oe = W.currentTarget.value;
|
|
7110
7110
|
c(oe);
|
|
7111
7111
|
}, error: s && G }),
|
|
7112
7112
|
/* @__PURE__ */ u(_, { justify: "space-between", children: [
|
|
7113
|
-
/* @__PURE__ */ r(L, { variant: "light", color: "red", size: "xs", onClick:
|
|
7113
|
+
/* @__PURE__ */ r(L, { variant: "light", color: "red", size: "xs", onClick: R, leftSection: /* @__PURE__ */ r(Pe, { size: 16 }), children: t("common.actions.delete") }),
|
|
7114
7114
|
/* @__PURE__ */ r(L, { color: "green", leftSection: /* @__PURE__ */ r(fe, { size: 16 }), "data-testid": "palette-item-ok", size: "xs", onClick: M, disabled: G, children: t("common.actions.save") })
|
|
7115
7115
|
] })
|
|
7116
7116
|
] })
|
|
@@ -7145,8 +7145,8 @@ const ky = D(({
|
|
|
7145
7145
|
setTrue: p,
|
|
7146
7146
|
setFalse: g
|
|
7147
7147
|
}] = De(), b = k(() => {
|
|
7148
|
-
const
|
|
7149
|
-
return Object.entries(
|
|
7148
|
+
const R = C.groupBy(l, "category");
|
|
7149
|
+
return Object.entries(R).map(([O, G]) => ({
|
|
7150
7150
|
group: t(`style.color.interpolation.palette.category.${O}`),
|
|
7151
7151
|
items: G.map((W) => ({
|
|
7152
7152
|
label: t(W.displayName),
|
|
@@ -7154,19 +7154,19 @@ const ky = D(({
|
|
|
7154
7154
|
}))
|
|
7155
7155
|
}));
|
|
7156
7156
|
}, [n.language]);
|
|
7157
|
-
function v(
|
|
7158
|
-
|
|
7157
|
+
function v(R) {
|
|
7158
|
+
R && c((O) => ({
|
|
7159
7159
|
...O,
|
|
7160
|
-
interpolation:
|
|
7160
|
+
interpolation: R
|
|
7161
7161
|
}));
|
|
7162
7162
|
}
|
|
7163
7163
|
const x = () => {
|
|
7164
7164
|
g(), i == null || i(Ht(s));
|
|
7165
7165
|
};
|
|
7166
|
-
function T(
|
|
7166
|
+
function T(R) {
|
|
7167
7167
|
c((O) => ({
|
|
7168
7168
|
...O,
|
|
7169
|
-
steps:
|
|
7169
|
+
steps: R
|
|
7170
7170
|
}));
|
|
7171
7171
|
}
|
|
7172
7172
|
const M = () => {
|
|
@@ -7322,12 +7322,12 @@ const ky = D(({
|
|
|
7322
7322
|
} = d, b = t(n), v = h.map((W, oe) => ({
|
|
7323
7323
|
...W,
|
|
7324
7324
|
...b[oe]
|
|
7325
|
-
})), x = ((G = C.last(v)) == null ? void 0 : G.id) ?? null, [T, M] = H(x),
|
|
7325
|
+
})), x = ((G = C.last(v)) == null ? void 0 : G.id) ?? null, [T, M] = H(x), R = (W) => {
|
|
7326
7326
|
W !== "add" && M(W);
|
|
7327
7327
|
};
|
|
7328
7328
|
return N(() => {
|
|
7329
7329
|
M((W) => x === W ? W : x);
|
|
7330
|
-
}, [x]), /* @__PURE__ */ u(S, { value: T, onChange:
|
|
7330
|
+
}, [x]), /* @__PURE__ */ u(S, { value: T, onChange: R, styles: $y, children: [
|
|
7331
7331
|
/* @__PURE__ */ r(Vy, { fieldArray: d, add: () => {
|
|
7332
7332
|
const W = a();
|
|
7333
7333
|
d.append(W), M(W.id);
|
|
@@ -7363,19 +7363,19 @@ const ky = D(({
|
|
|
7363
7363
|
return /* @__PURE__ */ u(I, { children: [
|
|
7364
7364
|
/* @__PURE__ */ r(A, { variant: "dashed", label: a("chart.zooming.scroll.label"), labelPosition: "center" }),
|
|
7365
7365
|
/* @__PURE__ */ u(_, { children: [
|
|
7366
|
-
/* @__PURE__ */ r(
|
|
7366
|
+
/* @__PURE__ */ r($, { sx: {
|
|
7367
7367
|
flexGrow: 1
|
|
7368
7368
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.zooming.scroll.x_axis"), checked: e.x_axis_scroll, onChange: (o) => i("x_axis_scroll")(o.currentTarget.checked) }) }),
|
|
7369
|
-
/* @__PURE__ */ r(
|
|
7369
|
+
/* @__PURE__ */ r($, { sx: {
|
|
7370
7370
|
flexGrow: 1
|
|
7371
7371
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.zooming.scroll.y_axis"), checked: e.y_axis_scroll, onChange: (o) => i("y_axis_scroll")(o.currentTarget.checked) }) })
|
|
7372
7372
|
] }),
|
|
7373
7373
|
/* @__PURE__ */ r(A, { variant: "dashed", label: a("chart.zooming.slider.label"), labelPosition: "center" }),
|
|
7374
7374
|
/* @__PURE__ */ u(_, { children: [
|
|
7375
|
-
/* @__PURE__ */ r(
|
|
7375
|
+
/* @__PURE__ */ r($, { sx: {
|
|
7376
7376
|
flexGrow: 1
|
|
7377
7377
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.zooming.slider.x_axis"), checked: e.x_axis_slider, onChange: (o) => i("x_axis_slider")(o.currentTarget.checked) }) }),
|
|
7378
|
-
/* @__PURE__ */ r(ae, { label: a("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ r(
|
|
7378
|
+
/* @__PURE__ */ r(ae, { label: a("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ r($, { sx: {
|
|
7379
7379
|
flexGrow: 1
|
|
7380
7380
|
}, children: /* @__PURE__ */ r(ke, { 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) }) }) })
|
|
7381
7381
|
] })
|
|
@@ -7441,7 +7441,7 @@ function Py({
|
|
|
7441
7441
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
7442
7442
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
7443
7443
|
field: i
|
|
7444
|
-
}) => /* @__PURE__ */ r(
|
|
7444
|
+
}) => /* @__PURE__ */ r(V, { label: a("common.name"), placeholder: a("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
7445
7445
|
flex: 1
|
|
7446
7446
|
}, ...i }) }),
|
|
7447
7447
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -7452,7 +7452,7 @@ function Py({
|
|
|
7452
7452
|
] }),
|
|
7453
7453
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
7454
7454
|
field: i
|
|
7455
|
-
}) => /* @__PURE__ */ r(
|
|
7455
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.content_template.label"), placeholder: a("chart.content_template.placeholder"), required: !0, sx: {
|
|
7456
7456
|
flex: 1
|
|
7457
7457
|
}, ...i }) })
|
|
7458
7458
|
] });
|
|
@@ -7491,7 +7491,7 @@ const Ey = ({
|
|
|
7491
7491
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
7492
7492
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
7493
7493
|
field: a
|
|
7494
|
-
}) => /* @__PURE__ */ r(
|
|
7494
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
7495
7495
|
flex: 1
|
|
7496
7496
|
}, ...a }) }),
|
|
7497
7497
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -7568,7 +7568,7 @@ const an = te(({
|
|
|
7568
7568
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
7569
7569
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
7570
7570
|
field: a
|
|
7571
|
-
}) => /* @__PURE__ */ r(
|
|
7571
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
|
|
7572
7572
|
flex: 1
|
|
7573
7573
|
}, ...a }) }),
|
|
7574
7574
|
/* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -7611,7 +7611,7 @@ function By({
|
|
|
7611
7611
|
} = y(), [n, {
|
|
7612
7612
|
toggle: a
|
|
7613
7613
|
}] = nn(!1);
|
|
7614
|
-
return /* @__PURE__ */ u(
|
|
7614
|
+
return /* @__PURE__ */ u($, { children: [
|
|
7615
7615
|
/* @__PURE__ */ r(L, { variant: "subtle", w: "100%", size: "compact-sm", onClick: a, leftSection: n ? /* @__PURE__ */ r(Yh, { size: 14 }) : /* @__PURE__ */ r(Wl, { size: 14 }), children: t(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
|
|
7616
7616
|
/* @__PURE__ */ r(sr, { in: n, children: n && /* @__PURE__ */ u(w, { highlightOnHover: !0, sx: {
|
|
7617
7617
|
tableLayout: "fixed"
|
|
@@ -7694,7 +7694,7 @@ function jy({
|
|
|
7694
7694
|
/* @__PURE__ */ r(z, { size: "sm", children: a("numbro.format.trim_mantissa") }),
|
|
7695
7695
|
/* @__PURE__ */ r(z, { size: "12px", c: "gray", children: a("numbro.format.trim_mantissa_description") })
|
|
7696
7696
|
] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: ma }),
|
|
7697
|
-
/* @__PURE__ */ r(
|
|
7697
|
+
/* @__PURE__ */ r($, {})
|
|
7698
7698
|
] }),
|
|
7699
7699
|
/* @__PURE__ */ r(By, { format: e })
|
|
7700
7700
|
] });
|
|
@@ -7710,7 +7710,7 @@ const Vt = E.forwardRef(jy), Qy = ({
|
|
|
7710
7710
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
7711
7711
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
7712
7712
|
field: a
|
|
7713
|
-
}) => /* @__PURE__ */ r(
|
|
7713
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), sx: {
|
|
7714
7714
|
flex: 1
|
|
7715
7715
|
}, ...a }) }),
|
|
7716
7716
|
/* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -8130,8 +8130,8 @@ const zi = {
|
|
|
8130
8130
|
width: b,
|
|
8131
8131
|
height: v
|
|
8132
8132
|
} = e.viewport, x = i.payloadForSQL, T = () => {
|
|
8133
|
-
a.forEach((
|
|
8134
|
-
n.runInteraction(
|
|
8133
|
+
a.forEach((R) => {
|
|
8134
|
+
n.runInteraction(R.id, {});
|
|
8135
8135
|
});
|
|
8136
8136
|
}, M = h ? `compact-${p}` : p;
|
|
8137
8137
|
return /* @__PURE__ */ r(Gt, { sx: {
|
|
@@ -8219,7 +8219,7 @@ function p_({
|
|
|
8219
8219
|
/* @__PURE__ */ u(I, { children: [
|
|
8220
8220
|
/* @__PURE__ */ r(f, { control: o, name: "content", render: ({
|
|
8221
8221
|
field: h
|
|
8222
|
-
}) => /* @__PURE__ */ r(
|
|
8222
|
+
}) => /* @__PURE__ */ r(V, { label: "Content Template", description: "Filter values & context entries are supported", ...h, required: !0 }) }),
|
|
8223
8223
|
/* @__PURE__ */ r(A, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
8224
8224
|
/* @__PURE__ */ u(Te, { cols: 2, children: [
|
|
8225
8225
|
/* @__PURE__ */ r(f, { control: o, name: "variant", render: ({
|
|
@@ -8319,7 +8319,7 @@ const y_ = {
|
|
|
8319
8319
|
label: n,
|
|
8320
8320
|
description: a
|
|
8321
8321
|
} = e;
|
|
8322
|
-
return /* @__PURE__ */ r(
|
|
8322
|
+
return /* @__PURE__ */ r($, { ...t, children: /* @__PURE__ */ u(I, { gap: "0", children: [
|
|
8323
8323
|
/* @__PURE__ */ r(z, { size: "sm", children: n }),
|
|
8324
8324
|
/* @__PURE__ */ r(z, { size: "xs", opacity: 0.65, children: a })
|
|
8325
8325
|
] }) });
|
|
@@ -9116,7 +9116,7 @@ const Ec = {
|
|
|
9116
9116
|
n(g);
|
|
9117
9117
|
}, [d, a.current]);
|
|
9118
9118
|
const h = k(() => d ? "none" : "block", [d]);
|
|
9119
|
-
return /* @__PURE__ */ r(
|
|
9119
|
+
return /* @__PURE__ */ r($, { sx: {
|
|
9120
9120
|
display: h
|
|
9121
9121
|
}, children: /* @__PURE__ */ r(Un, { ref: a, value: c, styles: {
|
|
9122
9122
|
root: {
|
|
@@ -9419,7 +9419,7 @@ function uv({
|
|
|
9419
9419
|
hide_in_legend: v,
|
|
9420
9420
|
areaStyle: x,
|
|
9421
9421
|
...T
|
|
9422
|
-
}, M,
|
|
9422
|
+
}, M, R, O, G) {
|
|
9423
9423
|
const W = t.type !== "category", oe = {
|
|
9424
9424
|
label: {
|
|
9425
9425
|
show: !!i,
|
|
@@ -9431,7 +9431,7 @@ function uv({
|
|
|
9431
9431
|
yAxisIndex: a,
|
|
9432
9432
|
stack: h,
|
|
9433
9433
|
color: p,
|
|
9434
|
-
symbolSize: dv(b,
|
|
9434
|
+
symbolSize: dv(b, R, e, O),
|
|
9435
9435
|
hide_in_legend: v,
|
|
9436
9436
|
labelLayout: {
|
|
9437
9437
|
hideOverlap: !0
|
|
@@ -9464,7 +9464,7 @@ function uv({
|
|
|
9464
9464
|
}), !s || s === e)
|
|
9465
9465
|
return oe.data = sv({
|
|
9466
9466
|
dataTemplate: M,
|
|
9467
|
-
data:
|
|
9467
|
+
data: R,
|
|
9468
9468
|
aggregation_on_value: d,
|
|
9469
9469
|
x_axis_data_key: e,
|
|
9470
9470
|
y_axis_data_key: n,
|
|
@@ -9472,7 +9472,7 @@ function uv({
|
|
|
9472
9472
|
}), oe;
|
|
9473
9473
|
const Z = cv({
|
|
9474
9474
|
group_by_key: s,
|
|
9475
|
-
data:
|
|
9475
|
+
data: R,
|
|
9476
9476
|
x_axis_data_key: e,
|
|
9477
9477
|
y_axis_data_key: n
|
|
9478
9478
|
});
|
|
@@ -9526,13 +9526,13 @@ function gv(e, t, n, a) {
|
|
|
9526
9526
|
}) => {
|
|
9527
9527
|
if (Array.isArray(x) && x.length === 2 && (x = x[1]), !b)
|
|
9528
9528
|
return x;
|
|
9529
|
-
const T = o[b] ?? "", M = i[b],
|
|
9529
|
+
const T = o[b] ?? "", M = i[b], R = a[M] ?? a.default;
|
|
9530
9530
|
return `
|
|
9531
9531
|
<tr>
|
|
9532
9532
|
<td>${v}</td>
|
|
9533
9533
|
<th style="text-align: right; padding: 0 1em;">${b}</th>
|
|
9534
9534
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
9535
|
-
${
|
|
9535
|
+
${R({
|
|
9536
9536
|
value: x
|
|
9537
9537
|
})}
|
|
9538
9538
|
</td>
|
|
@@ -9733,8 +9733,8 @@ function Sv({
|
|
|
9733
9733
|
const M = C.get(s, T.name, {
|
|
9734
9734
|
error: "rowData is not found"
|
|
9735
9735
|
});
|
|
9736
|
-
c.forEach((
|
|
9737
|
-
i.runInteraction(
|
|
9736
|
+
c.forEach((R) => {
|
|
9737
|
+
i.runInteraction(R.id, {
|
|
9738
9738
|
...T,
|
|
9739
9739
|
rowData: M
|
|
9740
9740
|
});
|
|
@@ -9771,10 +9771,10 @@ const Cv = D(({
|
|
|
9771
9771
|
height: c
|
|
9772
9772
|
} = e.viewport, [d, h] = H(0), [p, g] = H(0), b = Math.max(0, It(c) - d - p), v = Dt(s), x = _e();
|
|
9773
9773
|
function T(M) {
|
|
9774
|
-
const
|
|
9774
|
+
const R = dn(o.stats.top, e.variables, x.payloadForViz, e.data), O = dn(o.stats.bottom, e.variables, x.payloadForViz, e.data);
|
|
9775
9775
|
Ue(t, {
|
|
9776
9776
|
...M,
|
|
9777
|
-
statsAboveViz:
|
|
9777
|
+
statsAboveViz: R,
|
|
9778
9778
|
statsBelowViz: O
|
|
9779
9779
|
});
|
|
9780
9780
|
}
|
|
@@ -9805,12 +9805,12 @@ function kv({
|
|
|
9805
9805
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
9806
9806
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.name`, control: e, render: ({
|
|
9807
9807
|
field: s
|
|
9808
|
-
}) => /* @__PURE__ */ r(
|
|
9808
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.reference_area.label"), required: !0, sx: {
|
|
9809
9809
|
flex: 1
|
|
9810
9810
|
}, ...s }) }),
|
|
9811
9811
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.color`, control: e, render: ({
|
|
9812
9812
|
field: s
|
|
9813
|
-
}) => /* @__PURE__ */ r(
|
|
9813
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.color.label"), required: !0, sx: {
|
|
9814
9814
|
flex: 1
|
|
9815
9815
|
}, ...s }) })
|
|
9816
9816
|
] }),
|
|
@@ -9906,7 +9906,7 @@ function Tv({
|
|
|
9906
9906
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
9907
9907
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
9908
9908
|
field: s
|
|
9909
|
-
}) => /* @__PURE__ */ r(
|
|
9909
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
9910
9910
|
flex: 1
|
|
9911
9911
|
}, ...s }) }),
|
|
9912
9912
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -9917,7 +9917,7 @@ function Tv({
|
|
|
9917
9917
|
] }),
|
|
9918
9918
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
9919
9919
|
field: s
|
|
9920
|
-
}) => /* @__PURE__ */ r(
|
|
9920
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
9921
9921
|
flex: 1
|
|
9922
9922
|
}, ...s }) }),
|
|
9923
9923
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
@@ -10031,7 +10031,7 @@ function Iv({
|
|
|
10031
10031
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
10032
10032
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.name`, control: e, render: ({
|
|
10033
10033
|
field: c
|
|
10034
|
-
}) => /* @__PURE__ */ r(
|
|
10034
|
+
}) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
|
|
10035
10035
|
flex: 1
|
|
10036
10036
|
}, ...c }) }),
|
|
10037
10037
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.group_by_key`, control: e, render: ({
|
|
@@ -10136,7 +10136,7 @@ function Mv({
|
|
|
10136
10136
|
const Lv = ({
|
|
10137
10137
|
value: e,
|
|
10138
10138
|
onChange: t
|
|
10139
|
-
}) => /* @__PURE__ */ r(
|
|
10139
|
+
}) => /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(Wt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
|
|
10140
10140
|
a && t(a);
|
|
10141
10141
|
}, theme: "vs-dark", options: {
|
|
10142
10142
|
minimap: {
|
|
@@ -10182,7 +10182,7 @@ const Lv = ({
|
|
|
10182
10182
|
h(Mi.dynamic.func_content);
|
|
10183
10183
|
};
|
|
10184
10184
|
return /* @__PURE__ */ u(F, { children: [
|
|
10185
|
-
/* @__PURE__ */ r(
|
|
10185
|
+
/* @__PURE__ */ r($, { sx: {
|
|
10186
10186
|
width: "50%"
|
|
10187
10187
|
}, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
|
|
10188
10188
|
flexGrow: 0
|
|
@@ -10382,7 +10382,7 @@ function Pv({
|
|
|
10382
10382
|
color: "grape"
|
|
10383
10383
|
} })
|
|
10384
10384
|
] }),
|
|
10385
|
-
i && /* @__PURE__ */ r(
|
|
10385
|
+
i && /* @__PURE__ */ r(V, { label: l("panel.variable.aggregation.fallback_value"), description: l("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: g })
|
|
10386
10386
|
] });
|
|
10387
10387
|
}
|
|
10388
10388
|
const Vi = E.forwardRef(Pv), Yn = te(({
|
|
@@ -10467,7 +10467,7 @@ function Av({
|
|
|
10467
10467
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
10468
10468
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
10469
10469
|
field: s
|
|
10470
|
-
}) => /* @__PURE__ */ r(
|
|
10470
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
10471
10471
|
flexGrow: 1
|
|
10472
10472
|
}, ...s }) }),
|
|
10473
10473
|
/* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
|
|
@@ -10479,17 +10479,17 @@ function Av({
|
|
|
10479
10479
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
10480
10480
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
10481
10481
|
field: s
|
|
10482
|
-
}) => /* @__PURE__ */ r(
|
|
10482
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
|
|
10483
10483
|
flexGrow: 1
|
|
10484
10484
|
}, ...s }) }),
|
|
10485
10485
|
/* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
10486
10486
|
field: s
|
|
10487
|
-
}) => /* @__PURE__ */ r(
|
|
10487
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
|
|
10488
10488
|
flexGrow: 1
|
|
10489
10489
|
}, ...s }) }),
|
|
10490
10490
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
10491
10491
|
field: s
|
|
10492
|
-
}) => /* @__PURE__ */ r(
|
|
10492
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
|
|
10493
10493
|
flexGrow: 1
|
|
10494
10494
|
}, ...s }) })
|
|
10495
10495
|
] })
|
|
@@ -10519,7 +10519,7 @@ function Ev({
|
|
|
10519
10519
|
return /* @__PURE__ */ u(F, { children: [
|
|
10520
10520
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
10521
10521
|
field: s
|
|
10522
|
-
}) => /* @__PURE__ */ r(
|
|
10522
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
10523
10523
|
flexGrow: 1
|
|
10524
10524
|
}, ...s }) }),
|
|
10525
10525
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: a("chart.series.line.line_settings"), labelPosition: "center" }),
|
|
@@ -10548,12 +10548,12 @@ function Ev({
|
|
|
10548
10548
|
/* @__PURE__ */ u(I, { children: [
|
|
10549
10549
|
/* @__PURE__ */ r(f, { name: `series.${t}.smooth`, control: e, render: ({
|
|
10550
10550
|
field: s
|
|
10551
|
-
}) => /* @__PURE__ */ r(
|
|
10551
|
+
}) => /* @__PURE__ */ r($, { sx: {
|
|
10552
10552
|
flexGrow: 1
|
|
10553
10553
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.smooth_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
|
|
10554
10554
|
/* @__PURE__ */ r(f, { name: `series.${t}.display_name_on_line`, control: e, render: ({
|
|
10555
10555
|
field: s
|
|
10556
|
-
}) => /* @__PURE__ */ r(
|
|
10556
|
+
}) => /* @__PURE__ */ r($, { sx: {
|
|
10557
10557
|
flexGrow: 1
|
|
10558
10558
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.show_name_on_line"), checked: s.value ?? !1, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) })
|
|
10559
10559
|
] })
|
|
@@ -10561,7 +10561,7 @@ function Ev({
|
|
|
10561
10561
|
/* @__PURE__ */ u(I, { children: [
|
|
10562
10562
|
/* @__PURE__ */ r(f, { name: `series.${t}.showSymbol`, control: e, render: ({
|
|
10563
10563
|
field: s
|
|
10564
|
-
}) => /* @__PURE__ */ r(
|
|
10564
|
+
}) => /* @__PURE__ */ r($, { mt: 10, mb: -10, sx: {
|
|
10565
10565
|
flexGrow: 1
|
|
10566
10566
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.show_symbol_on_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
|
|
10567
10567
|
o && /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
|
|
@@ -10608,7 +10608,7 @@ function qv({
|
|
|
10608
10608
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
10609
10609
|
/* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
|
|
10610
10610
|
field: s
|
|
10611
|
-
}) => /* @__PURE__ */ r(
|
|
10611
|
+
}) => /* @__PURE__ */ r(V, { label: i("chart.series.name"), required: !0, sx: {
|
|
10612
10612
|
flex: 1
|
|
10613
10613
|
}, ...s }) }),
|
|
10614
10614
|
/* @__PURE__ */ r(f, { name: `series.${t}.yAxisIndex`, control: e, render: ({
|
|
@@ -10748,7 +10748,7 @@ const Nv = D(({
|
|
|
10748
10748
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
10749
10749
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
10750
10750
|
field: a
|
|
10751
|
-
}) => /* @__PURE__ */ r(
|
|
10751
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
10752
10752
|
flex: 1
|
|
10753
10753
|
}, ...a }) }),
|
|
10754
10754
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -10841,7 +10841,7 @@ function Gv({
|
|
|
10841
10841
|
return /* @__PURE__ */ u(I, { children: [
|
|
10842
10842
|
/* @__PURE__ */ r(f, { name: "x_axis_name", control: e, render: ({
|
|
10843
10843
|
field: o
|
|
10844
|
-
}) => /* @__PURE__ */ r(
|
|
10844
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
|
|
10845
10845
|
flex: 1
|
|
10846
10846
|
}, ...o }) }),
|
|
10847
10847
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
@@ -10925,7 +10925,7 @@ function Wv({
|
|
|
10925
10925
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
10926
10926
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
10927
10927
|
field: a
|
|
10928
|
-
}) => /* @__PURE__ */ r(
|
|
10928
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), required: !0, sx: {
|
|
10929
10929
|
flex: 1
|
|
10930
10930
|
}, ...a }) }),
|
|
10931
10931
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -10956,10 +10956,10 @@ function Wv({
|
|
|
10956
10956
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
10957
10957
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
10958
10958
|
field: a
|
|
10959
|
-
}) => /* @__PURE__ */ r(
|
|
10959
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
|
|
10960
10960
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
10961
10961
|
field: a
|
|
10962
|
-
}) => /* @__PURE__ */ r(
|
|
10962
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
|
|
10963
10963
|
] })
|
|
10964
10964
|
] }),
|
|
10965
10965
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.y_axis.behavior"), labelPosition: "center" }),
|
|
@@ -11311,7 +11311,7 @@ const cx = ({
|
|
|
11311
11311
|
return /* @__PURE__ */ u(I, { children: [
|
|
11312
11312
|
/* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.name`, control: t, render: ({
|
|
11313
11313
|
field: p
|
|
11314
|
-
}) => /* @__PURE__ */ r(
|
|
11314
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.funnel_chart.series_name"), ...p }) }) }),
|
|
11315
11315
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
11316
11316
|
/* @__PURE__ */ r(f, { name: `series.${n}.level_name_data_key`, control: t, render: ({
|
|
11317
11317
|
field: p
|
|
@@ -11330,13 +11330,13 @@ const cx = ({
|
|
|
11330
11330
|
width: "100%"
|
|
11331
11331
|
}, children: [
|
|
11332
11332
|
/* @__PURE__ */ r(z, { size: "sm", children: i("viz.funnel_chart.min_value") }),
|
|
11333
|
-
/* @__PURE__ */ r(ae, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r(
|
|
11333
|
+
/* @__PURE__ */ r(ae, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(f, { name: `series.${n}.min.enable_value`, control: t, render: ({
|
|
11334
11334
|
field: g
|
|
11335
11335
|
}) => /* @__PURE__ */ r(J, { size: "xs", checked: g.value, onChange: (b) => g.onChange(b.currentTarget.checked) }) }) }) })
|
|
11336
11336
|
] }), ...p }) }),
|
|
11337
11337
|
/* @__PURE__ */ r(f, { name: `series.${n}.min.size`, control: t, render: ({
|
|
11338
11338
|
field: p
|
|
11339
|
-
}) => /* @__PURE__ */ r(
|
|
11339
|
+
}) => /* @__PURE__ */ r(V, { placeholder: "0%", label: i("viz.funnel_chart.min_size"), ...p }) })
|
|
11340
11340
|
] }),
|
|
11341
11341
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
11342
11342
|
/* @__PURE__ */ r(f, { name: `series.${n}.max.value`, control: t, render: ({
|
|
@@ -11347,13 +11347,13 @@ const cx = ({
|
|
|
11347
11347
|
width: "100%"
|
|
11348
11348
|
}, children: [
|
|
11349
11349
|
/* @__PURE__ */ r(z, { size: "sm", children: i("viz.funnel_chart.max_value") }),
|
|
11350
|
-
/* @__PURE__ */ r(ae, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r(
|
|
11350
|
+
/* @__PURE__ */ r(ae, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(f, { name: `series.${n}.max.enable_value`, control: t, render: ({
|
|
11351
11351
|
field: g
|
|
11352
11352
|
}) => /* @__PURE__ */ r(J, { size: "xs", checked: g.value, onChange: (b) => g.onChange(b.currentTarget.checked) }) }) }) })
|
|
11353
11353
|
] }), ...p }) }),
|
|
11354
11354
|
/* @__PURE__ */ r(f, { name: `series.${n}.max.size`, control: t, render: ({
|
|
11355
11355
|
field: p
|
|
11356
|
-
}) => /* @__PURE__ */ r(
|
|
11356
|
+
}) => /* @__PURE__ */ r(V, { placeholder: "100%", label: i("viz.funnel_chart.max_size"), ...p }) })
|
|
11357
11357
|
] }),
|
|
11358
11358
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
11359
11359
|
/* @__PURE__ */ r(f, { name: `series.${n}.orient`, control: t, render: ({
|
|
@@ -11376,7 +11376,7 @@ const cx = ({
|
|
|
11376
11376
|
/* @__PURE__ */ r(f, { name: `series.${n}.axisLabel.position`, control: t, render: ({
|
|
11377
11377
|
field: p
|
|
11378
11378
|
}) => /* @__PURE__ */ r(Yn, { label: i("chart.label_position.label"), options: d[c], ...p }) }),
|
|
11379
|
-
/* @__PURE__ */ r(
|
|
11379
|
+
/* @__PURE__ */ r($, {})
|
|
11380
11380
|
] }),
|
|
11381
11381
|
/* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.axisLabel.overflow`, control: t, render: ({
|
|
11382
11382
|
field: p
|
|
@@ -11592,7 +11592,7 @@ const yx = {
|
|
|
11592
11592
|
return /* @__PURE__ */ r(Er, { size: "xs", value: e, onChange: (i) => {
|
|
11593
11593
|
t(Number(i.currentTarget.value));
|
|
11594
11594
|
}, data: a });
|
|
11595
|
-
}, xx = (e) => e.totalPages <= 1 ? null : /* @__PURE__ */ r(
|
|
11595
|
+
}, xx = (e) => e.totalPages <= 1 ? null : /* @__PURE__ */ r($, { sx: {
|
|
11596
11596
|
position: "absolute",
|
|
11597
11597
|
top: "calc(1rem + 5px)",
|
|
11598
11598
|
right: "calc(1rem + 5px)",
|
|
@@ -11697,7 +11697,7 @@ function Tx({
|
|
|
11697
11697
|
unit: e.heat_block.unit.show_in_tooltip ? e.heat_block.unit.text : ""
|
|
11698
11698
|
}, v = [p, g, b], x = a[`${c}---${d}`];
|
|
11699
11699
|
return x && e.tooltip.metrics.forEach((T) => {
|
|
11700
|
-
const M = j(T.data_key),
|
|
11700
|
+
const M = j(T.data_key), R = o[T.name];
|
|
11701
11701
|
v.push({
|
|
11702
11702
|
label: T.name,
|
|
11703
11703
|
value: zx(C.get(x, M.columnKey, "")),
|
|
@@ -11705,7 +11705,7 @@ function Tx({
|
|
|
11705
11705
|
label: "",
|
|
11706
11706
|
value: ""
|
|
11707
11707
|
},
|
|
11708
|
-
unit:
|
|
11708
|
+
unit: R
|
|
11709
11709
|
});
|
|
11710
11710
|
}), v;
|
|
11711
11711
|
}
|
|
@@ -11902,10 +11902,10 @@ const mr = ({
|
|
|
11902
11902
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
11903
11903
|
/* @__PURE__ */ r(f, { name: "visualMap.text.1", control: a, render: ({
|
|
11904
11904
|
field: d
|
|
11905
|
-
}) => /* @__PURE__ */ r(
|
|
11905
|
+
}) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.min_text"), ...d }) }),
|
|
11906
11906
|
/* @__PURE__ */ r(f, { name: "visualMap.text.0", control: a, render: ({
|
|
11907
11907
|
field: d
|
|
11908
|
-
}) => /* @__PURE__ */ r(
|
|
11908
|
+
}) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.max_text"), ...d }) })
|
|
11909
11909
|
] }),
|
|
11910
11910
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
11911
11911
|
/* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
|
|
@@ -11992,7 +11992,7 @@ const mr = ({
|
|
|
11992
11992
|
/* @__PURE__ */ r(Ye.Dropdown, { children: /* @__PURE__ */ u(_, { wrap: "nowrap", gap: 8, children: [
|
|
11993
11993
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.value`, control: a, render: ({
|
|
11994
11994
|
field: p
|
|
11995
|
-
}) => /* @__PURE__ */ r(
|
|
11995
|
+
}) => /* @__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)) }) }),
|
|
11996
11996
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.symbol`, control: a, render: ({
|
|
11997
11997
|
field: p
|
|
11998
11998
|
}) => /* @__PURE__ */ r(q, { size: "xs", data: Po.lower, ...p, onChange: be((g) => p.onChange(g)) }) }),
|
|
@@ -12005,7 +12005,7 @@ const mr = ({
|
|
|
12005
12005
|
}) => /* @__PURE__ */ r(q, { size: "xs", data: Po.upper, ...p, onChange: be((g) => p.onChange(g)) }) }),
|
|
12006
12006
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.value`, control: a, render: ({
|
|
12007
12007
|
field: p
|
|
12008
|
-
}) => /* @__PURE__ */ r(
|
|
12008
|
+
}) => /* @__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)) }) })
|
|
12009
12009
|
] }) })
|
|
12010
12010
|
] }) });
|
|
12011
12011
|
}, Px = ({
|
|
@@ -12023,7 +12023,7 @@ const mr = ({
|
|
|
12023
12023
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(Rx, { form: e, index: t }) }),
|
|
12024
12024
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.label`, control: a, render: ({
|
|
12025
12025
|
field: o
|
|
12026
|
-
}) => /* @__PURE__ */ r(
|
|
12026
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", placeholder: "", ...o, onChange: (l) => o.onChange(l.currentTarget.value) }) }) }),
|
|
12027
12027
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.color`, control: a, render: ({
|
|
12028
12028
|
field: o
|
|
12029
12029
|
}) => /* @__PURE__ */ r(un, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
|
|
@@ -12380,7 +12380,7 @@ function Hx({
|
|
|
12380
12380
|
}, ...i }) }),
|
|
12381
12381
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
12382
12382
|
field: i
|
|
12383
|
-
}) => /* @__PURE__ */ r(
|
|
12383
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
12384
12384
|
flex: 1
|
|
12385
12385
|
}, ...i }) })
|
|
12386
12386
|
] }),
|
|
@@ -12430,7 +12430,7 @@ const Wx = ({
|
|
|
12430
12430
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
12431
12431
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
12432
12432
|
field: a
|
|
12433
|
-
}) => /* @__PURE__ */ r(
|
|
12433
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
12434
12434
|
flex: 1
|
|
12435
12435
|
}, ...a }) }),
|
|
12436
12436
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -12495,7 +12495,7 @@ function Yx({
|
|
|
12495
12495
|
}, ...a }) }),
|
|
12496
12496
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
12497
12497
|
field: a
|
|
12498
|
-
}) => /* @__PURE__ */ r(
|
|
12498
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
12499
12499
|
flex: 1
|
|
12500
12500
|
}, ...a }) })
|
|
12501
12501
|
] }),
|
|
@@ -12533,7 +12533,7 @@ function Xx({
|
|
|
12533
12533
|
}, ...a }) }),
|
|
12534
12534
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
12535
12535
|
field: a
|
|
12536
|
-
}) => /* @__PURE__ */ r(
|
|
12536
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
12537
12537
|
flex: 1
|
|
12538
12538
|
}, ...a }) })
|
|
12539
12539
|
] }),
|
|
@@ -13272,8 +13272,8 @@ function Mw({
|
|
|
13272
13272
|
const M = C.get(p, T.name, {
|
|
13273
13273
|
error: "rowData is not found"
|
|
13274
13274
|
});
|
|
13275
|
-
h.forEach((
|
|
13276
|
-
d.runInteraction(
|
|
13275
|
+
h.forEach((R) => {
|
|
13276
|
+
d.runInteraction(R.id, {
|
|
13277
13277
|
...T,
|
|
13278
13278
|
rowData: M
|
|
13279
13279
|
});
|
|
@@ -13299,7 +13299,7 @@ function Lw({
|
|
|
13299
13299
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
13300
13300
|
/* @__PURE__ */ r(f, { name: "bar.name", control: e, render: ({
|
|
13301
13301
|
field: a
|
|
13302
|
-
}) => /* @__PURE__ */ r(
|
|
13302
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13303
13303
|
flex: 1
|
|
13304
13304
|
}, ...a }) }),
|
|
13305
13305
|
/* @__PURE__ */ r(f, { name: "bar.nameAlignment", control: e, render: ({
|
|
@@ -13333,7 +13333,7 @@ function Vw({
|
|
|
13333
13333
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
13334
13334
|
/* @__PURE__ */ r(f, { name: "line.name", control: e, render: ({
|
|
13335
13335
|
field: a
|
|
13336
|
-
}) => /* @__PURE__ */ r(
|
|
13336
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13337
13337
|
flex: 1
|
|
13338
13338
|
}, ...a }) }),
|
|
13339
13339
|
/* @__PURE__ */ r(f, { name: "line.nameAlignment", control: e, render: ({
|
|
@@ -13417,7 +13417,7 @@ function Aw({
|
|
|
13417
13417
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
13418
13418
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
13419
13419
|
field: s
|
|
13420
|
-
}) => /* @__PURE__ */ r(
|
|
13420
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
13421
13421
|
flex: 1
|
|
13422
13422
|
}, ...s }) }),
|
|
13423
13423
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -13428,7 +13428,7 @@ function Aw({
|
|
|
13428
13428
|
] }),
|
|
13429
13429
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
13430
13430
|
field: s
|
|
13431
|
-
}) => /* @__PURE__ */ r(
|
|
13431
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
13432
13432
|
flex: 1
|
|
13433
13433
|
}, ...s }) }),
|
|
13434
13434
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
@@ -13516,7 +13516,7 @@ function Ow({
|
|
|
13516
13516
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
13517
13517
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
13518
13518
|
field: a
|
|
13519
|
-
}) => /* @__PURE__ */ r(
|
|
13519
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
13520
13520
|
flex: 1
|
|
13521
13521
|
}, ...a }) }),
|
|
13522
13522
|
/* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -14251,7 +14251,7 @@ const y0 = ({
|
|
|
14251
14251
|
/* @__PURE__ */ u(K.Dropdown, { children: [
|
|
14252
14252
|
/* @__PURE__ */ r(K.Label, { children: n("viz.pie_chart.color.map.click_to_apply_palette") }),
|
|
14253
14253
|
/* @__PURE__ */ r(K.Divider, {}),
|
|
14254
|
-
f0.map((o) => /* @__PURE__ */ r(K.Item, { onClick: () => i(o.colors), children: /* @__PURE__ */ r(
|
|
14254
|
+
f0.map((o) => /* @__PURE__ */ r(K.Item, { onClick: () => i(o.colors), children: /* @__PURE__ */ r($, { h: 28, style: {
|
|
14255
14255
|
backgroundImage: b0(o.colors)
|
|
14256
14256
|
} }) }, o.name))
|
|
14257
14257
|
] })
|
|
@@ -14346,7 +14346,7 @@ function v0({
|
|
|
14346
14346
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
14347
14347
|
/* @__PURE__ */ r(f, { control: o, name: "others_sector.label", render: ({
|
|
14348
14348
|
field: b
|
|
14349
|
-
}) => /* @__PURE__ */ r(
|
|
14349
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", label: a("viz.pie_chart.others_sector.label"), ...b, value: b.value ?? "" }) }),
|
|
14350
14350
|
/* @__PURE__ */ r(f, { control: o, name: "others_sector.threshold", render: ({
|
|
14351
14351
|
field: b
|
|
14352
14352
|
}) => /* @__PURE__ */ r(re, { size: "xs", label: a("viz.pie_chart.others_sector.threshold"), suffix: "%", ...b, value: b.value ?? "" }) })
|
|
@@ -14816,10 +14816,10 @@ function Q0({
|
|
|
14816
14816
|
const {
|
|
14817
14817
|
queryID: v,
|
|
14818
14818
|
columnKey: x
|
|
14819
|
-
} = j(e.series_name_key), T = C.keyBy(t[v], x), M = e.additional_series.reduce((
|
|
14819
|
+
} = j(e.series_name_key), T = C.keyBy(t[v], x), M = e.additional_series.reduce((R, O) => {
|
|
14820
14820
|
const G = j(O.name_key), W = C.keyBy(t[G.queryID], G.columnKey);
|
|
14821
14821
|
return {
|
|
14822
|
-
...
|
|
14822
|
+
...R,
|
|
14823
14823
|
...W
|
|
14824
14824
|
};
|
|
14825
14825
|
}, T);
|
|
@@ -14927,7 +14927,7 @@ function U0({
|
|
|
14927
14927
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", align: "top", children: [
|
|
14928
14928
|
/* @__PURE__ */ r(f, { name: `dimensions.${t}.name`, control: e, render: ({
|
|
14929
14929
|
field: a
|
|
14930
|
-
}) => /* @__PURE__ */ r(
|
|
14930
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
14931
14931
|
flex: 1
|
|
14932
14932
|
}, ...a }) }),
|
|
14933
14933
|
/* @__PURE__ */ r(f, { name: `dimensions.${t}.data_key`, control: e, render: ({
|
|
@@ -14945,7 +14945,7 @@ function U0({
|
|
|
14945
14945
|
fieldState: i
|
|
14946
14946
|
}) => {
|
|
14947
14947
|
var o;
|
|
14948
|
-
return /* @__PURE__ */ r(
|
|
14948
|
+
return /* @__PURE__ */ r(V, { label: n("common.max"), required: !0, sx: {
|
|
14949
14949
|
flex: 1
|
|
14950
14950
|
}, ...a, error: (o = i.error) == null ? void 0 : o.message });
|
|
14951
14951
|
} })
|
|
@@ -15518,7 +15518,7 @@ const ga = D(te((e, t) => {
|
|
|
15518
15518
|
if (c.length === 0) {
|
|
15519
15519
|
const d = s.explainDataKey(n);
|
|
15520
15520
|
return /* @__PURE__ */ u(pe, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
|
|
15521
|
-
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(
|
|
15521
|
+
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(V, { label: l.label, required: l.required, defaultValue: d.columnKey, readOnly: !0, disabled: !0 }) }) }),
|
|
15522
15522
|
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ u(_, { justify: "flex-start", gap: 0, children: [
|
|
15523
15523
|
/* @__PURE__ */ r(z, { size: "xs", c: d.queryName ? "black" : "red", ff: "monospace", children: d.queryName ?? d.queryID }),
|
|
15524
15524
|
/* @__PURE__ */ r(z, { size: "xs", c: "black", ff: "monospace", children: "." }),
|
|
@@ -16885,8 +16885,8 @@ function SS({
|
|
|
16885
16885
|
});
|
|
16886
16886
|
});
|
|
16887
16887
|
}, [s, c, i]), h = E.useRef(null), p = _e(), g = E.useCallback(() => {
|
|
16888
|
-
var
|
|
16889
|
-
const x = (
|
|
16888
|
+
var R;
|
|
16889
|
+
const x = (R = h.current) == null ? void 0 : R.getEchartsInstance();
|
|
16890
16890
|
if (!x)
|
|
16891
16891
|
return;
|
|
16892
16892
|
const T = dn(e.stats.top, o, p.payloadForViz, t), M = dn(e.stats.bottom, o, p.payloadForViz, t);
|
|
@@ -16942,7 +16942,7 @@ const kS = te(({
|
|
|
16942
16942
|
return /* @__PURE__ */ u(I, { children: [
|
|
16943
16943
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.content.label"), labelPosition: "right" }),
|
|
16944
16944
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
16945
|
-
/* @__PURE__ */ r(
|
|
16945
|
+
/* @__PURE__ */ r(V, { label: l("chart.reference_area.content.content_text"), value: e.content.text, onChange: (d) => c("content.text", d.currentTarget.value) }),
|
|
16946
16946
|
/* @__PURE__ */ r(Yn, { label: l("chart.reference_area.content.text_position"), value: e.label.position, onChange: (d) => c("label.position", d) })
|
|
16947
16947
|
] }),
|
|
16948
16948
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.endpoint.labels"), labelPosition: "right" }),
|
|
@@ -17036,7 +17036,7 @@ function DS({
|
|
|
17036
17036
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
17037
17037
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
17038
17038
|
field: s
|
|
17039
|
-
}) => /* @__PURE__ */ r(
|
|
17039
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
17040
17040
|
flex: 1
|
|
17041
17041
|
}, ...s }) }),
|
|
17042
17042
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -17047,7 +17047,7 @@ function DS({
|
|
|
17047
17047
|
] }),
|
|
17048
17048
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
17049
17049
|
field: s
|
|
17050
|
-
}) => /* @__PURE__ */ r(
|
|
17050
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
17051
17051
|
flex: 1
|
|
17052
17052
|
}, ...s }) }),
|
|
17053
17053
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
@@ -17132,7 +17132,7 @@ function IS({
|
|
|
17132
17132
|
const MS = ({
|
|
17133
17133
|
value: e,
|
|
17134
17134
|
onChange: t
|
|
17135
|
-
}) => /* @__PURE__ */ r(
|
|
17135
|
+
}) => /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(Wt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
|
|
17136
17136
|
a && t(a);
|
|
17137
17137
|
}, theme: "vs-dark", options: {
|
|
17138
17138
|
minimap: {
|
|
@@ -17168,7 +17168,7 @@ const MS = ({
|
|
|
17168
17168
|
h(hr.dynamic.func_content);
|
|
17169
17169
|
};
|
|
17170
17170
|
return /* @__PURE__ */ u(F, { children: [
|
|
17171
|
-
/* @__PURE__ */ r(
|
|
17171
|
+
/* @__PURE__ */ r($, { sx: {
|
|
17172
17172
|
width: "50%"
|
|
17173
17173
|
}, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(rn, { size: 16 }), mt: 24, onClick: i, sx: {
|
|
17174
17174
|
flexGrow: 0
|
|
@@ -17327,7 +17327,7 @@ const ES = D(({
|
|
|
17327
17327
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
17328
17328
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
17329
17329
|
field: a
|
|
17330
|
-
}) => /* @__PURE__ */ r(
|
|
17330
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
17331
17331
|
flex: 1
|
|
17332
17332
|
}, ...a }) }),
|
|
17333
17333
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -17411,7 +17411,7 @@ function NS({
|
|
|
17411
17411
|
}, ...a }) }),
|
|
17412
17412
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
17413
17413
|
field: a
|
|
17414
|
-
}) => /* @__PURE__ */ r(
|
|
17414
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
17415
17415
|
flex: 1
|
|
17416
17416
|
}, ...a }) })
|
|
17417
17417
|
] }),
|
|
@@ -17448,7 +17448,7 @@ function BS({
|
|
|
17448
17448
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
17449
17449
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
17450
17450
|
field: a
|
|
17451
|
-
}) => /* @__PURE__ */ r(
|
|
17451
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
17452
17452
|
flex: 1
|
|
17453
17453
|
}, ...a }) }),
|
|
17454
17454
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -17474,10 +17474,10 @@ function BS({
|
|
|
17474
17474
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
17475
17475
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
17476
17476
|
field: a
|
|
17477
|
-
}) => /* @__PURE__ */ r(
|
|
17477
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
|
|
17478
17478
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
17479
17479
|
field: a
|
|
17480
|
-
}) => /* @__PURE__ */ r(
|
|
17480
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
|
|
17481
17481
|
] })
|
|
17482
17482
|
] })
|
|
17483
17483
|
] });
|
|
@@ -17798,12 +17798,12 @@ const oC = D(({
|
|
|
17798
17798
|
const {
|
|
17799
17799
|
offsetWidth: x,
|
|
17800
17800
|
offsetHeight: T
|
|
17801
|
-
} = v, M = h / x,
|
|
17801
|
+
} = v, M = h / x, R = p / T, O = Math.min(M, R);
|
|
17802
17802
|
v.style.transform = `scale(${O})`;
|
|
17803
17803
|
}, [n.current, h, p, g]), /* @__PURE__ */ r(rt, { className: "viz-stats", sx: {
|
|
17804
17804
|
width: h,
|
|
17805
17805
|
height: p
|
|
17806
|
-
}, align: aC[s.vertical_align], direction: "row", children: /* @__PURE__ */ r(
|
|
17806
|
+
}, align: aC[s.vertical_align], direction: "row", children: /* @__PURE__ */ r($, { className: "viz-stats--clickable-wrapper", sx: iC(i.length), onClick: b, children: /* @__PURE__ */ r(Un, { ref: n, value: g, styles: {
|
|
17807
17807
|
root: {
|
|
17808
17808
|
border: "none",
|
|
17809
17809
|
maxWidth: h,
|
|
@@ -18133,10 +18133,10 @@ const kC = ({
|
|
|
18133
18133
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
18134
18134
|
/* @__PURE__ */ r(f, { name: `levels.${t}.r0`, control: e, render: ({
|
|
18135
18135
|
field: o
|
|
18136
|
-
}) => /* @__PURE__ */ r(
|
|
18136
|
+
}) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.inside_radius"), placeholder: "0%", ...o }) }),
|
|
18137
18137
|
/* @__PURE__ */ r(f, { name: `levels.${t}.r`, control: e, render: ({
|
|
18138
18138
|
field: o
|
|
18139
|
-
}) => /* @__PURE__ */ r(
|
|
18139
|
+
}) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.outside_radius"), placeholder: "50%", ...o }) })
|
|
18140
18140
|
] }),
|
|
18141
18141
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.label.label_full"), labelPosition: "center" }),
|
|
18142
18142
|
/* @__PURE__ */ r(f, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
|
|
@@ -18866,7 +18866,7 @@ function ik(e) {
|
|
|
18866
18866
|
/* @__PURE__ */ r(ql, { children: "Use original data columns" }),
|
|
18867
18867
|
" is enabled, you have to address trigger column by its data field"
|
|
18868
18868
|
] }) }),
|
|
18869
|
-
/* @__PURE__ */ r(
|
|
18869
|
+
/* @__PURE__ */ r(V, { label: t("viz.table.click_cell.column_data_field"), value: c.toString(), onChange: (h) => d(h.currentTarget.value) })
|
|
18870
18870
|
] }) : /* @__PURE__ */ r(q, { clearable: !1, data: o, label: t("viz.table.click_cell.choose_a_column"), value: c.toString(), onChange: d, comboboxProps: {
|
|
18871
18871
|
zIndex: 340
|
|
18872
18872
|
}, maxDropdownHeight: 500 });
|
|
@@ -18987,7 +18987,7 @@ const dk = (e) => {
|
|
|
18987
18987
|
if (i === 0)
|
|
18988
18988
|
return null;
|
|
18989
18989
|
if (l === 0)
|
|
18990
|
-
return /* @__PURE__ */ r(
|
|
18990
|
+
return /* @__PURE__ */ r($, { className: e.info_bar, sx: {
|
|
18991
18991
|
height: 22
|
|
18992
18992
|
}, children: /* @__PURE__ */ r(z, { ta: "right", pr: 6, size: "14px", c: "dimmed", fw: "normal", children: o("common.pagination.total_rows", {
|
|
18993
18993
|
total: i
|
|
@@ -19065,7 +19065,7 @@ function Qo({
|
|
|
19065
19065
|
minSize: typeof Ee.width == "number" ? Ee.width : void 0
|
|
19066
19066
|
});
|
|
19067
19067
|
});
|
|
19068
|
-
}, [g, b]), [x, T] = H([]), [M,
|
|
19068
|
+
}, [g, b]), [x, T] = H([]), [M, R] = E.useState({
|
|
19069
19069
|
pageIndex: 0,
|
|
19070
19070
|
pageSize: a.pagination.page_size
|
|
19071
19071
|
}), O = k(() => {
|
|
@@ -19094,7 +19094,7 @@ function Qo({
|
|
|
19094
19094
|
}, "data-enable-scrollbar": !0, className: p(h.root, {
|
|
19095
19095
|
"table-highlight-on-hover": a.highlightOnHover
|
|
19096
19096
|
}), children: [
|
|
19097
|
-
/* @__PURE__ */ r(uk, { classes: h, pagination: M, totalRows: Me, setPagination:
|
|
19097
|
+
/* @__PURE__ */ r(uk, { classes: h, pagination: M, totalRows: Me, setPagination: R, pageCount: G }),
|
|
19098
19098
|
/* @__PURE__ */ u(w, { sx: {
|
|
19099
19099
|
...UC,
|
|
19100
19100
|
maxHeight: Xt
|
|
@@ -19263,7 +19263,7 @@ const mk = {
|
|
|
19263
19263
|
const {
|
|
19264
19264
|
panel: d
|
|
19265
19265
|
} = Le(), h = E.useMemo(() => d.queryOptions(a, o), [a, o]);
|
|
19266
|
-
return h.length === 0 ? /* @__PURE__ */ r(
|
|
19266
|
+
return h.length === 0 ? /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: a, readOnly: !0, disabled: !0 }) }) : /* @__PURE__ */ r(q, { ref: c, label: e, description: n, data: h, value: a, onChange: be(i), required: t, sx: l, maxDropdownHeight: 500, ...s });
|
|
19267
19267
|
})), yk = [{
|
|
19268
19268
|
from: 0,
|
|
19269
19269
|
to: 0
|
|
@@ -19290,8 +19290,8 @@ const xk = te((e, t) => {
|
|
|
19290
19290
|
} = y(), {
|
|
19291
19291
|
colorManager: a
|
|
19292
19292
|
} = ut(on), [i, o] = H(ud(e.value)), [l, s] = H(_k(a, e.value)), c = Ca(l), [d, h] = H(vk(a, e.value)), p = Ca(d), g = (x) => {
|
|
19293
|
-
var T, M,
|
|
19294
|
-
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") : (
|
|
19293
|
+
var T, M, R;
|
|
19294
|
+
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") : (R = e.onChange) == null || R.call(e, p.current);
|
|
19295
19295
|
}, b = (x) => {
|
|
19296
19296
|
var T;
|
|
19297
19297
|
s(x), (T = e.onChange) == null || T.call(e, x);
|
|
@@ -19341,7 +19341,7 @@ const xk = te((e, t) => {
|
|
|
19341
19341
|
}, children: a("viz.table.column.custom_cell_content") }),
|
|
19342
19342
|
/* @__PURE__ */ r(Se, { size: 800, title: a("viz.table.column.custom_cell_content"), opened: i, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(I, { children: [
|
|
19343
19343
|
/* @__PURE__ */ r(_, { justify: "flex-start", children: /* @__PURE__ */ r(gc, {}) }),
|
|
19344
|
-
/* @__PURE__ */ r(
|
|
19344
|
+
/* @__PURE__ */ r($, { sx: {
|
|
19345
19345
|
position: "relative"
|
|
19346
19346
|
}, children: /* @__PURE__ */ r(Wt, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (g) => c(g ?? ""), theme: "vs-dark", options: {
|
|
19347
19347
|
minimap: {
|
|
@@ -19371,7 +19371,7 @@ const xk = te((e, t) => {
|
|
|
19371
19371
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
19372
19372
|
/* @__PURE__ */ r(f, { name: `columns.${t}.label`, control: e, render: ({
|
|
19373
19373
|
field: l
|
|
19374
|
-
}) => /* @__PURE__ */ r(
|
|
19374
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.label.label"), required: !0, id: `col-label-${t}`, sx: {
|
|
19375
19375
|
flex: 1
|
|
19376
19376
|
}, ...l }) }),
|
|
19377
19377
|
/* @__PURE__ */ r(f, { name: `columns.${t}.value_field`, control: e, render: ({
|
|
@@ -19468,7 +19468,7 @@ function zk({
|
|
|
19468
19468
|
}
|
|
19469
19469
|
}, children: /* @__PURE__ */ r(f, { name: "fontSize", control: e, render: ({
|
|
19470
19470
|
field: a
|
|
19471
|
-
}) => /* @__PURE__ */ r(
|
|
19471
|
+
}) => /* @__PURE__ */ r(V, { label: n("style.font_size.label"), placeholder: n("style.font_size.placeholder"), required: !0, sx: {
|
|
19472
19472
|
flex: 1
|
|
19473
19473
|
}, ...a }) }) }),
|
|
19474
19474
|
/* @__PURE__ */ u(_, { justify: "space-between", grow: !0, children: [
|
|
@@ -19636,13 +19636,13 @@ function Lk({
|
|
|
19636
19636
|
s && n(s.label);
|
|
19637
19637
|
}, [i]), /* @__PURE__ */ u(I, { gap: 0, mt: "sm", mb: "lg", children: [
|
|
19638
19638
|
/* @__PURE__ */ r(z, { size: "sm", children: e }),
|
|
19639
|
-
/* @__PURE__ */ r(
|
|
19639
|
+
/* @__PURE__ */ r($, { px: "1.5em", children: /* @__PURE__ */ r(Ih, { label: null, marks: fr, value: i, onChange: o, step: 25, ref: a }) })
|
|
19640
19640
|
] });
|
|
19641
19641
|
}
|
|
19642
19642
|
const Vk = E.forwardRef(Lk), $k = ({
|
|
19643
19643
|
value: e,
|
|
19644
19644
|
onChange: t
|
|
19645
|
-
}) => /* @__PURE__ */ r(
|
|
19645
|
+
}) => /* @__PURE__ */ r($, { sx: {
|
|
19646
19646
|
position: "relative"
|
|
19647
19647
|
}, children: /* @__PURE__ */ r(Wt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
|
|
19648
19648
|
a && t(a);
|
|
@@ -19732,7 +19732,7 @@ function Pk({
|
|
|
19732
19732
|
}) => /* @__PURE__ */ r(ki, { ...p }) }),
|
|
19733
19733
|
/* @__PURE__ */ r(f, { name: "font_size", control: l, render: ({
|
|
19734
19734
|
field: p
|
|
19735
|
-
}) => /* @__PURE__ */ r(
|
|
19735
|
+
}) => /* @__PURE__ */ r(V, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
|
|
19736
19736
|
flex: 1
|
|
19737
19737
|
}, ...p }) }),
|
|
19738
19738
|
/* @__PURE__ */ r(_, { justify: "space-between", grow: !0, sx: {
|
|
@@ -19856,7 +19856,7 @@ const jk = ({
|
|
|
19856
19856
|
...ui
|
|
19857
19857
|
}, Uo = ({
|
|
19858
19858
|
message: e
|
|
19859
|
-
}) => /* @__PURE__ */ r(
|
|
19859
|
+
}) => /* @__PURE__ */ r($, { sx: $a, children: /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
|
|
19860
19860
|
__html: e
|
|
19861
19861
|
}, style: {
|
|
19862
19862
|
fontSize: "14px",
|
|
@@ -19897,10 +19897,10 @@ function Hk({
|
|
|
19897
19897
|
}), {
|
|
19898
19898
|
refreshDeps: [o, n]
|
|
19899
19899
|
});
|
|
19900
|
-
return !a || !i || !n ? null : c ? /* @__PURE__ */ r(
|
|
19900
|
+
return !a || !i || !n ? null : c ? /* @__PURE__ */ r($, { sx: {
|
|
19901
19901
|
position: "relative",
|
|
19902
19902
|
height: i
|
|
19903
|
-
}, children: /* @__PURE__ */ r(pn, { visible: !0 }) }) : s ? /* @__PURE__ */ r(
|
|
19903
|
+
}, children: /* @__PURE__ */ r(pn, { visible: !0 }) }) : s ? /* @__PURE__ */ r($, { sx: $a, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r(Qk, { error: s, width: a, height: i }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ r($, { sx: $a, "data-enable-scrollbar": !0, children: l.replies.map((d, h) => /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
|
|
19904
19904
|
__html: d.interpretation.html
|
|
19905
19905
|
} }, h)) });
|
|
19906
19906
|
}
|
|
@@ -19925,18 +19925,18 @@ function Gk({
|
|
|
19925
19925
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
19926
19926
|
/* @__PURE__ */ r(f, { name: "expertSystemURL", control: i, render: ({
|
|
19927
19927
|
field: d
|
|
19928
|
-
}) => /* @__PURE__ */ r(
|
|
19928
|
+
}) => /* @__PURE__ */ r(V, { label: "Expert System URL", ...d }) }),
|
|
19929
19929
|
/* @__PURE__ */ r(f, { name: "path", control: i, render: ({
|
|
19930
19930
|
field: d
|
|
19931
|
-
}) => /* @__PURE__ */ r(
|
|
19931
|
+
}) => /* @__PURE__ */ r(V, { label: "Path", required: !0, ...d }) })
|
|
19932
19932
|
] }),
|
|
19933
19933
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
19934
19934
|
/* @__PURE__ */ r(f, { name: "goal", control: i, render: ({
|
|
19935
19935
|
field: d
|
|
19936
|
-
}) => /* @__PURE__ */ r(
|
|
19936
|
+
}) => /* @__PURE__ */ r(V, { label: "Goal", required: !0, ...d }) }),
|
|
19937
19937
|
/* @__PURE__ */ r(f, { name: "question", control: i, render: ({
|
|
19938
19938
|
field: d
|
|
19939
|
-
}) => /* @__PURE__ */ r(
|
|
19939
|
+
}) => /* @__PURE__ */ r(V, { label: "Question", required: !0, ...d }) })
|
|
19940
19940
|
] }),
|
|
19941
19941
|
/* @__PURE__ */ r(A, { variant: "dashed", mt: 16, mb: 8 }),
|
|
19942
19942
|
/* @__PURE__ */ r(L, { type: "submit", variant: "filled", color: "blue", leftSection: /* @__PURE__ */ r(fe, { size: 20 }), disabled: !s.isDirty, sx: {
|
|
@@ -20181,7 +20181,7 @@ function s2(e, t, n) {
|
|
|
20181
20181
|
if (!e)
|
|
20182
20182
|
return n[0];
|
|
20183
20183
|
try {
|
|
20184
|
-
return [t,
|
|
20184
|
+
return [t, P(t).add(1, "year").subtract(1, "day").valueOf()];
|
|
20185
20185
|
} catch (a) {
|
|
20186
20186
|
return console.error(a), n[0];
|
|
20187
20187
|
}
|
|
@@ -20327,27 +20327,27 @@ function g2(e, t, n) {
|
|
|
20327
20327
|
}
|
|
20328
20328
|
});
|
|
20329
20329
|
}
|
|
20330
|
-
const f2 = (e) =>
|
|
20330
|
+
const f2 = (e) => P(e).get("year");
|
|
20331
20331
|
function b2(e) {
|
|
20332
|
-
const t = C.groupBy(e, (l) => l.value[2]), n = Object.keys(t), a = e.map((l) =>
|
|
20332
|
+
const t = C.groupBy(e, (l) => l.value[2]), n = Object.keys(t), a = e.map((l) => P(l.value[0]).valueOf()), i = C.min(a), o = C.max(a);
|
|
20333
20333
|
return {
|
|
20334
20334
|
minDate: i ?? 0,
|
|
20335
20335
|
maxDate: o ?? 0,
|
|
20336
|
-
dateSpan:
|
|
20336
|
+
dateSpan: P(o).diff(i, "day"),
|
|
20337
20337
|
dataByYear: t,
|
|
20338
20338
|
years: n
|
|
20339
20339
|
};
|
|
20340
20340
|
}
|
|
20341
20341
|
function y2(e, t, n) {
|
|
20342
|
-
const a = n.reduce((M,
|
|
20343
|
-
const O = Ut(
|
|
20344
|
-
return M[
|
|
20342
|
+
const a = n.reduce((M, R) => {
|
|
20343
|
+
const O = Ut(R, t);
|
|
20344
|
+
return M[R.name] = _t(R, O), M;
|
|
20345
20345
|
}, {}), i = Yr(e.visualMap, a), {
|
|
20346
20346
|
min: o,
|
|
20347
20347
|
max: l
|
|
20348
20348
|
} = i, s = d2(e), c = j(e.calendar.data_key), d = j(e.heat_block.data_key), h = t[c.queryID].map((M) => {
|
|
20349
|
-
const
|
|
20350
|
-
value: [
|
|
20349
|
+
const R = C.get(M, c.columnKey), O = C.get(M, d.columnKey), G = f2(M[c.columnKey]), W = {
|
|
20350
|
+
value: [R, O, G]
|
|
20351
20351
|
}, {
|
|
20352
20352
|
followVisualMap: oe,
|
|
20353
20353
|
color: Z
|
|
@@ -20398,8 +20398,8 @@ function v2({
|
|
|
20398
20398
|
const [x, T] = v.value, M = C.get(s, x, {
|
|
20399
20399
|
error: "rowData is not found"
|
|
20400
20400
|
});
|
|
20401
|
-
c.forEach((
|
|
20402
|
-
i.runInteraction(
|
|
20401
|
+
c.forEach((R) => {
|
|
20402
|
+
i.runInteraction(R.id, {
|
|
20403
20403
|
...v,
|
|
20404
20404
|
rowData: M
|
|
20405
20405
|
});
|
|
@@ -20480,7 +20480,7 @@ function C2({
|
|
|
20480
20480
|
}, ...a }) }),
|
|
20481
20481
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
20482
20482
|
field: a
|
|
20483
|
-
}) => /* @__PURE__ */ r(
|
|
20483
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
20484
20484
|
flex: 1
|
|
20485
20485
|
}, ...a }) })
|
|
20486
20486
|
] }),
|
|
@@ -20504,7 +20504,7 @@ const k2 = ({
|
|
|
20504
20504
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
20505
20505
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
20506
20506
|
field: a
|
|
20507
|
-
}) => /* @__PURE__ */ r(
|
|
20507
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
20508
20508
|
flex: 1
|
|
20509
20509
|
}, ...a }) }),
|
|
20510
20510
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -20867,7 +20867,7 @@ function B2({
|
|
|
20867
20867
|
id: p,
|
|
20868
20868
|
...g
|
|
20869
20869
|
}, b, v, x, T, M) {
|
|
20870
|
-
const
|
|
20870
|
+
const R = {
|
|
20871
20871
|
label: {
|
|
20872
20872
|
show: !!a,
|
|
20873
20873
|
position: a,
|
|
@@ -20888,14 +20888,14 @@ function B2({
|
|
|
20888
20888
|
...g
|
|
20889
20889
|
};
|
|
20890
20890
|
if (!o || o === e.data_key)
|
|
20891
|
-
return
|
|
20891
|
+
return R.data = F2({
|
|
20892
20892
|
dataTemplate: b,
|
|
20893
20893
|
data: x,
|
|
20894
20894
|
aggregation_on_value: l,
|
|
20895
20895
|
name_data_key: e.data_key,
|
|
20896
20896
|
value_data_key: t,
|
|
20897
20897
|
valueTypedXAxis: v
|
|
20898
|
-
}),
|
|
20898
|
+
}), R;
|
|
20899
20899
|
const O = N2({
|
|
20900
20900
|
group_by_key: o,
|
|
20901
20901
|
data: x,
|
|
@@ -20903,7 +20903,7 @@ function B2({
|
|
|
20903
20903
|
value_data_key: t
|
|
20904
20904
|
});
|
|
20905
20905
|
return Object.entries(O).map(([G, W]) => {
|
|
20906
|
-
const oe = Fe(
|
|
20906
|
+
const oe = Fe(R);
|
|
20907
20907
|
return oe.name = G, oe.color = void 0, oe.data = W, oe;
|
|
20908
20908
|
});
|
|
20909
20909
|
}
|
|
@@ -21123,7 +21123,7 @@ function J2({
|
|
|
21123
21123
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
21124
21124
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
21125
21125
|
field: s
|
|
21126
|
-
}) => /* @__PURE__ */ r(
|
|
21126
|
+
}) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
21127
21127
|
flex: 1
|
|
21128
21128
|
}, ...s }) }),
|
|
21129
21129
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -21134,7 +21134,7 @@ function J2({
|
|
|
21134
21134
|
] }),
|
|
21135
21135
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
21136
21136
|
field: s
|
|
21137
|
-
}) => /* @__PURE__ */ r(
|
|
21137
|
+
}) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
21138
21138
|
flex: 1
|
|
21139
21139
|
}, ...s }) }),
|
|
21140
21140
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
@@ -21217,7 +21217,7 @@ function t3({
|
|
|
21217
21217
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
21218
21218
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
21219
21219
|
field: s
|
|
21220
|
-
}) => /* @__PURE__ */ r(
|
|
21220
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
21221
21221
|
flexGrow: 1
|
|
21222
21222
|
}, ...s }) }),
|
|
21223
21223
|
/* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
|
|
@@ -21229,17 +21229,17 @@ function t3({
|
|
|
21229
21229
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
21230
21230
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
21231
21231
|
field: s
|
|
21232
|
-
}) => /* @__PURE__ */ r(
|
|
21232
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
|
|
21233
21233
|
flexGrow: 1
|
|
21234
21234
|
}, ...s }) }),
|
|
21235
21235
|
/* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
21236
21236
|
field: s
|
|
21237
|
-
}) => /* @__PURE__ */ r(
|
|
21237
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
|
|
21238
21238
|
flexGrow: 1
|
|
21239
21239
|
}, ...s }) }),
|
|
21240
21240
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
21241
21241
|
field: s
|
|
21242
|
-
}) => /* @__PURE__ */ r(
|
|
21242
|
+
}) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
|
|
21243
21243
|
flexGrow: 1
|
|
21244
21244
|
}, ...s }) })
|
|
21245
21245
|
] })
|
|
@@ -21260,7 +21260,7 @@ function n3({
|
|
|
21260
21260
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
21261
21261
|
/* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
|
|
21262
21262
|
field: o
|
|
21263
|
-
}) => /* @__PURE__ */ r(
|
|
21263
|
+
}) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
|
|
21264
21264
|
flex: 1
|
|
21265
21265
|
}, ...o }) }),
|
|
21266
21266
|
/* @__PURE__ */ r(f, { name: `series.${t}.xAxisIndex`, control: e, render: ({
|
|
@@ -21357,7 +21357,7 @@ function i3({
|
|
|
21357
21357
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
21358
21358
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.name`, control: e, render: ({
|
|
21359
21359
|
field: a
|
|
21360
|
-
}) => /* @__PURE__ */ r(
|
|
21360
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
21361
21361
|
flex: 1
|
|
21362
21362
|
}, ...a }) }),
|
|
21363
21363
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.position`, control: e, render: ({
|
|
@@ -21377,10 +21377,10 @@ function i3({
|
|
|
21377
21377
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
21378
21378
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.min`, control: e, render: ({
|
|
21379
21379
|
field: a
|
|
21380
|
-
}) => /* @__PURE__ */ r(
|
|
21380
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_min"), ...a }) }),
|
|
21381
21381
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.max`, control: e, render: ({
|
|
21382
21382
|
field: a
|
|
21383
|
-
}) => /* @__PURE__ */ r(
|
|
21383
|
+
}) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_max"), ...a }) })
|
|
21384
21384
|
] })
|
|
21385
21385
|
] }),
|
|
21386
21386
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.x_axis.behavior"), labelPosition: "center" }),
|
|
@@ -21415,7 +21415,7 @@ function l3({
|
|
|
21415
21415
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
21416
21416
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
21417
21417
|
field: a
|
|
21418
|
-
}) => /* @__PURE__ */ r(
|
|
21418
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
21419
21419
|
flex: 1
|
|
21420
21420
|
}, ...a }) }),
|
|
21421
21421
|
/* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -22323,7 +22323,7 @@ function B3({
|
|
|
22323
22323
|
}, [h]), !s.data_key || !d || !h || !o || !l)
|
|
22324
22324
|
return null;
|
|
22325
22325
|
const b = Math.max(Dt(o), 300), v = Math.max(It(l), 370);
|
|
22326
|
-
return /* @__PURE__ */ u(
|
|
22326
|
+
return /* @__PURE__ */ u($, { pt: nt.top, pr: nt.right, pb: nt.bottom, pl: nt.left, sx: {
|
|
22327
22327
|
overflow: "hidden",
|
|
22328
22328
|
height: l,
|
|
22329
22329
|
width: o
|
|
@@ -22339,7 +22339,7 @@ function j3({
|
|
|
22339
22339
|
return t(["deviation"]), /* @__PURE__ */ u(I, { children: [
|
|
22340
22340
|
/* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "deviation.name", control: e, render: ({
|
|
22341
22341
|
field: n
|
|
22342
|
-
}) => /* @__PURE__ */ r(
|
|
22342
|
+
}) => /* @__PURE__ */ r(V, { label: "指标名称", sx: {
|
|
22343
22343
|
flex: 1
|
|
22344
22344
|
}, ...n }) }) }),
|
|
22345
22345
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
@@ -22366,7 +22366,7 @@ const Q3 = ({
|
|
|
22366
22366
|
return /* @__PURE__ */ r(I, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
22367
22367
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.name`, control: e, render: ({
|
|
22368
22368
|
field: a
|
|
22369
|
-
}) => /* @__PURE__ */ r(
|
|
22369
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
22370
22370
|
flex: 1
|
|
22371
22371
|
}, ...a }) }),
|
|
22372
22372
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -22418,7 +22418,7 @@ function G3({
|
|
|
22418
22418
|
}, ...n }) }),
|
|
22419
22419
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
22420
22420
|
field: n
|
|
22421
|
-
}) => /* @__PURE__ */ r(
|
|
22421
|
+
}) => /* @__PURE__ */ r(V, { label: "X轴名称", sx: {
|
|
22422
22422
|
flex: 1
|
|
22423
22423
|
}, ...n }) })
|
|
22424
22424
|
] }),
|
|
@@ -22694,7 +22694,7 @@ const Xo = ({
|
|
|
22694
22694
|
}], [i.language]);
|
|
22695
22695
|
return /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
22696
22696
|
/* @__PURE__ */ r(q, { label: a("viz.merico_stats.metric.postfix_type.label"), data: d, value: e.type, onChange: s }),
|
|
22697
|
-
e.type === "text" && /* @__PURE__ */ r(
|
|
22697
|
+
e.type === "text" && /* @__PURE__ */ r(V, { label: a("viz.merico_stats.metric.postfix_content"), value: e.value, onChange: (h) => {
|
|
22698
22698
|
c(h.currentTarget.value);
|
|
22699
22699
|
} }),
|
|
22700
22700
|
e.type === "filter-option-label" && /* @__PURE__ */ r(q, { label: a("viz.merico_stats.metric.postfix_filter"), value: e.value, onChange: c, data: l })
|
|
@@ -22716,7 +22716,7 @@ function iz({
|
|
|
22716
22716
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
22717
22717
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.names.value`, control: e, render: ({
|
|
22718
22718
|
field: o
|
|
22719
|
-
}) => /* @__PURE__ */ r(
|
|
22719
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.metric_name"), required: !0, sx: {
|
|
22720
22720
|
flex: 1
|
|
22721
22721
|
}, ...o }) }),
|
|
22722
22722
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
|
|
@@ -22728,7 +22728,7 @@ function iz({
|
|
|
22728
22728
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
22729
22729
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.names.basis`, control: e, render: ({
|
|
22730
22730
|
field: o
|
|
22731
|
-
}) => /* @__PURE__ */ r(
|
|
22731
|
+
}) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.basis_name"), required: !0, sx: {
|
|
22732
22732
|
flex: 1
|
|
22733
22733
|
}, ...o }) }),
|
|
22734
22734
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
|
|
@@ -22970,7 +22970,7 @@ function gz({
|
|
|
22970
22970
|
}, ...i }) }),
|
|
22971
22971
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
22972
22972
|
field: i
|
|
22973
|
-
}) => /* @__PURE__ */ r(
|
|
22973
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
22974
22974
|
flex: 1
|
|
22975
22975
|
}, ...i }) })
|
|
22976
22976
|
] }),
|
|
@@ -23005,7 +23005,7 @@ const fz = ({
|
|
|
23005
23005
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
23006
23006
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
23007
23007
|
field: a
|
|
23008
|
-
}) => /* @__PURE__ */ r(
|
|
23008
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
23009
23009
|
flex: 1
|
|
23010
23010
|
}, ...a }) }),
|
|
23011
23011
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -23070,7 +23070,7 @@ function _z({
|
|
|
23070
23070
|
}, ...a }) }),
|
|
23071
23071
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
23072
23072
|
field: a
|
|
23073
|
-
}) => /* @__PURE__ */ r(
|
|
23073
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
|
|
23074
23074
|
flex: 1
|
|
23075
23075
|
}, ...a }) })
|
|
23076
23076
|
] }),
|
|
@@ -23108,7 +23108,7 @@ function vz({
|
|
|
23108
23108
|
}, ...a }) }),
|
|
23109
23109
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
23110
23110
|
field: a
|
|
23111
|
-
}) => /* @__PURE__ */ r(
|
|
23111
|
+
}) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
|
|
23112
23112
|
flex: 1
|
|
23113
23113
|
}, ...a }) })
|
|
23114
23114
|
] }),
|
|
@@ -23328,7 +23328,7 @@ function Iz({
|
|
|
23328
23328
|
unit: e.heat_block.unit.show_in_tooltip ? e.heat_block.unit.text : ""
|
|
23329
23329
|
}, v = [p, g, b], x = a[`${c}---${d}`];
|
|
23330
23330
|
return x && e.tooltip.metrics.forEach((T) => {
|
|
23331
|
-
const M = j(T.data_key),
|
|
23331
|
+
const M = j(T.data_key), R = o[T.name];
|
|
23332
23332
|
v.push({
|
|
23333
23333
|
label: T.name,
|
|
23334
23334
|
value: Dz(C.get(x, M.columnKey, "")),
|
|
@@ -23336,7 +23336,7 @@ function Iz({
|
|
|
23336
23336
|
label: "",
|
|
23337
23337
|
value: ""
|
|
23338
23338
|
},
|
|
23339
|
-
unit:
|
|
23339
|
+
unit: R
|
|
23340
23340
|
});
|
|
23341
23341
|
}), v;
|
|
23342
23342
|
}
|
|
@@ -23482,12 +23482,12 @@ function $z(e, t, n) {
|
|
|
23482
23482
|
min: s,
|
|
23483
23483
|
max: c
|
|
23484
23484
|
} = l, d = j(e.x_axis.data_key), h = j(e.y_axis.data_key), p = j(e.heat_block.data_key), g = C.uniq(t[d.queryID].map((x) => x[d.columnKey])), b = t[d.queryID].map((x) => {
|
|
23485
|
-
const T = C.get(x, d.columnKey), M = C.get(x, h.columnKey),
|
|
23486
|
-
value: [T, M,
|
|
23485
|
+
const T = C.get(x, d.columnKey), M = C.get(x, h.columnKey), R = C.get(x, p.columnKey), O = {
|
|
23486
|
+
value: [T, M, R]
|
|
23487
23487
|
}, {
|
|
23488
23488
|
followVisualMap: G,
|
|
23489
23489
|
color: W
|
|
23490
|
-
} = pi(
|
|
23490
|
+
} = pi(R, s, c, e.visualMap);
|
|
23491
23491
|
return G || (O.visualMap = !1, O.itemStyle = {
|
|
23492
23492
|
color: W
|
|
23493
23493
|
}), O;
|
|
@@ -23517,8 +23517,8 @@ function Rz({
|
|
|
23517
23517
|
const [x, T] = v.value, M = C.get(s, `${x}---${T}`, {
|
|
23518
23518
|
error: "rowData is not found"
|
|
23519
23519
|
});
|
|
23520
|
-
c.forEach((
|
|
23521
|
-
i.runInteraction(
|
|
23520
|
+
c.forEach((R) => {
|
|
23521
|
+
i.runInteraction(R.id, {
|
|
23522
23522
|
...v,
|
|
23523
23523
|
rowData: M
|
|
23524
23524
|
});
|
|
@@ -23686,7 +23686,7 @@ const jz = {
|
|
|
23686
23686
|
}) => {
|
|
23687
23687
|
const {
|
|
23688
23688
|
t
|
|
23689
|
-
} = y(), a = e.model.value, [i, o] = a.value, l = k(() => !o && !i ? Number.NaN :
|
|
23689
|
+
} = y(), a = e.model.value, [i, o] = a.value, l = k(() => !o && !i ? Number.NaN : P(o).diff(P(i), "days") + 1, [i, o]);
|
|
23690
23690
|
if (Number.isNaN(l))
|
|
23691
23691
|
return /* @__PURE__ */ r("span", { style: {
|
|
23692
23692
|
userSelect: "none",
|
|
@@ -24081,41 +24081,41 @@ function vd({
|
|
|
24081
24081
|
Mr.changeLanguage(e);
|
|
24082
24082
|
}, [e]), /* @__PURE__ */ r(ch, { i18n: Mr, children: t });
|
|
24083
24083
|
}
|
|
24084
|
-
|
|
24085
|
-
|
|
24086
|
-
|
|
24087
|
-
|
|
24088
|
-
|
|
24089
|
-
|
|
24090
|
-
|
|
24091
|
-
|
|
24092
|
-
|
|
24093
|
-
|
|
24094
|
-
|
|
24095
|
-
|
|
24096
|
-
|
|
24097
|
-
|
|
24098
|
-
|
|
24099
|
-
|
|
24100
|
-
|
|
24101
|
-
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
|
|
24105
|
-
|
|
24106
|
-
|
|
24107
|
-
|
|
24108
|
-
|
|
24109
|
-
|
|
24110
|
-
|
|
24111
|
-
|
|
24112
|
-
|
|
24113
|
-
|
|
24114
|
-
|
|
24115
|
-
|
|
24116
|
-
|
|
24117
|
-
|
|
24118
|
-
|
|
24084
|
+
P.extend(em);
|
|
24085
|
+
P.extend(tm);
|
|
24086
|
+
P.extend(nm);
|
|
24087
|
+
P.extend(rm);
|
|
24088
|
+
P.extend(am);
|
|
24089
|
+
P.extend(im);
|
|
24090
|
+
P.extend(om);
|
|
24091
|
+
P.extend(lm);
|
|
24092
|
+
P.extend(sm);
|
|
24093
|
+
P.extend(cm);
|
|
24094
|
+
P.extend(hm);
|
|
24095
|
+
P.extend(pm);
|
|
24096
|
+
P.extend(mm);
|
|
24097
|
+
P.extend(gm);
|
|
24098
|
+
P.extend(fm);
|
|
24099
|
+
P.extend(dm);
|
|
24100
|
+
P.extend(um);
|
|
24101
|
+
P.extend(bm);
|
|
24102
|
+
P.extend(ym);
|
|
24103
|
+
P.extend(_m);
|
|
24104
|
+
P.extend(vm);
|
|
24105
|
+
P.extend(xm);
|
|
24106
|
+
P.extend(wm);
|
|
24107
|
+
P.extend(Sm);
|
|
24108
|
+
P.extend(Cm);
|
|
24109
|
+
P.extend(km);
|
|
24110
|
+
P.extend(zm);
|
|
24111
|
+
P.extend(Tm);
|
|
24112
|
+
P.extend(Dm);
|
|
24113
|
+
P.extend(Im);
|
|
24114
|
+
P.extend(Lm);
|
|
24115
|
+
P.extend(Vm);
|
|
24116
|
+
P.extend(Mm);
|
|
24117
|
+
P.tz.setDefault("UTC");
|
|
24118
|
+
P.updateLocale("en", {
|
|
24119
24119
|
weekStart: 1
|
|
24120
24120
|
});
|
|
24121
24121
|
function x5(e) {
|
|
@@ -25048,9 +25048,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25048
25048
|
value: "yesterday",
|
|
25049
25049
|
group: "last",
|
|
25050
25050
|
getRange: () => {
|
|
25051
|
-
const e =
|
|
25051
|
+
const e = P();
|
|
25052
25052
|
return {
|
|
25053
|
-
value: [
|
|
25053
|
+
value: [e.subtract(1, "day").startOf("day").toDate(), e.subtract(1, "day").endOf("day").toDate()],
|
|
25054
25054
|
shortcut: "yesterday"
|
|
25055
25055
|
};
|
|
25056
25056
|
}
|
|
@@ -25059,9 +25059,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25059
25059
|
value: "last week",
|
|
25060
25060
|
group: "last",
|
|
25061
25061
|
getRange: () => {
|
|
25062
|
-
const e =
|
|
25062
|
+
const e = P();
|
|
25063
25063
|
return {
|
|
25064
|
-
value: [
|
|
25064
|
+
value: [e.subtract(1, "week").startOf("week").toDate(), e.subtract(1, "week").endOf("week").toDate()],
|
|
25065
25065
|
shortcut: "last week"
|
|
25066
25066
|
};
|
|
25067
25067
|
}
|
|
@@ -25070,9 +25070,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25070
25070
|
value: "last month",
|
|
25071
25071
|
group: "last",
|
|
25072
25072
|
getRange: () => {
|
|
25073
|
-
const e =
|
|
25073
|
+
const e = P();
|
|
25074
25074
|
return {
|
|
25075
|
-
value: [
|
|
25075
|
+
value: [e.subtract(1, "month").startOf("month").toDate(), e.subtract(1, "month").endOf("month").toDate()],
|
|
25076
25076
|
shortcut: "last month"
|
|
25077
25077
|
};
|
|
25078
25078
|
}
|
|
@@ -25081,9 +25081,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25081
25081
|
value: "last 2 months",
|
|
25082
25082
|
group: "last",
|
|
25083
25083
|
getRange: () => {
|
|
25084
|
-
const e =
|
|
25084
|
+
const e = P();
|
|
25085
25085
|
return {
|
|
25086
|
-
value: [
|
|
25086
|
+
value: [e.subtract(2, "month").startOf("month").toDate(), e.subtract(1, "month").endOf("month").toDate()],
|
|
25087
25087
|
shortcut: "last 2 months"
|
|
25088
25088
|
};
|
|
25089
25089
|
}
|
|
@@ -25092,9 +25092,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25092
25092
|
value: "last 3 months",
|
|
25093
25093
|
group: "last",
|
|
25094
25094
|
getRange: () => {
|
|
25095
|
-
const e =
|
|
25095
|
+
const e = P();
|
|
25096
25096
|
return {
|
|
25097
|
-
value: [
|
|
25097
|
+
value: [e.subtract(3, "month").startOf("month").toDate(), e.subtract(1, "month").endOf("month").toDate()],
|
|
25098
25098
|
shortcut: "last 3 months"
|
|
25099
25099
|
};
|
|
25100
25100
|
}
|
|
@@ -25103,9 +25103,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25103
25103
|
value: "last year",
|
|
25104
25104
|
group: "last",
|
|
25105
25105
|
getRange: () => {
|
|
25106
|
-
const e =
|
|
25106
|
+
const e = P();
|
|
25107
25107
|
return {
|
|
25108
|
-
value: [
|
|
25108
|
+
value: [e.subtract(1, "year").startOf("year").toDate(), e.subtract(1, "year").endOf("year").toDate()],
|
|
25109
25109
|
shortcut: "last year"
|
|
25110
25110
|
};
|
|
25111
25111
|
}
|
|
@@ -25114,9 +25114,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25114
25114
|
value: "recent 7 days",
|
|
25115
25115
|
group: "recent",
|
|
25116
25116
|
getRange: () => {
|
|
25117
|
-
const e =
|
|
25117
|
+
const e = P();
|
|
25118
25118
|
return {
|
|
25119
|
-
value: [
|
|
25119
|
+
value: [e.subtract(7, "day").startOf("day").toDate(), e.subtract(1, "day").endOf("day").toDate()],
|
|
25120
25120
|
shortcut: "recent 7 days"
|
|
25121
25121
|
};
|
|
25122
25122
|
}
|
|
@@ -25125,9 +25125,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25125
25125
|
value: "recent 30 days",
|
|
25126
25126
|
group: "recent",
|
|
25127
25127
|
getRange: () => {
|
|
25128
|
-
const e =
|
|
25128
|
+
const e = P();
|
|
25129
25129
|
return {
|
|
25130
|
-
value: [
|
|
25130
|
+
value: [e.subtract(30, "day").startOf("day").toDate(), e.subtract(1, "day").endOf("day").toDate()],
|
|
25131
25131
|
shortcut: "recent 30 days"
|
|
25132
25132
|
};
|
|
25133
25133
|
}
|
|
@@ -25136,9 +25136,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25136
25136
|
value: "recent 60 days",
|
|
25137
25137
|
group: "recent",
|
|
25138
25138
|
getRange: () => {
|
|
25139
|
-
const e =
|
|
25139
|
+
const e = P();
|
|
25140
25140
|
return {
|
|
25141
|
-
value: [
|
|
25141
|
+
value: [e.subtract(60, "day").startOf("day").toDate(), e.subtract(1, "day").endOf("day").toDate()],
|
|
25142
25142
|
shortcut: "recent 60 days"
|
|
25143
25143
|
};
|
|
25144
25144
|
}
|
|
@@ -25147,9 +25147,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25147
25147
|
value: "recent 90 days",
|
|
25148
25148
|
group: "recent",
|
|
25149
25149
|
getRange: () => {
|
|
25150
|
-
const e =
|
|
25150
|
+
const e = P();
|
|
25151
25151
|
return {
|
|
25152
|
-
value: [
|
|
25152
|
+
value: [e.subtract(90, "day").startOf("day").toDate(), e.subtract(1, "day").endOf("day").toDate()],
|
|
25153
25153
|
shortcut: "recent 90 days"
|
|
25154
25154
|
};
|
|
25155
25155
|
}
|
|
@@ -25158,9 +25158,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25158
25158
|
value: "recent 180 days",
|
|
25159
25159
|
group: "recent",
|
|
25160
25160
|
getRange: () => {
|
|
25161
|
-
const e =
|
|
25161
|
+
const e = P();
|
|
25162
25162
|
return {
|
|
25163
|
-
value: [
|
|
25163
|
+
value: [e.subtract(180, "day").startOf("day").toDate(), e.subtract(1, "day").endOf("day").toDate()],
|
|
25164
25164
|
shortcut: "recent 180 days"
|
|
25165
25165
|
};
|
|
25166
25166
|
}
|
|
@@ -25169,9 +25169,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25169
25169
|
value: "recent 365 days",
|
|
25170
25170
|
group: "recent",
|
|
25171
25171
|
getRange: () => {
|
|
25172
|
-
const e =
|
|
25172
|
+
const e = P();
|
|
25173
25173
|
return {
|
|
25174
|
-
value: [
|
|
25174
|
+
value: [e.subtract(365, "day").startOf("day").toDate(), e.subtract(1, "day").endOf("day").toDate()],
|
|
25175
25175
|
shortcut: "recent 365 days"
|
|
25176
25176
|
};
|
|
25177
25177
|
}
|
|
@@ -25180,9 +25180,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25180
25180
|
value: "today",
|
|
25181
25181
|
group: "this",
|
|
25182
25182
|
getRange: () => {
|
|
25183
|
-
const e =
|
|
25183
|
+
const e = P();
|
|
25184
25184
|
return {
|
|
25185
|
-
value: [
|
|
25185
|
+
value: [e.startOf("day").toDate(), e.endOf("day").toDate()],
|
|
25186
25186
|
shortcut: "today"
|
|
25187
25187
|
};
|
|
25188
25188
|
}
|
|
@@ -25191,9 +25191,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25191
25191
|
value: "this week",
|
|
25192
25192
|
group: "this",
|
|
25193
25193
|
getRange: () => {
|
|
25194
|
-
const e =
|
|
25194
|
+
const e = P();
|
|
25195
25195
|
return {
|
|
25196
|
-
value: [
|
|
25196
|
+
value: [e.startOf("week").toDate(), e.endOf("week").toDate()],
|
|
25197
25197
|
shortcut: "this week"
|
|
25198
25198
|
};
|
|
25199
25199
|
}
|
|
@@ -25202,9 +25202,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25202
25202
|
value: "this month",
|
|
25203
25203
|
group: "this",
|
|
25204
25204
|
getRange: () => {
|
|
25205
|
-
const e =
|
|
25205
|
+
const e = P();
|
|
25206
25206
|
return {
|
|
25207
|
-
value: [
|
|
25207
|
+
value: [e.startOf("month").toDate(), e.endOf("month").toDate()],
|
|
25208
25208
|
shortcut: "this month"
|
|
25209
25209
|
};
|
|
25210
25210
|
}
|
|
@@ -25213,9 +25213,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25213
25213
|
value: "this year",
|
|
25214
25214
|
group: "this",
|
|
25215
25215
|
getRange: () => {
|
|
25216
|
-
const e =
|
|
25216
|
+
const e = P();
|
|
25217
25217
|
return {
|
|
25218
|
-
value: [
|
|
25218
|
+
value: [e.startOf("year").toDate(), e.endOf("year").toDate()],
|
|
25219
25219
|
shortcut: "this year"
|
|
25220
25220
|
};
|
|
25221
25221
|
}
|
|
@@ -25224,9 +25224,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25224
25224
|
value: "this week so far",
|
|
25225
25225
|
group: "this_so_far",
|
|
25226
25226
|
getRange: () => {
|
|
25227
|
-
const e =
|
|
25227
|
+
const e = P();
|
|
25228
25228
|
return {
|
|
25229
|
-
value: [
|
|
25229
|
+
value: [e.startOf("week").toDate(), e.endOf("day").toDate()],
|
|
25230
25230
|
shortcut: "this week so far"
|
|
25231
25231
|
};
|
|
25232
25232
|
}
|
|
@@ -25235,9 +25235,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25235
25235
|
value: "this month so far",
|
|
25236
25236
|
group: "this_so_far",
|
|
25237
25237
|
getRange: () => {
|
|
25238
|
-
const e =
|
|
25238
|
+
const e = P();
|
|
25239
25239
|
return {
|
|
25240
|
-
value: [
|
|
25240
|
+
value: [e.startOf("month").toDate(), e.endOf("day").toDate()],
|
|
25241
25241
|
shortcut: "this month so far"
|
|
25242
25242
|
};
|
|
25243
25243
|
}
|
|
@@ -25246,9 +25246,9 @@ const Dd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Id =
|
|
|
25246
25246
|
value: "this year so far",
|
|
25247
25247
|
group: "this_so_far",
|
|
25248
25248
|
getRange: () => {
|
|
25249
|
-
const e =
|
|
25249
|
+
const e = P();
|
|
25250
25250
|
return {
|
|
25251
|
-
value: [
|
|
25251
|
+
value: [e.startOf("year").toDate(), e.endOf("day").toDate()],
|
|
25252
25252
|
shortcut: "this year so far"
|
|
25253
25253
|
};
|
|
25254
25254
|
}
|
|
@@ -25268,12 +25268,12 @@ function B5(e) {
|
|
|
25268
25268
|
const n = la(e.default_shortcut);
|
|
25269
25269
|
if (n)
|
|
25270
25270
|
return {
|
|
25271
|
-
value: n.value.map((a) =>
|
|
25271
|
+
value: n.value.map((a) => P(a).toDate()),
|
|
25272
25272
|
shortcut: e.default_shortcut
|
|
25273
25273
|
};
|
|
25274
25274
|
}
|
|
25275
25275
|
return {
|
|
25276
|
-
value: e.default_value.map((n) => n === null ? n :
|
|
25276
|
+
value: e.default_value.map((n) => n === null ? n : P.tz(n, "UTC").toDate() ?? n),
|
|
25277
25277
|
shortcut: null
|
|
25278
25278
|
};
|
|
25279
25279
|
} catch (t) {
|
|
@@ -25286,7 +25286,7 @@ function B5(e) {
|
|
|
25286
25286
|
function Vd(e, t) {
|
|
25287
25287
|
return e.map((n) => {
|
|
25288
25288
|
try {
|
|
25289
|
-
return n ?
|
|
25289
|
+
return n ? P.tz(n, "UTC").toISOString() : null;
|
|
25290
25290
|
} catch {
|
|
25291
25291
|
return console.log(`[date-range] failed parsing ${n}`), null;
|
|
25292
25292
|
}
|
|
@@ -25340,7 +25340,7 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
25340
25340
|
},
|
|
25341
25341
|
get dateStringsValue() {
|
|
25342
25342
|
try {
|
|
25343
|
-
const t = this.filter.value, [n, a] = t.value, i = n ?
|
|
25343
|
+
const t = this.filter.value, [n, a] = t.value, i = n ? P(n).format(e.inputFormat) : "", o = a ? P(a).format(e.inputFormat) : "";
|
|
25344
25344
|
return [i, o];
|
|
25345
25345
|
} catch (t) {
|
|
25346
25346
|
return console.error(t), ["", ""];
|
|
@@ -25387,7 +25387,7 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
25387
25387
|
}) {
|
|
25388
25388
|
return {
|
|
25389
25389
|
...t,
|
|
25390
|
-
default_value: e.map((n) => n === null ? null :
|
|
25390
|
+
default_value: e.map((n) => n === null ? null : P.tz(n, "UTC").toDate())
|
|
25391
25391
|
};
|
|
25392
25392
|
},
|
|
25393
25393
|
postProcessor(e) {
|
|
@@ -25753,7 +25753,7 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
25753
25753
|
/* @__PURE__ */ r(J, { checked: a.required, onChange: (i) => a.setRequired(i.currentTarget.checked), label: n("filter.widget.select.required") }),
|
|
25754
25754
|
/* @__PURE__ */ r(yn, { filter: t })
|
|
25755
25755
|
] }),
|
|
25756
|
-
/* @__PURE__ */ r(
|
|
25756
|
+
/* @__PURE__ */ r(V, { label: n("filter.widget.common.min_width"), value: a.min_width, onChange: (i) => a.setMinWidth(i.currentTarget.value), placeholder: "200px" }),
|
|
25757
25757
|
/* @__PURE__ */ r(A, { label: n("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
25758
25758
|
/* @__PURE__ */ r(J, { checked: a.treeCheckStrictly, onChange: (i) => a.setTreeCheckStrictly(i.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
|
|
25759
25759
|
/* @__PURE__ */ r(sa, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
|
|
@@ -26110,7 +26110,7 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
26110
26110
|
name: "FilterTreeSelectWidget"
|
|
26111
26111
|
}), [b, v] = H(!1), x = (G) => {
|
|
26112
26112
|
v(G);
|
|
26113
|
-
}, T = b && (i == null ? void 0 : i.length) > 0, M = tT(l, i, o, d), [
|
|
26113
|
+
}, T = b && (i == null ? void 0 : i.length) > 0, M = tT(l, i, o, d), [R, O] = H("");
|
|
26114
26114
|
return /* @__PURE__ */ u(I, { gap: 3, children: [
|
|
26115
26115
|
/* @__PURE__ */ u(_, { justify: "space-between", children: [
|
|
26116
26116
|
/* @__PURE__ */ u(z, { className: p.label, size: "sm", children: [
|
|
@@ -26153,10 +26153,10 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
26153
26153
|
maxTagPlaceholder: () => h("filter.widget.common.x_selected", {
|
|
26154
26154
|
count: i.length
|
|
26155
26155
|
}),
|
|
26156
|
-
searchValue:
|
|
26156
|
+
searchValue: R,
|
|
26157
26157
|
onSearch: O,
|
|
26158
26158
|
dropdownRender: (G) => /* @__PURE__ */ u(F, { children: [
|
|
26159
|
-
M.allValueSet.size > 0 && !
|
|
26159
|
+
M.allValueSet.size > 0 && !R && /* @__PURE__ */ r(_, { px: "xs", pt: 8, pb: 8, onClick: M.toggleSelectAll, styles: nT, children: /* @__PURE__ */ r(J, { size: "xs", checked: M.allSelected, onChange: C.noop, label: h("common.actions.select_all") }) }),
|
|
26160
26160
|
/* @__PURE__ */ r(A, {}),
|
|
26161
26161
|
G
|
|
26162
26162
|
] })
|
|
@@ -26194,7 +26194,7 @@ const j5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
26194
26194
|
/* @__PURE__ */ r(J, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: t("filter.widget.select.required") }),
|
|
26195
26195
|
/* @__PURE__ */ r(yn, { filter: e })
|
|
26196
26196
|
] }),
|
|
26197
|
-
/* @__PURE__ */ r(
|
|
26197
|
+
/* @__PURE__ */ r(V, { label: t("filter.widget.common.min_width"), value: n.min_width, onChange: (a) => n.setMinWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
26198
26198
|
/* @__PURE__ */ r(A, { label: t("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
26199
26199
|
/* @__PURE__ */ r(sa, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
|
|
26200
26200
|
/* @__PURE__ */ r(J, { 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") }),
|
|
@@ -26752,7 +26752,7 @@ function pT(e, t) {
|
|
|
26752
26752
|
return [n.toDate(), a.toDate()];
|
|
26753
26753
|
}
|
|
26754
26754
|
function ir(e, t, n) {
|
|
26755
|
-
return !e || !t ? [e, t] : vt(
|
|
26755
|
+
return !e || !t ? [e, t] : vt(P(e), P(t), n);
|
|
26756
26756
|
}
|
|
26757
26757
|
function vt(e, t, n) {
|
|
26758
26758
|
if (!e || !t)
|
|
@@ -26788,7 +26788,7 @@ const Hd = (e) => [{
|
|
|
26788
26788
|
group: "last",
|
|
26789
26789
|
disabled: Rt(e, "m"),
|
|
26790
26790
|
getRange: (t) => {
|
|
26791
|
-
const n =
|
|
26791
|
+
const n = P();
|
|
26792
26792
|
return {
|
|
26793
26793
|
value: vt(n.subtract(1, "month").startOf("month"), n.subtract(1, "month").endOf("month"), t),
|
|
26794
26794
|
shortcut: "last month",
|
|
@@ -26801,7 +26801,7 @@ const Hd = (e) => [{
|
|
|
26801
26801
|
group: "last",
|
|
26802
26802
|
disabled: Rt(e, "m2"),
|
|
26803
26803
|
getRange: (t) => {
|
|
26804
|
-
const n =
|
|
26804
|
+
const n = P();
|
|
26805
26805
|
return {
|
|
26806
26806
|
value: vt(n.subtract(2, "month").startOf("month"), n.subtract(1, "month").endOf("month"), t),
|
|
26807
26807
|
shortcut: "last 2 months",
|
|
@@ -26814,7 +26814,7 @@ const Hd = (e) => [{
|
|
|
26814
26814
|
group: "last",
|
|
26815
26815
|
disabled: Rt(e, "m3"),
|
|
26816
26816
|
getRange: (t) => {
|
|
26817
|
-
const n =
|
|
26817
|
+
const n = P();
|
|
26818
26818
|
return {
|
|
26819
26819
|
value: vt(n.subtract(3, "month").startOf("month"), n.subtract(1, "month").endOf("month"), t),
|
|
26820
26820
|
shortcut: "last 3 months",
|
|
@@ -26827,7 +26827,7 @@ const Hd = (e) => [{
|
|
|
26827
26827
|
group: "last",
|
|
26828
26828
|
disabled: Rt(e, "m6"),
|
|
26829
26829
|
getRange: (t) => {
|
|
26830
|
-
const n =
|
|
26830
|
+
const n = P();
|
|
26831
26831
|
return {
|
|
26832
26832
|
value: vt(n.subtract(6, "month").startOf("month"), n.subtract(1, "month").endOf("month"), t),
|
|
26833
26833
|
shortcut: "last 6 months",
|
|
@@ -26840,7 +26840,7 @@ const Hd = (e) => [{
|
|
|
26840
26840
|
group: "last",
|
|
26841
26841
|
disabled: Rt(e, "y"),
|
|
26842
26842
|
getRange: (t) => {
|
|
26843
|
-
const n =
|
|
26843
|
+
const n = P();
|
|
26844
26844
|
return {
|
|
26845
26845
|
value: vt(n.subtract(1, "year").startOf("year"), n.subtract(1, "year").endOf("year"), t),
|
|
26846
26846
|
shortcut: "last year",
|
|
@@ -26853,7 +26853,7 @@ const Hd = (e) => [{
|
|
|
26853
26853
|
group: "recent",
|
|
26854
26854
|
disabled: Rt(e, "d30"),
|
|
26855
26855
|
getRange: (t) => {
|
|
26856
|
-
const n =
|
|
26856
|
+
const n = P();
|
|
26857
26857
|
return {
|
|
26858
26858
|
value: vt(n.subtract(30, "day").startOf("day"), n.subtract(1, "day").endOf("day"), t),
|
|
26859
26859
|
shortcut: "recent 30 days",
|
|
@@ -26866,7 +26866,7 @@ const Hd = (e) => [{
|
|
|
26866
26866
|
group: "recent",
|
|
26867
26867
|
disabled: Rt(e, "d60"),
|
|
26868
26868
|
getRange: (t) => {
|
|
26869
|
-
const n =
|
|
26869
|
+
const n = P();
|
|
26870
26870
|
return {
|
|
26871
26871
|
value: vt(n.subtract(60, "day").startOf("day"), n.subtract(1, "day").endOf("day"), t),
|
|
26872
26872
|
shortcut: "recent 60 days",
|
|
@@ -26879,7 +26879,7 @@ const Hd = (e) => [{
|
|
|
26879
26879
|
group: "recent",
|
|
26880
26880
|
disabled: Rt(e, "d90"),
|
|
26881
26881
|
getRange: (t) => {
|
|
26882
|
-
const n =
|
|
26882
|
+
const n = P();
|
|
26883
26883
|
return {
|
|
26884
26884
|
value: vt(n.subtract(90, "day").startOf("day"), n.subtract(1, "day").endOf("day"), t),
|
|
26885
26885
|
shortcut: "recent 90 days",
|
|
@@ -26892,7 +26892,7 @@ const Hd = (e) => [{
|
|
|
26892
26892
|
group: "recent",
|
|
26893
26893
|
disabled: Rt(e, "d180"),
|
|
26894
26894
|
getRange: (t) => {
|
|
26895
|
-
const n =
|
|
26895
|
+
const n = P();
|
|
26896
26896
|
return {
|
|
26897
26897
|
value: vt(n.subtract(180, "day").startOf("day"), n.subtract(1, "day").endOf("day"), t),
|
|
26898
26898
|
shortcut: "recent 180 days",
|
|
@@ -26905,7 +26905,7 @@ const Hd = (e) => [{
|
|
|
26905
26905
|
group: "recent",
|
|
26906
26906
|
disabled: Rt(e, "d365"),
|
|
26907
26907
|
getRange: (t) => {
|
|
26908
|
-
const n =
|
|
26908
|
+
const n = P();
|
|
26909
26909
|
return {
|
|
26910
26910
|
value: vt(n.subtract(365, "day").startOf("day"), n.subtract(1, "day").endOf("day"), t),
|
|
26911
26911
|
shortcut: "recent 365 days",
|
|
@@ -26928,12 +26928,12 @@ function gT(e) {
|
|
|
26928
26928
|
const n = pr(e.default_shortcut, e.default_step);
|
|
26929
26929
|
if (n)
|
|
26930
26930
|
return {
|
|
26931
|
-
value: n.value.map((a) =>
|
|
26931
|
+
value: n.value.map((a) => P(a).toDate()),
|
|
26932
26932
|
shortcut: e.default_shortcut,
|
|
26933
26933
|
step: e.default_step
|
|
26934
26934
|
};
|
|
26935
26935
|
}
|
|
26936
|
-
const t = e.default_value.map((n) => n === null ? n :
|
|
26936
|
+
const t = e.default_value.map((n) => n === null ? n : P.tz(n, "UTC").toDate() ?? n);
|
|
26937
26937
|
return {
|
|
26938
26938
|
value: ir(t[0], t[1], e.default_step),
|
|
26939
26939
|
shortcut: null,
|
|
@@ -26950,7 +26950,7 @@ function gT(e) {
|
|
|
26950
26950
|
function Wd(e, t) {
|
|
26951
26951
|
return e.map((n) => {
|
|
26952
26952
|
try {
|
|
26953
|
-
return n ?
|
|
26953
|
+
return n ? P.tz(n, "UTC").toISOString() : null;
|
|
26954
26954
|
} catch {
|
|
26955
26955
|
return console.log(`[date-range] failed parsing ${n}`), null;
|
|
26956
26956
|
}
|
|
@@ -26997,7 +26997,7 @@ const fT = m.model("FilterMericoDateRangeConfigMeta", {
|
|
|
26997
26997
|
},
|
|
26998
26998
|
get dateStringsValue() {
|
|
26999
26999
|
try {
|
|
27000
|
-
const t = this.filter.value, [n, a] = t.value, i = n ?
|
|
27000
|
+
const t = this.filter.value, [n, a] = t.value, i = n ? P(n).format(e.inputFormat) : "", o = a ? P(a).format(e.inputFormat) : "";
|
|
27001
27001
|
return [i, o];
|
|
27002
27002
|
} catch (t) {
|
|
27003
27003
|
return console.error(t), ["", ""];
|
|
@@ -27034,7 +27034,7 @@ const fT = m.model("FilterMericoDateRangeConfigMeta", {
|
|
|
27034
27034
|
}) {
|
|
27035
27035
|
return {
|
|
27036
27036
|
...t,
|
|
27037
|
-
default_value: e.map((n) => n === null ? null :
|
|
27037
|
+
default_value: e.map((n) => n === null ? null : P.tz(n, "UTC").toDate())
|
|
27038
27038
|
};
|
|
27039
27039
|
},
|
|
27040
27040
|
postProcessor(e) {
|
|
@@ -28360,7 +28360,7 @@ const RT = E5.views((e) => ({
|
|
|
28360
28360
|
}, a = e.config, i = a.filters.reduce((p, g) => {
|
|
28361
28361
|
const b = C.get(t, g.variable), v = C.get(n, g.variable), x = g.dimension;
|
|
28362
28362
|
if (v === Q.DateRange || v === Q.MericoDateRange) {
|
|
28363
|
-
const M = b.every((
|
|
28363
|
+
const M = b.every((R) => Number.isFinite(Number(R))) ? b.map((R) => Number(R)) : b;
|
|
28364
28364
|
p[x] = {
|
|
28365
28365
|
between: M
|
|
28366
28366
|
};
|
|
@@ -28392,7 +28392,7 @@ const RT = E5.views((e) => ({
|
|
|
28392
28392
|
};
|
|
28393
28393
|
if (l) {
|
|
28394
28394
|
const p = C.get(t, l);
|
|
28395
|
-
Array.isArray(p) && p.length === 2 && (h.start =
|
|
28395
|
+
Array.isArray(p) && p.length === 2 && (h.start = P(p[0]).tz(d).format(c), h.end = P(p[1]).tz(d).format(c));
|
|
28396
28396
|
}
|
|
28397
28397
|
return o.timeQuery = h, o;
|
|
28398
28398
|
},
|
|
@@ -28971,7 +28971,7 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
28971
28971
|
border: "0.0625rem solid rgb(233, 236, 239)",
|
|
28972
28972
|
boxShadow: "rgb(0 0 0 / 5%) 0px 0.0625rem 0.1875rem, rgb(0 0 0 / 5%) 0px 1.25rem 1.5625rem -0.3125rem, rgb(0 0 0 / 4%) 0px 0.625rem 0.625rem -0.3125rem"
|
|
28973
28973
|
}
|
|
28974
|
-
}, withArrow: !0, children: /* @__PURE__ */ r(
|
|
28974
|
+
}, withArrow: !0, children: /* @__PURE__ */ r($, { sx: {
|
|
28975
28975
|
height: "16px",
|
|
28976
28976
|
alignSelf: "center"
|
|
28977
28977
|
}, children: /* @__PURE__ */ r(Ae, { size: 16, color: "gray" }) }) }), NT = D(({
|
|
@@ -28984,10 +28984,10 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
28984
28984
|
},
|
|
28985
28985
|
value: o,
|
|
28986
28986
|
onChange: l
|
|
28987
|
-
}) => /* @__PURE__ */ u(
|
|
28987
|
+
}) => /* @__PURE__ */ u($, { children: [
|
|
28988
28988
|
/* @__PURE__ */ r(z, { size: "sm", children: " " }),
|
|
28989
28989
|
/* @__PURE__ */ r(J, { label: /* @__PURE__ */ u(_, { wrap: "nowrap", justify: "space-between", align: "middle", gap: 6, children: [
|
|
28990
|
-
/* @__PURE__ */ r(
|
|
28990
|
+
/* @__PURE__ */ r($, { sx: {
|
|
28991
28991
|
flexGrow: 1
|
|
28992
28992
|
}, children: e }),
|
|
28993
28993
|
/* @__PURE__ */ r(FT, { description: n, isDescriptionEmpty: a })
|
|
@@ -28999,7 +28999,7 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
28999
28999
|
] })), BT = ({
|
|
29000
29000
|
value: e,
|
|
29001
29001
|
onChange: t,
|
|
29002
|
-
|
|
29002
|
+
onClose: n,
|
|
29003
29003
|
max_days: a,
|
|
29004
29004
|
allowSingleDateInRange: i
|
|
29005
29005
|
}) => {
|
|
@@ -29008,7 +29008,7 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29008
29008
|
return l;
|
|
29009
29009
|
}, [l, s]), h = k(() => {
|
|
29010
29010
|
if (l && !s && a > 0)
|
|
29011
|
-
return
|
|
29011
|
+
return P(l).add(a - 1, "days").toDate();
|
|
29012
29012
|
}, [l, s, a]);
|
|
29013
29013
|
return /* @__PURE__ */ r(_s, { defaultDate: c, numberOfColumns: 2, type: "range", value: o, onChange: (g) => {
|
|
29014
29014
|
const [b, v] = g;
|
|
@@ -29023,7 +29023,7 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29023
29023
|
}) => {
|
|
29024
29024
|
const {
|
|
29025
29025
|
t: n
|
|
29026
|
-
} = y(), a = k(() => !t && !e ? Number.NaN :
|
|
29026
|
+
} = y(), a = k(() => !t && !e ? Number.NaN : P(t).diff(P(e), "days") + 1, [e, t]);
|
|
29027
29027
|
if (Number.isNaN(a))
|
|
29028
29028
|
return /* @__PURE__ */ r("span", { style: {
|
|
29029
29029
|
userSelect: "none",
|
|
@@ -29047,15 +29047,16 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29047
29047
|
/* @__PURE__ */ r(A, { variant: "dashed", my: 10 })
|
|
29048
29048
|
] }) : null;
|
|
29049
29049
|
}, HT = ({
|
|
29050
|
-
onChange: e
|
|
29050
|
+
onChange: e,
|
|
29051
|
+
onClose: t
|
|
29051
29052
|
}) => {
|
|
29052
29053
|
const {
|
|
29053
|
-
t,
|
|
29054
|
-
i18n:
|
|
29055
|
-
} = y(),
|
|
29056
|
-
const
|
|
29057
|
-
e(
|
|
29058
|
-
},
|
|
29054
|
+
t: n,
|
|
29055
|
+
i18n: a
|
|
29056
|
+
} = y(), i = (s) => () => {
|
|
29057
|
+
const c = s();
|
|
29058
|
+
e(c), t();
|
|
29059
|
+
}, o = k(() => Ld(), []), l = a.language === "zh";
|
|
29059
29060
|
return /* @__PURE__ */ u(F, { children: [
|
|
29060
29061
|
/* @__PURE__ */ r(A, { variant: "dashed", my: 10 }),
|
|
29061
29062
|
/* @__PURE__ */ r(w, { withTableBorder: !1, sx: {
|
|
@@ -29073,16 +29074,16 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29073
29074
|
td: {
|
|
29074
29075
|
paddingLeft: "1px"
|
|
29075
29076
|
}
|
|
29076
|
-
}, children: /* @__PURE__ */ r(w.Tbody, { children: Object.entries(
|
|
29077
|
+
}, children: /* @__PURE__ */ r(w.Tbody, { children: Object.entries(o).map(([s, c]) => /* @__PURE__ */ u(w.Tr, { children: [
|
|
29077
29078
|
/* @__PURE__ */ r(w.Th, { children: /* @__PURE__ */ r(z, { size: "xs", c: "#555", fw: 500, sx: {
|
|
29078
29079
|
textAlignLast: "justify"
|
|
29079
|
-
}, children:
|
|
29080
|
-
|
|
29081
|
-
key:
|
|
29082
|
-
value:
|
|
29083
|
-
getRange:
|
|
29084
|
-
}) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(L, { size: "compact-xs", variant: "subtle", onClick:
|
|
29085
|
-
] },
|
|
29080
|
+
}, children: n(`filter.widget.date_range.shortcut.${s}.label`) }) }),
|
|
29081
|
+
c.map(({
|
|
29082
|
+
key: d,
|
|
29083
|
+
value: h,
|
|
29084
|
+
getRange: p
|
|
29085
|
+
}) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(L, { size: "compact-xs", variant: "subtle", onClick: i(p), children: n(`filter.widget.date_range.shortcut.${s}.${l ? "full." : ""}${d}`) }) }, d))
|
|
29086
|
+
] }, s)) }) })
|
|
29086
29087
|
] });
|
|
29087
29088
|
}, rl = (e) => ({
|
|
29088
29089
|
label: {
|
|
@@ -29107,12 +29108,12 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29107
29108
|
} = y(), [d, {
|
|
29108
29109
|
open: h,
|
|
29109
29110
|
close: p
|
|
29110
|
-
}] = nn(!1), [g, b] = n.value, v = g ?
|
|
29111
|
+
}] = nn(!1), [g, b] = n.value, v = g ? P(g).format(l) : "", x = b ? P(b).format(l) : "";
|
|
29111
29112
|
return /* @__PURE__ */ u(Ye, { opened: d, onClose: p, position: "bottom-start", shadow: "md", children: [
|
|
29112
29113
|
/* @__PURE__ */ u(_, { justify: "flex-start", grow: !0, wrap: "nowrap", gap: 0, w: "288px", sx: {
|
|
29113
29114
|
marginTop: "3px"
|
|
29114
29115
|
}, children: [
|
|
29115
|
-
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(
|
|
29116
|
+
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(V, { label: e, labelProps: {
|
|
29116
29117
|
title: e
|
|
29117
29118
|
}, required: t, leftSection: /* @__PURE__ */ r(Kl, { size: 16 }), placeholder: c("filter.widget.date_range.start_date"), readOnly: !0, disabled: s, value: v, onFocus: h, styles: rl(d), sx: {
|
|
29118
29119
|
".mantine-TextInput-label": {
|
|
@@ -29137,7 +29138,7 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29137
29138
|
opacity: 0.6
|
|
29138
29139
|
}
|
|
29139
29140
|
} }) }),
|
|
29140
|
-
/* @__PURE__ */ r(
|
|
29141
|
+
/* @__PURE__ */ r(V, { label: /* @__PURE__ */ r(_, { justify: "flex-end", children: /* @__PURE__ */ r(jT, { begin: g, end: b }) }), leftSection: /* @__PURE__ */ r(Yl, { size: 16 }), placeholder: c("filter.widget.date_range.end_date"), readOnly: !0, disabled: !g || s, value: x, onFocus: h, styles: rl(d), sx: {
|
|
29141
29142
|
".mantine-Input-section": {
|
|
29142
29143
|
transform: "translateX(-18px)"
|
|
29143
29144
|
},
|
|
@@ -29158,8 +29159,8 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29158
29159
|
] }),
|
|
29159
29160
|
/* @__PURE__ */ u(Ye.Dropdown, { p: "sm", children: [
|
|
29160
29161
|
/* @__PURE__ */ r(QT, { max_days: i }),
|
|
29161
|
-
/* @__PURE__ */ r(BT, { value: n, onChange: a,
|
|
29162
|
-
/* @__PURE__ */ r(HT, { onChange: a })
|
|
29162
|
+
/* @__PURE__ */ r(BT, { value: n, onChange: a, onClose: p, allowSingleDateInRange: o, max_days: i }),
|
|
29163
|
+
/* @__PURE__ */ r(HT, { onChange: a, onClose: p })
|
|
29163
29164
|
] })
|
|
29164
29165
|
] });
|
|
29165
29166
|
}, yu = {
|
|
@@ -29398,7 +29399,7 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29398
29399
|
name: "MultiSelectWidget"
|
|
29399
29400
|
}), [g, b] = H(!1), v = (Z) => {
|
|
29400
29401
|
b(Z);
|
|
29401
|
-
}, x = g && (i == null ? void 0 : i.length) > 0, [T, M] = H(""),
|
|
29402
|
+
}, x = g && (i == null ? void 0 : i.length) > 0, [T, M] = H(""), R = k(() => {
|
|
29402
29403
|
if (!T)
|
|
29403
29404
|
return l;
|
|
29404
29405
|
const Z = T.toLowerCase(), Me = (Qe) => {
|
|
@@ -29430,7 +29431,7 @@ const qT = (e) => new OT(e), FT = ({
|
|
|
29430
29431
|
O.size > 0 && !T && /* @__PURE__ */ r(_, { px: "xs", py: "xs", onClick: oe, styles: KT, children: /* @__PURE__ */ r(J, { size: "xs", checked: W, onChange: C.noop, label: d("common.actions.select_all") }) }),
|
|
29431
29432
|
/* @__PURE__ */ r(A, {}),
|
|
29432
29433
|
Z
|
|
29433
|
-
] }), children:
|
|
29434
|
+
] }), children: R.map((Z) => /* @__PURE__ */ u(jm, { title: Z.label, children: [
|
|
29434
29435
|
/* @__PURE__ */ r(z, { size: "sm", "data-role": "label", children: Z.label }),
|
|
29435
29436
|
Z.description && /* @__PURE__ */ r(z, { size: "xs", c: "dimmed", "data-role": "description", children: Z.description })
|
|
29436
29437
|
] }, Z.value)) })
|
|
@@ -29517,7 +29518,7 @@ function eD({
|
|
|
29517
29518
|
value: n,
|
|
29518
29519
|
onChange: a
|
|
29519
29520
|
}) {
|
|
29520
|
-
return /* @__PURE__ */ r(
|
|
29521
|
+
return /* @__PURE__ */ r(V, { label: e, value: n || "", onChange: (i) => a(i.currentTarget.value), ...t, styles: {
|
|
29521
29522
|
input: {
|
|
29522
29523
|
borderColor: "#e9ecef"
|
|
29523
29524
|
}
|
|
@@ -29530,13 +29531,13 @@ const tD = ({
|
|
|
29530
29531
|
const n = e.value, [a, i] = n, o = k(() => a || /* @__PURE__ */ new Date(), [a]), l = k(() => {
|
|
29531
29532
|
if (a && !i)
|
|
29532
29533
|
return a;
|
|
29533
|
-
}, [a, i]), s = k(() =>
|
|
29534
|
+
}, [a, i]), s = k(() => P().add(365, "days").toDate(), []);
|
|
29534
29535
|
return /* @__PURE__ */ r(_s, { defaultDate: o, numberOfColumns: 2, type: "range", value: n, onChange: t, onNextMonth: console.log, minDate: l, maxDate: s, allowSingleDateInRange: !0 });
|
|
29535
29536
|
};
|
|
29536
29537
|
function to(e, t) {
|
|
29537
29538
|
if (!e)
|
|
29538
29539
|
return null;
|
|
29539
|
-
const n =
|
|
29540
|
+
const n = P(e);
|
|
29540
29541
|
switch (t) {
|
|
29541
29542
|
case "day":
|
|
29542
29543
|
case "week":
|
|
@@ -29552,7 +29553,7 @@ function to(e, t) {
|
|
|
29552
29553
|
function no(e, t) {
|
|
29553
29554
|
if (!e)
|
|
29554
29555
|
return null;
|
|
29555
|
-
const n =
|
|
29556
|
+
const n = P(e);
|
|
29556
29557
|
switch (t) {
|
|
29557
29558
|
case "day":
|
|
29558
29559
|
case "week":
|
|
@@ -29577,8 +29578,8 @@ function nD(e, t) {
|
|
|
29577
29578
|
function rD(e, t, n, a) {
|
|
29578
29579
|
if (!t)
|
|
29579
29580
|
return !1;
|
|
29580
|
-
const [i] = n, o = to(t, a), l = no(t, a), s =
|
|
29581
|
-
return i ?
|
|
29581
|
+
const [i] = n, o = to(t, a), l = no(t, a), s = P(e).isBefore(l);
|
|
29582
|
+
return i ? P(e).isAfter(i) && s : P(e).isAfter(o) && s;
|
|
29582
29583
|
}
|
|
29583
29584
|
function aD(e, t, n) {
|
|
29584
29585
|
if (!t)
|
|
@@ -29610,12 +29611,12 @@ const lD = (e, t, n) => {
|
|
|
29610
29611
|
const a = e.step, [i, o] = H(null), [l, s] = H(e.value), c = (b, v) => {
|
|
29611
29612
|
if (!b || !v)
|
|
29612
29613
|
return;
|
|
29613
|
-
const [x, T] = l, M = b.toDate(),
|
|
29614
|
+
const [x, T] = l, M = b.toDate(), R = v.toDate();
|
|
29614
29615
|
if (x === null) {
|
|
29615
29616
|
s([M, null]);
|
|
29616
29617
|
return;
|
|
29617
29618
|
}
|
|
29618
|
-
const G = M.getTime() < x.getTime() ? [M, T] : [x,
|
|
29619
|
+
const G = M.getTime() < x.getTime() ? [M, T] : [x, R];
|
|
29619
29620
|
s(G), t(G);
|
|
29620
29621
|
};
|
|
29621
29622
|
N(() => {
|
|
@@ -29623,11 +29624,11 @@ const lD = (e, t, n) => {
|
|
|
29623
29624
|
}, [e]), N(() => {
|
|
29624
29625
|
s([null, null]);
|
|
29625
29626
|
}, [n]);
|
|
29626
|
-
const d = k(() => n ? null : l[0] ?
|
|
29627
|
-
const v =
|
|
29627
|
+
const d = k(() => n ? null : l[0] ? P(l[0]) : null, [l, n]), h = k(() => n ? null : l[0] ? P(l[0]).add(365, "days") : null, [l, n]), p = ne((b) => {
|
|
29628
|
+
const v = P(b);
|
|
29628
29629
|
return oD(v, e.value);
|
|
29629
29630
|
}, [n, e.value]), g = ne((b) => {
|
|
29630
|
-
const v =
|
|
29631
|
+
const v = P(b), x = d && h && (v.isBefore(d) || v.isAfter(h)), T = !i && l[0] ? l[0] : i, M = nD(T, a);
|
|
29631
29632
|
if (!M)
|
|
29632
29633
|
return {
|
|
29633
29634
|
onMouseEnter: () => o(b),
|
|
@@ -29649,9 +29650,9 @@ const lD = (e, t, n) => {
|
|
|
29649
29650
|
disabled: !0
|
|
29650
29651
|
};
|
|
29651
29652
|
const {
|
|
29652
|
-
start:
|
|
29653
|
+
start: R,
|
|
29653
29654
|
end: O
|
|
29654
|
-
} = M, G = aD(v,
|
|
29655
|
+
} = M, G = aD(v, R, l), W = iD(v, O), oe = rD(b, T, l, a), Z = oe && G, Me = oe && W, Qe = v.isBefore(d) || v.isAfter(h);
|
|
29655
29656
|
return {
|
|
29656
29657
|
onMouseEnter: () => o(b),
|
|
29657
29658
|
onMouseLeave: () => o(null),
|
|
@@ -29659,7 +29660,7 @@ const lD = (e, t, n) => {
|
|
|
29659
29660
|
firstInRange: Z,
|
|
29660
29661
|
lastInRange: Me,
|
|
29661
29662
|
selected: G || W,
|
|
29662
|
-
onClick: () => c(
|
|
29663
|
+
onClick: () => c(R, O),
|
|
29663
29664
|
disabled: Qe
|
|
29664
29665
|
};
|
|
29665
29666
|
}, [i, t, a, n, d, h, l]);
|
|
@@ -29686,7 +29687,7 @@ const lD = (e, t, n) => {
|
|
|
29686
29687
|
const n = e.value, [a, i] = n, o = k(() => a || /* @__PURE__ */ new Date(), [a]), l = k(() => {
|
|
29687
29688
|
if (a && !i)
|
|
29688
29689
|
return a;
|
|
29689
|
-
}, [a, i]), s = k(() =>
|
|
29690
|
+
}, [a, i]), s = k(() => P().add(365, "days").toDate(), []);
|
|
29690
29691
|
return /* @__PURE__ */ r(vs, { defaultDate: o, numberOfColumns: 2, type: "range", value: n, onChange: t, minDate: l, maxDate: s, allowSingleDateInRange: !0 });
|
|
29691
29692
|
}, dD = "_calendar_header_xr0sl_1", uD = "_months_list_xr0sl_5", hD = "_months_list_row_xr0sl_12", pD = "_months_list_control_xr0sl_25", br = {
|
|
29692
29693
|
calendar_header: dD,
|
|
@@ -29700,7 +29701,7 @@ const lD = (e, t, n) => {
|
|
|
29700
29701
|
const n = e.value, [a, i] = n, o = k(() => a || /* @__PURE__ */ new Date(), [a]), l = k(() => {
|
|
29701
29702
|
if (a && !i)
|
|
29702
29703
|
return a;
|
|
29703
|
-
}, [a, i]), s = k(() =>
|
|
29704
|
+
}, [a, i]), s = k(() => P(a).add(365, "days").subtract(1, "second").toDate(), [a]), c = k(() => i ? P(i) : null, [i]), d = ne((h) => c && P(h).isSame(c, "quarter") ? {
|
|
29704
29705
|
lastInRange: !0,
|
|
29705
29706
|
selected: !0
|
|
29706
29707
|
} : {}, [c]);
|
|
@@ -29713,7 +29714,7 @@ const lD = (e, t, n) => {
|
|
|
29713
29714
|
}, gD = ({
|
|
29714
29715
|
value: e,
|
|
29715
29716
|
onChange: t,
|
|
29716
|
-
|
|
29717
|
+
onClose: n
|
|
29717
29718
|
}) => {
|
|
29718
29719
|
const a = (o) => {
|
|
29719
29720
|
const [l, s] = o, c = to(l, e.step), d = no(s, e.step);
|
|
@@ -29726,7 +29727,7 @@ const lD = (e, t, n) => {
|
|
|
29726
29727
|
}) => {
|
|
29727
29728
|
const {
|
|
29728
29729
|
t: n
|
|
29729
|
-
} = y(), a = k(() => !t && !e ? Number.NaN :
|
|
29730
|
+
} = y(), a = k(() => !t && !e ? Number.NaN : P(t).diff(P(e), "days") + 1, [e, t]);
|
|
29730
29731
|
if (Number.isNaN(a))
|
|
29731
29732
|
return /* @__PURE__ */ r("span", { style: {
|
|
29732
29733
|
userSelect: "none",
|
|
@@ -29737,7 +29738,7 @@ const lD = (e, t, n) => {
|
|
|
29737
29738
|
count: a
|
|
29738
29739
|
});
|
|
29739
29740
|
return /* @__PURE__ */ r(ae, { label: i, children: /* @__PURE__ */ r(Bt, { size: "sm", variant: "light", children: a }) });
|
|
29740
|
-
}, bD = "
|
|
29741
|
+
}, bD = "_begin_1cder_1", yD = "_end_1cder_27", _D = "_step_1cder_52", va = {
|
|
29741
29742
|
begin: bD,
|
|
29742
29743
|
end: yD,
|
|
29743
29744
|
step: _D
|
|
@@ -29771,15 +29772,16 @@ const lD = (e, t, n) => {
|
|
|
29771
29772
|
} });
|
|
29772
29773
|
}, vD = ({
|
|
29773
29774
|
onChange: e,
|
|
29774
|
-
step: t
|
|
29775
|
+
step: t,
|
|
29776
|
+
onClose: n
|
|
29775
29777
|
}) => {
|
|
29776
29778
|
const {
|
|
29777
|
-
t:
|
|
29778
|
-
i18n:
|
|
29779
|
-
} = y(),
|
|
29780
|
-
const
|
|
29781
|
-
e(
|
|
29782
|
-
},
|
|
29779
|
+
t: a,
|
|
29780
|
+
i18n: i
|
|
29781
|
+
} = y(), o = (c) => () => {
|
|
29782
|
+
const d = c(t);
|
|
29783
|
+
e(d), n();
|
|
29784
|
+
}, l = k(() => Gd(t), [t]), s = i.language === "zh";
|
|
29783
29785
|
return /* @__PURE__ */ u(F, { children: [
|
|
29784
29786
|
/* @__PURE__ */ r(A, { variant: "dashed", my: 10 }),
|
|
29785
29787
|
/* @__PURE__ */ r(w, { withTableBorder: !1, sx: {
|
|
@@ -29797,16 +29799,16 @@ const lD = (e, t, n) => {
|
|
|
29797
29799
|
td: {
|
|
29798
29800
|
paddingLeft: "1px"
|
|
29799
29801
|
}
|
|
29800
|
-
}, children: /* @__PURE__ */ r(w.Tbody, { children: Object.entries(
|
|
29802
|
+
}, children: /* @__PURE__ */ r(w.Tbody, { children: Object.entries(l).map(([c, d]) => /* @__PURE__ */ u(w.Tr, { children: [
|
|
29801
29803
|
/* @__PURE__ */ r(w.Th, { w: 80, children: /* @__PURE__ */ r(z, { size: "xs", c: "#555", fw: 500, sx: {
|
|
29802
29804
|
textAlignLast: "justify"
|
|
29803
|
-
}, children:
|
|
29804
|
-
|
|
29805
|
-
key:
|
|
29806
|
-
value:
|
|
29807
|
-
getRange:
|
|
29808
|
-
}) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(L, { size: "compact-xs", variant: "subtle", onClick:
|
|
29809
|
-
] },
|
|
29805
|
+
}, children: a(`filter.widget.date_range.shortcut.${c}.label`) }) }),
|
|
29806
|
+
d.map(({
|
|
29807
|
+
key: h,
|
|
29808
|
+
value: p,
|
|
29809
|
+
getRange: g
|
|
29810
|
+
}) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(L, { size: "compact-xs", variant: "subtle", onClick: o(g), children: a(`filter.widget.date_range.shortcut.${c}.${s ? "full." : ""}${h}`) }) }, h))
|
|
29811
|
+
] }, c)) }) })
|
|
29810
29812
|
] });
|
|
29811
29813
|
}, al = (e) => ({
|
|
29812
29814
|
label: {
|
|
@@ -29829,7 +29831,7 @@ const lD = (e, t, n) => {
|
|
|
29829
29831
|
} = y(), [s, {
|
|
29830
29832
|
open: c,
|
|
29831
29833
|
close: d
|
|
29832
|
-
}] = nn(!1), [h, p] = n.value, g = h ?
|
|
29834
|
+
}] = nn(!1), [h, p] = n.value, g = h ? P(h).format(i) : "", b = p ? P(p).format(i) : "", v = (T) => {
|
|
29833
29835
|
a({
|
|
29834
29836
|
value: ir(T[0], T[1], n.step),
|
|
29835
29837
|
shortcut: null,
|
|
@@ -29848,15 +29850,15 @@ const lD = (e, t, n) => {
|
|
|
29848
29850
|
/* @__PURE__ */ u(_, { justify: "flex-start", align: "text-anchor", wrap: "nowrap", gap: 0, sx: {
|
|
29849
29851
|
marginTop: "3px"
|
|
29850
29852
|
}, children: [
|
|
29851
|
-
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(
|
|
29853
|
+
/* @__PURE__ */ r(Ye.Target, { children: /* @__PURE__ */ r(V, { label: e, labelProps: {
|
|
29852
29854
|
title: e
|
|
29853
29855
|
}, required: t, leftSection: /* @__PURE__ */ r(Kl, { size: 16 }), placeholder: l("filter.widget.date_range.start_date"), readOnly: !0, disabled: o, value: g, onFocus: c, styles: al(s), className: va.begin }) }),
|
|
29854
|
-
/* @__PURE__ */ r(
|
|
29856
|
+
/* @__PURE__ */ r(V, { label: /* @__PURE__ */ r($, { children: " " }), leftSection: /* @__PURE__ */ r(Yl, { size: 16, onClick: c }), placeholder: l("filter.widget.date_range.end_date"), readOnly: !0, disabled: o, value: b, onFocus: c, styles: al(s), className: va.end }),
|
|
29855
29857
|
/* @__PURE__ */ r(vu, { className: va.step, value: n.step, onChange: x, label: /* @__PURE__ */ r(_, { justify: "flex-end", children: /* @__PURE__ */ r(fD, { begin: h, end: p }) }) })
|
|
29856
29858
|
] }),
|
|
29857
29859
|
/* @__PURE__ */ u(Ye.Dropdown, { p: "sm", children: [
|
|
29858
|
-
/* @__PURE__ */ r(gD, { value: n, onChange: v,
|
|
29859
|
-
/* @__PURE__ */ r(vD, { onChange: a, step: n.step })
|
|
29860
|
+
/* @__PURE__ */ r(gD, { value: n, onChange: v, onClose: d }),
|
|
29861
|
+
/* @__PURE__ */ r(vD, { onChange: a, step: n.step, onClose: d })
|
|
29860
29862
|
] })
|
|
29861
29863
|
] });
|
|
29862
29864
|
}, xu = {
|
|
@@ -29991,11 +29993,11 @@ function MD(e, t) {
|
|
|
29991
29993
|
return Array.isArray(t) ? t.forEach((a) => n.add(a)) : n.add(t), n.size === 0 ? ro : e.options.filter((a) => n.has(a.value)).map((a) => a.label).join(", ");
|
|
29992
29994
|
}
|
|
29993
29995
|
function LD(e, t) {
|
|
29994
|
-
const a = eo(t).value.filter((i) => !!i).map((i) =>
|
|
29996
|
+
const a = eo(t).value.filter((i) => !!i).map((i) => P(i).format(e.inputFormat));
|
|
29995
29997
|
return a.length === 0 ? ro : a.join(" - ");
|
|
29996
29998
|
}
|
|
29997
29999
|
function VD(e, t) {
|
|
29998
|
-
const a = eo(t).value.filter((i) => !!i).map((i) =>
|
|
30000
|
+
const a = eo(t).value.filter((i) => !!i).map((i) => P(i).format(e.inputFormat));
|
|
29999
30001
|
return a.length === 0 ? ro : a.join(" - ");
|
|
30000
30002
|
}
|
|
30001
30003
|
function $D(e) {
|
|
@@ -30028,8 +30030,8 @@ const RD = ({
|
|
|
30028
30030
|
N(() => {
|
|
30029
30031
|
s(i.filters.values);
|
|
30030
30032
|
}, [i.filters.values, s]), DD(c);
|
|
30031
|
-
const d = i.filters.visibleInView(t.id), h = k(() => d.every((x) => x.should_auto_submit), [d]), p = k(() => d.filter((x) => C.get(x, "config.required", !1)), [d]), g = k(() => p.length === 0 ? !1 : p.some((x) => !x.requiredAndPass(c[x.key])), [c, p]), b = (x, T) => (M,
|
|
30032
|
-
T(M), (x.should_auto_submit ||
|
|
30033
|
+
const d = i.filters.visibleInView(t.id), h = k(() => d.every((x) => x.should_auto_submit), [d]), p = k(() => d.filter((x) => C.get(x, "config.required", !1)), [d]), g = k(() => p.length === 0 ? !1 : p.some((x) => !x.requiredAndPass(c[x.key])), [c, p]), b = (x, T) => (M, R) => {
|
|
30034
|
+
T(M), (x.should_auto_submit || R) && i.filters.setValueByKey(x.key, M);
|
|
30033
30035
|
}, v = ne((x) => {
|
|
30034
30036
|
const T = C.get(x, "force", !1);
|
|
30035
30037
|
l(i.filters.setValues)(), T && i.queries.forceReloadVisibleQueries();
|
|
@@ -30385,7 +30387,7 @@ const UD = D(function({
|
|
|
30385
30387
|
w: a,
|
|
30386
30388
|
h: i
|
|
30387
30389
|
}), l = a > 0 && i > 0;
|
|
30388
|
-
return /* @__PURE__ */ r("div", { className: "viz-root", ref: n, children: /* @__PURE__ */ r(
|
|
30390
|
+
return /* @__PURE__ */ r("div", { className: "viz-root", ref: n, children: /* @__PURE__ */ r($, { sx: {
|
|
30389
30391
|
width: a,
|
|
30390
30392
|
height: i,
|
|
30391
30393
|
overflow: "hidden"
|
|
@@ -30451,9 +30453,7 @@ function e6(e) {
|
|
|
30451
30453
|
const [t, n] = H(null);
|
|
30452
30454
|
return N(() => {
|
|
30453
30455
|
n(null);
|
|
30454
|
-
}, [e]),
|
|
30455
|
-
console.log(t);
|
|
30456
|
-
}, [t]), {
|
|
30456
|
+
}, [e]), {
|
|
30457
30457
|
echartsOptions: t,
|
|
30458
30458
|
setEchartsOptions: n
|
|
30459
30459
|
};
|
|
@@ -30485,12 +30485,12 @@ const t6 = {
|
|
|
30485
30485
|
downloadPanelScreenshot: i,
|
|
30486
30486
|
echartsOptions: c,
|
|
30487
30487
|
setEchartsOptions: d
|
|
30488
|
-
}, children: /* @__PURE__ */ r(
|
|
30488
|
+
}, children: /* @__PURE__ */ r($, { id: e.id, className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, ref: a, p: 0, sx: {
|
|
30489
30489
|
...t6,
|
|
30490
30490
|
...t
|
|
30491
30491
|
}, children: /* @__PURE__ */ u(s, { children: [
|
|
30492
30492
|
l && /* @__PURE__ */ u(F, { children: [
|
|
30493
|
-
/* @__PURE__ */ r(
|
|
30493
|
+
/* @__PURE__ */ r($, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r(ku, {}) }),
|
|
30494
30494
|
p && /* @__PURE__ */ r(JD, { children: n }),
|
|
30495
30495
|
/* @__PURE__ */ r(OD, {})
|
|
30496
30496
|
] }),
|
|
@@ -30800,7 +30800,7 @@ function IV(e) {
|
|
|
30800
30800
|
}
|
|
30801
30801
|
const S6 = E.forwardRef(({
|
|
30802
30802
|
title: e
|
|
30803
|
-
}, t) => /* @__PURE__ */ r(
|
|
30803
|
+
}, t) => /* @__PURE__ */ r($, { ref: t, className: "react-grid-customDragHandle", title: e, children: /* @__PURE__ */ r(ee, { variant: "transparent", color: "gray", children: /* @__PURE__ */ r(lp, { size: 16 }) }) })), C6 = E.forwardRef(({
|
|
30804
30804
|
handleAxis: e,
|
|
30805
30805
|
...t
|
|
30806
30806
|
}, n) => /* @__PURE__ */ r(ee, { ref: n, className: "react-grid-customResizeHandle", sx: {
|
|
@@ -30900,7 +30900,7 @@ const I6 = D(({
|
|
|
30900
30900
|
downloadScreenshot: i
|
|
30901
30901
|
} = so(t);
|
|
30902
30902
|
return /* @__PURE__ */ u(F, { children: [
|
|
30903
|
-
/* @__PURE__ */ r(
|
|
30903
|
+
/* @__PURE__ */ r($, { ref: a, pt: 10, pb: 10, sx: n, children: e }),
|
|
30904
30904
|
/* @__PURE__ */ r(I6, { downloadScreenshot: i })
|
|
30905
30905
|
] });
|
|
30906
30906
|
}), Eu = D(({
|
|
@@ -30914,7 +30914,7 @@ const I6 = D(({
|
|
|
30914
30914
|
downloadScreenshot: s
|
|
30915
30915
|
} = so(t);
|
|
30916
30916
|
return /* @__PURE__ */ r(Se, { size: a.width, centered: !0, opened: i, onClose: o, withCloseButton: !1, title: /* @__PURE__ */ u(_, { justify: "space-between", px: "1rem", h: "48px", children: [
|
|
30917
|
-
/* @__PURE__ */ r(
|
|
30917
|
+
/* @__PURE__ */ r($, { children: a.custom_modal_title.value }),
|
|
30918
30918
|
/* @__PURE__ */ r(Eu, { downloadScreenshot: s })
|
|
30919
30919
|
] }), trapFocus: !0, onDragStart: (c) => {
|
|
30920
30920
|
c.stopPropagation();
|
|
@@ -30950,7 +30950,7 @@ const I6 = D(({
|
|
|
30950
30950
|
}
|
|
30951
30951
|
}, transitionProps: {
|
|
30952
30952
|
duration: 0
|
|
30953
|
-
}, children: /* @__PURE__ */ r(
|
|
30953
|
+
}, children: /* @__PURE__ */ r($, { ref: l, children: e }) });
|
|
30954
30954
|
}), L6 = (e) => e.color ? {
|
|
30955
30955
|
"&[data-active], &[data-active]:hover": {
|
|
30956
30956
|
borderColor: e.color ? e.color : "..."
|
|
@@ -30996,9 +30996,9 @@ const I6 = D(({
|
|
|
30996
30996
|
const a = ie().layouts, [i, o] = Fh();
|
|
30997
30997
|
return N(() => {
|
|
30998
30998
|
a.setCurrentLayoutWrapperWidth(o.width);
|
|
30999
|
-
}, [o.width]), /* @__PURE__ */ r(
|
|
30999
|
+
}, [o.width]), /* @__PURE__ */ r($, { sx: {
|
|
31000
31000
|
height: "100%"
|
|
31001
|
-
}, ref: i, children: /* @__PURE__ */ r(
|
|
31001
|
+
}, ref: i, children: /* @__PURE__ */ r($, { sx: {
|
|
31002
31002
|
paddingBottom: "100px",
|
|
31003
31003
|
background: "white",
|
|
31004
31004
|
margin: "0 auto",
|
|
@@ -31033,13 +31033,13 @@ const P6 = D(({
|
|
|
31033
31033
|
ref: o,
|
|
31034
31034
|
downloadScreenshot: l
|
|
31035
31035
|
} = so(t);
|
|
31036
|
-
return /* @__PURE__ */ r(
|
|
31036
|
+
return /* @__PURE__ */ r($, { sx: {
|
|
31037
31037
|
height: "100%",
|
|
31038
31038
|
"> div:not(.mantine-Modal-root)": {
|
|
31039
31039
|
height: "100%"
|
|
31040
31040
|
}
|
|
31041
31041
|
}, children: /* @__PURE__ */ r(Se, { size: n.width, opened: !0, onClose: C.noop, withCloseButton: !1, title: /* @__PURE__ */ u(_, { justify: "space-between", px: "1rem", h: "48px", children: [
|
|
31042
|
-
/* @__PURE__ */ r(
|
|
31042
|
+
/* @__PURE__ */ r($, { children: n.custom_modal_title.value }),
|
|
31043
31043
|
/* @__PURE__ */ r(Eu, { downloadScreenshot: l })
|
|
31044
31044
|
] }), trapFocus: !0, onDragStart: (s) => {
|
|
31045
31045
|
s.stopPropagation();
|
|
@@ -31080,7 +31080,7 @@ const P6 = D(({
|
|
|
31080
31080
|
}
|
|
31081
31081
|
}, withinPortal: !1, transitionProps: {
|
|
31082
31082
|
duration: 0
|
|
31083
|
-
}, children: /* @__PURE__ */ r(
|
|
31083
|
+
}, children: /* @__PURE__ */ r($, { ref: o, children: e }) }) });
|
|
31084
31084
|
}), A6 = ({
|
|
31085
31085
|
variant: e,
|
|
31086
31086
|
orientation: t
|
|
@@ -31139,7 +31139,7 @@ const P6 = D(({
|
|
|
31139
31139
|
return /* @__PURE__ */ u(S.Panel, { value: d.id, sx: {
|
|
31140
31140
|
position: "relative"
|
|
31141
31141
|
}, children: [
|
|
31142
|
-
/* @__PURE__ */ u(
|
|
31142
|
+
/* @__PURE__ */ u($, { sx: {
|
|
31143
31143
|
position: "absolute",
|
|
31144
31144
|
top: 0,
|
|
31145
31145
|
left: 0,
|
|
@@ -31153,7 +31153,7 @@ const P6 = D(({
|
|
|
31153
31153
|
position: "relative",
|
|
31154
31154
|
zIndex: 200
|
|
31155
31155
|
}, children: [
|
|
31156
|
-
/* @__PURE__ */ r(
|
|
31156
|
+
/* @__PURE__ */ r(V, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (g) => d.setName(g.currentTarget.value) }),
|
|
31157
31157
|
/* @__PURE__ */ r(q, { label: t("view.label"), value: d.view_id, onChange: d.setViewID, data: i }),
|
|
31158
31158
|
/* @__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 }),
|
|
31159
31159
|
/* @__PURE__ */ r(un, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: o.variant !== "default" }),
|
|
@@ -31190,12 +31190,12 @@ const P6 = D(({
|
|
|
31190
31190
|
return /* @__PURE__ */ r(lo.Provider, { value: {
|
|
31191
31191
|
viewPanelInFullScreen: C.noop,
|
|
31192
31192
|
inFullScreen: !1
|
|
31193
|
-
}, children: /* @__PURE__ */ r(
|
|
31193
|
+
}, children: /* @__PURE__ */ r($, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
|
|
31194
31194
|
background: a ? "transparent" : "#efefef"
|
|
31195
|
-
}, children: /* @__PURE__ */ r(q6, { view: t, children: /* @__PURE__ */ u(
|
|
31195
|
+
}, children: /* @__PURE__ */ r(q6, { view: t, children: /* @__PURE__ */ u($, { sx: {
|
|
31196
31196
|
position: "relative"
|
|
31197
31197
|
}, children: [
|
|
31198
|
-
/* @__PURE__ */ r(
|
|
31198
|
+
/* @__PURE__ */ r($, { className: "dashboard-sticky-area", sx: {
|
|
31199
31199
|
position: "sticky",
|
|
31200
31200
|
top: "0px"
|
|
31201
31201
|
}, children: /* @__PURE__ */ r(wu, { view: t }) }),
|
|
@@ -31216,14 +31216,14 @@ const P6 = D(({
|
|
|
31216
31216
|
return /* @__PURE__ */ r(lo.Provider, { value: {
|
|
31217
31217
|
viewPanelInFullScreen: i,
|
|
31218
31218
|
inFullScreen: l
|
|
31219
|
-
}, children: /* @__PURE__ */ u(
|
|
31219
|
+
}, children: /* @__PURE__ */ u($, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
|
|
31220
31220
|
height: t.type === U.Modal ? "0 !important" : "100%"
|
|
31221
31221
|
}, children: [
|
|
31222
31222
|
l && /* @__PURE__ */ r(x6, { view: t, panel: s, exitFullScreen: o }),
|
|
31223
|
-
/* @__PURE__ */ r($6, { view: t, children: /* @__PURE__ */ u(
|
|
31223
|
+
/* @__PURE__ */ r($6, { view: t, children: /* @__PURE__ */ u($, { sx: {
|
|
31224
31224
|
position: "relative"
|
|
31225
31225
|
}, children: [
|
|
31226
|
-
!l && /* @__PURE__ */ r(
|
|
31226
|
+
!l && /* @__PURE__ */ r($, { className: "dashboard-sticky-area", sx: {
|
|
31227
31227
|
position: "sticky",
|
|
31228
31228
|
top: "0px"
|
|
31229
31229
|
}, children: /* @__PURE__ */ r(wu, { view: t }) }),
|
|
@@ -33498,12 +33498,12 @@ const I4 = D(({
|
|
|
33498
33498
|
}) => {
|
|
33499
33499
|
const Me = Z.filter((Qe) => Number.isFinite(Qe.breakpoint));
|
|
33500
33500
|
a.updateLayoutSetsInfo(Me), e();
|
|
33501
|
-
},
|
|
33501
|
+
}, R = c(), O = k(() => {
|
|
33502
33502
|
const Z = {
|
|
33503
|
-
list:
|
|
33503
|
+
list: R.list.filter((Me) => !!Me.name && Number.isFinite(Me.breakpoint))
|
|
33504
33504
|
};
|
|
33505
33505
|
return !Oe(Z, i);
|
|
33506
|
-
}, [
|
|
33506
|
+
}, [R, i]), G = (oe = (W = h.errors.list) == null ? void 0 : W.root) == null ? void 0 : oe.message;
|
|
33507
33507
|
return /* @__PURE__ */ r(F, { children: /* @__PURE__ */ u("form", { onSubmit: l(M), children: [
|
|
33508
33508
|
/* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, withTableBorder: !0, sx: {
|
|
33509
33509
|
tableLayout: "fixed"
|
|
@@ -33521,7 +33521,7 @@ const I4 = D(({
|
|
|
33521
33521
|
x.map((Z, Me) => /* @__PURE__ */ u(w.Tr, { children: [
|
|
33522
33522
|
/* @__PURE__ */ r(w.Th, { children: Z.id === "basis" ? Z.name : /* @__PURE__ */ r(f, { name: `list.${Me}.name`, control: o, render: ({
|
|
33523
33523
|
field: Qe
|
|
33524
|
-
}) => /* @__PURE__ */ r(
|
|
33524
|
+
}) => /* @__PURE__ */ r(V, { size: "xs", label: "", required: !0, sx: {
|
|
33525
33525
|
flex: 1
|
|
33526
33526
|
}, ...Qe }) }) }),
|
|
33527
33527
|
/* @__PURE__ */ r(w.Td, { children: Z.id === "basis" ? /* @__PURE__ */ u(z, { size: "sm", ff: "monospace", children: [
|
|
@@ -33633,7 +33633,7 @@ const I4 = D(({
|
|
|
33633
33633
|
const {
|
|
33634
33634
|
t
|
|
33635
33635
|
} = y(), n = e.views;
|
|
33636
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
33636
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
|
|
33637
33637
|
/* @__PURE__ */ r(z, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("view.labels") }),
|
|
33638
33638
|
/* @__PURE__ */ r(ca, { headers: /* @__PURE__ */ u(w.Tr, { children: [
|
|
33639
33639
|
/* @__PURE__ */ r(w.Th, { style: {
|
|
@@ -33653,7 +33653,7 @@ const I4 = D(({
|
|
|
33653
33653
|
const {
|
|
33654
33654
|
t
|
|
33655
33655
|
} = y(), n = e.filters;
|
|
33656
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
33656
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
|
|
33657
33657
|
/* @__PURE__ */ r(z, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("filter.labels") }),
|
|
33658
33658
|
/* @__PURE__ */ r(ca, { headers: /* @__PURE__ */ u(w.Tr, { children: [
|
|
33659
33659
|
/* @__PURE__ */ r(w.Th, { style: {
|
|
@@ -33673,7 +33673,7 @@ const I4 = D(({
|
|
|
33673
33673
|
const {
|
|
33674
33674
|
t
|
|
33675
33675
|
} = y(), n = e.panels;
|
|
33676
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
33676
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
|
|
33677
33677
|
/* @__PURE__ */ r(z, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("panel.labels") }),
|
|
33678
33678
|
/* @__PURE__ */ r(ca, { headers: /* @__PURE__ */ u(w.Tr, { children: [
|
|
33679
33679
|
/* @__PURE__ */ r(w.Th, { style: {
|
|
@@ -33694,7 +33694,7 @@ const I4 = D(({
|
|
|
33694
33694
|
const {
|
|
33695
33695
|
t
|
|
33696
33696
|
} = y(), n = (a = e.definition) == null ? void 0 : a.queries;
|
|
33697
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
33697
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
|
|
33698
33698
|
/* @__PURE__ */ r(z, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("query.labels") }),
|
|
33699
33699
|
/* @__PURE__ */ r(ca, { headers: /* @__PURE__ */ u(w.Tr, { children: [
|
|
33700
33700
|
/* @__PURE__ */ r(w.Th, { style: {
|
|
@@ -33721,7 +33721,7 @@ const I4 = D(({
|
|
|
33721
33721
|
const {
|
|
33722
33722
|
t
|
|
33723
33723
|
} = y(), n = (a = e.definition) == null ? void 0 : a.sqlSnippets;
|
|
33724
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
33724
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
|
|
33725
33725
|
/* @__PURE__ */ r(z, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("sql_snippet.labels") }),
|
|
33726
33726
|
/* @__PURE__ */ r(Ke, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r(jr, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r(Ke.Item, { children: i.key }, i.key)) })
|
|
33727
33727
|
] });
|
|
@@ -33732,13 +33732,13 @@ const I4 = D(({
|
|
|
33732
33732
|
const {
|
|
33733
33733
|
t
|
|
33734
33734
|
} = y(), n = Object.keys(((a = e.definition) == null ? void 0 : a.mock_context) ?? {});
|
|
33735
|
-
return n.length === 0 ? null : /* @__PURE__ */ u(
|
|
33735
|
+
return n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
|
|
33736
33736
|
/* @__PURE__ */ r(z, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("mock_context.label") }),
|
|
33737
33737
|
/* @__PURE__ */ r(Ke, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r(jr, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r(Ke.Item, { children: i }, i)) })
|
|
33738
33738
|
] });
|
|
33739
33739
|
}, N4 = ({
|
|
33740
33740
|
content: e
|
|
33741
|
-
}) => e ? /* @__PURE__ */ u(
|
|
33741
|
+
}) => e ? /* @__PURE__ */ u($, { children: [
|
|
33742
33742
|
/* @__PURE__ */ r(A, { mt: 20, mb: 10, variant: "dashed" }),
|
|
33743
33743
|
/* @__PURE__ */ r(z, { ta: "left", c: "dimmed", size: "sm", children: "Preview" }),
|
|
33744
33744
|
/* @__PURE__ */ u(I, { children: [
|
|
@@ -33765,7 +33765,7 @@ const j4 = D(({
|
|
|
33765
33765
|
stretchModal: t,
|
|
33766
33766
|
shrinkModal: n
|
|
33767
33767
|
}) => {
|
|
33768
|
-
var M,
|
|
33768
|
+
var M, R;
|
|
33769
33769
|
const {
|
|
33770
33770
|
t: a
|
|
33771
33771
|
} = y(), i = ie(), {
|
|
@@ -33824,10 +33824,10 @@ const j4 = D(({
|
|
|
33824
33824
|
const [v] = c(["content"]), x = !v, T = (M = l == null ? void 0 : l.content) == null ? void 0 : M.message;
|
|
33825
33825
|
return N(() => {
|
|
33826
33826
|
!v || T ? n() : t();
|
|
33827
|
-
}, [v, T]), /* @__PURE__ */ r(
|
|
33827
|
+
}, [v, T]), /* @__PURE__ */ r($, { mx: "auto", sx: {
|
|
33828
33828
|
position: "relative"
|
|
33829
33829
|
}, children: /* @__PURE__ */ u("form", { onSubmit: o(p), children: [
|
|
33830
|
-
/* @__PURE__ */ r(Vh, { label: a("import.json_file"), required: !0, value: g, onChange: b, error: (
|
|
33830
|
+
/* @__PURE__ */ r(Vh, { label: a("import.json_file"), required: !0, value: g, onChange: b, error: (R = l == null ? void 0 : l.content) == null ? void 0 : R.message, sx: {
|
|
33831
33831
|
maxWidth: 500
|
|
33832
33832
|
} }),
|
|
33833
33833
|
T ? /* @__PURE__ */ r(w, { fz: 12, mt: 10, children: /* @__PURE__ */ u(w.Tbody, { children: [
|
|
@@ -33914,7 +33914,7 @@ const j4 = D(({
|
|
|
33914
33914
|
const {
|
|
33915
33915
|
t: n
|
|
33916
33916
|
} = y();
|
|
33917
|
-
return /* @__PURE__ */ r(
|
|
33917
|
+
return /* @__PURE__ */ r($, { className: "spotlight-custom-action-component", children: /* @__PURE__ */ u(_, { wrap: "nowrap", children: [
|
|
33918
33918
|
/* @__PURE__ */ r(H4, { iconKey: e.iconKey, size: 14 }),
|
|
33919
33919
|
/* @__PURE__ */ u("div", { style: {
|
|
33920
33920
|
flex: 1
|
|
@@ -34031,7 +34031,7 @@ const j4 = D(({
|
|
|
34031
34031
|
zIndex: 299,
|
|
34032
34032
|
borderBottom: "1px solid #e9ecef",
|
|
34033
34033
|
background: "rgba(233,236,239, 0.15)"
|
|
34034
|
-
}, Z4 = D(() => /* @__PURE__ */ r(
|
|
34034
|
+
}, Z4 = D(() => /* @__PURE__ */ r($, { sx: X4, pl: {
|
|
34035
34035
|
base: 200,
|
|
34036
34036
|
xs: 200,
|
|
34037
34037
|
sm: 200,
|
|
@@ -34369,7 +34369,7 @@ const _I = wh(({
|
|
|
34369
34369
|
const o = k(() => yI(e.interactions), [e.interactions]);
|
|
34370
34370
|
return /* @__PURE__ */ u(F, { children: [
|
|
34371
34371
|
/* @__PURE__ */ r(wo, { type: "target", position: a, isConnectable: t }),
|
|
34372
|
-
/* @__PURE__ */ r(
|
|
34372
|
+
/* @__PURE__ */ r($, { sx: {
|
|
34373
34373
|
position: "absolute",
|
|
34374
34374
|
top: 0,
|
|
34375
34375
|
right: 0
|
|
@@ -34451,7 +34451,7 @@ function CI({
|
|
|
34451
34451
|
active: n,
|
|
34452
34452
|
openSettings: a
|
|
34453
34453
|
}) {
|
|
34454
|
-
return /* @__PURE__ */ u(
|
|
34454
|
+
return /* @__PURE__ */ u($, { sx: {
|
|
34455
34455
|
position: "relative"
|
|
34456
34456
|
}, children: [
|
|
34457
34457
|
/* @__PURE__ */ r(ja, { sx: (i) => ({
|
|
@@ -34485,7 +34485,7 @@ const kI = D(() => {
|
|
|
34485
34485
|
} = y(), t = le(), n = ie(), a = ne((o) => () => n.views.setIDOfVIE(o), [n]), i = (o) => {
|
|
34486
34486
|
t.editor.open(["_VIEWS_", o]);
|
|
34487
34487
|
};
|
|
34488
|
-
return /* @__PURE__ */ u(
|
|
34488
|
+
return /* @__PURE__ */ u($, { sx: {
|
|
34489
34489
|
position: "relative"
|
|
34490
34490
|
}, children: [
|
|
34491
34491
|
n.views.options.map((o) => /* @__PURE__ */ r(CI, { active: n.views.idOfVIE === o.value, name: o.label, onClick: a(o.value), openSettings: () => i(o.value) }, o.value)),
|
|
@@ -34652,7 +34652,7 @@ const kI = D(() => {
|
|
|
34652
34652
|
/* @__PURE__ */ r(J, { checked: a.required, onChange: (s) => a.setRequired(s.currentTarget.checked), label: n("filter.widget.select.required") }),
|
|
34653
34653
|
/* @__PURE__ */ r(yn, { filter: t })
|
|
34654
34654
|
] }),
|
|
34655
|
-
/* @__PURE__ */ r(
|
|
34655
|
+
/* @__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" }),
|
|
34656
34656
|
/* @__PURE__ */ r(A, { label: n("filter.widget.select.configure_options"), labelPosition: "center" }),
|
|
34657
34657
|
/* @__PURE__ */ u(I, { gap: 10, sx: {
|
|
34658
34658
|
position: "relative",
|
|
@@ -34678,12 +34678,12 @@ const kI = D(() => {
|
|
|
34678
34678
|
o.map((s, c) => /* @__PURE__ */ u(rt, { gap: 10, sx: {
|
|
34679
34679
|
position: "relative"
|
|
34680
34680
|
}, pr: "40px", children: [
|
|
34681
|
-
/* @__PURE__ */ r(
|
|
34681
|
+
/* @__PURE__ */ r(V, { label: n("common.label"), required: !0, value: a.static_options[c].label, onChange: (d) => {
|
|
34682
34682
|
a.static_options[c].setLabel(d.currentTarget.value);
|
|
34683
34683
|
}, sx: {
|
|
34684
34684
|
flexGrow: 1
|
|
34685
34685
|
} }),
|
|
34686
|
-
/* @__PURE__ */ r(
|
|
34686
|
+
/* @__PURE__ */ r(V, { label: n("common.value"), required: !0, value: a.static_options[c].value, onChange: (d) => {
|
|
34687
34687
|
a.static_options[c].setValue(d.currentTarget.value);
|
|
34688
34688
|
}, sx: {
|
|
34689
34689
|
flexGrow: 1
|
|
@@ -34784,12 +34784,12 @@ const kI = D(() => {
|
|
|
34784
34784
|
a.map((o, l) => /* @__PURE__ */ u(rt, { gap: 10, sx: {
|
|
34785
34785
|
position: "relative"
|
|
34786
34786
|
}, pr: "40px", children: [
|
|
34787
|
-
/* @__PURE__ */ r(
|
|
34787
|
+
/* @__PURE__ */ r(V, { label: t("common.label"), required: !0, value: e.static_options[l].label, onChange: (s) => {
|
|
34788
34788
|
e.static_options[l].setLabel(s.currentTarget.value);
|
|
34789
34789
|
}, sx: {
|
|
34790
34790
|
flexGrow: 1
|
|
34791
34791
|
} }),
|
|
34792
|
-
/* @__PURE__ */ r(
|
|
34792
|
+
/* @__PURE__ */ r(V, { label: t("common.value"), required: !0, value: e.static_options[l].value, onChange: (s) => {
|
|
34793
34793
|
e.static_options[l].setValue(s.currentTarget.value);
|
|
34794
34794
|
}, sx: {
|
|
34795
34795
|
flexGrow: 1
|
|
@@ -34814,7 +34814,7 @@ const kI = D(() => {
|
|
|
34814
34814
|
/* @__PURE__ */ r(J, { checked: n.clearable, onChange: (a) => n.setClearable(a.currentTarget.checked), label: t("filter.widget.select.clearable") }),
|
|
34815
34815
|
/* @__PURE__ */ r(yn, { filter: e })
|
|
34816
34816
|
] }),
|
|
34817
|
-
/* @__PURE__ */ r(
|
|
34817
|
+
/* @__PURE__ */ r(V, { label: t("filter.widget.select.width"), value: n.width, onChange: (a) => n.setWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
34818
34818
|
/* @__PURE__ */ r(A, { label: t("filter.widget.select.configure_options"), labelPosition: "center" }),
|
|
34819
34819
|
/* @__PURE__ */ u(I, { gap: 10, sx: {
|
|
34820
34820
|
position: "relative",
|
|
@@ -34851,12 +34851,12 @@ const kI = D(() => {
|
|
|
34851
34851
|
} = y(), a = t.config;
|
|
34852
34852
|
return /* @__PURE__ */ u(F, { children: [
|
|
34853
34853
|
/* @__PURE__ */ u(_, { children: [
|
|
34854
|
-
/* @__PURE__ */ r(
|
|
34854
|
+
/* @__PURE__ */ r(V, { label: n("filter.widget.text_input.default_value"), value: a.default_value, onChange: (i) => {
|
|
34855
34855
|
a.setDefaultValue(i.currentTarget.value);
|
|
34856
34856
|
}, sx: {
|
|
34857
34857
|
flexGrow: 1
|
|
34858
34858
|
} }),
|
|
34859
|
-
/* @__PURE__ */ r(
|
|
34859
|
+
/* @__PURE__ */ r($, { mt: 22, children: /* @__PURE__ */ r(yn, { filter: t }) })
|
|
34860
34860
|
] }),
|
|
34861
34861
|
/* @__PURE__ */ r(J, { checked: a.required, onChange: (i) => a.setRequired(i.currentTarget.checked), label: n("filter.widget.text_input.required") })
|
|
34862
34862
|
] });
|
|
@@ -34906,7 +34906,7 @@ const kI = D(() => {
|
|
|
34906
34906
|
/* @__PURE__ */ r(S.Tab, { value: "config", children: t("common.titles.config") }),
|
|
34907
34907
|
/* @__PURE__ */ r(S.Tab, { value: "usage", children: t("filter.usage.label") })
|
|
34908
34908
|
] }),
|
|
34909
|
-
/* @__PURE__ */ r(S.Panel, { value: "config", children: /* @__PURE__ */ r(
|
|
34909
|
+
/* @__PURE__ */ r(S.Panel, { value: "config", children: /* @__PURE__ */ r($, { sx: {
|
|
34910
34910
|
minWidth: "480px"
|
|
34911
34911
|
}, children: /* @__PURE__ */ r(zt, { mt: 22, language: "json", withCopyButton: !1, code: JSON.stringify(e, null, 4) }) }) }),
|
|
34912
34912
|
/* @__PURE__ */ r(S.Panel, { value: "usage", children: /* @__PURE__ */ r(PI, { filter: e }) })
|
|
@@ -34954,8 +34954,9 @@ const kI = D(() => {
|
|
|
34954
34954
|
/* @__PURE__ */ r(q, { 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: {
|
|
34955
34955
|
flexGrow: 1
|
|
34956
34956
|
}, maxDropdownHeight: 500 }),
|
|
34957
|
-
/* @__PURE__ */ r(Tp, { type: "range", label: t("filter.widget.date_range.default_value"), value: o, onChange: s, valueFormat: n.inputFormat,
|
|
34957
|
+
/* @__PURE__ */ r(Tp, { 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 })
|
|
34958
34958
|
] }),
|
|
34959
|
+
n.required && !n.default_shortcut && n.default_value.every((h) => !h) && /* @__PURE__ */ r(z, { size: "xs", mt: -10, ta: "center", children: "快捷方式与具体日期范围二选一,且必填" }),
|
|
34959
34960
|
/* @__PURE__ */ r(yn, { filter: e })
|
|
34960
34961
|
] });
|
|
34961
34962
|
}), OI = {
|
|
@@ -35008,7 +35009,7 @@ const kI = D(() => {
|
|
|
35008
35009
|
value: "merico-date-range"
|
|
35009
35010
|
}], [n.language]);
|
|
35010
35011
|
return /* @__PURE__ */ u(_, { grow: !0, gap: 20, align: "top", children: [
|
|
35011
|
-
/* @__PURE__ */ u(
|
|
35012
|
+
/* @__PURE__ */ u($, { w: 600, children: [
|
|
35012
35013
|
/* @__PURE__ */ r(z, { pb: "md", c: "gray", size: "sm", children: t("common.titles.edit") }),
|
|
35013
35014
|
/* @__PURE__ */ u(I, { children: [
|
|
35014
35015
|
/* @__PURE__ */ u(_, { wrap: "nowrap", children: [
|
|
@@ -35018,10 +35019,10 @@ const kI = D(() => {
|
|
|
35018
35019
|
e.auto_submit_supported && /* @__PURE__ */ r(J, { label: t("filter.field.auto_submit"), checked: e.auto_submit, onChange: (l) => e.setAutoSubmit(l.currentTarget.checked), mt: 22 })
|
|
35019
35020
|
] }),
|
|
35020
35021
|
/* @__PURE__ */ r(Jt, { label: t("filter.field.visible_in"), data: a.views.options, value: [...e.visibleInViewsIDs], onChange: e.setVisibleInViewsIDs }),
|
|
35021
|
-
/* @__PURE__ */ r(
|
|
35022
|
+
/* @__PURE__ */ r(V, { label: t("common.key"), placeholder: t("filter.field.key_placeholder"), required: !0, value: e.key, onChange: (l) => {
|
|
35022
35023
|
e.setKey(l.currentTarget.value);
|
|
35023
35024
|
} }),
|
|
35024
|
-
/* @__PURE__ */ r(
|
|
35025
|
+
/* @__PURE__ */ r(V, { label: t("common.label"), placeholder: t("filter.field.label_placeholder"), required: !0, value: e.label, onChange: (l) => {
|
|
35025
35026
|
e.setLabel(l.currentTarget.value);
|
|
35026
35027
|
} }),
|
|
35027
35028
|
/* @__PURE__ */ r(q, { label: t("filter.field.widget"), data: o, required: !0, value: e.type, onChange: e.setType, maxDropdownHeight: 500 }),
|
|
@@ -35070,7 +35071,7 @@ const kI = D(() => {
|
|
|
35070
35071
|
zIndex: 320
|
|
35071
35072
|
});
|
|
35072
35073
|
}, children: t("filter.delete") }) }),
|
|
35073
|
-
/* @__PURE__ */ r(
|
|
35074
|
+
/* @__PURE__ */ r($, { sx: {
|
|
35074
35075
|
flexGrow: 1,
|
|
35075
35076
|
maxHeight: "calc(100% - 52px)",
|
|
35076
35077
|
overflow: "auto"
|
|
@@ -35091,7 +35092,7 @@ const kI = D(() => {
|
|
|
35091
35092
|
return /* @__PURE__ */ u(I, { sx: {
|
|
35092
35093
|
height: "100%"
|
|
35093
35094
|
}, gap: "sm", pb: "59px", children: [
|
|
35094
|
-
/* @__PURE__ */ r(
|
|
35095
|
+
/* @__PURE__ */ r($, { pt: 9, pb: 8, sx: {
|
|
35095
35096
|
borderBottom: "1px solid #eee"
|
|
35096
35097
|
}, children: /* @__PURE__ */ r(z, { size: "sm", px: "md", ta: "left", sx: {
|
|
35097
35098
|
userSelect: "none",
|
|
@@ -35114,7 +35115,7 @@ const kI = D(() => {
|
|
|
35114
35115
|
}
|
|
35115
35116
|
)
|
|
35116
35117
|
] }) }),
|
|
35117
|
-
/* @__PURE__ */ r(
|
|
35118
|
+
/* @__PURE__ */ r($, { sx: {
|
|
35118
35119
|
flexGrow: 1,
|
|
35119
35120
|
overflow: "auto"
|
|
35120
35121
|
}, children: /* @__PURE__ */ r(J.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
|
|
@@ -35264,7 +35265,7 @@ const kI = D(() => {
|
|
|
35264
35265
|
] }),
|
|
35265
35266
|
/* @__PURE__ */ r(ee, { variant: "subtle", color: "blue", disabled: !o || s, onClick: l, children: /* @__PURE__ */ r(fe, { size: 18 }) })
|
|
35266
35267
|
] }),
|
|
35267
|
-
/* @__PURE__ */ r(
|
|
35268
|
+
/* @__PURE__ */ r(V, { value: a, onChange: i, required: !0 })
|
|
35268
35269
|
] });
|
|
35269
35270
|
}), WI = D(() => {
|
|
35270
35271
|
const {
|
|
@@ -35346,7 +35347,7 @@ function Uu({
|
|
|
35346
35347
|
columnResizeMode: "onChange",
|
|
35347
35348
|
getCoreRowModel: oi()
|
|
35348
35349
|
});
|
|
35349
|
-
return e.length === 0 ? /* @__PURE__ */ r(
|
|
35350
|
+
return e.length === 0 ? /* @__PURE__ */ r($, { sx: {
|
|
35350
35351
|
height: "5em"
|
|
35351
35352
|
} }) : /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ u(w, { sx: KI, children: [
|
|
35352
35353
|
/* @__PURE__ */ r(w.Thead, { children: n.getHeaderGroups().map((a) => /* @__PURE__ */ r(w.Tr, { children: a.headers.map((i) => /* @__PURE__ */ u(w.Th, { style: {
|
|
@@ -35428,7 +35429,7 @@ const YI = [{
|
|
|
35428
35429
|
}, [e, n, i]);
|
|
35429
35430
|
return /* @__PURE__ */ u(ze, { children: [
|
|
35430
35431
|
/* @__PURE__ */ r(ZI, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
|
|
35431
|
-
/* @__PURE__ */ u(
|
|
35432
|
+
/* @__PURE__ */ u($, { py: 10, sx: {
|
|
35432
35433
|
width: "100%",
|
|
35433
35434
|
height: "calc(100% - 42px)",
|
|
35434
35435
|
overflow: "auto",
|
|
@@ -35488,7 +35489,7 @@ const YI = [{
|
|
|
35488
35489
|
/* @__PURE__ */ r(ee, { variant: "subtle", color: "blue", disabled: s || h, onClick: d, children: /* @__PURE__ */ r(Nr, { size: 16 }) })
|
|
35489
35490
|
] })
|
|
35490
35491
|
] }),
|
|
35491
|
-
/* @__PURE__ */ u(
|
|
35492
|
+
/* @__PURE__ */ u($, { pb: 20, sx: {
|
|
35492
35493
|
position: "relative",
|
|
35493
35494
|
flexGrow: 1,
|
|
35494
35495
|
overflow: "auto"
|
|
@@ -35527,7 +35528,7 @@ const YI = [{
|
|
|
35527
35528
|
const {
|
|
35528
35529
|
panel: e
|
|
35529
35530
|
} = Ie();
|
|
35530
|
-
return /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(
|
|
35531
|
+
return /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r($, { className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, p: 0, sx: {
|
|
35531
35532
|
border: "1px solid",
|
|
35532
35533
|
borderColor: e.style.border.enabled ? "#e9ecef" : "transparent",
|
|
35533
35534
|
flexGrow: 0,
|
|
@@ -35535,7 +35536,7 @@ const YI = [{
|
|
|
35535
35536
|
width: "600px !important",
|
|
35536
35537
|
height: "450px !important"
|
|
35537
35538
|
}, children: /* @__PURE__ */ u(As, { children: [
|
|
35538
|
-
/* @__PURE__ */ r(
|
|
35539
|
+
/* @__PURE__ */ r($, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r(ku, {}) }),
|
|
35539
35540
|
/* @__PURE__ */ r(n8, {}),
|
|
35540
35541
|
/* @__PURE__ */ r(Mu, { panel: e })
|
|
35541
35542
|
] }) }) });
|
|
@@ -35808,7 +35809,7 @@ const p8 = E.forwardRef(function({
|
|
|
35808
35809
|
border: "1px solid #e9ecef"
|
|
35809
35810
|
}, children: [
|
|
35810
35811
|
/* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
|
|
35811
|
-
/* @__PURE__ */ r(
|
|
35812
|
+
/* @__PURE__ */ r(V, { label: o("common.name"), required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
|
|
35812
35813
|
/* @__PURE__ */ r(X, { label: o("common.data_field"), required: !0, value: t.data_field, onChange: (s) => l("data_field", s) })
|
|
35813
35814
|
] }),
|
|
35814
35815
|
/* @__PURE__ */ r(Vi, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
|
|
@@ -35892,7 +35893,7 @@ const g8 = D(({
|
|
|
35892
35893
|
height: "100%",
|
|
35893
35894
|
position: "relative"
|
|
35894
35895
|
}, children: [
|
|
35895
|
-
/* @__PURE__ */ r(
|
|
35896
|
+
/* @__PURE__ */ r($, { sx: {
|
|
35896
35897
|
maxWidth: "calc(100% - 610px - 10px)",
|
|
35897
35898
|
height: "100%",
|
|
35898
35899
|
overflow: "auto"
|
|
@@ -35904,7 +35905,7 @@ const g8 = D(({
|
|
|
35904
35905
|
flexShrink: 0
|
|
35905
35906
|
}, children: [
|
|
35906
35907
|
/* @__PURE__ */ r(r8, {}),
|
|
35907
|
-
/* @__PURE__ */ r(
|
|
35908
|
+
/* @__PURE__ */ r($, { sx: {
|
|
35908
35909
|
flexGrow: 1
|
|
35909
35910
|
}, children: /* @__PURE__ */ r(d8, {}) })
|
|
35910
35911
|
] })
|
|
@@ -36027,7 +36028,7 @@ const _8 = D(({
|
|
|
36027
36028
|
return /* @__PURE__ */ u(I, { sx: {
|
|
36028
36029
|
height: "100%"
|
|
36029
36030
|
}, gap: "sm", pb: "59px", children: [
|
|
36030
|
-
/* @__PURE__ */ r(
|
|
36031
|
+
/* @__PURE__ */ r($, { pt: 9, pb: 8, sx: {
|
|
36031
36032
|
borderBottom: "1px solid #eee"
|
|
36032
36033
|
}, children: /* @__PURE__ */ r(z, { px: "md", ta: "left", sx: {
|
|
36033
36034
|
userSelect: "none",
|
|
@@ -36053,7 +36054,7 @@ const _8 = D(({
|
|
|
36053
36054
|
] }),
|
|
36054
36055
|
/* @__PURE__ */ r(L, { variant: "subtle", size: "xs", color: "red", leftSection: /* @__PURE__ */ r(Pe, { size: 14 }), disabled: !i.content.hasUnusedQueries, onClick: l, children: e("query.delete_unused") })
|
|
36055
36056
|
] }),
|
|
36056
|
-
/* @__PURE__ */ r(
|
|
36057
|
+
/* @__PURE__ */ r($, { sx: {
|
|
36057
36058
|
flexGrow: 1,
|
|
36058
36059
|
overflow: "auto"
|
|
36059
36060
|
}, children: /* @__PURE__ */ r(J.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
|
|
@@ -36130,7 +36131,7 @@ const _8 = D(({
|
|
|
36130
36131
|
hover: !0,
|
|
36131
36132
|
focus: !1,
|
|
36132
36133
|
touch: !1
|
|
36133
|
-
}, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r(
|
|
36134
|
+
}, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r($, { sx: {
|
|
36134
36135
|
alignSelf: "flex-end"
|
|
36135
36136
|
}, children: /* @__PURE__ */ r(L, { disabled: !0, size: "xs", leftSection: /* @__PURE__ */ r(Pe, { size: 16 }), children: t("query.delete") }) }) }) : /* @__PURE__ */ r(L, { color: "red", size: "xs", onClick: c, leftSection: /* @__PURE__ */ r(Pe, { size: 16 }), sx: {
|
|
36136
36137
|
alignSelf: "flex-end"
|
|
@@ -36344,7 +36345,7 @@ const L8 = D(({
|
|
|
36344
36345
|
const t = e.dbInfo, {
|
|
36345
36346
|
tables: n
|
|
36346
36347
|
} = t;
|
|
36347
|
-
return n.loading ? /* @__PURE__ */ r(Ku, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ r(
|
|
36348
|
+
return n.loading ? /* @__PURE__ */ r(Ku, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ r($, { h: "100%", sx: {
|
|
36348
36349
|
overflow: "auto",
|
|
36349
36350
|
".mantine-NavLink-label": {
|
|
36350
36351
|
fontFamily: "monospace"
|
|
@@ -36354,7 +36355,7 @@ const L8 = D(({
|
|
|
36354
36355
|
}, active: t.table_name === o.table_name }, o.table_name)) }, a)) });
|
|
36355
36356
|
}), V8 = ({
|
|
36356
36357
|
visible: e
|
|
36357
|
-
}) => /* @__PURE__ */ r(
|
|
36358
|
+
}) => /* @__PURE__ */ r($, { py: 10, sx: {
|
|
36358
36359
|
width: "100%",
|
|
36359
36360
|
height: "100%",
|
|
36360
36361
|
overflow: "hidden",
|
|
@@ -36410,7 +36411,7 @@ const L8 = D(({
|
|
|
36410
36411
|
const t = e.dbInfo.tableData;
|
|
36411
36412
|
return t.maxPage === 0 ? /* @__PURE__ */ r(z, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: "This table is empty" }) : t.error ? /* @__PURE__ */ r(z, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ r(V8, { visible: !0 }) : /* @__PURE__ */ u(ze, { children: [
|
|
36412
36413
|
/* @__PURE__ */ r(P8, { dataSource: e }),
|
|
36413
|
-
/* @__PURE__ */ u(
|
|
36414
|
+
/* @__PURE__ */ u($, { py: 10, sx: {
|
|
36414
36415
|
width: "100%",
|
|
36415
36416
|
height: "calc(100% - 42px)",
|
|
36416
36417
|
overflow: "auto",
|
|
@@ -36445,7 +36446,7 @@ const L8 = D(({
|
|
|
36445
36446
|
}, [n]), n.tables.error ? /* @__PURE__ */ r(z, { c: "red", size: "md", ta: "center", ff: "monospace", children: n.tables.error }) : /* @__PURE__ */ u(rt, { sx: {
|
|
36446
36447
|
height: "100%"
|
|
36447
36448
|
}, children: [
|
|
36448
|
-
/* @__PURE__ */ r(
|
|
36449
|
+
/* @__PURE__ */ r($, { w: 300, sx: {
|
|
36449
36450
|
flexGrow: 0,
|
|
36450
36451
|
flexShrink: 0,
|
|
36451
36452
|
position: "relative"
|
|
@@ -36504,7 +36505,7 @@ const L8 = D(({
|
|
|
36504
36505
|
to: "red"
|
|
36505
36506
|
}, children: e.type })
|
|
36506
36507
|
] })
|
|
36507
|
-
] }), zIndex: 320, size: "96vw", styles: q8, children: /* @__PURE__ */ r(
|
|
36508
|
+
] }), zIndex: 320, size: "96vw", styles: q8, children: /* @__PURE__ */ r($, { sx: {
|
|
36508
36509
|
height: "calc(100vh - 220px)"
|
|
36509
36510
|
}, children: /* @__PURE__ */ r(O8, { dataSource: e }) }) }),
|
|
36510
36511
|
/* @__PURE__ */ r(L, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
|
|
@@ -36574,7 +36575,7 @@ const L8 = D(({
|
|
|
36574
36575
|
key: e.key
|
|
36575
36576
|
}), [a, e.type, e.key]);
|
|
36576
36577
|
return /* @__PURE__ */ r(q, { size: t, data: l, label: /* @__PURE__ */ u(_, { justify: "space-between", children: [
|
|
36577
|
-
/* @__PURE__ */ r(
|
|
36578
|
+
/* @__PURE__ */ r($, { children: n("data_source.label") }),
|
|
36578
36579
|
d && /* @__PURE__ */ r(Yu, { dataSource: d, triggerButtonProps: {
|
|
36579
36580
|
size: "compact-xs",
|
|
36580
36581
|
px: 10
|
|
@@ -36615,7 +36616,7 @@ const L8 = D(({
|
|
|
36615
36616
|
width: "100%"
|
|
36616
36617
|
}, children: [
|
|
36617
36618
|
/* @__PURE__ */ r(A, { mb: -10, variant: "dashed", label: t("query.basics"), labelPosition: "center" }),
|
|
36618
|
-
/* @__PURE__ */ r(
|
|
36619
|
+
/* @__PURE__ */ r(V, { placeholder: t("query.name_description"), label: t("query.name"), required: !0, sx: {
|
|
36619
36620
|
flex: 1
|
|
36620
36621
|
}, value: n, onChange: (o) => {
|
|
36621
36622
|
a(o.currentTarget.value);
|
|
@@ -36772,8 +36773,8 @@ WHERE
|
|
|
36772
36773
|
/* @__PURE__ */ r(w.Td, { children: t(l.type_label) }),
|
|
36773
36774
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(On, { size: "sm", component: "button", type: "button", onClick: () => a(l), children: l.label }) }),
|
|
36774
36775
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ u(I, { align: "flex-start", justify: "flex-start", gap: 2, children: [
|
|
36775
|
-
l.views.map((s) => /* @__PURE__ */ r(On, { size: "sm", component: "button", type: "button", onClick: () => i(s.id), children: /* @__PURE__ */ r(
|
|
36776
|
-
l.views.length === 0 && /* @__PURE__ */ r(
|
|
36776
|
+
l.views.map((s) => /* @__PURE__ */ r(On, { size: "sm", component: "button", type: "button", onClick: () => i(s.id), children: /* @__PURE__ */ r($, { children: s.label }) }, s.id)),
|
|
36777
|
+
l.views.length === 0 && /* @__PURE__ */ r($, { children: "--" })
|
|
36777
36778
|
] }) })
|
|
36778
36779
|
] }, l.id)) })
|
|
36779
36780
|
] });
|
|
@@ -36792,7 +36793,7 @@ WHERE
|
|
|
36792
36793
|
svg: {
|
|
36793
36794
|
verticalAlign: "middle"
|
|
36794
36795
|
}
|
|
36795
|
-
}, children: l.map((s) => /* @__PURE__ */ r(Ke.Item, { icon: /* @__PURE__ */ r(
|
|
36796
|
+
}, children: l.map((s) => /* @__PURE__ */ r(Ke.Item, { icon: /* @__PURE__ */ r($, { sx: {
|
|
36796
36797
|
path: {
|
|
36797
36798
|
fill: s.valid ? "rgb(18, 184, 134)" : "rgb(250, 82, 82)"
|
|
36798
36799
|
}
|
|
@@ -36912,7 +36913,7 @@ WHERE
|
|
|
36912
36913
|
/* @__PURE__ */ r(z, { size: "sm", children: t("query.transform.guide.pick_queries") }),
|
|
36913
36914
|
/* @__PURE__ */ r(Jt, { data: n.queries.optionsWithoutTransform, value: [...a.dep_query_ids], onChange: a.setDependantQueryIDs, maxDropdownHeight: 800 }),
|
|
36914
36915
|
/* @__PURE__ */ r(z, { size: "sm", children: t("query.transform.guide.write_function") }),
|
|
36915
|
-
/* @__PURE__ */ r(
|
|
36916
|
+
/* @__PURE__ */ r($, { sx: {
|
|
36916
36917
|
flexGrow: 1
|
|
36917
36918
|
}, children: /* @__PURE__ */ r(Tn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Z8.pre }) })
|
|
36918
36919
|
] });
|
|
@@ -37075,7 +37076,7 @@ function oM({
|
|
|
37075
37076
|
columnResizeMode: "onChange",
|
|
37076
37077
|
getCoreRowModel: oi()
|
|
37077
37078
|
});
|
|
37078
|
-
return e.length === 0 ? /* @__PURE__ */ r(
|
|
37079
|
+
return e.length === 0 ? /* @__PURE__ */ r($, { sx: {
|
|
37079
37080
|
height: "5em"
|
|
37080
37081
|
} }) : /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ u(w, { sx: iM, stickyHeader: !0, stickyHeaderOffset: 0, children: [
|
|
37081
37082
|
/* @__PURE__ */ r(w.Thead, { style: {
|
|
@@ -37168,7 +37169,7 @@ const lM = [{
|
|
|
37168
37169
|
}
|
|
37169
37170
|
}, children: [
|
|
37170
37171
|
/* @__PURE__ */ r(cM, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
|
|
37171
|
-
/* @__PURE__ */ u(
|
|
37172
|
+
/* @__PURE__ */ u($, { sx: {
|
|
37172
37173
|
width: "100%",
|
|
37173
37174
|
height: "calc(100% - 42px)",
|
|
37174
37175
|
overflow: "auto",
|
|
@@ -37218,7 +37219,7 @@ const lM = [{
|
|
|
37218
37219
|
/* @__PURE__ */ r(z, { size: "sm", fw: 500, children: "查询结果" }),
|
|
37219
37220
|
/* @__PURE__ */ r(L, { size: "xs", variant: "transparent", color: "gray", leftSection: /* @__PURE__ */ r(Nr, { size: 16 }), disabled: a || l, onClick: o, children: "下载查询结果" })
|
|
37220
37221
|
] }),
|
|
37221
|
-
/* @__PURE__ */ u(
|
|
37222
|
+
/* @__PURE__ */ u($, { sx: {
|
|
37222
37223
|
position: "relative",
|
|
37223
37224
|
flexGrow: 1,
|
|
37224
37225
|
overflow: "hidden"
|
|
@@ -37570,7 +37571,7 @@ const lM = [{
|
|
|
37570
37571
|
t.setTimeQueryEnabled(!0);
|
|
37571
37572
|
return;
|
|
37572
37573
|
}
|
|
37573
|
-
}, [i.requireTrendingReason, l]), i.supportTrending ? i.requireTrendingReason ? /* @__PURE__ */ r(ae, { label: i.requireTrendingReason, children: /* @__PURE__ */ r(
|
|
37574
|
+
}, [i.requireTrendingReason, l]), i.supportTrending ? i.requireTrendingReason ? /* @__PURE__ */ r(ae, { label: i.requireTrendingReason, children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(ke, { size: "xs", color: "red", checked: !0, readOnly: !0, styles: {
|
|
37574
37575
|
track: {
|
|
37575
37576
|
cursor: "not-allowed"
|
|
37576
37577
|
}
|
|
@@ -37578,7 +37579,7 @@ const lM = [{
|
|
|
37578
37579
|
track: {
|
|
37579
37580
|
cursor: "pointer"
|
|
37580
37581
|
}
|
|
37581
|
-
} }) : /* @__PURE__ */ r(ae, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r(
|
|
37582
|
+
} }) : /* @__PURE__ */ r(ae, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(ke, { size: "xs", color: "red", disabled: !o }) }) });
|
|
37582
37583
|
}), zM = D(({
|
|
37583
37584
|
queryModel: e
|
|
37584
37585
|
}) => {
|
|
@@ -37739,7 +37740,7 @@ const lM = [{
|
|
|
37739
37740
|
}) => {
|
|
37740
37741
|
const t = e.metricQueryPayloadError;
|
|
37741
37742
|
return t.length > 0 ? /* @__PURE__ */ u(pe, { shadow: "md", children: [
|
|
37742
|
-
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r(
|
|
37743
|
+
/* @__PURE__ */ r(pe.Target, { children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(wl, { width: 14, height: 14, color: "rgb(173, 181, 189)" }), variant: "filled", color: "red", disabled: !0, children: "执行查询" }) }) }),
|
|
37743
37744
|
/* @__PURE__ */ r(pe.Dropdown, { children: /* @__PURE__ */ r(Ke, { size: "xs", children: t.map((n) => /* @__PURE__ */ r(Ke.Item, { children: n }, n)) }) })
|
|
37744
37745
|
] }) : /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(wl, { width: 14, height: 14 }), variant: "filled", color: "red", onClick: () => e.fetchData(!0), children: "执行查询" });
|
|
37745
37746
|
}), AM = ({
|
|
@@ -37819,7 +37820,7 @@ const lM = [{
|
|
|
37819
37820
|
flexGrow: 0,
|
|
37820
37821
|
flexShrink: 0
|
|
37821
37822
|
}
|
|
37822
|
-
}, children: /* @__PURE__ */ r(
|
|
37823
|
+
}, children: /* @__PURE__ */ r(V, { size: "xs", placeholder: t("query.name_description"), label: t("query.name"), value: e.name, onChange: (n) => {
|
|
37823
37824
|
e.setName(n.currentTarget.value);
|
|
37824
37825
|
}, styles: {
|
|
37825
37826
|
root: {
|
|
@@ -37899,7 +37900,7 @@ const lM = [{
|
|
|
37899
37900
|
/* @__PURE__ */ u(_, { sx: {
|
|
37900
37901
|
alignItems: "end"
|
|
37901
37902
|
}, gap: 40, children: [
|
|
37902
|
-
/* @__PURE__ */ r(
|
|
37903
|
+
/* @__PURE__ */ r(V, { label: a(h ? "sql_snippet.key_occupied" : "sql_snippet.key"), value: l, onChange: (M) => {
|
|
37903
37904
|
s(M.currentTarget.value);
|
|
37904
37905
|
}, sx: {
|
|
37905
37906
|
flexGrow: "1 !important"
|
|
@@ -37979,7 +37980,7 @@ const lM = [{
|
|
|
37979
37980
|
return /* @__PURE__ */ u(I, { sx: {
|
|
37980
37981
|
height: "100%"
|
|
37981
37982
|
}, gap: "sm", pb: "59px", children: [
|
|
37982
|
-
/* @__PURE__ */ r(
|
|
37983
|
+
/* @__PURE__ */ r($, { pt: 9, pb: 8, sx: {
|
|
37983
37984
|
borderBottom: "1px solid #eee"
|
|
37984
37985
|
}, children: /* @__PURE__ */ r(z, { size: "sm", px: "md", ta: "left", sx: {
|
|
37985
37986
|
userSelect: "none",
|
|
@@ -38005,7 +38006,7 @@ const lM = [{
|
|
|
38005
38006
|
] }),
|
|
38006
38007
|
/* @__PURE__ */ r(L, { variant: "subtle", size: "xs", color: "red", leftSection: /* @__PURE__ */ r(Pe, { size: 14 }), disabled: !i.content.hasUnusedSQLSnippets, onClick: l, children: e("sql_snippet.delete_unused") })
|
|
38007
38008
|
] }),
|
|
38008
|
-
/* @__PURE__ */ r(
|
|
38009
|
+
/* @__PURE__ */ r($, { sx: {
|
|
38009
38010
|
flexGrow: 1,
|
|
38010
38011
|
overflow: "auto"
|
|
38011
38012
|
}, children: /* @__PURE__ */ r(J.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
|
|
@@ -38082,7 +38083,7 @@ const lM = [{
|
|
|
38082
38083
|
disabled: e,
|
|
38083
38084
|
value: t,
|
|
38084
38085
|
onChange: n
|
|
38085
|
-
}) => /* @__PURE__ */ u(
|
|
38086
|
+
}) => /* @__PURE__ */ u($, { sx: {
|
|
38086
38087
|
position: "relative"
|
|
38087
38088
|
}, children: [
|
|
38088
38089
|
e && /* @__PURE__ */ r(hn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -38156,14 +38157,14 @@ const lM = [{
|
|
|
38156
38157
|
return /* @__PURE__ */ u(I, { children: [
|
|
38157
38158
|
/* @__PURE__ */ r(A, { mt: 8, label: t("view.component.modal.modal_settings"), labelPosition: "center" }),
|
|
38158
38159
|
/* @__PURE__ */ u(rt, { gap: 10, children: [
|
|
38159
|
-
/* @__PURE__ */ r(
|
|
38160
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.title"), value: a, onChange: C.noop, disabled: !0, sx: {
|
|
38160
38161
|
flexGrow: 1
|
|
38161
38162
|
} }),
|
|
38162
38163
|
/* @__PURE__ */ r(WM, { value: n.custom_modal_title, onChange: n.custom_modal_title.replace })
|
|
38163
38164
|
] }),
|
|
38164
38165
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
38165
|
-
/* @__PURE__ */ r(
|
|
38166
|
-
/* @__PURE__ */ r(
|
|
38166
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.width"), value: n.width, onChange: (i) => n.setWidth(i.currentTarget.value), placeholder: "600px / 50vw" }),
|
|
38167
|
+
/* @__PURE__ */ r(V, { label: t("view.component.modal.height"), value: n.height, onChange: (i) => n.setHeight(i.currentTarget.value), placeholder: "600px / 50vw" })
|
|
38167
38168
|
] })
|
|
38168
38169
|
] });
|
|
38169
38170
|
}), KM = D(({
|
|
@@ -38191,7 +38192,7 @@ const lM = [{
|
|
|
38191
38192
|
return e ? /* @__PURE__ */ u(I, { sx: {
|
|
38192
38193
|
position: "relative"
|
|
38193
38194
|
}, children: [
|
|
38194
|
-
/* @__PURE__ */ r(
|
|
38195
|
+
/* @__PURE__ */ r(V, { label: t("common.name"), value: e.name, onChange: (i) => {
|
|
38195
38196
|
e.setName(i.currentTarget.value);
|
|
38196
38197
|
} }),
|
|
38197
38198
|
/* @__PURE__ */ r(q, { label: t("common.type"), comboboxProps: {
|
|
@@ -38239,7 +38240,7 @@ const lM = [{
|
|
|
38239
38240
|
zIndex: 320
|
|
38240
38241
|
});
|
|
38241
38242
|
}, children: t("view.delete") }) }),
|
|
38242
|
-
/* @__PURE__ */ r(
|
|
38243
|
+
/* @__PURE__ */ r($, { sx: {
|
|
38243
38244
|
flexGrow: 1,
|
|
38244
38245
|
maxHeight: "calc(100% - 52px)",
|
|
38245
38246
|
overflow: "auto"
|
|
@@ -38249,7 +38250,7 @@ const lM = [{
|
|
|
38249
38250
|
height: "100%"
|
|
38250
38251
|
}, p: "sm", children: /* @__PURE__ */ r(Ju, {}) })), JM = D(() => {
|
|
38251
38252
|
const e = le().editor, t = e.path;
|
|
38252
|
-
return c4(t) ? /* @__PURE__ */ r(ZM, {}) : d4(t) ? /* @__PURE__ */ r(BI, {}) : u4(t) ? /* @__PURE__ */ r(NI, {}) : h4(t) ? /* @__PURE__ */ r(
|
|
38253
|
+
return c4(t) ? /* @__PURE__ */ r(ZM, {}) : d4(t) ? /* @__PURE__ */ r(BI, {}) : u4(t) ? /* @__PURE__ */ r(NI, {}) : h4(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(FI, { id: t[1] }) }) : p4(t) ? /* @__PURE__ */ r(jM, {}) : m4(t) ? /* @__PURE__ */ r(BM, { id: t[1] }) : f4(t) ? /* @__PURE__ */ r(x8, {}) : g4(t) ? /* @__PURE__ */ r(qM, { id: t[1] }) : b4(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(XM, { id: t[1] }) }) : Ea(t) ? /* @__PURE__ */ r(v8, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r($, { children: e.path });
|
|
38253
38254
|
}), e9 = D(() => /* @__PURE__ */ r(JM, {})), t9 = D(() => {
|
|
38254
38255
|
const {
|
|
38255
38256
|
t: e
|
|
@@ -38407,7 +38408,7 @@ const lM = [{
|
|
|
38407
38408
|
] }) : null, className: p ? Tl.query : "", children: (g = e.children) == null ? void 0 : g.map((b) => b._type === "ACTION" ? /* @__PURE__ */ r(c9, { action_type: b._action_type, parentID: b.parentID }, `_ADD_${b.value}_`) : /* @__PURE__ */ r(nh, { option: b }, b.value)) }, e.label);
|
|
38408
38409
|
}), h9 = D(() => {
|
|
38409
38410
|
const e = le();
|
|
38410
|
-
return /* @__PURE__ */ r(
|
|
38411
|
+
return /* @__PURE__ */ r($, { sx: {
|
|
38411
38412
|
position: "relative"
|
|
38412
38413
|
}, children: e.editor.navOptions.map((t) => /* @__PURE__ */ r(nh, { option: t }, t.value)) });
|
|
38413
38414
|
}), p9 = D(() => {
|
|
@@ -38566,7 +38567,7 @@ const _9 = {
|
|
|
38566
38567
|
}), [T]);
|
|
38567
38568
|
const M = async () => {
|
|
38568
38569
|
await a(T.json, T.content.json);
|
|
38569
|
-
},
|
|
38570
|
+
}, R = Nt(Wi, []), O = Bu(R);
|
|
38570
38571
|
return y9(T.content.changed), El("@devtable/dashboard editor", {
|
|
38571
38572
|
context: e,
|
|
38572
38573
|
dashboard: t,
|
|
@@ -38588,7 +38589,7 @@ const _9 = {
|
|
|
38588
38589
|
inEditMode: !0
|
|
38589
38590
|
}, children: [
|
|
38590
38591
|
/* @__PURE__ */ r(K4, {}),
|
|
38591
|
-
/* @__PURE__ */ r(on.Provider, { value:
|
|
38592
|
+
/* @__PURE__ */ r(on.Provider, { value: R, children: /* @__PURE__ */ u(Xr, { configure: O, children: [
|
|
38592
38593
|
/* @__PURE__ */ u(tt, { padding: 0, navbar: {
|
|
38593
38594
|
width: {
|
|
38594
38595
|
base: 200,
|
|
@@ -38603,7 +38604,7 @@ const _9 = {
|
|
|
38603
38604
|
}, styles: _9, children: [
|
|
38604
38605
|
/* @__PURE__ */ r(J4, { onExit: h, saveDashboardChanges: M, headerSlot: s }),
|
|
38605
38606
|
/* @__PURE__ */ r(zI, {}),
|
|
38606
|
-
/* @__PURE__ */ r(tt.Main, { children: /* @__PURE__ */ r(
|
|
38607
|
+
/* @__PURE__ */ r(tt.Main, { children: /* @__PURE__ */ r($, { className: `${i} dashboard-root`, sx: {
|
|
38607
38608
|
position: "relative"
|
|
38608
38609
|
}, children: T.content.views.visibleViews.map((G) => /* @__PURE__ */ r(F6, { view: G }, G.id)) }) })
|
|
38609
38610
|
] }),
|
|
@@ -38843,7 +38844,7 @@ const C9 = ({
|
|
|
38843
38844
|
}, [h, T.content.views.firstVisibleTabsViewActiveTabStr]), E.useEffect(() => {
|
|
38844
38845
|
d && T.content.views.setFirstVisibleTabsViewActiveTab(d);
|
|
38845
38846
|
}, [d, T.content.views.setFirstVisibleTabsViewActiveTab]);
|
|
38846
|
-
const M = Nt(Wi, [T]),
|
|
38847
|
+
const M = Nt(Wi, [T]), R = Bu(M);
|
|
38847
38848
|
return El("@devtable/dashboard render", {
|
|
38848
38849
|
context: e,
|
|
38849
38850
|
dashboard: t,
|
|
@@ -38868,7 +38869,7 @@ const C9 = ({
|
|
|
38868
38869
|
setFullScreenPanelID: l
|
|
38869
38870
|
}, children: /* @__PURE__ */ r(dr.Provider, { value: {
|
|
38870
38871
|
inEditMode: !1
|
|
38871
|
-
}, children: /* @__PURE__ */ r(
|
|
38872
|
+
}, children: /* @__PURE__ */ r($, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(on.Provider, { value: M, children: /* @__PURE__ */ r(Xr, { configure: R, children: T.content.views.visibleViews.map((O) => /* @__PURE__ */ r(co, { view: O }, O.id)) }) }) }) }) }) }) }) }) }) }) }) }) }) });
|
|
38872
38873
|
}, RV = D(C9), PV = () => Promise.resolve().then(() => hg).then(({
|
|
38873
38874
|
version: e
|
|
38874
38875
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|