@devtable/dashboard 14.43.3 → 14.43.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +472 -472
- package/dist/dashboard.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createInstance as Tu } from "i18next";
|
|
|
5
5
|
import { useTranslation as _, Trans as Mr, initReactI18next as Du, I18nextProvider as Iu } from "react-i18next";
|
|
6
6
|
import Mu from "i18next-browser-languagedetector";
|
|
7
7
|
import "intl-pluralrules";
|
|
8
|
-
import C, { unset as Lu, get as se, isObject as hl, set as
|
|
8
|
+
import C, { unset as Lu, get as se, isObject as hl, set as $a, omit as yn, isFunction as $u, orderBy as Vu, last as pl, cloneDeepWith as ml, defaults as pe, minBy as Pu, maxBy as Au, cloneDeep as Ae, values as Va, template as Pa, throttle as Ru, range as Eu, defaultsDeep as He, isEqual as Fe, keyBy as Ou, isEmpty as gl, isNumber as Fu, findLastIndex as qu, isString as fl, pick as bl } from "lodash";
|
|
9
9
|
import { observable as yl, runInAction as Zn, toJS as Bt, reaction as qe, makeAutoObservable as rr } from "mobx";
|
|
10
10
|
import no from "eventemitter2";
|
|
11
11
|
import { jsx as r, Fragment as q, jsxs as u } from "react/jsx-runtime";
|
|
@@ -16,7 +16,7 @@ import "echarts-gl";
|
|
|
16
16
|
import * as Ne from "echarts/core";
|
|
17
17
|
import { use as ju } from "echarts/core";
|
|
18
18
|
import { useBoolean as De, useCreation as Ft, usePrevious as Qu, useAsyncEffect as Nn, useRequest as xn, useLatest as fa, useWhyDidYouUpdate as xl } from "ahooks";
|
|
19
|
-
import { Box as
|
|
19
|
+
import { Box as V, TextInput as $, Group as y, Text as k, Select as F, Button as L, Modal as we, Stack as T, Divider as A, NumberInput as ne, SimpleGrid as ze, Menu as W, UnstyledButton as Aa, Tooltip as re, Flex as rt, ColorInput as cn, Center as jt, ActionIcon as te, Badge as Yt, CloseButton as Ct, Overlay as dn, NativeSelect as Ra, useMantineTheme as $r, ColorSwatch as br, Popover as mt, ColorPicker as ro, HoverCard as ge, Checkbox as Z, Paper as Hu, Code as ao, Tabs as S, Switch as ke, Table as w, MultiSelect as Kt, LoadingOverlay as un, Alert as ar, Collapse as ir, CheckIcon as Gu, SegmentedControl as Ea, Anchor as Rn, Pagination as Vr, Textarea as vl, RangeSlider as Wu, Autocomplete as Uu, Combobox as Wt, Mark as wl, Slider as Ku, ThemeIcon as Jn, Pill as Yu, List as Ue, getRadius as Oa, Affix as Xu, AppShell as Je, FileInput as Zu, Highlight as Ju, rem as io, JsonInput as Sl, Drawer as eh, Radio as oo, Skeleton as lo, NavLink as ba, useCombobox as th, Loader as Fa, InputBase as nh, Input as rh } from "@mantine/core";
|
|
20
20
|
import { useHover as ah, useDisclosure as hn, useClipboard as ih, randomId as vn, useElementSize as Cl, useResizeObserver as oh, useInputState as kl } from "@mantine/hooks";
|
|
21
21
|
import * as lh from "popmotion";
|
|
22
22
|
import { interpolate as kn } from "popmotion";
|
|
@@ -28,7 +28,7 @@ import * as ch from "crypto-js";
|
|
|
28
28
|
import dh from "crypto-js";
|
|
29
29
|
import O from "dayjs";
|
|
30
30
|
import qt from "numbro";
|
|
31
|
-
import { IconMathFunction as en, IconRecycle as bt, IconDeviceFloppy as fe, IconSelector as uh, IconGripVertical as Tl, IconTrash as Pe, IconArrowBackUp as hh, IconPlayerSkipBack as Dl, IconMathFunctionOff as ph, IconTextSize as qa, IconInfoCircle as Re, IconCheck as Na, IconBorderAll as mh, IconCircleOff as Il, IconX as Pr, IconAlertCircle as tr, IconPlus as dt, IconGripHorizontal as gh, IconChevronUp as fh, IconChevronDown as Ml, IconChartAreaLineFilled as bh, IconPlaylistAdd as nr, IconArrowDown as yh, IconArrowUp as _h, IconChevronLeft as xh, IconChevronRight as vh, IconArrowBarToRight as Ba, IconArrowCurveRight as ya, IconLayersIntersect as wh, IconLayersSubtract as Sh, IconCalendar as Ch, IconMinus as kh, IconRefresh as Ar, IconChevronsUp as zh, IconChevronsDown as Th, IconDatabase as on, IconDownload as or, IconCode as wn, IconCamera as Rr, IconArrowsMaximize as Ll, IconAppWindow as ja, IconVariable as Bn, IconChartHistogram as
|
|
31
|
+
import { IconMathFunction as en, IconRecycle as bt, IconDeviceFloppy as fe, IconSelector as uh, IconGripVertical as Tl, IconTrash as Pe, IconArrowBackUp as hh, IconPlayerSkipBack as Dl, IconMathFunctionOff as ph, IconTextSize as qa, IconInfoCircle as Re, IconCheck as Na, IconBorderAll as mh, IconCircleOff as Il, IconX as Pr, IconAlertCircle as tr, IconPlus as dt, IconGripHorizontal as gh, IconChevronUp as fh, IconChevronDown as Ml, IconChartAreaLineFilled as bh, IconPlaylistAdd as nr, IconArrowDown as yh, IconArrowUp as _h, IconChevronLeft as xh, IconChevronRight as vh, IconArrowBarToRight as Ba, IconArrowCurveRight as ya, IconLayersIntersect as wh, IconLayersSubtract as Sh, IconCalendar as Ch, IconMinus as kh, IconRefresh as Ar, IconChevronsUp as zh, IconChevronsDown as Th, IconDatabase as on, IconDownload as or, IconCode as wn, IconCamera as Rr, IconArrowsMaximize as Ll, IconAppWindow as ja, IconVariable as Bn, IconChartHistogram as $l, IconRoute as Qa, IconCopy as Ha, IconArrowLeft as Vl, IconArrowsMove as Dh, IconChevronDownRight as Ih, IconShare3 as Mh, IconArrowsLeftRight as Lh, IconCodeDots as Pl, IconFilter as Ga, IconBoxMultiple as Wa, IconCaretDown as $h, IconAlertTriangle as Al, IconDevices as Vh, IconSettings as jn, IconPointFilled as Er, IconFileImport as so, IconSearch as Rl, IconCircleDashed as Ph, IconCircleDot as Ah, IconChevronsUpRight as Rh, IconAdjustments as Eh, IconLine as Oh, IconEye as El, IconTable as Fh, IconColumns as qh, IconVectorTriangle as Nh, IconVariablePlus as Bh, IconHierarchy as jh, IconDiscountCheckFilled as Qh, IconHash as Hh } from "@tabler/icons-react";
|
|
32
32
|
import { RichTextEditor as le, Link as Ol, useRichTextEditorContext as Gh } from "@mantine/tiptap";
|
|
33
33
|
import { Color as Fl } from "@tiptap/extension-color";
|
|
34
34
|
import ql from "@tiptap/extension-highlight";
|
|
@@ -76,8 +76,8 @@ import Dp from "dayjs/plugin/isBetween";
|
|
|
76
76
|
import Ip from "dayjs/plugin/isLeapYear";
|
|
77
77
|
import Mp from "dayjs/plugin/isMoment";
|
|
78
78
|
import Lp from "dayjs/plugin/isoWeek";
|
|
79
|
-
import
|
|
80
|
-
import
|
|
79
|
+
import $p from "dayjs/plugin/isoWeeksInYear";
|
|
80
|
+
import Vp from "dayjs/plugin/isSameOrAfter";
|
|
81
81
|
import Pp from "dayjs/plugin/isSameOrBefore";
|
|
82
82
|
import Ap from "dayjs/plugin/isToday";
|
|
83
83
|
import Rp from "dayjs/plugin/isTomorrow";
|
|
@@ -98,7 +98,7 @@ import Yp from "dayjs/plugin/utc";
|
|
|
98
98
|
import Xp from "dayjs/plugin/weekday";
|
|
99
99
|
import Zp from "dayjs/plugin/weekOfYear";
|
|
100
100
|
import Jp from "dayjs/plugin/weekYear";
|
|
101
|
-
import { types as m, cast as Nt, getParent as Ce, destroy as em, getRoot as Le, addDisposer as Ke, detach as yr, isAlive as rs, flow as Rt, toGenerator as
|
|
101
|
+
import { types as m, cast as Nt, getParent as Ce, destroy as em, getRoot as Le, addDisposer as Ke, detach as yr, isAlive as rs, flow as Rt, toGenerator as Vt, clone as tm, getSnapshot as Pt, applySnapshot as je, addMiddleware as nm, getType as rm, castToSnapshot as as } from "mobx-state-tree";
|
|
102
102
|
import is from "dom-to-image-more";
|
|
103
103
|
import { saveAs as Fr } from "file-saver";
|
|
104
104
|
import os from "jszip";
|
|
@@ -2243,7 +2243,7 @@ class qr {
|
|
|
2243
2243
|
throw new Error("Cannot set root value to non-object");
|
|
2244
2244
|
else
|
|
2245
2245
|
Zn(() => {
|
|
2246
|
-
|
|
2246
|
+
$a(this.rootRef.current, [t], n);
|
|
2247
2247
|
});
|
|
2248
2248
|
return Promise.resolve(this.getItem(t));
|
|
2249
2249
|
}
|
|
@@ -2398,7 +2398,7 @@ class Mm {
|
|
|
2398
2398
|
this.symbol = Symbol(t);
|
|
2399
2399
|
}
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function $t(e) {
|
|
2402
2402
|
return new Mm(e);
|
|
2403
2403
|
}
|
|
2404
2404
|
class Ja {
|
|
@@ -2434,7 +2434,7 @@ class Ja {
|
|
|
2434
2434
|
dispose() {
|
|
2435
2435
|
this.instanceRegistry.forEach((t) => {
|
|
2436
2436
|
const n = se(t, "dispose");
|
|
2437
|
-
|
|
2437
|
+
$u(n) && n.bind(t)();
|
|
2438
2438
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
@@ -2468,13 +2468,13 @@ function ms({
|
|
|
2468
2468
|
e
|
|
2469
2469
|
] });
|
|
2470
2470
|
}
|
|
2471
|
-
function
|
|
2471
|
+
function $m() {
|
|
2472
2472
|
const {
|
|
2473
2473
|
addonSlotId: e
|
|
2474
2474
|
} = R.useContext(ps);
|
|
2475
2475
|
return e ? document.getElementById(e) : null;
|
|
2476
2476
|
}
|
|
2477
|
-
const gs = "14.43.
|
|
2477
|
+
const gs = "14.43.4", Vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2478
2478
|
__proto__: null,
|
|
2479
2479
|
version: gs
|
|
2480
2480
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2558,7 +2558,7 @@ class Rm {
|
|
|
2558
2558
|
return n;
|
|
2559
2559
|
if (t.from > t.to)
|
|
2560
2560
|
throw new Error(`Can not downgrade from version '${t.from}' to (${t.to})`);
|
|
2561
|
-
const i = this.migrations.filter((s) => s.version > t.from && s.version <= t.to), o =
|
|
2561
|
+
const i = this.migrations.filter((s) => s.version > t.from && s.version <= t.to), o = Vu(i, "version", "asc");
|
|
2562
2562
|
if (((l = pl(o)) == null ? void 0 : l.version) !== t.to)
|
|
2563
2563
|
throw new Error(`Migration to version ${t.to} not found`);
|
|
2564
2564
|
return o.reduce((s, c) => c.handler(s, a), n);
|
|
@@ -2622,7 +2622,7 @@ const K = (e, t) => {
|
|
|
2622
2622
|
width: e,
|
|
2623
2623
|
height: t,
|
|
2624
2624
|
children: n
|
|
2625
|
-
}) => /* @__PURE__ */ r(
|
|
2625
|
+
}) => /* @__PURE__ */ r(V, { pt: et.top, pr: et.right, pb: et.bottom, pl: et.left, sx: {
|
|
2626
2626
|
width: e,
|
|
2627
2627
|
height: t,
|
|
2628
2628
|
overflow: "hidden",
|
|
@@ -2633,7 +2633,7 @@ ee(function({
|
|
|
2633
2633
|
onChange: n,
|
|
2634
2634
|
...a
|
|
2635
2635
|
}, i) {
|
|
2636
|
-
return /* @__PURE__ */ r(
|
|
2636
|
+
return /* @__PURE__ */ r($, { ref: i, value: t, onChange: n, ...a });
|
|
2637
2637
|
});
|
|
2638
2638
|
class Em {
|
|
2639
2639
|
constructor({
|
|
@@ -2867,7 +2867,7 @@ function ni() {
|
|
|
2867
2867
|
throw new Error("Please use PanelContextProvider");
|
|
2868
2868
|
return e;
|
|
2869
2869
|
}
|
|
2870
|
-
const ot = () => ni(),
|
|
2870
|
+
const ot = () => ni(), $e = () => ni();
|
|
2871
2871
|
function ks() {
|
|
2872
2872
|
try {
|
|
2873
2873
|
return ni(), !0;
|
|
@@ -3218,7 +3218,7 @@ function cg(e) {
|
|
|
3218
3218
|
hovered: s,
|
|
3219
3219
|
ref: c
|
|
3220
3220
|
} = ah();
|
|
3221
|
-
return /* @__PURE__ */ r(
|
|
3221
|
+
return /* @__PURE__ */ r(V, { ref: c, ...a, children: /* @__PURE__ */ u(y, { wrap: "nowrap", justify: "space-between", children: [
|
|
3222
3222
|
/* @__PURE__ */ r(k, { size: "sm", sx: {
|
|
3223
3223
|
flexGrow: 1
|
|
3224
3224
|
}, children: l }),
|
|
@@ -3245,12 +3245,12 @@ const be = (e) => (t, n) => {
|
|
|
3245
3245
|
_();
|
|
3246
3246
|
const {
|
|
3247
3247
|
panel: p
|
|
3248
|
-
} =
|
|
3249
|
-
return g.length === 0 ? /* @__PURE__ */ r(
|
|
3248
|
+
} = $e(), g = R.useMemo(() => p.variableOptions(a, s), [a, s]);
|
|
3249
|
+
return g.length === 0 ? /* @__PURE__ */ r($, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(F, { ref: t, label: n, description: o, renderOption: cg(d), data: g, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
|
|
3250
3250
|
withinPortal: !0,
|
|
3251
3251
|
zIndex: h
|
|
3252
3252
|
}, onChange: be(i) });
|
|
3253
|
-
})),
|
|
3253
|
+
})), $s = {
|
|
3254
3254
|
static: {
|
|
3255
3255
|
type: "static",
|
|
3256
3256
|
value: 10
|
|
@@ -3263,7 +3263,7 @@ const be = (e) => (t, n) => {
|
|
|
3263
3263
|
}, dg = ({
|
|
3264
3264
|
value: e,
|
|
3265
3265
|
onChange: t
|
|
3266
|
-
}) => /* @__PURE__ */ r(
|
|
3266
|
+
}) => /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
|
|
3267
3267
|
a && t(a);
|
|
3268
3268
|
}, theme: "vs-dark", options: {
|
|
3269
3269
|
minimap: {
|
|
@@ -3296,10 +3296,10 @@ const be = (e) => (t, n) => {
|
|
|
3296
3296
|
value: g
|
|
3297
3297
|
}));
|
|
3298
3298
|
}, p = () => {
|
|
3299
|
-
h(
|
|
3299
|
+
h($s.dynamic.value);
|
|
3300
3300
|
};
|
|
3301
3301
|
return /* @__PURE__ */ u(q, { children: [
|
|
3302
|
-
/* @__PURE__ */ r(
|
|
3302
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
3303
3303
|
width: "50%"
|
|
3304
3304
|
}, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(en, { size: 16 }), mt: 24, onClick: i, sx: {
|
|
3305
3305
|
flexGrow: 0
|
|
@@ -3342,7 +3342,7 @@ const be = (e) => (t, n) => {
|
|
|
3342
3342
|
i18n: o
|
|
3343
3343
|
} = _(), l = (c) => {
|
|
3344
3344
|
c !== "static" && c !== "dynamic" || n({
|
|
3345
|
-
|
|
3345
|
+
...$s[c]
|
|
3346
3346
|
});
|
|
3347
3347
|
}, s = z(() => [{
|
|
3348
3348
|
label: i("chart.number_or_dynamic_value.type.static"),
|
|
@@ -3383,7 +3383,7 @@ function mo(e, t, n) {
|
|
|
3383
3383
|
return console.error(`[getNumberOrDynamicValue] failed parsing custom function, error: ${i.message}`), 10;
|
|
3384
3384
|
}
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function Vs(e) {
|
|
3387
3387
|
return {
|
|
3388
3388
|
type: "continuous",
|
|
3389
3389
|
id: "continuous-example",
|
|
@@ -3440,7 +3440,7 @@ function mg() {
|
|
|
3440
3440
|
};
|
|
3441
3441
|
}
|
|
3442
3442
|
function Xt() {
|
|
3443
|
-
return
|
|
3443
|
+
return Vs();
|
|
3444
3444
|
}
|
|
3445
3445
|
function gg() {
|
|
3446
3446
|
return {
|
|
@@ -3538,7 +3538,7 @@ const fg = gg(), bg = ({
|
|
|
3538
3538
|
borderRadius: "0.25rem",
|
|
3539
3539
|
columnGap: 10
|
|
3540
3540
|
}, children: [
|
|
3541
|
-
/* @__PURE__ */ r(
|
|
3541
|
+
/* @__PURE__ */ r(V, { style: {
|
|
3542
3542
|
height: "20px",
|
|
3543
3543
|
flexGrow: 1,
|
|
3544
3544
|
backgroundImage: i,
|
|
@@ -3552,7 +3552,7 @@ const fg = gg(), bg = ({
|
|
|
3552
3552
|
/* @__PURE__ */ r(W.Divider, {}),
|
|
3553
3553
|
Object.entries(fg).map(([o, l]) => /* @__PURE__ */ r(re, { label: a("chart.visual_map.use_palette_x", {
|
|
3554
3554
|
x: o
|
|
3555
|
-
}), children: /* @__PURE__ */ r(W.Item, { children: /* @__PURE__ */ r(
|
|
3555
|
+
}), children: /* @__PURE__ */ r(W.Item, { children: /* @__PURE__ */ r(V, { style: {
|
|
3556
3556
|
height: "20px",
|
|
3557
3557
|
width: "100%",
|
|
3558
3558
|
backgroundImage: `linear-gradient(to right, ${l.join(", ")})`,
|
|
@@ -3671,9 +3671,9 @@ const fg = gg(), bg = ({
|
|
|
3671
3671
|
s(e);
|
|
3672
3672
|
}, [e]);
|
|
3673
3673
|
const c = ae(() => s(e), [s, e]);
|
|
3674
|
-
return /* @__PURE__ */ u(
|
|
3674
|
+
return /* @__PURE__ */ u(V, { children: [
|
|
3675
3675
|
/* @__PURE__ */ r(A, { color: "rgb(206, 212, 218)", variant: "dotted", my: "1rem" }),
|
|
3676
|
-
/* @__PURE__ */ u(
|
|
3676
|
+
/* @__PURE__ */ u(V, { px: "1rem", children: [
|
|
3677
3677
|
/* @__PURE__ */ r(f, { control: o, name: "variable", render: ({
|
|
3678
3678
|
field: d
|
|
3679
3679
|
}) => /* @__PURE__ */ r(la, { label: a("rich_text.color_mapping.choose_value_var"), clearable: !1, preview: "aggregated", zIndex: 340, ...d }) }),
|
|
@@ -3686,7 +3686,7 @@ const fg = gg(), bg = ({
|
|
|
3686
3686
|
}, ...d }) }),
|
|
3687
3687
|
/* @__PURE__ */ r(f, { name: "min_val", control: o, render: ({
|
|
3688
3688
|
field: d
|
|
3689
|
-
}) => /* @__PURE__ */ r(
|
|
3689
|
+
}) => /* @__PURE__ */ r($, { label: a("rich_text.color_mapping.min.val"), ...d, sx: {
|
|
3690
3690
|
maxWidth: "120px",
|
|
3691
3691
|
flexGrow: 0
|
|
3692
3692
|
} }) })
|
|
@@ -3700,7 +3700,7 @@ const fg = gg(), bg = ({
|
|
|
3700
3700
|
}, ...d }) }),
|
|
3701
3701
|
/* @__PURE__ */ r(f, { name: "max_val", control: o, render: ({
|
|
3702
3702
|
field: d
|
|
3703
|
-
}) => /* @__PURE__ */ r(
|
|
3703
|
+
}) => /* @__PURE__ */ r($, { label: a("rich_text.color_mapping.max.val"), ...d, sx: {
|
|
3704
3704
|
maxWidth: "120px",
|
|
3705
3705
|
flexGrow: 0
|
|
3706
3706
|
} }) })
|
|
@@ -3735,7 +3735,7 @@ const vg = () => /* @__PURE__ */ r("div", { style: {
|
|
|
3735
3735
|
background: Rs(90, ...Object.values(Et.graphics.depth))
|
|
3736
3736
|
} }), wg = ({
|
|
3737
3737
|
disabled: e
|
|
3738
|
-
}) => /* @__PURE__ */ r(
|
|
3738
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
3739
3739
|
width: "16px",
|
|
3740
3740
|
height: "10px",
|
|
3741
3741
|
borderRadius: "2px",
|
|
@@ -3980,7 +3980,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
|
|
|
3980
3980
|
] })
|
|
3981
3981
|
] }),
|
|
3982
3982
|
/* @__PURE__ */ r(k, { size: "14px", children: n }),
|
|
3983
|
-
/* @__PURE__ */ u(
|
|
3983
|
+
/* @__PURE__ */ u(V, { sx: {
|
|
3984
3984
|
position: "relative",
|
|
3985
3985
|
flexGrow: 1
|
|
3986
3986
|
}, children: [
|
|
@@ -4008,14 +4008,14 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
|
|
|
4008
4008
|
return /* @__PURE__ */ u(q, { children: [
|
|
4009
4009
|
/* @__PURE__ */ u(we, { opened: g, onClose: x, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
|
|
4010
4010
|
i,
|
|
4011
|
-
/* @__PURE__ */ r(
|
|
4011
|
+
/* @__PURE__ */ r(V, { h: 600, children: /* @__PURE__ */ r(Cn, { value: t, onChange: n, defaultValue: c, label: a, restrictions: h }) })
|
|
4012
4012
|
] }),
|
|
4013
4013
|
s == null ? void 0 : s({
|
|
4014
4014
|
onClick: b
|
|
4015
4015
|
}),
|
|
4016
4016
|
!s && /* @__PURE__ */ r(L, { onClick: b, ...l, children: o })
|
|
4017
4017
|
] });
|
|
4018
|
-
}),
|
|
4018
|
+
}), $g = ({
|
|
4019
4019
|
onClick: e
|
|
4020
4020
|
}) => {
|
|
4021
4021
|
const {
|
|
@@ -4028,7 +4028,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
|
|
|
4028
4028
|
borderColor: "#ced4da !important",
|
|
4029
4029
|
color: "rgb(190, 75, 219)"
|
|
4030
4030
|
}, onClick: e, children: /* @__PURE__ */ r(en, { stroke: 2, size: 16 }) }) });
|
|
4031
|
-
},
|
|
4031
|
+
}, Vg = ({
|
|
4032
4032
|
editor: e
|
|
4033
4033
|
}) => {
|
|
4034
4034
|
const {
|
|
@@ -4037,7 +4037,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
|
|
|
4037
4037
|
return /* @__PURE__ */ u(q, { children: [
|
|
4038
4038
|
/* @__PURE__ */ r(li, { title: t("rich_text.dynamic_color.edit"), label: "", triggerLabel: "", value: a, onChange: (o) => {
|
|
4039
4039
|
o ? e.chain().focus().setDynamicColor(o).run() : e.chain().focus().unsetDynamicColor().run();
|
|
4040
|
-
}, defaultValue: kg, renderTriggerButton:
|
|
4040
|
+
}, defaultValue: kg, renderTriggerButton: $g, restrictions: i, zIndex: 340 }),
|
|
4041
4041
|
/* @__PURE__ */ r(re, { label: t("rich_text.dynamic_color.clear"), children: /* @__PURE__ */ r(te, { variant: "default", "data-rich-text-editor-control": "true", sx: {
|
|
4042
4042
|
height: "26px",
|
|
4043
4043
|
minHeight: "26px",
|
|
@@ -4210,7 +4210,7 @@ const sa = ({
|
|
|
4210
4210
|
}, n) => /* @__PURE__ */ r(le.Control, { ref: n, onClick: t, children: /* @__PURE__ */ r(br, { color: e, size: 14 }) })), Fg = ({
|
|
4211
4211
|
editor: e
|
|
4212
4212
|
}) => {
|
|
4213
|
-
const t =
|
|
4213
|
+
const t = $r(), n = e.getAttributes("textStyle").color || t.black, a = z(() => Ws(n), [n]), i = ae((l) => {
|
|
4214
4214
|
e.chain().setColor(l).run();
|
|
4215
4215
|
}, [e]), o = ae(() => {
|
|
4216
4216
|
e.chain().focus().unsetColor().run();
|
|
@@ -4325,7 +4325,7 @@ const ln = ee(({
|
|
|
4325
4325
|
/* @__PURE__ */ u(le.Toolbar, { sticky: !0, stickyOffset: 0, children: [
|
|
4326
4326
|
/* @__PURE__ */ r(Fg, { editor: v }),
|
|
4327
4327
|
c && /* @__PURE__ */ r(Sg, { editor: v }),
|
|
4328
|
-
/* @__PURE__ */ r(le.ControlsGroup, { children: /* @__PURE__ */ r(
|
|
4328
|
+
/* @__PURE__ */ r(le.ControlsGroup, { children: /* @__PURE__ */ r(Vg, { editor: v }) }),
|
|
4329
4329
|
/* @__PURE__ */ u(le.ControlsGroup, { children: [
|
|
4330
4330
|
/* @__PURE__ */ r(le.Bold, {}),
|
|
4331
4331
|
/* @__PURE__ */ r(le.Italic, {}),
|
|
@@ -4401,7 +4401,7 @@ const Us = ({
|
|
|
4401
4401
|
const c = s.currentTarget.value;
|
|
4402
4402
|
o(c), Qg(c) && t(c);
|
|
4403
4403
|
}, [t]);
|
|
4404
|
-
return /* @__PURE__ */ r(
|
|
4404
|
+
return /* @__PURE__ */ r($, { value: i, onChange: l, leftSection: /* @__PURE__ */ r(Us, { value: i }), size: "xs", placeholder: a("chart.color.not_set"), styles: {
|
|
4405
4405
|
root: {
|
|
4406
4406
|
flexGrow: 1
|
|
4407
4407
|
},
|
|
@@ -4435,7 +4435,7 @@ const Us = ({
|
|
|
4435
4435
|
}) => {
|
|
4436
4436
|
const {
|
|
4437
4437
|
t: i
|
|
4438
|
-
} = _(), o =
|
|
4438
|
+
} = _(), o = $r(), [l, {
|
|
4439
4439
|
set: s,
|
|
4440
4440
|
setFalse: c,
|
|
4441
4441
|
toggle: d
|
|
@@ -4629,7 +4629,7 @@ class Te extends R.Component {
|
|
|
4629
4629
|
error: null
|
|
4630
4630
|
});
|
|
4631
4631
|
};
|
|
4632
|
-
return /* @__PURE__ */ u(
|
|
4632
|
+
return /* @__PURE__ */ u(V, { children: [
|
|
4633
4633
|
/* @__PURE__ */ r(k, { size: "xs", children: (t = this.state.error) == null ? void 0 : t.message }),
|
|
4634
4634
|
/* @__PURE__ */ r(L, { variant: "subtle", mx: "auto", size: "compact-xs", sx: {
|
|
4635
4635
|
display: "block"
|
|
@@ -4711,7 +4711,7 @@ function ef(e, t, n) {
|
|
|
4711
4711
|
throw console.error(a), a;
|
|
4712
4712
|
}
|
|
4713
4713
|
}
|
|
4714
|
-
const
|
|
4714
|
+
const Vn = {
|
|
4715
4715
|
sqlSnippet: new RegExp("(?<=sql_snippets\\.)([^\\?}.]+)", "gm"),
|
|
4716
4716
|
context: new RegExp("(?<=context\\.)([^\\?}.]+)", "gm"),
|
|
4717
4717
|
filter: new RegExp("(?<=filters\\.)([^\\?}.]+)", "gm")
|
|
@@ -4872,11 +4872,11 @@ const X = D(ee(({
|
|
|
4872
4872
|
}, d) => {
|
|
4873
4873
|
const {
|
|
4874
4874
|
panel: h
|
|
4875
|
-
} =
|
|
4875
|
+
} = $e(), p = R.useMemo(() => h.dataFieldOptionGroups(a, l, o), [a, l, o]);
|
|
4876
4876
|
if (p.length === 0) {
|
|
4877
4877
|
const g = h.explainDataKey(a);
|
|
4878
4878
|
return /* @__PURE__ */ u(ge, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
|
|
4879
|
-
/* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r(
|
|
4879
|
+
/* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r($, { label: e, required: t, defaultValue: g.columnKey, readOnly: !0, disabled: !0 }) }) }),
|
|
4880
4880
|
/* @__PURE__ */ r(ge.Dropdown, { children: /* @__PURE__ */ u(y, { justify: "flex-start", gap: 0, children: [
|
|
4881
4881
|
/* @__PURE__ */ r(k, { size: "xs", c: g.queryName ? "black" : "red", ff: "monospace", children: g.queryName ?? g.queryID }),
|
|
4882
4882
|
/* @__PURE__ */ r(k, { size: "xs", c: "black", ff: "monospace", children: "." }),
|
|
@@ -4912,7 +4912,7 @@ function of({
|
|
|
4912
4912
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
4913
4913
|
/* @__PURE__ */ r(f, { name: "xAxis3D.name", control: i, render: ({
|
|
4914
4914
|
field: s
|
|
4915
|
-
}) => /* @__PURE__ */ r(
|
|
4915
|
+
}) => /* @__PURE__ */ r($, { sx: {
|
|
4916
4916
|
flexGrow: 1
|
|
4917
4917
|
}, size: "md", label: "Name", ...s }) })
|
|
4918
4918
|
] }),
|
|
@@ -4926,7 +4926,7 @@ function of({
|
|
|
4926
4926
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
4927
4927
|
/* @__PURE__ */ r(f, { name: "yAxis3D.name", control: i, render: ({
|
|
4928
4928
|
field: s
|
|
4929
|
-
}) => /* @__PURE__ */ r(
|
|
4929
|
+
}) => /* @__PURE__ */ r($, { sx: {
|
|
4930
4930
|
flexGrow: 1
|
|
4931
4931
|
}, size: "md", label: "Name", ...s }) })
|
|
4932
4932
|
] }),
|
|
@@ -4940,7 +4940,7 @@ function of({
|
|
|
4940
4940
|
}) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
|
|
4941
4941
|
/* @__PURE__ */ r(f, { name: "zAxis3D.name", control: i, render: ({
|
|
4942
4942
|
field: s
|
|
4943
|
-
}) => /* @__PURE__ */ r(
|
|
4943
|
+
}) => /* @__PURE__ */ r($, { sx: {
|
|
4944
4944
|
flexGrow: 1
|
|
4945
4945
|
}, size: "md", label: "Name", ...s }) })
|
|
4946
4946
|
] }),
|
|
@@ -5029,7 +5029,7 @@ const hf = {
|
|
|
5029
5029
|
disabled: e,
|
|
5030
5030
|
value: t,
|
|
5031
5031
|
onChange: n
|
|
5032
|
-
}) => /* @__PURE__ */ u(
|
|
5032
|
+
}) => /* @__PURE__ */ u(V, { sx: {
|
|
5033
5033
|
position: "relative"
|
|
5034
5034
|
}, children: [
|
|
5035
5035
|
e && /* @__PURE__ */ r(dn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -5225,7 +5225,7 @@ const wr = ee(({
|
|
|
5225
5225
|
/* @__PURE__ */ r(ne, { label: i("chart.axis.overflow.max_width"), hideControls: !0, value: t.width, onChange: l("width") }),
|
|
5226
5226
|
/* @__PURE__ */ r(F, { label: i("chart.axis.overflow.label"), data: s, value: t.overflow, onChange: l("overflow") }),
|
|
5227
5227
|
/* @__PURE__ */ r(
|
|
5228
|
-
|
|
5228
|
+
$,
|
|
5229
5229
|
{
|
|
5230
5230
|
label: i("chart.axis.overflow.ellipsis"),
|
|
5231
5231
|
value: t.ellipsis,
|
|
@@ -5313,7 +5313,7 @@ const Be = ee(({
|
|
|
5313
5313
|
};
|
|
5314
5314
|
return /* @__PURE__ */ u(T, { ref: a, gap: "sm", children: [
|
|
5315
5315
|
/* @__PURE__ */ r(A, { mb: -10, label: i("chart.unit.title"), labelPosition: "center", variant: "dashed" }),
|
|
5316
|
-
!o.has("text") && /* @__PURE__ */ r(
|
|
5316
|
+
!o.has("text") && /* @__PURE__ */ r($, { size: "xs", placeholder: i("chart.unit.text.placeholder"), value: e.text, onChange: (s) => l("text")(s.currentTarget.value) }),
|
|
5317
5317
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
5318
5318
|
!o.has("show_in_tooltip") && /* @__PURE__ */ r(Z, { size: "xs", label: i("chart.unit.show_in_tooltip"), checked: e.show_in_tooltip, onChange: (s) => l("show_in_tooltip")(s.currentTarget.checked) }),
|
|
5319
5319
|
!o.has("show_in_legend") && /* @__PURE__ */ r(Z, { size: "xs", label: i("chart.unit.show_in_legend"), checked: e.show_in_legend, onChange: (s) => l("show_in_legend")(s.currentTarget.checked) })
|
|
@@ -5635,11 +5635,11 @@ class mi {
|
|
|
5635
5635
|
await this.attachmentStorage.deleteItem(t);
|
|
5636
5636
|
}
|
|
5637
5637
|
async list() {
|
|
5638
|
-
const t = await this.attachmentStorage.getItem(null), n = C.orderBy(
|
|
5638
|
+
const t = await this.attachmentStorage.getItem(null), n = C.orderBy(Va(t), (a) => Lf[a.schemaRef] ?? 10);
|
|
5639
5639
|
return Promise.all(n.map((a) => this.constructInstance(new Pn(this.attachmentStorage, a.id))));
|
|
5640
5640
|
}
|
|
5641
5641
|
}
|
|
5642
|
-
function
|
|
5642
|
+
function $f(e, t) {
|
|
5643
5643
|
const {
|
|
5644
5644
|
value: n,
|
|
5645
5645
|
set: a
|
|
@@ -5654,14 +5654,14 @@ function Vf(e, t) {
|
|
|
5654
5654
|
commit: l
|
|
5655
5655
|
};
|
|
5656
5656
|
}
|
|
5657
|
-
function
|
|
5657
|
+
function Vf(e) {
|
|
5658
5658
|
const {
|
|
5659
5659
|
t
|
|
5660
5660
|
} = _(), {
|
|
5661
5661
|
config: n,
|
|
5662
5662
|
setConfig: a,
|
|
5663
5663
|
commit: i
|
|
5664
|
-
} =
|
|
5664
|
+
} = $f(e, {
|
|
5665
5665
|
urlTemplate: "",
|
|
5666
5666
|
openInNewTab: !0
|
|
5667
5667
|
});
|
|
@@ -5679,7 +5679,7 @@ function $f(e) {
|
|
|
5679
5679
|
urlTemplate: c.currentTarget.value
|
|
5680
5680
|
});
|
|
5681
5681
|
return /* @__PURE__ */ u(T, { children: [
|
|
5682
|
-
/* @__PURE__ */ r(
|
|
5682
|
+
/* @__PURE__ */ r($, { label: t("interactions.operation.open_link.url"), value: n.urlTemplate, onChange: s, onBlur: o }),
|
|
5683
5683
|
/* @__PURE__ */ r(ke, { label: t("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => l(c.currentTarget.checked) })
|
|
5684
5684
|
] });
|
|
5685
5685
|
}
|
|
@@ -5708,7 +5708,7 @@ class Af extends Se {
|
|
|
5708
5708
|
const Rf = {
|
|
5709
5709
|
displayName: "interactions.operation.open_link.label",
|
|
5710
5710
|
id: "builtin:op:open-link",
|
|
5711
|
-
configRender:
|
|
5711
|
+
configRender: Vf,
|
|
5712
5712
|
run: Pf,
|
|
5713
5713
|
migrator: new Af(),
|
|
5714
5714
|
createDefaultConfig: () => ({
|
|
@@ -5732,7 +5732,7 @@ function Of(e) {
|
|
|
5732
5732
|
const {
|
|
5733
5733
|
t
|
|
5734
5734
|
} = _(), [n, a] = Ef(e.operation);
|
|
5735
|
-
return /* @__PURE__ */ r(
|
|
5735
|
+
return /* @__PURE__ */ r($, { defaultValue: n, onBlur: (i) => a(i.currentTarget.value), label: t("interactions.operation.console_log.log_content") });
|
|
5736
5736
|
}
|
|
5737
5737
|
async function Ff(e, t) {
|
|
5738
5738
|
const n = await t.operationData.getItem("config"), a = Pa(n.template || "");
|
|
@@ -5785,7 +5785,7 @@ const jf = {
|
|
|
5785
5785
|
const [n, a] = Q(e);
|
|
5786
5786
|
return N(() => {
|
|
5787
5787
|
a(e);
|
|
5788
|
-
}, [e]), /* @__PURE__ */ r(
|
|
5788
|
+
}, [e]), /* @__PURE__ */ r($, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
|
|
5789
5789
|
flexGrow: 1
|
|
5790
5790
|
}, rightSection: /* @__PURE__ */ r(te, { color: "green", size: "xs", onClick: () => {
|
|
5791
5791
|
t(n);
|
|
@@ -6068,7 +6068,7 @@ class sb {
|
|
|
6068
6068
|
}
|
|
6069
6069
|
watchTriggerSnapshotList(t) {
|
|
6070
6070
|
return this.instance.instanceData.watchItem(bo, (n) => {
|
|
6071
|
-
const a =
|
|
6071
|
+
const a = Va(n).map((i) => ({
|
|
6072
6072
|
id: se(i, "id"),
|
|
6073
6073
|
schemaRef: se(i, "schemaRef"),
|
|
6074
6074
|
config: Bt(se(i, "data.config"))
|
|
@@ -6658,7 +6658,7 @@ function Lb(e, t) {
|
|
|
6658
6658
|
datasetIndex: 1
|
|
6659
6659
|
}, a, i, o];
|
|
6660
6660
|
}
|
|
6661
|
-
const
|
|
6661
|
+
const $b = (e, t) => {
|
|
6662
6662
|
const n = va.map((o) => `
|
|
6663
6663
|
<tr>
|
|
6664
6664
|
<th style="text-align: right; padding: 0 1em;">${C.capitalize(o)}</th>
|
|
@@ -6676,7 +6676,7 @@ const Vb = (e, t) => {
|
|
|
6676
6676
|
</tbody>
|
|
6677
6677
|
</table>
|
|
6678
6678
|
`;
|
|
6679
|
-
},
|
|
6679
|
+
}, Vb = (e) => ue(e, {
|
|
6680
6680
|
output: "number",
|
|
6681
6681
|
trimMantissa: !0,
|
|
6682
6682
|
mantissa: 2,
|
|
@@ -6692,7 +6692,7 @@ function oc(e, t) {
|
|
|
6692
6692
|
return `
|
|
6693
6693
|
<tr>
|
|
6694
6694
|
<th style="text-align: right; padding: 0 1em;">${a.name}</th>
|
|
6695
|
-
<td style="text-align: left; padding: 0 2px 0 1em;">${
|
|
6695
|
+
<td style="text-align: left; padding: 0 2px 0 1em;">${Vb(t[i.columnKey])}</td>
|
|
6696
6696
|
<th style="text-align: left; padding: 0;">
|
|
6697
6697
|
${o ?? ""}
|
|
6698
6698
|
</th>
|
|
@@ -6742,7 +6742,7 @@ const Rb = (e, t) => (n) => {
|
|
|
6742
6742
|
} = n;
|
|
6743
6743
|
switch (a) {
|
|
6744
6744
|
case t.Box:
|
|
6745
|
-
return
|
|
6745
|
+
return $b(e, i);
|
|
6746
6746
|
case t.Outlier:
|
|
6747
6747
|
return Pb(e, i);
|
|
6748
6748
|
case t.Scatter:
|
|
@@ -7063,7 +7063,7 @@ function Qb(e) {
|
|
|
7063
7063
|
right: "0.8em"
|
|
7064
7064
|
} }) }),
|
|
7065
7065
|
/* @__PURE__ */ u(T, { children: [
|
|
7066
|
-
/* @__PURE__ */ r(
|
|
7066
|
+
/* @__PURE__ */ r($, { size: "xs", label: t("style.color.interpolation.palette.mapping.value_input_label"), value: s, onChange: (U) => {
|
|
7067
7067
|
const de = U.currentTarget.value;
|
|
7068
7068
|
c(de);
|
|
7069
7069
|
}, error: s && Y }),
|
|
@@ -7321,19 +7321,19 @@ const Hb = D(({
|
|
|
7321
7321
|
return /* @__PURE__ */ u(T, { children: [
|
|
7322
7322
|
/* @__PURE__ */ r(A, { variant: "dashed", label: a("chart.zooming.scroll.label"), labelPosition: "center" }),
|
|
7323
7323
|
/* @__PURE__ */ u(y, { children: [
|
|
7324
|
-
/* @__PURE__ */ r(
|
|
7324
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
7325
7325
|
flexGrow: 1
|
|
7326
7326
|
}, 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) }) }),
|
|
7327
|
-
/* @__PURE__ */ r(
|
|
7327
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
7328
7328
|
flexGrow: 1
|
|
7329
7329
|
}, 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) }) })
|
|
7330
7330
|
] }),
|
|
7331
7331
|
/* @__PURE__ */ r(A, { variant: "dashed", label: a("chart.zooming.slider.label"), labelPosition: "center" }),
|
|
7332
7332
|
/* @__PURE__ */ u(y, { children: [
|
|
7333
|
-
/* @__PURE__ */ r(
|
|
7333
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
7334
7334
|
flexGrow: 1
|
|
7335
7335
|
}, 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) }) }),
|
|
7336
|
-
/* @__PURE__ */ r(re, { label: a("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ r(
|
|
7336
|
+
/* @__PURE__ */ r(re, { label: a("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ r(V, { sx: {
|
|
7337
7337
|
flexGrow: 1
|
|
7338
7338
|
}, 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) }) }) })
|
|
7339
7339
|
] })
|
|
@@ -7399,7 +7399,7 @@ function ty({
|
|
|
7399
7399
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
7400
7400
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
7401
7401
|
field: i
|
|
7402
|
-
}) => /* @__PURE__ */ r(
|
|
7402
|
+
}) => /* @__PURE__ */ r($, { label: a("common.name"), placeholder: a("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
7403
7403
|
flex: 1
|
|
7404
7404
|
}, ...i }) }),
|
|
7405
7405
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -7410,7 +7410,7 @@ function ty({
|
|
|
7410
7410
|
] }),
|
|
7411
7411
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
7412
7412
|
field: i
|
|
7413
|
-
}) => /* @__PURE__ */ r(
|
|
7413
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.content_template.label"), placeholder: a("chart.content_template.placeholder"), required: !0, sx: {
|
|
7414
7414
|
flex: 1
|
|
7415
7415
|
}, ...i }) })
|
|
7416
7416
|
] });
|
|
@@ -7449,7 +7449,7 @@ const ry = ({
|
|
|
7449
7449
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
7450
7450
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
7451
7451
|
field: a
|
|
7452
|
-
}) => /* @__PURE__ */ r(
|
|
7452
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
7453
7453
|
flex: 1
|
|
7454
7454
|
}, ...a }) }),
|
|
7455
7455
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -7526,7 +7526,7 @@ const tn = ee(({
|
|
|
7526
7526
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
7527
7527
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
7528
7528
|
field: a
|
|
7529
|
-
}) => /* @__PURE__ */ r(
|
|
7529
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.x_axis.x_axis_name"), sx: {
|
|
7530
7530
|
flex: 1
|
|
7531
7531
|
}, ...a }) }),
|
|
7532
7532
|
/* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -7569,7 +7569,7 @@ function sy({
|
|
|
7569
7569
|
} = _(), [n, {
|
|
7570
7570
|
toggle: a
|
|
7571
7571
|
}] = hn(!1);
|
|
7572
|
-
return /* @__PURE__ */ u(
|
|
7572
|
+
return /* @__PURE__ */ u(V, { children: [
|
|
7573
7573
|
/* @__PURE__ */ r(L, { variant: "subtle", w: "100%", size: "compact-sm", onClick: a, leftSection: n ? /* @__PURE__ */ r(fh, { size: 14 }) : /* @__PURE__ */ r(Ml, { size: 14 }), children: t(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
|
|
7574
7574
|
/* @__PURE__ */ r(ir, { in: n, children: n && /* @__PURE__ */ u(w, { highlightOnHover: !0, sx: {
|
|
7575
7575
|
tableLayout: "fixed"
|
|
@@ -7652,7 +7652,7 @@ function cy({
|
|
|
7652
7652
|
/* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.trim_mantissa") }),
|
|
7653
7653
|
/* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.trim_mantissa_description") })
|
|
7654
7654
|
] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: ca }),
|
|
7655
|
-
/* @__PURE__ */ r(
|
|
7655
|
+
/* @__PURE__ */ r(V, {})
|
|
7656
7656
|
] }),
|
|
7657
7657
|
/* @__PURE__ */ r(sy, { format: e })
|
|
7658
7658
|
] });
|
|
@@ -7668,7 +7668,7 @@ const xt = R.forwardRef(cy), dy = ({
|
|
|
7668
7668
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
7669
7669
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
7670
7670
|
field: a
|
|
7671
|
-
}) => /* @__PURE__ */ r(
|
|
7671
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.y_axis.y_axis_name"), sx: {
|
|
7672
7672
|
flex: 1
|
|
7673
7673
|
}, ...a }) }),
|
|
7674
7674
|
/* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -8103,7 +8103,7 @@ const yi = {
|
|
|
8103
8103
|
onChange: t,
|
|
8104
8104
|
label: n
|
|
8105
8105
|
}) => {
|
|
8106
|
-
const a =
|
|
8106
|
+
const a = $r(), i = ae((l) => () => t(l), [t]), o = (l) => e === l;
|
|
8107
8107
|
return /* @__PURE__ */ u(T, { gap: 2, children: [
|
|
8108
8108
|
/* @__PURE__ */ r(k, { size: "14px", fw: 500, children: n }),
|
|
8109
8109
|
/* @__PURE__ */ r(y, { justify: "flex-start", gap: "xs", children: Object.keys(a.colors).map((l) => {
|
|
@@ -8128,7 +8128,7 @@ const yi = {
|
|
|
8128
8128
|
value: d
|
|
8129
8129
|
})), [s.language]);
|
|
8130
8130
|
return /* @__PURE__ */ r(F, { ref: o, data: c, label: e, value: t, onChange: be(n), sx: a, disabled: !0 });
|
|
8131
|
-
}),
|
|
8131
|
+
}), $y = [{
|
|
8132
8132
|
label: "Filled",
|
|
8133
8133
|
value: "filled"
|
|
8134
8134
|
}, {
|
|
@@ -8151,7 +8151,7 @@ const yi = {
|
|
|
8151
8151
|
value: "gradient",
|
|
8152
8152
|
disabled: !0
|
|
8153
8153
|
}];
|
|
8154
|
-
function
|
|
8154
|
+
function Vy({
|
|
8155
8155
|
context: e
|
|
8156
8156
|
}) {
|
|
8157
8157
|
const {
|
|
@@ -8177,12 +8177,12 @@ function $y({
|
|
|
8177
8177
|
/* @__PURE__ */ u(T, { children: [
|
|
8178
8178
|
/* @__PURE__ */ r(f, { control: o, name: "content", render: ({
|
|
8179
8179
|
field: h
|
|
8180
|
-
}) => /* @__PURE__ */ r(
|
|
8180
|
+
}) => /* @__PURE__ */ r($, { label: "Content Template", description: "Filter values & context entries are supported", ...h, required: !0 }) }),
|
|
8181
8181
|
/* @__PURE__ */ r(A, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
8182
8182
|
/* @__PURE__ */ u(ze, { cols: 2, children: [
|
|
8183
8183
|
/* @__PURE__ */ r(f, { control: o, name: "variant", render: ({
|
|
8184
8184
|
field: h
|
|
8185
|
-
}) => /* @__PURE__ */ r(F, { label: "Variant", data:
|
|
8185
|
+
}) => /* @__PURE__ */ r(F, { label: "Variant", data: $y, ...h }) }),
|
|
8186
8186
|
/* @__PURE__ */ r(f, { control: o, name: "color", render: ({
|
|
8187
8187
|
field: h
|
|
8188
8188
|
}) => /* @__PURE__ */ r(My, { label: "Theme", ...h }) })
|
|
@@ -8260,7 +8260,7 @@ const Oy = {
|
|
|
8260
8260
|
migrator: new Ey(),
|
|
8261
8261
|
name: "button",
|
|
8262
8262
|
viewRender: Iy,
|
|
8263
|
-
configRender:
|
|
8263
|
+
configRender: Vy,
|
|
8264
8264
|
createConfig() {
|
|
8265
8265
|
return {
|
|
8266
8266
|
version: 2,
|
|
@@ -8277,7 +8277,7 @@ const Oy = {
|
|
|
8277
8277
|
label: n,
|
|
8278
8278
|
description: a
|
|
8279
8279
|
} = e;
|
|
8280
|
-
return /* @__PURE__ */ r(
|
|
8280
|
+
return /* @__PURE__ */ r(V, { ...t, children: /* @__PURE__ */ u(T, { gap: "0", children: [
|
|
8281
8281
|
/* @__PURE__ */ r(k, { size: "sm", children: n }),
|
|
8282
8282
|
/* @__PURE__ */ r(k, { size: "xs", opacity: 0.65, children: a })
|
|
8283
8283
|
] }) });
|
|
@@ -9074,7 +9074,7 @@ const hc = {
|
|
|
9074
9074
|
n(g);
|
|
9075
9075
|
}, [d, a.current]);
|
|
9076
9076
|
const h = z(() => d ? "none" : "block", [d]);
|
|
9077
|
-
return /* @__PURE__ */ r(
|
|
9077
|
+
return /* @__PURE__ */ r(V, { sx: {
|
|
9078
9078
|
display: h
|
|
9079
9079
|
}, children: /* @__PURE__ */ r(Gn, { ref: a, value: c, styles: {
|
|
9080
9080
|
root: {
|
|
@@ -9434,17 +9434,17 @@ function L_({
|
|
|
9434
9434
|
x_axis_data_key: e,
|
|
9435
9435
|
y_axis_data_key: n
|
|
9436
9436
|
});
|
|
9437
|
-
let
|
|
9438
|
-
return c.key === "name" && (
|
|
9437
|
+
let Ve = Object.entries(J);
|
|
9438
|
+
return c.key === "name" && (Ve = C.orderBy(Object.entries(J), 0, [c.order])), Ve.map(([Xe, Gt]) => {
|
|
9439
9439
|
const rn = Ae(de);
|
|
9440
9440
|
return rn.name = Xe, rn.color = void 0, "areaStyle" in rn && (rn.areaStyle.color = void 0), rn.data = Gt, rn;
|
|
9441
9441
|
});
|
|
9442
9442
|
}
|
|
9443
|
-
function
|
|
9443
|
+
function $_(e, t, n, a, i, o) {
|
|
9444
9444
|
const l = t.map((c) => [c, 0]);
|
|
9445
9445
|
return e.series.map((c) => L_(e, c, l, n, o, a)).flat().concat(k_(e.reference_lines, i, o, n, t, e.x_axis.type)).concat(S_(e.reference_areas, o));
|
|
9446
9446
|
}
|
|
9447
|
-
function
|
|
9447
|
+
function V_(e, t) {
|
|
9448
9448
|
const n = e.find((o) => o.axisDim === "x" && o.axisId === "main-x-axis");
|
|
9449
9449
|
if (!n)
|
|
9450
9450
|
return "";
|
|
@@ -9514,7 +9514,7 @@ function A_(e, t, n, a) {
|
|
|
9514
9514
|
</tr>`;
|
|
9515
9515
|
});
|
|
9516
9516
|
d.push(...h);
|
|
9517
|
-
const p = ft(e.x_axis.axisLabel.overflow.in_tooltip), g =
|
|
9517
|
+
const p = ft(e.x_axis.axisLabel.overflow.in_tooltip), g = V_(c, e);
|
|
9518
9518
|
return `
|
|
9519
9519
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
9520
9520
|
<div style="${p}">${g}</div>
|
|
@@ -9655,7 +9655,7 @@ const N_ = {
|
|
|
9655
9655
|
}]
|
|
9656
9656
|
};
|
|
9657
9657
|
function B_(e, t, n) {
|
|
9658
|
-
const a = vi(t, n), i = R_(e), o = C.uniq(gt(t, e.x_axis_data_key)), l =
|
|
9658
|
+
const a = vi(t, n), i = R_(e), o = C.uniq(gt(t, e.x_axis_data_key)), l = $_(e, o, t, i, n, a), s = w_(e, t), c = {
|
|
9659
9659
|
xAxis: E_(e, o),
|
|
9660
9660
|
yAxis: q_(e, i, l),
|
|
9661
9661
|
series: [...l, ...s],
|
|
@@ -9763,12 +9763,12 @@ function H_({
|
|
|
9763
9763
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
9764
9764
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.name`, control: e, render: ({
|
|
9765
9765
|
field: s
|
|
9766
|
-
}) => /* @__PURE__ */ r(
|
|
9766
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.reference_area.label"), required: !0, sx: {
|
|
9767
9767
|
flex: 1
|
|
9768
9768
|
}, ...s }) }),
|
|
9769
9769
|
/* @__PURE__ */ r(f, { name: `reference_areas.${t}.color`, control: e, render: ({
|
|
9770
9770
|
field: s
|
|
9771
|
-
}) => /* @__PURE__ */ r(
|
|
9771
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.color.label"), required: !0, sx: {
|
|
9772
9772
|
flex: 1
|
|
9773
9773
|
}, ...s }) })
|
|
9774
9774
|
] }),
|
|
@@ -9864,7 +9864,7 @@ function W_({
|
|
|
9864
9864
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
9865
9865
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
9866
9866
|
field: s
|
|
9867
|
-
}) => /* @__PURE__ */ r(
|
|
9867
|
+
}) => /* @__PURE__ */ r($, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
9868
9868
|
flex: 1
|
|
9869
9869
|
}, ...s }) }),
|
|
9870
9870
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -9875,7 +9875,7 @@ function W_({
|
|
|
9875
9875
|
] }),
|
|
9876
9876
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
9877
9877
|
field: s
|
|
9878
|
-
}) => /* @__PURE__ */ r(
|
|
9878
|
+
}) => /* @__PURE__ */ r($, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
9879
9879
|
flex: 1
|
|
9880
9880
|
}, ...s }) }),
|
|
9881
9881
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
@@ -9989,7 +9989,7 @@ function K_({
|
|
|
9989
9989
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
9990
9990
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.name`, control: e, render: ({
|
|
9991
9991
|
field: c
|
|
9992
|
-
}) => /* @__PURE__ */ r(
|
|
9992
|
+
}) => /* @__PURE__ */ r($, { label: i("common.name"), required: !0, sx: {
|
|
9993
9993
|
flex: 1
|
|
9994
9994
|
}, ...c }) }),
|
|
9995
9995
|
/* @__PURE__ */ r(f, { name: `regressions.${n}.group_by_key`, control: e, render: ({
|
|
@@ -10094,7 +10094,7 @@ function Y_({
|
|
|
10094
10094
|
const X_ = ({
|
|
10095
10095
|
value: e,
|
|
10096
10096
|
onChange: t
|
|
10097
|
-
}) => /* @__PURE__ */ r(
|
|
10097
|
+
}) => /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
|
|
10098
10098
|
a && t(a);
|
|
10099
10099
|
}, theme: "vs-dark", options: {
|
|
10100
10100
|
minimap: {
|
|
@@ -10140,7 +10140,7 @@ const X_ = ({
|
|
|
10140
10140
|
h(wi.dynamic.func_content);
|
|
10141
10141
|
};
|
|
10142
10142
|
return /* @__PURE__ */ u(q, { children: [
|
|
10143
|
-
/* @__PURE__ */ r(
|
|
10143
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
10144
10144
|
width: "50%"
|
|
10145
10145
|
}, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
|
|
10146
10146
|
flexGrow: 0
|
|
@@ -10340,7 +10340,7 @@ function tx({
|
|
|
10340
10340
|
color: "grape"
|
|
10341
10341
|
} })
|
|
10342
10342
|
] }),
|
|
10343
|
-
i && /* @__PURE__ */ r(
|
|
10343
|
+
i && /* @__PURE__ */ r($, { label: l("panel.variable.aggregation.fallback_value"), description: l("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: g })
|
|
10344
10344
|
] });
|
|
10345
10345
|
}
|
|
10346
10346
|
const Ci = R.forwardRef(tx), Un = ee(({
|
|
@@ -10425,7 +10425,7 @@ function nx({
|
|
|
10425
10425
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
10426
10426
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
10427
10427
|
field: s
|
|
10428
|
-
}) => /* @__PURE__ */ r(
|
|
10428
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
10429
10429
|
flexGrow: 1
|
|
10430
10430
|
}, ...s }) }),
|
|
10431
10431
|
/* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
|
|
@@ -10437,17 +10437,17 @@ function nx({
|
|
|
10437
10437
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
10438
10438
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
10439
10439
|
field: s
|
|
10440
|
-
}) => /* @__PURE__ */ r(
|
|
10440
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
|
|
10441
10441
|
flexGrow: 1
|
|
10442
10442
|
}, ...s }) }),
|
|
10443
10443
|
/* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
10444
10444
|
field: s
|
|
10445
|
-
}) => /* @__PURE__ */ r(
|
|
10445
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.exact"), sx: {
|
|
10446
10446
|
flexGrow: 1
|
|
10447
10447
|
}, ...s }) }),
|
|
10448
10448
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
10449
10449
|
field: s
|
|
10450
|
-
}) => /* @__PURE__ */ r(
|
|
10450
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
|
|
10451
10451
|
flexGrow: 1
|
|
10452
10452
|
}, ...s }) })
|
|
10453
10453
|
] })
|
|
@@ -10477,7 +10477,7 @@ function rx({
|
|
|
10477
10477
|
return /* @__PURE__ */ u(q, { children: [
|
|
10478
10478
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
10479
10479
|
field: s
|
|
10480
|
-
}) => /* @__PURE__ */ r(
|
|
10480
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
10481
10481
|
flexGrow: 1
|
|
10482
10482
|
}, ...s }) }),
|
|
10483
10483
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: a("chart.series.line.line_settings"), labelPosition: "center" }),
|
|
@@ -10506,12 +10506,12 @@ function rx({
|
|
|
10506
10506
|
/* @__PURE__ */ u(T, { children: [
|
|
10507
10507
|
/* @__PURE__ */ r(f, { name: `series.${t}.smooth`, control: e, render: ({
|
|
10508
10508
|
field: s
|
|
10509
|
-
}) => /* @__PURE__ */ r(
|
|
10509
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
10510
10510
|
flexGrow: 1
|
|
10511
10511
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.smooth_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
|
|
10512
10512
|
/* @__PURE__ */ r(f, { name: `series.${t}.display_name_on_line`, control: e, render: ({
|
|
10513
10513
|
field: s
|
|
10514
|
-
}) => /* @__PURE__ */ r(
|
|
10514
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
10515
10515
|
flexGrow: 1
|
|
10516
10516
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.show_name_on_line"), checked: s.value ?? !1, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) })
|
|
10517
10517
|
] })
|
|
@@ -10519,7 +10519,7 @@ function rx({
|
|
|
10519
10519
|
/* @__PURE__ */ u(T, { children: [
|
|
10520
10520
|
/* @__PURE__ */ r(f, { name: `series.${t}.showSymbol`, control: e, render: ({
|
|
10521
10521
|
field: s
|
|
10522
|
-
}) => /* @__PURE__ */ r(
|
|
10522
|
+
}) => /* @__PURE__ */ r(V, { mt: 10, mb: -10, sx: {
|
|
10523
10523
|
flexGrow: 1
|
|
10524
10524
|
}, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.show_symbol_on_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
|
|
10525
10525
|
o && /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
|
|
@@ -10566,7 +10566,7 @@ function ix({
|
|
|
10566
10566
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
10567
10567
|
/* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
|
|
10568
10568
|
field: s
|
|
10569
|
-
}) => /* @__PURE__ */ r(
|
|
10569
|
+
}) => /* @__PURE__ */ r($, { label: i("chart.series.name"), required: !0, sx: {
|
|
10570
10570
|
flex: 1
|
|
10571
10571
|
}, ...s }) }),
|
|
10572
10572
|
/* @__PURE__ */ r(f, { name: `series.${t}.yAxisIndex`, control: e, render: ({
|
|
@@ -10674,7 +10674,7 @@ const lx = D(({
|
|
|
10674
10674
|
}) => {
|
|
10675
10675
|
const {
|
|
10676
10676
|
panel: n
|
|
10677
|
-
} =
|
|
10677
|
+
} = $e(), {
|
|
10678
10678
|
t: a
|
|
10679
10679
|
} = _();
|
|
10680
10680
|
return /* @__PURE__ */ u(T, { children: [
|
|
@@ -10706,7 +10706,7 @@ const lx = D(({
|
|
|
10706
10706
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
10707
10707
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
10708
10708
|
field: a
|
|
10709
|
-
}) => /* @__PURE__ */ r(
|
|
10709
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
10710
10710
|
flex: 1
|
|
10711
10711
|
}, ...a }) }),
|
|
10712
10712
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -10799,7 +10799,7 @@ function hx({
|
|
|
10799
10799
|
return /* @__PURE__ */ u(T, { children: [
|
|
10800
10800
|
/* @__PURE__ */ r(f, { name: "x_axis_name", control: e, render: ({
|
|
10801
10801
|
field: o
|
|
10802
|
-
}) => /* @__PURE__ */ r(
|
|
10802
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.x_axis.x_axis_name"), sx: {
|
|
10803
10803
|
flex: 1
|
|
10804
10804
|
}, ...o }) }),
|
|
10805
10805
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
@@ -10883,7 +10883,7 @@ function px({
|
|
|
10883
10883
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
10884
10884
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
10885
10885
|
field: a
|
|
10886
|
-
}) => /* @__PURE__ */ r(
|
|
10886
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.y_axis.y_axis_name"), required: !0, sx: {
|
|
10887
10887
|
flex: 1
|
|
10888
10888
|
}, ...a }) }),
|
|
10889
10889
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -10914,10 +10914,10 @@ function px({
|
|
|
10914
10914
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
10915
10915
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
10916
10916
|
field: a
|
|
10917
|
-
}) => /* @__PURE__ */ r(
|
|
10917
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.y_axis.value_min"), ...a }) }),
|
|
10918
10918
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
10919
10919
|
field: a
|
|
10920
|
-
}) => /* @__PURE__ */ r(
|
|
10920
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.y_axis.value_max"), ...a }) })
|
|
10921
10921
|
] })
|
|
10922
10922
|
] }),
|
|
10923
10923
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.y_axis.behavior"), labelPosition: "center" }),
|
|
@@ -11269,7 +11269,7 @@ const Ix = ({
|
|
|
11269
11269
|
return /* @__PURE__ */ u(T, { children: [
|
|
11270
11270
|
/* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.name`, control: t, render: ({
|
|
11271
11271
|
field: p
|
|
11272
|
-
}) => /* @__PURE__ */ r(
|
|
11272
|
+
}) => /* @__PURE__ */ r($, { label: i("viz.funnel_chart.series_name"), ...p }) }) }),
|
|
11273
11273
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
11274
11274
|
/* @__PURE__ */ r(f, { name: `series.${n}.level_name_data_key`, control: t, render: ({
|
|
11275
11275
|
field: p
|
|
@@ -11288,13 +11288,13 @@ const Ix = ({
|
|
|
11288
11288
|
width: "100%"
|
|
11289
11289
|
}, children: [
|
|
11290
11290
|
/* @__PURE__ */ r(k, { size: "sm", children: i("viz.funnel_chart.min_value") }),
|
|
11291
|
-
/* @__PURE__ */ r(re, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r(
|
|
11291
|
+
/* @__PURE__ */ r(re, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(f, { name: `series.${n}.min.enable_value`, control: t, render: ({
|
|
11292
11292
|
field: g
|
|
11293
11293
|
}) => /* @__PURE__ */ r(Z, { size: "xs", checked: g.value, onChange: (b) => g.onChange(b.currentTarget.checked) }) }) }) })
|
|
11294
11294
|
] }), ...p }) }),
|
|
11295
11295
|
/* @__PURE__ */ r(f, { name: `series.${n}.min.size`, control: t, render: ({
|
|
11296
11296
|
field: p
|
|
11297
|
-
}) => /* @__PURE__ */ r(
|
|
11297
|
+
}) => /* @__PURE__ */ r($, { placeholder: "0%", label: i("viz.funnel_chart.min_size"), ...p }) })
|
|
11298
11298
|
] }),
|
|
11299
11299
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
11300
11300
|
/* @__PURE__ */ r(f, { name: `series.${n}.max.value`, control: t, render: ({
|
|
@@ -11305,13 +11305,13 @@ const Ix = ({
|
|
|
11305
11305
|
width: "100%"
|
|
11306
11306
|
}, children: [
|
|
11307
11307
|
/* @__PURE__ */ r(k, { size: "sm", children: i("viz.funnel_chart.max_value") }),
|
|
11308
|
-
/* @__PURE__ */ r(re, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r(
|
|
11308
|
+
/* @__PURE__ */ r(re, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(f, { name: `series.${n}.max.enable_value`, control: t, render: ({
|
|
11309
11309
|
field: g
|
|
11310
11310
|
}) => /* @__PURE__ */ r(Z, { size: "xs", checked: g.value, onChange: (b) => g.onChange(b.currentTarget.checked) }) }) }) })
|
|
11311
11311
|
] }), ...p }) }),
|
|
11312
11312
|
/* @__PURE__ */ r(f, { name: `series.${n}.max.size`, control: t, render: ({
|
|
11313
11313
|
field: p
|
|
11314
|
-
}) => /* @__PURE__ */ r(
|
|
11314
|
+
}) => /* @__PURE__ */ r($, { placeholder: "100%", label: i("viz.funnel_chart.max_size"), ...p }) })
|
|
11315
11315
|
] }),
|
|
11316
11316
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
11317
11317
|
/* @__PURE__ */ r(f, { name: `series.${n}.orient`, control: t, render: ({
|
|
@@ -11334,7 +11334,7 @@ const Ix = ({
|
|
|
11334
11334
|
/* @__PURE__ */ r(f, { name: `series.${n}.axisLabel.position`, control: t, render: ({
|
|
11335
11335
|
field: p
|
|
11336
11336
|
}) => /* @__PURE__ */ r(Un, { label: i("chart.label_position.label"), options: d[c], ...p }) }),
|
|
11337
|
-
/* @__PURE__ */ r(
|
|
11337
|
+
/* @__PURE__ */ r(V, {})
|
|
11338
11338
|
] }),
|
|
11339
11339
|
/* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.axisLabel.overflow`, control: t, render: ({
|
|
11340
11340
|
field: p
|
|
@@ -11392,7 +11392,7 @@ function Lx({
|
|
|
11392
11392
|
/* @__PURE__ */ r(Mx, { control: i, watch: l })
|
|
11393
11393
|
] }) });
|
|
11394
11394
|
}
|
|
11395
|
-
const
|
|
11395
|
+
const $x = {
|
|
11396
11396
|
funnel_chart: {
|
|
11397
11397
|
viz_name: "Funnel Chart",
|
|
11398
11398
|
series_name: "Series Name",
|
|
@@ -11414,7 +11414,7 @@ const Vx = {
|
|
|
11414
11414
|
gap: "Gap",
|
|
11415
11415
|
align: "Align"
|
|
11416
11416
|
}
|
|
11417
|
-
},
|
|
11417
|
+
}, Vx = {
|
|
11418
11418
|
funnel_chart: {
|
|
11419
11419
|
viz_name: "漏斗图",
|
|
11420
11420
|
series_name: "系列名称",
|
|
@@ -11438,10 +11438,10 @@ const Vx = {
|
|
|
11438
11438
|
}
|
|
11439
11439
|
}, Px = [{
|
|
11440
11440
|
lang: "en",
|
|
11441
|
-
resources:
|
|
11441
|
+
resources: $x
|
|
11442
11442
|
}, {
|
|
11443
11443
|
lang: "zh",
|
|
11444
|
-
resources:
|
|
11444
|
+
resources: Vx
|
|
11445
11445
|
}];
|
|
11446
11446
|
function Ax(e) {
|
|
11447
11447
|
return {
|
|
@@ -11538,7 +11538,7 @@ const Ox = {
|
|
|
11538
11538
|
page: e,
|
|
11539
11539
|
setPage: t,
|
|
11540
11540
|
totalPages: n
|
|
11541
|
-
}) => /* @__PURE__ */ r(
|
|
11541
|
+
}) => /* @__PURE__ */ r(Vr, { size: "xs", withControls: !1, siblings: 1, color: "gray", value: e, onChange: t, total: n }), qx = ({
|
|
11542
11542
|
page: e,
|
|
11543
11543
|
setPage: t,
|
|
11544
11544
|
totalPages: n
|
|
@@ -11550,7 +11550,7 @@ const Ox = {
|
|
|
11550
11550
|
return /* @__PURE__ */ r(Ra, { size: "xs", value: e, onChange: (i) => {
|
|
11551
11551
|
t(Number(i.currentTarget.value));
|
|
11552
11552
|
}, data: a });
|
|
11553
|
-
}, Nx = (e) => e.totalPages <= 1 ? null : /* @__PURE__ */ r(
|
|
11553
|
+
}, Nx = (e) => e.totalPages <= 1 ? null : /* @__PURE__ */ r(V, { sx: {
|
|
11554
11554
|
position: "absolute",
|
|
11555
11555
|
top: "calc(1rem + 5px)",
|
|
11556
11556
|
right: "calc(1rem + 5px)",
|
|
@@ -11860,10 +11860,10 @@ const dr = ({
|
|
|
11860
11860
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
11861
11861
|
/* @__PURE__ */ r(f, { name: "visualMap.text.1", control: a, render: ({
|
|
11862
11862
|
field: d
|
|
11863
|
-
}) => /* @__PURE__ */ r(
|
|
11863
|
+
}) => /* @__PURE__ */ r($, { label: t("chart.visual_map.min_text"), ...d }) }),
|
|
11864
11864
|
/* @__PURE__ */ r(f, { name: "visualMap.text.0", control: a, render: ({
|
|
11865
11865
|
field: d
|
|
11866
|
-
}) => /* @__PURE__ */ r(
|
|
11866
|
+
}) => /* @__PURE__ */ r($, { label: t("chart.visual_map.max_text"), ...d }) })
|
|
11867
11867
|
] }),
|
|
11868
11868
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
11869
11869
|
/* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
|
|
@@ -11905,7 +11905,7 @@ const dr = ({
|
|
|
11905
11905
|
itemHeight: a
|
|
11906
11906
|
} = e, o = t === "horizontal" ? n : a, {
|
|
11907
11907
|
panel: l
|
|
11908
|
-
} =
|
|
11908
|
+
} = $e(), s = Hr(e, l.variableValueMap);
|
|
11909
11909
|
return /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(Ge, { echarts: Ne, option: {
|
|
11910
11910
|
visualMap: s
|
|
11911
11911
|
}, style: {
|
|
@@ -11950,7 +11950,7 @@ const dr = ({
|
|
|
11950
11950
|
/* @__PURE__ */ r(mt.Dropdown, { children: /* @__PURE__ */ u(y, { wrap: "nowrap", gap: 8, children: [
|
|
11951
11951
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.value`, control: a, render: ({
|
|
11952
11952
|
field: p
|
|
11953
|
-
}) => /* @__PURE__ */ r(
|
|
11953
|
+
}) => /* @__PURE__ */ r($, { ...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)) }) }),
|
|
11954
11954
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.symbol`, control: a, render: ({
|
|
11955
11955
|
field: p
|
|
11956
11956
|
}) => /* @__PURE__ */ r(F, { size: "xs", data: wo.lower, ...p, onChange: be((g) => p.onChange(g)) }) }),
|
|
@@ -11963,7 +11963,7 @@ const dr = ({
|
|
|
11963
11963
|
}) => /* @__PURE__ */ r(F, { size: "xs", data: wo.upper, ...p, onChange: be((g) => p.onChange(g)) }) }),
|
|
11964
11964
|
/* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.value`, control: a, render: ({
|
|
11965
11965
|
field: p
|
|
11966
|
-
}) => /* @__PURE__ */ r(
|
|
11966
|
+
}) => /* @__PURE__ */ r($, { ...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)) }) })
|
|
11967
11967
|
] }) })
|
|
11968
11968
|
] }) });
|
|
11969
11969
|
}, tv = ({
|
|
@@ -11981,7 +11981,7 @@ const dr = ({
|
|
|
11981
11981
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ev, { form: e, index: t }) }),
|
|
11982
11982
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.label`, control: a, render: ({
|
|
11983
11983
|
field: o
|
|
11984
|
-
}) => /* @__PURE__ */ r(
|
|
11984
|
+
}) => /* @__PURE__ */ r($, { size: "xs", placeholder: "", ...o, onChange: (l) => o.onChange(l.currentTarget.value) }) }) }),
|
|
11985
11985
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.color`, control: a, render: ({
|
|
11986
11986
|
field: o
|
|
11987
11987
|
}) => /* @__PURE__ */ r(cn, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
|
|
@@ -12087,7 +12087,7 @@ const dr = ({
|
|
|
12087
12087
|
}], [n.language]), l = (s) => {
|
|
12088
12088
|
switch (s) {
|
|
12089
12089
|
case "continuous":
|
|
12090
|
-
e.setValue("visualMap",
|
|
12090
|
+
e.setValue("visualMap", Vs());
|
|
12091
12091
|
break;
|
|
12092
12092
|
case "piecewise":
|
|
12093
12093
|
e.setValue("visualMap", mg());
|
|
@@ -12311,7 +12311,7 @@ function dv({
|
|
|
12311
12311
|
groupedFullData: h
|
|
12312
12312
|
} = iv(l, o);
|
|
12313
12313
|
N(() => {
|
|
12314
|
-
const x =
|
|
12314
|
+
const x = Va(h).flat();
|
|
12315
12315
|
We(t, mc(o, l, x, i, s, c));
|
|
12316
12316
|
}, [h]);
|
|
12317
12317
|
const [p, g] = Q(1), b = ov(h, o, p);
|
|
@@ -12338,7 +12338,7 @@ function uv({
|
|
|
12338
12338
|
}, ...i }) }),
|
|
12339
12339
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
12340
12340
|
field: i
|
|
12341
|
-
}) => /* @__PURE__ */ r(
|
|
12341
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
12342
12342
|
flex: 1
|
|
12343
12343
|
}, ...i }) })
|
|
12344
12344
|
] }),
|
|
@@ -12388,7 +12388,7 @@ const pv = ({
|
|
|
12388
12388
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
12389
12389
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
12390
12390
|
field: a
|
|
12391
|
-
}) => /* @__PURE__ */ r(
|
|
12391
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
12392
12392
|
flex: 1
|
|
12393
12393
|
}, ...a }) }),
|
|
12394
12394
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -12453,7 +12453,7 @@ function fv({
|
|
|
12453
12453
|
}, ...a }) }),
|
|
12454
12454
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
12455
12455
|
field: a
|
|
12456
|
-
}) => /* @__PURE__ */ r(
|
|
12456
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
12457
12457
|
flex: 1
|
|
12458
12458
|
}, ...a }) })
|
|
12459
12459
|
] }),
|
|
@@ -12491,7 +12491,7 @@ function bv({
|
|
|
12491
12491
|
}, ...a }) }),
|
|
12492
12492
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
12493
12493
|
field: a
|
|
12494
|
-
}) => /* @__PURE__ */ r(
|
|
12494
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
12495
12495
|
flex: 1
|
|
12496
12496
|
}, ...a }) })
|
|
12497
12497
|
] }),
|
|
@@ -12818,7 +12818,7 @@ const Mv = {
|
|
|
12818
12818
|
label: "Click chart series"
|
|
12819
12819
|
}
|
|
12820
12820
|
}
|
|
12821
|
-
},
|
|
12821
|
+
}, $v = {
|
|
12822
12822
|
pareto_chart: {
|
|
12823
12823
|
viz_name: "帕累托图",
|
|
12824
12824
|
line_80_20: {
|
|
@@ -12832,12 +12832,12 @@ const Mv = {
|
|
|
12832
12832
|
label: "点击柱或线"
|
|
12833
12833
|
}
|
|
12834
12834
|
}
|
|
12835
|
-
},
|
|
12835
|
+
}, Vv = [{
|
|
12836
12836
|
lang: "en",
|
|
12837
12837
|
resources: Lv
|
|
12838
12838
|
}, {
|
|
12839
12839
|
lang: "zh",
|
|
12840
|
-
resources:
|
|
12840
|
+
resources: $v
|
|
12841
12841
|
}], bc = {
|
|
12842
12842
|
id: "builtin:echarts:click-echart:series",
|
|
12843
12843
|
// use same id as cartesian's, but different payload
|
|
@@ -13252,7 +13252,7 @@ function Xv({
|
|
|
13252
13252
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
13253
13253
|
/* @__PURE__ */ r(f, { name: "bar.name", control: e, render: ({
|
|
13254
13254
|
field: a
|
|
13255
|
-
}) => /* @__PURE__ */ r(
|
|
13255
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
13256
13256
|
flex: 1
|
|
13257
13257
|
}, ...a }) }),
|
|
13258
13258
|
/* @__PURE__ */ r(f, { name: "bar.nameAlignment", control: e, render: ({
|
|
@@ -13286,7 +13286,7 @@ function Zv({
|
|
|
13286
13286
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
13287
13287
|
/* @__PURE__ */ r(f, { name: "line.name", control: e, render: ({
|
|
13288
13288
|
field: a
|
|
13289
|
-
}) => /* @__PURE__ */ r(
|
|
13289
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
13290
13290
|
flex: 1
|
|
13291
13291
|
}, ...a }) }),
|
|
13292
13292
|
/* @__PURE__ */ r(f, { name: "line.nameAlignment", control: e, render: ({
|
|
@@ -13370,7 +13370,7 @@ function nw({
|
|
|
13370
13370
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
13371
13371
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
13372
13372
|
field: s
|
|
13373
|
-
}) => /* @__PURE__ */ r(
|
|
13373
|
+
}) => /* @__PURE__ */ r($, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
13374
13374
|
flex: 1
|
|
13375
13375
|
}, ...s }) }),
|
|
13376
13376
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -13381,7 +13381,7 @@ function nw({
|
|
|
13381
13381
|
] }),
|
|
13382
13382
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
13383
13383
|
field: s
|
|
13384
|
-
}) => /* @__PURE__ */ r(
|
|
13384
|
+
}) => /* @__PURE__ */ r($, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
13385
13385
|
flex: 1
|
|
13386
13386
|
}, ...s }) }),
|
|
13387
13387
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
@@ -13469,7 +13469,7 @@ function aw({
|
|
|
13469
13469
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
13470
13470
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
13471
13471
|
field: a
|
|
13472
|
-
}) => /* @__PURE__ */ r(
|
|
13472
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
13473
13473
|
flex: 1
|
|
13474
13474
|
}, ...a }) }),
|
|
13475
13475
|
/* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -13753,7 +13753,7 @@ const bw = {
|
|
|
13753
13753
|
};
|
|
13754
13754
|
},
|
|
13755
13755
|
triggers: [bc],
|
|
13756
|
-
translation:
|
|
13756
|
+
translation: Vv
|
|
13757
13757
|
};
|
|
13758
13758
|
function yw(e, t, n, a) {
|
|
13759
13759
|
const i = a[n];
|
|
@@ -13868,7 +13868,7 @@ function ww(e, t, n) {
|
|
|
13868
13868
|
},
|
|
13869
13869
|
labelLayout: function(a) {
|
|
13870
13870
|
const i = a.labelRect.x < n / 2, o = a.labelLinePoints;
|
|
13871
|
-
return
|
|
13871
|
+
return $a(o, [2, 0], i ? a.labelRect.x : a.labelRect.x + a.labelRect.width), {
|
|
13872
13872
|
labelLinePoints: o
|
|
13873
13873
|
};
|
|
13874
13874
|
},
|
|
@@ -14061,17 +14061,17 @@ function Lw(e) {
|
|
|
14061
14061
|
const [t, n] = e;
|
|
14062
14062
|
return [Number(t.replace("%", "")), Number(n.replace("%", ""))];
|
|
14063
14063
|
}
|
|
14064
|
-
function
|
|
14064
|
+
function $w(e) {
|
|
14065
14065
|
const [t, n] = e;
|
|
14066
14066
|
return [Number.isFinite(t) ? `${t}%` : "", Number.isFinite(n) ? `${n}%` : ""];
|
|
14067
14067
|
}
|
|
14068
|
-
const
|
|
14068
|
+
const Vw = ee(({
|
|
14069
14069
|
label: e,
|
|
14070
14070
|
value: t,
|
|
14071
14071
|
onChange: n
|
|
14072
14072
|
}, a) => {
|
|
14073
14073
|
const [i, o] = Q(Lw(t)), l = ae((s) => {
|
|
14074
|
-
n(
|
|
14074
|
+
n($w(s));
|
|
14075
14075
|
}, [n]);
|
|
14076
14076
|
return /* @__PURE__ */ u(T, { gap: 4, mt: 2, mb: "1rem", children: [
|
|
14077
14077
|
/* @__PURE__ */ r("label", { className: "form-field-label required", children: e }),
|
|
@@ -14204,7 +14204,7 @@ const Ow = ({
|
|
|
14204
14204
|
/* @__PURE__ */ u(W.Dropdown, { children: [
|
|
14205
14205
|
/* @__PURE__ */ r(W.Label, { children: n("viz.pie_chart.color.map.click_to_apply_palette") }),
|
|
14206
14206
|
/* @__PURE__ */ r(W.Divider, {}),
|
|
14207
|
-
Rw.map((o) => /* @__PURE__ */ r(W.Item, { onClick: () => i(o.colors), children: /* @__PURE__ */ r(
|
|
14207
|
+
Rw.map((o) => /* @__PURE__ */ r(W.Item, { onClick: () => i(o.colors), children: /* @__PURE__ */ r(V, { h: 28, style: {
|
|
14208
14208
|
backgroundImage: Ew(o.colors)
|
|
14209
14209
|
} }) }, o.name))
|
|
14210
14210
|
] })
|
|
@@ -14265,7 +14265,7 @@ function qw({
|
|
|
14265
14265
|
}, [i]);
|
|
14266
14266
|
const [h] = s(["label_field", "value_field", "color_field", "color"]), {
|
|
14267
14267
|
panel: p
|
|
14268
|
-
} =
|
|
14268
|
+
} = $e(), g = z(() => {
|
|
14269
14269
|
if (!h)
|
|
14270
14270
|
return [];
|
|
14271
14271
|
const b = gt(p.data, h);
|
|
@@ -14294,12 +14294,12 @@ function qw({
|
|
|
14294
14294
|
}) => /* @__PURE__ */ r(uc, { label: a("chart.series_order.label"), ...b }) }),
|
|
14295
14295
|
/* @__PURE__ */ r(f, { control: o, name: "radius", render: ({
|
|
14296
14296
|
field: b
|
|
14297
|
-
}) => /* @__PURE__ */ r(
|
|
14297
|
+
}) => /* @__PURE__ */ r(Vw, { label: a("viz.pie_chart.radius.label"), ...b }) }),
|
|
14298
14298
|
/* @__PURE__ */ r(A, { label: a("viz.pie_chart.others_sector.title"), labelPosition: "center", variant: "dashed" }),
|
|
14299
14299
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
14300
14300
|
/* @__PURE__ */ r(f, { control: o, name: "others_sector.label", render: ({
|
|
14301
14301
|
field: b
|
|
14302
|
-
}) => /* @__PURE__ */ r(
|
|
14302
|
+
}) => /* @__PURE__ */ r($, { size: "xs", label: a("viz.pie_chart.others_sector.label"), ...b, value: b.value ?? "" }) }),
|
|
14303
14303
|
/* @__PURE__ */ r(f, { control: o, name: "others_sector.threshold", render: ({
|
|
14304
14304
|
field: b
|
|
14305
14305
|
}) => /* @__PURE__ */ r(ne, { size: "xs", label: a("viz.pie_chart.others_sector.threshold"), suffix: "%", ...b, value: b.value ?? "" }) })
|
|
@@ -14880,7 +14880,7 @@ function m0({
|
|
|
14880
14880
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", align: "top", children: [
|
|
14881
14881
|
/* @__PURE__ */ r(f, { name: `dimensions.${t}.name`, control: e, render: ({
|
|
14882
14882
|
field: a
|
|
14883
|
-
}) => /* @__PURE__ */ r(
|
|
14883
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
14884
14884
|
flex: 1
|
|
14885
14885
|
}, ...a }) }),
|
|
14886
14886
|
/* @__PURE__ */ r(f, { name: `dimensions.${t}.data_key`, control: e, render: ({
|
|
@@ -14898,7 +14898,7 @@ function m0({
|
|
|
14898
14898
|
fieldState: i
|
|
14899
14899
|
}) => {
|
|
14900
14900
|
var o;
|
|
14901
|
-
return /* @__PURE__ */ r(
|
|
14901
|
+
return /* @__PURE__ */ r($, { label: n("common.max"), required: !0, sx: {
|
|
14902
14902
|
flex: 1
|
|
14903
14903
|
}, ...a, error: (o = i.error) == null ? void 0 : o.message });
|
|
14904
14904
|
} })
|
|
@@ -15288,7 +15288,7 @@ function L0(e, t) {
|
|
|
15288
15288
|
} = e.regression;
|
|
15289
15289
|
return n ? M0(e, t) : I0(e, t);
|
|
15290
15290
|
}
|
|
15291
|
-
function
|
|
15291
|
+
function $0(e) {
|
|
15292
15292
|
return Array.isArray(e) || (e = [e]), e.map((t) => ({
|
|
15293
15293
|
marker: t.marker,
|
|
15294
15294
|
label: t.seriesName,
|
|
@@ -15296,11 +15296,11 @@ function V0(e) {
|
|
|
15296
15296
|
y: t.value[1]
|
|
15297
15297
|
}));
|
|
15298
15298
|
}
|
|
15299
|
-
function
|
|
15299
|
+
function V0(e) {
|
|
15300
15300
|
return me.getTooltip({
|
|
15301
15301
|
trigger: "axis",
|
|
15302
15302
|
formatter: (t) => {
|
|
15303
|
-
const n =
|
|
15303
|
+
const n = $0(t);
|
|
15304
15304
|
return n.length === 0 ? "" : `
|
|
15305
15305
|
<table style="width: auto">
|
|
15306
15306
|
<thead>
|
|
@@ -15388,7 +15388,7 @@ function R0(e, t) {
|
|
|
15388
15388
|
nameGap: 5
|
|
15389
15389
|
}),
|
|
15390
15390
|
series: [...n, ...a],
|
|
15391
|
-
tooltip:
|
|
15391
|
+
tooltip: V0(e),
|
|
15392
15392
|
legend: {
|
|
15393
15393
|
show: !0,
|
|
15394
15394
|
type: "scroll",
|
|
@@ -15703,7 +15703,7 @@ function W0({
|
|
|
15703
15703
|
return /* @__PURE__ */ u(T, { children: [
|
|
15704
15704
|
/* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "regression.name", control: e, render: ({
|
|
15705
15705
|
field: s
|
|
15706
|
-
}) => /* @__PURE__ */ r(
|
|
15706
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
15707
15707
|
flex: 1
|
|
15708
15708
|
}, ...s }) }) }),
|
|
15709
15709
|
/* @__PURE__ */ r(f, { name: "regression.group_by_key", control: e, render: ({
|
|
@@ -15736,7 +15736,7 @@ function U0({
|
|
|
15736
15736
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
15737
15737
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
15738
15738
|
field: n
|
|
15739
|
-
}) => /* @__PURE__ */ r(
|
|
15739
|
+
}) => /* @__PURE__ */ r($, { label: "X轴名称", sx: {
|
|
15740
15740
|
flex: 1
|
|
15741
15741
|
}, ...n }) }),
|
|
15742
15742
|
/* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -15778,7 +15778,7 @@ function K0({
|
|
|
15778
15778
|
return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
15779
15779
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
15780
15780
|
field: n
|
|
15781
|
-
}) => /* @__PURE__ */ r(
|
|
15781
|
+
}) => /* @__PURE__ */ r($, { label: "Y轴名称", sx: {
|
|
15782
15782
|
flex: 1
|
|
15783
15783
|
}, ...n }) }),
|
|
15784
15784
|
/* @__PURE__ */ r(f, { name: "regression.y_axis_data_key", control: e, render: ({
|
|
@@ -15958,7 +15958,7 @@ const r1 = {
|
|
|
15958
15958
|
}) => {
|
|
15959
15959
|
const {
|
|
15960
15960
|
panel: t
|
|
15961
|
-
} =
|
|
15961
|
+
} = $e(), {
|
|
15962
15962
|
t: n
|
|
15963
15963
|
} = _(), {
|
|
15964
15964
|
value: a,
|
|
@@ -16545,7 +16545,7 @@ function L1({
|
|
|
16545
16545
|
}
|
|
16546
16546
|
};
|
|
16547
16547
|
}
|
|
16548
|
-
function
|
|
16548
|
+
function $1({
|
|
16549
16549
|
type: e,
|
|
16550
16550
|
...t
|
|
16551
16551
|
}, n) {
|
|
@@ -16576,7 +16576,7 @@ function V1({
|
|
|
16576
16576
|
}
|
|
16577
16577
|
};
|
|
16578
16578
|
}
|
|
16579
|
-
function
|
|
16579
|
+
function V1(e, t, n, a) {
|
|
16580
16580
|
return e.map((i) => {
|
|
16581
16581
|
const o = i.orientation === "horizontal", l = o ? "yAxis" : "xAxis", s = o ? "insideEndTop" : "end";
|
|
16582
16582
|
return {
|
|
@@ -16624,7 +16624,7 @@ function P1({
|
|
|
16624
16624
|
yAxisIndex: 0,
|
|
16625
16625
|
datasetIndex: 0,
|
|
16626
16626
|
itemStyle: {
|
|
16627
|
-
color:
|
|
16627
|
+
color: $1(t.color, n)
|
|
16628
16628
|
},
|
|
16629
16629
|
symbolSize: L1(t.symbolSize, n),
|
|
16630
16630
|
encode: {
|
|
@@ -16634,7 +16634,7 @@ function P1({
|
|
|
16634
16634
|
};
|
|
16635
16635
|
}
|
|
16636
16636
|
function A1(e, t, n, a) {
|
|
16637
|
-
return [P1(e, a)].concat(
|
|
16637
|
+
return [P1(e, a)].concat(V1(e.reference_lines, n, a, t)).concat(M1({
|
|
16638
16638
|
reference_areas: e.reference_areas,
|
|
16639
16639
|
variableValueMap: a
|
|
16640
16640
|
}));
|
|
@@ -16914,7 +16914,7 @@ const H1 = ee(({
|
|
|
16914
16914
|
return /* @__PURE__ */ u(T, { children: [
|
|
16915
16915
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.content.label"), labelPosition: "right" }),
|
|
16916
16916
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
16917
|
-
/* @__PURE__ */ r(
|
|
16917
|
+
/* @__PURE__ */ r($, { label: l("chart.reference_area.content.content_text"), value: e.content.text, onChange: (d) => c("content.text", d.currentTarget.value) }),
|
|
16918
16918
|
/* @__PURE__ */ r(Un, { label: l("chart.reference_area.content.text_position"), value: e.label.position, onChange: (d) => c("label.position", d) })
|
|
16919
16919
|
] }),
|
|
16920
16920
|
/* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.endpoint.labels"), labelPosition: "right" }),
|
|
@@ -17008,7 +17008,7 @@ function U1({
|
|
|
17008
17008
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
17009
17009
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
17010
17010
|
field: s
|
|
17011
|
-
}) => /* @__PURE__ */ r(
|
|
17011
|
+
}) => /* @__PURE__ */ r($, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
17012
17012
|
flex: 1
|
|
17013
17013
|
}, ...s }) }),
|
|
17014
17014
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -17019,7 +17019,7 @@ function U1({
|
|
|
17019
17019
|
] }),
|
|
17020
17020
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
17021
17021
|
field: s
|
|
17022
|
-
}) => /* @__PURE__ */ r(
|
|
17022
|
+
}) => /* @__PURE__ */ r($, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
17023
17023
|
flex: 1
|
|
17024
17024
|
}, ...s }) }),
|
|
17025
17025
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
@@ -17104,7 +17104,7 @@ function K1({
|
|
|
17104
17104
|
const Y1 = ({
|
|
17105
17105
|
value: e,
|
|
17106
17106
|
onChange: t
|
|
17107
|
-
}) => /* @__PURE__ */ r(
|
|
17107
|
+
}) => /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
|
|
17108
17108
|
a && t(a);
|
|
17109
17109
|
}, theme: "vs-dark", options: {
|
|
17110
17110
|
minimap: {
|
|
@@ -17140,7 +17140,7 @@ const Y1 = ({
|
|
|
17140
17140
|
h(cr.dynamic.func_content);
|
|
17141
17141
|
};
|
|
17142
17142
|
return /* @__PURE__ */ u(q, { children: [
|
|
17143
|
-
/* @__PURE__ */ r(
|
|
17143
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
17144
17144
|
width: "50%"
|
|
17145
17145
|
}, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(en, { size: 16 }), mt: 24, onClick: i, sx: {
|
|
17146
17146
|
flexGrow: 0
|
|
@@ -17267,7 +17267,7 @@ const rS = D(({
|
|
|
17267
17267
|
}) => {
|
|
17268
17268
|
const {
|
|
17269
17269
|
panel: n
|
|
17270
|
-
} =
|
|
17270
|
+
} = $e(), {
|
|
17271
17271
|
t: a
|
|
17272
17272
|
} = _();
|
|
17273
17273
|
return /* @__PURE__ */ u(T, { children: [
|
|
@@ -17299,7 +17299,7 @@ const rS = D(({
|
|
|
17299
17299
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
17300
17300
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
17301
17301
|
field: a
|
|
17302
|
-
}) => /* @__PURE__ */ r(
|
|
17302
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
17303
17303
|
flex: 1
|
|
17304
17304
|
}, ...a }) }),
|
|
17305
17305
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -17383,7 +17383,7 @@ function lS({
|
|
|
17383
17383
|
}, ...a }) }),
|
|
17384
17384
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
17385
17385
|
field: a
|
|
17386
|
-
}) => /* @__PURE__ */ r(
|
|
17386
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
17387
17387
|
flex: 1
|
|
17388
17388
|
}, ...a }) })
|
|
17389
17389
|
] }),
|
|
@@ -17420,7 +17420,7 @@ function sS({
|
|
|
17420
17420
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
17421
17421
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
17422
17422
|
field: a
|
|
17423
|
-
}) => /* @__PURE__ */ r(
|
|
17423
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
17424
17424
|
flex: 1
|
|
17425
17425
|
}, ...a }) }),
|
|
17426
17426
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -17446,10 +17446,10 @@ function sS({
|
|
|
17446
17446
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
17447
17447
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
17448
17448
|
field: a
|
|
17449
|
-
}) => /* @__PURE__ */ r(
|
|
17449
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.y_axis.value_min"), ...a }) }),
|
|
17450
17450
|
/* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
17451
17451
|
field: a
|
|
17452
|
-
}) => /* @__PURE__ */ r(
|
|
17452
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.y_axis.value_max"), ...a }) })
|
|
17453
17453
|
] })
|
|
17454
17454
|
] })
|
|
17455
17455
|
] });
|
|
@@ -17614,7 +17614,7 @@ function fS(e) {
|
|
|
17614
17614
|
}
|
|
17615
17615
|
function bS(e) {
|
|
17616
17616
|
const t = Ae(e), n = se(t, "color.valueRange");
|
|
17617
|
-
return n !== void 0 &&
|
|
17617
|
+
return n !== void 0 && $a(t, "color.valueRange", n.map((a) => Number(a))), t;
|
|
17618
17618
|
}
|
|
17619
17619
|
function yS(e, t) {
|
|
17620
17620
|
return !t || t === "left" ? e : `<p style="text-align: ${t}">${e}</p>`;
|
|
@@ -17775,7 +17775,7 @@ const zS = D(({
|
|
|
17775
17775
|
}, [n.current, h, p, g]), /* @__PURE__ */ r(rt, { className: "viz-stats", sx: {
|
|
17776
17776
|
width: h,
|
|
17777
17777
|
height: p
|
|
17778
|
-
}, align: CS[s.vertical_align], direction: "row", children: /* @__PURE__ */ r(
|
|
17778
|
+
}, align: CS[s.vertical_align], direction: "row", children: /* @__PURE__ */ r(V, { className: "viz-stats--clickable-wrapper", sx: kS(i.length), onClick: b, children: /* @__PURE__ */ r(Gn, { ref: n, value: g, styles: {
|
|
17779
17779
|
root: {
|
|
17780
17780
|
border: "none",
|
|
17781
17781
|
maxWidth: h,
|
|
@@ -17815,7 +17815,7 @@ const zS = D(({
|
|
|
17815
17815
|
}) => {
|
|
17816
17816
|
const {
|
|
17817
17817
|
panel: n
|
|
17818
|
-
} =
|
|
17818
|
+
} = $e(), {
|
|
17819
17819
|
t: a
|
|
17820
17820
|
} = _(), i = R.useMemo(() => pe({}, e), [e]), {
|
|
17821
17821
|
control: o,
|
|
@@ -17864,13 +17864,13 @@ const MS = {
|
|
|
17864
17864
|
trigger: "点击文字"
|
|
17865
17865
|
}
|
|
17866
17866
|
}
|
|
17867
|
-
},
|
|
17867
|
+
}, $S = [{
|
|
17868
17868
|
lang: "en",
|
|
17869
17869
|
resources: MS
|
|
17870
17870
|
}, {
|
|
17871
17871
|
lang: "zh",
|
|
17872
17872
|
resources: LS
|
|
17873
|
-
}],
|
|
17873
|
+
}], VS = {
|
|
17874
17874
|
createConfig() {
|
|
17875
17875
|
return {
|
|
17876
17876
|
version: 5,
|
|
@@ -17884,7 +17884,7 @@ const MS = {
|
|
|
17884
17884
|
viewRender: TS,
|
|
17885
17885
|
configRender: IS,
|
|
17886
17886
|
triggers: [Mc],
|
|
17887
|
-
translation:
|
|
17887
|
+
translation: $S
|
|
17888
17888
|
}, Mi = {
|
|
17889
17889
|
label_key: "",
|
|
17890
17890
|
value_key: "",
|
|
@@ -18105,10 +18105,10 @@ const HS = ({
|
|
|
18105
18105
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
18106
18106
|
/* @__PURE__ */ r(f, { name: `levels.${t}.r0`, control: e, render: ({
|
|
18107
18107
|
field: o
|
|
18108
|
-
}) => /* @__PURE__ */ r(
|
|
18108
|
+
}) => /* @__PURE__ */ r($, { label: n("viz.sunburst_chart.level.inside_radius"), placeholder: "0%", ...o }) }),
|
|
18109
18109
|
/* @__PURE__ */ r(f, { name: `levels.${t}.r`, control: e, render: ({
|
|
18110
18110
|
field: o
|
|
18111
|
-
}) => /* @__PURE__ */ r(
|
|
18111
|
+
}) => /* @__PURE__ */ r($, { label: n("viz.sunburst_chart.level.outside_radius"), placeholder: "50%", ...o }) })
|
|
18112
18112
|
] }),
|
|
18113
18113
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.label.label_full"), labelPosition: "center" }),
|
|
18114
18114
|
/* @__PURE__ */ r(f, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
|
|
@@ -18376,8 +18376,8 @@ function Lc() {
|
|
|
18376
18376
|
page_size: 0
|
|
18377
18377
|
};
|
|
18378
18378
|
}
|
|
18379
|
-
const
|
|
18380
|
-
`),
|
|
18379
|
+
const $c = ["function text({ value, row_data }, utils) {", " return value", "}"].join(`
|
|
18380
|
+
`), Vc = {
|
|
18381
18381
|
columns: [],
|
|
18382
18382
|
fontSize: "14px",
|
|
18383
18383
|
highlightOnHover: !0,
|
|
@@ -18838,7 +18838,7 @@ function kC(e) {
|
|
|
18838
18838
|
/* @__PURE__ */ r(wl, { children: "Use original data columns" }),
|
|
18839
18839
|
" is enabled, you have to address trigger column by its data field"
|
|
18840
18840
|
] }) }),
|
|
18841
|
-
/* @__PURE__ */ r(
|
|
18841
|
+
/* @__PURE__ */ r($, { label: t("viz.table.click_cell.column_data_field"), value: c.toString(), onChange: (h) => d(h.currentTarget.value) })
|
|
18842
18842
|
] }) : /* @__PURE__ */ r(F, { clearable: !1, data: o, label: t("viz.table.click_cell.choose_a_column"), value: c.toString(), onChange: d, comboboxProps: {
|
|
18843
18843
|
zIndex: 340
|
|
18844
18844
|
}, maxDropdownHeight: 500 });
|
|
@@ -18959,7 +18959,7 @@ const MC = (e) => {
|
|
|
18959
18959
|
if (i === 0)
|
|
18960
18960
|
return null;
|
|
18961
18961
|
if (l === 0)
|
|
18962
|
-
return /* @__PURE__ */ r(
|
|
18962
|
+
return /* @__PURE__ */ r(V, { className: e.info_bar, sx: {
|
|
18963
18963
|
height: 22
|
|
18964
18964
|
}, children: /* @__PURE__ */ r(k, { ta: "right", pr: 6, size: "14px", c: "dimmed", fw: "normal", children: o("common.pagination.total_rows", {
|
|
18965
18965
|
total: i
|
|
@@ -19058,7 +19058,7 @@ function Mo({
|
|
|
19058
19058
|
getSortedRowModel: _p()
|
|
19059
19059
|
}), {
|
|
19060
19060
|
rows: de
|
|
19061
|
-
} = U.getRowModel(), J = R.useRef(null),
|
|
19061
|
+
} = U.getRowModel(), J = R.useRef(null), Ve = e.length, Xe = Ve > 0, Gt = Xe ? n - 22 : n, rn = Xe ? 22 : 0;
|
|
19062
19062
|
return /* @__PURE__ */ u("div", { ref: J, style: {
|
|
19063
19063
|
height: n,
|
|
19064
19064
|
width: t,
|
|
@@ -19066,7 +19066,7 @@ function Mo({
|
|
|
19066
19066
|
}, "data-enable-scrollbar": !0, className: p(h.root, {
|
|
19067
19067
|
"table-highlight-on-hover": a.highlightOnHover
|
|
19068
19068
|
}), children: [
|
|
19069
|
-
/* @__PURE__ */ r(LC, { classes: h, pagination: M, totalRows:
|
|
19069
|
+
/* @__PURE__ */ r(LC, { classes: h, pagination: M, totalRows: Ve, setPagination: P, pageCount: Y }),
|
|
19070
19070
|
/* @__PURE__ */ u(w, { sx: {
|
|
19071
19071
|
...mC,
|
|
19072
19072
|
maxHeight: Gt
|
|
@@ -19089,7 +19089,7 @@ function Lo() {
|
|
|
19089
19089
|
} = _();
|
|
19090
19090
|
return /* @__PURE__ */ r(k, { size: "sm", c: "gray", ta: "center", children: e("data.empty_data") });
|
|
19091
19091
|
}
|
|
19092
|
-
function
|
|
19092
|
+
function $C({
|
|
19093
19093
|
data: e,
|
|
19094
19094
|
width: t,
|
|
19095
19095
|
height: n,
|
|
@@ -19116,7 +19116,7 @@ function VC({
|
|
|
19116
19116
|
const h = e[d];
|
|
19117
19117
|
return !Array.isArray(h) || h.length === 0 ? /* @__PURE__ */ r(Lo, {}) : /* @__PURE__ */ r(Mo, { queryData: h, width: t, height: n, conf: a, context: i, instance: o });
|
|
19118
19118
|
}
|
|
19119
|
-
function
|
|
19119
|
+
function VC({
|
|
19120
19120
|
context: e,
|
|
19121
19121
|
instance: t
|
|
19122
19122
|
}) {
|
|
@@ -19126,7 +19126,7 @@ function $C({
|
|
|
19126
19126
|
} = e.viewport, {
|
|
19127
19127
|
value: o
|
|
19128
19128
|
} = K(e.instanceData, "config");
|
|
19129
|
-
return o ? /* @__PURE__ */ r(
|
|
19129
|
+
return o ? /* @__PURE__ */ r($C, { data: n, width: i, height: a, conf: o, context: e, instance: t }) : null;
|
|
19130
19130
|
}
|
|
19131
19131
|
const PC = {
|
|
19132
19132
|
table: {
|
|
@@ -19234,8 +19234,8 @@ const PC = {
|
|
|
19234
19234
|
}, c) => {
|
|
19235
19235
|
const {
|
|
19236
19236
|
panel: d
|
|
19237
|
-
} =
|
|
19238
|
-
return h.length === 0 ? /* @__PURE__ */ r(
|
|
19237
|
+
} = $e(), h = R.useMemo(() => d.queryOptions(a, o), [a, o]);
|
|
19238
|
+
return h.length === 0 ? /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r($, { label: e, required: t, defaultValue: a, readOnly: !0, disabled: !0 }) }) : /* @__PURE__ */ r(F, { ref: c, label: e, description: n, data: h, value: a, onChange: be(i), required: t, sx: l, maxDropdownHeight: 500, ...s });
|
|
19239
19239
|
})), OC = [{
|
|
19240
19240
|
from: 0,
|
|
19241
19241
|
to: 0
|
|
@@ -19303,7 +19303,7 @@ const NC = ee((e, t) => {
|
|
|
19303
19303
|
}, h = () => {
|
|
19304
19304
|
l(), c(e);
|
|
19305
19305
|
}, p = () => {
|
|
19306
|
-
c(
|
|
19306
|
+
c($c);
|
|
19307
19307
|
};
|
|
19308
19308
|
return N(() => {
|
|
19309
19309
|
c(e);
|
|
@@ -19313,7 +19313,7 @@ const NC = ee((e, t) => {
|
|
|
19313
19313
|
}, children: a("viz.table.column.custom_cell_content") }),
|
|
19314
19314
|
/* @__PURE__ */ r(we, { size: 800, title: a("viz.table.column.custom_cell_content"), opened: i, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(T, { children: [
|
|
19315
19315
|
/* @__PURE__ */ r(y, { justify: "flex-start", children: /* @__PURE__ */ r(Qs, {}) }),
|
|
19316
|
-
/* @__PURE__ */ r(
|
|
19316
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
19317
19317
|
position: "relative"
|
|
19318
19318
|
}, children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (g) => c(g ?? ""), theme: "vs-dark", options: {
|
|
19319
19319
|
minimap: {
|
|
@@ -19343,7 +19343,7 @@ const NC = ee((e, t) => {
|
|
|
19343
19343
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
19344
19344
|
/* @__PURE__ */ r(f, { name: `columns.${t}.label`, control: e, render: ({
|
|
19345
19345
|
field: l
|
|
19346
|
-
}) => /* @__PURE__ */ r(
|
|
19346
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.label.label"), required: !0, id: `col-label-${t}`, sx: {
|
|
19347
19347
|
flex: 1
|
|
19348
19348
|
}, ...l }) }),
|
|
19349
19349
|
/* @__PURE__ */ r(f, { name: `columns.${t}.value_field`, control: e, render: ({
|
|
@@ -19358,7 +19358,7 @@ const NC = ee((e, t) => {
|
|
|
19358
19358
|
}, ...l }) }),
|
|
19359
19359
|
i === vt.custom && /* @__PURE__ */ r(f, { name: `columns.${t}.func_content`, control: e, render: ({
|
|
19360
19360
|
field: l
|
|
19361
|
-
}) => /* @__PURE__ */ r(jC, { value: l.value ??
|
|
19361
|
+
}) => /* @__PURE__ */ r(jC, { value: l.value ?? $c, onChange: (s) => l.onChange(s ?? "") }) })
|
|
19362
19362
|
] }),
|
|
19363
19363
|
/* @__PURE__ */ r(A, { mb: -10, variant: "dashed", label: a("style.label"), labelPosition: "center" }),
|
|
19364
19364
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
@@ -19440,7 +19440,7 @@ function GC({
|
|
|
19440
19440
|
}
|
|
19441
19441
|
}, children: /* @__PURE__ */ r(f, { name: "fontSize", control: e, render: ({
|
|
19442
19442
|
field: a
|
|
19443
|
-
}) => /* @__PURE__ */ r(
|
|
19443
|
+
}) => /* @__PURE__ */ r($, { label: n("style.font_size.label"), placeholder: n("style.font_size.placeholder"), required: !0, sx: {
|
|
19444
19444
|
flex: 1
|
|
19445
19445
|
}, ...a }) }) }),
|
|
19446
19446
|
/* @__PURE__ */ u(y, { justify: "space-between", grow: !0, children: [
|
|
@@ -19491,7 +19491,7 @@ function KC({
|
|
|
19491
19491
|
} = _(), {
|
|
19492
19492
|
value: n,
|
|
19493
19493
|
set: a
|
|
19494
|
-
} = K(e.instanceData, "config"), i = z(() => He({}, n,
|
|
19494
|
+
} = K(e.instanceData, "config"), i = z(() => He({}, n, Vc), [n]), o = z(() => UC(i), [i]);
|
|
19495
19495
|
N(() => {
|
|
19496
19496
|
!Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
19497
19497
|
}, [i, o]);
|
|
@@ -19535,23 +19535,23 @@ function KC({
|
|
|
19535
19535
|
] })
|
|
19536
19536
|
] });
|
|
19537
19537
|
}
|
|
19538
|
-
const
|
|
19538
|
+
const $o = new dC(), Ca = {
|
|
19539
19539
|
createConfig() {
|
|
19540
19540
|
return {
|
|
19541
|
-
version:
|
|
19542
|
-
config: Ae(
|
|
19541
|
+
version: $o.VERSION,
|
|
19542
|
+
config: Ae(Vc)
|
|
19543
19543
|
};
|
|
19544
19544
|
},
|
|
19545
19545
|
displayName: "viz.table.viz_name",
|
|
19546
19546
|
displayGroup: "chart.groups.others",
|
|
19547
|
-
migrator:
|
|
19547
|
+
migrator: $o,
|
|
19548
19548
|
name: "table",
|
|
19549
|
-
viewRender:
|
|
19549
|
+
viewRender: VC,
|
|
19550
19550
|
configRender: KC,
|
|
19551
19551
|
triggers: [Li],
|
|
19552
19552
|
translation: RC
|
|
19553
19553
|
}, qc = ["function text({ data, variables, filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
|
|
19554
|
-
`),
|
|
19554
|
+
`), $i = {
|
|
19555
19555
|
func_content: qc,
|
|
19556
19556
|
horizontal_align: "left",
|
|
19557
19557
|
font_size: "14px",
|
|
@@ -19560,7 +19560,7 @@ const Vo = new dC(), Ca = {
|
|
|
19560
19560
|
context: e
|
|
19561
19561
|
}) => {
|
|
19562
19562
|
const t = _e(), {
|
|
19563
|
-
value: n =
|
|
19563
|
+
value: n = $i
|
|
19564
19564
|
} = K(e.instanceData, "config"), {
|
|
19565
19565
|
variables: a
|
|
19566
19566
|
} = e, i = e.data, {
|
|
@@ -19608,13 +19608,13 @@ function XC({
|
|
|
19608
19608
|
s && n(s.label);
|
|
19609
19609
|
}, [i]), /* @__PURE__ */ u(T, { gap: 0, mt: "sm", mb: "lg", children: [
|
|
19610
19610
|
/* @__PURE__ */ r(k, { size: "sm", children: e }),
|
|
19611
|
-
/* @__PURE__ */ r(
|
|
19611
|
+
/* @__PURE__ */ r(V, { px: "1.5em", children: /* @__PURE__ */ r(Ku, { label: null, marks: hr, value: i, onChange: o, step: 25, ref: a }) })
|
|
19612
19612
|
] });
|
|
19613
19613
|
}
|
|
19614
19614
|
const ZC = R.forwardRef(XC), JC = ({
|
|
19615
19615
|
value: e,
|
|
19616
19616
|
onChange: t
|
|
19617
|
-
}) => /* @__PURE__ */ r(
|
|
19617
|
+
}) => /* @__PURE__ */ r(V, { sx: {
|
|
19618
19618
|
position: "relative"
|
|
19619
19619
|
}, children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
|
|
19620
19620
|
a && t(a);
|
|
@@ -19664,7 +19664,7 @@ function tk({
|
|
|
19664
19664
|
} = _(), {
|
|
19665
19665
|
value: n,
|
|
19666
19666
|
set: a
|
|
19667
|
-
} = K(e.instanceData, "config"), i = z(() => He({}, n,
|
|
19667
|
+
} = K(e.instanceData, "config"), i = z(() => He({}, n, $i), [n]), o = z(() => {
|
|
19668
19668
|
const {
|
|
19669
19669
|
func_content: p,
|
|
19670
19670
|
horizontal_align: g,
|
|
@@ -19704,7 +19704,7 @@ function tk({
|
|
|
19704
19704
|
}) => /* @__PURE__ */ r(bi, { ...p }) }),
|
|
19705
19705
|
/* @__PURE__ */ r(f, { name: "font_size", control: l, render: ({
|
|
19706
19706
|
field: p
|
|
19707
|
-
}) => /* @__PURE__ */ r(
|
|
19707
|
+
}) => /* @__PURE__ */ r($, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
|
|
19708
19708
|
flex: 1
|
|
19709
19709
|
}, ...p }) }),
|
|
19710
19710
|
/* @__PURE__ */ r(y, { justify: "space-between", grow: !0, sx: {
|
|
@@ -19763,7 +19763,7 @@ const ok = {
|
|
|
19763
19763
|
createConfig() {
|
|
19764
19764
|
return {
|
|
19765
19765
|
version: 1,
|
|
19766
|
-
config: Ae(
|
|
19766
|
+
config: Ae($i)
|
|
19767
19767
|
};
|
|
19768
19768
|
},
|
|
19769
19769
|
translation: ak
|
|
@@ -19772,7 +19772,7 @@ const ok = {
|
|
|
19772
19772
|
/* @__PURE__ */ r("path", { d: "M18.39 32.28H16.51V35.02H18.39V32.28Z", fill: "#9399A5" }),
|
|
19773
19773
|
/* @__PURE__ */ r("path", { d: "M46.87 15H20.69C18.38 15 16.5 16.88 16.5 19.19V26.22H18.38V23.45H49.18V47.68H18.38V41.07H16.5V49.55H51.05V19.19C51.06 16.88 49.18 15 46.87 15ZM39.46 20.73C38.81 20.73 38.29 20.2 38.29 19.56C38.29 18.92 38.82 18.39 39.46 18.39C40.11 18.39 40.63 18.92 40.63 19.56C40.63 20.2 40.11 20.73 39.46 20.73ZM43.22 20.73C42.57 20.73 42.05 20.2 42.05 19.56C42.05 18.92 42.58 18.39 43.22 18.39C43.87 18.39 44.39 18.92 44.39 19.56C44.39 20.2 43.87 20.73 43.22 20.73ZM46.97 20.73C46.32 20.73 45.8 20.2 45.8 19.56C45.8 18.92 46.33 18.39 46.97 18.39C47.62 18.39 48.14 18.92 48.14 19.56C48.14 20.2 47.62 20.73 46.97 20.73Z", fill: "#9399A5" })
|
|
19774
19774
|
] });
|
|
19775
|
-
function
|
|
19775
|
+
function Vo(e, t) {
|
|
19776
19776
|
const n = C.get(e, t, "");
|
|
19777
19777
|
if (n)
|
|
19778
19778
|
throw new Error(n);
|
|
@@ -19815,9 +19815,9 @@ const ck = ({
|
|
|
19815
19815
|
const c = n.startsWith("http") ? n : window.location.origin;
|
|
19816
19816
|
return await sk(c, `/expert/v3/devtable/${a}`, s, {});
|
|
19817
19817
|
} catch (c) {
|
|
19818
|
-
throw
|
|
19818
|
+
throw Vo(c, "response.data.detail"), Vo(c, "response.data.error"), console.error(c), c;
|
|
19819
19819
|
}
|
|
19820
|
-
},
|
|
19820
|
+
}, Vi = {
|
|
19821
19821
|
expertSystemURL: "",
|
|
19822
19822
|
path: "",
|
|
19823
19823
|
goal: "",
|
|
@@ -19828,7 +19828,7 @@ const ck = ({
|
|
|
19828
19828
|
...ri
|
|
19829
19829
|
}, Po = ({
|
|
19830
19830
|
message: e
|
|
19831
|
-
}) => /* @__PURE__ */ r(
|
|
19831
|
+
}) => /* @__PURE__ */ r(V, { sx: ka, children: /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
|
|
19832
19832
|
__html: e
|
|
19833
19833
|
}, style: {
|
|
19834
19834
|
fontSize: "14px",
|
|
@@ -19856,7 +19856,7 @@ function uk({
|
|
|
19856
19856
|
}) {
|
|
19857
19857
|
const {
|
|
19858
19858
|
value: t
|
|
19859
|
-
} = K(e.instanceData, "config"), n = z(() => He({}, t,
|
|
19859
|
+
} = K(e.instanceData, "config"), n = z(() => He({}, t, Vi), [t]), {
|
|
19860
19860
|
width: a,
|
|
19861
19861
|
height: i
|
|
19862
19862
|
} = e.viewport, o = e.data, {
|
|
@@ -19869,10 +19869,10 @@ function uk({
|
|
|
19869
19869
|
}), {
|
|
19870
19870
|
refreshDeps: [o, n]
|
|
19871
19871
|
});
|
|
19872
|
-
return !a || !i || !n ? null : c ? /* @__PURE__ */ r(
|
|
19872
|
+
return !a || !i || !n ? null : c ? /* @__PURE__ */ r(V, { sx: {
|
|
19873
19873
|
position: "relative",
|
|
19874
19874
|
height: i
|
|
19875
|
-
}, children: /* @__PURE__ */ r(un, { visible: !0 }) }) : s ? /* @__PURE__ */ r(
|
|
19875
|
+
}, children: /* @__PURE__ */ r(un, { visible: !0 }) }) : s ? /* @__PURE__ */ r(V, { sx: ka, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r(dk, { error: s, width: a, height: i }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ r(V, { sx: ka, "data-enable-scrollbar": !0, children: l.replies.map((d, h) => /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
|
|
19876
19876
|
__html: d.interpretation.html
|
|
19877
19877
|
} }, h)) });
|
|
19878
19878
|
}
|
|
@@ -19882,7 +19882,7 @@ function hk({
|
|
|
19882
19882
|
const {
|
|
19883
19883
|
value: t,
|
|
19884
19884
|
set: n
|
|
19885
|
-
} = K(e.instanceData, "config"), a = z(() => He({}, t,
|
|
19885
|
+
} = K(e.instanceData, "config"), a = z(() => He({}, t, Vi), [t]), {
|
|
19886
19886
|
control: i,
|
|
19887
19887
|
handleSubmit: o,
|
|
19888
19888
|
watch: l,
|
|
@@ -19897,18 +19897,18 @@ function hk({
|
|
|
19897
19897
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
19898
19898
|
/* @__PURE__ */ r(f, { name: "expertSystemURL", control: i, render: ({
|
|
19899
19899
|
field: d
|
|
19900
|
-
}) => /* @__PURE__ */ r(
|
|
19900
|
+
}) => /* @__PURE__ */ r($, { label: "Expert System URL", ...d }) }),
|
|
19901
19901
|
/* @__PURE__ */ r(f, { name: "path", control: i, render: ({
|
|
19902
19902
|
field: d
|
|
19903
|
-
}) => /* @__PURE__ */ r(
|
|
19903
|
+
}) => /* @__PURE__ */ r($, { label: "Path", required: !0, ...d }) })
|
|
19904
19904
|
] }),
|
|
19905
19905
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
19906
19906
|
/* @__PURE__ */ r(f, { name: "goal", control: i, render: ({
|
|
19907
19907
|
field: d
|
|
19908
|
-
}) => /* @__PURE__ */ r(
|
|
19908
|
+
}) => /* @__PURE__ */ r($, { label: "Goal", required: !0, ...d }) }),
|
|
19909
19909
|
/* @__PURE__ */ r(f, { name: "question", control: i, render: ({
|
|
19910
19910
|
field: d
|
|
19911
|
-
}) => /* @__PURE__ */ r(
|
|
19911
|
+
}) => /* @__PURE__ */ r($, { label: "Question", required: !0, ...d }) })
|
|
19912
19912
|
] }),
|
|
19913
19913
|
/* @__PURE__ */ r(A, { variant: "dashed", mt: 16, mb: 8 }),
|
|
19914
19914
|
/* @__PURE__ */ r(L, { type: "submit", variant: "filled", color: "blue", leftSection: /* @__PURE__ */ r(fe, { size: 20 }), disabled: !s.isDirty, sx: {
|
|
@@ -19953,7 +19953,7 @@ const bk = {
|
|
|
19953
19953
|
createConfig() {
|
|
19954
19954
|
return {
|
|
19955
19955
|
version: 1,
|
|
19956
|
-
config: Ae(
|
|
19956
|
+
config: Ae(Vi)
|
|
19957
19957
|
};
|
|
19958
19958
|
},
|
|
19959
19959
|
translation: gk
|
|
@@ -20208,7 +20208,7 @@ function Lk(e, t) {
|
|
|
20208
20208
|
}))
|
|
20209
20209
|
};
|
|
20210
20210
|
}
|
|
20211
|
-
function
|
|
20211
|
+
function $k(e, t, n) {
|
|
20212
20212
|
return e ? {
|
|
20213
20213
|
type: "heatmap",
|
|
20214
20214
|
name: "heatmap",
|
|
@@ -20223,7 +20223,7 @@ function Vk(e, t, n) {
|
|
|
20223
20223
|
data: i
|
|
20224
20224
|
}));
|
|
20225
20225
|
}
|
|
20226
|
-
const
|
|
20226
|
+
const Vk = (e) => ue(e, {
|
|
20227
20227
|
output: "number",
|
|
20228
20228
|
trimMantissa: !0,
|
|
20229
20229
|
mantissa: 2,
|
|
@@ -20247,7 +20247,7 @@ function Pk({
|
|
|
20247
20247
|
const g = j(p.data_key), b = i[p.name] ?? "";
|
|
20248
20248
|
d.push({
|
|
20249
20249
|
label: p.name,
|
|
20250
|
-
value:
|
|
20250
|
+
value: Vk(C.get(h, g.columnKey, "")),
|
|
20251
20251
|
unit: b
|
|
20252
20252
|
});
|
|
20253
20253
|
}), d;
|
|
@@ -20335,7 +20335,7 @@ function Ok(e, t, n) {
|
|
|
20335
20335
|
} = Ek(h), v = p <= 366;
|
|
20336
20336
|
return {
|
|
20337
20337
|
calendar: Ik(v, g, x),
|
|
20338
|
-
series:
|
|
20338
|
+
series: $k(v, b, h),
|
|
20339
20339
|
tooltip: Ak(e, t, s),
|
|
20340
20340
|
visualMap: {
|
|
20341
20341
|
...i,
|
|
@@ -20452,7 +20452,7 @@ function Qk({
|
|
|
20452
20452
|
}, ...a }) }),
|
|
20453
20453
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
20454
20454
|
field: a
|
|
20455
|
-
}) => /* @__PURE__ */ r(
|
|
20455
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
20456
20456
|
flex: 1
|
|
20457
20457
|
}, ...a }) })
|
|
20458
20458
|
] }),
|
|
@@ -20476,7 +20476,7 @@ const Hk = ({
|
|
|
20476
20476
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
20477
20477
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
20478
20478
|
field: a
|
|
20479
|
-
}) => /* @__PURE__ */ r(
|
|
20479
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
20480
20480
|
flex: 1
|
|
20481
20481
|
}, ...a }) }),
|
|
20482
20482
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -21095,7 +21095,7 @@ function _2({
|
|
|
21095
21095
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
21096
21096
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
21097
21097
|
field: s
|
|
21098
|
-
}) => /* @__PURE__ */ r(
|
|
21098
|
+
}) => /* @__PURE__ */ r($, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
|
|
21099
21099
|
flex: 1
|
|
21100
21100
|
}, ...s }) }),
|
|
21101
21101
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
|
|
@@ -21106,7 +21106,7 @@ function _2({
|
|
|
21106
21106
|
] }),
|
|
21107
21107
|
/* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
21108
21108
|
field: s
|
|
21109
|
-
}) => /* @__PURE__ */ r(
|
|
21109
|
+
}) => /* @__PURE__ */ r($, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
|
|
21110
21110
|
flex: 1
|
|
21111
21111
|
}, ...s }) }),
|
|
21112
21112
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
@@ -21189,7 +21189,7 @@ function v2({
|
|
|
21189
21189
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
21190
21190
|
/* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
|
|
21191
21191
|
field: s
|
|
21192
|
-
}) => /* @__PURE__ */ r(
|
|
21192
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
|
|
21193
21193
|
flexGrow: 1
|
|
21194
21194
|
}, ...s }) }),
|
|
21195
21195
|
/* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
|
|
@@ -21201,17 +21201,17 @@ function v2({
|
|
|
21201
21201
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
21202
21202
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
21203
21203
|
field: s
|
|
21204
|
-
}) => /* @__PURE__ */ r(
|
|
21204
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
|
|
21205
21205
|
flexGrow: 1
|
|
21206
21206
|
}, ...s }) }),
|
|
21207
21207
|
/* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
21208
21208
|
field: s
|
|
21209
|
-
}) => /* @__PURE__ */ r(
|
|
21209
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.exact"), sx: {
|
|
21210
21210
|
flexGrow: 1
|
|
21211
21211
|
}, ...s }) }),
|
|
21212
21212
|
/* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
21213
21213
|
field: s
|
|
21214
|
-
}) => /* @__PURE__ */ r(
|
|
21214
|
+
}) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
|
|
21215
21215
|
flexGrow: 1
|
|
21216
21216
|
}, ...s }) })
|
|
21217
21217
|
] })
|
|
@@ -21232,7 +21232,7 @@ function w2({
|
|
|
21232
21232
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
21233
21233
|
/* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
|
|
21234
21234
|
field: o
|
|
21235
|
-
}) => /* @__PURE__ */ r(
|
|
21235
|
+
}) => /* @__PURE__ */ r($, { label: i("common.name"), required: !0, sx: {
|
|
21236
21236
|
flex: 1
|
|
21237
21237
|
}, ...o }) }),
|
|
21238
21238
|
/* @__PURE__ */ r(f, { name: `series.${t}.xAxisIndex`, control: e, render: ({
|
|
@@ -21329,7 +21329,7 @@ function k2({
|
|
|
21329
21329
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
21330
21330
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.name`, control: e, render: ({
|
|
21331
21331
|
field: a
|
|
21332
|
-
}) => /* @__PURE__ */ r(
|
|
21332
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
21333
21333
|
flex: 1
|
|
21334
21334
|
}, ...a }) }),
|
|
21335
21335
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.position`, control: e, render: ({
|
|
@@ -21349,10 +21349,10 @@ function k2({
|
|
|
21349
21349
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
21350
21350
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.min`, control: e, render: ({
|
|
21351
21351
|
field: a
|
|
21352
|
-
}) => /* @__PURE__ */ r(
|
|
21352
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.x_axis.value_min"), ...a }) }),
|
|
21353
21353
|
/* @__PURE__ */ r(f, { name: `x_axes.${t}.max`, control: e, render: ({
|
|
21354
21354
|
field: a
|
|
21355
|
-
}) => /* @__PURE__ */ r(
|
|
21355
|
+
}) => /* @__PURE__ */ r($, { label: n("chart.x_axis.value_max"), ...a }) })
|
|
21356
21356
|
] })
|
|
21357
21357
|
] }),
|
|
21358
21358
|
/* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.x_axis.behavior"), labelPosition: "center" }),
|
|
@@ -21387,7 +21387,7 @@ function T2({
|
|
|
21387
21387
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
21388
21388
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
21389
21389
|
field: a
|
|
21390
|
-
}) => /* @__PURE__ */ r(
|
|
21390
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
21391
21391
|
flex: 1
|
|
21392
21392
|
}, ...a }) }),
|
|
21393
21393
|
/* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -21475,11 +21475,11 @@ const I2 = {
|
|
|
21475
21475
|
}, {
|
|
21476
21476
|
lang: "zh",
|
|
21477
21477
|
resources: M2
|
|
21478
|
-
}],
|
|
21478
|
+
}], $2 = {
|
|
21479
21479
|
id: "builtin:echarts:click-echart:series",
|
|
21480
21480
|
displayName: "viz.cartesian_chart.click_series.label",
|
|
21481
21481
|
nameRender: P2,
|
|
21482
|
-
configRender:
|
|
21482
|
+
configRender: V2,
|
|
21483
21483
|
payload: [{
|
|
21484
21484
|
name: "seriesType",
|
|
21485
21485
|
description: "'line' | 'scatter' | 'bar'",
|
|
@@ -21506,7 +21506,7 @@ const I2 = {
|
|
|
21506
21506
|
valueType: "object"
|
|
21507
21507
|
}]
|
|
21508
21508
|
};
|
|
21509
|
-
function
|
|
21509
|
+
function V2(e) {
|
|
21510
21510
|
return /* @__PURE__ */ r(q, {});
|
|
21511
21511
|
}
|
|
21512
21512
|
function P2(e) {
|
|
@@ -21599,7 +21599,7 @@ const O2 = {
|
|
|
21599
21599
|
version: 3,
|
|
21600
21600
|
config: C.cloneDeep(Ai)
|
|
21601
21601
|
}),
|
|
21602
|
-
triggers: [
|
|
21602
|
+
triggers: [$2],
|
|
21603
21603
|
translation: L2
|
|
21604
21604
|
}, Ri = {
|
|
21605
21605
|
x_axis: {
|
|
@@ -22295,7 +22295,7 @@ function s3({
|
|
|
22295
22295
|
}, [h]), !s.data_key || !d || !h || !o || !l)
|
|
22296
22296
|
return null;
|
|
22297
22297
|
const b = Math.max(Tt(o), 300), x = Math.max(Dt(l), 370);
|
|
22298
|
-
return /* @__PURE__ */ u(
|
|
22298
|
+
return /* @__PURE__ */ u(V, { pt: et.top, pr: et.right, pb: et.bottom, pl: et.left, sx: {
|
|
22299
22299
|
overflow: "hidden",
|
|
22300
22300
|
height: l,
|
|
22301
22301
|
width: o
|
|
@@ -22311,7 +22311,7 @@ function c3({
|
|
|
22311
22311
|
return t(["deviation"]), /* @__PURE__ */ u(T, { children: [
|
|
22312
22312
|
/* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "deviation.name", control: e, render: ({
|
|
22313
22313
|
field: n
|
|
22314
|
-
}) => /* @__PURE__ */ r(
|
|
22314
|
+
}) => /* @__PURE__ */ r($, { label: "指标名称", sx: {
|
|
22315
22315
|
flex: 1
|
|
22316
22316
|
}, ...n }) }) }),
|
|
22317
22317
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
@@ -22338,7 +22338,7 @@ const d3 = ({
|
|
|
22338
22338
|
return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
22339
22339
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.name`, control: e, render: ({
|
|
22340
22340
|
field: a
|
|
22341
|
-
}) => /* @__PURE__ */ r(
|
|
22341
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
22342
22342
|
flex: 1
|
|
22343
22343
|
}, ...a }) }),
|
|
22344
22344
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -22390,7 +22390,7 @@ function h3({
|
|
|
22390
22390
|
}, ...n }) }),
|
|
22391
22391
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
22392
22392
|
field: n
|
|
22393
|
-
}) => /* @__PURE__ */ r(
|
|
22393
|
+
}) => /* @__PURE__ */ r($, { label: "X轴名称", sx: {
|
|
22394
22394
|
flex: 1
|
|
22395
22395
|
}, ...n }) })
|
|
22396
22396
|
] }),
|
|
@@ -22666,7 +22666,7 @@ const Eo = ({
|
|
|
22666
22666
|
}], [i.language]);
|
|
22667
22667
|
return /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
22668
22668
|
/* @__PURE__ */ r(F, { label: a("viz.merico_stats.metric.postfix_type.label"), data: d, value: e.type, onChange: s }),
|
|
22669
|
-
e.type === "text" && /* @__PURE__ */ r(
|
|
22669
|
+
e.type === "text" && /* @__PURE__ */ r($, { label: a("viz.merico_stats.metric.postfix_content"), value: e.value, onChange: (h) => {
|
|
22670
22670
|
c(h.currentTarget.value);
|
|
22671
22671
|
} }),
|
|
22672
22672
|
e.type === "filter-option-label" && /* @__PURE__ */ r(F, { label: a("viz.merico_stats.metric.postfix_filter"), value: e.value, onChange: c, data: l })
|
|
@@ -22688,7 +22688,7 @@ function k3({
|
|
|
22688
22688
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
22689
22689
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.names.value`, control: e, render: ({
|
|
22690
22690
|
field: o
|
|
22691
|
-
}) => /* @__PURE__ */ r(
|
|
22691
|
+
}) => /* @__PURE__ */ r($, { label: i("viz.merico_stats.metric.metric_name"), required: !0, sx: {
|
|
22692
22692
|
flex: 1
|
|
22693
22693
|
}, ...o }) }),
|
|
22694
22694
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
|
|
@@ -22700,7 +22700,7 @@ function k3({
|
|
|
22700
22700
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
22701
22701
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.names.basis`, control: e, render: ({
|
|
22702
22702
|
field: o
|
|
22703
|
-
}) => /* @__PURE__ */ r(
|
|
22703
|
+
}) => /* @__PURE__ */ r($, { label: i("viz.merico_stats.metric.basis_name"), required: !0, sx: {
|
|
22704
22704
|
flex: 1
|
|
22705
22705
|
}, ...o }) }),
|
|
22706
22706
|
/* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
|
|
@@ -22853,14 +22853,14 @@ const M3 = {
|
|
|
22853
22853
|
postfix_filter: "筛选器"
|
|
22854
22854
|
}
|
|
22855
22855
|
}
|
|
22856
|
-
},
|
|
22856
|
+
}, $3 = [{
|
|
22857
22857
|
lang: "en",
|
|
22858
22858
|
resources: M3
|
|
22859
22859
|
}, {
|
|
22860
22860
|
lang: "zh",
|
|
22861
22861
|
resources: L3
|
|
22862
22862
|
}];
|
|
22863
|
-
class
|
|
22863
|
+
class V3 extends Se {
|
|
22864
22864
|
constructor() {
|
|
22865
22865
|
super(...arguments);
|
|
22866
22866
|
B(this, "VERSION", 2);
|
|
@@ -22880,7 +22880,7 @@ class $3 extends Se {
|
|
|
22880
22880
|
const P3 = {
|
|
22881
22881
|
displayName: "viz.merico_stats.viz_name",
|
|
22882
22882
|
displayGroup: "chart.groups.merico_suite",
|
|
22883
|
-
migrator: new
|
|
22883
|
+
migrator: new V3(),
|
|
22884
22884
|
name: "merico-stats",
|
|
22885
22885
|
viewRender: S3,
|
|
22886
22886
|
configRender: D3,
|
|
@@ -22888,7 +22888,7 @@ const P3 = {
|
|
|
22888
22888
|
version: 2,
|
|
22889
22889
|
config: Ei
|
|
22890
22890
|
}),
|
|
22891
|
-
translation:
|
|
22891
|
+
translation: $3
|
|
22892
22892
|
}, Oi = {
|
|
22893
22893
|
x_axis: {
|
|
22894
22894
|
name: "",
|
|
@@ -22942,7 +22942,7 @@ function A3({
|
|
|
22942
22942
|
}, ...i }) }),
|
|
22943
22943
|
/* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
|
|
22944
22944
|
field: i
|
|
22945
|
-
}) => /* @__PURE__ */ r(
|
|
22945
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
22946
22946
|
flex: 1
|
|
22947
22947
|
}, ...i }) })
|
|
22948
22948
|
] }),
|
|
@@ -22977,7 +22977,7 @@ const R3 = ({
|
|
|
22977
22977
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
22978
22978
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
22979
22979
|
field: a
|
|
22980
|
-
}) => /* @__PURE__ */ r(
|
|
22980
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
22981
22981
|
flex: 1
|
|
22982
22982
|
}, ...a }) }),
|
|
22983
22983
|
/* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -23042,7 +23042,7 @@ function F3({
|
|
|
23042
23042
|
}, ...a }) }),
|
|
23043
23043
|
/* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
|
|
23044
23044
|
field: a
|
|
23045
|
-
}) => /* @__PURE__ */ r(
|
|
23045
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
|
|
23046
23046
|
flex: 1
|
|
23047
23047
|
}, ...a }) })
|
|
23048
23048
|
] }),
|
|
@@ -23080,7 +23080,7 @@ function q3({
|
|
|
23080
23080
|
}, ...a }) }),
|
|
23081
23081
|
/* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
|
|
23082
23082
|
field: a
|
|
23083
|
-
}) => /* @__PURE__ */ r(
|
|
23083
|
+
}) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
|
|
23084
23084
|
flex: 1
|
|
23085
23085
|
}, ...a }) })
|
|
23086
23086
|
] }),
|
|
@@ -23854,7 +23854,7 @@ const cz = {
|
|
|
23854
23854
|
clearable: !0
|
|
23855
23855
|
}
|
|
23856
23856
|
);
|
|
23857
|
-
}),
|
|
23857
|
+
}), $z = ({
|
|
23858
23858
|
form: e
|
|
23859
23859
|
}) => {
|
|
23860
23860
|
const {
|
|
@@ -23869,7 +23869,7 @@ const cz = {
|
|
|
23869
23869
|
}) => /* @__PURE__ */ r(Lz, { disabled: n, ...a }) })
|
|
23870
23870
|
] });
|
|
23871
23871
|
};
|
|
23872
|
-
function
|
|
23872
|
+
function Vz({
|
|
23873
23873
|
context: e
|
|
23874
23874
|
}) {
|
|
23875
23875
|
const {
|
|
@@ -23886,7 +23886,7 @@ function $z({
|
|
|
23886
23886
|
s(a);
|
|
23887
23887
|
}, [a]), /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
23888
23888
|
/* @__PURE__ */ r(Ie, { canSubmit: l.isDirty }),
|
|
23889
|
-
/* @__PURE__ */ r(
|
|
23889
|
+
/* @__PURE__ */ r($z, { form: i })
|
|
23890
23890
|
] });
|
|
23891
23891
|
}
|
|
23892
23892
|
const Pz = {
|
|
@@ -23932,7 +23932,7 @@ const Oz = {
|
|
|
23932
23932
|
migrator: new Ez(),
|
|
23933
23933
|
name: "vizDashboardState",
|
|
23934
23934
|
viewRender: Dz,
|
|
23935
|
-
configRender:
|
|
23935
|
+
configRender: Vz,
|
|
23936
23936
|
createConfig: () => ({
|
|
23937
23937
|
version: 1,
|
|
23938
23938
|
config: Hc
|
|
@@ -23985,7 +23985,7 @@ const Oz = {
|
|
|
23985
23985
|
value: e.value,
|
|
23986
23986
|
type: "single",
|
|
23987
23987
|
category: "basic"
|
|
23988
|
-
})), qz = [Cm, km, Dm, Tm, zm, Im], Fi = [Ca,
|
|
23988
|
+
})), qz = [Cm, km, Dm, Tm, zm, Im], Fi = [Ca, VS, ok, d1, rC, Jw, O2, hf, Cy, Ox, Mv, Yk, bw, bx, hS, T0, r1, bk, x3, cz, P3, Oy, Oz], Gc = Fi.reduce((e, t) => (e[t.name] = {
|
|
23989
23989
|
displayName: t.displayName,
|
|
23990
23990
|
displayGroup: t.displayGroup
|
|
23991
23991
|
}, e), {}), Wc = () => ({
|
|
@@ -23996,17 +23996,17 @@ const Oz = {
|
|
|
23996
23996
|
color: [...Fz, ...qz]
|
|
23997
23997
|
}
|
|
23998
23998
|
}), Ln = new Am(), ve = {
|
|
23999
|
-
pluginManager:
|
|
24000
|
-
vizManager:
|
|
24001
|
-
colorManager:
|
|
24002
|
-
panelAddonManager:
|
|
23999
|
+
pluginManager: $t("pluginManager"),
|
|
24000
|
+
vizManager: $t("vizManager"),
|
|
24001
|
+
colorManager: $t("colorManager"),
|
|
24002
|
+
panelAddonManager: $t("panelAddonManager"),
|
|
24003
24003
|
instanceScope: {
|
|
24004
|
-
panelModel:
|
|
24005
|
-
vizInstance:
|
|
24006
|
-
interactionManager:
|
|
24007
|
-
migrator:
|
|
24008
|
-
operationManager:
|
|
24009
|
-
triggerManager:
|
|
24004
|
+
panelModel: $t("panelModel"),
|
|
24005
|
+
vizInstance: $t("vizInstance"),
|
|
24006
|
+
interactionManager: $t("interactionManager"),
|
|
24007
|
+
migrator: $t("migrator"),
|
|
24008
|
+
operationManager: $t("operationManager"),
|
|
24009
|
+
triggerManager: $t("triggerManager")
|
|
24010
24010
|
}
|
|
24011
24011
|
}, qi = () => {
|
|
24012
24012
|
try {
|
|
@@ -24063,13 +24063,13 @@ O.extend(Tp);
|
|
|
24063
24063
|
O.extend(Dp);
|
|
24064
24064
|
O.extend(Ip);
|
|
24065
24065
|
O.extend(Mp);
|
|
24066
|
-
O.extend(
|
|
24066
|
+
O.extend(Vp);
|
|
24067
24067
|
O.extend(Pp);
|
|
24068
24068
|
O.extend(Ap);
|
|
24069
24069
|
O.extend(Rp);
|
|
24070
24070
|
O.extend(Ep);
|
|
24071
24071
|
O.extend(Lp);
|
|
24072
|
-
O.extend(
|
|
24072
|
+
O.extend($p);
|
|
24073
24073
|
O.extend(Op);
|
|
24074
24074
|
O.extend(Fp);
|
|
24075
24075
|
O.extend(qp);
|
|
@@ -24250,11 +24250,11 @@ class Hz {
|
|
|
24250
24250
|
return this.getRequest("PUT", t);
|
|
24251
24251
|
}
|
|
24252
24252
|
}
|
|
24253
|
-
const
|
|
24253
|
+
const $n = new Qz();
|
|
24254
24254
|
function Kc(e) {
|
|
24255
|
-
|
|
24255
|
+
$n.baseURL !== e.apiBaseURL && ($n.baseURL = e.apiBaseURL), e.app_id && ($n.app_id = e.app_id), e.app_secret && ($n.app_secret = e.app_secret), e.makeQueryENV && ($n.makeQueryENV = e.makeQueryENV);
|
|
24256
24256
|
}
|
|
24257
|
-
const Gz = new Hz(
|
|
24257
|
+
const Gz = new Hz($n), pt = Gz, Yc = m.model("MockContextMeta", {
|
|
24258
24258
|
current: m.optional(m.frozen(), {})
|
|
24259
24259
|
}).views((e) => ({
|
|
24260
24260
|
get keys() {
|
|
@@ -25717,7 +25717,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
25717
25717
|
/* @__PURE__ */ r(Z, { checked: a.required, onChange: (i) => a.setRequired(i.currentTarget.checked), label: n("filter.widget.select.required") }),
|
|
25718
25718
|
/* @__PURE__ */ r(Dn, { filter: t })
|
|
25719
25719
|
] }),
|
|
25720
|
-
/* @__PURE__ */ r(
|
|
25720
|
+
/* @__PURE__ */ r($, { label: n("filter.widget.common.min_width"), value: a.min_width, onChange: (i) => a.setMinWidth(i.currentTarget.value), placeholder: "200px" }),
|
|
25721
25721
|
/* @__PURE__ */ r(A, { label: n("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
25722
25722
|
/* @__PURE__ */ r(Z, { checked: a.treeCheckStrictly, onChange: (i) => a.setTreeCheckStrictly(i.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
|
|
25723
25723
|
/* @__PURE__ */ r(na, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
|
|
@@ -26158,7 +26158,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
26158
26158
|
/* @__PURE__ */ r(Z, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: t("filter.widget.select.required") }),
|
|
26159
26159
|
/* @__PURE__ */ r(Dn, { filter: e })
|
|
26160
26160
|
] }),
|
|
26161
|
-
/* @__PURE__ */ r(
|
|
26161
|
+
/* @__PURE__ */ r($, { label: t("filter.widget.common.min_width"), value: n.min_width, onChange: (a) => n.setMinWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
26162
26162
|
/* @__PURE__ */ r(A, { label: t("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
26163
26163
|
/* @__PURE__ */ r(na, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
|
|
26164
26164
|
/* @__PURE__ */ r(Z, { 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") }),
|
|
@@ -26701,7 +26701,7 @@ const fd = m.compose("FilterConfigModel_BaseTreeSelect", m.model({
|
|
|
26701
26701
|
delay: 0
|
|
26702
26702
|
}));
|
|
26703
26703
|
}
|
|
26704
|
-
})),
|
|
26704
|
+
})), $5 = () => yd.create({
|
|
26705
26705
|
_name: "tree-single-select",
|
|
26706
26706
|
default_value: "",
|
|
26707
26707
|
static_options: [],
|
|
@@ -26804,7 +26804,7 @@ const fd = m.compose("FilterConfigModel_BaseTreeSelect", m.model({
|
|
|
26804
26804
|
e.config = L5();
|
|
26805
26805
|
break;
|
|
26806
26806
|
case H.TreeSingleSelect:
|
|
26807
|
-
e.config =
|
|
26807
|
+
e.config = $5();
|
|
26808
26808
|
break;
|
|
26809
26809
|
case H.TextInput:
|
|
26810
26810
|
e.config = ud();
|
|
@@ -26842,7 +26842,7 @@ const _d = m.model("ViewDivisionConfig", {
|
|
|
26842
26842
|
_name: t
|
|
26843
26843
|
};
|
|
26844
26844
|
}
|
|
26845
|
-
})),
|
|
26845
|
+
})), V5 = () => _d.create({
|
|
26846
26846
|
_name: G.Division
|
|
26847
26847
|
}), P5 = m.model("CustomModalTitleModel", {
|
|
26848
26848
|
enabled: m.optional(m.boolean, !1),
|
|
@@ -27042,7 +27042,7 @@ const _d = m.model("ViewDivisionConfig", {
|
|
|
27042
27042
|
if (e.type !== t) {
|
|
27043
27043
|
switch (t) {
|
|
27044
27044
|
case G.Division:
|
|
27045
|
-
e.config =
|
|
27045
|
+
e.config = V5();
|
|
27046
27046
|
break;
|
|
27047
27047
|
case G.Modal:
|
|
27048
27048
|
e.config = A5();
|
|
@@ -27498,12 +27498,12 @@ function Q5(e, t) {
|
|
|
27498
27498
|
return console.error(a), Ld(e);
|
|
27499
27499
|
}
|
|
27500
27500
|
}
|
|
27501
|
-
function
|
|
27501
|
+
function $d(e, t) {
|
|
27502
27502
|
var n;
|
|
27503
27503
|
return (n = e.default_value_func) != null && n.trim() ? Q5(e, t) : Ld(e);
|
|
27504
27504
|
}
|
|
27505
|
-
function
|
|
27506
|
-
return e.reduce((n, a) => (n[a.key] =
|
|
27505
|
+
function Vd(e, t) {
|
|
27506
|
+
return e.reduce((n, a) => (n[a.key] = $d(a, t), n), {});
|
|
27507
27507
|
}
|
|
27508
27508
|
function Pd(e, t) {
|
|
27509
27509
|
const n = {};
|
|
@@ -27570,7 +27570,7 @@ const Ad = m.model("FiltersRenderModel", {
|
|
|
27570
27570
|
});
|
|
27571
27571
|
},
|
|
27572
27572
|
get formattedDefaultValues() {
|
|
27573
|
-
return
|
|
27573
|
+
return Vd(this.json, this.contentModel.context);
|
|
27574
27574
|
},
|
|
27575
27575
|
get firstID() {
|
|
27576
27576
|
if (e.current.length !== 0)
|
|
@@ -27653,7 +27653,7 @@ function Rd(e, t, n, a) {
|
|
|
27653
27653
|
const i = {
|
|
27654
27654
|
...n,
|
|
27655
27655
|
...t
|
|
27656
|
-
}, o =
|
|
27656
|
+
}, o = Vd(e, i), l = Pd(a, o);
|
|
27657
27657
|
return {
|
|
27658
27658
|
current: e,
|
|
27659
27659
|
values: l
|
|
@@ -27906,7 +27906,7 @@ const K5 = r5.views((e) => ({
|
|
|
27906
27906
|
const t = C.get(e, "config.sql", "");
|
|
27907
27907
|
if (!t)
|
|
27908
27908
|
return [];
|
|
27909
|
-
const n = C.uniq(t.match(
|
|
27909
|
+
const n = C.uniq(t.match(Vn.sqlSnippet)), a = C.uniq(t.match(Vn.filter)), i = C.uniq(t.match(Vn.context)), o = [];
|
|
27910
27910
|
return n.forEach((l) => {
|
|
27911
27911
|
o.push({
|
|
27912
27912
|
type: "sql_snippet",
|
|
@@ -27934,7 +27934,7 @@ const K5 = r5.views((e) => ({
|
|
|
27934
27934
|
if (e.run_by.forEach((l) => n(l)), C.get(e.config, "react_to", []).forEach((l) => n(l)), !this.typedAsSQL)
|
|
27935
27935
|
return t;
|
|
27936
27936
|
const i = C.get(e, "config.sql", "");
|
|
27937
|
-
return i && C.uniq(i.match(
|
|
27937
|
+
return i && C.uniq(i.match(Vn.filter)).forEach((l) => n(l)), t;
|
|
27938
27938
|
},
|
|
27939
27939
|
get metricQueryPayload() {
|
|
27940
27940
|
if (e.type !== ie.MericoMetricSystem)
|
|
@@ -28067,7 +28067,7 @@ const K5 = r5.views((e) => ({
|
|
|
28067
28067
|
e.controller = new AbortController(), e.state = "loading";
|
|
28068
28068
|
try {
|
|
28069
28069
|
const n = e.payload, a = e.config;
|
|
28070
|
-
e.data = yield*
|
|
28070
|
+
e.data = yield* Vt(G5({
|
|
28071
28071
|
payload: n,
|
|
28072
28072
|
name: e.name,
|
|
28073
28073
|
query: {
|
|
@@ -28102,7 +28102,7 @@ const K5 = r5.views((e) => ({
|
|
|
28102
28102
|
} = e.json;
|
|
28103
28103
|
let o = JSON.parse(e.httpConfigString);
|
|
28104
28104
|
o = xr(e.datasource, o);
|
|
28105
|
-
const l = yield*
|
|
28105
|
+
const l = yield* Vt(W5({
|
|
28106
28106
|
type: n,
|
|
28107
28107
|
key: a,
|
|
28108
28108
|
configString: JSON.stringify(o),
|
|
@@ -28137,7 +28137,7 @@ const K5 = r5.views((e) => ({
|
|
|
28137
28137
|
data: e.metricQueryPayload
|
|
28138
28138
|
};
|
|
28139
28139
|
o = xr(e.datasource, o);
|
|
28140
|
-
const l = yield*
|
|
28140
|
+
const l = yield* Vt(U5({
|
|
28141
28141
|
key: a,
|
|
28142
28142
|
configString: JSON.stringify(o),
|
|
28143
28143
|
name: e.name,
|
|
@@ -28555,7 +28555,7 @@ const eT = (e) => new J5(e), tT = ({
|
|
|
28555
28555
|
border: "0.0625rem solid rgb(233, 236, 239)",
|
|
28556
28556
|
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"
|
|
28557
28557
|
}
|
|
28558
|
-
}, withArrow: !0, children: /* @__PURE__ */ r(
|
|
28558
|
+
}, withArrow: !0, children: /* @__PURE__ */ r(V, { sx: {
|
|
28559
28559
|
height: "16px",
|
|
28560
28560
|
alignSelf: "center"
|
|
28561
28561
|
}, children: /* @__PURE__ */ r(Re, { size: 16, color: "gray" }) }) }), nT = D(({
|
|
@@ -28568,10 +28568,10 @@ const eT = (e) => new J5(e), tT = ({
|
|
|
28568
28568
|
},
|
|
28569
28569
|
value: o,
|
|
28570
28570
|
onChange: l
|
|
28571
|
-
}) => /* @__PURE__ */ u(
|
|
28571
|
+
}) => /* @__PURE__ */ u(V, { children: [
|
|
28572
28572
|
/* @__PURE__ */ r(k, { size: "sm", children: " " }),
|
|
28573
28573
|
/* @__PURE__ */ r(Z, { label: /* @__PURE__ */ u(y, { wrap: "nowrap", justify: "space-between", align: "middle", gap: 6, children: [
|
|
28574
|
-
/* @__PURE__ */ r(
|
|
28574
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
28575
28575
|
flexGrow: 1
|
|
28576
28576
|
}, children: e }),
|
|
28577
28577
|
/* @__PURE__ */ r(tT, { description: n, isDescriptionEmpty: a })
|
|
@@ -28696,7 +28696,7 @@ const eT = (e) => new J5(e), tT = ({
|
|
|
28696
28696
|
/* @__PURE__ */ u(y, { justify: "flex-start", grow: !0, wrap: "nowrap", gap: 0, w: "288px", sx: {
|
|
28697
28697
|
marginTop: "3px"
|
|
28698
28698
|
}, children: [
|
|
28699
|
-
/* @__PURE__ */ r(mt.Target, { children: /* @__PURE__ */ r(
|
|
28699
|
+
/* @__PURE__ */ r(mt.Target, { children: /* @__PURE__ */ r($, { label: e, labelProps: {
|
|
28700
28700
|
title: e
|
|
28701
28701
|
}, required: t, leftSection: /* @__PURE__ */ r(Ch, { size: 16 }), placeholder: c("filter.widget.date_range.start_date"), readOnly: !0, disabled: s, value: x, onFocus: h, styles: jo(d), sx: {
|
|
28702
28702
|
".mantine-TextInput-label": {
|
|
@@ -28721,7 +28721,7 @@ const eT = (e) => new J5(e), tT = ({
|
|
|
28721
28721
|
opacity: 0.6
|
|
28722
28722
|
}
|
|
28723
28723
|
} }) }),
|
|
28724
|
-
/* @__PURE__ */ r(
|
|
28724
|
+
/* @__PURE__ */ r($, { label: /* @__PURE__ */ r(y, { justify: "flex-end", children: /* @__PURE__ */ r(aT, { begin: g, end: b }) }), leftSection: /* @__PURE__ */ r(kh, { size: 16 }), placeholder: c("filter.widget.date_range.end_date"), readOnly: !0, disabled: !g || s, value: v, onFocus: h, styles: jo(d), sx: {
|
|
28725
28725
|
".mantine-Input-section": {
|
|
28726
28726
|
transform: "translateX(-18px)"
|
|
28727
28727
|
},
|
|
@@ -28985,11 +28985,11 @@ const eT = (e) => new J5(e), tT = ({
|
|
|
28985
28985
|
}, v = g && (i == null ? void 0 : i.length) > 0, [I, M] = Q(""), P = z(() => {
|
|
28986
28986
|
if (!I)
|
|
28987
28987
|
return l;
|
|
28988
|
-
const J = I.toLowerCase(),
|
|
28988
|
+
const J = I.toLowerCase(), Ve = (Xe) => {
|
|
28989
28989
|
var Gt;
|
|
28990
28990
|
return ((Gt = Xe.description) == null ? void 0 : Gt.toLowerCase().includes(J)) || Xe.label.toLowerCase().includes(J);
|
|
28991
28991
|
};
|
|
28992
|
-
return l.filter(
|
|
28992
|
+
return l.filter(Ve);
|
|
28993
28993
|
}, [I, l]), E = z(() => new Set(l.map((J) => J.value)), [l]), Y = z(() => new Set(i), [i]), U = z(() => Y.size !== E.size ? !1 : Array.from(E).every((J) => Y.has(J)), [Y, E]), de = () => {
|
|
28994
28994
|
if (U) {
|
|
28995
28995
|
o([]);
|
|
@@ -29101,7 +29101,7 @@ function gT({
|
|
|
29101
29101
|
value: n,
|
|
29102
29102
|
onChange: a
|
|
29103
29103
|
}) {
|
|
29104
|
-
return /* @__PURE__ */ r(
|
|
29104
|
+
return /* @__PURE__ */ r($, { label: e, value: n || "", onChange: (i) => a(i.currentTarget.value), ...t, styles: {
|
|
29105
29105
|
input: {
|
|
29106
29106
|
borderColor: "#e9ecef"
|
|
29107
29107
|
}
|
|
@@ -29277,7 +29277,7 @@ const CT = ({
|
|
|
29277
29277
|
t
|
|
29278
29278
|
} = _(), n = he(), {
|
|
29279
29279
|
panel: a
|
|
29280
|
-
} =
|
|
29280
|
+
} = $e(), i = a.realQueryOptions, o = (s) => {
|
|
29281
29281
|
n.editor.open(["_QUERIES_", s]);
|
|
29282
29282
|
}, l = () => {
|
|
29283
29283
|
n.editor.open(["_VIEWS_", e.id, "_PANELS_", a.id, "_TABS_", "Data"]);
|
|
@@ -29296,7 +29296,7 @@ const CT = ({
|
|
|
29296
29296
|
} = _(), a = he(), i = oe(), o = zt(), {
|
|
29297
29297
|
panel: l,
|
|
29298
29298
|
downloadPanelScreenshot: s
|
|
29299
|
-
} =
|
|
29299
|
+
} = $e(), {
|
|
29300
29300
|
id: c
|
|
29301
29301
|
} = l, {
|
|
29302
29302
|
viewPanelInFullScreen: d,
|
|
@@ -29326,14 +29326,14 @@ const CT = ({
|
|
|
29326
29326
|
}), M = R.useCallback(() => {
|
|
29327
29327
|
d(c);
|
|
29328
29328
|
}, [c, d]), P = !h && e.type !== G.Modal;
|
|
29329
|
-
return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(
|
|
29329
|
+
return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(V, { sx: {
|
|
29330
29330
|
position: "absolute",
|
|
29331
29331
|
top: 0,
|
|
29332
29332
|
left: 0,
|
|
29333
29333
|
right: 0,
|
|
29334
29334
|
zIndex: 300
|
|
29335
29335
|
}, title: t, children: /* @__PURE__ */ u(W, { withinPortal: !0, children: [
|
|
29336
|
-
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(
|
|
29336
|
+
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(V, { className: "panel-dropdown-target", sx: {
|
|
29337
29337
|
width: "100%"
|
|
29338
29338
|
} }) }),
|
|
29339
29339
|
/* @__PURE__ */ u(W.Dropdown, { children: [
|
|
@@ -29346,7 +29346,7 @@ const CT = ({
|
|
|
29346
29346
|
/* @__PURE__ */ r(A, { label: n("common.actions.edit"), labelPosition: "center" }),
|
|
29347
29347
|
/* @__PURE__ */ r(W.Item, { onClick: g, leftSection: /* @__PURE__ */ r(ja, { size: 14 }), children: n("panel.label") }),
|
|
29348
29348
|
/* @__PURE__ */ r(W.Item, { onClick: b, leftSection: /* @__PURE__ */ r(Bn, { size: 14 }), children: n("panel.variable.labels") }),
|
|
29349
|
-
/* @__PURE__ */ r(W.Item, { onClick: x, leftSection: /* @__PURE__ */ r(
|
|
29349
|
+
/* @__PURE__ */ r(W.Item, { onClick: x, leftSection: /* @__PURE__ */ r($l, { size: 14 }), children: n("visualization.label") }),
|
|
29350
29350
|
/* @__PURE__ */ r(W.Item, { onClick: v, leftSection: /* @__PURE__ */ r(Qa, { size: 14 }), children: n("interactions.label") }),
|
|
29351
29351
|
/* @__PURE__ */ r(A, { label: n("common.actions.actions"), labelPosition: "center" }),
|
|
29352
29352
|
/* @__PURE__ */ r(W.Item, { onClick: p, leftSection: /* @__PURE__ */ r(Ha, { size: 14 }), children: n("common.actions.duplicate") }),
|
|
@@ -29424,7 +29424,7 @@ function LT(e) {
|
|
|
29424
29424
|
};
|
|
29425
29425
|
}
|
|
29426
29426
|
var Ud = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(Ud || {}), gr = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(gr || {});
|
|
29427
|
-
class
|
|
29427
|
+
class $T {
|
|
29428
29428
|
constructor(t) {
|
|
29429
29429
|
B(this, "vizInstance");
|
|
29430
29430
|
B(this, "operationManager");
|
|
@@ -29473,7 +29473,7 @@ class VT {
|
|
|
29473
29473
|
return await this.operationManager.needMigration() || await this.triggerManager.needMigration();
|
|
29474
29474
|
}
|
|
29475
29475
|
}
|
|
29476
|
-
class
|
|
29476
|
+
class VT {
|
|
29477
29477
|
getTriggerSchemaList() {
|
|
29478
29478
|
return [];
|
|
29479
29479
|
}
|
|
@@ -29543,7 +29543,7 @@ class RT {
|
|
|
29543
29543
|
}
|
|
29544
29544
|
const Ho = new RT(), Ir = class Ir {
|
|
29545
29545
|
constructor() {
|
|
29546
|
-
B(this, "triggerManager", new
|
|
29546
|
+
B(this, "triggerManager", new VT());
|
|
29547
29547
|
B(this, "operationManager", new AT());
|
|
29548
29548
|
}
|
|
29549
29549
|
getInteractionList() {
|
|
@@ -29570,7 +29570,7 @@ function Kd(e, t = !0) {
|
|
|
29570
29570
|
return a.createScoped().provideFactory(ve.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(ve.instanceScope.interactionManager, (l) => {
|
|
29571
29571
|
const s = l.getRequired(ve.instanceScope.vizInstance);
|
|
29572
29572
|
return t ? new nc(s, o, gi) : new Da();
|
|
29573
|
-
}).provideFactory(ve.instanceScope.operationManager, (l) => l.getRequired(ve.instanceScope.interactionManager).operationManager).provideFactory(ve.instanceScope.triggerManager, (l) => l.getRequired(ve.instanceScope.interactionManager).triggerManager).provideValue(ve.instanceScope.panelModel, n).provideFactory(ve.instanceScope.migrator, (l) => new
|
|
29573
|
+
}).provideFactory(ve.instanceScope.operationManager, (l) => l.getRequired(ve.instanceScope.interactionManager).operationManager).provideFactory(ve.instanceScope.triggerManager, (l) => l.getRequired(ve.instanceScope.interactionManager).triggerManager).provideValue(ve.instanceScope.panelModel, n).provideFactory(ve.instanceScope.migrator, (l) => new $T(l));
|
|
29574
29574
|
}, [e.viz.type, e.viz.conf, t]);
|
|
29575
29575
|
}
|
|
29576
29576
|
const Yd = {
|
|
@@ -29682,7 +29682,7 @@ const NT = D(function({
|
|
|
29682
29682
|
w: a,
|
|
29683
29683
|
h: i
|
|
29684
29684
|
}), l = a > 0 && i > 0;
|
|
29685
|
-
return /* @__PURE__ */ r("div", { className: "viz-root", ref: n, children: /* @__PURE__ */ r(
|
|
29685
|
+
return /* @__PURE__ */ r("div", { className: "viz-root", ref: n, children: /* @__PURE__ */ r(V, { sx: {
|
|
29686
29686
|
width: a,
|
|
29687
29687
|
height: i,
|
|
29688
29688
|
overflow: "hidden"
|
|
@@ -29692,7 +29692,7 @@ const NT = D(function({
|
|
|
29692
29692
|
inEditMode: n
|
|
29693
29693
|
} = Jt(Qr), a = e.getRequired(ve.panelAddonManager), {
|
|
29694
29694
|
withAddon: i
|
|
29695
|
-
} = Ui(), o =
|
|
29695
|
+
} = Ui(), o = $m();
|
|
29696
29696
|
return !o || !i ? null : um(/* @__PURE__ */ r(q, { children: a.createPanelAddonNode({
|
|
29697
29697
|
viz: t,
|
|
29698
29698
|
isInEditMode: n
|
|
@@ -29733,12 +29733,12 @@ const NT = D(function({
|
|
|
29733
29733
|
loading: e.dataLoading,
|
|
29734
29734
|
errors: e.queryErrors,
|
|
29735
29735
|
downloadPanelScreenshot: i
|
|
29736
|
-
}, children: /* @__PURE__ */ r(
|
|
29736
|
+
}, children: /* @__PURE__ */ r(V, { id: e.id, className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, ref: a, p: 0, sx: {
|
|
29737
29737
|
...QT,
|
|
29738
29738
|
...t
|
|
29739
29739
|
}, children: /* @__PURE__ */ u(s, { children: [
|
|
29740
29740
|
l && /* @__PURE__ */ u(q, { children: [
|
|
29741
|
-
/* @__PURE__ */ r(
|
|
29741
|
+
/* @__PURE__ */ r(V, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r(Wd, {}) }),
|
|
29742
29742
|
n,
|
|
29743
29743
|
/* @__PURE__ */ r(MT, {})
|
|
29744
29744
|
] }),
|
|
@@ -29781,14 +29781,14 @@ const KT = D(({
|
|
|
29781
29781
|
} = R.useContext(ra), c = R.useCallback(() => {
|
|
29782
29782
|
l(o);
|
|
29783
29783
|
}, [o, l]), d = !s && e.type !== G.Modal;
|
|
29784
|
-
return UT(a.viz.type) ? /* @__PURE__ */ r(
|
|
29784
|
+
return UT(a.viz.type) ? /* @__PURE__ */ r(V, { sx: {
|
|
29785
29785
|
position: "absolute",
|
|
29786
29786
|
top: 0,
|
|
29787
29787
|
left: 0,
|
|
29788
29788
|
right: 0,
|
|
29789
29789
|
zIndex: 300
|
|
29790
29790
|
}, title: t, children: /* @__PURE__ */ u(W, { withinPortal: !0, children: [
|
|
29791
|
-
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(
|
|
29791
|
+
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(V, { className: "panel-dropdown-target" }) }),
|
|
29792
29792
|
/* @__PURE__ */ u(W.Dropdown, { children: [
|
|
29793
29793
|
/* @__PURE__ */ r(W.Item, { onClick: a.refreshData, leftSection: /* @__PURE__ */ r(Ar, { size: 14 }), children: n("common.actions.refresh") }),
|
|
29794
29794
|
/* @__PURE__ */ r(W.Item, { onClick: a.downloadData, leftSection: /* @__PURE__ */ r(or, { size: 14 }), children: n("common.actions.download_data") }),
|
|
@@ -29823,7 +29823,7 @@ const tu = D(({
|
|
|
29823
29823
|
panel: n,
|
|
29824
29824
|
exitFullScreen: a
|
|
29825
29825
|
}) {
|
|
29826
|
-
return /* @__PURE__ */ r(we, { opened: !0, fullScreen: !0, onClose: a, title: /* @__PURE__ */ r(L, { color: "blue", size: "xs", onClick: a, leftSection: /* @__PURE__ */ r(
|
|
29826
|
+
return /* @__PURE__ */ r(we, { opened: !0, fullScreen: !0, onClose: a, title: /* @__PURE__ */ r(L, { color: "blue", size: "xs", onClick: a, leftSection: /* @__PURE__ */ r(Vl, { size: 20 }), children: "Exit fullscreen" }), styles: XT, children: /* @__PURE__ */ r(y, { grow: !0, sx: {
|
|
29827
29827
|
flexGrow: 1,
|
|
29828
29828
|
flexShrink: 0
|
|
29829
29829
|
}, children: /* @__PURE__ */ r(tu, { view: t, panel: n }) }) });
|
|
@@ -29955,7 +29955,7 @@ const o4 = D(({
|
|
|
29955
29955
|
downloadScreenshot: i
|
|
29956
29956
|
} = Yi(t);
|
|
29957
29957
|
return /* @__PURE__ */ u(q, { children: [
|
|
29958
|
-
/* @__PURE__ */ r(
|
|
29958
|
+
/* @__PURE__ */ r(V, { ref: a, pt: 10, pb: 10, sx: n, children: e }),
|
|
29959
29959
|
/* @__PURE__ */ r(o4, { downloadScreenshot: i })
|
|
29960
29960
|
] });
|
|
29961
29961
|
}), ru = D(({
|
|
@@ -29969,7 +29969,7 @@ const o4 = D(({
|
|
|
29969
29969
|
downloadScreenshot: s
|
|
29970
29970
|
} = Yi(t);
|
|
29971
29971
|
return /* @__PURE__ */ r(we, { size: a.width, centered: !0, opened: i, onClose: o, withCloseButton: !1, title: /* @__PURE__ */ u(y, { justify: "space-between", px: "1rem", h: "48px", children: [
|
|
29972
|
-
/* @__PURE__ */ r(
|
|
29972
|
+
/* @__PURE__ */ r(V, { children: a.custom_modal_title.value }),
|
|
29973
29973
|
/* @__PURE__ */ r(ru, { downloadScreenshot: s })
|
|
29974
29974
|
] }), trapFocus: !0, onDragStart: (c) => {
|
|
29975
29975
|
c.stopPropagation();
|
|
@@ -30005,7 +30005,7 @@ const o4 = D(({
|
|
|
30005
30005
|
}
|
|
30006
30006
|
}, transitionProps: {
|
|
30007
30007
|
duration: 0
|
|
30008
|
-
}, children: /* @__PURE__ */ r(
|
|
30008
|
+
}, children: /* @__PURE__ */ r(V, { ref: l, children: e }) });
|
|
30009
30009
|
}), s4 = (e) => e.color ? {
|
|
30010
30010
|
"&[data-active], &[data-active]:hover": {
|
|
30011
30011
|
borderColor: e.color ? e.color : "..."
|
|
@@ -30051,9 +30051,9 @@ const o4 = D(({
|
|
|
30051
30051
|
const a = oe().layouts, [i, o] = oh();
|
|
30052
30052
|
return N(() => {
|
|
30053
30053
|
a.setCurrentLayoutWrapperWidth(o.width);
|
|
30054
|
-
}, [o.width]), /* @__PURE__ */ r(
|
|
30054
|
+
}, [o.width]), /* @__PURE__ */ r(V, { sx: {
|
|
30055
30055
|
height: "100%"
|
|
30056
|
-
}, ref: i, children: /* @__PURE__ */ r(
|
|
30056
|
+
}, ref: i, children: /* @__PURE__ */ r(V, { sx: {
|
|
30057
30057
|
paddingBottom: "100px",
|
|
30058
30058
|
background: "white",
|
|
30059
30059
|
margin: "0 auto",
|
|
@@ -30088,13 +30088,13 @@ const h4 = D(({
|
|
|
30088
30088
|
ref: o,
|
|
30089
30089
|
downloadScreenshot: l
|
|
30090
30090
|
} = Yi(t);
|
|
30091
|
-
return /* @__PURE__ */ r(
|
|
30091
|
+
return /* @__PURE__ */ r(V, { sx: {
|
|
30092
30092
|
height: "100%",
|
|
30093
30093
|
"> div:not(.mantine-Modal-root)": {
|
|
30094
30094
|
height: "100%"
|
|
30095
30095
|
}
|
|
30096
30096
|
}, children: /* @__PURE__ */ r(we, { size: n.width, opened: !0, onClose: C.noop, withCloseButton: !1, title: /* @__PURE__ */ u(y, { justify: "space-between", px: "1rem", h: "48px", children: [
|
|
30097
|
-
/* @__PURE__ */ r(
|
|
30097
|
+
/* @__PURE__ */ r(V, { children: n.custom_modal_title.value }),
|
|
30098
30098
|
/* @__PURE__ */ r(ru, { downloadScreenshot: l })
|
|
30099
30099
|
] }), trapFocus: !0, onDragStart: (s) => {
|
|
30100
30100
|
s.stopPropagation();
|
|
@@ -30135,7 +30135,7 @@ const h4 = D(({
|
|
|
30135
30135
|
}
|
|
30136
30136
|
}, withinPortal: !1, transitionProps: {
|
|
30137
30137
|
duration: 0
|
|
30138
|
-
}, children: /* @__PURE__ */ r(
|
|
30138
|
+
}, children: /* @__PURE__ */ r(V, { ref: o, children: e }) }) });
|
|
30139
30139
|
}), p4 = ({
|
|
30140
30140
|
variant: e,
|
|
30141
30141
|
orientation: t
|
|
@@ -30194,7 +30194,7 @@ const h4 = D(({
|
|
|
30194
30194
|
return /* @__PURE__ */ u(S.Panel, { value: d.id, sx: {
|
|
30195
30195
|
position: "relative"
|
|
30196
30196
|
}, children: [
|
|
30197
|
-
/* @__PURE__ */ u(
|
|
30197
|
+
/* @__PURE__ */ u(V, { sx: {
|
|
30198
30198
|
position: "absolute",
|
|
30199
30199
|
top: 0,
|
|
30200
30200
|
left: 0,
|
|
@@ -30208,7 +30208,7 @@ const h4 = D(({
|
|
|
30208
30208
|
position: "relative",
|
|
30209
30209
|
zIndex: 200
|
|
30210
30210
|
}, children: [
|
|
30211
|
-
/* @__PURE__ */ r(
|
|
30211
|
+
/* @__PURE__ */ r($, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (g) => d.setName(g.currentTarget.value) }),
|
|
30212
30212
|
/* @__PURE__ */ r(F, { label: t("view.label"), value: d.view_id, onChange: d.setViewID, data: i }),
|
|
30213
30213
|
/* @__PURE__ */ r(ne, { label: t("view.component.tabs.tab.order"), required: !0, value: d.order, onChange: (g) => d.setOrder(g || 0), min: 0, max: 1e3, step: 1 }),
|
|
30214
30214
|
/* @__PURE__ */ r(cn, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: o.variant !== "default" }),
|
|
@@ -30245,12 +30245,12 @@ const h4 = D(({
|
|
|
30245
30245
|
return /* @__PURE__ */ r(ra.Provider, { value: {
|
|
30246
30246
|
viewPanelInFullScreen: C.noop,
|
|
30247
30247
|
inFullScreen: !1
|
|
30248
|
-
}, children: /* @__PURE__ */ r(
|
|
30248
|
+
}, children: /* @__PURE__ */ r(V, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
|
|
30249
30249
|
background: a ? "transparent" : "#efefef"
|
|
30250
|
-
}, children: /* @__PURE__ */ r(f4, { view: t, children: /* @__PURE__ */ u(
|
|
30250
|
+
}, children: /* @__PURE__ */ r(f4, { view: t, children: /* @__PURE__ */ u(V, { sx: {
|
|
30251
30251
|
position: "relative"
|
|
30252
30252
|
}, children: [
|
|
30253
|
-
/* @__PURE__ */ r(
|
|
30253
|
+
/* @__PURE__ */ r(V, { className: "dashboard-sticky-area", sx: {
|
|
30254
30254
|
position: "sticky",
|
|
30255
30255
|
top: "0px"
|
|
30256
30256
|
}, children: /* @__PURE__ */ r(Gd, { view: t }) }),
|
|
@@ -30271,14 +30271,14 @@ const h4 = D(({
|
|
|
30271
30271
|
return /* @__PURE__ */ r(ra.Provider, { value: {
|
|
30272
30272
|
viewPanelInFullScreen: i,
|
|
30273
30273
|
inFullScreen: l
|
|
30274
|
-
}, children: /* @__PURE__ */ u(
|
|
30274
|
+
}, children: /* @__PURE__ */ u(V, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
|
|
30275
30275
|
height: t.type === G.Modal ? "0 !important" : "100%"
|
|
30276
30276
|
}, children: [
|
|
30277
30277
|
l && /* @__PURE__ */ r(ZT, { view: t, panel: s, exitFullScreen: o }),
|
|
30278
|
-
/* @__PURE__ */ r(d4, { view: t, children: /* @__PURE__ */ u(
|
|
30278
|
+
/* @__PURE__ */ r(d4, { view: t, children: /* @__PURE__ */ u(V, { sx: {
|
|
30279
30279
|
position: "relative"
|
|
30280
30280
|
}, children: [
|
|
30281
|
-
!l && /* @__PURE__ */ r(
|
|
30281
|
+
!l && /* @__PURE__ */ r(V, { className: "dashboard-sticky-area", sx: {
|
|
30282
30282
|
position: "sticky",
|
|
30283
30283
|
top: "0px"
|
|
30284
30284
|
}, children: /* @__PURE__ */ r(Gd, { view: t }) }),
|
|
@@ -30372,7 +30372,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
|
|
|
30372
30372
|
function t() {
|
|
30373
30373
|
v4(e.current, Hi, (n, a) => {
|
|
30374
30374
|
if (n === "setType") {
|
|
30375
|
-
const i =
|
|
30375
|
+
const i = $d(a.config.default_value, a.config);
|
|
30376
30376
|
e.setValueByKey(a.key, i), e.updatePreviewValues({
|
|
30377
30377
|
...e.previewValues,
|
|
30378
30378
|
[a.key]: i
|
|
@@ -30477,7 +30477,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
|
|
|
30477
30477
|
const a = C.get(n, "value", "");
|
|
30478
30478
|
if (!a)
|
|
30479
30479
|
return;
|
|
30480
|
-
const i = C.uniq(a.match(
|
|
30480
|
+
const i = C.uniq(a.match(Vn.filter)), o = /* @__PURE__ */ new Set();
|
|
30481
30481
|
i.forEach((l) => o.add(l)), t.set(n.key, o);
|
|
30482
30482
|
}), t;
|
|
30483
30483
|
}
|
|
@@ -30656,7 +30656,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
|
|
|
30656
30656
|
var n;
|
|
30657
30657
|
(n = e.controllers.tables) == null || n.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
|
|
30658
30658
|
try {
|
|
30659
|
-
const a = yield*
|
|
30659
|
+
const a = yield* Vt(pt.structure(e.controllers.tables.signal)({
|
|
30660
30660
|
query_type: "TABLES",
|
|
30661
30661
|
type: e.sqlDataSourceType,
|
|
30662
30662
|
key: e.key,
|
|
@@ -30685,7 +30685,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
|
|
|
30685
30685
|
var n;
|
|
30686
30686
|
(n = e.controllers.columns) == null || n.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
|
|
30687
30687
|
try {
|
|
30688
|
-
e.columns.data = yield*
|
|
30688
|
+
e.columns.data = yield* Vt(pt.structure(e.controllers.columns.signal)({
|
|
30689
30689
|
query_type: "COLUMNS",
|
|
30690
30690
|
type: e.sqlDataSourceType,
|
|
30691
30691
|
key: e.key,
|
|
@@ -30710,7 +30710,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
|
|
|
30710
30710
|
var n;
|
|
30711
30711
|
(n = e.controllers.indexes) == null || n.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
|
|
30712
30712
|
try {
|
|
30713
|
-
e.indexes.data = yield*
|
|
30713
|
+
e.indexes.data = yield* Vt(pt.structure(e.controllers.indexes.signal)({
|
|
30714
30714
|
query_type: "INDEXES",
|
|
30715
30715
|
type: e.sqlDataSourceType,
|
|
30716
30716
|
key: e.key,
|
|
@@ -30737,7 +30737,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
|
|
|
30737
30737
|
const n = e.tableData;
|
|
30738
30738
|
n.state = "loading";
|
|
30739
30739
|
try {
|
|
30740
|
-
n.data = yield*
|
|
30740
|
+
n.data = yield* Vt(pt.structure(e.controllers.tableData.signal)({
|
|
30741
30741
|
query_type: "DATA",
|
|
30742
30742
|
type: e.sqlDataSourceType,
|
|
30743
30743
|
key: e.key,
|
|
@@ -30752,7 +30752,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
|
|
|
30752
30752
|
}));
|
|
30753
30753
|
const [{
|
|
30754
30754
|
total: i
|
|
30755
|
-
}] = yield*
|
|
30755
|
+
}] = yield* Vt(pt.structure(e.controllers.tableData.signal)({
|
|
30756
30756
|
query_type: "COUNT",
|
|
30757
30757
|
type: e.sqlDataSourceType,
|
|
30758
30758
|
key: e.key,
|
|
@@ -30839,7 +30839,7 @@ function au(e) {
|
|
|
30839
30839
|
return a ? Ko[a] : n.dimension !== null ? Ko.dimension : "ERROR";
|
|
30840
30840
|
});
|
|
30841
30841
|
}
|
|
30842
|
-
function
|
|
30842
|
+
function $4(e) {
|
|
30843
30843
|
if (e.length === 0)
|
|
30844
30844
|
return [];
|
|
30845
30845
|
const t = au(e);
|
|
@@ -30869,7 +30869,7 @@ function V4(e) {
|
|
|
30869
30869
|
})
|
|
30870
30870
|
}));
|
|
30871
30871
|
}
|
|
30872
|
-
function
|
|
30872
|
+
function V4(e) {
|
|
30873
30873
|
if (e.length === 0)
|
|
30874
30874
|
return [];
|
|
30875
30875
|
const t = au(e);
|
|
@@ -30925,10 +30925,10 @@ const A4 = m.model({
|
|
|
30925
30925
|
return (t = this.metric) == null ? void 0 : t.type;
|
|
30926
30926
|
},
|
|
30927
30927
|
get filterColOptions() {
|
|
30928
|
-
return
|
|
30928
|
+
return $4(e.filters);
|
|
30929
30929
|
},
|
|
30930
30930
|
get groupByColOptions() {
|
|
30931
|
-
return
|
|
30931
|
+
return V4(e.groupBys);
|
|
30932
30932
|
},
|
|
30933
30933
|
get flatGroupByColOptions() {
|
|
30934
30934
|
const t = this.groupByColOptions, n = [];
|
|
@@ -30955,7 +30955,7 @@ const A4 = m.model({
|
|
|
30955
30955
|
data: {
|
|
30956
30956
|
key: e.mmInfo.key
|
|
30957
30957
|
}
|
|
30958
|
-
}), i = yield*
|
|
30958
|
+
}), i = yield* Vt(pt.mericoMetricInfo(e.controller.signal)({
|
|
30959
30959
|
key: e.mmInfo.key,
|
|
30960
30960
|
query: JSON.stringify(a),
|
|
30961
30961
|
...e.mmInfo.additionalQueryInfo
|
|
@@ -31019,7 +31019,7 @@ const A4 = m.model({
|
|
|
31019
31019
|
params: {
|
|
31020
31020
|
search: e.keyword
|
|
31021
31021
|
}
|
|
31022
|
-
}), a = yield*
|
|
31022
|
+
}), a = yield* Vt(pt.mericoMetricInfo(e.controller.signal)({
|
|
31023
31023
|
key: e.mmInfo.key,
|
|
31024
31024
|
query: JSON.stringify(n),
|
|
31025
31025
|
...e.mmInfo.additionalQueryInfo
|
|
@@ -32053,7 +32053,7 @@ const n6 = m.model({
|
|
|
32053
32053
|
if (!n.typedAsSQL)
|
|
32054
32054
|
return;
|
|
32055
32055
|
const a = n.config;
|
|
32056
|
-
C.uniq(a.sql.match(
|
|
32056
|
+
C.uniq(a.sql.match(Vn.sqlSnippet)).forEach((o) => {
|
|
32057
32057
|
t.push({
|
|
32058
32058
|
queryID: n.id,
|
|
32059
32059
|
sqlSnippetKey: o,
|
|
@@ -32489,7 +32489,7 @@ const o6 = D(({
|
|
|
32489
32489
|
fill: "rgb(173, 181, 189)",
|
|
32490
32490
|
stroke: "none"
|
|
32491
32491
|
}
|
|
32492
|
-
}, children: /* @__PURE__ */ r(
|
|
32492
|
+
}, children: /* @__PURE__ */ r($h, { size: 18 }) }) }),
|
|
32493
32493
|
/* @__PURE__ */ r(W.Dropdown, { children: /* @__PURE__ */ r(W.Item, { leftSection: /* @__PURE__ */ r(bt, { size: 14, color: "red" }), disabled: !o, onClick: i, children: t("common.actions.revert_changes") }) })
|
|
32494
32494
|
] })
|
|
32495
32495
|
] });
|
|
@@ -32513,7 +32513,7 @@ const o6 = D(({
|
|
|
32513
32513
|
position: "relative"
|
|
32514
32514
|
}, children: [
|
|
32515
32515
|
/* @__PURE__ */ u(y, { children: [
|
|
32516
|
-
/* @__PURE__ */ r(L, { size: "xs", color: i ? "red" : "green", leftSection: /* @__PURE__ */ r(
|
|
32516
|
+
/* @__PURE__ */ r(L, { size: "xs", color: i ? "red" : "green", leftSection: /* @__PURE__ */ r(Vl, { size: 20 }), onClick: o, children: /* @__PURE__ */ r(y, { gap: 4, children: /* @__PURE__ */ r(Mr, { i18nKey: "common.actions.end_editing", values: {
|
|
32517
32517
|
name: a.name
|
|
32518
32518
|
}, children: /* @__PURE__ */ r(k, { td: "underline", size: "xs", children: a.name }) }) }) }),
|
|
32519
32519
|
/* @__PURE__ */ r(o6, { saveDashboardChanges: e })
|
|
@@ -32570,9 +32570,9 @@ const o6 = D(({
|
|
|
32570
32570
|
return "Screen sizes should be unique by min width";
|
|
32571
32571
|
}
|
|
32572
32572
|
}
|
|
32573
|
-
}), x = s("list"), v = p.map((J,
|
|
32573
|
+
}), x = s("list"), v = p.map((J, Ve) => ({
|
|
32574
32574
|
...J,
|
|
32575
|
-
...x[
|
|
32575
|
+
...x[Ve]
|
|
32576
32576
|
})), I = () => {
|
|
32577
32577
|
g({
|
|
32578
32578
|
id: At(),
|
|
@@ -32582,11 +32582,11 @@ const o6 = D(({
|
|
|
32582
32582
|
}, M = ({
|
|
32583
32583
|
list: J
|
|
32584
32584
|
}) => {
|
|
32585
|
-
const
|
|
32586
|
-
a.updateLayoutSetsInfo(
|
|
32585
|
+
const Ve = J.filter((Xe) => Number.isFinite(Xe.breakpoint));
|
|
32586
|
+
a.updateLayoutSetsInfo(Ve), e();
|
|
32587
32587
|
}, P = c(), E = z(() => {
|
|
32588
32588
|
const J = {
|
|
32589
|
-
list: P.list.filter((
|
|
32589
|
+
list: P.list.filter((Ve) => !!Ve.name && Number.isFinite(Ve.breakpoint))
|
|
32590
32590
|
};
|
|
32591
32591
|
return !Fe(J, i);
|
|
32592
32592
|
}, [P, i]), Y = (de = (U = h.errors.list) == null ? void 0 : U.root) == null ? void 0 : de.message;
|
|
@@ -32604,16 +32604,16 @@ const o6 = D(({
|
|
|
32604
32604
|
/* @__PURE__ */ r(w.Th, {})
|
|
32605
32605
|
] }) }),
|
|
32606
32606
|
/* @__PURE__ */ u(w.Tbody, { children: [
|
|
32607
|
-
v.map((J,
|
|
32608
|
-
/* @__PURE__ */ r(w.Th, { children: J.id === "basis" ? J.name : /* @__PURE__ */ r(f, { name: `list.${
|
|
32607
|
+
v.map((J, Ve) => /* @__PURE__ */ u(w.Tr, { children: [
|
|
32608
|
+
/* @__PURE__ */ r(w.Th, { children: J.id === "basis" ? J.name : /* @__PURE__ */ r(f, { name: `list.${Ve}.name`, control: o, render: ({
|
|
32609
32609
|
field: Xe
|
|
32610
|
-
}) => /* @__PURE__ */ r(
|
|
32610
|
+
}) => /* @__PURE__ */ r($, { size: "xs", label: "", required: !0, sx: {
|
|
32611
32611
|
flex: 1
|
|
32612
32612
|
}, ...Xe }) }) }),
|
|
32613
32613
|
/* @__PURE__ */ r(w.Td, { children: J.id === "basis" ? /* @__PURE__ */ u(k, { size: "sm", ff: "monospace", children: [
|
|
32614
32614
|
J.breakpoint,
|
|
32615
32615
|
"px"
|
|
32616
|
-
] }) : /* @__PURE__ */ r(f, { name: `list.${
|
|
32616
|
+
] }) : /* @__PURE__ */ r(f, { name: `list.${Ve}.breakpoint`, control: o, render: ({
|
|
32617
32617
|
field: Xe
|
|
32618
32618
|
}) => /* @__PURE__ */ r(ne, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r(k, { size: "sm", c: "dimmed", children: "px" }), rightSectionProps: {
|
|
32619
32619
|
style: {
|
|
@@ -32626,7 +32626,7 @@ const o6 = D(({
|
|
|
32626
32626
|
paddingRight: "30px"
|
|
32627
32627
|
}
|
|
32628
32628
|
}, ...Xe }) }) }),
|
|
32629
|
-
/* @__PURE__ */ r(w.Td, { children: J.id !== "basis" && /* @__PURE__ */ r(te, { mx: "auto", size: "xs", variant: "subtle", color: "red", onClick: () => b(
|
|
32629
|
+
/* @__PURE__ */ r(w.Td, { children: J.id !== "basis" && /* @__PURE__ */ r(te, { mx: "auto", size: "xs", variant: "subtle", color: "red", onClick: () => b(Ve), children: /* @__PURE__ */ r(Pe, {}) }) })
|
|
32630
32630
|
] }, J.id)),
|
|
32631
32631
|
/* @__PURE__ */ r(w.Tr, { style: {
|
|
32632
32632
|
backgroundColor: "transparent"
|
|
@@ -32659,7 +32659,7 @@ const o6 = D(({
|
|
|
32659
32659
|
return /* @__PURE__ */ u(q, { children: [
|
|
32660
32660
|
/* @__PURE__ */ u(y, { children: [
|
|
32661
32661
|
/* @__PURE__ */ u(W, { withArrow: !0, withinPortal: !0, zIndex: 320, trigger: "hover", children: [
|
|
32662
|
-
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", leftSection: /* @__PURE__ */ r(
|
|
32662
|
+
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", leftSection: /* @__PURE__ */ r(Vh, { size: 16 }), sx: {
|
|
32663
32663
|
borderRadius: 0
|
|
32664
32664
|
}, children: /* @__PURE__ */ u(y, { gap: 6, children: [
|
|
32665
32665
|
/* @__PURE__ */ r(k, { size: "xs", fw: "normal", children: l.name }),
|
|
@@ -32719,7 +32719,7 @@ const o6 = D(({
|
|
|
32719
32719
|
const {
|
|
32720
32720
|
t
|
|
32721
32721
|
} = _(), n = e.views;
|
|
32722
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
32722
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
|
|
32723
32723
|
/* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("view.labels") }),
|
|
32724
32724
|
/* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
|
|
32725
32725
|
/* @__PURE__ */ r(w.Th, { style: {
|
|
@@ -32739,7 +32739,7 @@ const o6 = D(({
|
|
|
32739
32739
|
const {
|
|
32740
32740
|
t
|
|
32741
32741
|
} = _(), n = e.filters;
|
|
32742
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
32742
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
|
|
32743
32743
|
/* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("filter.labels") }),
|
|
32744
32744
|
/* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
|
|
32745
32745
|
/* @__PURE__ */ r(w.Th, { style: {
|
|
@@ -32759,7 +32759,7 @@ const o6 = D(({
|
|
|
32759
32759
|
const {
|
|
32760
32760
|
t
|
|
32761
32761
|
} = _(), n = e.panels;
|
|
32762
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
32762
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
|
|
32763
32763
|
/* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("panel.labels") }),
|
|
32764
32764
|
/* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
|
|
32765
32765
|
/* @__PURE__ */ r(w.Th, { style: {
|
|
@@ -32780,7 +32780,7 @@ const o6 = D(({
|
|
|
32780
32780
|
const {
|
|
32781
32781
|
t
|
|
32782
32782
|
} = _(), n = (a = e.definition) == null ? void 0 : a.queries;
|
|
32783
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
32783
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
|
|
32784
32784
|
/* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("query.labels") }),
|
|
32785
32785
|
/* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
|
|
32786
32786
|
/* @__PURE__ */ r(w.Th, { style: {
|
|
@@ -32807,7 +32807,7 @@ const o6 = D(({
|
|
|
32807
32807
|
const {
|
|
32808
32808
|
t
|
|
32809
32809
|
} = _(), n = (a = e.definition) == null ? void 0 : a.sqlSnippets;
|
|
32810
|
-
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(
|
|
32810
|
+
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
|
|
32811
32811
|
/* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("sql_snippet.labels") }),
|
|
32812
32812
|
/* @__PURE__ */ r(Ue, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r(Er, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r(Ue.Item, { children: i.key }, i.key)) })
|
|
32813
32813
|
] });
|
|
@@ -32818,13 +32818,13 @@ const o6 = D(({
|
|
|
32818
32818
|
const {
|
|
32819
32819
|
t
|
|
32820
32820
|
} = _(), n = Object.keys(((a = e.definition) == null ? void 0 : a.mock_context) ?? {});
|
|
32821
|
-
return n.length === 0 ? null : /* @__PURE__ */ u(
|
|
32821
|
+
return n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
|
|
32822
32822
|
/* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("mock_context.label") }),
|
|
32823
32823
|
/* @__PURE__ */ r(Ue, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r(Er, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r(Ue.Item, { children: i }, i)) })
|
|
32824
32824
|
] });
|
|
32825
32825
|
}, y6 = ({
|
|
32826
32826
|
content: e
|
|
32827
|
-
}) => e ? /* @__PURE__ */ u(
|
|
32827
|
+
}) => e ? /* @__PURE__ */ u(V, { children: [
|
|
32828
32828
|
/* @__PURE__ */ r(A, { mt: 20, mb: 10, variant: "dashed" }),
|
|
32829
32829
|
/* @__PURE__ */ r(k, { ta: "left", c: "dimmed", size: "sm", children: "Preview" }),
|
|
32830
32830
|
/* @__PURE__ */ u(T, { children: [
|
|
@@ -32910,7 +32910,7 @@ const x6 = D(({
|
|
|
32910
32910
|
const [x] = c(["content"]), v = !x, I = (M = l == null ? void 0 : l.content) == null ? void 0 : M.message;
|
|
32911
32911
|
return N(() => {
|
|
32912
32912
|
!x || I ? n() : t();
|
|
32913
|
-
}, [x, I]), /* @__PURE__ */ r(
|
|
32913
|
+
}, [x, I]), /* @__PURE__ */ r(V, { mx: "auto", sx: {
|
|
32914
32914
|
position: "relative"
|
|
32915
32915
|
}, children: /* @__PURE__ */ u("form", { onSubmit: o(p), children: [
|
|
32916
32916
|
/* @__PURE__ */ r(Zu, { label: a("import.json_file"), required: !0, value: g, onChange: b, error: (P = l == null ? void 0 : l.content) == null ? void 0 : P.message, sx: {
|
|
@@ -33000,7 +33000,7 @@ const x6 = D(({
|
|
|
33000
33000
|
const {
|
|
33001
33001
|
t: n
|
|
33002
33002
|
} = _();
|
|
33003
|
-
return /* @__PURE__ */ r(
|
|
33003
|
+
return /* @__PURE__ */ r(V, { className: "spotlight-custom-action-component", children: /* @__PURE__ */ u(y, { wrap: "nowrap", children: [
|
|
33004
33004
|
/* @__PURE__ */ r(w6, { iconKey: e.iconKey, size: 14 }),
|
|
33005
33005
|
/* @__PURE__ */ u("div", { style: {
|
|
33006
33006
|
flex: 1
|
|
@@ -33021,7 +33021,7 @@ const x6 = D(({
|
|
|
33021
33021
|
const {
|
|
33022
33022
|
t: e,
|
|
33023
33023
|
i18n: t
|
|
33024
|
-
} = _(), n =
|
|
33024
|
+
} = _(), n = $r(), a = he(), [i, o] = Q(""), l = z(() => a.editor.spotlightActionGroups.map((c) => ({
|
|
33025
33025
|
group: e(c.group),
|
|
33026
33026
|
keywords: [c.group, e(c.group)],
|
|
33027
33027
|
actions: c.actions.map((d) => {
|
|
@@ -33117,7 +33117,7 @@ const x6 = D(({
|
|
|
33117
33117
|
zIndex: 299,
|
|
33118
33118
|
borderBottom: "1px solid #e9ecef",
|
|
33119
33119
|
background: "rgba(233,236,239, 0.15)"
|
|
33120
|
-
}, I6 = D(() => /* @__PURE__ */ r(
|
|
33120
|
+
}, I6 = D(() => /* @__PURE__ */ r(V, { sx: D6, pl: {
|
|
33121
33121
|
base: 200,
|
|
33122
33122
|
xs: 200,
|
|
33123
33123
|
sm: 200,
|
|
@@ -33200,7 +33200,7 @@ function L6(e, t, n) {
|
|
|
33200
33200
|
});
|
|
33201
33201
|
}), a;
|
|
33202
33202
|
}
|
|
33203
|
-
function
|
|
33203
|
+
function $6(e, t) {
|
|
33204
33204
|
const n = e.filters.keyLabelMap;
|
|
33205
33205
|
return {
|
|
33206
33206
|
edges: L6(e.panels.list, t, n),
|
|
@@ -33210,7 +33210,7 @@ function V6(e, t) {
|
|
|
33210
33210
|
function cu(e, t, n) {
|
|
33211
33211
|
return e * t + e * n;
|
|
33212
33212
|
}
|
|
33213
|
-
function
|
|
33213
|
+
function V6(e, t, n) {
|
|
33214
33214
|
return e * t + (e - 1) * n;
|
|
33215
33215
|
}
|
|
33216
33216
|
const Tr = 25, Zi = 40, du = 25, Ji = 350, P6 = 150, A6 = 150, uu = 150, tl = 300, fr = 40, hu = 25, R6 = 300;
|
|
@@ -33269,7 +33269,7 @@ const O6 = {
|
|
|
33269
33269
|
}, F6 = _4;
|
|
33270
33270
|
function q6(e) {
|
|
33271
33271
|
return e.current.map((n, a) => {
|
|
33272
|
-
const i =
|
|
33272
|
+
const i = V6(n.panelIDs.length, fr, hu) + Zi + du;
|
|
33273
33273
|
let o = [];
|
|
33274
33274
|
return n.type === G.Tabs && (o = n.config.tabsInOrder.map((s) => s.view_id)), {
|
|
33275
33275
|
id: n.id,
|
|
@@ -33386,7 +33386,7 @@ function U6(e) {
|
|
|
33386
33386
|
const t = B6(e), n = C.keyBy(t, (c) => c.id), {
|
|
33387
33387
|
edges: a,
|
|
33388
33388
|
edgeNodes: i
|
|
33389
|
-
} =
|
|
33389
|
+
} = $6(e, n), o = [...t, ...i], l = C.keyBy(o, (c) => c.id), s = {
|
|
33390
33390
|
edges: C.uniqBy(a, (c) => c.id),
|
|
33391
33391
|
nodes: o,
|
|
33392
33392
|
nodeMap: l
|
|
@@ -33455,7 +33455,7 @@ const Y6 = Bu(({
|
|
|
33455
33455
|
const o = z(() => K6(e.interactions), [e.interactions]);
|
|
33456
33456
|
return /* @__PURE__ */ u(q, { children: [
|
|
33457
33457
|
/* @__PURE__ */ r(co, { type: "target", position: a, isConnectable: t }),
|
|
33458
|
-
/* @__PURE__ */ r(
|
|
33458
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
33459
33459
|
position: "absolute",
|
|
33460
33460
|
top: 0,
|
|
33461
33461
|
right: 0
|
|
@@ -33537,7 +33537,7 @@ function tD({
|
|
|
33537
33537
|
active: n,
|
|
33538
33538
|
openSettings: a
|
|
33539
33539
|
}) {
|
|
33540
|
-
return /* @__PURE__ */ u(
|
|
33540
|
+
return /* @__PURE__ */ u(V, { sx: {
|
|
33541
33541
|
position: "relative"
|
|
33542
33542
|
}, children: [
|
|
33543
33543
|
/* @__PURE__ */ r(Aa, { sx: (i) => ({
|
|
@@ -33571,7 +33571,7 @@ const nD = D(() => {
|
|
|
33571
33571
|
} = _(), t = he(), n = oe(), a = ae((o) => () => n.views.setIDOfVIE(o), [n]), i = (o) => {
|
|
33572
33572
|
t.editor.open(["_VIEWS_", o]);
|
|
33573
33573
|
};
|
|
33574
|
-
return /* @__PURE__ */ u(
|
|
33574
|
+
return /* @__PURE__ */ u(V, { sx: {
|
|
33575
33575
|
position: "relative"
|
|
33576
33576
|
}, children: [
|
|
33577
33577
|
n.views.options.map((o) => /* @__PURE__ */ r(tD, { active: n.views.idOfVIE === o.value, name: o.label, onClick: a(o.value), openSettings: () => i(o.value) }, o.value)),
|
|
@@ -33738,7 +33738,7 @@ const nD = D(() => {
|
|
|
33738
33738
|
/* @__PURE__ */ r(Z, { checked: a.required, onChange: (s) => a.setRequired(s.currentTarget.checked), label: n("filter.widget.select.required") }),
|
|
33739
33739
|
/* @__PURE__ */ r(Dn, { filter: t })
|
|
33740
33740
|
] }),
|
|
33741
|
-
/* @__PURE__ */ r(
|
|
33741
|
+
/* @__PURE__ */ r($, { 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" }),
|
|
33742
33742
|
/* @__PURE__ */ r(A, { label: n("filter.widget.select.configure_options"), labelPosition: "center" }),
|
|
33743
33743
|
/* @__PURE__ */ u(T, { gap: 10, sx: {
|
|
33744
33744
|
position: "relative",
|
|
@@ -33764,12 +33764,12 @@ const nD = D(() => {
|
|
|
33764
33764
|
o.map((s, c) => /* @__PURE__ */ u(rt, { gap: 10, sx: {
|
|
33765
33765
|
position: "relative"
|
|
33766
33766
|
}, pr: "40px", children: [
|
|
33767
|
-
/* @__PURE__ */ r(
|
|
33767
|
+
/* @__PURE__ */ r($, { label: n("common.label"), required: !0, value: a.static_options[c].label, onChange: (d) => {
|
|
33768
33768
|
a.static_options[c].setLabel(d.currentTarget.value);
|
|
33769
33769
|
}, sx: {
|
|
33770
33770
|
flexGrow: 1
|
|
33771
33771
|
} }),
|
|
33772
|
-
/* @__PURE__ */ r(
|
|
33772
|
+
/* @__PURE__ */ r($, { label: n("common.value"), required: !0, value: a.static_options[c].value, onChange: (d) => {
|
|
33773
33773
|
a.static_options[c].setValue(d.currentTarget.value);
|
|
33774
33774
|
}, sx: {
|
|
33775
33775
|
flexGrow: 1
|
|
@@ -33870,12 +33870,12 @@ const nD = D(() => {
|
|
|
33870
33870
|
a.map((o, l) => /* @__PURE__ */ u(rt, { gap: 10, sx: {
|
|
33871
33871
|
position: "relative"
|
|
33872
33872
|
}, pr: "40px", children: [
|
|
33873
|
-
/* @__PURE__ */ r(
|
|
33873
|
+
/* @__PURE__ */ r($, { label: t("common.label"), required: !0, value: e.static_options[l].label, onChange: (s) => {
|
|
33874
33874
|
e.static_options[l].setLabel(s.currentTarget.value);
|
|
33875
33875
|
}, sx: {
|
|
33876
33876
|
flexGrow: 1
|
|
33877
33877
|
} }),
|
|
33878
|
-
/* @__PURE__ */ r(
|
|
33878
|
+
/* @__PURE__ */ r($, { label: t("common.value"), required: !0, value: e.static_options[l].value, onChange: (s) => {
|
|
33879
33879
|
e.static_options[l].setValue(s.currentTarget.value);
|
|
33880
33880
|
}, sx: {
|
|
33881
33881
|
flexGrow: 1
|
|
@@ -33900,7 +33900,7 @@ const nD = D(() => {
|
|
|
33900
33900
|
/* @__PURE__ */ r(Z, { checked: n.clearable, onChange: (a) => n.setClearable(a.currentTarget.checked), label: t("filter.widget.select.clearable") }),
|
|
33901
33901
|
/* @__PURE__ */ r(Dn, { filter: e })
|
|
33902
33902
|
] }),
|
|
33903
|
-
/* @__PURE__ */ r(
|
|
33903
|
+
/* @__PURE__ */ r($, { label: t("filter.widget.select.width"), value: n.width, onChange: (a) => n.setWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
33904
33904
|
/* @__PURE__ */ r(A, { label: t("filter.widget.select.configure_options"), labelPosition: "center" }),
|
|
33905
33905
|
/* @__PURE__ */ u(T, { gap: 10, sx: {
|
|
33906
33906
|
position: "relative",
|
|
@@ -33937,12 +33937,12 @@ const nD = D(() => {
|
|
|
33937
33937
|
} = _(), a = t.config;
|
|
33938
33938
|
return /* @__PURE__ */ u(q, { children: [
|
|
33939
33939
|
/* @__PURE__ */ u(y, { children: [
|
|
33940
|
-
/* @__PURE__ */ r(
|
|
33940
|
+
/* @__PURE__ */ r($, { label: n("filter.widget.text_input.default_value"), value: a.default_value, onChange: (i) => {
|
|
33941
33941
|
a.setDefaultValue(i.currentTarget.value);
|
|
33942
33942
|
}, sx: {
|
|
33943
33943
|
flexGrow: 1
|
|
33944
33944
|
} }),
|
|
33945
|
-
/* @__PURE__ */ r(
|
|
33945
|
+
/* @__PURE__ */ r(V, { mt: 22, children: /* @__PURE__ */ r(Dn, { filter: t }) })
|
|
33946
33946
|
] }),
|
|
33947
33947
|
/* @__PURE__ */ r(Z, { checked: a.required, onChange: (i) => a.setRequired(i.currentTarget.checked), label: n("filter.widget.text_input.required") })
|
|
33948
33948
|
] });
|
|
@@ -33992,7 +33992,7 @@ const nD = D(() => {
|
|
|
33992
33992
|
/* @__PURE__ */ r(S.Tab, { value: "config", children: t("common.titles.config") }),
|
|
33993
33993
|
/* @__PURE__ */ r(S.Tab, { value: "usage", children: t("filter.usage.label") })
|
|
33994
33994
|
] }),
|
|
33995
|
-
/* @__PURE__ */ r(S.Panel, { value: "config", children: /* @__PURE__ */ r(
|
|
33995
|
+
/* @__PURE__ */ r(S.Panel, { value: "config", children: /* @__PURE__ */ r(V, { sx: {
|
|
33996
33996
|
minWidth: "480px"
|
|
33997
33997
|
}, children: /* @__PURE__ */ r(kt, { mt: 22, language: "json", withCopyButton: !1, code: JSON.stringify(e, null, 4) }) }) }),
|
|
33998
33998
|
/* @__PURE__ */ r(S.Panel, { value: "usage", children: /* @__PURE__ */ r(hD, { filter: e }) })
|
|
@@ -34042,7 +34042,7 @@ const nD = D(() => {
|
|
|
34042
34042
|
value: "date-range"
|
|
34043
34043
|
}], [n.language]);
|
|
34044
34044
|
return /* @__PURE__ */ u(y, { grow: !0, gap: 20, align: "top", children: [
|
|
34045
|
-
/* @__PURE__ */ u(
|
|
34045
|
+
/* @__PURE__ */ u(V, { w: 600, children: [
|
|
34046
34046
|
/* @__PURE__ */ r(k, { pb: "md", c: "gray", size: "sm", children: t("common.titles.edit") }),
|
|
34047
34047
|
/* @__PURE__ */ u(T, { children: [
|
|
34048
34048
|
/* @__PURE__ */ u(y, { wrap: "nowrap", children: [
|
|
@@ -34052,10 +34052,10 @@ const nD = D(() => {
|
|
|
34052
34052
|
e.auto_submit_supported && /* @__PURE__ */ r(Z, { label: t("filter.field.auto_submit"), checked: e.auto_submit, onChange: (l) => e.setAutoSubmit(l.currentTarget.checked), mt: 22 })
|
|
34053
34053
|
] }),
|
|
34054
34054
|
/* @__PURE__ */ r(Kt, { label: t("filter.field.visible_in"), data: a.views.options, value: [...e.visibleInViewsIDs], onChange: e.setVisibleInViewsIDs }),
|
|
34055
|
-
/* @__PURE__ */ r(
|
|
34055
|
+
/* @__PURE__ */ r($, { label: t("common.key"), placeholder: t("filter.field.key_placeholder"), required: !0, value: e.key, onChange: (l) => {
|
|
34056
34056
|
e.setKey(l.currentTarget.value);
|
|
34057
34057
|
} }),
|
|
34058
|
-
/* @__PURE__ */ r(
|
|
34058
|
+
/* @__PURE__ */ r($, { label: t("common.label"), placeholder: t("filter.field.label_placeholder"), required: !0, value: e.label, onChange: (l) => {
|
|
34059
34059
|
e.setLabel(l.currentTarget.value);
|
|
34060
34060
|
} }),
|
|
34061
34061
|
/* @__PURE__ */ r(F, { label: t("filter.field.widget"), data: o, required: !0, value: e.type, onChange: e.setType, maxDropdownHeight: 500 }),
|
|
@@ -34104,7 +34104,7 @@ const nD = D(() => {
|
|
|
34104
34104
|
zIndex: 320
|
|
34105
34105
|
});
|
|
34106
34106
|
}, children: t("filter.delete") }) }),
|
|
34107
|
-
/* @__PURE__ */ r(
|
|
34107
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
34108
34108
|
flexGrow: 1,
|
|
34109
34109
|
maxHeight: "calc(100% - 52px)",
|
|
34110
34110
|
overflow: "auto"
|
|
@@ -34125,7 +34125,7 @@ const nD = D(() => {
|
|
|
34125
34125
|
return /* @__PURE__ */ u(T, { sx: {
|
|
34126
34126
|
height: "100%"
|
|
34127
34127
|
}, gap: "sm", pb: "59px", children: [
|
|
34128
|
-
/* @__PURE__ */ r(
|
|
34128
|
+
/* @__PURE__ */ r(V, { pt: 9, pb: 8, sx: {
|
|
34129
34129
|
borderBottom: "1px solid #eee"
|
|
34130
34130
|
}, children: /* @__PURE__ */ r(k, { size: "sm", px: "md", ta: "left", sx: {
|
|
34131
34131
|
userSelect: "none",
|
|
@@ -34148,7 +34148,7 @@ const nD = D(() => {
|
|
|
34148
34148
|
}
|
|
34149
34149
|
)
|
|
34150
34150
|
] }) }),
|
|
34151
|
-
/* @__PURE__ */ r(
|
|
34151
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
34152
34152
|
flexGrow: 1,
|
|
34153
34153
|
overflow: "auto"
|
|
34154
34154
|
}, children: /* @__PURE__ */ r(Z.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
|
|
@@ -34237,7 +34237,7 @@ const nD = D(() => {
|
|
|
34237
34237
|
t: e
|
|
34238
34238
|
} = _(), {
|
|
34239
34239
|
panel: t
|
|
34240
|
-
} =
|
|
34240
|
+
} = $e();
|
|
34241
34241
|
return /* @__PURE__ */ r(ln, { label: e("panel.panel_description"), value: t.description, onChange: t.setDescription, styles: {
|
|
34242
34242
|
root: {
|
|
34243
34243
|
flexGrow: 1
|
|
@@ -34248,7 +34248,7 @@ const nD = D(() => {
|
|
|
34248
34248
|
t: e
|
|
34249
34249
|
} = _(), {
|
|
34250
34250
|
panel: t
|
|
34251
|
-
} =
|
|
34251
|
+
} = $e(), n = _e().layouts.findItemByPanelID(t.id), {
|
|
34252
34252
|
style: a
|
|
34253
34253
|
} = t;
|
|
34254
34254
|
return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ u(T, { gap: 20, children: [
|
|
@@ -34281,7 +34281,7 @@ const nD = D(() => {
|
|
|
34281
34281
|
t: e
|
|
34282
34282
|
} = _(), {
|
|
34283
34283
|
panel: t
|
|
34284
|
-
} =
|
|
34284
|
+
} = $e(), {
|
|
34285
34285
|
name: n
|
|
34286
34286
|
} = t, [a, i] = kl(n), o = n !== a, l = R.useCallback(() => {
|
|
34287
34287
|
o && t.setName(a);
|
|
@@ -34298,14 +34298,14 @@ const nD = D(() => {
|
|
|
34298
34298
|
] }),
|
|
34299
34299
|
/* @__PURE__ */ r(te, { variant: "subtle", color: "blue", disabled: !o || s, onClick: l, children: /* @__PURE__ */ r(fe, { size: 18 }) })
|
|
34300
34300
|
] }),
|
|
34301
|
-
/* @__PURE__ */ r(
|
|
34301
|
+
/* @__PURE__ */ r($, { value: a, onChange: i, required: !0 })
|
|
34302
34302
|
] });
|
|
34303
34303
|
}), SD = D(() => {
|
|
34304
34304
|
const {
|
|
34305
34305
|
t: e
|
|
34306
34306
|
} = _(), {
|
|
34307
34307
|
panel: t
|
|
34308
|
-
} =
|
|
34308
|
+
} = $e();
|
|
34309
34309
|
return /* @__PURE__ */ r(T, { gap: 6, mb: 10, children: /* @__PURE__ */ u(y, { pl: 6, justify: "flex-start", gap: 20, children: [
|
|
34310
34310
|
/* @__PURE__ */ r(Z, { size: "sm", checked: t.title.show, onChange: (n) => t.title.setShow(n.currentTarget.checked), label: e("panel.show_title"), sx: {
|
|
34311
34311
|
userSelect: "none"
|
|
@@ -34380,7 +34380,7 @@ function mu({
|
|
|
34380
34380
|
columnResizeMode: "onChange",
|
|
34381
34381
|
getCoreRowModel: Za()
|
|
34382
34382
|
});
|
|
34383
|
-
return e.length === 0 ? /* @__PURE__ */ r(
|
|
34383
|
+
return e.length === 0 ? /* @__PURE__ */ r(V, { sx: {
|
|
34384
34384
|
height: "5em"
|
|
34385
34385
|
} }) : /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ u(w, { sx: kD, children: [
|
|
34386
34386
|
/* @__PURE__ */ r(w.Thead, { children: n.getHeaderGroups().map((a) => /* @__PURE__ */ r(w.Tr, { children: a.headers.map((i) => /* @__PURE__ */ u(w.Th, { style: {
|
|
@@ -34431,7 +34431,7 @@ const zD = [{
|
|
|
34431
34431
|
const d = s === 1 && l <= 10;
|
|
34432
34432
|
return /* @__PURE__ */ u(y, { pt: 10, px: 10, justify: "space-between", children: [
|
|
34433
34433
|
/* @__PURE__ */ u(y, { justify: "flex-start", children: [
|
|
34434
|
-
s > 1 && /* @__PURE__ */ r(
|
|
34434
|
+
s > 1 && /* @__PURE__ */ r(Vr, { size: "sm", value: t, onChange: n, total: s, withEdges: s > 7, styles: {
|
|
34435
34435
|
control: {
|
|
34436
34436
|
height: "30px"
|
|
34437
34437
|
}
|
|
@@ -34462,7 +34462,7 @@ const zD = [{
|
|
|
34462
34462
|
}, [e, n, i]);
|
|
34463
34463
|
return /* @__PURE__ */ u(Te, { children: [
|
|
34464
34464
|
/* @__PURE__ */ r(DD, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
|
|
34465
|
-
/* @__PURE__ */ u(
|
|
34465
|
+
/* @__PURE__ */ u(V, { py: 10, sx: {
|
|
34466
34466
|
width: "100%",
|
|
34467
34467
|
height: "calc(100% - 42px)",
|
|
34468
34468
|
overflow: "auto",
|
|
@@ -34522,7 +34522,7 @@ const zD = [{
|
|
|
34522
34522
|
/* @__PURE__ */ r(te, { variant: "subtle", color: "blue", disabled: s || h, onClick: d, children: /* @__PURE__ */ r(or, { size: 16 }) })
|
|
34523
34523
|
] })
|
|
34524
34524
|
] }),
|
|
34525
|
-
/* @__PURE__ */ u(
|
|
34525
|
+
/* @__PURE__ */ u(V, { pb: 20, sx: {
|
|
34526
34526
|
position: "relative",
|
|
34527
34527
|
flexGrow: 1,
|
|
34528
34528
|
overflow: "auto"
|
|
@@ -34536,7 +34536,7 @@ const zD = [{
|
|
|
34536
34536
|
t
|
|
34537
34537
|
} = _(), n = he(), a = oe(), {
|
|
34538
34538
|
panel: i
|
|
34539
|
-
} =
|
|
34539
|
+
} = $e(), [o, l] = Q(!1), s = (d) => {
|
|
34540
34540
|
n.editor.setPath(["_QUERIES_", d]);
|
|
34541
34541
|
}, c = i.queryIDs.length;
|
|
34542
34542
|
return /* @__PURE__ */ u(q, { children: [
|
|
@@ -34550,18 +34550,18 @@ const zD = [{
|
|
|
34550
34550
|
] })
|
|
34551
34551
|
] })
|
|
34552
34552
|
] });
|
|
34553
|
-
}),
|
|
34553
|
+
}), $D = D(() => {
|
|
34554
34554
|
const {
|
|
34555
34555
|
panel: e
|
|
34556
34556
|
} = ot();
|
|
34557
34557
|
return e.title.show ? /* @__PURE__ */ r(y, { grow: !0, justify: "center", className: "panel-title-wrapper", sx: {
|
|
34558
34558
|
flexGrow: 1
|
|
34559
34559
|
}, children: /* @__PURE__ */ r(k, { size: "sm", ta: "center", lineClamp: 1, className: "panel-title-text", children: e.title.show ? e.name : "" }) }) : null;
|
|
34560
|
-
}),
|
|
34560
|
+
}), VD = D(() => {
|
|
34561
34561
|
const {
|
|
34562
34562
|
panel: e
|
|
34563
34563
|
} = ot();
|
|
34564
|
-
return /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(
|
|
34564
|
+
return /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(V, { className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, p: 0, sx: {
|
|
34565
34565
|
border: "1px solid",
|
|
34566
34566
|
borderColor: e.style.border.enabled ? "#e9ecef" : "transparent",
|
|
34567
34567
|
flexGrow: 0,
|
|
@@ -34569,8 +34569,8 @@ const zD = [{
|
|
|
34569
34569
|
width: "600px !important",
|
|
34570
34570
|
height: "450px !important"
|
|
34571
34571
|
}, children: /* @__PURE__ */ u(ms, { children: [
|
|
34572
|
-
/* @__PURE__ */ r(
|
|
34573
|
-
/* @__PURE__ */ r(
|
|
34572
|
+
/* @__PURE__ */ r(V, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r(Wd, {}) }),
|
|
34573
|
+
/* @__PURE__ */ r($D, {}),
|
|
34574
34574
|
/* @__PURE__ */ r(eu, { panel: e })
|
|
34575
34575
|
] }) }) });
|
|
34576
34576
|
});
|
|
@@ -34627,7 +34627,7 @@ function ED() {
|
|
|
34627
34627
|
description: l,
|
|
34628
34628
|
id: s
|
|
34629
34629
|
}
|
|
34630
|
-
} =
|
|
34630
|
+
} = $e(), {
|
|
34631
34631
|
vizManager: c
|
|
34632
34632
|
} = Jt(nn), d = {
|
|
34633
34633
|
name: i,
|
|
@@ -34649,7 +34649,7 @@ const OD = D(() => {
|
|
|
34649
34649
|
panel: {
|
|
34650
34650
|
viz: t
|
|
34651
34651
|
}
|
|
34652
|
-
} =
|
|
34652
|
+
} = $e(), {
|
|
34653
34653
|
vizManager: n
|
|
34654
34654
|
} = Jt(nn), a = R.useCallback((d) => {
|
|
34655
34655
|
if (d === t.type)
|
|
@@ -34823,7 +34823,7 @@ class ND {
|
|
|
34823
34823
|
function BD() {
|
|
34824
34824
|
const {
|
|
34825
34825
|
panel: e
|
|
34826
|
-
} =
|
|
34826
|
+
} = $e();
|
|
34827
34827
|
return Ft(() => new ND(e), [e]);
|
|
34828
34828
|
}
|
|
34829
34829
|
const jD = R.forwardRef(function({
|
|
@@ -34842,7 +34842,7 @@ const jD = R.forwardRef(function({
|
|
|
34842
34842
|
border: "1px solid #e9ecef"
|
|
34843
34843
|
}, children: [
|
|
34844
34844
|
/* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
|
|
34845
|
-
/* @__PURE__ */ r(
|
|
34845
|
+
/* @__PURE__ */ r($, { label: o("common.name"), required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
|
|
34846
34846
|
/* @__PURE__ */ r(X, { label: o("common.data_field"), required: !0, value: t.data_field, onChange: (s) => l("data_field", s) })
|
|
34847
34847
|
] }),
|
|
34848
34848
|
/* @__PURE__ */ r(Ci, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
|
|
@@ -34926,7 +34926,7 @@ const HD = D(({
|
|
|
34926
34926
|
height: "100%",
|
|
34927
34927
|
position: "relative"
|
|
34928
34928
|
}, children: [
|
|
34929
|
-
/* @__PURE__ */ r(
|
|
34929
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
34930
34930
|
maxWidth: "calc(100% - 610px - 10px)",
|
|
34931
34931
|
height: "100%",
|
|
34932
34932
|
overflow: "auto"
|
|
@@ -34937,8 +34937,8 @@ const HD = D(({
|
|
|
34937
34937
|
flexGrow: 0,
|
|
34938
34938
|
flexShrink: 0
|
|
34939
34939
|
}, children: [
|
|
34940
|
-
/* @__PURE__ */ r(
|
|
34941
|
-
/* @__PURE__ */ r(
|
|
34940
|
+
/* @__PURE__ */ r(VD, {}),
|
|
34941
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
34942
34942
|
flexGrow: 1
|
|
34943
34943
|
}, children: /* @__PURE__ */ r(qD, {}) })
|
|
34944
34944
|
] })
|
|
@@ -34996,7 +34996,7 @@ const KD = D(({
|
|
|
34996
34996
|
/* @__PURE__ */ r(S.Tab, { value: "Data", leftSection: /* @__PURE__ */ r(on, { size: 14 }), disabled: d, children: t("data.label") }),
|
|
34997
34997
|
/* @__PURE__ */ r(S.Tab, { value: "Panel", leftSection: /* @__PURE__ */ r(ja, { size: 14 }), children: t("panel.label") }),
|
|
34998
34998
|
/* @__PURE__ */ r(S.Tab, { value: "Variables", leftSection: /* @__PURE__ */ r(Bn, { size: 14 }), disabled: h, children: /* @__PURE__ */ r(re, { label: t("data.requires_data"), disabled: !h, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r(k, { size: "sm", children: t("panel.variable.labels") }) }) }),
|
|
34999
|
-
/* @__PURE__ */ r(S.Tab, { value: "Visualization", leftSection: /* @__PURE__ */ r(
|
|
34999
|
+
/* @__PURE__ */ r(S.Tab, { value: "Visualization", leftSection: /* @__PURE__ */ r($l, { size: 14 }), disabled: h, children: /* @__PURE__ */ r(re, { label: t("data.requires_data"), disabled: !h, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r(k, { size: "sm", children: t("visualization.label") }) }) }),
|
|
35000
35000
|
/* @__PURE__ */ r(S.Tab, { value: "Interactions", leftSection: /* @__PURE__ */ r(Qa, { size: 14 }), children: t("interactions.label") })
|
|
35001
35001
|
] }),
|
|
35002
35002
|
/* @__PURE__ */ u(S.Panel, { value: "Data", children: [
|
|
@@ -35058,7 +35058,7 @@ const KD = D(({
|
|
|
35058
35058
|
return /* @__PURE__ */ u(T, { sx: {
|
|
35059
35059
|
height: "100%"
|
|
35060
35060
|
}, gap: "sm", pb: "59px", children: [
|
|
35061
|
-
/* @__PURE__ */ r(
|
|
35061
|
+
/* @__PURE__ */ r(V, { pt: 9, pb: 8, sx: {
|
|
35062
35062
|
borderBottom: "1px solid #eee"
|
|
35063
35063
|
}, children: /* @__PURE__ */ r(k, { px: "md", ta: "left", sx: {
|
|
35064
35064
|
userSelect: "none",
|
|
@@ -35084,7 +35084,7 @@ const KD = D(({
|
|
|
35084
35084
|
] }),
|
|
35085
35085
|
/* @__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") })
|
|
35086
35086
|
] }),
|
|
35087
|
-
/* @__PURE__ */ r(
|
|
35087
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
35088
35088
|
flexGrow: 1,
|
|
35089
35089
|
overflow: "auto"
|
|
35090
35090
|
}, children: /* @__PURE__ */ r(Z.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
|
|
@@ -35161,7 +35161,7 @@ const KD = D(({
|
|
|
35161
35161
|
hover: !0,
|
|
35162
35162
|
focus: !1,
|
|
35163
35163
|
touch: !1
|
|
35164
|
-
}, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r(
|
|
35164
|
+
}, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r(V, { sx: {
|
|
35165
35165
|
alignSelf: "flex-end"
|
|
35166
35166
|
}, 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: {
|
|
35167
35167
|
alignSelf: "flex-end"
|
|
@@ -35375,7 +35375,7 @@ const lI = D(({
|
|
|
35375
35375
|
const t = e.dbInfo, {
|
|
35376
35376
|
tables: n
|
|
35377
35377
|
} = t;
|
|
35378
|
-
return n.loading ? /* @__PURE__ */ r(gu, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ r(
|
|
35378
|
+
return n.loading ? /* @__PURE__ */ r(gu, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ r(V, { h: "100%", sx: {
|
|
35379
35379
|
overflow: "auto",
|
|
35380
35380
|
".mantine-NavLink-label": {
|
|
35381
35381
|
fontFamily: "monospace"
|
|
@@ -35385,7 +35385,7 @@ const lI = D(({
|
|
|
35385
35385
|
}, active: t.table_name === o.table_name }, o.table_name)) }, a)) });
|
|
35386
35386
|
}), sI = ({
|
|
35387
35387
|
visible: e
|
|
35388
|
-
}) => /* @__PURE__ */ r(
|
|
35388
|
+
}) => /* @__PURE__ */ r(V, { py: 10, sx: {
|
|
35389
35389
|
width: "100%",
|
|
35390
35390
|
height: "100%",
|
|
35391
35391
|
overflow: "hidden",
|
|
@@ -35422,7 +35422,7 @@ const lI = D(({
|
|
|
35422
35422
|
} = e.dbInfo;
|
|
35423
35423
|
return /* @__PURE__ */ u(y, { pt: 10, px: 10, justify: "space-between", children: [
|
|
35424
35424
|
/* @__PURE__ */ u(y, { justify: "flex-start", children: [
|
|
35425
|
-
n.maxPage > 1 && /* @__PURE__ */ r(
|
|
35425
|
+
n.maxPage > 1 && /* @__PURE__ */ r(Vr, { size: "sm", value: n.page, onChange: n.setPage, total: n.maxPage, withEdges: n.maxPage > 7, styles: {
|
|
35426
35426
|
control: {
|
|
35427
35427
|
height: "30px"
|
|
35428
35428
|
}
|
|
@@ -35441,7 +35441,7 @@ const lI = D(({
|
|
|
35441
35441
|
const t = e.dbInfo.tableData;
|
|
35442
35442
|
return t.maxPage === 0 ? /* @__PURE__ */ r(k, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: "This table is empty" }) : t.error ? /* @__PURE__ */ r(k, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ r(sI, { visible: !0 }) : /* @__PURE__ */ u(Te, { children: [
|
|
35443
35443
|
/* @__PURE__ */ r(uI, { dataSource: e }),
|
|
35444
|
-
/* @__PURE__ */ u(
|
|
35444
|
+
/* @__PURE__ */ u(V, { py: 10, sx: {
|
|
35445
35445
|
width: "100%",
|
|
35446
35446
|
height: "calc(100% - 42px)",
|
|
35447
35447
|
overflow: "auto",
|
|
@@ -35476,7 +35476,7 @@ const lI = D(({
|
|
|
35476
35476
|
}, [n]), n.tables.error ? /* @__PURE__ */ r(k, { c: "red", size: "md", ta: "center", ff: "monospace", children: n.tables.error }) : /* @__PURE__ */ u(rt, { sx: {
|
|
35477
35477
|
height: "100%"
|
|
35478
35478
|
}, children: [
|
|
35479
|
-
/* @__PURE__ */ r(
|
|
35479
|
+
/* @__PURE__ */ r(V, { w: 300, sx: {
|
|
35480
35480
|
flexGrow: 0,
|
|
35481
35481
|
flexShrink: 0,
|
|
35482
35482
|
position: "relative"
|
|
@@ -35535,7 +35535,7 @@ const lI = D(({
|
|
|
35535
35535
|
to: "red"
|
|
35536
35536
|
}, children: e.type })
|
|
35537
35537
|
] })
|
|
35538
|
-
] }), zIndex: 320, size: "96vw", styles: gI, children: /* @__PURE__ */ r(
|
|
35538
|
+
] }), zIndex: 320, size: "96vw", styles: gI, children: /* @__PURE__ */ r(V, { sx: {
|
|
35539
35539
|
height: "calc(100vh - 220px)"
|
|
35540
35540
|
}, children: /* @__PURE__ */ r(mI, { dataSource: e }) }) }),
|
|
35541
35541
|
/* @__PURE__ */ r(L, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
|
|
@@ -35605,7 +35605,7 @@ const lI = D(({
|
|
|
35605
35605
|
key: e.key
|
|
35606
35606
|
}), [a, e.type, e.key]);
|
|
35607
35607
|
return /* @__PURE__ */ r(F, { size: t, data: l, label: /* @__PURE__ */ u(y, { justify: "space-between", children: [
|
|
35608
|
-
/* @__PURE__ */ r(
|
|
35608
|
+
/* @__PURE__ */ r(V, { children: n("data_source.label") }),
|
|
35609
35609
|
d && /* @__PURE__ */ r(fu, { dataSource: d, triggerButtonProps: {
|
|
35610
35610
|
size: "compact-xs",
|
|
35611
35611
|
px: 10
|
|
@@ -35646,7 +35646,7 @@ const lI = D(({
|
|
|
35646
35646
|
width: "100%"
|
|
35647
35647
|
}, children: [
|
|
35648
35648
|
/* @__PURE__ */ r(A, { mb: -10, variant: "dashed", label: t("query.basics"), labelPosition: "center" }),
|
|
35649
|
-
/* @__PURE__ */ r(
|
|
35649
|
+
/* @__PURE__ */ r($, { placeholder: t("query.name_description"), label: t("query.name"), required: !0, sx: {
|
|
35650
35650
|
flex: 1
|
|
35651
35651
|
}, value: n, onChange: (o) => {
|
|
35652
35652
|
a(o.currentTarget.value);
|
|
@@ -35803,8 +35803,8 @@ WHERE
|
|
|
35803
35803
|
/* @__PURE__ */ r(w.Td, { children: t(l.type_label) }),
|
|
35804
35804
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(Rn, { size: "sm", component: "button", type: "button", onClick: () => a(l), children: l.label }) }),
|
|
35805
35805
|
/* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ u(T, { align: "flex-start", justify: "flex-start", gap: 2, children: [
|
|
35806
|
-
l.views.map((s) => /* @__PURE__ */ r(Rn, { size: "sm", component: "button", type: "button", onClick: () => i(s.id), children: /* @__PURE__ */ r(
|
|
35807
|
-
l.views.length === 0 && /* @__PURE__ */ r(
|
|
35806
|
+
l.views.map((s) => /* @__PURE__ */ r(Rn, { size: "sm", component: "button", type: "button", onClick: () => i(s.id), children: /* @__PURE__ */ r(V, { children: s.label }) }, s.id)),
|
|
35807
|
+
l.views.length === 0 && /* @__PURE__ */ r(V, { children: "--" })
|
|
35808
35808
|
] }) })
|
|
35809
35809
|
] }, l.id)) })
|
|
35810
35810
|
] });
|
|
@@ -35823,7 +35823,7 @@ WHERE
|
|
|
35823
35823
|
svg: {
|
|
35824
35824
|
verticalAlign: "middle"
|
|
35825
35825
|
}
|
|
35826
|
-
}, children: l.map((s) => /* @__PURE__ */ r(Ue.Item, { icon: /* @__PURE__ */ r(
|
|
35826
|
+
}, children: l.map((s) => /* @__PURE__ */ r(Ue.Item, { icon: /* @__PURE__ */ r(V, { sx: {
|
|
35827
35827
|
path: {
|
|
35828
35828
|
fill: s.valid ? "rgb(18, 184, 134)" : "rgb(250, 82, 82)"
|
|
35829
35829
|
}
|
|
@@ -35943,7 +35943,7 @@ WHERE
|
|
|
35943
35943
|
/* @__PURE__ */ r(k, { size: "sm", children: t("query.transform.guide.pick_queries") }),
|
|
35944
35944
|
/* @__PURE__ */ r(Kt, { data: n.queries.optionsWithoutTransform, value: [...a.dep_query_ids], onChange: a.setDependantQueryIDs, maxDropdownHeight: 800 }),
|
|
35945
35945
|
/* @__PURE__ */ r(k, { size: "sm", children: t("query.transform.guide.write_function") }),
|
|
35946
|
-
/* @__PURE__ */ r(
|
|
35946
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
35947
35947
|
flexGrow: 1
|
|
35948
35948
|
}, children: /* @__PURE__ */ r(Cn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: DI.pre }) })
|
|
35949
35949
|
] });
|
|
@@ -36012,14 +36012,14 @@ WHERE
|
|
|
36012
36012
|
/* @__PURE__ */ r("path", { d: "M6.66665 6.66699C7.03484 6.66699 7.33331 6.96547 7.33331 7.33366V11.3337C7.33331 11.7018 7.03484 12.0003 6.66665 12.0003C6.29846 12.0003 5.99998 11.7018 5.99998 11.3337V7.33366C5.99998 6.96547 6.29846 6.66699 6.66665 6.66699Z", fill: n }),
|
|
36013
36013
|
/* @__PURE__ */ r("path", { d: "M9.99998 11.3337V7.33366C9.99998 6.96547 9.7015 6.66699 9.33331 6.66699C8.96512 6.66699 8.66665 6.96547 8.66665 7.33366V11.3337C8.66665 11.7018 8.96512 12.0003 9.33331 12.0003C9.7015 12.0003 9.99998 11.7018 9.99998 11.3337Z", fill: n }),
|
|
36014
36014
|
/* @__PURE__ */ r("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.66665 3.33366V2.66699C4.66665 2.13656 4.87736 1.62785 5.25243 1.25278C5.62751 0.877706 6.13621 0.666992 6.66665 0.666992H9.33331C9.86375 0.666992 10.3725 0.877706 10.7475 1.25278C11.1226 1.62785 11.3333 2.13656 11.3333 2.66699V3.33366H14C14.3682 3.33366 14.6666 3.63214 14.6666 4.00033C14.6666 4.36852 14.3682 4.66699 14 4.66699H13.3333V13.3337C13.3333 13.8641 13.1226 14.3728 12.7475 14.7479C12.3725 15.1229 11.8637 15.3337 11.3333 15.3337H4.66665C4.13621 15.3337 3.62751 15.1229 3.25243 14.7479C2.87736 14.3728 2.66665 13.8641 2.66665 13.3337V4.66699H1.99998C1.63179 4.66699 1.33331 4.36852 1.33331 4.00033C1.33331 3.63214 1.63179 3.33366 1.99998 3.33366H4.66665ZM6.19524 2.19559C6.32027 2.07056 6.48984 2.00033 6.66665 2.00033H9.33331C9.51012 2.00033 9.67969 2.07056 9.80472 2.19559C9.92974 2.32061 9.99998 2.49018 9.99998 2.66699V3.33366H5.99998V2.66699C5.99998 2.49018 6.07022 2.32061 6.19524 2.19559ZM3.99998 4.66699V13.3337C3.99998 13.5105 4.07022 13.68 4.19524 13.8051C4.32027 13.9301 4.48984 14.0003 4.66665 14.0003H11.3333C11.5101 14.0003 11.6797 13.9301 11.8047 13.8051C11.9297 13.68 12 13.5105 12 13.3337V4.66699H3.99998Z", fill: n })
|
|
36015
|
-
] }),
|
|
36015
|
+
] }), $I = ({
|
|
36016
36016
|
width: e,
|
|
36017
36017
|
height: t
|
|
36018
36018
|
}) => /* @__PURE__ */ u("svg", { viewBox: "0 0 18 18", fill: "none", width: e, height: t, children: [
|
|
36019
36019
|
/* @__PURE__ */ r("path", { d: "M7.5 3.75C7.5 2.92157 8.17157 2.25 9 2.25C9.82843 2.25 10.5 2.92157 10.5 3.75C10.5 4.57843 9.82843 5.25 9 5.25C8.17157 5.25 7.5 4.57843 7.5 3.75Z", fill: "#3D3E45" }),
|
|
36020
36020
|
/* @__PURE__ */ r("path", { d: "M7.5 9C7.5 8.17157 8.17157 7.5 9 7.5C9.82843 7.5 10.5 8.17157 10.5 9C10.5 9.82843 9.82843 10.5 9 10.5C8.17157 10.5 7.5 9.82843 7.5 9Z", fill: "#3D3E45" }),
|
|
36021
36021
|
/* @__PURE__ */ r("path", { d: "M9 12.75C8.17157 12.75 7.5 13.4216 7.5 14.25C7.5 15.0784 8.17157 15.75 9 15.75C9.82843 15.75 10.5 15.0784 10.5 14.25C10.5 13.4216 9.82843 12.75 9 12.75Z", fill: "#3D3E45" })
|
|
36022
|
-
] }),
|
|
36022
|
+
] }), VI = D(({
|
|
36023
36023
|
queryModel: e
|
|
36024
36024
|
}) => {
|
|
36025
36025
|
const {
|
|
@@ -36051,8 +36051,8 @@ WHERE
|
|
|
36051
36051
|
}), PI = D(({
|
|
36052
36052
|
queryModel: e
|
|
36053
36053
|
}) => /* @__PURE__ */ u(W, { shadow: "md", width: 120, trigger: "hover", children: [
|
|
36054
|
-
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(te, { variant: "subtle", "aria-label": "Settings", children: /* @__PURE__ */ r(
|
|
36055
|
-
/* @__PURE__ */ r(W.Dropdown, { children: /* @__PURE__ */ r(
|
|
36054
|
+
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(te, { variant: "subtle", "aria-label": "Settings", children: /* @__PURE__ */ r($I, { width: 18, height: 18 }) }) }),
|
|
36055
|
+
/* @__PURE__ */ r(W.Dropdown, { children: /* @__PURE__ */ r(VI, { queryModel: e }) })
|
|
36056
36056
|
] })), AI = {
|
|
36057
36057
|
width: "fit-content",
|
|
36058
36058
|
minWidth: "100%",
|
|
@@ -36106,7 +36106,7 @@ function RI({
|
|
|
36106
36106
|
columnResizeMode: "onChange",
|
|
36107
36107
|
getCoreRowModel: Za()
|
|
36108
36108
|
});
|
|
36109
|
-
return e.length === 0 ? /* @__PURE__ */ r(
|
|
36109
|
+
return e.length === 0 ? /* @__PURE__ */ r(V, { sx: {
|
|
36110
36110
|
height: "5em"
|
|
36111
36111
|
} }) : /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ u(w, { sx: AI, stickyHeader: !0, stickyHeaderOffset: 0, children: [
|
|
36112
36112
|
/* @__PURE__ */ r(w.Thead, { style: {
|
|
@@ -36174,7 +36174,7 @@ const EI = [{
|
|
|
36174
36174
|
onChange: c
|
|
36175
36175
|
}
|
|
36176
36176
|
),
|
|
36177
|
-
s > 1 && /* @__PURE__ */ r(
|
|
36177
|
+
s > 1 && /* @__PURE__ */ r(Vr, { size: "sm", value: t, onChange: n, total: s, withEdges: s > 7, styles: {
|
|
36178
36178
|
control: {
|
|
36179
36179
|
height: "30px"
|
|
36180
36180
|
}
|
|
@@ -36199,7 +36199,7 @@ const EI = [{
|
|
|
36199
36199
|
}
|
|
36200
36200
|
}, children: [
|
|
36201
36201
|
/* @__PURE__ */ r(FI, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
|
|
36202
|
-
/* @__PURE__ */ u(
|
|
36202
|
+
/* @__PURE__ */ u(V, { sx: {
|
|
36203
36203
|
width: "100%",
|
|
36204
36204
|
height: "calc(100% - 42px)",
|
|
36205
36205
|
overflow: "auto",
|
|
@@ -36249,7 +36249,7 @@ const EI = [{
|
|
|
36249
36249
|
/* @__PURE__ */ r(k, { size: "sm", fw: 500, children: "查询结果" }),
|
|
36250
36250
|
/* @__PURE__ */ r(L, { size: "xs", variant: "transparent", color: "gray", leftSection: /* @__PURE__ */ r(or, { size: 16 }), disabled: a || l, onClick: o, children: "下载查询结果" })
|
|
36251
36251
|
] }),
|
|
36252
|
-
/* @__PURE__ */ u(
|
|
36252
|
+
/* @__PURE__ */ u(V, { sx: {
|
|
36253
36253
|
position: "relative",
|
|
36254
36254
|
flexGrow: 1,
|
|
36255
36255
|
overflow: "hidden"
|
|
@@ -36601,7 +36601,7 @@ const EI = [{
|
|
|
36601
36601
|
t.setTimeQueryEnabled(!0);
|
|
36602
36602
|
return;
|
|
36603
36603
|
}
|
|
36604
|
-
}, [i.requireTrendingReason, l]), i.supportTrending ? i.requireTrendingReason ? /* @__PURE__ */ r(re, { label: i.requireTrendingReason, children: /* @__PURE__ */ r(
|
|
36604
|
+
}, [i.requireTrendingReason, l]), i.supportTrending ? i.requireTrendingReason ? /* @__PURE__ */ r(re, { label: i.requireTrendingReason, children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(ke, { size: "xs", color: "red", checked: !0, readOnly: !0, styles: {
|
|
36605
36605
|
track: {
|
|
36606
36606
|
cursor: "not-allowed"
|
|
36607
36607
|
}
|
|
@@ -36609,7 +36609,7 @@ const EI = [{
|
|
|
36609
36609
|
track: {
|
|
36610
36610
|
cursor: "pointer"
|
|
36611
36611
|
}
|
|
36612
|
-
} }) : /* @__PURE__ */ r(re, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r(
|
|
36612
|
+
} }) : /* @__PURE__ */ r(re, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(ke, { size: "xs", color: "red", disabled: !o }) }) });
|
|
36613
36613
|
}), n8 = D(({
|
|
36614
36614
|
queryModel: e
|
|
36615
36615
|
}) => {
|
|
@@ -36709,7 +36709,7 @@ const EI = [{
|
|
|
36709
36709
|
const d = i.getGroupByOptions(c), h = [];
|
|
36710
36710
|
d.forEach((p) => {
|
|
36711
36711
|
p.dimension ? p.dimension.fields.forEach((g) => {
|
|
36712
|
-
typeof g == "string" ? h.push(g) : h.push(`${p.value} -> ${g.field}`);
|
|
36712
|
+
typeof g == "string" ? h.push(`${p.value} -> ${g}`) : h.push(`${p.value} -> ${g.field}`);
|
|
36713
36713
|
}) : h.push(p.value);
|
|
36714
36714
|
}), t.setGroupBys(h);
|
|
36715
36715
|
};
|
|
@@ -36767,7 +36767,7 @@ const EI = [{
|
|
|
36767
36767
|
}) => {
|
|
36768
36768
|
const t = e.metricQueryPayloadError;
|
|
36769
36769
|
return t.length > 0 ? /* @__PURE__ */ u(ge, { shadow: "md", children: [
|
|
36770
|
-
/* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r(
|
|
36770
|
+
/* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(ll, { width: 14, height: 14, color: "rgb(173, 181, 189)" }), variant: "filled", color: "red", disabled: !0, children: "执行查询" }) }) }),
|
|
36771
36771
|
/* @__PURE__ */ r(ge.Dropdown, { children: /* @__PURE__ */ r(Ue, { size: "xs", children: t.map((n) => /* @__PURE__ */ r(Ue.Item, { children: n }, n)) }) })
|
|
36772
36772
|
] }) : /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(ll, { width: 14, height: 14 }), variant: "filled", color: "red", onClick: () => e.fetchData(!0), children: "执行查询" });
|
|
36773
36773
|
}), h8 = ({
|
|
@@ -36847,7 +36847,7 @@ const EI = [{
|
|
|
36847
36847
|
flexGrow: 0,
|
|
36848
36848
|
flexShrink: 0
|
|
36849
36849
|
}
|
|
36850
|
-
}, children: /* @__PURE__ */ r(
|
|
36850
|
+
}, children: /* @__PURE__ */ r($, { size: "xs", placeholder: t("query.name_description"), label: t("query.name"), value: e.name, onChange: (n) => {
|
|
36851
36851
|
e.setName(n.currentTarget.value);
|
|
36852
36852
|
}, styles: {
|
|
36853
36853
|
root: {
|
|
@@ -36927,7 +36927,7 @@ const EI = [{
|
|
|
36927
36927
|
/* @__PURE__ */ u(y, { sx: {
|
|
36928
36928
|
alignItems: "end"
|
|
36929
36929
|
}, gap: 40, children: [
|
|
36930
|
-
/* @__PURE__ */ r(
|
|
36930
|
+
/* @__PURE__ */ r($, { label: a(h ? "sql_snippet.key_occupied" : "sql_snippet.key"), value: l, onChange: (M) => {
|
|
36931
36931
|
s(M.currentTarget.value);
|
|
36932
36932
|
}, sx: {
|
|
36933
36933
|
flexGrow: "1 !important"
|
|
@@ -37007,7 +37007,7 @@ const EI = [{
|
|
|
37007
37007
|
return /* @__PURE__ */ u(T, { sx: {
|
|
37008
37008
|
height: "100%"
|
|
37009
37009
|
}, gap: "sm", pb: "59px", children: [
|
|
37010
|
-
/* @__PURE__ */ r(
|
|
37010
|
+
/* @__PURE__ */ r(V, { pt: 9, pb: 8, sx: {
|
|
37011
37011
|
borderBottom: "1px solid #eee"
|
|
37012
37012
|
}, children: /* @__PURE__ */ r(k, { size: "sm", px: "md", ta: "left", sx: {
|
|
37013
37013
|
userSelect: "none",
|
|
@@ -37033,7 +37033,7 @@ const EI = [{
|
|
|
37033
37033
|
] }),
|
|
37034
37034
|
/* @__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") })
|
|
37035
37035
|
] }),
|
|
37036
|
-
/* @__PURE__ */ r(
|
|
37036
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
37037
37037
|
flexGrow: 1,
|
|
37038
37038
|
overflow: "auto"
|
|
37039
37039
|
}, children: /* @__PURE__ */ r(Z.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
|
|
@@ -37110,7 +37110,7 @@ const EI = [{
|
|
|
37110
37110
|
disabled: e,
|
|
37111
37111
|
value: t,
|
|
37112
37112
|
onChange: n
|
|
37113
|
-
}) => /* @__PURE__ */ u(
|
|
37113
|
+
}) => /* @__PURE__ */ u(V, { sx: {
|
|
37114
37114
|
position: "relative"
|
|
37115
37115
|
}, children: [
|
|
37116
37116
|
e && /* @__PURE__ */ r(dn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -37184,14 +37184,14 @@ const EI = [{
|
|
|
37184
37184
|
return /* @__PURE__ */ u(T, { children: [
|
|
37185
37185
|
/* @__PURE__ */ r(A, { mt: 8, label: t("view.component.modal.modal_settings"), labelPosition: "center" }),
|
|
37186
37186
|
/* @__PURE__ */ u(rt, { gap: 10, children: [
|
|
37187
|
-
/* @__PURE__ */ r(
|
|
37187
|
+
/* @__PURE__ */ r($, { label: t("view.component.modal.title"), value: a, onChange: C.noop, disabled: !0, sx: {
|
|
37188
37188
|
flexGrow: 1
|
|
37189
37189
|
} }),
|
|
37190
37190
|
/* @__PURE__ */ r(S8, { value: n.custom_modal_title, onChange: n.custom_modal_title.replace })
|
|
37191
37191
|
] }),
|
|
37192
37192
|
/* @__PURE__ */ u(y, { grow: !0, children: [
|
|
37193
|
-
/* @__PURE__ */ r(
|
|
37194
|
-
/* @__PURE__ */ r(
|
|
37193
|
+
/* @__PURE__ */ r($, { label: t("view.component.modal.width"), value: n.width, onChange: (i) => n.setWidth(i.currentTarget.value), placeholder: "600px / 50vw" }),
|
|
37194
|
+
/* @__PURE__ */ r($, { label: t("view.component.modal.height"), value: n.height, onChange: (i) => n.setHeight(i.currentTarget.value), placeholder: "600px / 50vw" })
|
|
37195
37195
|
] })
|
|
37196
37196
|
] });
|
|
37197
37197
|
}), k8 = D(({
|
|
@@ -37219,7 +37219,7 @@ const EI = [{
|
|
|
37219
37219
|
return e ? /* @__PURE__ */ u(T, { sx: {
|
|
37220
37220
|
position: "relative"
|
|
37221
37221
|
}, children: [
|
|
37222
|
-
/* @__PURE__ */ r(
|
|
37222
|
+
/* @__PURE__ */ r($, { label: t("common.name"), value: e.name, onChange: (i) => {
|
|
37223
37223
|
e.setName(i.currentTarget.value);
|
|
37224
37224
|
} }),
|
|
37225
37225
|
/* @__PURE__ */ r(F, { label: t("common.type"), comboboxProps: {
|
|
@@ -37267,7 +37267,7 @@ const EI = [{
|
|
|
37267
37267
|
zIndex: 320
|
|
37268
37268
|
});
|
|
37269
37269
|
}, children: t("view.delete") }) }),
|
|
37270
|
-
/* @__PURE__ */ r(
|
|
37270
|
+
/* @__PURE__ */ r(V, { sx: {
|
|
37271
37271
|
flexGrow: 1,
|
|
37272
37272
|
maxHeight: "calc(100% - 52px)",
|
|
37273
37273
|
overflow: "auto"
|
|
@@ -37277,7 +37277,7 @@ const EI = [{
|
|
|
37277
37277
|
height: "100%"
|
|
37278
37278
|
}, p: "sm", children: /* @__PURE__ */ r(_u, {}) })), I8 = D(() => {
|
|
37279
37279
|
const e = he().editor, t = e.path;
|
|
37280
|
-
return q4(t) ? /* @__PURE__ */ r(D8, {}) : N4(t) ? /* @__PURE__ */ r(yD, {}) : B4(t) ? /* @__PURE__ */ r(bD, {}) : j4(t) ? /* @__PURE__ */ r(
|
|
37280
|
+
return q4(t) ? /* @__PURE__ */ r(D8, {}) : N4(t) ? /* @__PURE__ */ r(yD, {}) : B4(t) ? /* @__PURE__ */ r(bD, {}) : j4(t) ? /* @__PURE__ */ r(V, { p: "xs", pl: 20, children: /* @__PURE__ */ r(fD, { id: t[1] }) }) : Q4(t) ? /* @__PURE__ */ r(_8, {}) : H4(t) ? /* @__PURE__ */ r(y8, { id: t[1] }) : W4(t) ? /* @__PURE__ */ r(XD, {}) : G4(t) ? /* @__PURE__ */ r(g8, { id: t[1] }) : U4(t) ? /* @__PURE__ */ r(V, { p: "xs", pl: 20, children: /* @__PURE__ */ r(T8, { id: t[1] }) }) : Ia(t) ? /* @__PURE__ */ r(YD, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r(V, { children: e.path });
|
|
37281
37281
|
}), M8 = D(() => /* @__PURE__ */ r(I8, {})), L8 = D(() => {
|
|
37282
37282
|
const {
|
|
37283
37283
|
t: e
|
|
@@ -37302,7 +37302,7 @@ const EI = [{
|
|
|
37302
37302
|
justifyContent: "flex-start"
|
|
37303
37303
|
}
|
|
37304
37304
|
}, children: e("filter.add") });
|
|
37305
|
-
}),
|
|
37305
|
+
}), $8 = D(({
|
|
37306
37306
|
parentID: e
|
|
37307
37307
|
}) => {
|
|
37308
37308
|
const {
|
|
@@ -37319,7 +37319,7 @@ const EI = [{
|
|
|
37319
37319
|
justifyContent: "flex-start"
|
|
37320
37320
|
}
|
|
37321
37321
|
}, children: t("panel.add") });
|
|
37322
|
-
}),
|
|
37322
|
+
}), V8 = D(() => {
|
|
37323
37323
|
const {
|
|
37324
37324
|
t: e
|
|
37325
37325
|
} = _(), t = he();
|
|
@@ -37415,7 +37415,7 @@ const EI = [{
|
|
|
37415
37415
|
}), F8 = D(({
|
|
37416
37416
|
action_type: e,
|
|
37417
37417
|
parentID: t
|
|
37418
|
-
}) => e === "_Add_A_Filter_" ? /* @__PURE__ */ r(L8, {}) : e === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ r(P8, {}) : e === "_Add_A_QUERY_" ? /* @__PURE__ */ r(
|
|
37418
|
+
}) => e === "_Add_A_Filter_" ? /* @__PURE__ */ r(L8, {}) : e === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ r(P8, {}) : e === "_Add_A_QUERY_" ? /* @__PURE__ */ r(V8, {}) : e === "_Add_A_VIEW_" ? /* @__PURE__ */ r(A8, {}) : e === "_Add_A_PANEL_" ? /* @__PURE__ */ r($8, { parentID: t }) : e === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ r(R8, {}) : e === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ r(E8, {}) : e === "_FILTERS_SETTINGS_" ? /* @__PURE__ */ r(O8, {}) : null), wu = D(({
|
|
37419
37419
|
option: e
|
|
37420
37420
|
}) => {
|
|
37421
37421
|
var h;
|
|
@@ -37427,7 +37427,7 @@ const EI = [{
|
|
|
37427
37427
|
}, [s]), /* @__PURE__ */ r(ba, { active: i, defaultOpened: s, opened: c, onChange: d, label: t(e.label), onClick: () => l(e), leftSection: e.Icon ? /* @__PURE__ */ r(e.Icon, { size: 18 }) : null, children: (h = e.children) == null ? void 0 : h.map((p) => p._type === "ACTION" ? /* @__PURE__ */ r(F8, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ r(wu, { option: p }, p.value)) }, e.label);
|
|
37428
37428
|
}), q8 = D(() => {
|
|
37429
37429
|
const e = he();
|
|
37430
|
-
return /* @__PURE__ */ r(
|
|
37430
|
+
return /* @__PURE__ */ r(V, { sx: {
|
|
37431
37431
|
position: "relative"
|
|
37432
37432
|
}, children: e.editor.navOptions.map((t) => /* @__PURE__ */ r(wu, { option: t }, t.value)) });
|
|
37433
37433
|
}), N8 = D(() => {
|
|
@@ -37620,7 +37620,7 @@ const W8 = {
|
|
|
37620
37620
|
}, styles: W8, children: [
|
|
37621
37621
|
/* @__PURE__ */ r(M6, { onExit: h, saveDashboardChanges: I, headerSlot: s }),
|
|
37622
37622
|
/* @__PURE__ */ r(rD, {}),
|
|
37623
|
-
/* @__PURE__ */ r(Je.Main, { children: /* @__PURE__ */ r(
|
|
37623
|
+
/* @__PURE__ */ r(Je.Main, { children: /* @__PURE__ */ r(V, { className: `${i} dashboard-root`, sx: {
|
|
37624
37624
|
position: "relative"
|
|
37625
37625
|
}, children: v.content.views.visibleViews.map((E) => /* @__PURE__ */ r(b4, { view: E }, E.id)) }) })
|
|
37626
37626
|
] }),
|
|
@@ -37879,8 +37879,8 @@ const Z8 = ({
|
|
|
37879
37879
|
setFullScreenPanelID: l
|
|
37880
37880
|
}, children: /* @__PURE__ */ r(Qr.Provider, { value: {
|
|
37881
37881
|
inEditMode: !1
|
|
37882
|
-
}, children: /* @__PURE__ */ r(
|
|
37883
|
-
}, sL = D(Z8), cL = () => Promise.resolve().then(() =>
|
|
37882
|
+
}, children: /* @__PURE__ */ r(V, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(nn.Provider, { value: v, children: /* @__PURE__ */ r(Gr, { configure: I, children: x.content.views.visibleViews.map((M) => /* @__PURE__ */ r(Xi, { view: M }, M.id)) }) }) }) }) }) }) }) }) }) }) }) });
|
|
37883
|
+
}, sL = D(Z8), cL = () => Promise.resolve().then(() => Vm).then(({
|
|
37884
37884
|
version: e
|
|
37885
37885
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
37886
37886
|
export {
|
|
@@ -37986,9 +37986,9 @@ export {
|
|
|
37986
37986
|
h5 as createFilterSelectConfig,
|
|
37987
37987
|
ud as createFilterTextInputConfig,
|
|
37988
37988
|
L5 as createFilterTreeSelectConfig,
|
|
37989
|
-
|
|
37989
|
+
$5 as createFilterTreeSingleSelectConfig,
|
|
37990
37990
|
n5 as createMericoMetricQueryMetaConfig,
|
|
37991
|
-
|
|
37991
|
+
V5 as createViewDivisionConfig,
|
|
37992
37992
|
A5 as createViewModalConfig,
|
|
37993
37993
|
E5 as createViewTabsConfig,
|
|
37994
37994
|
Gz as facadeApiClient,
|
|
@@ -38012,7 +38012,7 @@ export {
|
|
|
38012
38012
|
Ym as useDashboardThemeContext,
|
|
38013
38013
|
oe as useEditContentModelContext,
|
|
38014
38014
|
he as useEditDashboardContext,
|
|
38015
|
-
|
|
38015
|
+
$e as useEditPanelContext,
|
|
38016
38016
|
tg as useFullScreenPanelContext,
|
|
38017
38017
|
Jm as useIsInEditPanelContext,
|
|
38018
38018
|
Zm as useIsInRenderPanelContext,
|