@devtable/dashboard 14.11.2 → 14.13.0
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-editor/model/queries/queries.d.ts +4 -2
- package/dist/dashboard.es.js +441 -434
- package/dist/dashboard.umd.js +4 -4
- package/dist/model/render-model/dashboard/content/queries/queries.d.ts +4 -2
- package/dist/stats.html +1 -1
- package/dist/utils/download.d.ts +2 -2
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -39,15 +39,15 @@ import { createInstance as Eu } from "i18next";
|
|
|
39
39
|
import { useTranslation as x, Trans as Sr, initReactI18next as Ou, I18nextProvider as qu } from "react-i18next";
|
|
40
40
|
import Fu from "i18next-browser-languagedetector";
|
|
41
41
|
import "intl-pluralrules";
|
|
42
|
-
import C, { unset as
|
|
43
|
-
import { observable as al, runInAction as
|
|
42
|
+
import C, { unset as Nu, get as le, isObject as Xo, set as va, omit as sn, isFunction as Bu, orderBy as ju, last as Zo, cloneDeepWith as Jo, defaults as he, minBy as Qu, maxBy as Gu, cloneDeep as Pe, values as el, template as wa, throttle as Hu, range as Wu, defaultsDeep as Ge, isEqual as Fe, keyBy as Uu, isEmpty as tl, isNumber as Ku, findLastIndex as Yu, isString as nl, pick as rl } from "lodash";
|
|
43
|
+
import { observable as al, runInAction as Bn, toJS as Rt, reaction as Ne, makeAutoObservable as Wn } from "mobx";
|
|
44
44
|
import ji from "eventemitter2";
|
|
45
45
|
import { jsx as r, Fragment as F, jsxs as u } from "react/jsx-runtime";
|
|
46
|
-
import $, { useId as Xu, useState as G, useEffect as
|
|
46
|
+
import $, { useId as Xu, useState as G, useEffect as N, useCallback as ae, forwardRef as J, useMemo as z, useRef as Vt, createContext as il, createElement as Mn, useContext as Ht, memo as Zu } from "react";
|
|
47
47
|
import cn, { random as Cr } from "chroma-js";
|
|
48
48
|
import He from "echarts-for-react/lib/core";
|
|
49
49
|
import "echarts-gl";
|
|
50
|
-
import * as
|
|
50
|
+
import * as Be from "echarts/core";
|
|
51
51
|
import { use as Ju } from "echarts/core";
|
|
52
52
|
import { useBoolean as De, useCreation as $t, usePrevious as eh, useAsyncEffect as Ln, useRequest as dn, useLatest as ia, useWhyDidYouUpdate as ol } from "ahooks";
|
|
53
53
|
import { Box as A, TextInput as V, Group as _, Text as k, Select as O, Button as L, Modal as ve, Stack as T, Divider as P, NumberInput as ne, SimpleGrid as ke, Menu as U, UnstyledButton as Sa, Tooltip as re, Flex as tt, ColorInput as Jt, Center as Et, ActionIcon as ee, Badge as jt, CloseButton as xt, Overlay as en, NativeSelect as Ca, useMantineTheme as kr, ColorSwatch as dr, Popover as ut, ColorPicker as Qi, HoverCard as _e, Checkbox as te, Paper as th, Code as Gi, Tabs as S, Switch as Ce, Table as v, MultiSelect as un, LoadingOverlay as tn, Alert as Un, Collapse as Kn, CheckIcon as nh, SegmentedControl as ka, Anchor as Qn, Pagination as zr, Textarea as ll, RangeSlider as rh, Autocomplete as ah, Combobox as Ft, Mark as sl, Slider as ih, List as We, getRadius as za, Affix as oh, AppShell as Xe, FileInput as lh, Highlight as sh, rem as Hi, ThemeIcon as ar, JsonInput as cl, Drawer as ch, Radio as Wi, Skeleton as Ui, NavLink as oa, useCombobox as dh, Loader as Ta, InputBase as uh, Input as hh } from "@mantine/core";
|
|
@@ -61,7 +61,7 @@ import { faker as bh } from "@faker-js/faker";
|
|
|
61
61
|
import * as yh from "crypto-js";
|
|
62
62
|
import _h from "crypto-js";
|
|
63
63
|
import zn from "numbro";
|
|
64
|
-
import { IconMathFunction as Wt, IconRecycle as mt, IconDeviceFloppy as me, IconSelector as xh, IconGripVertical as pl, IconTrash as $e, IconArrowBackUp as vh, IconPlayerSkipBack as ml, IconMathFunctionOff as wh, IconTextSize as Da, IconInfoCircle as Re, IconCheck as Sh, IconBorderAll as Ch, IconCircleOff as gl, IconX as Ia, IconAlertCircle as Gn, IconPlus as lt, IconGripHorizontal as kh, IconChevronUp as zh, IconChevronDown as Th, IconChartAreaLineFilled as Dh, IconPlaylistAdd as Hn, IconArrowDown as Ih, IconArrowUp as Mh, IconArrowBarToRight as Ma, IconArrowCurveRight as la, IconCalendar as Lh, IconMinus as Ah, IconChevronsUp as Vh, IconChevronsDown as $h, IconDatabase as Xt, IconRefresh as La, IconDownload as Yn, IconCode as pn, IconCamera as Tr, IconArrowsMaximize as fl, IconAppWindow as Aa, IconVariable as An, IconChartHistogram as bl, IconRoute as Va, IconCopy as $a, IconArrowLeft as yl, IconArrowsMove as Ph, IconChevronDownRight as Rh, IconShare3 as Eh, IconArrowsLeftRight as Oh, IconCodeDots as _l, IconFilter as Pa, IconBoxMultiple as Ra, IconCaretDown as qh, IconAlertTriangle as xl, IconDevices as Fh, IconSettings as Vn, IconPointFilled as Dr, IconFileImport as Ki, IconSearch as vl, IconCircleDashed as
|
|
64
|
+
import { IconMathFunction as Wt, IconRecycle as mt, IconDeviceFloppy as me, IconSelector as xh, IconGripVertical as pl, IconTrash as $e, IconArrowBackUp as vh, IconPlayerSkipBack as ml, IconMathFunctionOff as wh, IconTextSize as Da, IconInfoCircle as Re, IconCheck as Sh, IconBorderAll as Ch, IconCircleOff as gl, IconX as Ia, IconAlertCircle as Gn, IconPlus as lt, IconGripHorizontal as kh, IconChevronUp as zh, IconChevronDown as Th, IconChartAreaLineFilled as Dh, IconPlaylistAdd as Hn, IconArrowDown as Ih, IconArrowUp as Mh, IconArrowBarToRight as Ma, IconArrowCurveRight as la, IconCalendar as Lh, IconMinus as Ah, IconChevronsUp as Vh, IconChevronsDown as $h, IconDatabase as Xt, IconRefresh as La, IconDownload as Yn, IconCode as pn, IconCamera as Tr, IconArrowsMaximize as fl, IconAppWindow as Aa, IconVariable as An, IconChartHistogram as bl, IconRoute as Va, IconCopy as $a, IconArrowLeft as yl, IconArrowsMove as Ph, IconChevronDownRight as Rh, IconShare3 as Eh, IconArrowsLeftRight as Oh, IconCodeDots as _l, IconFilter as Pa, IconBoxMultiple as Ra, IconCaretDown as qh, IconAlertTriangle as xl, IconDevices as Fh, IconSettings as Vn, IconPointFilled as Dr, IconFileImport as Ki, IconSearch as vl, IconCircleDashed as Nh, IconCircleDot as Bh, IconChevronsUpRight as jh, IconAdjustments as Qh, IconLine as Gh, IconEye as wl, IconTable as Hh, IconColumns as Wh, IconVectorTriangle as Uh, IconVariablePlus as Kh, IconHierarchy as Yh, IconDiscountCheckFilled as Xh, IconHash as Zh } from "@tabler/icons-react";
|
|
65
65
|
import { RichTextEditor as oe, Link as Sl, useRichTextEditorContext as Jh } from "@mantine/tiptap";
|
|
66
66
|
import { Color as Cl } from "@tiptap/extension-color";
|
|
67
67
|
import kl from "@tiptap/extension-highlight";
|
|
@@ -92,15 +92,15 @@ import { CalendarComponent as gp, DataZoomComponent as fp, GridComponent as bp,
|
|
|
92
92
|
import { CanvasRenderer as Sp } from "echarts/renderers";
|
|
93
93
|
import { constrainedEditor as Cp } from "constrained-editor-plugin";
|
|
94
94
|
import { showNotification as mn, updateNotification as kp, notifications as Fl } from "@mantine/notifications";
|
|
95
|
-
import { createStyles as $n, MantineEmotionProvider as
|
|
95
|
+
import { createStyles as $n, MantineEmotionProvider as Nl } from "@mantine/emotion";
|
|
96
96
|
import * as Yt from "d3-regression";
|
|
97
97
|
import { CodeHighlight as vt } from "@mantine/code-highlight";
|
|
98
|
-
import { flexRender as Tn, createColumnHelper as qa, useReactTable as Fa, getCoreRowModel as
|
|
98
|
+
import { flexRender as Tn, createColumnHelper as qa, useReactTable as Fa, getCoreRowModel as Na, getSortedRowModel as zp } from "@tanstack/react-table";
|
|
99
99
|
import { useVirtualizer as Tp } from "@tanstack/react-virtual";
|
|
100
100
|
import ot from "axios";
|
|
101
|
-
import { useModals as wt, ModalsProvider as
|
|
101
|
+
import { useModals as wt, ModalsProvider as Bl } from "@mantine/modals";
|
|
102
102
|
import { encode as Dp, decode as Ip } from "js-base64";
|
|
103
|
-
import { types as m, cast as Pt, getParent as we, destroy as Mp, getRoot as
|
|
103
|
+
import { types as m, cast as Pt, getParent as we, destroy as Mp, getRoot as Le, addDisposer as Ue, detach as ur, isAlive as Yi, flow as Bt, toGenerator as It, clone as Lp, getSnapshot as Mt, applySnapshot as je, addMiddleware as Ap, getType as Vp, castToSnapshot as jl } from "mobx-state-tree";
|
|
104
104
|
import { saveAs as Mr } from "file-saver";
|
|
105
105
|
import Ql from "dom-to-image-more";
|
|
106
106
|
import Gl from "jszip";
|
|
@@ -112,7 +112,7 @@ import { WidthProvider as Wl, Responsive as Ul } from "react-grid-layout";
|
|
|
112
112
|
import { createPortal as qp } from "react-dom";
|
|
113
113
|
import { Spotlight as kn, spotlight as Fp } from "@mantine/spotlight";
|
|
114
114
|
import "@mantine/spotlight/styles.css";
|
|
115
|
-
import
|
|
115
|
+
import Np, { Position as _t, Handle as Xi, MiniMap as Bp, Controls as jp, Background as Qp } from "reactflow";
|
|
116
116
|
import "reactflow/dist/style.css";
|
|
117
117
|
E.extend(au);
|
|
118
118
|
E.extend(iu);
|
|
@@ -2190,8 +2190,8 @@ class Lr {
|
|
|
2190
2190
|
});
|
|
2191
2191
|
}
|
|
2192
2192
|
async deleteItem(t) {
|
|
2193
|
-
|
|
2194
|
-
|
|
2193
|
+
Bn(() => {
|
|
2194
|
+
Nu(this.rootRef.current, [t]);
|
|
2195
2195
|
});
|
|
2196
2196
|
}
|
|
2197
2197
|
getItem(t) {
|
|
@@ -2204,19 +2204,19 @@ class Lr {
|
|
|
2204
2204
|
setItem(t, n) {
|
|
2205
2205
|
if (t === null)
|
|
2206
2206
|
if (Xo(n))
|
|
2207
|
-
|
|
2207
|
+
Bn(() => {
|
|
2208
2208
|
this.rootRef.current = n;
|
|
2209
2209
|
});
|
|
2210
2210
|
else
|
|
2211
2211
|
throw new Error("Cannot set root value to non-object");
|
|
2212
2212
|
else
|
|
2213
|
-
|
|
2213
|
+
Bn(() => {
|
|
2214
2214
|
va(this.rootRef.current, [t], n);
|
|
2215
2215
|
});
|
|
2216
2216
|
return Promise.resolve(this.getItem(t));
|
|
2217
2217
|
}
|
|
2218
2218
|
watchItem(t, n, a) {
|
|
2219
|
-
return
|
|
2219
|
+
return Ne(() => this.getValueFromRoot(t), (i, o) => {
|
|
2220
2220
|
n(i, o);
|
|
2221
2221
|
}, {
|
|
2222
2222
|
requiresObservable: !0,
|
|
@@ -2369,14 +2369,14 @@ class rm {
|
|
|
2369
2369
|
function Dt(e) {
|
|
2370
2370
|
return new rm(e);
|
|
2371
2371
|
}
|
|
2372
|
-
class
|
|
2372
|
+
class Ba {
|
|
2373
2373
|
constructor() {
|
|
2374
2374
|
j(this, "parent");
|
|
2375
2375
|
j(this, "factoryRegistry", /* @__PURE__ */ new Map());
|
|
2376
2376
|
j(this, "instanceRegistry", /* @__PURE__ */ new Map());
|
|
2377
2377
|
}
|
|
2378
2378
|
createScoped() {
|
|
2379
|
-
const t = new
|
|
2379
|
+
const t = new Ba();
|
|
2380
2380
|
return t.parent = this, t;
|
|
2381
2381
|
}
|
|
2382
2382
|
getRequired(t) {
|
|
@@ -2402,7 +2402,7 @@ class Na {
|
|
|
2402
2402
|
dispose() {
|
|
2403
2403
|
this.instanceRegistry.forEach((t) => {
|
|
2404
2404
|
const n = le(t, "dispose");
|
|
2405
|
-
|
|
2405
|
+
Bu(n) && n.bind(t)();
|
|
2406
2406
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
2407
2407
|
}
|
|
2408
2408
|
}
|
|
@@ -2442,7 +2442,7 @@ function im() {
|
|
|
2442
2442
|
} = $.useContext(Xl);
|
|
2443
2443
|
return e ? document.getElementById(e) : null;
|
|
2444
2444
|
}
|
|
2445
|
-
const Jl = "14.
|
|
2445
|
+
const Jl = "14.13.0", om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2446
2446
|
__proto__: null,
|
|
2447
2447
|
version: Jl
|
|
2448
2448
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2565,7 +2565,7 @@ const Y = (e, t) => {
|
|
|
2565
2565
|
const [n, {
|
|
2566
2566
|
setFalse: a
|
|
2567
2567
|
}] = De(!0), [i, o] = G();
|
|
2568
|
-
|
|
2568
|
+
N(() => (e.getItem(t).then((s) => {
|
|
2569
2569
|
o(s), a();
|
|
2570
2570
|
}), e.watchItem(t, (s) => {
|
|
2571
2571
|
o(s);
|
|
@@ -2630,7 +2630,7 @@ function um(e, t) {
|
|
|
2630
2630
|
return "black";
|
|
2631
2631
|
}
|
|
2632
2632
|
const hm = um;
|
|
2633
|
-
function
|
|
2633
|
+
function B(e) {
|
|
2634
2634
|
const [t, n] = e.split(".");
|
|
2635
2635
|
return {
|
|
2636
2636
|
queryID: t,
|
|
@@ -2638,7 +2638,7 @@ function N(e) {
|
|
|
2638
2638
|
};
|
|
2639
2639
|
}
|
|
2640
2640
|
function pm(e) {
|
|
2641
|
-
return e.includes(".") ?
|
|
2641
|
+
return e.includes(".") ? B(e) : {
|
|
2642
2642
|
queryID: "",
|
|
2643
2643
|
columnKey: e
|
|
2644
2644
|
};
|
|
@@ -2648,13 +2648,13 @@ function ht(e, t) {
|
|
|
2648
2648
|
const {
|
|
2649
2649
|
queryID: n,
|
|
2650
2650
|
columnKey: a
|
|
2651
|
-
} =
|
|
2651
|
+
} = B(t);
|
|
2652
2652
|
return n ? a ? ((i = e[n]) == null ? void 0 : i.map((o) => o[a])) ?? [] : e[n] : [];
|
|
2653
2653
|
}
|
|
2654
2654
|
function Vr(e, t) {
|
|
2655
2655
|
const {
|
|
2656
2656
|
queryID: n
|
|
2657
|
-
} =
|
|
2657
|
+
} = B(t);
|
|
2658
2658
|
return n ? e[n] : [];
|
|
2659
2659
|
}
|
|
2660
2660
|
function mm(e) {
|
|
@@ -2664,7 +2664,7 @@ function or(e, t) {
|
|
|
2664
2664
|
const {
|
|
2665
2665
|
queryID: n,
|
|
2666
2666
|
columnKey: a
|
|
2667
|
-
} =
|
|
2667
|
+
} = B(t);
|
|
2668
2668
|
return e[a];
|
|
2669
2669
|
}
|
|
2670
2670
|
const kt = {
|
|
@@ -2837,7 +2837,7 @@ function Ga() {
|
|
|
2837
2837
|
throw new Error("Please use PanelContextProvider");
|
|
2838
2838
|
return e;
|
|
2839
2839
|
}
|
|
2840
|
-
const rt = () => Ga(),
|
|
2840
|
+
const rt = () => Ga(), Ae = () => Ga();
|
|
2841
2841
|
function cs() {
|
|
2842
2842
|
try {
|
|
2843
2843
|
return Ga(), !0;
|
|
@@ -3155,7 +3155,7 @@ const Me = {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
};
|
|
3157
3157
|
function Pm() {
|
|
3158
|
-
|
|
3158
|
+
Be.registerTheme("merico-light", {
|
|
3159
3159
|
color: Object.values(At.graphics.multiple),
|
|
3160
3160
|
visualMap: {
|
|
3161
3161
|
color: Object.values(At.graphics.depth).reverse()
|
|
@@ -3215,7 +3215,7 @@ const xe = (e) => (t, n) => {
|
|
|
3215
3215
|
x();
|
|
3216
3216
|
const {
|
|
3217
3217
|
panel: p
|
|
3218
|
-
} =
|
|
3218
|
+
} = Ae(), g = $.useMemo(() => p.variableOptions(a, s), [a, s]);
|
|
3219
3219
|
return g.length === 0 ? /* @__PURE__ */ r(V, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(O, { ref: t, label: n, description: o, renderOption: Rm(d), data: g, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
|
|
3220
3220
|
withinPortal: !0,
|
|
3221
3221
|
zIndex: h
|
|
@@ -3384,7 +3384,7 @@ function bs(e) {
|
|
|
3384
3384
|
}
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3387
|
+
function Nm() {
|
|
3388
3388
|
return {
|
|
3389
3389
|
type: "piecewise",
|
|
3390
3390
|
piecewise_mode: "pieces",
|
|
@@ -3412,7 +3412,7 @@ function Bm() {
|
|
|
3412
3412
|
function Qt() {
|
|
3413
3413
|
return bs();
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3415
|
+
function Bm() {
|
|
3416
3416
|
return {
|
|
3417
3417
|
compared: Object.values(At.graphics.compared),
|
|
3418
3418
|
level: Object.values(At.graphics.level),
|
|
@@ -3484,7 +3484,7 @@ function ys() {
|
|
|
3484
3484
|
color: ""
|
|
3485
3485
|
};
|
|
3486
3486
|
}
|
|
3487
|
-
const jm =
|
|
3487
|
+
const jm = Bm(), Qm = ({
|
|
3488
3488
|
colors: e,
|
|
3489
3489
|
applyPalette: t,
|
|
3490
3490
|
zIndex: n = 340
|
|
@@ -3637,7 +3637,7 @@ const jm = Nm(), Qm = ({
|
|
|
3637
3637
|
handleSubmit: l,
|
|
3638
3638
|
reset: s
|
|
3639
3639
|
} = i;
|
|
3640
|
-
|
|
3640
|
+
N(() => {
|
|
3641
3641
|
s(e);
|
|
3642
3642
|
}, [e]);
|
|
3643
3643
|
const c = ae(() => s(e), [s, e]);
|
|
@@ -3813,7 +3813,7 @@ function ng(e, t, n) {
|
|
|
3813
3813
|
});
|
|
3814
3814
|
}), a;
|
|
3815
3815
|
}
|
|
3816
|
-
const
|
|
3816
|
+
const Nn = "data-value", rg = Nn, ks = "dynamicColor", zs = Ol.create({
|
|
3817
3817
|
name: ks,
|
|
3818
3818
|
addAttributes() {
|
|
3819
3819
|
return {
|
|
@@ -3824,16 +3824,16 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
|
|
|
3824
3824
|
return Ss(t);
|
|
3825
3825
|
}
|
|
3826
3826
|
},
|
|
3827
|
-
[
|
|
3827
|
+
[Nn]: {
|
|
3828
3828
|
default: null,
|
|
3829
|
-
parseHTML: (e) => e.getAttribute(
|
|
3829
|
+
parseHTML: (e) => e.getAttribute(Nn)
|
|
3830
3830
|
}
|
|
3831
3831
|
};
|
|
3832
3832
|
},
|
|
3833
3833
|
parseHTML() {
|
|
3834
3834
|
return [{
|
|
3835
3835
|
tag: "dynamic-color",
|
|
3836
|
-
getAttrs: (e) => typeof e == "string" ? (console.debug(e), !1) : [e.getAttribute(
|
|
3836
|
+
getAttrs: (e) => typeof e == "string" ? (console.debug(e), !1) : [e.getAttribute(Nn)]
|
|
3837
3837
|
}];
|
|
3838
3838
|
},
|
|
3839
3839
|
renderHTML({
|
|
@@ -3848,7 +3848,7 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
|
|
|
3848
3848
|
}) => {
|
|
3849
3849
|
const n = eg(e);
|
|
3850
3850
|
return t.setMark(this.name, {
|
|
3851
|
-
[
|
|
3851
|
+
[Nn]: n
|
|
3852
3852
|
});
|
|
3853
3853
|
},
|
|
3854
3854
|
unsetDynamicColor: () => ({
|
|
@@ -3868,7 +3868,7 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
|
|
|
3868
3868
|
}
|
|
3869
3869
|
t(s);
|
|
3870
3870
|
};
|
|
3871
|
-
return
|
|
3871
|
+
return N(() => {
|
|
3872
3872
|
var c;
|
|
3873
3873
|
const s = (c = a.current) == null ? void 0 : c.getModel();
|
|
3874
3874
|
s && (s.getValue() || s.setValue(e));
|
|
@@ -3912,7 +3912,7 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
|
|
|
3912
3912
|
}, p = () => {
|
|
3913
3913
|
c(a);
|
|
3914
3914
|
};
|
|
3915
|
-
|
|
3915
|
+
N(() => {
|
|
3916
3916
|
c(e);
|
|
3917
3917
|
}, [e]);
|
|
3918
3918
|
const g = ae((w, I) => {
|
|
@@ -4097,7 +4097,7 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
|
|
|
4097
4097
|
content: e,
|
|
4098
4098
|
editable: !1
|
|
4099
4099
|
});
|
|
4100
|
-
|
|
4100
|
+
N(() => {
|
|
4101
4101
|
c == null || c.commands.setContent(e);
|
|
4102
4102
|
}, [e, c]);
|
|
4103
4103
|
const d = z(() => new DOMParser().parseFromString(e, "text/html"), [e]), h = z(() => ng(d, a, i), [d, a, i]), p = z(() => Vm(d, i), [d, i]), g = z(() => C.defaultsDeep({}, {
|
|
@@ -4268,13 +4268,13 @@ const Zt = J(({
|
|
|
4268
4268
|
onFocus: p,
|
|
4269
4269
|
onBlur: g
|
|
4270
4270
|
});
|
|
4271
|
-
|
|
4271
|
+
N(() => {
|
|
4272
4272
|
b((q) => e === q ? q : (w == null || w.commands.setContent(e), e));
|
|
4273
4273
|
}, [e]);
|
|
4274
4274
|
const I = () => {
|
|
4275
4275
|
t(y), o == null || o();
|
|
4276
4276
|
}, M = e !== y;
|
|
4277
|
-
|
|
4277
|
+
N(() => {
|
|
4278
4278
|
!i || !h || I();
|
|
4279
4279
|
}, [i, M, h]);
|
|
4280
4280
|
const R = z(() => C.defaultsDeep({}, {
|
|
@@ -4364,7 +4364,7 @@ const As = ({
|
|
|
4364
4364
|
const {
|
|
4365
4365
|
t: a
|
|
4366
4366
|
} = x(), [i, o] = G(e);
|
|
4367
|
-
|
|
4367
|
+
N(() => {
|
|
4368
4368
|
n && o(e);
|
|
4369
4369
|
}, [e, n]);
|
|
4370
4370
|
const l = ae((s) => {
|
|
@@ -4773,9 +4773,9 @@ function Lg({
|
|
|
4773
4773
|
y: b,
|
|
4774
4774
|
z: w
|
|
4775
4775
|
} = z(() => ({
|
|
4776
|
-
x:
|
|
4777
|
-
y:
|
|
4778
|
-
z:
|
|
4776
|
+
x: B(l),
|
|
4777
|
+
y: B(s),
|
|
4778
|
+
z: B(c)
|
|
4779
4779
|
}), [l, s, c]), {
|
|
4780
4780
|
min: I,
|
|
4781
4781
|
max: M
|
|
@@ -4827,7 +4827,7 @@ function Lg({
|
|
|
4827
4827
|
data: g.map((Q) => [Q[y.columnKey], Q[b.columnKey], Q[w.columnKey]])
|
|
4828
4828
|
}]
|
|
4829
4829
|
};
|
|
4830
|
-
return n ? /* @__PURE__ */ r(nt, { width: i, height: o, children: /* @__PURE__ */ r(He, { echarts:
|
|
4830
|
+
return n ? /* @__PURE__ */ r(nt, { width: i, height: o, children: /* @__PURE__ */ r(He, { echarts: Be, ref: R, option: X, style: Xn(i, o), notMerge: !0, onEvents: q, theme: "merico-light" }) }) : null;
|
|
4831
4831
|
}
|
|
4832
4832
|
const K = D(J(({
|
|
4833
4833
|
label: e,
|
|
@@ -4842,7 +4842,7 @@ const K = D(J(({
|
|
|
4842
4842
|
}, d) => {
|
|
4843
4843
|
const {
|
|
4844
4844
|
panel: h
|
|
4845
|
-
} =
|
|
4845
|
+
} = Ae(), p = $.useMemo(() => h.dataFieldOptionGroups(a, l, o), [a, l, o]);
|
|
4846
4846
|
if (p.length === 0) {
|
|
4847
4847
|
const g = h.explainDataKey(a);
|
|
4848
4848
|
return /* @__PURE__ */ u(_e, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
|
|
@@ -4869,7 +4869,7 @@ function Ag({
|
|
|
4869
4869
|
} = ge({
|
|
4870
4870
|
defaultValues: a
|
|
4871
4871
|
});
|
|
4872
|
-
return
|
|
4872
|
+
return N(() => {
|
|
4873
4873
|
l(a);
|
|
4874
4874
|
}, [t]), t ? /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
4875
4875
|
/* @__PURE__ */ r(k, { size: "sm", children: "X Axis" }),
|
|
@@ -5044,7 +5044,7 @@ const zt = J(({
|
|
|
5044
5044
|
setTrue: l,
|
|
5045
5045
|
setFalse: s
|
|
5046
5046
|
}] = De(), [c, d] = G(e);
|
|
5047
|
-
|
|
5047
|
+
N(() => {
|
|
5048
5048
|
d(e);
|
|
5049
5049
|
}, [e]);
|
|
5050
5050
|
const h = (I) => {
|
|
@@ -5107,7 +5107,7 @@ const Fg = {
|
|
|
5107
5107
|
label: "Click box, scatter or outlier"
|
|
5108
5108
|
}
|
|
5109
5109
|
}
|
|
5110
|
-
},
|
|
5110
|
+
}, Ng = {
|
|
5111
5111
|
boxplot: {
|
|
5112
5112
|
viz_name: "箱线图",
|
|
5113
5113
|
box: "箱体",
|
|
@@ -5117,12 +5117,12 @@ const Fg = {
|
|
|
5117
5117
|
label: "点击箱体、散点或异常点"
|
|
5118
5118
|
}
|
|
5119
5119
|
}
|
|
5120
|
-
},
|
|
5120
|
+
}, Bg = [{
|
|
5121
5121
|
lang: "en",
|
|
5122
5122
|
resources: Fg
|
|
5123
5123
|
}, {
|
|
5124
5124
|
lang: "zh",
|
|
5125
|
-
resources:
|
|
5125
|
+
resources: Ng
|
|
5126
5126
|
}], Os = {
|
|
5127
5127
|
id: "builtin:echarts:click-echart:series",
|
|
5128
5128
|
// use same id as cartesian's, but different payload
|
|
@@ -5304,16 +5304,16 @@ function yn(e, t) {
|
|
|
5304
5304
|
const {
|
|
5305
5305
|
queryID: n,
|
|
5306
5306
|
columnKey: a
|
|
5307
|
-
} =
|
|
5307
|
+
} = B(t);
|
|
5308
5308
|
return C.keyBy(e[n], a);
|
|
5309
5309
|
}, [e, t]);
|
|
5310
5310
|
}
|
|
5311
5311
|
const st = (e, t) => {
|
|
5312
5312
|
const [n, a] = G([]);
|
|
5313
|
-
return
|
|
5313
|
+
return N(() => e.watchTriggerSnapshotList((i) => a(i.filter((o) => o.schemaRef === t))), []), n;
|
|
5314
5314
|
}, ca = il(null);
|
|
5315
5315
|
function Or(e) {
|
|
5316
|
-
const t = $.useContext(ca), n = $t(() => e.configure(t || new
|
|
5316
|
+
const t = $.useContext(ca), n = $t(() => e.configure(t || new Ba()), [e.configure]), a = eh(n);
|
|
5317
5317
|
return a && a !== n && a.dispose(), /* @__PURE__ */ r(ca.Provider, { value: n, children: e.children });
|
|
5318
5318
|
}
|
|
5319
5319
|
function qr() {
|
|
@@ -5364,7 +5364,7 @@ class Gg {
|
|
|
5364
5364
|
}
|
|
5365
5365
|
async configOperation(t, n) {
|
|
5366
5366
|
const a = await this.operationManager.retrieveTrigger(t), i = this.operationManager.getOperationSchemaList().find((o) => o.id === (a == null ? void 0 : a.schemaRef));
|
|
5367
|
-
|
|
5367
|
+
Bn(() => {
|
|
5368
5368
|
this.operationId = t, this.operation = a, this.operationSchema = i, this.variables = n;
|
|
5369
5369
|
});
|
|
5370
5370
|
}
|
|
@@ -5452,7 +5452,7 @@ class Xg {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
async configTrigger(t, n) {
|
|
5454
5454
|
const a = await this.triggerManager.retrieveTrigger(t), i = this.triggerManager.getTriggerSchemaList().find((o) => o.id === (a == null ? void 0 : a.schemaRef));
|
|
5455
|
-
|
|
5455
|
+
Bn(() => {
|
|
5456
5456
|
this.triggerId = t, this.trigger = a, this.triggerSchema = i, this.sampleData = n;
|
|
5457
5457
|
});
|
|
5458
5458
|
}
|
|
@@ -5586,7 +5586,7 @@ function of(e, t) {
|
|
|
5586
5586
|
} = Y(e.operation.operationData, "config"), [i, o] = G(he({}, n, t)), l = async () => {
|
|
5587
5587
|
await a(i);
|
|
5588
5588
|
};
|
|
5589
|
-
return
|
|
5589
|
+
return N(() => {
|
|
5590
5590
|
o(he({}, n, t));
|
|
5591
5591
|
}, [n]), {
|
|
5592
5592
|
config: i,
|
|
@@ -5728,7 +5728,7 @@ const bf = {
|
|
|
5728
5728
|
onChange: t
|
|
5729
5729
|
}) => {
|
|
5730
5730
|
const [n, a] = G(e);
|
|
5731
|
-
return
|
|
5731
|
+
return N(() => {
|
|
5732
5732
|
a(e);
|
|
5733
5733
|
}, [e]), /* @__PURE__ */ r(V, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
|
|
5734
5734
|
flexGrow: 1
|
|
@@ -6109,7 +6109,7 @@ const Lf = D(({
|
|
|
6109
6109
|
} = rt(), n = e.viz, {
|
|
6110
6110
|
vizManager: a
|
|
6111
6111
|
} = Ht(Kt), i = e.json, o = $t(() => a.getOrCreateInstance(i), [a, i]), l = $t(() => new Fs(o, a.resolveComponent(n.type), ai), [o, n.type]);
|
|
6112
|
-
return
|
|
6112
|
+
return N(() => o.instanceData.watchItem(
|
|
6113
6113
|
null,
|
|
6114
6114
|
// avoid too many updates
|
|
6115
6115
|
Hu((s) => {
|
|
@@ -6128,7 +6128,7 @@ const Lf = D(({
|
|
|
6128
6128
|
}, $f = () => {
|
|
6129
6129
|
const e = Vf();
|
|
6130
6130
|
return /* @__PURE__ */ r(Af, { ...e });
|
|
6131
|
-
},
|
|
6131
|
+
}, Ns = {
|
|
6132
6132
|
axisTick: {
|
|
6133
6133
|
show: !0,
|
|
6134
6134
|
alignWithLabel: !0,
|
|
@@ -6148,13 +6148,13 @@ const Lf = D(({
|
|
|
6148
6148
|
z: 3
|
|
6149
6149
|
};
|
|
6150
6150
|
function Pf(e) {
|
|
6151
|
-
return C.defaultsDeep({}, e,
|
|
6151
|
+
return C.defaultsDeep({}, e, Ns);
|
|
6152
6152
|
}
|
|
6153
6153
|
const Rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6154
6154
|
__proto__: null,
|
|
6155
6155
|
getXAxis: Pf,
|
|
6156
|
-
xAxis:
|
|
6157
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6156
|
+
xAxis: Ns
|
|
6157
|
+
}, Symbol.toStringTag, { value: "Module" })), Bs = {
|
|
6158
6158
|
axisTick: {
|
|
6159
6159
|
show: !1
|
|
6160
6160
|
},
|
|
@@ -6172,12 +6172,12 @@ const Rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6172
6172
|
}
|
|
6173
6173
|
};
|
|
6174
6174
|
function Ef(e) {
|
|
6175
|
-
return C.defaultsDeep({}, e,
|
|
6175
|
+
return C.defaultsDeep({}, e, Bs);
|
|
6176
6176
|
}
|
|
6177
6177
|
const Of = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6178
6178
|
__proto__: null,
|
|
6179
6179
|
getYAxis: Ef,
|
|
6180
|
-
yAxis:
|
|
6180
|
+
yAxis: Bs
|
|
6181
6181
|
}, Symbol.toStringTag, { value: "Module" })), js = {
|
|
6182
6182
|
confine: !0,
|
|
6183
6183
|
appendToBody: !0
|
|
@@ -6194,7 +6194,7 @@ const Ff = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6194
6194
|
...Of,
|
|
6195
6195
|
...Ff
|
|
6196
6196
|
};
|
|
6197
|
-
function
|
|
6197
|
+
function Nf(e, t) {
|
|
6198
6198
|
const n = [], a = [];
|
|
6199
6199
|
return {
|
|
6200
6200
|
boxplotData: Object.entries(e).map(([o, l]) => {
|
|
@@ -6218,21 +6218,21 @@ function Bf(e, t) {
|
|
|
6218
6218
|
scatterData: a
|
|
6219
6219
|
};
|
|
6220
6220
|
}
|
|
6221
|
-
function
|
|
6221
|
+
function Bf(e, t) {
|
|
6222
6222
|
const {
|
|
6223
6223
|
x_axis: n,
|
|
6224
6224
|
y_axis: a
|
|
6225
6225
|
} = e;
|
|
6226
6226
|
if (!n.data_key || !a.data_key)
|
|
6227
6227
|
return [];
|
|
6228
|
-
const i =
|
|
6228
|
+
const i = B(n.data_key), o = B(a.data_key);
|
|
6229
6229
|
if (i.queryID !== o.queryID)
|
|
6230
6230
|
throw new Error("Please use the same query for X & Y axis");
|
|
6231
6231
|
const l = C.groupBy(t[i.queryID], i.columnKey), {
|
|
6232
6232
|
boxplotData: s,
|
|
6233
6233
|
outliersData: c,
|
|
6234
6234
|
scatterData: d
|
|
6235
|
-
} =
|
|
6235
|
+
} = Nf(l, o.columnKey);
|
|
6236
6236
|
return [{
|
|
6237
6237
|
source: s
|
|
6238
6238
|
}, {
|
|
@@ -6546,7 +6546,7 @@ const Jf = (e, t) => {
|
|
|
6546
6546
|
});
|
|
6547
6547
|
function Qs(e, t) {
|
|
6548
6548
|
return e.tooltip.metrics.map((n) => {
|
|
6549
|
-
const a =
|
|
6549
|
+
const a = B(n.data_key);
|
|
6550
6550
|
return `
|
|
6551
6551
|
<tr>
|
|
6552
6552
|
<th style="text-align: right; padding: 0 1em;">${n.name}</th>
|
|
@@ -6664,7 +6664,7 @@ function lb({
|
|
|
6664
6664
|
x_axis: i,
|
|
6665
6665
|
y_axis: o,
|
|
6666
6666
|
reference_lines: l
|
|
6667
|
-
} = e, s =
|
|
6667
|
+
} = e, s = Bf(e, t), c = ft(i.axisLabel.overflow.on_axis), d = ob(a), h = Zf(e, s).map((p) => ({
|
|
6668
6668
|
...p,
|
|
6669
6669
|
name: C.get(d, p.name, p.name)
|
|
6670
6670
|
}));
|
|
@@ -6746,9 +6746,9 @@ function sb({
|
|
|
6746
6746
|
variables: i,
|
|
6747
6747
|
t: n
|
|
6748
6748
|
}), [c, o, i, n]);
|
|
6749
|
-
return !a || !l || !s ? null : /* @__PURE__ */ r(nt, { width: l, height: s, children: /* @__PURE__ */ r(He, { echarts:
|
|
6749
|
+
return !a || !l || !s ? null : /* @__PURE__ */ r(nt, { width: l, height: s, children: /* @__PURE__ */ r(He, { echarts: Be, option: I, ref: y, style: Xn(l, s), onEvents: w, notMerge: !0, theme: "merico-light" }) });
|
|
6750
6750
|
}
|
|
6751
|
-
function
|
|
6751
|
+
function Ve({
|
|
6752
6752
|
canSubmit: e,
|
|
6753
6753
|
buttonRef: t
|
|
6754
6754
|
}) {
|
|
@@ -6845,7 +6845,7 @@ class db {
|
|
|
6845
6845
|
steps: al
|
|
6846
6846
|
}, {
|
|
6847
6847
|
deep: !1
|
|
6848
|
-
}),
|
|
6848
|
+
}), Ne(() => Rt(this.steps), () => {
|
|
6849
6849
|
this.notifyStepChange();
|
|
6850
6850
|
});
|
|
6851
6851
|
}
|
|
@@ -6941,7 +6941,7 @@ const hb = D(({
|
|
|
6941
6941
|
return /* @__PURE__ */ r("div", { className: t.palette, children: n.map(([a, i], o) => /* @__PURE__ */ r(ub, { index: o, color: a, value: e.getStepFromValue(i), onChange: (l) => e.changeStep(l, i) }, a)) });
|
|
6942
6942
|
}), pb = D(function(t) {
|
|
6943
6943
|
const n = $t(() => new db(), []);
|
|
6944
|
-
return
|
|
6944
|
+
return N(() => {
|
|
6945
6945
|
n.fromProps(t);
|
|
6946
6946
|
}), n.interpolation == null ? null : /* @__PURE__ */ r(hb, { model: n });
|
|
6947
6947
|
}), mb = (e) => {
|
|
@@ -7136,7 +7136,7 @@ const hb = D(({
|
|
|
7136
7136
|
})), w = ((X = C.last(b)) == null ? void 0 : X.id) ?? null, [I, M] = G(w), R = (Q) => {
|
|
7137
7137
|
Q !== "add" && M(Q);
|
|
7138
7138
|
};
|
|
7139
|
-
return
|
|
7139
|
+
return N(() => {
|
|
7140
7140
|
M((Q) => w === Q ? Q : w);
|
|
7141
7141
|
}, [w]), /* @__PURE__ */ u(S, { value: I, onChange: R, styles: xb, children: [
|
|
7142
7142
|
/* @__PURE__ */ r(_b, { fieldArray: d, add: () => {
|
|
@@ -7159,7 +7159,7 @@ const hb = D(({
|
|
|
7159
7159
|
}), children: l })
|
|
7160
7160
|
] }) }, Q.id))
|
|
7161
7161
|
] });
|
|
7162
|
-
},
|
|
7162
|
+
}, Nr = J(({
|
|
7163
7163
|
value: e,
|
|
7164
7164
|
onChange: t
|
|
7165
7165
|
}, n) => {
|
|
@@ -7551,10 +7551,10 @@ function Ab({
|
|
|
7551
7551
|
} = ge({
|
|
7552
7552
|
defaultValues: o
|
|
7553
7553
|
});
|
|
7554
|
-
return
|
|
7554
|
+
return N(() => {
|
|
7555
7555
|
h(o);
|
|
7556
7556
|
}, [o]), c(["x_axis", "y_axis", "reference_lines", "color", "dataZoom"]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
7557
|
-
/* @__PURE__ */ r(
|
|
7557
|
+
/* @__PURE__ */ r(Ve, { canSubmit: d.isDirty }),
|
|
7558
7558
|
/* @__PURE__ */ u(S, { defaultValue: "X Axis", orientation: "vertical", styles: {
|
|
7559
7559
|
tab: {
|
|
7560
7560
|
paddingLeft: "6px",
|
|
@@ -7584,7 +7584,7 @@ function Ab({
|
|
|
7584
7584
|
/* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(Sb, { variables: i, control: l, watch: c }) }),
|
|
7585
7585
|
/* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
|
|
7586
7586
|
field: p
|
|
7587
|
-
}) => /* @__PURE__ */ r(
|
|
7587
|
+
}) => /* @__PURE__ */ r(Nr, { ...p }) }) })
|
|
7588
7588
|
] })
|
|
7589
7589
|
] }) });
|
|
7590
7590
|
}
|
|
@@ -7715,7 +7715,7 @@ function Fb(e) {
|
|
|
7715
7715
|
};
|
|
7716
7716
|
return C.defaultsDeep(t, e);
|
|
7717
7717
|
}
|
|
7718
|
-
function
|
|
7718
|
+
function Nb(e) {
|
|
7719
7719
|
const {
|
|
7720
7720
|
dataZoom: t,
|
|
7721
7721
|
...n
|
|
@@ -7725,7 +7725,7 @@ function Bb(e) {
|
|
|
7725
7725
|
dataZoom: t ?? Es()
|
|
7726
7726
|
};
|
|
7727
7727
|
}
|
|
7728
|
-
class
|
|
7728
|
+
class Bb extends Se {
|
|
7729
7729
|
constructor() {
|
|
7730
7730
|
super(...arguments);
|
|
7731
7731
|
j(this, "VERSION", 9);
|
|
@@ -7817,7 +7817,7 @@ class Nb extends Se {
|
|
|
7817
7817
|
return {
|
|
7818
7818
|
...n,
|
|
7819
7819
|
version: 10,
|
|
7820
|
-
config:
|
|
7820
|
+
config: Nb(a)
|
|
7821
7821
|
};
|
|
7822
7822
|
});
|
|
7823
7823
|
}
|
|
@@ -7825,7 +7825,7 @@ class Nb extends Se {
|
|
|
7825
7825
|
const jb = {
|
|
7826
7826
|
displayName: "viz.boxplot.viz_name",
|
|
7827
7827
|
displayGroup: "chart.groups.echarts_based_charts",
|
|
7828
|
-
migrator: new
|
|
7828
|
+
migrator: new Bb(),
|
|
7829
7829
|
name: "boxplot",
|
|
7830
7830
|
viewRender: sb,
|
|
7831
7831
|
configRender: Ab,
|
|
@@ -7836,7 +7836,7 @@ const jb = {
|
|
|
7836
7836
|
};
|
|
7837
7837
|
},
|
|
7838
7838
|
triggers: [Os],
|
|
7839
|
-
translation:
|
|
7839
|
+
translation: Bg
|
|
7840
7840
|
}, Ws = {
|
|
7841
7841
|
id: "builtin:button:click-button",
|
|
7842
7842
|
displayName: "viz.button.click.label",
|
|
@@ -7958,7 +7958,7 @@ function Zb({
|
|
|
7958
7958
|
value: t,
|
|
7959
7959
|
set: n
|
|
7960
7960
|
} = Y(e.instanceData, "config"), a = z(() => Ge({}, t, li), [t]), i = a;
|
|
7961
|
-
|
|
7961
|
+
N(() => {
|
|
7962
7962
|
!Fe(a, i) && (console.log("config malformed, resetting to defaults", a, i), n(i));
|
|
7963
7963
|
}, [a, i]);
|
|
7964
7964
|
const {
|
|
@@ -7970,10 +7970,10 @@ function Zb({
|
|
|
7970
7970
|
} = ge({
|
|
7971
7971
|
defaultValues: i
|
|
7972
7972
|
});
|
|
7973
|
-
return
|
|
7973
|
+
return N(() => {
|
|
7974
7974
|
d(i);
|
|
7975
7975
|
}, [i]), s(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ u("form", { onSubmit: l(n), children: [
|
|
7976
|
-
/* @__PURE__ */ r(
|
|
7976
|
+
/* @__PURE__ */ r(Ve, { canSubmit: c.isDirty }),
|
|
7977
7977
|
/* @__PURE__ */ u(T, { children: [
|
|
7978
7978
|
/* @__PURE__ */ r(f, { control: o, name: "content", render: ({
|
|
7979
7979
|
field: h
|
|
@@ -8223,7 +8223,7 @@ const Ks = J(({
|
|
|
8223
8223
|
}
|
|
8224
8224
|
)
|
|
8225
8225
|
] });
|
|
8226
|
-
}),
|
|
8226
|
+
}), Br = () => ({
|
|
8227
8227
|
key: "",
|
|
8228
8228
|
order: "desc"
|
|
8229
8229
|
});
|
|
@@ -8590,7 +8590,7 @@ function Ty(e) {
|
|
|
8590
8590
|
...n
|
|
8591
8591
|
} = e, a = t.map((i) => {
|
|
8592
8592
|
const {
|
|
8593
|
-
order_in_group: o =
|
|
8593
|
+
order_in_group: o = Br(),
|
|
8594
8594
|
...l
|
|
8595
8595
|
} = i;
|
|
8596
8596
|
return {
|
|
@@ -8826,7 +8826,7 @@ const Ys = {
|
|
|
8826
8826
|
variables: l,
|
|
8827
8827
|
data: s
|
|
8828
8828
|
} = t, c = z(() => Er(e, l, i.payloadForViz, s), [e, l, s]), d = ((p = a.current) == null ? void 0 : p.textContent) === "";
|
|
8829
|
-
|
|
8829
|
+
N(() => {
|
|
8830
8830
|
if (!n || !a.current)
|
|
8831
8831
|
return;
|
|
8832
8832
|
const g = d ? 0 : a.current.offsetHeight;
|
|
@@ -8958,7 +8958,7 @@ function qy({
|
|
|
8958
8958
|
}
|
|
8959
8959
|
const {
|
|
8960
8960
|
columnKey: c
|
|
8961
|
-
} =
|
|
8961
|
+
} = B(o.y_axis_data_key), d = C.groupBy(Vr(n, o.y_axis_data_key), s);
|
|
8962
8962
|
Object.entries(d).forEach(([h, p]) => {
|
|
8963
8963
|
const g = p.map((b, w) => [w, Number(b[c])]);
|
|
8964
8964
|
i(o, h, h, g);
|
|
@@ -8984,12 +8984,12 @@ function Fy(e, t) {
|
|
|
8984
8984
|
}
|
|
8985
8985
|
}));
|
|
8986
8986
|
}
|
|
8987
|
-
function
|
|
8987
|
+
function Ny(e, t, n, a) {
|
|
8988
8988
|
return t ? a === "value" ? [[n[0], e]] : [e] : [];
|
|
8989
8989
|
}
|
|
8990
|
-
function
|
|
8990
|
+
function By(e, t, n, a, i, o) {
|
|
8991
8991
|
return e.map((l) => {
|
|
8992
|
-
const s = n[l.variable_key], c = l.orientation === "horizontal", d = c ? "yAxis" : "xAxis", h = c ? "insideEndTop" : "end", p =
|
|
8992
|
+
const s = n[l.variable_key], c = l.orientation === "horizontal", d = c ? "yAxis" : "xAxis", h = c ? "insideEndTop" : "end", p = Ny(s, c, i, o);
|
|
8993
8993
|
return {
|
|
8994
8994
|
name: l.name,
|
|
8995
8995
|
type: "scatter",
|
|
@@ -9068,7 +9068,7 @@ function Hy({
|
|
|
9068
9068
|
const {
|
|
9069
9069
|
queryID: i,
|
|
9070
9070
|
columnKey: o
|
|
9071
|
-
} =
|
|
9071
|
+
} = B(e), l = C.groupBy(t[i], o);
|
|
9072
9072
|
return Object.entries(l).forEach(([s, c]) => {
|
|
9073
9073
|
l[s] = ci({
|
|
9074
9074
|
[i]: c
|
|
@@ -9092,7 +9092,7 @@ function Wy({
|
|
|
9092
9092
|
} = t, {
|
|
9093
9093
|
queryID: l,
|
|
9094
9094
|
columnKey: s
|
|
9095
|
-
} =
|
|
9095
|
+
} = B(a), c = Uu(Vr(n, l), s);
|
|
9096
9096
|
return (d, h) => {
|
|
9097
9097
|
let p;
|
|
9098
9098
|
h.name ? p = c[h.name] : p = n[h.dataIndex];
|
|
@@ -9192,7 +9192,7 @@ function Uy({
|
|
|
9192
9192
|
}
|
|
9193
9193
|
function Ky(e, t, n, a, i, o) {
|
|
9194
9194
|
const l = t.map((c) => [c, 0]);
|
|
9195
|
-
return e.series.map((c) => Uy(e, c, l, n, o, a)).flat().concat(
|
|
9195
|
+
return e.series.map((c) => Uy(e, c, l, n, o, a)).flat().concat(By(e.reference_lines, i, o, n, t, e.x_axis.type)).concat(Fy(e.reference_areas, o));
|
|
9196
9196
|
}
|
|
9197
9197
|
function Yy(e, t) {
|
|
9198
9198
|
const n = e.find((o) => o.axisDim === "x" && o.axisId === "main-x-axis");
|
|
@@ -9433,9 +9433,9 @@ function o_({
|
|
|
9433
9433
|
}), [d]), w = (I) => {
|
|
9434
9434
|
p.current = I, lo(I);
|
|
9435
9435
|
};
|
|
9436
|
-
return
|
|
9436
|
+
return N(() => {
|
|
9437
9437
|
p.current && lo(p.current);
|
|
9438
|
-
}, [h]), !n || !a ? null : /* @__PURE__ */ r(He, { echarts:
|
|
9438
|
+
}, [h]), !n || !a ? null : /* @__PURE__ */ r(He, { echarts: Be, option: h, style: {
|
|
9439
9439
|
width: n,
|
|
9440
9440
|
height: a
|
|
9441
9441
|
}, onEvents: b, onChartReady: w, notMerge: !0, theme: "merico-light" });
|
|
@@ -9933,7 +9933,7 @@ function y_({
|
|
|
9933
9933
|
t: l,
|
|
9934
9934
|
i18n: s
|
|
9935
9935
|
} = x();
|
|
9936
|
-
|
|
9936
|
+
N(() => {
|
|
9937
9937
|
typeof t == "string" && n({
|
|
9938
9938
|
type: t,
|
|
9939
9939
|
config: {},
|
|
@@ -10365,7 +10365,7 @@ function S_({
|
|
|
10365
10365
|
},
|
|
10366
10366
|
hide_in_legend: !1,
|
|
10367
10367
|
group_by_key: "",
|
|
10368
|
-
order_in_group:
|
|
10368
|
+
order_in_group: Br(),
|
|
10369
10369
|
areaStyle: Us()
|
|
10370
10370
|
}), i = (s, c) => {
|
|
10371
10371
|
const d = s.name.trim();
|
|
@@ -10387,7 +10387,7 @@ const C_ = D(({
|
|
|
10387
10387
|
}) => {
|
|
10388
10388
|
const {
|
|
10389
10389
|
panel: n
|
|
10390
|
-
} =
|
|
10390
|
+
} = Ae(), {
|
|
10391
10391
|
t: a
|
|
10392
10392
|
} = x();
|
|
10393
10393
|
return /* @__PURE__ */ u(T, { children: [
|
|
@@ -10673,10 +10673,10 @@ function A_({
|
|
|
10673
10673
|
} = ge({
|
|
10674
10674
|
defaultValues: o
|
|
10675
10675
|
});
|
|
10676
|
-
return
|
|
10676
|
+
return N(() => {
|
|
10677
10677
|
d(o);
|
|
10678
10678
|
}, [o]), c(["dataZoom"]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(t), children: [
|
|
10679
|
-
/* @__PURE__ */ r(
|
|
10679
|
+
/* @__PURE__ */ r(Ve, { canSubmit: h.isDirty }),
|
|
10680
10680
|
/* @__PURE__ */ u(S, { defaultValue: "Series", orientation: "vertical", styles: {
|
|
10681
10681
|
tab: {
|
|
10682
10682
|
paddingLeft: "6px",
|
|
@@ -10708,7 +10708,7 @@ function A_({
|
|
|
10708
10708
|
/* @__PURE__ */ r(S.Panel, { value: "Reference Areas", children: /* @__PURE__ */ r(c_, { variables: i, control: l, watch: c }) }),
|
|
10709
10709
|
/* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
|
|
10710
10710
|
field: p
|
|
10711
|
-
}) => /* @__PURE__ */ r(
|
|
10711
|
+
}) => /* @__PURE__ */ r(Nr, { ...p }) }) })
|
|
10712
10712
|
] })
|
|
10713
10713
|
] }) });
|
|
10714
10714
|
}
|
|
@@ -10766,7 +10766,7 @@ function O_(e, t) {
|
|
|
10766
10766
|
} = n;
|
|
10767
10767
|
if (!a || !i)
|
|
10768
10768
|
return {};
|
|
10769
|
-
const p =
|
|
10769
|
+
const p = B(a), g = B(i), y = t[p.queryID].map((w) => ({
|
|
10770
10770
|
name: w[p.columnKey],
|
|
10771
10771
|
value: w[g.columnKey]
|
|
10772
10772
|
})), b = ft(o.overflow.on_axis);
|
|
@@ -10814,7 +10814,7 @@ function q_({
|
|
|
10814
10814
|
}
|
|
10815
10815
|
function F_(e, t) {
|
|
10816
10816
|
var o;
|
|
10817
|
-
const n =
|
|
10817
|
+
const n = B(e.series[0].level_name_data_key), a = B(e.series[0].level_value_data_key), i = (o = C.maxBy(t[n.queryID], a.columnKey)) == null ? void 0 : o[a.columnKey];
|
|
10818
10818
|
return (l) => {
|
|
10819
10819
|
const c = q_({
|
|
10820
10820
|
conf: e,
|
|
@@ -10840,13 +10840,13 @@ function F_(e, t) {
|
|
|
10840
10840
|
`;
|
|
10841
10841
|
};
|
|
10842
10842
|
}
|
|
10843
|
-
function
|
|
10843
|
+
function N_(e, t) {
|
|
10844
10844
|
return pe.getTooltip({
|
|
10845
10845
|
trigger: "item",
|
|
10846
10846
|
formatter: F_(e, t)
|
|
10847
10847
|
});
|
|
10848
10848
|
}
|
|
10849
|
-
function
|
|
10849
|
+
function B_(e, t) {
|
|
10850
10850
|
return {
|
|
10851
10851
|
grid: {
|
|
10852
10852
|
top: 0,
|
|
@@ -10854,7 +10854,7 @@ function N_(e, t) {
|
|
|
10854
10854
|
right: 0,
|
|
10855
10855
|
bottom: 0
|
|
10856
10856
|
},
|
|
10857
|
-
tooltip:
|
|
10857
|
+
tooltip: N_(e, t),
|
|
10858
10858
|
series: O_(e, t)
|
|
10859
10859
|
};
|
|
10860
10860
|
}
|
|
@@ -10895,14 +10895,14 @@ function Q_({
|
|
|
10895
10895
|
height: a,
|
|
10896
10896
|
instance: i
|
|
10897
10897
|
}) {
|
|
10898
|
-
const o = $.useMemo(() =>
|
|
10898
|
+
const o = $.useMemo(() => B_(e, t), [e, t]), l = $.useRef(null), s = $.useCallback(() => {
|
|
10899
10899
|
var h;
|
|
10900
10900
|
const d = (h = l.current) == null ? void 0 : h.getEchartsInstance();
|
|
10901
10901
|
d && Ye(i, d.getOption());
|
|
10902
10902
|
}, [i]), c = z(() => ({
|
|
10903
10903
|
finished: s
|
|
10904
10904
|
}), [s]);
|
|
10905
|
-
return /* @__PURE__ */ r(He, { ref: l, onEvents: c, echarts:
|
|
10905
|
+
return /* @__PURE__ */ r(He, { ref: l, onEvents: c, echarts: Be, option: o, style: {
|
|
10906
10906
|
width: n,
|
|
10907
10907
|
height: a
|
|
10908
10908
|
}, notMerge: !0, theme: "merico-light" });
|
|
@@ -11056,7 +11056,7 @@ const H_ = ({
|
|
|
11056
11056
|
...h,
|
|
11057
11057
|
...o[p]
|
|
11058
11058
|
})), s = C.get(l, "0.id"), [c, d] = G(s ?? null);
|
|
11059
|
-
return
|
|
11059
|
+
return N(() => {
|
|
11060
11060
|
s && d((h) => h !== null ? h : s);
|
|
11061
11061
|
}, [s]), /* @__PURE__ */ u(S, { value: c, onChange: (h) => d(h), styles: {
|
|
11062
11062
|
panel: {
|
|
@@ -11086,10 +11086,10 @@ function U_({
|
|
|
11086
11086
|
} = ge({
|
|
11087
11087
|
defaultValues: a
|
|
11088
11088
|
});
|
|
11089
|
-
return
|
|
11089
|
+
return N(() => {
|
|
11090
11090
|
c(a);
|
|
11091
11091
|
}, [a]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
11092
|
-
/* @__PURE__ */ r(
|
|
11092
|
+
/* @__PURE__ */ r(Ve, { canSubmit: s.isDirty }),
|
|
11093
11093
|
/* @__PURE__ */ r(W_, { control: i, watch: l })
|
|
11094
11094
|
] }) });
|
|
11095
11095
|
}
|
|
@@ -11352,7 +11352,7 @@ function dx({
|
|
|
11352
11352
|
}
|
|
11353
11353
|
}, y = [h, p, g], b = a[`${s}---${c}`];
|
|
11354
11354
|
return b && e.tooltip.metrics.forEach((w) => {
|
|
11355
|
-
const I =
|
|
11355
|
+
const I = B(w.data_key);
|
|
11356
11356
|
y.push({
|
|
11357
11357
|
label: w.name,
|
|
11358
11358
|
value: cx(C.get(b, I.columnKey, "")),
|
|
@@ -11368,8 +11368,8 @@ function ux(e, t, n, a) {
|
|
|
11368
11368
|
x_axis: i,
|
|
11369
11369
|
y_axis: o,
|
|
11370
11370
|
heat_block: l
|
|
11371
|
-
} = e, s =
|
|
11372
|
-
|
|
11371
|
+
} = e, s = B(i.data_key), c = B(o.data_key);
|
|
11372
|
+
B(l.data_key);
|
|
11373
11373
|
const d = C.keyBy(t[s.queryID], (h) => `${h[s.columnKey]}---${h[c.columnKey]}`);
|
|
11374
11374
|
return pe.getTooltip({
|
|
11375
11375
|
formatter: function(h) {
|
|
@@ -11594,8 +11594,8 @@ const er = ({
|
|
|
11594
11594
|
itemHeight: a
|
|
11595
11595
|
} = e, o = t === "horizontal" ? n : a, {
|
|
11596
11596
|
panel: l
|
|
11597
|
-
} =
|
|
11598
|
-
return /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(He, { echarts:
|
|
11597
|
+
} = Ae(), s = Rr(e, l.variableValueMap);
|
|
11598
|
+
return /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(He, { echarts: Be, option: {
|
|
11599
11599
|
visualMap: s
|
|
11600
11600
|
}, style: {
|
|
11601
11601
|
width: "100%",
|
|
@@ -11779,7 +11779,7 @@ const er = ({
|
|
|
11779
11779
|
e.setValue("visualMap", bs());
|
|
11780
11780
|
break;
|
|
11781
11781
|
case "piecewise":
|
|
11782
|
-
e.setValue("visualMap",
|
|
11782
|
+
e.setValue("visualMap", Nm());
|
|
11783
11783
|
break;
|
|
11784
11784
|
default:
|
|
11785
11785
|
return;
|
|
@@ -11817,7 +11817,7 @@ function wx(e, t, n, a, i, o) {
|
|
|
11817
11817
|
}, {}), s = Rr(e.visualMap, l), {
|
|
11818
11818
|
min: c,
|
|
11819
11819
|
max: d
|
|
11820
|
-
} = s, h = ix(e), p = ox(e), g =
|
|
11820
|
+
} = s, h = ix(e), p = ox(e), g = B(e.x_axis.data_key), y = B(e.y_axis.data_key), b = C.uniq(t[g.queryID].map((q) => q[g.columnKey])), w = C.uniq(t[g.queryID].map((q) => q[y.columnKey])), I = n.map((q) => {
|
|
11821
11821
|
const X = C.clone(q), {
|
|
11822
11822
|
followVisualMap: Q,
|
|
11823
11823
|
color: ue
|
|
@@ -11836,7 +11836,7 @@ function wx(e, t, n, a, i, o) {
|
|
|
11836
11836
|
};
|
|
11837
11837
|
}
|
|
11838
11838
|
function Sx(e, t) {
|
|
11839
|
-
const n = z(() =>
|
|
11839
|
+
const n = z(() => B(t.x_axis.data_key), [t.x_axis.data_key]), a = z(() => B(t.y_axis.data_key), [t.y_axis.data_key]), i = z(() => B(t.heat_block.data_key), [t.heat_block.data_key]), o = z(() => {
|
|
11840
11840
|
const s = e[n.queryID];
|
|
11841
11841
|
if (!s)
|
|
11842
11842
|
return {};
|
|
@@ -11961,7 +11961,7 @@ function Tx({
|
|
|
11961
11961
|
instance: s
|
|
11962
11962
|
}) {
|
|
11963
11963
|
const c = z(() => {
|
|
11964
|
-
const w =
|
|
11964
|
+
const w = B(e.x_axis.data_key), I = B(e.y_axis.data_key);
|
|
11965
11965
|
return C.keyBy(t[w.queryID], (M) => `${M[w.columnKey]}---${M[I.columnKey]}`);
|
|
11966
11966
|
}, [t, e.x_axis.data_key, e.y_axis.data_key]), d = st(o.triggerManager, Zs.id), h = ae((w) => {
|
|
11967
11967
|
const [I, M] = w.value, R = C.get(c, `${I}---${M}`, {
|
|
@@ -11981,7 +11981,7 @@ function Tx({
|
|
|
11981
11981
|
click: h,
|
|
11982
11982
|
finished: g
|
|
11983
11983
|
}), [h, g]), b = $.useMemo(() => wx(e, t, n, l, a, i), [e, t, n, a, i]);
|
|
11984
|
-
return /* @__PURE__ */ r(He, { echarts:
|
|
11984
|
+
return /* @__PURE__ */ r(He, { echarts: Be, option: b, style: {
|
|
11985
11985
|
width: a,
|
|
11986
11986
|
height: i
|
|
11987
11987
|
}, ref: p, onEvents: y, notMerge: !0, theme: "merico-light" });
|
|
@@ -12219,7 +12219,7 @@ function Rx({
|
|
|
12219
12219
|
value: n,
|
|
12220
12220
|
set: a
|
|
12221
12221
|
} = Y(e.instanceData, "config"), i = z(() => n ? he({}, n) : fi, [n]), o = z(() => C.cloneDeep(i), [i]);
|
|
12222
|
-
|
|
12222
|
+
N(() => {
|
|
12223
12223
|
!Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
12224
12224
|
}, [i, o]);
|
|
12225
12225
|
const l = ge({
|
|
@@ -12231,14 +12231,14 @@ function Rx({
|
|
|
12231
12231
|
formState: h,
|
|
12232
12232
|
reset: p
|
|
12233
12233
|
} = l;
|
|
12234
|
-
return
|
|
12234
|
+
return N(() => {
|
|
12235
12235
|
p(o);
|
|
12236
12236
|
}, [o]), /* @__PURE__ */ r("form", { onSubmit: c(a), style: {
|
|
12237
12237
|
flexGrow: 1
|
|
12238
12238
|
}, children: /* @__PURE__ */ u(T, { gap: "xs", sx: {
|
|
12239
12239
|
height: "100%"
|
|
12240
12240
|
}, children: [
|
|
12241
|
-
/* @__PURE__ */ r(
|
|
12241
|
+
/* @__PURE__ */ r(Ve, { canSubmit: h.isDirty }),
|
|
12242
12242
|
/* @__PURE__ */ u(S, { defaultValue: "X Axis", orientation: "vertical", styles: {
|
|
12243
12243
|
root: {
|
|
12244
12244
|
// height: '100%',
|
|
@@ -12341,7 +12341,7 @@ function Fx(e, {
|
|
|
12341
12341
|
throw console.error("[Migration failed]", n), n;
|
|
12342
12342
|
}
|
|
12343
12343
|
}
|
|
12344
|
-
function
|
|
12344
|
+
function Nx(e) {
|
|
12345
12345
|
return C.defaultsDeep({}, e, {
|
|
12346
12346
|
heat_block: {
|
|
12347
12347
|
label: {
|
|
@@ -12351,7 +12351,7 @@ function Bx(e) {
|
|
|
12351
12351
|
}
|
|
12352
12352
|
});
|
|
12353
12353
|
}
|
|
12354
|
-
function
|
|
12354
|
+
function Bx(e) {
|
|
12355
12355
|
const {
|
|
12356
12356
|
heat_block: t
|
|
12357
12357
|
} = e;
|
|
@@ -12422,11 +12422,11 @@ class Gx extends Se {
|
|
|
12422
12422
|
})), this.version(3, (n) => ({
|
|
12423
12423
|
...n,
|
|
12424
12424
|
version: 3,
|
|
12425
|
-
config:
|
|
12425
|
+
config: Nx(n.config)
|
|
12426
12426
|
})), this.version(4, (n) => ({
|
|
12427
12427
|
...n,
|
|
12428
12428
|
version: 4,
|
|
12429
|
-
config:
|
|
12429
|
+
config: Bx(n.config)
|
|
12430
12430
|
})), this.version(5, (n) => ({
|
|
12431
12431
|
...n,
|
|
12432
12432
|
version: 5,
|
|
@@ -12649,7 +12649,7 @@ function nv(e, t, n) {
|
|
|
12649
12649
|
} = e;
|
|
12650
12650
|
if (!a.data_key || !i)
|
|
12651
12651
|
return [];
|
|
12652
|
-
const o =
|
|
12652
|
+
const o = B(a.data_key), l = B(i);
|
|
12653
12653
|
if (o.queryID !== l.queryID)
|
|
12654
12654
|
throw new Error("Please use the same query for X & Y axis");
|
|
12655
12655
|
const s = t[o.queryID].map((g) => [g[o.columnKey], Number(g[l.columnKey])]).sort((g, y) => y[1] - g[1]), c = s.reduce((g, y) => g + y[1], 0), d = s.reduce((g, y, b) => {
|
|
@@ -12866,7 +12866,7 @@ function dv({
|
|
|
12866
12866
|
click: g,
|
|
12867
12867
|
finished: b
|
|
12868
12868
|
}), [g, b]);
|
|
12869
|
-
return !s || !o || !l ? null : /* @__PURE__ */ r(nt, { width: o, height: l, children: /* @__PURE__ */ r(He, { echarts:
|
|
12869
|
+
return !s || !o || !l ? null : /* @__PURE__ */ r(nt, { width: o, height: l, children: /* @__PURE__ */ r(He, { echarts: Be, option: c, ref: y, style: Xn(o, l), onEvents: w, notMerge: !0, theme: "merico-light" }) });
|
|
12870
12870
|
}
|
|
12871
12871
|
function uv({
|
|
12872
12872
|
control: e,
|
|
@@ -13150,10 +13150,10 @@ function xv({
|
|
|
13150
13150
|
} = ge({
|
|
13151
13151
|
defaultValues: o
|
|
13152
13152
|
});
|
|
13153
|
-
return
|
|
13153
|
+
return N(() => {
|
|
13154
13154
|
h(o);
|
|
13155
13155
|
}, [o]), c(["x_axis", "data_key", "bar", "line", "dataZoom"]), /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
13156
|
-
/* @__PURE__ */ r(
|
|
13156
|
+
/* @__PURE__ */ r(Ve, { canSubmit: d.isDirty }),
|
|
13157
13157
|
/* @__PURE__ */ u(S, { defaultValue: "X Axis", orientation: "vertical", styles: {
|
|
13158
13158
|
tab: {
|
|
13159
13159
|
paddingLeft: "6px",
|
|
@@ -13181,7 +13181,7 @@ function xv({
|
|
|
13181
13181
|
/* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(bv, { variables: i, control: l, watch: c }) }),
|
|
13182
13182
|
/* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
|
|
13183
13183
|
field: p
|
|
13184
|
-
}) => /* @__PURE__ */ r(
|
|
13184
|
+
}) => /* @__PURE__ */ r(Nr, { ...p }) }) })
|
|
13185
13185
|
] })
|
|
13186
13186
|
] });
|
|
13187
13187
|
}
|
|
@@ -13377,7 +13377,7 @@ function Av(e, t, n) {
|
|
|
13377
13377
|
} = e;
|
|
13378
13378
|
if (!a || !i)
|
|
13379
13379
|
return {};
|
|
13380
|
-
const c =
|
|
13380
|
+
const c = B(a), d = B(i), h = B(l), p = s.map.reduce((b, w) => {
|
|
13381
13381
|
const {
|
|
13382
13382
|
name: I,
|
|
13383
13383
|
color: M
|
|
@@ -13521,7 +13521,7 @@ const rc = {
|
|
|
13521
13521
|
color: {
|
|
13522
13522
|
map: []
|
|
13523
13523
|
},
|
|
13524
|
-
series_order:
|
|
13524
|
+
series_order: Br()
|
|
13525
13525
|
};
|
|
13526
13526
|
function Ov({
|
|
13527
13527
|
conf: e,
|
|
@@ -13549,7 +13549,7 @@ function Ov({
|
|
|
13549
13549
|
click: c,
|
|
13550
13550
|
finished: h
|
|
13551
13551
|
}), [c, h]);
|
|
13552
|
-
return !n || !a || !p.series.name ? null : /* @__PURE__ */ r(He, { echarts:
|
|
13552
|
+
return !n || !a || !p.series.name ? null : /* @__PURE__ */ r(He, { echarts: Be, option: p, ref: d, style: {
|
|
13553
13553
|
width: n,
|
|
13554
13554
|
height: a
|
|
13555
13555
|
}, onEvents: g, notMerge: !0, theme: "merico-light" });
|
|
@@ -13573,17 +13573,17 @@ function Fv(e) {
|
|
|
13573
13573
|
const [t, n] = e;
|
|
13574
13574
|
return [Number(t.replace("%", "")), Number(n.replace("%", ""))];
|
|
13575
13575
|
}
|
|
13576
|
-
function
|
|
13576
|
+
function Nv(e) {
|
|
13577
13577
|
const [t, n] = e;
|
|
13578
13578
|
return [Number.isFinite(t) ? `${t}%` : "", Number.isFinite(n) ? `${n}%` : ""];
|
|
13579
13579
|
}
|
|
13580
|
-
const
|
|
13580
|
+
const Bv = J(({
|
|
13581
13581
|
label: e,
|
|
13582
13582
|
value: t,
|
|
13583
13583
|
onChange: n
|
|
13584
13584
|
}, a) => {
|
|
13585
13585
|
const [i, o] = G(Fv(t)), l = ae((s) => {
|
|
13586
|
-
n(
|
|
13586
|
+
n(Nv(s));
|
|
13587
13587
|
}, [n]);
|
|
13588
13588
|
return /* @__PURE__ */ u(T, { gap: 4, mt: 2, mb: "1rem", children: [
|
|
13589
13589
|
/* @__PURE__ */ r("label", { className: "form-field-label required", children: e }),
|
|
@@ -13774,19 +13774,19 @@ function Kv({
|
|
|
13774
13774
|
} = ge({
|
|
13775
13775
|
defaultValues: i
|
|
13776
13776
|
});
|
|
13777
|
-
|
|
13777
|
+
N(() => {
|
|
13778
13778
|
d(i);
|
|
13779
13779
|
}, [i]);
|
|
13780
13780
|
const [h] = s(["label_field", "value_field", "color_field", "color"]), {
|
|
13781
13781
|
panel: p
|
|
13782
|
-
} =
|
|
13782
|
+
} = Ae(), g = z(() => {
|
|
13783
13783
|
if (!h)
|
|
13784
13784
|
return [];
|
|
13785
13785
|
const y = ht(p.data, h);
|
|
13786
13786
|
return C.uniq(y);
|
|
13787
13787
|
}, [h, p.data]);
|
|
13788
13788
|
return /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: l(t), children: [
|
|
13789
|
-
/* @__PURE__ */ r(
|
|
13789
|
+
/* @__PURE__ */ r(Ve, { canSubmit: c.isDirty }),
|
|
13790
13790
|
/* @__PURE__ */ u(T, { mt: "md", gap: "xs", p: "md", mb: "sm", sx: {
|
|
13791
13791
|
border: "1px solid #eee",
|
|
13792
13792
|
borderRadius: "5px"
|
|
@@ -13802,7 +13802,7 @@ function Kv({
|
|
|
13802
13802
|
}) => /* @__PURE__ */ r(Ks, { label: a("chart.series_order.label"), ...y }) }),
|
|
13803
13803
|
/* @__PURE__ */ r(f, { control: o, name: "radius", render: ({
|
|
13804
13804
|
field: y
|
|
13805
|
-
}) => /* @__PURE__ */ r(
|
|
13805
|
+
}) => /* @__PURE__ */ r(Bv, { label: a("viz.pie_chart.radius.label"), ...y }) }),
|
|
13806
13806
|
/* @__PURE__ */ r(P, { label: a("chart.color.label"), labelPosition: "center", variant: "dashed" }),
|
|
13807
13807
|
/* @__PURE__ */ r(f, { control: o, name: "color_field", render: ({
|
|
13808
13808
|
field: y
|
|
@@ -13927,7 +13927,7 @@ function r1(e) {
|
|
|
13927
13927
|
}
|
|
13928
13928
|
function a1(e) {
|
|
13929
13929
|
const {
|
|
13930
|
-
series_order: t =
|
|
13930
|
+
series_order: t = Br(),
|
|
13931
13931
|
...n
|
|
13932
13932
|
} = e;
|
|
13933
13933
|
return {
|
|
@@ -14055,12 +14055,12 @@ function lc(e, t) {
|
|
|
14055
14055
|
return t.map(({
|
|
14056
14056
|
data_key: n
|
|
14057
14057
|
}) => {
|
|
14058
|
-
const a =
|
|
14058
|
+
const a = B(n);
|
|
14059
14059
|
return e[a.columnKey];
|
|
14060
14060
|
});
|
|
14061
14061
|
}
|
|
14062
14062
|
function c1(e, t, n) {
|
|
14063
|
-
const a =
|
|
14063
|
+
const a = B(t);
|
|
14064
14064
|
return e[a.queryID].map((i) => ({
|
|
14065
14065
|
value: lc(i, n),
|
|
14066
14066
|
name: i[a.columnKey]
|
|
@@ -14096,7 +14096,7 @@ function u1(e, t) {
|
|
|
14096
14096
|
dimensions: a
|
|
14097
14097
|
} = t;
|
|
14098
14098
|
return n.map((o) => {
|
|
14099
|
-
const l =
|
|
14099
|
+
const l = B(o.name_key), s = B(o.color_key);
|
|
14100
14100
|
return {
|
|
14101
14101
|
type: "radar",
|
|
14102
14102
|
colorBy: "data",
|
|
@@ -14231,8 +14231,8 @@ function b1({
|
|
|
14231
14231
|
const {
|
|
14232
14232
|
queryID: b,
|
|
14233
14233
|
columnKey: w
|
|
14234
|
-
} =
|
|
14235
|
-
const X =
|
|
14234
|
+
} = B(e.series_name_key), I = C.keyBy(t[b], w), M = e.additional_series.reduce((R, q) => {
|
|
14235
|
+
const X = B(q.name_key), Q = C.keyBy(t[X.queryID], X.columnKey);
|
|
14236
14236
|
return {
|
|
14237
14237
|
...R,
|
|
14238
14238
|
...Q
|
|
@@ -14260,7 +14260,7 @@ function b1({
|
|
|
14260
14260
|
click: p,
|
|
14261
14261
|
finished: h
|
|
14262
14262
|
}), [p]), y = z(() => f1(Ge({}, e, Qr), t), [e, t]);
|
|
14263
|
-
return !n || !a ? null : /* @__PURE__ */ r(He, { echarts:
|
|
14263
|
+
return !n || !a ? null : /* @__PURE__ */ r(He, { echarts: Be, option: y, ref: d, style: {
|
|
14264
14264
|
width: n,
|
|
14265
14265
|
height: a
|
|
14266
14266
|
}, onEvents: g, notMerge: !0, theme: "merico-light" });
|
|
@@ -14415,10 +14415,10 @@ function S1({
|
|
|
14415
14415
|
defaultValues: i,
|
|
14416
14416
|
mode: "all"
|
|
14417
14417
|
});
|
|
14418
|
-
return
|
|
14418
|
+
return N(() => {
|
|
14419
14419
|
c(i);
|
|
14420
14420
|
}, [i]), s(["series_name_key", "background", "label"]), /* @__PURE__ */ r("form", { onSubmit: l(a), children: /* @__PURE__ */ u(T, { gap: "xs", children: [
|
|
14421
|
-
/* @__PURE__ */ r(
|
|
14421
|
+
/* @__PURE__ */ r(Ve, { canSubmit: d.isDirty && d.isValid }),
|
|
14422
14422
|
/* @__PURE__ */ u(S, { defaultValue: "series", children: [
|
|
14423
14423
|
/* @__PURE__ */ u(S.List, { children: [
|
|
14424
14424
|
/* @__PURE__ */ r(S.Tab, { value: "series", children: t("chart.series.label") }),
|
|
@@ -14695,7 +14695,7 @@ function P1(e, t) {
|
|
|
14695
14695
|
}));
|
|
14696
14696
|
}
|
|
14697
14697
|
function sc(e, t) {
|
|
14698
|
-
const n =
|
|
14698
|
+
const n = B(e.x_axis.data_key), a = B(e.regression.y_axis_data_key);
|
|
14699
14699
|
return C.uniqBy(t.map((i) => [i[n.columnKey], i[a.columnKey]]), 0);
|
|
14700
14700
|
}
|
|
14701
14701
|
function R1(e, t) {
|
|
@@ -14724,7 +14724,7 @@ function E1(e, t) {
|
|
|
14724
14724
|
plot: n,
|
|
14725
14725
|
transform: a,
|
|
14726
14726
|
group_by_key: i
|
|
14727
|
-
} = e.regression, o =
|
|
14727
|
+
} = e.regression, o = B(i), l = C.groupBy(t, o.columnKey);
|
|
14728
14728
|
return Object.entries(l).map(([s, c]) => {
|
|
14729
14729
|
const d = sc(e, c);
|
|
14730
14730
|
return {
|
|
@@ -14793,7 +14793,7 @@ function F1(e) {
|
|
|
14793
14793
|
}
|
|
14794
14794
|
});
|
|
14795
14795
|
}
|
|
14796
|
-
function
|
|
14796
|
+
function N1(e) {
|
|
14797
14797
|
const {
|
|
14798
14798
|
overflow: t,
|
|
14799
14799
|
format: n,
|
|
@@ -14819,7 +14819,7 @@ function B1(e) {
|
|
|
14819
14819
|
}
|
|
14820
14820
|
});
|
|
14821
14821
|
}
|
|
14822
|
-
const
|
|
14822
|
+
const B1 = {
|
|
14823
14823
|
tooltip: {
|
|
14824
14824
|
trigger: "axis"
|
|
14825
14825
|
},
|
|
@@ -14840,7 +14840,7 @@ const N1 = {
|
|
|
14840
14840
|
};
|
|
14841
14841
|
function j1(e, t) {
|
|
14842
14842
|
const n = O1(e, t), a = P1(e, n), i = {
|
|
14843
|
-
xAxis:
|
|
14843
|
+
xAxis: N1(e),
|
|
14844
14844
|
yAxis: pe.getYAxis({
|
|
14845
14845
|
name: e.y_axis.name ?? "",
|
|
14846
14846
|
nameLocation: "end",
|
|
@@ -14864,7 +14864,7 @@ function j1(e, t) {
|
|
|
14864
14864
|
data: n.map((o) => o.name)
|
|
14865
14865
|
}
|
|
14866
14866
|
};
|
|
14867
|
-
return Ge({}, i,
|
|
14867
|
+
return Ge({}, i, B1);
|
|
14868
14868
|
}
|
|
14869
14869
|
const ho = {
|
|
14870
14870
|
output: "number",
|
|
@@ -14974,7 +14974,7 @@ function po(e, t, n) {
|
|
|
14974
14974
|
const {
|
|
14975
14975
|
regression: a,
|
|
14976
14976
|
x_axis: i
|
|
14977
|
-
} = n, o =
|
|
14977
|
+
} = n, o = B(i.data_key), l = B(a.y_axis_data_key), s = t.map((c) => [c[o.columnKey], c[l.columnKey]]);
|
|
14978
14978
|
return a.transform.config.method === "linear" ? Q1(e, t, s, n) : a.transform.config.method === "exponential" ? G1(e, t, s, n) : a.transform.config.method === "logistic" ? H1(e, t, s, n) : a.transform.config.method === "polynomial" ? W1(e, t, s, n) : {
|
|
14979
14979
|
name: e,
|
|
14980
14980
|
expression: "",
|
|
@@ -14992,7 +14992,7 @@ function U1(e, t) {
|
|
|
14992
14992
|
}];
|
|
14993
14993
|
if (!t.regression.group_by_key)
|
|
14994
14994
|
return [po("", e, t)];
|
|
14995
|
-
const n =
|
|
14995
|
+
const n = B(t.regression.group_by_key), a = C.groupBy(e, n.columnKey);
|
|
14996
14996
|
return Object.entries(a).map(([i, o]) => po(i, o, t));
|
|
14997
14997
|
}
|
|
14998
14998
|
const K1 = {
|
|
@@ -15122,7 +15122,7 @@ function J1({
|
|
|
15122
15122
|
const p = e.data, g = n == null ? void 0 : n.x_axis.data_key, y = (I = n == null ? void 0 : n.regression) == null ? void 0 : I.y_axis_data_key;
|
|
15123
15123
|
if (!g || !y)
|
|
15124
15124
|
return [];
|
|
15125
|
-
const b =
|
|
15125
|
+
const b = B(g), w = B(y);
|
|
15126
15126
|
return p[b.queryID].map((M) => typeof M[w.columnKey] == "number" ? M : {
|
|
15127
15127
|
...M,
|
|
15128
15128
|
[w.columnKey]: Number(M[w.columnKey])
|
|
@@ -15137,7 +15137,7 @@ function J1({
|
|
|
15137
15137
|
}), [d]);
|
|
15138
15138
|
return !a || !i || !n ? null : /* @__PURE__ */ u(nt, { width: a, height: i, children: [
|
|
15139
15139
|
/* @__PURE__ */ r(Z1, { conf: n, queryData: o }),
|
|
15140
|
-
/* @__PURE__ */ r(He, { echarts:
|
|
15140
|
+
/* @__PURE__ */ r(He, { echarts: Be, onChartReady: c, option: l, onEvents: h, style: Xn(a, i), notMerge: !0, theme: "merico-light" })
|
|
15141
15141
|
] });
|
|
15142
15142
|
}
|
|
15143
15143
|
function e0({
|
|
@@ -15265,10 +15265,10 @@ function r0({
|
|
|
15265
15265
|
} = ge({
|
|
15266
15266
|
defaultValues: a
|
|
15267
15267
|
});
|
|
15268
|
-
return
|
|
15268
|
+
return N(() => {
|
|
15269
15269
|
c(a);
|
|
15270
15270
|
}, [a]), l(["x_axis", "y_axis", "regression"]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
15271
|
-
/* @__PURE__ */ r(
|
|
15271
|
+
/* @__PURE__ */ r(Ve, { canSubmit: s.isDirty }),
|
|
15272
15272
|
/* @__PURE__ */ u(S, { defaultValue: "X轴", orientation: "vertical", styles: {
|
|
15273
15273
|
panel: {
|
|
15274
15274
|
paddingTop: "6px",
|
|
@@ -15420,7 +15420,7 @@ const d0 = {
|
|
|
15420
15420
|
}) => {
|
|
15421
15421
|
const {
|
|
15422
15422
|
panel: t
|
|
15423
|
-
} =
|
|
15423
|
+
} = Ae(), {
|
|
15424
15424
|
t: n
|
|
15425
15425
|
} = x(), {
|
|
15426
15426
|
value: a,
|
|
@@ -15433,7 +15433,7 @@ const d0 = {
|
|
|
15433
15433
|
} = ge({
|
|
15434
15434
|
defaultValues: o
|
|
15435
15435
|
});
|
|
15436
|
-
c("content"),
|
|
15436
|
+
c("content"), N(() => {
|
|
15437
15437
|
d(o);
|
|
15438
15438
|
}, [o]);
|
|
15439
15439
|
const h = Vt(null), p = () => {
|
|
@@ -15870,7 +15870,7 @@ function L0(e) {
|
|
|
15870
15870
|
function A0(e, t) {
|
|
15871
15871
|
if (!e.x_axis.data_key)
|
|
15872
15872
|
return [];
|
|
15873
|
-
const n =
|
|
15873
|
+
const n = B(e.x_axis.data_key);
|
|
15874
15874
|
return [{
|
|
15875
15875
|
source: t[n.queryID]
|
|
15876
15876
|
}];
|
|
@@ -16016,7 +16016,7 @@ function q0({
|
|
|
16016
16016
|
x_axis: e,
|
|
16017
16017
|
scatter: t
|
|
16018
16018
|
}, n) {
|
|
16019
|
-
const a =
|
|
16019
|
+
const a = B(e.data_key), i = B(t.y_data_key), o = B(t.name_data_key);
|
|
16020
16020
|
return {
|
|
16021
16021
|
label: {
|
|
16022
16022
|
show: !!t.label_position,
|
|
@@ -16053,7 +16053,7 @@ function go(e, t, n) {
|
|
|
16053
16053
|
} = n;
|
|
16054
16054
|
return a.axisLabel.formatter.enabled ? Je(a.axisLabel.formatter)(e, t) : e;
|
|
16055
16055
|
}
|
|
16056
|
-
function
|
|
16056
|
+
function N0(e, t) {
|
|
16057
16057
|
const {
|
|
16058
16058
|
x_axis: n,
|
|
16059
16059
|
tooltip: a
|
|
@@ -16071,7 +16071,7 @@ function B0(e, t) {
|
|
|
16071
16071
|
} = i;
|
|
16072
16072
|
return go(o, l, t);
|
|
16073
16073
|
}
|
|
16074
|
-
const
|
|
16074
|
+
const B0 = (e) => se(e, {
|
|
16075
16075
|
output: "number",
|
|
16076
16076
|
trimMantissa: !0,
|
|
16077
16077
|
mantissa: 2,
|
|
@@ -16088,7 +16088,7 @@ function j0(e, t) {
|
|
|
16088
16088
|
const o = t[0] ?? t.default, l = Array.isArray(i) ? i : [i];
|
|
16089
16089
|
if (l.length === 0)
|
|
16090
16090
|
return "";
|
|
16091
|
-
const s =
|
|
16091
|
+
const s = N0(l, e), c = pt(e.scatter.label_overflow.tooltip), d = l.map(
|
|
16092
16092
|
// @ts-expect-error type of value
|
|
16093
16093
|
({
|
|
16094
16094
|
value: b
|
|
@@ -16114,7 +16114,7 @@ function j0(e, t) {
|
|
|
16114
16114
|
<th style="text-align: right;">${b.name}</th>
|
|
16115
16115
|
${l.map(({
|
|
16116
16116
|
value: w
|
|
16117
|
-
}) => `<td style="text-align: right; padding: 0 1em;">${
|
|
16117
|
+
}) => `<td style="text-align: right; padding: 0 1em;">${B0(or(w, b.data_key))}</td>`).join("")}
|
|
16118
16118
|
</tr>`);
|
|
16119
16119
|
return p.push(...g), `
|
|
16120
16120
|
<table style="width: auto">
|
|
@@ -16255,7 +16255,7 @@ function U0({
|
|
|
16255
16255
|
click: d,
|
|
16256
16256
|
finished: p
|
|
16257
16257
|
}), [d, p]), y = $.useMemo(() => W0(e, t, o), [e, t]);
|
|
16258
|
-
return /* @__PURE__ */ r(He, { echarts:
|
|
16258
|
+
return /* @__PURE__ */ r(He, { echarts: Be, option: y, ref: h, style: {
|
|
16259
16259
|
width: n,
|
|
16260
16260
|
height: a
|
|
16261
16261
|
}, onEvents: g, notMerge: !0, theme: "merico-light" });
|
|
@@ -16648,7 +16648,7 @@ const sw = D(({
|
|
|
16648
16648
|
}) => {
|
|
16649
16649
|
const {
|
|
16650
16650
|
panel: n
|
|
16651
|
-
} =
|
|
16651
|
+
} = Ae(), {
|
|
16652
16652
|
t: a
|
|
16653
16653
|
} = x();
|
|
16654
16654
|
return /* @__PURE__ */ u(T, { children: [
|
|
@@ -16871,10 +16871,10 @@ function gw({
|
|
|
16871
16871
|
} = ge({
|
|
16872
16872
|
defaultValues: o
|
|
16873
16873
|
});
|
|
16874
|
-
return
|
|
16874
|
+
return N(() => {
|
|
16875
16875
|
d(o);
|
|
16876
16876
|
}, [o]), c(["dataZoom"]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(t), children: [
|
|
16877
|
-
/* @__PURE__ */ r(
|
|
16877
|
+
/* @__PURE__ */ r(Ve, { canSubmit: h.isDirty }),
|
|
16878
16878
|
/* @__PURE__ */ u(S, { defaultValue: "X Axis", orientation: "vertical", styles: {
|
|
16879
16879
|
tab: {
|
|
16880
16880
|
paddingLeft: "6px",
|
|
@@ -16904,7 +16904,7 @@ function gw({
|
|
|
16904
16904
|
/* @__PURE__ */ r(S.Panel, { value: "Reference Areas", children: /* @__PURE__ */ r(Z0, { variables: i, control: l, watch: c }) }),
|
|
16905
16905
|
/* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
|
|
16906
16906
|
field: p
|
|
16907
|
-
}) => /* @__PURE__ */ r(
|
|
16907
|
+
}) => /* @__PURE__ */ r(Nr, { ...p }) }) })
|
|
16908
16908
|
] })
|
|
16909
16909
|
] }) });
|
|
16910
16910
|
}
|
|
@@ -17126,7 +17126,7 @@ const Lw = D(({
|
|
|
17126
17126
|
});
|
|
17127
17127
|
});
|
|
17128
17128
|
}, [l.variableValueMap, i, a]);
|
|
17129
|
-
return
|
|
17129
|
+
return N(() => {
|
|
17130
17130
|
if (!n.current)
|
|
17131
17131
|
return;
|
|
17132
17132
|
const b = n.current.querySelector(".ProseMirror");
|
|
@@ -17180,7 +17180,7 @@ const Lw = D(({
|
|
|
17180
17180
|
}) => {
|
|
17181
17181
|
const {
|
|
17182
17182
|
panel: n
|
|
17183
|
-
} =
|
|
17183
|
+
} = Ae(), {
|
|
17184
17184
|
t: a
|
|
17185
17185
|
} = x(), i = $.useMemo(() => he({}, e), [e]), {
|
|
17186
17186
|
control: o,
|
|
@@ -17194,7 +17194,7 @@ const Lw = D(({
|
|
|
17194
17194
|
return $.useEffect(() => {
|
|
17195
17195
|
d(i);
|
|
17196
17196
|
}, [i]), s(["content", "vertical_align"]), /* @__PURE__ */ r("form", { onSubmit: l(t), children: /* @__PURE__ */ u(T, { gap: "xs", children: [
|
|
17197
|
-
/* @__PURE__ */ r(
|
|
17197
|
+
/* @__PURE__ */ r(Ve, { canSubmit: c.isDirty }),
|
|
17198
17198
|
/* @__PURE__ */ r(f, { control: o, name: "vertical_align", render: ({
|
|
17199
17199
|
field: h
|
|
17200
17200
|
}) => /* @__PURE__ */ r(Gs, { ...h }) }),
|
|
@@ -17279,7 +17279,7 @@ function Fw(e) {
|
|
|
17279
17279
|
n[i.parent_id].children.push(i);
|
|
17280
17280
|
}), a;
|
|
17281
17281
|
}
|
|
17282
|
-
function
|
|
17282
|
+
function Nw(e, t) {
|
|
17283
17283
|
const {
|
|
17284
17284
|
label_key: n,
|
|
17285
17285
|
value_key: a,
|
|
@@ -17287,7 +17287,7 @@ function Bw(e, t) {
|
|
|
17287
17287
|
} = e;
|
|
17288
17288
|
if (!n || !a)
|
|
17289
17289
|
return [];
|
|
17290
|
-
const o =
|
|
17290
|
+
const o = B(n), l = B(a), s = B(i), c = t[o.queryID].map((d) => ({
|
|
17291
17291
|
...d,
|
|
17292
17292
|
id: d[o.columnKey],
|
|
17293
17293
|
parent_id: d[s.columnKey],
|
|
@@ -17296,7 +17296,7 @@ function Bw(e, t) {
|
|
|
17296
17296
|
}));
|
|
17297
17297
|
return i ? Fw(c) : c;
|
|
17298
17298
|
}
|
|
17299
|
-
const
|
|
17299
|
+
const Bw = (e) => ({
|
|
17300
17300
|
treePathInfo: t,
|
|
17301
17301
|
name: n,
|
|
17302
17302
|
value: a
|
|
@@ -17324,7 +17324,7 @@ function jw(e) {
|
|
|
17324
17324
|
...n,
|
|
17325
17325
|
label: {
|
|
17326
17326
|
...i,
|
|
17327
|
-
formatter:
|
|
17327
|
+
formatter: Bw(a)
|
|
17328
17328
|
}
|
|
17329
17329
|
};
|
|
17330
17330
|
});
|
|
@@ -17395,7 +17395,7 @@ function Ww(e, t, n) {
|
|
|
17395
17395
|
}, {});
|
|
17396
17396
|
const i = {
|
|
17397
17397
|
series: {
|
|
17398
|
-
data:
|
|
17398
|
+
data: Nw(e, t),
|
|
17399
17399
|
levels: jw(e)
|
|
17400
17400
|
},
|
|
17401
17401
|
tooltip: Gw()
|
|
@@ -17420,7 +17420,7 @@ function Uw({
|
|
|
17420
17420
|
}, [t]), h = z(() => ({
|
|
17421
17421
|
finished: d
|
|
17422
17422
|
}), [d]), p = z(() => Ww(i, o, n), [i, o, n]);
|
|
17423
|
-
return !l || !s ? null : /* @__PURE__ */ r(nt, { width: l, height: s, children: /* @__PURE__ */ r(He, { echarts:
|
|
17423
|
+
return !l || !s ? null : /* @__PURE__ */ r(nt, { width: l, height: s, children: /* @__PURE__ */ r(He, { echarts: Be, option: p, ref: c, onEvents: h, style: Xn(l, s), notMerge: !0, theme: "merico-light" }) });
|
|
17424
17424
|
}
|
|
17425
17425
|
function Kw({
|
|
17426
17426
|
control: e,
|
|
@@ -17540,12 +17540,12 @@ function Zw({
|
|
|
17540
17540
|
} = ge({
|
|
17541
17541
|
defaultValues: o
|
|
17542
17542
|
});
|
|
17543
|
-
|
|
17543
|
+
N(() => {
|
|
17544
17544
|
h(o);
|
|
17545
17545
|
}, [o]), c(["label_key", "value_key", "group_key", "levels"]);
|
|
17546
17546
|
const [p, g] = G("Data");
|
|
17547
17547
|
return /* @__PURE__ */ r("form", { onSubmit: s(a), children: /* @__PURE__ */ u(T, { gap: "xs", children: [
|
|
17548
|
-
/* @__PURE__ */ r(
|
|
17548
|
+
/* @__PURE__ */ r(Ve, { canSubmit: d.isDirty }),
|
|
17549
17549
|
/* @__PURE__ */ u(S, { value: p, onChange: g, orientation: "vertical", styles: {
|
|
17550
17550
|
tab: {
|
|
17551
17551
|
paddingLeft: "6px",
|
|
@@ -18201,7 +18201,7 @@ function bo({
|
|
|
18201
18201
|
onSortingChange: M,
|
|
18202
18202
|
columns: w,
|
|
18203
18203
|
columnResizeMode: "onChange",
|
|
18204
|
-
getCoreRowModel:
|
|
18204
|
+
getCoreRowModel: Na(),
|
|
18205
18205
|
getSortedRowModel: zp()
|
|
18206
18206
|
}), {
|
|
18207
18207
|
rows: q
|
|
@@ -18291,7 +18291,7 @@ const MS = D(J(({
|
|
|
18291
18291
|
}, c) => {
|
|
18292
18292
|
const {
|
|
18293
18293
|
panel: d
|
|
18294
|
-
} =
|
|
18294
|
+
} = Ae(), h = $.useMemo(() => d.queryOptions(a, o), [a, o]);
|
|
18295
18295
|
return h.length === 0 ? /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: a, readOnly: !0, disabled: !0 }) }) : /* @__PURE__ */ r(O, { ref: c, label: e, description: n, data: h, value: a, onChange: xe(i), required: t, sx: l, maxDropdownHeight: 500, ...s });
|
|
18296
18296
|
})), LS = [{
|
|
18297
18297
|
from: 0,
|
|
@@ -18362,7 +18362,7 @@ const $S = J((e, t) => {
|
|
|
18362
18362
|
}, p = () => {
|
|
18363
18363
|
c(pc);
|
|
18364
18364
|
};
|
|
18365
|
-
return
|
|
18365
|
+
return N(() => {
|
|
18366
18366
|
c(e);
|
|
18367
18367
|
}, [e]), /* @__PURE__ */ u(F, { children: [
|
|
18368
18368
|
/* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(Wt, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
@@ -18525,7 +18525,7 @@ function FS({
|
|
|
18525
18525
|
}))
|
|
18526
18526
|
};
|
|
18527
18527
|
}
|
|
18528
|
-
function
|
|
18528
|
+
function NS({
|
|
18529
18529
|
context: e
|
|
18530
18530
|
}) {
|
|
18531
18531
|
const {
|
|
@@ -18534,7 +18534,7 @@ function BS({
|
|
|
18534
18534
|
value: n,
|
|
18535
18535
|
set: a
|
|
18536
18536
|
} = Y(e.instanceData, "config"), i = z(() => Ge({}, n, mc), [n]), o = z(() => FS(i), [i]);
|
|
18537
|
-
|
|
18537
|
+
N(() => {
|
|
18538
18538
|
!Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
18539
18539
|
}, [i, o]);
|
|
18540
18540
|
const {
|
|
@@ -18546,10 +18546,10 @@ function BS({
|
|
|
18546
18546
|
} = ge({
|
|
18547
18547
|
defaultValues: o
|
|
18548
18548
|
});
|
|
18549
|
-
return
|
|
18549
|
+
return N(() => {
|
|
18550
18550
|
h(o);
|
|
18551
18551
|
}, [o]), c(["query_id"]), /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
18552
|
-
/* @__PURE__ */ r(
|
|
18552
|
+
/* @__PURE__ */ r(Ve, { canSubmit: d.isDirty }),
|
|
18553
18553
|
/* @__PURE__ */ u(S, { defaultValue: "Columns", orientation: "vertical", styles: {
|
|
18554
18554
|
tab: {
|
|
18555
18555
|
paddingLeft: "6px",
|
|
@@ -18575,7 +18575,7 @@ function BS({
|
|
|
18575
18575
|
] })
|
|
18576
18576
|
] });
|
|
18577
18577
|
}
|
|
18578
|
-
const
|
|
18578
|
+
const BS = {
|
|
18579
18579
|
table: {
|
|
18580
18580
|
viz_name: "Table",
|
|
18581
18581
|
column: {
|
|
@@ -18665,7 +18665,7 @@ const NS = {
|
|
|
18665
18665
|
}
|
|
18666
18666
|
}, QS = [{
|
|
18667
18667
|
lang: "en",
|
|
18668
|
-
resources:
|
|
18668
|
+
resources: BS
|
|
18669
18669
|
}, {
|
|
18670
18670
|
lang: "zh",
|
|
18671
18671
|
resources: jS
|
|
@@ -18728,7 +18728,7 @@ function US(e) {
|
|
|
18728
18728
|
...n
|
|
18729
18729
|
} = e, {
|
|
18730
18730
|
queryID: a
|
|
18731
|
-
} =
|
|
18731
|
+
} = B(t);
|
|
18732
18732
|
return {
|
|
18733
18733
|
...n,
|
|
18734
18734
|
query_id: a ?? ""
|
|
@@ -18807,7 +18807,7 @@ const pa = {
|
|
|
18807
18807
|
migrator: new YS(),
|
|
18808
18808
|
name: "table",
|
|
18809
18809
|
viewRender: IS,
|
|
18810
|
-
configRender:
|
|
18810
|
+
configRender: NS,
|
|
18811
18811
|
triggers: [xi],
|
|
18812
18812
|
translation: QS
|
|
18813
18813
|
}, vc = ["function text({ data, variables, filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
|
|
@@ -18898,7 +18898,7 @@ const JS = $.forwardRef(ZS), eC = ({
|
|
|
18898
18898
|
}, p = () => {
|
|
18899
18899
|
c(vc);
|
|
18900
18900
|
};
|
|
18901
|
-
return
|
|
18901
|
+
return N(() => {
|
|
18902
18902
|
c(e);
|
|
18903
18903
|
}, [e]), /* @__PURE__ */ u(F, { children: [
|
|
18904
18904
|
/* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(Wt, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
@@ -18938,7 +18938,7 @@ function nC({
|
|
|
18938
18938
|
font_weight: b
|
|
18939
18939
|
};
|
|
18940
18940
|
}, [i]);
|
|
18941
|
-
|
|
18941
|
+
N(() => {
|
|
18942
18942
|
!Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
18943
18943
|
}, [i, o]);
|
|
18944
18944
|
const {
|
|
@@ -18953,7 +18953,7 @@ function nC({
|
|
|
18953
18953
|
return $.useEffect(() => {
|
|
18954
18954
|
h(o);
|
|
18955
18955
|
}, [o]), c(["func_content", "horizontal_align", "font_size", "font_weight"]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
18956
|
-
/* @__PURE__ */ r(
|
|
18956
|
+
/* @__PURE__ */ r(Ve, { canSubmit: d.isDirty }),
|
|
18957
18957
|
/* @__PURE__ */ u(T, { gap: 10, children: [
|
|
18958
18958
|
/* @__PURE__ */ r(f, { name: "func_content", control: l, render: ({
|
|
18959
18959
|
field: p
|
|
@@ -19151,7 +19151,7 @@ function pC({
|
|
|
19151
19151
|
} = ge({
|
|
19152
19152
|
defaultValues: a
|
|
19153
19153
|
});
|
|
19154
|
-
return
|
|
19154
|
+
return N(() => {
|
|
19155
19155
|
c(a);
|
|
19156
19156
|
}, [a]), l(["expertSystemURL", "goal", "path", "question"]), /* @__PURE__ */ r("form", { onSubmit: o(n), children: /* @__PURE__ */ u(T, { children: [
|
|
19157
19157
|
/* @__PURE__ */ u(_, { grow: !0, children: [
|
|
@@ -19480,7 +19480,7 @@ function VC({
|
|
|
19480
19480
|
}
|
|
19481
19481
|
}], d = n[o];
|
|
19482
19482
|
return d && e.tooltip.metrics.forEach((h) => {
|
|
19483
|
-
const p =
|
|
19483
|
+
const p = B(h.data_key);
|
|
19484
19484
|
c.push({
|
|
19485
19485
|
label: h.name,
|
|
19486
19486
|
value: AC(C.get(d, p.columnKey, "")),
|
|
@@ -19492,7 +19492,7 @@ function VC({
|
|
|
19492
19492
|
}), c;
|
|
19493
19493
|
}
|
|
19494
19494
|
function $C(e, t, n) {
|
|
19495
|
-
const a =
|
|
19495
|
+
const a = B(e.calendar.data_key), i = C.keyBy(t[a.queryID], a.columnKey);
|
|
19496
19496
|
return pe.getTooltip({
|
|
19497
19497
|
formatter: function(o) {
|
|
19498
19498
|
const s = VC({
|
|
@@ -19549,7 +19549,7 @@ function EC(e, t, n) {
|
|
|
19549
19549
|
}, {}), i = Rr(e.visualMap, a), {
|
|
19550
19550
|
min: o,
|
|
19551
19551
|
max: l
|
|
19552
|
-
} = i, s = IC(e), c =
|
|
19552
|
+
} = i, s = IC(e), c = B(e.calendar.data_key), d = B(e.heat_block.data_key), h = t[c.queryID].map((M) => {
|
|
19553
19553
|
const R = C.get(M, c.columnKey), q = C.get(M, d.columnKey), X = PC(M[c.columnKey]), Q = {
|
|
19554
19554
|
value: [R, q, X]
|
|
19555
19555
|
}, {
|
|
@@ -19617,7 +19617,7 @@ function qC({
|
|
|
19617
19617
|
legendselectchanged: OC,
|
|
19618
19618
|
finished: p
|
|
19619
19619
|
}), [d, p]), y = $.useMemo(() => EC(e, t, o), [e, t]);
|
|
19620
|
-
return /* @__PURE__ */ r(He, { echarts:
|
|
19620
|
+
return /* @__PURE__ */ r(He, { echarts: Be, option: y, ref: h, style: {
|
|
19621
19621
|
width: n,
|
|
19622
19622
|
height: a
|
|
19623
19623
|
}, onEvents: g, notMerge: !0, opts: {
|
|
@@ -19641,14 +19641,14 @@ function FC({
|
|
|
19641
19641
|
} = e.viewport;
|
|
19642
19642
|
return !o.calendar.data_key || !o.heat_block.data_key || !s || !c ? null : /* @__PURE__ */ r(nt, { width: s, height: c, children: /* @__PURE__ */ r(qC, { instance: t, variables: i, width: St(s), height: Ct(c), data: l, conf: o, interactionManager: n }) });
|
|
19643
19643
|
}
|
|
19644
|
-
const
|
|
19644
|
+
const NC = [{
|
|
19645
19645
|
label: "中文",
|
|
19646
19646
|
value: "ZH"
|
|
19647
19647
|
}, {
|
|
19648
19648
|
label: "English",
|
|
19649
19649
|
value: "EN"
|
|
19650
19650
|
}];
|
|
19651
|
-
function
|
|
19651
|
+
function BC({
|
|
19652
19652
|
control: e,
|
|
19653
19653
|
watch: t
|
|
19654
19654
|
}) {
|
|
@@ -19663,7 +19663,7 @@ function NC({
|
|
|
19663
19663
|
}, ...a }) }) }),
|
|
19664
19664
|
/* @__PURE__ */ r(f, { name: "calendar.locale", control: e, render: ({
|
|
19665
19665
|
field: a
|
|
19666
|
-
}) => /* @__PURE__ */ r(O, { label: n("viz.calendar_heatmap.calendar.locale"), data:
|
|
19666
|
+
}) => /* @__PURE__ */ r(O, { label: n("viz.calendar_heatmap.calendar.locale"), data: NC, sx: {
|
|
19667
19667
|
flex: 1
|
|
19668
19668
|
}, ...a }) })
|
|
19669
19669
|
] });
|
|
@@ -19757,7 +19757,7 @@ function WC({
|
|
|
19757
19757
|
value: n,
|
|
19758
19758
|
set: a
|
|
19759
19759
|
} = Y(e.instanceData, "config"), i = z(() => n ? he({}, n) : Si, [n]), o = z(() => C.cloneDeep(i), [i]);
|
|
19760
|
-
|
|
19760
|
+
N(() => {
|
|
19761
19761
|
!Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
19762
19762
|
}, [i, o]);
|
|
19763
19763
|
const l = ge({
|
|
@@ -19769,10 +19769,10 @@ function WC({
|
|
|
19769
19769
|
formState: h,
|
|
19770
19770
|
reset: p
|
|
19771
19771
|
} = l;
|
|
19772
|
-
return
|
|
19772
|
+
return N(() => {
|
|
19773
19773
|
p(o);
|
|
19774
19774
|
}, [o]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: c(a), children: [
|
|
19775
|
-
/* @__PURE__ */ r(
|
|
19775
|
+
/* @__PURE__ */ r(Ve, { canSubmit: h.isDirty }),
|
|
19776
19776
|
/* @__PURE__ */ u(S, { defaultValue: "Calendar", orientation: "vertical", styles: {
|
|
19777
19777
|
tab: {
|
|
19778
19778
|
paddingLeft: "6px",
|
|
@@ -19789,7 +19789,7 @@ function WC({
|
|
|
19789
19789
|
/* @__PURE__ */ r(S.Tab, { value: "Visual Map", children: t("chart.visual_map.label") }),
|
|
19790
19790
|
/* @__PURE__ */ r(S.Tab, { value: "Tooltip", children: t("chart.tooltip.label") })
|
|
19791
19791
|
] }),
|
|
19792
|
-
/* @__PURE__ */ r(S.Panel, { value: "Calendar", children: /* @__PURE__ */ r(
|
|
19792
|
+
/* @__PURE__ */ r(S.Panel, { value: "Calendar", children: /* @__PURE__ */ r(BC, { control: s, watch: d }) }),
|
|
19793
19793
|
/* @__PURE__ */ r(S.Panel, { value: "Heat Block", children: /* @__PURE__ */ r(jC, { control: s, watch: d }) }),
|
|
19794
19794
|
/* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(gi, { form: l }) }),
|
|
19795
19795
|
/* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(HC, { control: s, watch: d }) })
|
|
@@ -20023,7 +20023,7 @@ function o2({
|
|
|
20023
20023
|
const {
|
|
20024
20024
|
queryID: i,
|
|
20025
20025
|
columnKey: o
|
|
20026
|
-
} =
|
|
20026
|
+
} = B(e), l = C.groupBy(t[i], o);
|
|
20027
20027
|
return Object.entries(l).forEach(([s, c]) => {
|
|
20028
20028
|
l[s] = Wr({
|
|
20029
20029
|
[i]: c
|
|
@@ -20221,7 +20221,7 @@ function m2(e, t) {
|
|
|
20221
20221
|
function g2(e, t, n) {
|
|
20222
20222
|
if (!e.y_axis.data_key)
|
|
20223
20223
|
return {};
|
|
20224
|
-
const a = h2(t, n), i = u2(e), o =
|
|
20224
|
+
const a = h2(t, n), i = u2(e), o = B(e.y_axis.data_key), l = C.uniq(t[o.queryID].map((h) => h[o.columnKey])), s = l.every((h) => !Number.isNaN(Number(h))), c = s2(e, l, s, t, i, n, a);
|
|
20225
20225
|
return {
|
|
20226
20226
|
xAxis: p2(e, i),
|
|
20227
20227
|
yAxis: m2(e, l),
|
|
@@ -20258,7 +20258,7 @@ function f2({
|
|
|
20258
20258
|
click: d,
|
|
20259
20259
|
finished: p
|
|
20260
20260
|
}), [d]), y = $.useMemo(() => g2(e, t, o), [e, t]);
|
|
20261
|
-
return /* @__PURE__ */ r(He, { echarts:
|
|
20261
|
+
return /* @__PURE__ */ r(He, { echarts: Be, option: y, ref: h, style: {
|
|
20262
20262
|
width: n,
|
|
20263
20263
|
height: a
|
|
20264
20264
|
}, onEvents: g, notMerge: !0, theme: "merico-light" });
|
|
@@ -20622,10 +20622,10 @@ function T2({
|
|
|
20622
20622
|
} = ge({
|
|
20623
20623
|
defaultValues: o
|
|
20624
20624
|
});
|
|
20625
|
-
return
|
|
20625
|
+
return N(() => {
|
|
20626
20626
|
h(o);
|
|
20627
20627
|
}, [o]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
20628
|
-
/* @__PURE__ */ r(
|
|
20628
|
+
/* @__PURE__ */ r(Ve, { canSubmit: d.isDirty }),
|
|
20629
20629
|
/* @__PURE__ */ u(S, { defaultValue: "Series", orientation: "vertical", styles: {
|
|
20630
20630
|
tab: {
|
|
20631
20631
|
paddingLeft: "6px",
|
|
@@ -21054,7 +21054,7 @@ function q2(e, t, n, a) {
|
|
|
21054
21054
|
}));
|
|
21055
21055
|
}
|
|
21056
21056
|
function F2(e, t, n, a) {
|
|
21057
|
-
const i =
|
|
21057
|
+
const i = B(t.data_key), o = t.name, l = n.map((s) => {
|
|
21058
21058
|
const c = C.sumBy(a[s], i.columnKey);
|
|
21059
21059
|
return [s, c];
|
|
21060
21060
|
});
|
|
@@ -21068,14 +21068,14 @@ function F2(e, t, n, a) {
|
|
|
21068
21068
|
show_in_legend: !1
|
|
21069
21069
|
};
|
|
21070
21070
|
}
|
|
21071
|
-
function
|
|
21071
|
+
function N2(e, t, n, a) {
|
|
21072
21072
|
const l = {
|
|
21073
21073
|
barMinWidth: 5,
|
|
21074
21074
|
barMaxWidth: 20
|
|
21075
21075
|
};
|
|
21076
21076
|
return [P2(e, n, a), E2(e, n, a, l), ...q2(e, n, a, l), F2(e, t, n, a)];
|
|
21077
21077
|
}
|
|
21078
|
-
function
|
|
21078
|
+
function B2(e, t) {
|
|
21079
21079
|
const {
|
|
21080
21080
|
axisLabel: n
|
|
21081
21081
|
} = e.x_axis;
|
|
@@ -21259,7 +21259,7 @@ function G2(e, t) {
|
|
|
21259
21259
|
const {
|
|
21260
21260
|
x_axis: n,
|
|
21261
21261
|
deviation: a
|
|
21262
|
-
} = e, i =
|
|
21262
|
+
} = e, i = B(n.data_key), o = B(a.data_keys.estimated_value), l = B(a.data_keys.actual_value);
|
|
21263
21263
|
return t[i.queryID].map((s) => {
|
|
21264
21264
|
const c = wo(s[o.columnKey]), d = wo(s[l.columnKey]), h = c - d;
|
|
21265
21265
|
return {
|
|
@@ -21315,8 +21315,8 @@ function K2(e, t) {
|
|
|
21315
21315
|
};
|
|
21316
21316
|
}
|
|
21317
21317
|
function Y2(e, t, n) {
|
|
21318
|
-
const a = G2(e, n), i =
|
|
21319
|
-
xAxis:
|
|
21318
|
+
const a = G2(e, n), i = B(e.x_axis.data_key), o = C.uniqBy(n[i.queryID], i.columnKey).map((h) => h[i.columnKey]), l = C.groupBy(a, i.columnKey), s = K2(e, t), c = N2(e, s, o, l), d = {
|
|
21319
|
+
xAxis: B2(e, o),
|
|
21320
21320
|
yAxis: j2(s),
|
|
21321
21321
|
series: c,
|
|
21322
21322
|
grid: $2(),
|
|
@@ -21407,7 +21407,7 @@ function nk({
|
|
|
21407
21407
|
}, [o]), d = z(() => ({
|
|
21408
21408
|
finished: c
|
|
21409
21409
|
}), [c]);
|
|
21410
|
-
return /* @__PURE__ */ r(He, { ref: s, onEvents: d, echarts:
|
|
21410
|
+
return /* @__PURE__ */ r(He, { ref: s, onEvents: d, echarts: Be, option: l, style: {
|
|
21411
21411
|
width: n,
|
|
21412
21412
|
height: a
|
|
21413
21413
|
}, notMerge: !0, theme: "merico-light" });
|
|
@@ -21428,7 +21428,7 @@ function rk({
|
|
|
21428
21428
|
estimated_value: d,
|
|
21429
21429
|
actual_value: h
|
|
21430
21430
|
} = c.data_keys, [p, g] = G(h);
|
|
21431
|
-
if (
|
|
21431
|
+
if (N(() => {
|
|
21432
21432
|
g((w) => w || h);
|
|
21433
21433
|
}, [h]), !s.data_key || !d || !h || !o || !l)
|
|
21434
21434
|
return null;
|
|
@@ -21559,10 +21559,10 @@ function sk({
|
|
|
21559
21559
|
} = ge({
|
|
21560
21560
|
defaultValues: a
|
|
21561
21561
|
});
|
|
21562
|
-
return
|
|
21562
|
+
return N(() => {
|
|
21563
21563
|
c(a);
|
|
21564
21564
|
}, [a]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
21565
|
-
/* @__PURE__ */ r(
|
|
21565
|
+
/* @__PURE__ */ r(Ve, { canSubmit: s.isDirty }),
|
|
21566
21566
|
/* @__PURE__ */ u(S, { defaultValue: "X Axis", orientation: "vertical", styles: {
|
|
21567
21567
|
tab: {
|
|
21568
21568
|
paddingLeft: "6px",
|
|
@@ -21903,10 +21903,10 @@ function wk({
|
|
|
21903
21903
|
} = ge({
|
|
21904
21904
|
defaultValues: i
|
|
21905
21905
|
});
|
|
21906
|
-
return
|
|
21906
|
+
return N(() => {
|
|
21907
21907
|
d(i);
|
|
21908
21908
|
}, [i]), /* @__PURE__ */ r("form", { onSubmit: l(n), children: /* @__PURE__ */ u(T, { gap: "xs", children: [
|
|
21909
|
-
/* @__PURE__ */ r(
|
|
21909
|
+
/* @__PURE__ */ r(Ve, { canSubmit: c.isDirty }),
|
|
21910
21910
|
/* @__PURE__ */ r(vk, { control: o, watch: s }),
|
|
21911
21911
|
/* @__PURE__ */ r(xk, { control: o, watch: s, variables: a })
|
|
21912
21912
|
] }) });
|
|
@@ -22222,7 +22222,7 @@ function Pk({
|
|
|
22222
22222
|
value: n,
|
|
22223
22223
|
set: a
|
|
22224
22224
|
} = Y(e.instanceData, "config"), i = z(() => n ? he({}, n) : Ti, [n]), o = z(() => C.cloneDeep(i), [i]);
|
|
22225
|
-
|
|
22225
|
+
N(() => {
|
|
22226
22226
|
!Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
22227
22227
|
}, [i, o]);
|
|
22228
22228
|
const l = ge({
|
|
@@ -22234,14 +22234,14 @@ function Pk({
|
|
|
22234
22234
|
formState: h,
|
|
22235
22235
|
reset: p
|
|
22236
22236
|
} = l;
|
|
22237
|
-
return
|
|
22237
|
+
return N(() => {
|
|
22238
22238
|
p(o);
|
|
22239
22239
|
}, [o]), /* @__PURE__ */ r("form", { onSubmit: c(a), style: {
|
|
22240
22240
|
flexGrow: 1
|
|
22241
22241
|
}, children: /* @__PURE__ */ u(T, { gap: "xs", sx: {
|
|
22242
22242
|
height: "100%"
|
|
22243
22243
|
}, children: [
|
|
22244
|
-
/* @__PURE__ */ r(
|
|
22244
|
+
/* @__PURE__ */ r(Ve, { canSubmit: h.isDirty }),
|
|
22245
22245
|
/* @__PURE__ */ u(S, { defaultValue: "X Axis", orientation: "vertical", styles: {
|
|
22246
22246
|
root: {
|
|
22247
22247
|
// height: '100%',
|
|
@@ -22344,7 +22344,7 @@ function Fk(e) {
|
|
|
22344
22344
|
z: 1
|
|
22345
22345
|
};
|
|
22346
22346
|
}
|
|
22347
|
-
function
|
|
22347
|
+
function Nk(e, t) {
|
|
22348
22348
|
const {
|
|
22349
22349
|
heat_block: n
|
|
22350
22350
|
} = e;
|
|
@@ -22365,7 +22365,7 @@ function Bk(e, t) {
|
|
|
22365
22365
|
z: 2
|
|
22366
22366
|
};
|
|
22367
22367
|
}
|
|
22368
|
-
const
|
|
22368
|
+
const Bk = (e) => se(e, {
|
|
22369
22369
|
output: "number",
|
|
22370
22370
|
trimMantissa: !0,
|
|
22371
22371
|
mantissa: 2,
|
|
@@ -22404,10 +22404,10 @@ function jk({
|
|
|
22404
22404
|
}
|
|
22405
22405
|
}, y = [h, p, g], b = a[`${s}---${c}`];
|
|
22406
22406
|
return b && e.tooltip.metrics.forEach((w) => {
|
|
22407
|
-
const I =
|
|
22407
|
+
const I = B(w.data_key);
|
|
22408
22408
|
y.push({
|
|
22409
22409
|
label: w.name,
|
|
22410
|
-
value:
|
|
22410
|
+
value: Bk(C.get(b, I.columnKey, "")),
|
|
22411
22411
|
style: {
|
|
22412
22412
|
label: "",
|
|
22413
22413
|
value: ""
|
|
@@ -22420,8 +22420,8 @@ function Qk(e, t, n, a) {
|
|
|
22420
22420
|
x_axis: i,
|
|
22421
22421
|
y_axis: o,
|
|
22422
22422
|
heat_block: l
|
|
22423
|
-
} = e, s =
|
|
22424
|
-
|
|
22423
|
+
} = e, s = B(i.data_key), c = B(o.data_key);
|
|
22424
|
+
B(l.data_key);
|
|
22425
22425
|
const d = C.keyBy(t[s.queryID], (h) => `${h[s.columnKey]}---${h[c.columnKey]}`);
|
|
22426
22426
|
return pe.getTooltip({
|
|
22427
22427
|
formatter: function(h) {
|
|
@@ -22549,7 +22549,7 @@ function Wk(e, t, n) {
|
|
|
22549
22549
|
}, {}), i = Ok(e), o = qk(e), l = Rr(e.visualMap, a), {
|
|
22550
22550
|
min: s,
|
|
22551
22551
|
max: c
|
|
22552
|
-
} = l, d =
|
|
22552
|
+
} = l, d = B(e.x_axis.data_key), h = B(e.y_axis.data_key), p = B(e.heat_block.data_key), g = C.uniq(t[d.queryID].map((w) => w[d.columnKey])), y = t[d.queryID].map((w) => {
|
|
22553
22553
|
const I = C.get(w, d.columnKey), M = C.get(w, h.columnKey), R = C.get(w, p.columnKey), q = {
|
|
22554
22554
|
value: [I, M, R]
|
|
22555
22555
|
}, {
|
|
@@ -22563,7 +22563,7 @@ function Wk(e, t, n) {
|
|
|
22563
22563
|
return {
|
|
22564
22564
|
xAxis: Gk(e, g, i.x_axis),
|
|
22565
22565
|
yAxis: Hk(e, i.y_axis),
|
|
22566
|
-
series:
|
|
22566
|
+
series: Nk(e, y),
|
|
22567
22567
|
tooltip: Qk(e, t, i, o),
|
|
22568
22568
|
grid: Fk(e),
|
|
22569
22569
|
visualMap: l
|
|
@@ -22579,7 +22579,7 @@ function Uk({
|
|
|
22579
22579
|
instance: l
|
|
22580
22580
|
}) {
|
|
22581
22581
|
const s = z(() => {
|
|
22582
|
-
const b =
|
|
22582
|
+
const b = B(e.x_axis.data_key), w = B(e.y_axis.data_key);
|
|
22583
22583
|
return C.keyBy(t[b.queryID], (I) => `${I[b.columnKey]}---${I[w.columnKey]}`);
|
|
22584
22584
|
}, [t, e.x_axis.data_key, e.y_axis.data_key]), c = st(i.triggerManager, Cc.id), d = ae((b) => {
|
|
22585
22585
|
const [w, I] = b.value, M = C.get(s, `${w}---${I}`, {
|
|
@@ -22599,7 +22599,7 @@ function Uk({
|
|
|
22599
22599
|
click: d,
|
|
22600
22600
|
finished: p
|
|
22601
22601
|
}), [d, p]), y = $.useMemo(() => Wk(e, t, o), [e, t]);
|
|
22602
|
-
return /* @__PURE__ */ r(He, { echarts:
|
|
22602
|
+
return /* @__PURE__ */ r(He, { echarts: Be, option: y, ref: h, style: {
|
|
22603
22603
|
width: n,
|
|
22604
22604
|
height: a
|
|
22605
22605
|
}, onEvents: g, notMerge: !0, theme: "merico-light" });
|
|
@@ -22806,7 +22806,7 @@ function zc({
|
|
|
22806
22806
|
lang: e,
|
|
22807
22807
|
children: t
|
|
22808
22808
|
}) {
|
|
22809
|
-
return
|
|
22809
|
+
return N(() => {
|
|
22810
22810
|
yr.changeLanguage(e);
|
|
22811
22811
|
}, [e]), /* @__PURE__ */ r(qu, { i18n: yr, children: t });
|
|
22812
22812
|
}
|
|
@@ -23620,7 +23620,7 @@ const Lc = m.model("DBQueryMeta", {
|
|
|
23620
23620
|
},
|
|
23621
23621
|
// FIXME: should move these to LayoutItemRenderModel & solve type errors
|
|
23622
23622
|
get contentModel() {
|
|
23623
|
-
return
|
|
23623
|
+
return Le(e).content;
|
|
23624
23624
|
},
|
|
23625
23625
|
get panel() {
|
|
23626
23626
|
const {
|
|
@@ -23673,7 +23673,7 @@ const Lc = m.model("DBQueryMeta", {
|
|
|
23673
23673
|
list: m.optional(m.array(z5), [])
|
|
23674
23674
|
}).views((e) => ({
|
|
23675
23675
|
get contentModel() {
|
|
23676
|
-
return
|
|
23676
|
+
return Le(e).content;
|
|
23677
23677
|
},
|
|
23678
23678
|
get json() {
|
|
23679
23679
|
const {
|
|
@@ -23754,7 +23754,7 @@ const Lc = m.model("DBQueryMeta", {
|
|
|
23754
23754
|
}
|
|
23755
23755
|
})).actions((e) => ({
|
|
23756
23756
|
afterCreate() {
|
|
23757
|
-
Ue(e,
|
|
23757
|
+
Ue(e, Ne(() => {
|
|
23758
23758
|
const t = e.list.length, n = e.contentModel.panels.list.length;
|
|
23759
23759
|
return {
|
|
23760
23760
|
match: t === n,
|
|
@@ -24218,7 +24218,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24218
24218
|
required: m.optional(m.boolean, !1)
|
|
24219
24219
|
}).views((e) => ({
|
|
24220
24220
|
get contentModel() {
|
|
24221
|
-
return
|
|
24221
|
+
return Le(e).content;
|
|
24222
24222
|
},
|
|
24223
24223
|
get filter() {
|
|
24224
24224
|
return we(e);
|
|
@@ -24319,7 +24319,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24319
24319
|
}
|
|
24320
24320
|
})).actions((e) => ({
|
|
24321
24321
|
afterCreate() {
|
|
24322
|
-
Ue(e,
|
|
24322
|
+
Ue(e, Ne(() => Rt(e.defaultSelection), e.setDefaultSelection, {
|
|
24323
24323
|
fireImmediately: !1,
|
|
24324
24324
|
delay: 0
|
|
24325
24325
|
}));
|
|
@@ -24330,7 +24330,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24330
24330
|
static_options: [],
|
|
24331
24331
|
options_query_id: "",
|
|
24332
24332
|
default_selection_count: 0
|
|
24333
|
-
}),
|
|
24333
|
+
}), Nc = m.compose("FilterConfigModel_Select", m.model({
|
|
24334
24334
|
_name: m.literal("select"),
|
|
24335
24335
|
default_value: m.string,
|
|
24336
24336
|
width: m.optional(m.string, ""),
|
|
@@ -24384,19 +24384,19 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24384
24384
|
}
|
|
24385
24385
|
})).actions((e) => ({
|
|
24386
24386
|
afterCreate() {
|
|
24387
|
-
Ue(e,
|
|
24387
|
+
Ue(e, Ne(() => Rt(e.default_selection), e.setDefaultSelection, {
|
|
24388
24388
|
fireImmediately: !1,
|
|
24389
24389
|
delay: 0
|
|
24390
24390
|
}));
|
|
24391
24391
|
}
|
|
24392
|
-
})), $5 = () =>
|
|
24392
|
+
})), $5 = () => Nc.create({
|
|
24393
24393
|
_name: "select",
|
|
24394
24394
|
required: !1,
|
|
24395
24395
|
default_value: "",
|
|
24396
24396
|
static_options: [],
|
|
24397
24397
|
options_query_id: "",
|
|
24398
24398
|
default_selection_count: 0
|
|
24399
|
-
}),
|
|
24399
|
+
}), Bc = m.model("FilterTextInputConfigMeta", {
|
|
24400
24400
|
_name: m.literal("text-input"),
|
|
24401
24401
|
required: m.boolean,
|
|
24402
24402
|
default_value: m.string
|
|
@@ -24423,7 +24423,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24423
24423
|
setDefaultValue(t) {
|
|
24424
24424
|
e.default_value = t;
|
|
24425
24425
|
}
|
|
24426
|
-
})), jc = () =>
|
|
24426
|
+
})), jc = () => Bc.create({
|
|
24427
24427
|
_name: "text-input",
|
|
24428
24428
|
required: !1,
|
|
24429
24429
|
default_value: ""
|
|
@@ -24537,7 +24537,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24537
24537
|
] }), Hc = ({
|
|
24538
24538
|
onClick: e,
|
|
24539
24539
|
...t
|
|
24540
|
-
}) => /* @__PURE__ */ r(F5, { onClick: e, ...t }),
|
|
24540
|
+
}) => /* @__PURE__ */ r(F5, { onClick: e, ...t }), N5 = $n((e, {
|
|
24541
24541
|
radius: t = 4,
|
|
24542
24542
|
width: n,
|
|
24543
24543
|
name: a
|
|
@@ -24798,7 +24798,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24798
24798
|
}
|
|
24799
24799
|
}
|
|
24800
24800
|
}
|
|
24801
|
-
})),
|
|
24801
|
+
})), B5 = ({
|
|
24802
24802
|
disabled: e,
|
|
24803
24803
|
// styling props
|
|
24804
24804
|
radius: t,
|
|
@@ -24817,7 +24817,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24817
24817
|
} = x(), {
|
|
24818
24818
|
classes: p,
|
|
24819
24819
|
cx: g
|
|
24820
|
-
} =
|
|
24820
|
+
} = N5({
|
|
24821
24821
|
radius: t,
|
|
24822
24822
|
width: n.width,
|
|
24823
24823
|
name: "FilterTreeSelectWidget"
|
|
@@ -24883,7 +24883,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
|
|
|
24883
24883
|
const y = g.map((b) => b.value);
|
|
24884
24884
|
a(y, !1);
|
|
24885
24885
|
}, c = z(() => t.initialSelection(n), [n, t.initialSelection, o]), d = t.min_width ? t.min_width : "200px", p = !!t.options_query_id ? o : !1;
|
|
24886
|
-
return /* @__PURE__ */ r(
|
|
24886
|
+
return /* @__PURE__ */ r(B5, { disabled: p, style: {
|
|
24887
24887
|
minWidth: "160px",
|
|
24888
24888
|
width: d,
|
|
24889
24889
|
maxWidth: p ? d : "unset",
|
|
@@ -25346,7 +25346,7 @@ const Wc = m.compose("FilterConfigModel_BaseTreeSelect", m.model({
|
|
|
25346
25346
|
a.length > 0 ? e.filter.setValue(a) : e.filter.setValue(e.defaultSelection);
|
|
25347
25347
|
},
|
|
25348
25348
|
afterCreate() {
|
|
25349
|
-
Ue(e,
|
|
25349
|
+
Ue(e, Ne(() => JSON.stringify(e.defaultSelection), this.applyDefaultSelection, {
|
|
25350
25350
|
fireImmediately: !1,
|
|
25351
25351
|
delay: 0
|
|
25352
25352
|
}));
|
|
@@ -25412,7 +25412,7 @@ const Wc = m.compose("FilterConfigModel_BaseTreeSelect", m.model({
|
|
|
25412
25412
|
e.optionValuesSet.has(t) ? e.filter.setValue(t) : e.filter.setValue(e.defaultSelection);
|
|
25413
25413
|
},
|
|
25414
25414
|
afterCreate() {
|
|
25415
|
-
Ue(e,
|
|
25415
|
+
Ue(e, Ne(() => Rt(e.defaultSelection), this.applyDefaultSelection, {
|
|
25416
25416
|
fireImmediately: !1,
|
|
25417
25417
|
delay: 0
|
|
25418
25418
|
}));
|
|
@@ -25432,10 +25432,10 @@ const Wc = m.compose("FilterConfigModel_BaseTreeSelect", m.model({
|
|
|
25432
25432
|
auto_submit: m.optional(m.boolean, !1),
|
|
25433
25433
|
default_value_func: m.optional(m.string, ""),
|
|
25434
25434
|
type: m.enumeration("DashboardFilterType", [H.Select, H.MultiSelect, H.TreeSelect, H.TreeSingleSelect, H.TextInput, H.Checkbox, H.DateRange]),
|
|
25435
|
-
config: m.union(
|
|
25435
|
+
config: m.union(Nc, Fc, Uc, Kc, Bc, Pc, qc)
|
|
25436
25436
|
}).views((e) => ({
|
|
25437
25437
|
get contentModel() {
|
|
25438
|
-
return
|
|
25438
|
+
return Le(e).content;
|
|
25439
25439
|
},
|
|
25440
25440
|
get filters() {
|
|
25441
25441
|
return this.contentModel.filters;
|
|
@@ -25578,7 +25578,7 @@ const Xc = m.model("ViewDivisionConfig", {
|
|
|
25578
25578
|
const {
|
|
25579
25579
|
enabled: t,
|
|
25580
25580
|
func_content: n
|
|
25581
|
-
} = e, a = we(e, 2), i =
|
|
25581
|
+
} = e, a = we(e, 2), i = Le(e);
|
|
25582
25582
|
if (!t)
|
|
25583
25583
|
return a.name;
|
|
25584
25584
|
try {
|
|
@@ -26026,25 +26026,25 @@ async function od(e, t) {
|
|
|
26026
26026
|
});
|
|
26027
26027
|
Mr(a, `${e}.csv`);
|
|
26028
26028
|
}
|
|
26029
|
-
function zo(e) {
|
|
26030
|
-
const
|
|
26031
|
-
id:
|
|
26032
|
-
data:
|
|
26029
|
+
function zo(e, t) {
|
|
26030
|
+
const n = new Gl(), a = t.map(async ({
|
|
26031
|
+
id: i,
|
|
26032
|
+
data: o
|
|
26033
26033
|
}) => {
|
|
26034
|
-
const
|
|
26035
|
-
|
|
26034
|
+
const l = await id(o);
|
|
26035
|
+
n.file(`${i}.csv`, l);
|
|
26036
26036
|
});
|
|
26037
|
-
Promise.all(
|
|
26038
|
-
|
|
26037
|
+
Promise.all(a).then(() => {
|
|
26038
|
+
n.generateAsync({
|
|
26039
26039
|
type: "blob"
|
|
26040
|
-
}).then((
|
|
26041
|
-
Mr(
|
|
26040
|
+
}).then((i) => {
|
|
26041
|
+
Mr(i, `${e}.zip`);
|
|
26042
26042
|
});
|
|
26043
|
-
}).catch((
|
|
26044
|
-
console.error(
|
|
26043
|
+
}).catch((i) => {
|
|
26044
|
+
console.error(i), Fl.show({
|
|
26045
26045
|
color: "red",
|
|
26046
26046
|
title: "Failed to download data",
|
|
26047
|
-
message:
|
|
26047
|
+
message: i.message
|
|
26048
26048
|
});
|
|
26049
26049
|
});
|
|
26050
26050
|
}
|
|
@@ -26056,7 +26056,7 @@ function qn(e, t) {
|
|
|
26056
26056
|
}
|
|
26057
26057
|
const ld = x5.views((e) => ({
|
|
26058
26058
|
get contentModel() {
|
|
26059
|
-
return
|
|
26059
|
+
return Le(e).content;
|
|
26060
26060
|
}
|
|
26061
26061
|
})).views((e) => ({
|
|
26062
26062
|
get queries() {
|
|
@@ -26123,7 +26123,7 @@ const ld = x5.views((e) => ({
|
|
|
26123
26123
|
e.queries.forEach((t) => t.fetchData(!0));
|
|
26124
26124
|
},
|
|
26125
26125
|
downloadData() {
|
|
26126
|
-
e.contentModel.queries.downloadDataByQueryIDs(e.queryIDs);
|
|
26126
|
+
e.contentModel.queries.downloadDataByQueryIDs(e.name, e.queryIDs);
|
|
26127
26127
|
},
|
|
26128
26128
|
getSchema() {
|
|
26129
26129
|
const t = e.json;
|
|
@@ -26253,7 +26253,7 @@ const pd = m.model("FiltersRenderModel", {
|
|
|
26253
26253
|
}), t;
|
|
26254
26254
|
},
|
|
26255
26255
|
get contentModel() {
|
|
26256
|
-
return
|
|
26256
|
+
return Le(e).content;
|
|
26257
26257
|
},
|
|
26258
26258
|
get context() {
|
|
26259
26259
|
return this.contentModel.payloadForSQL.context;
|
|
@@ -26359,7 +26359,7 @@ function md(e, t, n, a) {
|
|
|
26359
26359
|
}
|
|
26360
26360
|
const d3 = k5.views((e) => ({
|
|
26361
26361
|
get rootModel() {
|
|
26362
|
-
return
|
|
26362
|
+
return Le(e);
|
|
26363
26363
|
},
|
|
26364
26364
|
get contentModel() {
|
|
26365
26365
|
return this.rootModel.content;
|
|
@@ -26645,7 +26645,7 @@ const d3 = k5.views((e) => ({
|
|
|
26645
26645
|
})).volatile(() => ({
|
|
26646
26646
|
controller: new AbortController()
|
|
26647
26647
|
})).actions((e) => ({
|
|
26648
|
-
runSQL:
|
|
26648
|
+
runSQL: Bt(function* () {
|
|
26649
26649
|
var t;
|
|
26650
26650
|
if (e.valid && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
26651
26651
|
e.controller = new AbortController(), e.state = "loading";
|
|
@@ -26674,7 +26674,7 @@ const d3 = k5.views((e) => ({
|
|
|
26674
26674
|
}
|
|
26675
26675
|
}
|
|
26676
26676
|
}),
|
|
26677
|
-
runHTTP:
|
|
26677
|
+
runHTTP: Bt(function* () {
|
|
26678
26678
|
var t;
|
|
26679
26679
|
if (!(!e.valid || !e.datasource) && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
26680
26680
|
e.controller = new AbortController(), e.state = "loading";
|
|
@@ -26705,7 +26705,7 @@ const d3 = k5.views((e) => ({
|
|
|
26705
26705
|
}
|
|
26706
26706
|
}
|
|
26707
26707
|
}),
|
|
26708
|
-
runMericoMetricQuery:
|
|
26708
|
+
runMericoMetricQuery: Bt(function* () {
|
|
26709
26709
|
var t;
|
|
26710
26710
|
if (!(!e.valid || !e.datasource) && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet && e.metricQueryPayloadValid)) {
|
|
26711
26711
|
e.controller = new AbortController(), e.state = "loading";
|
|
@@ -26766,7 +26766,7 @@ const d3 = k5.views((e) => ({
|
|
|
26766
26766
|
}
|
|
26767
26767
|
})).actions((e) => ({
|
|
26768
26768
|
afterCreate() {
|
|
26769
|
-
Ue(e,
|
|
26769
|
+
Ue(e, Ne(() => {
|
|
26770
26770
|
var n, a;
|
|
26771
26771
|
if (e.isTransform) {
|
|
26772
26772
|
const i = e.config;
|
|
@@ -26797,6 +26797,12 @@ const d3 = k5.views((e) => ({
|
|
|
26797
26797
|
get json() {
|
|
26798
26798
|
return e.current.filter((t) => t.id && t.key).map((t) => t.json);
|
|
26799
26799
|
},
|
|
26800
|
+
get root() {
|
|
26801
|
+
return Le(e);
|
|
26802
|
+
},
|
|
26803
|
+
get dashboardName() {
|
|
26804
|
+
return this.root.name;
|
|
26805
|
+
},
|
|
26800
26806
|
get contentModel() {
|
|
26801
26807
|
return we(e, 1);
|
|
26802
26808
|
},
|
|
@@ -26836,29 +26842,30 @@ const d3 = k5.views((e) => ({
|
|
|
26836
26842
|
id: n,
|
|
26837
26843
|
data: a
|
|
26838
26844
|
}));
|
|
26839
|
-
zo(t);
|
|
26845
|
+
zo(e.dashboardName, t);
|
|
26840
26846
|
},
|
|
26841
|
-
downloadDataByQueryIDs(t) {
|
|
26842
|
-
|
|
26843
|
-
|
|
26844
|
-
|
|
26847
|
+
downloadDataByQueryIDs(t, n) {
|
|
26848
|
+
if (n.length === 1)
|
|
26849
|
+
return this.downloadDataByQueryID(t, n[0]);
|
|
26850
|
+
const a = new Set(n), i = e.current.filter((o) => a.has(o.id)).map(({
|
|
26851
|
+
name: o,
|
|
26852
|
+
data: l
|
|
26845
26853
|
}) => ({
|
|
26846
|
-
id:
|
|
26847
|
-
data:
|
|
26854
|
+
id: o,
|
|
26855
|
+
data: l
|
|
26848
26856
|
}));
|
|
26849
|
-
zo(
|
|
26857
|
+
zo(t, i);
|
|
26850
26858
|
},
|
|
26851
|
-
downloadDataByQueryID(t) {
|
|
26852
|
-
const
|
|
26853
|
-
if (!
|
|
26859
|
+
downloadDataByQueryID(t, n) {
|
|
26860
|
+
const a = e.findByID(n);
|
|
26861
|
+
if (!a) {
|
|
26854
26862
|
console.log("[downloadDataByQueryID] query not found");
|
|
26855
26863
|
return;
|
|
26856
26864
|
}
|
|
26857
26865
|
const {
|
|
26858
|
-
name: a,
|
|
26859
26866
|
data: i
|
|
26860
|
-
} =
|
|
26861
|
-
od(
|
|
26867
|
+
} = a, o = t ?? a.name;
|
|
26868
|
+
od(o, i);
|
|
26862
26869
|
},
|
|
26863
26870
|
refetchDataByQueryID(t) {
|
|
26864
26871
|
const n = e.findByID(t);
|
|
@@ -26904,7 +26911,7 @@ const bd = m.model("LayoutsRenderModel", {
|
|
|
26904
26911
|
return e.list.map((n) => n.jsonByPanelIDSet(t));
|
|
26905
26912
|
},
|
|
26906
26913
|
get root() {
|
|
26907
|
-
return
|
|
26914
|
+
return Le(e);
|
|
26908
26915
|
},
|
|
26909
26916
|
get contentModel() {
|
|
26910
26917
|
return this.root.content;
|
|
@@ -26987,7 +26994,7 @@ const bd = m.model("LayoutsRenderModel", {
|
|
|
26987
26994
|
console.log("🔴 onBreakpointChange:", t), e.currentBreakpoint = t;
|
|
26988
26995
|
},
|
|
26989
26996
|
afterCreate() {
|
|
26990
|
-
Ue(e,
|
|
26997
|
+
Ue(e, Ne(() => e.currentBreakpoint, () => {
|
|
26991
26998
|
setTimeout(() => {
|
|
26992
26999
|
window.dispatchEvent(new Event("resize"));
|
|
26993
27000
|
}, 32);
|
|
@@ -27683,7 +27690,7 @@ const L3 = D(({
|
|
|
27683
27690
|
};
|
|
27684
27691
|
function $3(e) {
|
|
27685
27692
|
const t = ce();
|
|
27686
|
-
|
|
27693
|
+
N(() => {
|
|
27687
27694
|
var n, a;
|
|
27688
27695
|
(a = (n = t.filters).updatePreviewValues) == null || a.call(n, e);
|
|
27689
27696
|
}, [e]);
|
|
@@ -27763,7 +27770,7 @@ const q3 = ({
|
|
|
27763
27770
|
}), c = ap({
|
|
27764
27771
|
control: o
|
|
27765
27772
|
});
|
|
27766
|
-
|
|
27773
|
+
N(() => {
|
|
27767
27774
|
s(i.filters.values);
|
|
27768
27775
|
}, [i.filters.values, s]), $3(c);
|
|
27769
27776
|
const d = i.filters.visibleInView(t.id), h = z(() => d.every((b) => b.should_auto_submit), [d]), p = z(() => d.filter((b) => C.get(b, "config.required", !1)), [d]), g = z(() => p.length === 0 ? !1 : p.some((b) => !b.requiredAndPass(c[b.key])), [c, p]);
|
|
@@ -27790,14 +27797,14 @@ const q3 = ({
|
|
|
27790
27797
|
}), F3 = {
|
|
27791
27798
|
viewPanelInFullScreen: C.noop,
|
|
27792
27799
|
inFullScreen: !1
|
|
27793
|
-
}, Kr = $.createContext(F3),
|
|
27800
|
+
}, Kr = $.createContext(F3), N3 = D(({
|
|
27794
27801
|
view: e
|
|
27795
27802
|
}) => {
|
|
27796
27803
|
const {
|
|
27797
27804
|
t
|
|
27798
27805
|
} = x(), n = de(), {
|
|
27799
27806
|
panel: a
|
|
27800
|
-
} =
|
|
27807
|
+
} = Ae(), i = a.realQueryOptions, o = (s) => {
|
|
27801
27808
|
n.editor.open(["_QUERIES_", s]);
|
|
27802
27809
|
}, l = () => {
|
|
27803
27810
|
n.editor.open(["_VIEWS_", e.id, "_PANELS_", a.id, "_TABS_", "Data"]);
|
|
@@ -27807,7 +27814,7 @@ const q3 = ({
|
|
|
27807
27814
|
/* @__PURE__ */ r(U.Item, { onClick: l, leftSection: /* @__PURE__ */ r(Xt, { size: 14 }), children: t("data.label") }),
|
|
27808
27815
|
i.map((s) => /* @__PURE__ */ r(U.Item, { onClick: () => o(s.value), leftSection: /* @__PURE__ */ r(Xt, { size: 14 }), children: s.label }, s.value))
|
|
27809
27816
|
] });
|
|
27810
|
-
}),
|
|
27817
|
+
}), B3 = D(({
|
|
27811
27818
|
view: e,
|
|
27812
27819
|
title: t
|
|
27813
27820
|
}) => {
|
|
@@ -27816,7 +27823,7 @@ const q3 = ({
|
|
|
27816
27823
|
} = x(), a = de(), i = ce(), o = wt(), {
|
|
27817
27824
|
panel: l,
|
|
27818
27825
|
downloadPanelScreenshot: s
|
|
27819
|
-
} =
|
|
27826
|
+
} = Ae(), {
|
|
27820
27827
|
id: c
|
|
27821
27828
|
} = l, {
|
|
27822
27829
|
viewPanelInFullScreen: d,
|
|
@@ -27862,7 +27869,7 @@ const q3 = ({
|
|
|
27862
27869
|
/* @__PURE__ */ r(U.Item, { onClick: l.downloadSchema, leftSection: /* @__PURE__ */ r(pn, { size: 14 }), children: n("common.actions.download_schema") }),
|
|
27863
27870
|
/* @__PURE__ */ r(U.Item, { onClick: s, leftSection: /* @__PURE__ */ r(Tr, { size: 14 }), children: n("common.actions.download_screenshot") }),
|
|
27864
27871
|
R && /* @__PURE__ */ r(U.Item, { onClick: M, leftSection: /* @__PURE__ */ r(fl, { size: 14 }), disabled: !0, children: n("common.actions.enter_fullscreen") }),
|
|
27865
|
-
/* @__PURE__ */ r(
|
|
27872
|
+
/* @__PURE__ */ r(N3, { view: e }),
|
|
27866
27873
|
/* @__PURE__ */ r(P, { label: n("common.actions.edit"), labelPosition: "center" }),
|
|
27867
27874
|
/* @__PURE__ */ r(U.Item, { onClick: g, leftSection: /* @__PURE__ */ r(Aa, { size: 14 }), children: n("panel.label") }),
|
|
27868
27875
|
/* @__PURE__ */ r(U.Item, { onClick: y, leftSection: /* @__PURE__ */ r(An, { size: 14 }), children: n("panel.variable.labels") }),
|
|
@@ -28123,7 +28130,7 @@ function Md(e, t) {
|
|
|
28123
28130
|
const n = qr().getRequired(ye.instanceScope.vizInstance);
|
|
28124
28131
|
return Ln(async () => {
|
|
28125
28132
|
Fe(await n.instanceData.getItem(null), t.viz.conf) || await n.instanceData.setItem(null, t.viz.conf);
|
|
28126
|
-
}, [n, t.viz.conf]),
|
|
28133
|
+
}, [n, t.viz.conf]), N(() => n.instanceData.watchItem(null, (a) => {
|
|
28127
28134
|
e(a);
|
|
28128
28135
|
}), [e, t.viz.type]), n;
|
|
28129
28136
|
}
|
|
@@ -28279,7 +28286,7 @@ const sz = D(function({
|
|
|
28279
28286
|
view: n
|
|
28280
28287
|
}) {
|
|
28281
28288
|
const a = lz(t);
|
|
28282
|
-
return /* @__PURE__ */ r(Ri, { panel: t, panelStyle: a, dropdownContent: /* @__PURE__ */ r(
|
|
28289
|
+
return /* @__PURE__ */ r(Ri, { panel: t, panelStyle: a, dropdownContent: /* @__PURE__ */ r(B3, { view: n, title: t.name }) });
|
|
28283
28290
|
});
|
|
28284
28291
|
function cz(e) {
|
|
28285
28292
|
return !["richText", "button"].includes(e);
|
|
@@ -28569,7 +28576,7 @@ const vz = D(({
|
|
|
28569
28576
|
view: t
|
|
28570
28577
|
}) => {
|
|
28571
28578
|
const a = ce().layouts, [i, o] = gh();
|
|
28572
|
-
return
|
|
28579
|
+
return N(() => {
|
|
28573
28580
|
a.setCurrentLayoutWrapperWidth(o.width);
|
|
28574
28581
|
}, [o.width]), /* @__PURE__ */ r(A, { sx: {
|
|
28575
28582
|
height: "100%"
|
|
@@ -29028,7 +29035,7 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29028
29035
|
get empty() {
|
|
29029
29036
|
return e.data.length === 0;
|
|
29030
29037
|
}
|
|
29031
|
-
})),
|
|
29038
|
+
})), Nz = m.model({
|
|
29032
29039
|
data: m.optional(m.frozen(), []),
|
|
29033
29040
|
state: m.optional(m.enumeration(["idle", "loading", "error"]), "idle"),
|
|
29034
29041
|
error: m.frozen()
|
|
@@ -29039,7 +29046,7 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29039
29046
|
get empty() {
|
|
29040
29047
|
return e.data.length === 0;
|
|
29041
29048
|
}
|
|
29042
|
-
})),
|
|
29049
|
+
})), Bz = m.model({
|
|
29043
29050
|
page: m.optional(m.number, 1),
|
|
29044
29051
|
limit: m.optional(m.number, 20),
|
|
29045
29052
|
data: m.optional(m.frozen(), []),
|
|
@@ -29092,10 +29099,10 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29092
29099
|
}
|
|
29093
29100
|
})).actions((e) => ({
|
|
29094
29101
|
afterCreate() {
|
|
29095
|
-
Ue(e,
|
|
29102
|
+
Ue(e, Ne(() => e.keywordString, e.resetPage, {
|
|
29096
29103
|
fireImmediately: !1,
|
|
29097
29104
|
delay: 0
|
|
29098
|
-
})), Ue(e,
|
|
29105
|
+
})), Ue(e, Ne(() => e.limit, e.resetPage, {
|
|
29099
29106
|
fireImmediately: !1,
|
|
29100
29107
|
delay: 0
|
|
29101
29108
|
}));
|
|
@@ -29114,8 +29121,8 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29114
29121
|
})), Qz = m.model({
|
|
29115
29122
|
tables: m.optional(jz, {}),
|
|
29116
29123
|
columns: m.optional(Fz, {}),
|
|
29117
|
-
tableData: m.optional(
|
|
29118
|
-
indexes: m.optional(
|
|
29124
|
+
tableData: m.optional(Bz, {}),
|
|
29125
|
+
indexes: m.optional(Nz, {}),
|
|
29119
29126
|
table_schema: m.optional(m.string, ""),
|
|
29120
29127
|
table_name: m.optional(m.string, "")
|
|
29121
29128
|
}).views((e) => ({
|
|
@@ -29157,7 +29164,7 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29157
29164
|
e.setKeywords(t, n);
|
|
29158
29165
|
}
|
|
29159
29166
|
})).actions((e) => {
|
|
29160
|
-
const t =
|
|
29167
|
+
const t = Bt(function* () {
|
|
29161
29168
|
var n;
|
|
29162
29169
|
(n = e.controllers.tables) == null || n.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
|
|
29163
29170
|
try {
|
|
@@ -29186,7 +29193,7 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29186
29193
|
loadTablesIfEmpty() {
|
|
29187
29194
|
e.tables.empty && t();
|
|
29188
29195
|
},
|
|
29189
|
-
loadColumns:
|
|
29196
|
+
loadColumns: Bt(function* () {
|
|
29190
29197
|
var n;
|
|
29191
29198
|
(n = e.controllers.columns) == null || n.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
|
|
29192
29199
|
try {
|
|
@@ -29211,7 +29218,7 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29211
29218
|
}
|
|
29212
29219
|
}
|
|
29213
29220
|
}),
|
|
29214
|
-
loadIndexes:
|
|
29221
|
+
loadIndexes: Bt(function* () {
|
|
29215
29222
|
var n;
|
|
29216
29223
|
(n = e.controllers.indexes) == null || n.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
|
|
29217
29224
|
try {
|
|
@@ -29236,7 +29243,7 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29236
29243
|
}
|
|
29237
29244
|
}
|
|
29238
29245
|
}),
|
|
29239
|
-
loadTableData:
|
|
29246
|
+
loadTableData: Bt(function* () {
|
|
29240
29247
|
var a;
|
|
29241
29248
|
(a = e.controllers.tableData) == null || a.abort(), e.controllers.tableData = new AbortController();
|
|
29242
29249
|
const n = e.tableData;
|
|
@@ -29282,17 +29289,17 @@ const Rz = m.compose("FiltersModel", pd, m.model("FiltersModel", {
|
|
|
29282
29289
|
};
|
|
29283
29290
|
}).actions((e) => ({
|
|
29284
29291
|
afterCreate() {
|
|
29285
|
-
Ue(e,
|
|
29292
|
+
Ue(e, Ne(() => e.reloadConditionString, e.loadColumns, {
|
|
29286
29293
|
fireImmediately: !1,
|
|
29287
29294
|
delay: 500
|
|
29288
29295
|
}));
|
|
29289
29296
|
}
|
|
29290
29297
|
})).actions((e) => ({
|
|
29291
29298
|
afterCreate() {
|
|
29292
|
-
Ue(e,
|
|
29299
|
+
Ue(e, Ne(() => e.reloadConditionString, e.loadIndexes, {
|
|
29293
29300
|
fireImmediately: !1,
|
|
29294
29301
|
delay: 500
|
|
29295
|
-
})), Ue(e,
|
|
29302
|
+
})), Ue(e, Ne(() => `${e.reloadConditionString};limit:${e.tableData.limit};offset:${e.tableData.offset}`, e.loadTableData, {
|
|
29296
29303
|
fireImmediately: !1,
|
|
29297
29304
|
delay: 0
|
|
29298
29305
|
}));
|
|
@@ -29446,7 +29453,7 @@ const Kz = m.model({
|
|
|
29446
29453
|
return this.flatGroupByColOptions.filter((a) => n.has(a.value));
|
|
29447
29454
|
}
|
|
29448
29455
|
})).actions((e) => ({
|
|
29449
|
-
load:
|
|
29456
|
+
load: Bt(function* () {
|
|
29450
29457
|
var t;
|
|
29451
29458
|
if (e.mmInfo.type === ie.MericoMetricSystem && !(!e.metricID || !e.metricType)) {
|
|
29452
29459
|
(t = e.controller) == null || t.abort(), e.controller = new AbortController(), e.state = "loading";
|
|
@@ -29480,7 +29487,7 @@ const Kz = m.model({
|
|
|
29480
29487
|
})
|
|
29481
29488
|
})).actions((e) => ({
|
|
29482
29489
|
afterCreate() {
|
|
29483
|
-
Ue(e,
|
|
29490
|
+
Ue(e, Ne(() => e.metricID + e.metricType, e.load, {
|
|
29484
29491
|
fireImmediately: !0,
|
|
29485
29492
|
delay: 0
|
|
29486
29493
|
}));
|
|
@@ -29507,7 +29514,7 @@ const Kz = m.model({
|
|
|
29507
29514
|
e.keyword = t;
|
|
29508
29515
|
}
|
|
29509
29516
|
})).actions((e) => ({
|
|
29510
|
-
load:
|
|
29517
|
+
load: Bt(function* () {
|
|
29511
29518
|
var t;
|
|
29512
29519
|
if (e.mmInfo.type === ie.MericoMetricSystem) {
|
|
29513
29520
|
(t = e.controller) == null || t.abort(), e.controller = new AbortController(), e.state = "loading";
|
|
@@ -29538,7 +29545,7 @@ const Kz = m.model({
|
|
|
29538
29545
|
})
|
|
29539
29546
|
})).actions((e) => ({
|
|
29540
29547
|
afterCreate() {
|
|
29541
|
-
Ue(e,
|
|
29548
|
+
Ue(e, Ne(() => `${e.mmInfo.type}:${e.keyword}`, e.load, {
|
|
29542
29549
|
fireImmediately: !0,
|
|
29543
29550
|
delay: 0
|
|
29544
29551
|
}));
|
|
@@ -29550,7 +29557,7 @@ const Kz = m.model({
|
|
|
29550
29557
|
metricID: m.optional(m.string, "")
|
|
29551
29558
|
}).views((e) => ({
|
|
29552
29559
|
get rootModel() {
|
|
29553
|
-
return
|
|
29560
|
+
return Le(e);
|
|
29554
29561
|
},
|
|
29555
29562
|
get contentModel() {
|
|
29556
29563
|
return this.rootModel.content;
|
|
@@ -29671,7 +29678,7 @@ const dT = m.model("EditorModel", {
|
|
|
29671
29678
|
get navOptions() {
|
|
29672
29679
|
const {
|
|
29673
29680
|
content: t
|
|
29674
|
-
} =
|
|
29681
|
+
} = Le(e), {
|
|
29675
29682
|
filters: n,
|
|
29676
29683
|
views: a,
|
|
29677
29684
|
sqlSnippets: i,
|
|
@@ -29753,7 +29760,7 @@ const dT = m.model("EditorModel", {
|
|
|
29753
29760
|
get spotlightActionGroups() {
|
|
29754
29761
|
const {
|
|
29755
29762
|
content: t
|
|
29756
|
-
} =
|
|
29763
|
+
} = Le(e), {
|
|
29757
29764
|
filters: n,
|
|
29758
29765
|
views: a,
|
|
29759
29766
|
sqlSnippets: i,
|
|
@@ -30002,7 +30009,7 @@ const dT = m.model("EditorModel", {
|
|
|
30002
30009
|
dataFieldOptions(t, n, a) {
|
|
30003
30010
|
let i = [...this.realDataFieldOptions];
|
|
30004
30011
|
if (a && (i = i.filter((o) => o.group_id === a)), t && !i.find((o) => o.value === t)) {
|
|
30005
|
-
const o =
|
|
30012
|
+
const o = B(t), l = e.queryByID(o.queryID);
|
|
30006
30013
|
i.unshift({
|
|
30007
30014
|
label: o.columnKey,
|
|
30008
30015
|
value: t,
|
|
@@ -30035,7 +30042,7 @@ const dT = m.model("EditorModel", {
|
|
|
30035
30042
|
const {
|
|
30036
30043
|
queryID: n,
|
|
30037
30044
|
columnKey: a
|
|
30038
|
-
} =
|
|
30045
|
+
} = B(t), i = e.queries.find((o) => o.id === n);
|
|
30039
30046
|
return i ? {
|
|
30040
30047
|
queryID: n,
|
|
30041
30048
|
queryName: i.name,
|
|
@@ -30052,13 +30059,13 @@ const dT = m.model("EditorModel", {
|
|
|
30052
30059
|
}
|
|
30053
30060
|
})).actions((e) => ({
|
|
30054
30061
|
moveToView(t, n) {
|
|
30055
|
-
|
|
30062
|
+
Le(e).content.views.findByID(t).removePanelID(e.id), Le(e).content.views.findByID(n).appendPanelID(e.id), Le(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
|
|
30056
30063
|
}
|
|
30057
30064
|
})), pT = m.compose("PanelsModel", sd, m.model({
|
|
30058
30065
|
list: m.optional(m.array(hT), [])
|
|
30059
30066
|
})).views((e) => ({
|
|
30060
30067
|
get contentModel() {
|
|
30061
|
-
return
|
|
30068
|
+
return Le(e).content;
|
|
30062
30069
|
},
|
|
30063
30070
|
editorOptions(t, n) {
|
|
30064
30071
|
const a = e.panelsByIDs(n);
|
|
@@ -30167,7 +30174,7 @@ const dT = m.model("EditorModel", {
|
|
|
30167
30174
|
}));
|
|
30168
30175
|
},
|
|
30169
30176
|
get editorOptions() {
|
|
30170
|
-
const t =
|
|
30177
|
+
const t = Le(e).content.panels;
|
|
30171
30178
|
return e.current.map((n) => ({
|
|
30172
30179
|
label: n.name,
|
|
30173
30180
|
value: n.id,
|
|
@@ -30176,7 +30183,7 @@ const dT = m.model("EditorModel", {
|
|
|
30176
30183
|
}));
|
|
30177
30184
|
},
|
|
30178
30185
|
get contentModel() {
|
|
30179
|
-
return
|
|
30186
|
+
return Le(e).content;
|
|
30180
30187
|
}
|
|
30181
30188
|
})).actions((e) => ({
|
|
30182
30189
|
setIDOfVIE(t) {
|
|
@@ -30718,7 +30725,7 @@ function rr(e) {
|
|
|
30718
30725
|
console.groupCollapsed("Running operation ", e.type), console.log(e), console.groupEnd();
|
|
30719
30726
|
}
|
|
30720
30727
|
function Od(e, t) {
|
|
30721
|
-
|
|
30728
|
+
N(() => {
|
|
30722
30729
|
const n = (a) => {
|
|
30723
30730
|
rr(a);
|
|
30724
30731
|
const {
|
|
@@ -30733,7 +30740,7 @@ function Od(e, t) {
|
|
|
30733
30740
|
return window.addEventListener("open-view", n), () => {
|
|
30734
30741
|
window.removeEventListener("open-view", n);
|
|
30735
30742
|
};
|
|
30736
|
-
}, [e, t]),
|
|
30743
|
+
}, [e, t]), N(() => {
|
|
30737
30744
|
const n = (a) => {
|
|
30738
30745
|
rr(a);
|
|
30739
30746
|
const {
|
|
@@ -30753,7 +30760,7 @@ function Od(e, t) {
|
|
|
30753
30760
|
return window.addEventListener("set-filter-values", n), () => {
|
|
30754
30761
|
window.removeEventListener("set-filter-values", n);
|
|
30755
30762
|
};
|
|
30756
|
-
}, [e]),
|
|
30763
|
+
}, [e]), N(() => {
|
|
30757
30764
|
function n(i) {
|
|
30758
30765
|
return Array.isArray(i) ? [] : typeof i == "object" ? {} : typeof i == "boolean" ? !1 : typeof i == "string" ? "" : typeof i == "number" ? 0 : i;
|
|
30759
30766
|
}
|
|
@@ -30770,7 +30777,7 @@ function Od(e, t) {
|
|
|
30770
30777
|
return window.addEventListener("clear-filter-values", a), () => {
|
|
30771
30778
|
window.removeEventListener("clear-filter-values", a);
|
|
30772
30779
|
};
|
|
30773
|
-
}, [e]),
|
|
30780
|
+
}, [e]), N(() => {
|
|
30774
30781
|
const n = (a) => {
|
|
30775
30782
|
rr(a);
|
|
30776
30783
|
const {
|
|
@@ -31239,7 +31246,7 @@ const $T = D(({
|
|
|
31239
31246
|
});
|
|
31240
31247
|
}
|
|
31241
31248
|
}, [g, y] = G(null);
|
|
31242
|
-
|
|
31249
|
+
N(() => {
|
|
31243
31250
|
if (!g)
|
|
31244
31251
|
return;
|
|
31245
31252
|
const q = new FileReader();
|
|
@@ -31261,7 +31268,7 @@ const $T = D(({
|
|
|
31261
31268
|
};
|
|
31262
31269
|
}, [g]);
|
|
31263
31270
|
const [b] = c(["content"]), w = !b, I = (M = l == null ? void 0 : l.content) == null ? void 0 : M.message;
|
|
31264
|
-
return
|
|
31271
|
+
return N(() => {
|
|
31265
31272
|
!b || I ? n() : t();
|
|
31266
31273
|
}, [b, I]), /* @__PURE__ */ r(A, { mx: "auto", sx: {
|
|
31267
31274
|
position: "relative"
|
|
@@ -31430,7 +31437,7 @@ const $T = D(({
|
|
|
31430
31437
|
}, children: e }), qo = function() {
|
|
31431
31438
|
var t;
|
|
31432
31439
|
return (((t = navigator.userAgentData) == null ? void 0 : t.platform) ?? navigator.platform).toLowerCase().includes("mac");
|
|
31433
|
-
}(),
|
|
31440
|
+
}(), NT = () => {
|
|
31434
31441
|
const {
|
|
31435
31442
|
t: e
|
|
31436
31443
|
} = x();
|
|
@@ -31460,7 +31467,7 @@ const $T = D(({
|
|
|
31460
31467
|
lineHeight: 1
|
|
31461
31468
|
}, children: e("spotlight.trigger_text") })
|
|
31462
31469
|
] }) }) });
|
|
31463
|
-
},
|
|
31470
|
+
}, BT = {
|
|
31464
31471
|
position: "fixed",
|
|
31465
31472
|
top: 60,
|
|
31466
31473
|
// height of mantine-header
|
|
@@ -31470,7 +31477,7 @@ const $T = D(({
|
|
|
31470
31477
|
zIndex: 299,
|
|
31471
31478
|
borderBottom: "1px solid #e9ecef",
|
|
31472
31479
|
background: "rgba(233,236,239, 0.15)"
|
|
31473
|
-
}, jT = D(() => /* @__PURE__ */ r(A, { sx:
|
|
31480
|
+
}, jT = D(() => /* @__PURE__ */ r(A, { sx: BT, pl: {
|
|
31474
31481
|
base: 200,
|
|
31475
31482
|
xs: 200,
|
|
31476
31483
|
sm: 200,
|
|
@@ -31483,7 +31490,7 @@ const $T = D(({
|
|
|
31483
31490
|
/* @__PURE__ */ u(_, { justify: "flex-start", gap: 0, children: [
|
|
31484
31491
|
/* @__PURE__ */ r(wT, {}),
|
|
31485
31492
|
/* @__PURE__ */ r(PT, {}),
|
|
31486
|
-
/* @__PURE__ */ r(
|
|
31493
|
+
/* @__PURE__ */ r(NT, {})
|
|
31487
31494
|
] }),
|
|
31488
31495
|
/* @__PURE__ */ r(CT, {}),
|
|
31489
31496
|
/* @__PURE__ */ r(_, { justify: "flex-end", gap: 0, children: /* @__PURE__ */ r(kT, {}) })
|
|
@@ -31566,7 +31573,7 @@ function Fd(e, t, n) {
|
|
|
31566
31573
|
function WT(e, t, n) {
|
|
31567
31574
|
return e * t + (e - 1) * n;
|
|
31568
31575
|
}
|
|
31569
|
-
const xr = 25, qi = 40,
|
|
31576
|
+
const xr = 25, qi = 40, Nd = 25, Fi = 350, UT = 150, KT = 150, Bd = 150, Fo = 300, cr = 40, jd = 25, YT = 300;
|
|
31570
31577
|
function XT(e, t) {
|
|
31571
31578
|
const n = C.keyBy(t, (i) => i.id), a = [];
|
|
31572
31579
|
return e.current.forEach((i, o) => {
|
|
@@ -31622,7 +31629,7 @@ const ZT = {
|
|
|
31622
31629
|
}, JT = $z;
|
|
31623
31630
|
function e6(e) {
|
|
31624
31631
|
return e.current.map((n, a) => {
|
|
31625
|
-
const i = WT(n.panelIDs.length, cr, jd) + qi +
|
|
31632
|
+
const i = WT(n.panelIDs.length, cr, jd) + qi + Nd;
|
|
31626
31633
|
let o = [];
|
|
31627
31634
|
return n.type === W.Tabs && (o = n.config.tabsInOrder.map((s) => s.view_id)), {
|
|
31628
31635
|
id: n.id,
|
|
@@ -31669,7 +31676,7 @@ function r6({
|
|
|
31669
31676
|
edges: n
|
|
31670
31677
|
}) {
|
|
31671
31678
|
t.forEach((a) => {
|
|
31672
|
-
a._node_type !== "view-root" || a._view_type !== W.Tabs || (a.sourcePosition = _t.Bottom, a.style.width = Fi + xr * 2, a.style.height =
|
|
31679
|
+
a._node_type !== "view-root" || a._view_type !== W.Tabs || (a.sourcePosition = _t.Bottom, a.style.width = Fi + xr * 2, a.style.height = Nd + a._tab_view_ids.reduce((i, o) => {
|
|
31673
31680
|
const l = e[o];
|
|
31674
31681
|
l.position.y = i, l.position.x = xr;
|
|
31675
31682
|
const s = l.style.height;
|
|
@@ -31704,7 +31711,7 @@ function i6({
|
|
|
31704
31711
|
const s = e[o.parentNode], c = s.position.x, d = Number(C.get(l, "style.height", 0)), h = Number(s.style.width);
|
|
31705
31712
|
l.position.x = c + h + YT, s._view_level === 0 && l._sub_view_ids.length === 0 && (o.sourcePosition = _t.Left, l.targetPosition = _t.Right, l.position.x *= -1);
|
|
31706
31713
|
const g = l.position.x, y = C.get(a, g, 0);
|
|
31707
|
-
l.position.y = y, a[g] = y + d +
|
|
31714
|
+
l.position.y = y, a[g] = y + d + Bd;
|
|
31708
31715
|
}
|
|
31709
31716
|
});
|
|
31710
31717
|
}
|
|
@@ -31717,7 +31724,7 @@ function o6({
|
|
|
31717
31724
|
n.forEach((l) => {
|
|
31718
31725
|
a.add(l.source), i.add(l.target);
|
|
31719
31726
|
}), t.filter((l) => l._node_type !== "view-root" || l.id === "Main" || l.parentNode ? !1 : !a.has(l.id) && !i.has(l.id)).forEach((l, s) => {
|
|
31720
|
-
l.position.x = Fd(s, Fi, KT), l.position.y = 0 - UT -
|
|
31727
|
+
l.position.x = Fd(s, Fi, KT), l.position.y = 0 - UT - Bd;
|
|
31721
31728
|
});
|
|
31722
31729
|
}
|
|
31723
31730
|
function l6({
|
|
@@ -31747,8 +31754,8 @@ function s6(e) {
|
|
|
31747
31754
|
return l6(s);
|
|
31748
31755
|
}
|
|
31749
31756
|
const na = {
|
|
31750
|
-
"builtin:op:open-link": /* @__PURE__ */ r(ar, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r(
|
|
31751
|
-
"builtin:op:set_filter_values": /* @__PURE__ */ r(ar, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r(
|
|
31757
|
+
"builtin:op:open-link": /* @__PURE__ */ r(ar, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r(Nh, { size: 14 }) }),
|
|
31758
|
+
"builtin:op:set_filter_values": /* @__PURE__ */ r(ar, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r(Bh, { size: 14 }) }),
|
|
31752
31759
|
"builtin:op:clear_filter_values": /* @__PURE__ */ r(ar, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r(gl, { size: 14 }) })
|
|
31753
31760
|
};
|
|
31754
31761
|
function c6(e) {
|
|
@@ -31827,8 +31834,8 @@ const u6 = {
|
|
|
31827
31834
|
edges: t,
|
|
31828
31835
|
nodes: n
|
|
31829
31836
|
} = s6(e);
|
|
31830
|
-
return /* @__PURE__ */ u(
|
|
31831
|
-
/* @__PURE__ */ r(
|
|
31837
|
+
return /* @__PURE__ */ u(Np, { nodes: n, edges: t, onNodesChange: C.noop, onEdgesChange: C.noop, onConnect: C.noop, className: "interactions-viewer", fitView: !0, nodeTypes: u6, children: [
|
|
31838
|
+
/* @__PURE__ */ r(Bp, {}),
|
|
31832
31839
|
/* @__PURE__ */ r(jp, {}),
|
|
31833
31840
|
/* @__PURE__ */ r(Qp, {})
|
|
31834
31841
|
] });
|
|
@@ -32142,7 +32149,7 @@ const f6 = D(() => {
|
|
|
32142
32149
|
/* @__PURE__ */ r(Ur, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
|
|
32143
32150
|
/* @__PURE__ */ r(Qd, {})
|
|
32144
32151
|
] });
|
|
32145
|
-
}),
|
|
32152
|
+
}), No = {
|
|
32146
32153
|
date_unit: {
|
|
32147
32154
|
zh: [{
|
|
32148
32155
|
label: "天",
|
|
@@ -32183,7 +32190,7 @@ const f6 = D(() => {
|
|
|
32183
32190
|
value: "year"
|
|
32184
32191
|
}]
|
|
32185
32192
|
}
|
|
32186
|
-
},
|
|
32193
|
+
}, Bo = D(({
|
|
32187
32194
|
config: e
|
|
32188
32195
|
}) => {
|
|
32189
32196
|
const {
|
|
@@ -32198,9 +32205,9 @@ const f6 = D(() => {
|
|
|
32198
32205
|
label: t("filter.widget.select.preset_options.date_unit"),
|
|
32199
32206
|
value: "date_unit"
|
|
32200
32207
|
}], [n.language]), o = (l) => {
|
|
32201
|
-
if (!l || !(l in
|
|
32208
|
+
if (!l || !(l in No))
|
|
32202
32209
|
return;
|
|
32203
|
-
const s =
|
|
32210
|
+
const s = No[l][n.language];
|
|
32204
32211
|
e.replaceStaticOptions(s), s.length > 0 && e.setDefaultValue(s[0].value);
|
|
32205
32212
|
};
|
|
32206
32213
|
return /* @__PURE__ */ u(_, { justify: "space-between", children: [
|
|
@@ -32217,7 +32224,7 @@ const f6 = D(() => {
|
|
|
32217
32224
|
label: t("filter.widget.select.no_default_selection"),
|
|
32218
32225
|
value: ""
|
|
32219
32226
|
}, ...a.filter((o) => o.value !== "")], [n.language, a]);
|
|
32220
|
-
return a.length === 0 ? /* @__PURE__ */ r(
|
|
32227
|
+
return a.length === 0 ? /* @__PURE__ */ r(Bo, { config: e }) : /* @__PURE__ */ u(F, { children: [
|
|
32221
32228
|
/* @__PURE__ */ r(O, { label: t("filter.widget.select.default_selection"), data: i, value: e.default_value, onChange: e.setDefaultValue }),
|
|
32222
32229
|
a.map((o, l) => /* @__PURE__ */ u(tt, { gap: 10, sx: {
|
|
32223
32230
|
position: "relative"
|
|
@@ -32238,7 +32245,7 @@ const f6 = D(() => {
|
|
|
32238
32245
|
right: 5
|
|
32239
32246
|
}, children: /* @__PURE__ */ r($e, { size: 16 }) })
|
|
32240
32247
|
] }, l)),
|
|
32241
|
-
/* @__PURE__ */ r(
|
|
32248
|
+
/* @__PURE__ */ r(Bo, { config: e })
|
|
32242
32249
|
] });
|
|
32243
32250
|
}), C6 = D(({
|
|
32244
32251
|
filter: e
|
|
@@ -32318,7 +32325,7 @@ const f6 = D(() => {
|
|
|
32318
32325
|
[H.TextInput]: k6,
|
|
32319
32326
|
[H.Checkbox]: y6,
|
|
32320
32327
|
[H.DateRange]: x6
|
|
32321
|
-
},
|
|
32328
|
+
}, Nt = {
|
|
32322
32329
|
[H.Select]: "filter.widget.names.select",
|
|
32323
32330
|
[H.MultiSelect]: "filter.widget.names.multi_select",
|
|
32324
32331
|
[H.TreeSelect]: "filter.widget.names.tree_select",
|
|
@@ -32333,25 +32340,25 @@ const f6 = D(() => {
|
|
|
32333
32340
|
t: n,
|
|
32334
32341
|
i18n: a
|
|
32335
32342
|
} = x(), i = ce(), o = $.useMemo(() => T6[t.type], [t.type]), l = z(() => [{
|
|
32336
|
-
label: n(
|
|
32343
|
+
label: n(Nt[H.Select]),
|
|
32337
32344
|
value: "select"
|
|
32338
32345
|
}, {
|
|
32339
|
-
label: n(
|
|
32346
|
+
label: n(Nt[H.MultiSelect]),
|
|
32340
32347
|
value: "multi-select"
|
|
32341
32348
|
}, {
|
|
32342
|
-
label: n(
|
|
32349
|
+
label: n(Nt[H.TreeSelect]),
|
|
32343
32350
|
value: "tree-select"
|
|
32344
32351
|
}, {
|
|
32345
|
-
label: n(
|
|
32352
|
+
label: n(Nt[H.TreeSingleSelect]),
|
|
32346
32353
|
value: "tree-single-select"
|
|
32347
32354
|
}, {
|
|
32348
|
-
label: n(
|
|
32355
|
+
label: n(Nt[H.TextInput]),
|
|
32349
32356
|
value: "text-input"
|
|
32350
32357
|
}, {
|
|
32351
|
-
label: n(
|
|
32358
|
+
label: n(Nt[H.Checkbox]),
|
|
32352
32359
|
value: "checkbox"
|
|
32353
32360
|
}, {
|
|
32354
|
-
label: n(
|
|
32361
|
+
label: n(Nt[H.DateRange]),
|
|
32355
32362
|
value: "date-range"
|
|
32356
32363
|
}], [a.language]);
|
|
32357
32364
|
return /* @__PURE__ */ u(_, { grow: !0, gap: 20, align: "top", children: [
|
|
@@ -32493,7 +32500,7 @@ const f6 = D(() => {
|
|
|
32493
32500
|
} }) }),
|
|
32494
32501
|
/* @__PURE__ */ r(v.Td, { children: d.label }),
|
|
32495
32502
|
/* @__PURE__ */ r(v.Td, { children: d.key }),
|
|
32496
|
-
/* @__PURE__ */ r(v.Td, { children: e(
|
|
32503
|
+
/* @__PURE__ */ r(v.Td, { children: e(Nt[d.type]) }),
|
|
32497
32504
|
/* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", onClick: () => i(d.id), children: e("common.actions.open") }) })
|
|
32498
32505
|
] }, d.id)) })
|
|
32499
32506
|
] }) }) })
|
|
@@ -32552,7 +32559,7 @@ const f6 = D(() => {
|
|
|
32552
32559
|
t: e
|
|
32553
32560
|
} = x(), {
|
|
32554
32561
|
panel: t
|
|
32555
|
-
} =
|
|
32562
|
+
} = Ae();
|
|
32556
32563
|
return /* @__PURE__ */ r(Zt, { label: e("panel.panel_description"), value: t.description, onChange: t.setDescription, styles: {
|
|
32557
32564
|
root: {
|
|
32558
32565
|
flexGrow: 1
|
|
@@ -32563,7 +32570,7 @@ const f6 = D(() => {
|
|
|
32563
32570
|
t: e
|
|
32564
32571
|
} = x(), {
|
|
32565
32572
|
panel: t
|
|
32566
|
-
} =
|
|
32573
|
+
} = Ae(), n = Te().layouts.findItemByPanelID(t.id), {
|
|
32567
32574
|
style: a
|
|
32568
32575
|
} = t;
|
|
32569
32576
|
return /* @__PURE__ */ r(F, { children: /* @__PURE__ */ u(T, { gap: 20, children: [
|
|
@@ -32596,12 +32603,12 @@ const f6 = D(() => {
|
|
|
32596
32603
|
t: e
|
|
32597
32604
|
} = x(), {
|
|
32598
32605
|
panel: t
|
|
32599
|
-
} =
|
|
32606
|
+
} = Ae(), {
|
|
32600
32607
|
name: n
|
|
32601
32608
|
} = t, [a, i] = ul(n), o = n !== a, l = $.useCallback(() => {
|
|
32602
32609
|
o && t.setName(a);
|
|
32603
32610
|
}, [o, a]);
|
|
32604
|
-
|
|
32611
|
+
N(() => {
|
|
32605
32612
|
i(n);
|
|
32606
32613
|
}, [n]);
|
|
32607
32614
|
const s = !a.trim();
|
|
@@ -32620,7 +32627,7 @@ const f6 = D(() => {
|
|
|
32620
32627
|
t: e
|
|
32621
32628
|
} = x(), {
|
|
32622
32629
|
panel: t
|
|
32623
|
-
} =
|
|
32630
|
+
} = Ae();
|
|
32624
32631
|
return /* @__PURE__ */ r(T, { gap: 6, mb: 10, children: /* @__PURE__ */ u(_, { pl: 6, justify: "flex-start", gap: 20, children: [
|
|
32625
32632
|
/* @__PURE__ */ r(te, { size: "sm", checked: t.title.show, onChange: (n) => t.title.setShow(n.currentTarget.checked), label: e("panel.show_title"), sx: {
|
|
32626
32633
|
userSelect: "none"
|
|
@@ -32693,7 +32700,7 @@ function Gd({
|
|
|
32693
32700
|
data: e,
|
|
32694
32701
|
columns: t,
|
|
32695
32702
|
columnResizeMode: "onChange",
|
|
32696
|
-
getCoreRowModel:
|
|
32703
|
+
getCoreRowModel: Na()
|
|
32697
32704
|
});
|
|
32698
32705
|
return e.length === 0 ? /* @__PURE__ */ r(A, { sx: {
|
|
32699
32706
|
height: "5em"
|
|
@@ -32729,7 +32736,7 @@ const q6 = [{
|
|
|
32729
32736
|
input: {
|
|
32730
32737
|
paddingLeft: "70px"
|
|
32731
32738
|
}
|
|
32732
|
-
},
|
|
32739
|
+
}, N6 = ({
|
|
32733
32740
|
data: e,
|
|
32734
32741
|
page: t,
|
|
32735
32742
|
setPage: n,
|
|
@@ -32767,7 +32774,7 @@ const q6 = [{
|
|
|
32767
32774
|
total: l
|
|
32768
32775
|
}) }) })
|
|
32769
32776
|
] });
|
|
32770
|
-
},
|
|
32777
|
+
}, B6 = Ps(({
|
|
32771
32778
|
data: e,
|
|
32772
32779
|
loading: t
|
|
32773
32780
|
}) => {
|
|
@@ -32776,7 +32783,7 @@ const q6 = [{
|
|
|
32776
32783
|
return e.slice(s, c);
|
|
32777
32784
|
}, [e, n, i]);
|
|
32778
32785
|
return /* @__PURE__ */ u(ze, { children: [
|
|
32779
|
-
/* @__PURE__ */ r(
|
|
32786
|
+
/* @__PURE__ */ r(N6, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
|
|
32780
32787
|
/* @__PURE__ */ u(A, { py: 10, sx: {
|
|
32781
32788
|
width: "100%",
|
|
32782
32789
|
height: "calc(100% - 42px)",
|
|
@@ -32816,9 +32823,9 @@ const q6 = [{
|
|
|
32816
32823
|
} = i.getDataStuffByID(e), s = l === "loading", c = ae(() => {
|
|
32817
32824
|
i.queries.refetchDataByQueryID(e);
|
|
32818
32825
|
}, [e, i]), d = () => {
|
|
32819
|
-
i.queries.downloadDataByQueryID(e);
|
|
32826
|
+
i.queries.downloadDataByQueryID(null, e);
|
|
32820
32827
|
};
|
|
32821
|
-
|
|
32828
|
+
N(() => {
|
|
32822
32829
|
n && c();
|
|
32823
32830
|
}, [c, n]);
|
|
32824
32831
|
const h = !Array.isArray(o) || o.length === 0;
|
|
@@ -32843,7 +32850,7 @@ const q6 = [{
|
|
|
32843
32850
|
overflow: "auto"
|
|
32844
32851
|
}, children: [
|
|
32845
32852
|
/* @__PURE__ */ r(j6, { queryID: e }),
|
|
32846
|
-
/* @__PURE__ */ r(
|
|
32853
|
+
/* @__PURE__ */ r(B6, { data: o, loading: s })
|
|
32847
32854
|
] })
|
|
32848
32855
|
] });
|
|
32849
32856
|
}), Q6 = D(function() {
|
|
@@ -32851,7 +32858,7 @@ const q6 = [{
|
|
|
32851
32858
|
t
|
|
32852
32859
|
} = x(), n = de(), a = ce(), {
|
|
32853
32860
|
panel: i
|
|
32854
|
-
} =
|
|
32861
|
+
} = Ae(), [o, l] = G(!1), s = (d) => {
|
|
32855
32862
|
n.editor.setPath(["_QUERIES_", d]);
|
|
32856
32863
|
}, c = i.queryIDs.length;
|
|
32857
32864
|
return /* @__PURE__ */ u(F, { children: [
|
|
@@ -32913,7 +32920,7 @@ const U6 = D(({
|
|
|
32913
32920
|
const {
|
|
32914
32921
|
t: n
|
|
32915
32922
|
} = x(), [a, i] = ul(e);
|
|
32916
|
-
|
|
32923
|
+
N(() => {
|
|
32917
32924
|
i(e);
|
|
32918
32925
|
}, [e]);
|
|
32919
32926
|
const o = W6(), l = e !== a;
|
|
@@ -32942,7 +32949,7 @@ function Y6() {
|
|
|
32942
32949
|
description: l,
|
|
32943
32950
|
id: s
|
|
32944
32951
|
}
|
|
32945
|
-
} =
|
|
32952
|
+
} = Ae(), {
|
|
32946
32953
|
vizManager: c
|
|
32947
32954
|
} = Ht(Kt), d = {
|
|
32948
32955
|
name: i,
|
|
@@ -32964,7 +32971,7 @@ const X6 = D(() => {
|
|
|
32964
32971
|
panel: {
|
|
32965
32972
|
viz: t
|
|
32966
32973
|
}
|
|
32967
|
-
} =
|
|
32974
|
+
} = Ae(), {
|
|
32968
32975
|
vizManager: n
|
|
32969
32976
|
} = Ht(Kt), a = $.useCallback((d) => {
|
|
32970
32977
|
if (d === t.type)
|
|
@@ -33006,7 +33013,7 @@ const X6 = D(() => {
|
|
|
33006
33013
|
const {
|
|
33007
33014
|
t: n
|
|
33008
33015
|
} = x(), a = ce(), [i, o] = G(t);
|
|
33009
|
-
|
|
33016
|
+
N(() => {
|
|
33010
33017
|
o(t);
|
|
33011
33018
|
}, [t]);
|
|
33012
33019
|
const [l, {
|
|
@@ -33138,7 +33145,7 @@ class e4 {
|
|
|
33138
33145
|
function t4() {
|
|
33139
33146
|
const {
|
|
33140
33147
|
panel: e
|
|
33141
|
-
} =
|
|
33148
|
+
} = Ae();
|
|
33142
33149
|
return $t(() => new e4(e), [e]);
|
|
33143
33150
|
}
|
|
33144
33151
|
const n4 = $.forwardRef(function({
|
|
@@ -33267,7 +33274,7 @@ const s4 = D(({
|
|
|
33267
33274
|
const {
|
|
33268
33275
|
t
|
|
33269
33276
|
} = x(), n = wt(), a = de(), i = ce(), [o, l] = G(a.editor.panelTab), s = e.queries, d = l4(e.viz.type) && e.dataLoading, h = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || s.length === 0, p = a.editor.path[1];
|
|
33270
|
-
|
|
33277
|
+
N(() => {
|
|
33271
33278
|
l((w) => h && w === "Visualization" ? "Data" : w);
|
|
33272
33279
|
}, [e.id, h]);
|
|
33273
33280
|
const g = ae((w) => {
|
|
@@ -33786,7 +33793,7 @@ const x4 = D(({
|
|
|
33786
33793
|
const {
|
|
33787
33794
|
t
|
|
33788
33795
|
} = x(), n = e.dbInfo;
|
|
33789
|
-
return
|
|
33796
|
+
return N(() => {
|
|
33790
33797
|
n.loadTablesIfEmpty();
|
|
33791
33798
|
}, [n]), n.tables.error ? /* @__PURE__ */ r(k, { c: "red", size: "md", ta: "center", ff: "monospace", children: n.tables.error }) : /* @__PURE__ */ u(tt, { sx: {
|
|
33792
33799
|
height: "100%"
|
|
@@ -33948,7 +33955,7 @@ const x4 = D(({
|
|
|
33948
33955
|
const {
|
|
33949
33956
|
t
|
|
33950
33957
|
} = x(), [n, a] = G(e.name);
|
|
33951
|
-
|
|
33958
|
+
N(() => {
|
|
33952
33959
|
a(e.name);
|
|
33953
33960
|
}, [e.name]);
|
|
33954
33961
|
const i = z(() => e.conditionOptionsWithInvalidRunbys.optionGroups.map((l) => ({
|
|
@@ -34045,7 +34052,7 @@ WHERE
|
|
|
34045
34052
|
/* @__PURE__ */ r(A4, {})
|
|
34046
34053
|
] }) })
|
|
34047
34054
|
] }) });
|
|
34048
|
-
}),
|
|
34055
|
+
}), Ni = D(() => {
|
|
34049
34056
|
const {
|
|
34050
34057
|
t: e
|
|
34051
34058
|
} = x(), [t, n] = G(!1);
|
|
@@ -34074,7 +34081,7 @@ WHERE
|
|
|
34074
34081
|
/* @__PURE__ */ u(S.List, { children: [
|
|
34075
34082
|
/* @__PURE__ */ r(S.Tab, { value: "pre_process", children: t("query.build_request") }),
|
|
34076
34083
|
/* @__PURE__ */ r(S.Tab, { value: "post_process", children: t("query.process_result") }),
|
|
34077
|
-
/* @__PURE__ */ r(
|
|
34084
|
+
/* @__PURE__ */ r(Ni, {})
|
|
34078
34085
|
] }),
|
|
34079
34086
|
/* @__PURE__ */ r(S.Panel, { value: "pre_process", sx: {
|
|
34080
34087
|
position: "relative"
|
|
@@ -34160,7 +34167,7 @@ WHERE
|
|
|
34160
34167
|
}, s = () => {
|
|
34161
34168
|
i(R4);
|
|
34162
34169
|
};
|
|
34163
|
-
|
|
34170
|
+
N(() => {
|
|
34164
34171
|
i(n.sql);
|
|
34165
34172
|
}, [n.sql]);
|
|
34166
34173
|
const c = a !== n.sql;
|
|
@@ -34226,7 +34233,7 @@ WHERE
|
|
|
34226
34233
|
/* @__PURE__ */ r(S.Tab, { value: "Preview", children: t("query.preview_sql") }),
|
|
34227
34234
|
/* @__PURE__ */ r(S.Tab, { value: "pre_process", children: t("query.process_request") }),
|
|
34228
34235
|
/* @__PURE__ */ r(S.Tab, { value: "post_process", children: t("query.process_result") }),
|
|
34229
|
-
/* @__PURE__ */ r(
|
|
34236
|
+
/* @__PURE__ */ r(Ni, {}),
|
|
34230
34237
|
e.datasource && /* @__PURE__ */ r(Wd, { dataSource: e.datasource })
|
|
34231
34238
|
] }),
|
|
34232
34239
|
/* @__PURE__ */ r(S.Panel, { value: "Edit", sx: {
|
|
@@ -34238,11 +34245,11 @@ WHERE
|
|
|
34238
34245
|
}, p: "sm", children: /* @__PURE__ */ r(gn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Go.pre }) }),
|
|
34239
34246
|
/* @__PURE__ */ r(S.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r(gn, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Go.post }) })
|
|
34240
34247
|
] });
|
|
34241
|
-
}),
|
|
34248
|
+
}), N4 = {
|
|
34242
34249
|
pre: ["function transform(queries, state, utils) {", " // use queries & dashboar state to build new data", " const data = []", " return data", "}"].join(`
|
|
34243
34250
|
`),
|
|
34244
34251
|
post: ""
|
|
34245
|
-
},
|
|
34252
|
+
}, B4 = D(({
|
|
34246
34253
|
queryModel: e
|
|
34247
34254
|
}) => {
|
|
34248
34255
|
const {
|
|
@@ -34259,7 +34266,7 @@ WHERE
|
|
|
34259
34266
|
/* @__PURE__ */ r(k, { size: "sm", children: t("query.transform.guide.write_function") }),
|
|
34260
34267
|
/* @__PURE__ */ r(A, { sx: {
|
|
34261
34268
|
flexGrow: 1
|
|
34262
|
-
}, children: /* @__PURE__ */ r(gn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue:
|
|
34269
|
+
}, children: /* @__PURE__ */ r(gn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: N4.pre }) })
|
|
34263
34270
|
] });
|
|
34264
34271
|
}), Fn = {
|
|
34265
34272
|
height: "calc(100% - 44px)",
|
|
@@ -34271,7 +34278,7 @@ WHERE
|
|
|
34271
34278
|
const {
|
|
34272
34279
|
t
|
|
34273
34280
|
} = x(), n = ce(), a = z(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [i, o] = G(a);
|
|
34274
|
-
|
|
34281
|
+
N(() => {
|
|
34275
34282
|
o((c) => c !== "Configurations" && a === "Configurations" ? "Configurations" : c);
|
|
34276
34283
|
}, [a]);
|
|
34277
34284
|
const s = n.findQueryUsage(e.id).length === 0;
|
|
@@ -34295,7 +34302,7 @@ WHERE
|
|
|
34295
34302
|
}, children: /* @__PURE__ */ r($4, { queryModel: e }) }) }),
|
|
34296
34303
|
e.isTransform && /* @__PURE__ */ r(S.Panel, { value: "Transform", sx: Fn, children: /* @__PURE__ */ r(T, { sx: {
|
|
34297
34304
|
height: "100%"
|
|
34298
|
-
}, children: /* @__PURE__ */ r(
|
|
34305
|
+
}, children: /* @__PURE__ */ r(B4, { queryModel: e }) }) }),
|
|
34299
34306
|
/* @__PURE__ */ r(S.Panel, { value: "Data", sx: {
|
|
34300
34307
|
...Fn,
|
|
34301
34308
|
overflow: "hidden"
|
|
@@ -34418,7 +34425,7 @@ function K4({
|
|
|
34418
34425
|
data: e,
|
|
34419
34426
|
columns: t,
|
|
34420
34427
|
columnResizeMode: "onChange",
|
|
34421
|
-
getCoreRowModel:
|
|
34428
|
+
getCoreRowModel: Na()
|
|
34422
34429
|
});
|
|
34423
34430
|
return e.length === 0 ? /* @__PURE__ */ r(A, { sx: {
|
|
34424
34431
|
height: "5em"
|
|
@@ -34549,7 +34556,7 @@ const Y4 = [{
|
|
|
34549
34556
|
}, [e.fetchData]), o = () => {
|
|
34550
34557
|
od(e.name, e.data);
|
|
34551
34558
|
};
|
|
34552
|
-
|
|
34559
|
+
N(() => {
|
|
34553
34560
|
i();
|
|
34554
34561
|
}, [i]);
|
|
34555
34562
|
const l = !Array.isArray(t) || t.length === 0;
|
|
@@ -34622,7 +34629,7 @@ const Y4 = [{
|
|
|
34622
34629
|
] }), lD = () => /* @__PURE__ */ u("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
34623
34630
|
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_567_6919)", children: /* @__PURE__ */ r("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.00001 1.02051C7.29533 1.02051 7.53473 1.25991 7.53473 1.55523V2.99492L11.3486 5.17429C11.5152 5.2695 11.6181 5.44667 11.6181 5.63856V9.97475L13.0725 10.702C13.3366 10.834 13.4437 11.1552 13.3116 11.4194C13.1795 11.6835 12.8583 11.7906 12.5942 11.6585L11.1002 10.9115L7.26531 13.1028C7.10091 13.1968 6.8991 13.1968 6.73471 13.1028L2.89985 10.9115L1.40581 11.6585C1.14167 11.7906 0.820476 11.6835 0.688405 11.4194C0.556335 11.1552 0.663399 10.834 0.92754 10.702L2.38195 9.97475V5.63856C2.38195 5.44667 2.48477 5.2695 2.65138 5.17429L6.46529 2.99492V1.55523C6.46529 1.25991 6.70469 1.02051 7.00001 1.02051ZM7.00001 3.9211L3.99444 5.63856L7.00001 7.35603L10.0056 5.63856L7.00001 3.9211ZM10.5486 6.55999L7.53473 8.28221V11.7171L10.5486 9.99492V6.55999ZM6.46529 11.7171V8.28221L3.4514 6.55999V9.99492L6.46529 11.7171Z", fill: "#3D3E45" }) }),
|
|
34624
34631
|
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "clip0_567_6919", children: /* @__PURE__ */ r("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
34625
|
-
] }),
|
|
34632
|
+
] }), Bi = ({
|
|
34626
34633
|
type: e
|
|
34627
34634
|
}) => {
|
|
34628
34635
|
switch (e) {
|
|
@@ -34702,7 +34709,7 @@ const Y4 = [{
|
|
|
34702
34709
|
const a = [];
|
|
34703
34710
|
return t && a.push("sub-option"), n && a.push("disabled"), /* @__PURE__ */ r(Ft.Option, { value: e.value, className: a.join(" "), disabled: n, children: /* @__PURE__ */ u(T, { gap: 1, children: [
|
|
34704
34711
|
/* @__PURE__ */ u(_, { gap: 4, children: [
|
|
34705
|
-
/* @__PURE__ */ r(
|
|
34712
|
+
/* @__PURE__ */ r(Bi, { type: e.dataType }),
|
|
34706
34713
|
/* @__PURE__ */ r(k, { size: "xs", children: e.label })
|
|
34707
34714
|
] }),
|
|
34708
34715
|
/* @__PURE__ */ r(k, { size: "xs", c: "dimmed", pl: 18, children: e.description })
|
|
@@ -34728,7 +34735,7 @@ const Y4 = [{
|
|
|
34728
34735
|
}) => /* @__PURE__ */ r(Ft.Group, { label: p, children: g.map((y) => {
|
|
34729
34736
|
var b;
|
|
34730
34737
|
return "group" in y ? /* @__PURE__ */ r(Ft.Group, { className: "dimension-group", label: /* @__PURE__ */ u(_, { gap: 4, children: [
|
|
34731
|
-
/* @__PURE__ */ r(
|
|
34738
|
+
/* @__PURE__ */ r(Bi, { type: "dimension" }),
|
|
34732
34739
|
/* @__PURE__ */ r(k, { size: "sm", children: y.group }),
|
|
34733
34740
|
/* @__PURE__ */ r(k, { size: "xs", c: "dimmed", children: y.description })
|
|
34734
34741
|
] }), children: (b = y.items) == null ? void 0 : b.map((w) => Uo(w, !0, a.has(w.value))) }, y.group) : Uo(y, !1, a.has(y.value));
|
|
@@ -34792,7 +34799,7 @@ const Y4 = [{
|
|
|
34792
34799
|
/* @__PURE__ */ r(k, { size: "xs", c: t.checked ? "rgba(255,255,255,.8)" : "dimmed", style: {
|
|
34793
34800
|
flexShrink: 0,
|
|
34794
34801
|
flexGrow: 0
|
|
34795
|
-
}, children: n(
|
|
34802
|
+
}, children: n(Nt[a.widget]) })
|
|
34796
34803
|
] })
|
|
34797
34804
|
] });
|
|
34798
34805
|
}, vr = D(({
|
|
@@ -34851,7 +34858,7 @@ const Y4 = [{
|
|
|
34851
34858
|
queryModel: e
|
|
34852
34859
|
}) => {
|
|
34853
34860
|
const t = e.config, a = e.datasource.mericoMetricInfo;
|
|
34854
|
-
return
|
|
34861
|
+
return N(() => {
|
|
34855
34862
|
a.selectMetric(t.id);
|
|
34856
34863
|
}, [t.id, a]), /* @__PURE__ */ u(T, { gap: 7, children: [
|
|
34857
34864
|
/* @__PURE__ */ u(_, { justify: "flex-start", gap: 8, children: [
|
|
@@ -34908,7 +34915,7 @@ const Y4 = [{
|
|
|
34908
34915
|
queryModel: e
|
|
34909
34916
|
}) => {
|
|
34910
34917
|
const t = e.config, i = e.datasource.mericoMetricInfo.metricDetail, o = i.trendingDateCol, l = t.timeQuery.enabled;
|
|
34911
|
-
return
|
|
34918
|
+
return N(() => {
|
|
34912
34919
|
if (!l && i.requireTrendingReason) {
|
|
34913
34920
|
t.setTimeQueryEnabled(!0);
|
|
34914
34921
|
return;
|
|
@@ -35009,7 +35016,7 @@ const Y4 = [{
|
|
|
35009
35016
|
}
|
|
35010
35017
|
}, children: [
|
|
35011
35018
|
/* @__PURE__ */ u(_, { gap: 4, children: [
|
|
35012
|
-
/* @__PURE__ */ r(
|
|
35019
|
+
/* @__PURE__ */ r(Bi, { type: t.dataType }),
|
|
35013
35020
|
/* @__PURE__ */ r(k, { size: "xs", children: t.label })
|
|
35014
35021
|
] }),
|
|
35015
35022
|
/* @__PURE__ */ r(k, { size: "xs", c: "dimmed", pl: 18, children: t.description })
|
|
@@ -35030,7 +35037,7 @@ const Y4 = [{
|
|
|
35030
35037
|
queryModel: e
|
|
35031
35038
|
}) => {
|
|
35032
35039
|
const t = e.config, n = t.id;
|
|
35033
|
-
return
|
|
35040
|
+
return N(() => {
|
|
35034
35041
|
if (e.run_by.length === 0)
|
|
35035
35042
|
return;
|
|
35036
35043
|
const a = [], i = t.usedFilterVariableSet, o = t.usedTimeQueryVariableSet;
|
|
@@ -35110,9 +35117,9 @@ const Y4 = [{
|
|
|
35110
35117
|
queryModel: e
|
|
35111
35118
|
}) => {
|
|
35112
35119
|
const t = e.config, a = e.datasource.mericoMetricInfo, i = a.metrics;
|
|
35113
|
-
|
|
35120
|
+
N(() => {
|
|
35114
35121
|
i.load();
|
|
35115
|
-
}, [i]),
|
|
35122
|
+
}, [i]), N(() => {
|
|
35116
35123
|
!a.metricID && t.id && a.selectMetric(t.id);
|
|
35117
35124
|
}, [t.id]);
|
|
35118
35125
|
const o = z(() => i.data.map((d) => ({
|
|
@@ -35210,7 +35217,7 @@ const Y4 = [{
|
|
|
35210
35217
|
}, d = l !== e.key, h = e.isADuplicatedKey(l), [p, g] = G(e.value), y = () => {
|
|
35211
35218
|
e.setValue(p);
|
|
35212
35219
|
};
|
|
35213
|
-
|
|
35220
|
+
N(() => {
|
|
35214
35221
|
s(e.key), g(e.value);
|
|
35215
35222
|
}, [e]);
|
|
35216
35223
|
const b = p !== e.value, w = wt(), I = () => {
|
|
@@ -35254,7 +35261,7 @@ const Y4 = [{
|
|
|
35254
35261
|
}, children: [
|
|
35255
35262
|
/* @__PURE__ */ r(S.Tab, { value: "SQL", children: a("sql_snippet.edit_snippet") }),
|
|
35256
35263
|
/* @__PURE__ */ r(S.Tab, { value: "Preview", children: a("sql_snippet.preview_snippet") }),
|
|
35257
|
-
/* @__PURE__ */ r(
|
|
35264
|
+
/* @__PURE__ */ r(Ni, {}),
|
|
35258
35265
|
/* @__PURE__ */ r(ee, { color: "blue", variant: "filled", onClick: y, disabled: !b, sx: {
|
|
35259
35266
|
position: "absolute",
|
|
35260
35267
|
top: 0,
|
|
@@ -35581,12 +35588,12 @@ const Y4 = [{
|
|
|
35581
35588
|
overflow: "auto"
|
|
35582
35589
|
}, children: /* @__PURE__ */ r(qD, { view: o }) })
|
|
35583
35590
|
] });
|
|
35584
|
-
}),
|
|
35591
|
+
}), ND = D(() => /* @__PURE__ */ r(T, { sx: {
|
|
35585
35592
|
height: "100%"
|
|
35586
|
-
}, p: "sm", children: /* @__PURE__ */ r(Yd, {}) })),
|
|
35593
|
+
}, p: "sm", children: /* @__PURE__ */ r(Yd, {}) })), BD = D(() => {
|
|
35587
35594
|
const e = de().editor, t = e.path;
|
|
35588
|
-
return eT(t) ? /* @__PURE__ */ r(
|
|
35589
|
-
}), jD = D(() => /* @__PURE__ */ r(
|
|
35595
|
+
return eT(t) ? /* @__PURE__ */ r(ND, {}) : tT(t) ? /* @__PURE__ */ r(L6, {}) : nT(t) ? /* @__PURE__ */ r(M6, {}) : rT(t) ? /* @__PURE__ */ r(A, { p: "xs", pl: 20, children: /* @__PURE__ */ r(I6, { id: t[1] }) }) : aT(t) ? /* @__PURE__ */ r(AD, {}) : iT(t) ? /* @__PURE__ */ r(LD, { id: t[1] }) : lT(t) ? /* @__PURE__ */ r(d4, {}) : oT(t) ? /* @__PURE__ */ r(DD, { id: t[1] }) : sT(t) ? /* @__PURE__ */ r(A, { p: "xs", pl: 20, children: /* @__PURE__ */ r(FD, { id: t[1] }) }) : ya(t) ? /* @__PURE__ */ r(c4, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r(A, { children: e.path });
|
|
35596
|
+
}), jD = D(() => /* @__PURE__ */ r(BD, {})), QD = D(() => {
|
|
35590
35597
|
const {
|
|
35591
35598
|
t: e
|
|
35592
35599
|
} = x(), t = de();
|
|
@@ -35730,7 +35737,7 @@ const Y4 = [{
|
|
|
35730
35737
|
const {
|
|
35731
35738
|
t
|
|
35732
35739
|
} = x(), n = de().editor, a = n.isOptionActive, i = a(n.path, e), o = n.isOptionOpened, l = n.navigate, s = o(e), [c, d] = G(s);
|
|
35733
|
-
return
|
|
35740
|
+
return N(() => {
|
|
35734
35741
|
d(s);
|
|
35735
35742
|
}, [s]), /* @__PURE__ */ r(oa, { 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(ZD, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ r(Jd, { option: p }, p.value)) }, e.label);
|
|
35736
35743
|
}), JD = D(() => {
|
|
@@ -35813,7 +35820,7 @@ const Y4 = [{
|
|
|
35813
35820
|
] }) });
|
|
35814
35821
|
}), rI = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
35815
35822
|
function aI(e) {
|
|
35816
|
-
|
|
35823
|
+
N(() => {
|
|
35817
35824
|
if (Zr.__getMonacoInstance())
|
|
35818
35825
|
return;
|
|
35819
35826
|
console.log("loading monaco for @devtable/dashboard");
|
|
@@ -35876,7 +35883,7 @@ const iI = {
|
|
|
35876
35883
|
d == null || d(w.content.filters.values);
|
|
35877
35884
|
}, [d, w.content.filters.values]), $.useEffect(() => {
|
|
35878
35885
|
c && w.content.filters.patchValues(c);
|
|
35879
|
-
}, [c, w.content.filters.patchValues]), $.useEffect(() =>
|
|
35886
|
+
}, [c, w.content.filters.patchValues]), $.useEffect(() => Ne(() => Rt(w.json), (q) => {
|
|
35880
35887
|
l == null || l(q);
|
|
35881
35888
|
}), [w]);
|
|
35882
35889
|
const I = async () => {
|
|
@@ -35895,7 +35902,7 @@ const iI = {
|
|
|
35895
35902
|
onFilterValuesChange: d,
|
|
35896
35903
|
onExit: h,
|
|
35897
35904
|
lang: p
|
|
35898
|
-
}), /* @__PURE__ */ r(
|
|
35905
|
+
}), /* @__PURE__ */ r(Nl, { children: /* @__PURE__ */ r(zc, { lang: p, children: /* @__PURE__ */ r(Bl, { children: /* @__PURE__ */ r(us, { children: /* @__PURE__ */ r(rs, { value: {
|
|
35899
35906
|
searchButtonProps: o.searchButtonProps
|
|
35900
35907
|
}, children: /* @__PURE__ */ r(ts, { value: w, children: /* @__PURE__ */ r(is, { value: w.content, children: /* @__PURE__ */ u(Pr.Provider, { value: {
|
|
35901
35908
|
inEditMode: !0
|
|
@@ -36152,7 +36159,7 @@ const dI = ({
|
|
|
36152
36159
|
activeTab: d,
|
|
36153
36160
|
onActiveTabChange: h,
|
|
36154
36161
|
lang: p
|
|
36155
|
-
}), /* @__PURE__ */ r(
|
|
36162
|
+
}), /* @__PURE__ */ r(Nl, { children: /* @__PURE__ */ r(zc, { lang: p, children: /* @__PURE__ */ r(Bl, { children: /* @__PURE__ */ r(us, { children: /* @__PURE__ */ r(rs, { value: {
|
|
36156
36163
|
searchButtonProps: i.searchButtonProps
|
|
36157
36164
|
}, children: /* @__PURE__ */ r(ts, { value: b, children: /* @__PURE__ */ r(is, { value: b.content, children: /* @__PURE__ */ r(ds.Provider, { value: {
|
|
36158
36165
|
fullScreenPanelID: o,
|
|
@@ -36196,8 +36203,8 @@ export {
|
|
|
36196
36203
|
qc as FilterDateRangeConfigMeta,
|
|
36197
36204
|
Yc as FilterMeta,
|
|
36198
36205
|
Fc as FilterMultiSelectConfigMeta,
|
|
36199
|
-
|
|
36200
|
-
|
|
36206
|
+
Nc as FilterSelectConfigMeta,
|
|
36207
|
+
Bc as FilterTextInputConfigMeta,
|
|
36201
36208
|
Uc as FilterTreeSelectConfigMeta,
|
|
36202
36209
|
Kc as FilterTreeSingleSelectConfigMeta,
|
|
36203
36210
|
Rz as FiltersModel,
|
|
@@ -36287,7 +36294,7 @@ export {
|
|
|
36287
36294
|
Sm as useDashboardThemeContext,
|
|
36288
36295
|
ce as useEditContentModelContext,
|
|
36289
36296
|
de as useEditDashboardContext,
|
|
36290
|
-
|
|
36297
|
+
Ae as useEditPanelContext,
|
|
36291
36298
|
Dm as useFullScreenPanelContext,
|
|
36292
36299
|
zm as useIsInEditPanelContext,
|
|
36293
36300
|
km as useIsInRenderPanelContext,
|