@devtable/dashboard 8.51.2 → 8.53.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.es.js +174 -170
- package/dist/dashboard.umd.js +18 -18
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -2,14 +2,14 @@ var sl = Object.defineProperty;
|
|
|
2
2
|
var cl = (e, t, r) => t in e ? sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var R = (e, t, r) => (cl(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import * as Un from "/Users/leto/Merico/merico-dev/table/node_modules/react/jsx-runtime.js";
|
|
5
|
-
import { Box as V, Text as v, Button as D, Checkbox as K, Group as y, Tooltip as ee, MultiSelect as Et, Select as A, TextInput as I, createStyles as Nt, Stack as _, Badge as ln, CloseButton as dl, Modal as ie, ActionIcon as $, Menu as
|
|
5
|
+
import { Box as V, Text as v, Button as D, Checkbox as K, Group as y, Tooltip as ee, MultiSelect as Et, Select as A, TextInput as I, createStyles as Nt, Stack as _, Badge as ln, CloseButton as dl, Modal as ie, ActionIcon as $, Menu as He, Divider as L, Switch as ge, NumberInput as j, useMantineTheme as Ii, ColorInput as Xn, ColorSwatch as Bn, Slider as ul, Overlay as ut, Tabs as x, Center as Ct, CheckIcon as hl, MANTINE_SIZES as pl, SimpleGrid as yt, SegmentedControl as ml, Textarea as gl, Collapse as Kn, Table as ht, Accordion as lt, Popover as Vn, LoadingOverlay as pt, Flex as Bt, Paper as Zn, Code as ti, Alert as fl, Header as bl, ThemeIcon as Rn, HoverCard as Mn, List as ni, UnstyledButton as xl, Navbar as Ye, JsonInput as zi, Radio as ri, Skeleton as ii, NavLink as qn, Pagination as yl, Anchor as ai, AppShell as Li } from "@mantine/core";
|
|
6
6
|
import { useModals as nt, ModalsProvider as Ai } from "@mantine/modals";
|
|
7
7
|
import { useCreation as Me, usePrevious as vl, useBoolean as ve, useLatest as oi, useRequest as qt, useAsyncEffect as Wt } from "ahooks";
|
|
8
8
|
import { observer as S } from "mobx-react-lite";
|
|
9
|
-
import z, { useEffect as M, createContext as Vi, useMemo as k, forwardRef as te, useState as N, useCallback as fe, useContext as
|
|
9
|
+
import z, { useEffect as M, createContext as Vi, useMemo as k, forwardRef as te, useState as N, useCallback as fe, useContext as Be, useRef as wl, createElement as pn, memo as _l } from "react";
|
|
10
10
|
import C, { template as Jn, cloneDeepWith as Ri, get as H, isFunction as Cl, omit as ct, values as Mi, unset as Sl, isObject as Pi, set as er, orderBy as kl, last as Fi, defaults as re, minBy as Tl, maxBy as Dl, cloneDeep as ce, isEqual as Z, defaultsDeep as ne, keyBy as $i, merge as Il, isEmpty as tr, isNumber as zl, findLastIndex as Ll, isString as Oi, range as Al, throttle as Vl, pick as Ei } from "lodash";
|
|
11
11
|
import { useForm as oe, useWatch as Rl, Controller as b, useFieldArray as se } from "react-hook-form";
|
|
12
|
-
import { IconInfoCircle as nr, IconPlus as rt, IconDeviceFloppy as Gt, IconBorderAll as Ml, IconTrash as
|
|
12
|
+
import { IconInfoCircle as nr, IconPlus as rt, IconDeviceFloppy as Gt, IconBorderAll as Ml, IconTrash as vt, IconArrowDown as Pl, IconArrowUp as Fl, IconArrowsLeftRight as $l, IconVariable as Ol, IconCodeDots as El, IconFilter as Ni, IconCopy as Nl, IconDatabase as mn, IconBoxMultiple as Bi, IconArrowLeft as Bl, IconPlaylistAdd as ql, IconCode as Wl, IconDownload as Gl, IconRecycle as qi, IconAlertTriangle as li, IconCircleDashed as jl, IconCircleDot as Hl, IconCircleOff as Ql, IconAdjustments as Yl, IconLink as Ul, IconSettings as Xl, IconArrowCurveRight as Kl, IconX as Wi, IconEye as Zl, IconTable as Jl, IconColumns as es, IconPlayerSkipBack as ts } from "@tabler/icons";
|
|
13
13
|
import { Link as Gi, RichTextEditor as W, useRichTextEditorContext as ns } from "@mantine/tiptap";
|
|
14
14
|
import { Color as ji } from "@tiptap/extension-color";
|
|
15
15
|
import Hi from "@tiptap/extension-highlight";
|
|
@@ -40,7 +40,7 @@ import { GridComponent as Pe, VisualMapComponent as rr, LegendComponent as Fe, T
|
|
|
40
40
|
import { CanvasRenderer as Ce } from "/Users/leto/Merico/merico-dev/table/node_modules/echarts/renderers.js";
|
|
41
41
|
import Se from "/Users/leto/Merico/merico-dev/table/node_modules/echarts-for-react/lib/core.js";
|
|
42
42
|
import X from "numbro";
|
|
43
|
-
import { BoxplotChart as bs, BarChart as
|
|
43
|
+
import { BoxplotChart as bs, BarChart as St, LineChart as kt, ScatterChart as xn, FunnelChart as xs, HeatmapChart as ua, PieChart as ys, RadarChart as vs, SunburstChart as ws } from "/Users/leto/Merico/merico-dev/table/node_modules/echarts/charts.js";
|
|
44
44
|
import { useElementSize as Ft, randomId as dt, useClipboard as _s, useInputState as ha, useDisclosure as pa } from "@mantine/hooks";
|
|
45
45
|
import { showNotification as yn } from "@mantine/notifications";
|
|
46
46
|
import * as Cs from "d3-array";
|
|
@@ -49,11 +49,11 @@ import * as rn from "mathjs";
|
|
|
49
49
|
import { interpolate as vn } from "popmotion";
|
|
50
50
|
import Ie, { loader as Fn } from "@monaco-editor/react";
|
|
51
51
|
import * as Ze from "d3-regression";
|
|
52
|
-
import { Prism as
|
|
52
|
+
import { Prism as wt } from "@mantine/prism";
|
|
53
53
|
import { flexRender as sn, createColumnHelper as ma, useReactTable as ga, getCoreRowModel as fa, getSortedRowModel as Ss } from "@tanstack/react-table";
|
|
54
54
|
import { useVirtual as ks } from "react-virtual";
|
|
55
55
|
import Je from "axios";
|
|
56
|
-
import { types as f, getParent as Re, getRoot as pe, cast as
|
|
56
|
+
import { types as f, getParent as Re, getRoot as pe, cast as Tt, addDisposer as et, addMiddleware as Ts, getType as Ds, isAlive as ci, flow as bt, toGenerator as st, detach as Is, clone as zs, getSnapshot as Oe, applySnapshot as ye, getParentOfType as di, castToSnapshot as ba } from "mobx-state-tree";
|
|
57
57
|
import Ls from "jszip";
|
|
58
58
|
import { saveAs as ar } from "file-saver";
|
|
59
59
|
import xa from "crypto-js";
|
|
@@ -183,7 +183,7 @@ class fc {
|
|
|
183
183
|
this.symbol = Symbol(t);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Qe(e) {
|
|
187
187
|
return new fc(e);
|
|
188
188
|
}
|
|
189
189
|
class or {
|
|
@@ -440,7 +440,7 @@ const sr = {
|
|
|
440
440
|
layoutFrozen: !1,
|
|
441
441
|
freezeLayout: C.noop,
|
|
442
442
|
inEditMode: !1
|
|
443
|
-
},
|
|
443
|
+
}, mt = z.createContext(vc), Sa = z.createContext({
|
|
444
444
|
panel: null,
|
|
445
445
|
data: [],
|
|
446
446
|
loading: !1
|
|
@@ -995,7 +995,7 @@ function Fc(e) {
|
|
|
995
995
|
const La = S(() => {
|
|
996
996
|
const {
|
|
997
997
|
freezeLayout: e
|
|
998
|
-
} = z.useContext(
|
|
998
|
+
} = z.useContext(mt), [t, r] = z.useState(!1), {
|
|
999
999
|
panel: i
|
|
1000
1000
|
} = me();
|
|
1001
1001
|
return z.useEffect(() => {
|
|
@@ -1024,7 +1024,7 @@ const La = S(() => {
|
|
|
1024
1024
|
query: o
|
|
1025
1025
|
} = i, {
|
|
1026
1026
|
inEditMode: l
|
|
1027
|
-
} = z.useContext(
|
|
1027
|
+
} = z.useContext(mt), s = () => o == null ? void 0 : o.fetchData(), {
|
|
1028
1028
|
viewPanelInFullScreen: d,
|
|
1029
1029
|
inFullScreen: u
|
|
1030
1030
|
} = z.useContext(lr), p = () => {
|
|
@@ -1052,20 +1052,20 @@ const La = S(() => {
|
|
|
1052
1052
|
left: 0,
|
|
1053
1053
|
right: 0,
|
|
1054
1054
|
zIndex: 300
|
|
1055
|
-
}, children: /* @__PURE__ */ c(
|
|
1056
|
-
/* @__PURE__ */ n(
|
|
1055
|
+
}, children: /* @__PURE__ */ c(He, { withinPortal: !0, children: [
|
|
1056
|
+
/* @__PURE__ */ n(He.Target, { children: /* @__PURE__ */ n(V, { className: "panel-dropdown-target", sx: {
|
|
1057
1057
|
width: "100%",
|
|
1058
1058
|
height: "25px"
|
|
1059
1059
|
} }) }),
|
|
1060
|
-
/* @__PURE__ */ c(
|
|
1061
|
-
/* @__PURE__ */ n(
|
|
1062
|
-
/* @__PURE__ */ n(
|
|
1063
|
-
w && /* @__PURE__ */ n(
|
|
1060
|
+
/* @__PURE__ */ c(He.Dropdown, { children: [
|
|
1061
|
+
/* @__PURE__ */ n(He.Item, { onClick: s, icon: /* @__PURE__ */ n(aa, { size: 14 }), children: "Refresh" }),
|
|
1062
|
+
/* @__PURE__ */ n(He.Item, { onClick: () => t.queries.downloadDataByQueryID((o == null ? void 0 : o.id) ?? ""), icon: /* @__PURE__ */ n(oa, { size: 14 }), children: "Download Data" }),
|
|
1063
|
+
w && /* @__PURE__ */ n(He.Item, { onClick: g, icon: /* @__PURE__ */ n(as, { size: 14 }), disabled: l, children: "Full Screen" }),
|
|
1064
1064
|
l && /* @__PURE__ */ c(P, { children: [
|
|
1065
1065
|
/* @__PURE__ */ n(L, { label: "Edit", labelPosition: "center" }),
|
|
1066
|
-
/* @__PURE__ */ n(
|
|
1067
|
-
/* @__PURE__ */ n(
|
|
1068
|
-
/* @__PURE__ */ n(
|
|
1066
|
+
/* @__PURE__ */ n(He.Item, { onClick: m, icon: /* @__PURE__ */ n(la, { size: 14 }), children: "Settings" }),
|
|
1067
|
+
/* @__PURE__ */ n(He.Item, { onClick: p, icon: /* @__PURE__ */ n(os, { size: 14 }), children: "Duplicate" }),
|
|
1068
|
+
/* @__PURE__ */ n(He.Item, { color: "red", onClick: h, icon: /* @__PURE__ */ n(Y, { size: 14 }), children: "Delete" })
|
|
1069
1069
|
] })
|
|
1070
1070
|
] })
|
|
1071
1071
|
] }) }) });
|
|
@@ -1079,11 +1079,11 @@ const Oc = S(function() {
|
|
|
1079
1079
|
return r ? /* @__PURE__ */ n(y, { grow: !0, position: "center", px: 20, className: "panel-title-wrapper", sx: {
|
|
1080
1080
|
flexGrow: 1
|
|
1081
1081
|
}, children: /* @__PURE__ */ n(v, { align: "center", lineClamp: 1, weight: "bold", children: r }) }) : null;
|
|
1082
|
-
}),
|
|
1082
|
+
}), qe = (e, t) => {
|
|
1083
1083
|
const [r, i] = N([]);
|
|
1084
1084
|
return M(() => e.watchTriggerSnapshotList((a) => i(a.filter((o) => o.schemaRef === t))), []), r;
|
|
1085
1085
|
};
|
|
1086
|
-
class
|
|
1086
|
+
class xt {
|
|
1087
1087
|
constructor(t, r) {
|
|
1088
1088
|
this.root = t, this.path = r;
|
|
1089
1089
|
}
|
|
@@ -1120,21 +1120,21 @@ class bt {
|
|
|
1120
1120
|
class cr {
|
|
1121
1121
|
constructor(t, r, i) {
|
|
1122
1122
|
R(this, "attachmentStorage");
|
|
1123
|
-
this.instance = t, this.attachmentKey = r, this.constructInstance = i, this.attachmentStorage = new
|
|
1123
|
+
this.instance = t, this.attachmentKey = r, this.constructInstance = i, this.attachmentStorage = new xt(t.instanceData, r);
|
|
1124
1124
|
}
|
|
1125
1125
|
async getInstance(t) {
|
|
1126
1126
|
if (await this.attachmentStorage.getItem(t))
|
|
1127
|
-
return this.constructInstance(new
|
|
1127
|
+
return this.constructInstance(new xt(this.attachmentStorage, t));
|
|
1128
1128
|
}
|
|
1129
1129
|
async create(t, r) {
|
|
1130
|
-
return await this.attachmentStorage.setItem(t, r), this.constructInstance(new
|
|
1130
|
+
return await this.attachmentStorage.setItem(t, r), this.constructInstance(new xt(this.attachmentStorage, t));
|
|
1131
1131
|
}
|
|
1132
1132
|
async remove(t) {
|
|
1133
1133
|
await this.attachmentStorage.deleteItem(t);
|
|
1134
1134
|
}
|
|
1135
1135
|
async list() {
|
|
1136
1136
|
const t = await this.attachmentStorage.getItem(null);
|
|
1137
|
-
return Promise.all(Mi(t).map((r) => this.constructInstance(new
|
|
1137
|
+
return Promise.all(Mi(t).map((r) => this.constructInstance(new xt(this.attachmentStorage, r.id))));
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
class Aa {
|
|
@@ -1315,7 +1315,7 @@ const Bc = (e) => {
|
|
|
1315
1315
|
getColor: Cn(["#fff7f1", "darkorange", "#b60000"]),
|
|
1316
1316
|
name: "orange",
|
|
1317
1317
|
category: "sequential"
|
|
1318
|
-
}, Ma = "@devtable/dashboard", dr = "8.
|
|
1318
|
+
}, Ma = "@devtable/dashboard", dr = "8.53.0", Pa = "Apache-2.0", Fa = {
|
|
1319
1319
|
access: "public",
|
|
1320
1320
|
registry: "https://registry.npmjs.org/"
|
|
1321
1321
|
}, $a = [
|
|
@@ -1928,7 +1928,7 @@ function ad({
|
|
|
1928
1928
|
] })
|
|
1929
1929
|
] });
|
|
1930
1930
|
}
|
|
1931
|
-
const
|
|
1931
|
+
const We = z.forwardRef(ad), Ne = {
|
|
1932
1932
|
enabled: !1,
|
|
1933
1933
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
1934
1934
|
`)
|
|
@@ -2005,7 +2005,7 @@ const sd = [{
|
|
|
2005
2005
|
)
|
|
2006
2006
|
] })
|
|
2007
2007
|
] });
|
|
2008
|
-
}),
|
|
2008
|
+
}), gt = te(({
|
|
2009
2009
|
value: e,
|
|
2010
2010
|
onChange: t
|
|
2011
2011
|
}, r) => {
|
|
@@ -2024,7 +2024,7 @@ const sd = [{
|
|
|
2024
2024
|
/* @__PURE__ */ n(cn, { sectionTitle: "Overflow on Axis", value: e.on_axis, onChange: i }),
|
|
2025
2025
|
/* @__PURE__ */ n(cn, { sectionTitle: "Overflow in Tooltip", value: e.in_tooltip, onChange: a })
|
|
2026
2026
|
] });
|
|
2027
|
-
}),
|
|
2027
|
+
}), Ue = {
|
|
2028
2028
|
on_axis: {
|
|
2029
2029
|
width: 80,
|
|
2030
2030
|
overflow: "truncate",
|
|
@@ -2073,7 +2073,7 @@ const hr = {
|
|
|
2073
2073
|
formatter: {
|
|
2074
2074
|
...Ne
|
|
2075
2075
|
},
|
|
2076
|
-
overflow:
|
|
2076
|
+
overflow: Ue
|
|
2077
2077
|
}
|
|
2078
2078
|
},
|
|
2079
2079
|
y_axis: {
|
|
@@ -2187,7 +2187,7 @@ function pd({
|
|
|
2187
2187
|
}, r) {
|
|
2188
2188
|
const {
|
|
2189
2189
|
colorManager: i
|
|
2190
|
-
} =
|
|
2190
|
+
} = Be(Ge), a = z.useMemo(() => i.getStaticColors().map((s) => ({
|
|
2191
2191
|
label: s.name,
|
|
2192
2192
|
group: s.category,
|
|
2193
2193
|
// todo: select color by reference instead of value, e.g. $category.name
|
|
@@ -2344,7 +2344,7 @@ z.forwardRef(function({
|
|
|
2344
2344
|
] }),
|
|
2345
2345
|
/* @__PURE__ */ n(Sn, { label: "Aggregation", value: t.aggregation, onChange: (s) => l("aggregation", s) }),
|
|
2346
2346
|
/* @__PURE__ */ n(L, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
2347
|
-
/* @__PURE__ */ n(
|
|
2347
|
+
/* @__PURE__ */ n(We, { value: t.formatter, onChange: (s) => l("formatter", s) }),
|
|
2348
2348
|
a && /* @__PURE__ */ n(Ya, { value: t, onChange: r })
|
|
2349
2349
|
] });
|
|
2350
2350
|
});
|
|
@@ -2409,7 +2409,7 @@ function Ut({
|
|
|
2409
2409
|
}, r) {
|
|
2410
2410
|
return Yt(r, e, t);
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2412
|
+
function ft({
|
|
2413
2413
|
formatter: e
|
|
2414
2414
|
}, t) {
|
|
2415
2415
|
return ["string", "number"].includes(typeof t) ? X(t).format(e) : vd(t);
|
|
@@ -2434,7 +2434,7 @@ function Ua(e, t) {
|
|
|
2434
2434
|
aggregation: a,
|
|
2435
2435
|
size: o,
|
|
2436
2436
|
weight: l
|
|
2437
|
-
} = e, s = Yt(t, i, a), d =
|
|
2437
|
+
} = e, s = Yt(t, i, a), d = ft(e, s);
|
|
2438
2438
|
return /* @__PURE__ */ n(v, { sx: {
|
|
2439
2439
|
fontSize: o,
|
|
2440
2440
|
display: "inline"
|
|
@@ -2488,7 +2488,7 @@ function kd(e, t) {
|
|
|
2488
2488
|
data_field: o,
|
|
2489
2489
|
aggregation: l
|
|
2490
2490
|
} = i, s = Yt(t, o, l);
|
|
2491
|
-
r[a] =
|
|
2491
|
+
r[a] = ft(i, s);
|
|
2492
2492
|
}), r;
|
|
2493
2493
|
}
|
|
2494
2494
|
function kn(e, t, r) {
|
|
@@ -2608,7 +2608,7 @@ function Ld(e, t) {
|
|
|
2608
2608
|
function Ad(e, t, r) {
|
|
2609
2609
|
const i = t.reduce((a, o) => {
|
|
2610
2610
|
const l = Ut(o, r);
|
|
2611
|
-
return a[o.name] =
|
|
2611
|
+
return a[o.name] = ft(o, l), a;
|
|
2612
2612
|
}, {});
|
|
2613
2613
|
return e.map((a) => ({
|
|
2614
2614
|
name: "refs",
|
|
@@ -2722,10 +2722,10 @@ function Rd({
|
|
|
2722
2722
|
} = e, a = e.data, {
|
|
2723
2723
|
width: o,
|
|
2724
2724
|
height: l
|
|
2725
|
-
} = e.viewport, s = re({}, r, hr), d =
|
|
2725
|
+
} = e.viewport, s = re({}, r, hr), d = je({
|
|
2726
2726
|
vizManager: e.vizManager,
|
|
2727
2727
|
instance: t
|
|
2728
|
-
}), u =
|
|
2728
|
+
}), u = qe(d.triggerManager, Ha.id), p = k(() => C.keyBy(a, s.x_axis.data_key), [a, s.x_axis.data_key]), m = fe((w) => {
|
|
2729
2729
|
const T = C.get(p, w.name, {
|
|
2730
2730
|
error: "rowData is not found"
|
|
2731
2731
|
});
|
|
@@ -2913,7 +2913,7 @@ const Fd = ({
|
|
|
2913
2913
|
] }),
|
|
2914
2914
|
/* @__PURE__ */ n(b, { name: "x_axis.axisLabel.overflow", control: e, render: ({
|
|
2915
2915
|
field: i
|
|
2916
|
-
}) => /* @__PURE__ */ n(
|
|
2916
|
+
}) => /* @__PURE__ */ n(gt, { ...i }) })
|
|
2917
2917
|
] })), Od = ({
|
|
2918
2918
|
control: e,
|
|
2919
2919
|
data: t,
|
|
@@ -2935,7 +2935,7 @@ const Fd = ({
|
|
|
2935
2935
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
2936
2936
|
/* @__PURE__ */ n(b, { name: "y_axis.label_formatter", control: e, render: ({
|
|
2937
2937
|
field: i
|
|
2938
|
-
}) => /* @__PURE__ */ n(
|
|
2938
|
+
}) => /* @__PURE__ */ n(We, { ...i }) })
|
|
2939
2939
|
] })
|
|
2940
2940
|
] }));
|
|
2941
2941
|
function Ed({
|
|
@@ -3175,10 +3175,10 @@ const pr = {
|
|
|
3175
3175
|
context: e,
|
|
3176
3176
|
instance: t
|
|
3177
3177
|
}) => {
|
|
3178
|
-
const r =
|
|
3178
|
+
const r = je({
|
|
3179
3179
|
vizManager: e.vizManager,
|
|
3180
3180
|
instance: t
|
|
3181
|
-
}), i =
|
|
3181
|
+
}), i = qe(r.triggerManager, Xa.id), a = F(), {
|
|
3182
3182
|
value: o
|
|
3183
3183
|
} = E(e.instanceData, "config"), l = k(() => ne({}, o, pr), [o]), {
|
|
3184
3184
|
content: s,
|
|
@@ -3196,7 +3196,7 @@ const pr = {
|
|
|
3196
3196
|
r.runInteraction(T.id, {});
|
|
3197
3197
|
});
|
|
3198
3198
|
};
|
|
3199
|
-
return /* @__PURE__ */ n(
|
|
3199
|
+
return /* @__PURE__ */ n(Ct, { sx: {
|
|
3200
3200
|
width: m,
|
|
3201
3201
|
height: h,
|
|
3202
3202
|
justifyContent: Ud[d],
|
|
@@ -3305,7 +3305,7 @@ function iu({
|
|
|
3305
3305
|
field: h
|
|
3306
3306
|
}) => /* @__PURE__ */ n(I, { label: "Content Template", description: "Filter values & context entries are supported", ...h, required: !0 }) }),
|
|
3307
3307
|
/* @__PURE__ */ n(L, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
3308
|
-
/* @__PURE__ */ c(
|
|
3308
|
+
/* @__PURE__ */ c(yt, { cols: 2, children: [
|
|
3309
3309
|
/* @__PURE__ */ n(b, { control: o, name: "variant", render: ({
|
|
3310
3310
|
field: h
|
|
3311
3311
|
}) => /* @__PURE__ */ n(A, { label: "Variant", data: tu, ...h }) }),
|
|
@@ -3313,7 +3313,7 @@ function iu({
|
|
|
3313
3313
|
field: h
|
|
3314
3314
|
}) => /* @__PURE__ */ n(Zd, { label: "Theme", ...h }) })
|
|
3315
3315
|
] }),
|
|
3316
|
-
/* @__PURE__ */ c(
|
|
3316
|
+
/* @__PURE__ */ c(yt, { cols: 2, children: [
|
|
3317
3317
|
/* @__PURE__ */ n(b, { control: o, name: "size", render: ({
|
|
3318
3318
|
field: h
|
|
3319
3319
|
}) => /* @__PURE__ */ n(eu, { label: "Size", ...h }) }),
|
|
@@ -3321,7 +3321,7 @@ function iu({
|
|
|
3321
3321
|
field: h
|
|
3322
3322
|
}) => /* @__PURE__ */ n(K, { label: "Compact", checked: h.value, onChange: (g) => h.onChange(g.currentTarget.checked), mt: 26 }) })
|
|
3323
3323
|
] }),
|
|
3324
|
-
/* @__PURE__ */ c(
|
|
3324
|
+
/* @__PURE__ */ c(yt, { cols: 2, children: [
|
|
3325
3325
|
/* @__PURE__ */ n(b, { control: o, name: "horizontal_align", render: ({
|
|
3326
3326
|
field: h
|
|
3327
3327
|
}) => /* @__PURE__ */ n(A, { label: "Horizontal Alignment", data: nu, ...h }) }),
|
|
@@ -3430,7 +3430,7 @@ const It = {
|
|
|
3430
3430
|
formatter: {
|
|
3431
3431
|
...Ne
|
|
3432
3432
|
},
|
|
3433
|
-
overflow:
|
|
3433
|
+
overflow: Ue
|
|
3434
3434
|
}
|
|
3435
3435
|
},
|
|
3436
3436
|
x_axis_data_key: "",
|
|
@@ -3850,7 +3850,7 @@ function Du(e, t) {
|
|
|
3850
3850
|
const r = {};
|
|
3851
3851
|
return t.map((i) => {
|
|
3852
3852
|
const a = Ut(i, e);
|
|
3853
|
-
r[i.name] =
|
|
3853
|
+
r[i.name] = ft(i, a);
|
|
3854
3854
|
}), r;
|
|
3855
3855
|
}
|
|
3856
3856
|
function Iu(e, t) {
|
|
@@ -3960,7 +3960,7 @@ function hi(e) {
|
|
|
3960
3960
|
series: r
|
|
3961
3961
|
});
|
|
3962
3962
|
}
|
|
3963
|
-
U.use([Ke,
|
|
3963
|
+
U.use([Ke, St, kt, xn, Pe, Fe, $e, Ce, bn, ir]);
|
|
3964
3964
|
function pi(e) {
|
|
3965
3965
|
return e.trim().length > 0;
|
|
3966
3966
|
}
|
|
@@ -3972,7 +3972,7 @@ function Vu({
|
|
|
3972
3972
|
interactionManager: a,
|
|
3973
3973
|
variables: o
|
|
3974
3974
|
}) {
|
|
3975
|
-
const l = k(() => C.keyBy(t, e.x_axis_data_key), [t, e.x_axis_data_key]), s =
|
|
3975
|
+
const l = k(() => C.keyBy(t, e.x_axis_data_key), [t, e.x_axis_data_key]), s = qe(a.triggerManager, mr.id), d = fe((g) => {
|
|
3976
3976
|
const w = C.get(l, g.name, {
|
|
3977
3977
|
error: "rowData is not found"
|
|
3978
3978
|
});
|
|
@@ -3998,7 +3998,7 @@ function Ru({
|
|
|
3998
3998
|
context: e,
|
|
3999
3999
|
instance: t
|
|
4000
4000
|
}) {
|
|
4001
|
-
const r =
|
|
4001
|
+
const r = je({
|
|
4002
4002
|
vizManager: e.vizManager,
|
|
4003
4003
|
instance: t
|
|
4004
4004
|
}), {
|
|
@@ -4627,7 +4627,7 @@ const Yu = ({
|
|
|
4627
4627
|
...yr[l]
|
|
4628
4628
|
});
|
|
4629
4629
|
};
|
|
4630
|
-
return /* @__PURE__ */ c(
|
|
4630
|
+
return /* @__PURE__ */ c(yt, { cols: 2, children: [
|
|
4631
4631
|
/* @__PURE__ */ n(A, { ref: a, label: e, data: Zu, value: t.type, onChange: o, sx: {
|
|
4632
4632
|
flexGrow: 1
|
|
4633
4633
|
} }),
|
|
@@ -4967,7 +4967,7 @@ function lh({
|
|
|
4967
4967
|
] }),
|
|
4968
4968
|
/* @__PURE__ */ n(b, { name: "x_axis.axisLabel.overflow", control: t, render: ({
|
|
4969
4969
|
field: i
|
|
4970
|
-
}) => /* @__PURE__ */ n(
|
|
4970
|
+
}) => /* @__PURE__ */ n(gt, { ...i }) })
|
|
4971
4971
|
] });
|
|
4972
4972
|
}
|
|
4973
4973
|
const sh = [{
|
|
@@ -5017,7 +5017,7 @@ function dh({
|
|
|
5017
5017
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
5018
5018
|
/* @__PURE__ */ n(b, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
5019
5019
|
field: i
|
|
5020
|
-
}) => /* @__PURE__ */ n(
|
|
5020
|
+
}) => /* @__PURE__ */ n(We, { ...i }) })
|
|
5021
5021
|
] }),
|
|
5022
5022
|
/* @__PURE__ */ c(_, { children: [
|
|
5023
5023
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -5601,7 +5601,7 @@ function $h(e) {
|
|
|
5601
5601
|
axisLabel: {
|
|
5602
5602
|
show: !0,
|
|
5603
5603
|
position: "inside",
|
|
5604
|
-
overflow:
|
|
5604
|
+
overflow: Ue
|
|
5605
5605
|
},
|
|
5606
5606
|
sort: "descending",
|
|
5607
5607
|
orient: "vertical",
|
|
@@ -5815,7 +5815,7 @@ const Nh = [{
|
|
|
5815
5815
|
] }),
|
|
5816
5816
|
/* @__PURE__ */ n(y, { grow: !0, noWrap: !0, children: /* @__PURE__ */ n(b, { name: `series.${i}.axisLabel.overflow`, control: t, render: ({
|
|
5817
5817
|
field: d
|
|
5818
|
-
}) => /* @__PURE__ */ n(
|
|
5818
|
+
}) => /* @__PURE__ */ n(gt, { ...d }) }) })
|
|
5819
5819
|
] });
|
|
5820
5820
|
}, Hh = ({
|
|
5821
5821
|
control: e,
|
|
@@ -5843,7 +5843,7 @@ const Nh = [{
|
|
|
5843
5843
|
}, children: [
|
|
5844
5844
|
/* @__PURE__ */ c(x.List, { children: [
|
|
5845
5845
|
s.map((m, h) => /* @__PURE__ */ n(x.Tab, { value: m.id, children: m.name }, m.id)),
|
|
5846
|
-
/* @__PURE__ */ n(x.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ n(ee, { label: "TODO", children: /* @__PURE__ */ n(
|
|
5846
|
+
/* @__PURE__ */ n(x.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ n(ee, { label: "TODO", children: /* @__PURE__ */ n(Ct, { children: /* @__PURE__ */ n(rt, { size: 18, color: "#228be6" }) }) }) })
|
|
5847
5847
|
] }),
|
|
5848
5848
|
s.map((m, h) => /* @__PURE__ */ n(x.Panel, { value: m.id, children: /* @__PURE__ */ n(jh, { item: m, control: e, index: h, remove: o, data: r }) }, m.id))
|
|
5849
5849
|
] });
|
|
@@ -6234,7 +6234,7 @@ const Ja = {
|
|
|
6234
6234
|
data_key: "",
|
|
6235
6235
|
axisLabel: {
|
|
6236
6236
|
rotate: 0,
|
|
6237
|
-
overflow:
|
|
6237
|
+
overflow: Ue,
|
|
6238
6238
|
formatter: {
|
|
6239
6239
|
...Ne
|
|
6240
6240
|
}
|
|
@@ -6246,7 +6246,7 @@ const Ja = {
|
|
|
6246
6246
|
nameAlignment: "center",
|
|
6247
6247
|
axisLabel: {
|
|
6248
6248
|
rotate: 0,
|
|
6249
|
-
overflow:
|
|
6249
|
+
overflow: Ue,
|
|
6250
6250
|
formatter: {
|
|
6251
6251
|
...Ne
|
|
6252
6252
|
}
|
|
@@ -6263,7 +6263,7 @@ const Ja = {
|
|
|
6263
6263
|
metrics: []
|
|
6264
6264
|
}
|
|
6265
6265
|
};
|
|
6266
|
-
U.use([Ke,
|
|
6266
|
+
U.use([Ke, St, kt, ua, Pe, Fe, $e, rr, Ce]);
|
|
6267
6267
|
function up({
|
|
6268
6268
|
conf: e,
|
|
6269
6269
|
data: t,
|
|
@@ -6275,7 +6275,7 @@ function up({
|
|
|
6275
6275
|
const l = k(() => {
|
|
6276
6276
|
const m = e.x_axis.data_key, h = e.y_axis.data_key;
|
|
6277
6277
|
return C.keyBy(t, (g) => `${g[m]}---${g[h]}`);
|
|
6278
|
-
}, [t, e.x_axis.data_key]), s =
|
|
6278
|
+
}, [t, e.x_axis.data_key]), s = qe(a.triggerManager, Ja.id), d = fe((m) => {
|
|
6279
6279
|
const [h, g] = m.value, w = C.get(l, `${h}---${g}`, {
|
|
6280
6280
|
error: "rowData is not found"
|
|
6281
6281
|
});
|
|
@@ -6297,7 +6297,7 @@ function hp({
|
|
|
6297
6297
|
context: e,
|
|
6298
6298
|
instance: t
|
|
6299
6299
|
}) {
|
|
6300
|
-
const r =
|
|
6300
|
+
const r = je({
|
|
6301
6301
|
vizManager: e.vizManager,
|
|
6302
6302
|
instance: t
|
|
6303
6303
|
}), {
|
|
@@ -6339,7 +6339,7 @@ function pp({
|
|
|
6339
6339
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
6340
6340
|
/* @__PURE__ */ n(b, { name: "heat_block.value_formatter", control: t, render: ({
|
|
6341
6341
|
field: i
|
|
6342
|
-
}) => /* @__PURE__ */ n(
|
|
6342
|
+
}) => /* @__PURE__ */ n(We, { ...i }) })
|
|
6343
6343
|
] });
|
|
6344
6344
|
}
|
|
6345
6345
|
const mp = ({
|
|
@@ -6515,7 +6515,7 @@ function yp({
|
|
|
6515
6515
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
|
|
6516
6516
|
/* @__PURE__ */ n(b, { name: "x_axis.axisLabel.overflow", control: t, render: ({
|
|
6517
6517
|
field: i
|
|
6518
|
-
}) => /* @__PURE__ */ n(
|
|
6518
|
+
}) => /* @__PURE__ */ n(gt, { ...i }) }),
|
|
6519
6519
|
/* @__PURE__ */ c(y, { grow: !0, noWrap: !0, children: [
|
|
6520
6520
|
/* @__PURE__ */ n(b, { name: "x_axis.axisLabel.rotate", control: t, render: ({
|
|
6521
6521
|
field: i
|
|
@@ -6572,7 +6572,7 @@ function wp({
|
|
|
6572
6572
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
|
|
6573
6573
|
/* @__PURE__ */ n(b, { name: "y_axis.axisLabel.overflow", control: e, render: ({
|
|
6574
6574
|
field: i
|
|
6575
|
-
}) => /* @__PURE__ */ n(
|
|
6575
|
+
}) => /* @__PURE__ */ n(gt, { ...i }) }),
|
|
6576
6576
|
/* @__PURE__ */ c(y, { grow: !0, noWrap: !0, children: [
|
|
6577
6577
|
/* @__PURE__ */ n(b, { name: "y_axis.axisLabel.rotate", control: e, render: ({
|
|
6578
6578
|
field: i
|
|
@@ -6715,7 +6715,7 @@ const no = {
|
|
|
6715
6715
|
formatter: {
|
|
6716
6716
|
...Ne
|
|
6717
6717
|
},
|
|
6718
|
-
overflow:
|
|
6718
|
+
overflow: Ue
|
|
6719
6719
|
}
|
|
6720
6720
|
},
|
|
6721
6721
|
data_key: "value",
|
|
@@ -6965,7 +6965,7 @@ function Fp(e, t, r) {
|
|
|
6965
6965
|
}
|
|
6966
6966
|
};
|
|
6967
6967
|
}
|
|
6968
|
-
U.use([
|
|
6968
|
+
U.use([St, kt, Ke, Pe, Fe, $e, Ce]);
|
|
6969
6969
|
function $p({
|
|
6970
6970
|
context: e,
|
|
6971
6971
|
instance: t
|
|
@@ -6975,10 +6975,10 @@ function $p({
|
|
|
6975
6975
|
} = E(e.instanceData, "config"), i = e.data, {
|
|
6976
6976
|
width: a,
|
|
6977
6977
|
height: o
|
|
6978
|
-
} = e.viewport, l = re({}, r, Cr), s = Fp(l, i), d =
|
|
6978
|
+
} = e.viewport, l = re({}, r, Cr), s = Fp(l, i), d = je({
|
|
6979
6979
|
vizManager: e.vizManager,
|
|
6980
6980
|
instance: t
|
|
6981
|
-
}), u =
|
|
6981
|
+
}), u = qe(d.triggerManager, to.id), p = k(() => C.keyBy(i, l.x_axis.data_key), [i, l.x_axis.data_key]), m = fe((g) => {
|
|
6982
6982
|
const w = C.get(p, g.name, {
|
|
6983
6983
|
error: "rowData is not found"
|
|
6984
6984
|
});
|
|
@@ -7034,7 +7034,7 @@ function Ep({
|
|
|
7034
7034
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
7035
7035
|
/* @__PURE__ */ n(b, { name: "bar.label_formatter", control: t, render: ({
|
|
7036
7036
|
field: i
|
|
7037
|
-
}) => /* @__PURE__ */ n(
|
|
7037
|
+
}) => /* @__PURE__ */ n(We, { ...i }) })
|
|
7038
7038
|
] })
|
|
7039
7039
|
] });
|
|
7040
7040
|
}
|
|
@@ -7101,7 +7101,7 @@ const qp = `
|
|
|
7101
7101
|
const [e, t] = N(!1);
|
|
7102
7102
|
return /* @__PURE__ */ c(P, { children: [
|
|
7103
7103
|
/* @__PURE__ */ n(D, { variant: "subtle", compact: !0, onClick: () => t((r) => !r), children: e ? "Close" : "Click to see params for Label Template" }),
|
|
7104
|
-
/* @__PURE__ */ n(Kn, { in: e, children: /* @__PURE__ */ n(
|
|
7104
|
+
/* @__PURE__ */ n(Kn, { in: e, children: /* @__PURE__ */ n(wt, { language: "typescript", noCopy: !0, colorScheme: "dark", children: qp }) })
|
|
7105
7105
|
] });
|
|
7106
7106
|
};
|
|
7107
7107
|
function Gp({
|
|
@@ -7163,7 +7163,7 @@ function jp({
|
|
|
7163
7163
|
] }),
|
|
7164
7164
|
/* @__PURE__ */ n(b, { name: "x_axis.axisLabel.overflow", control: t, render: ({
|
|
7165
7165
|
field: i
|
|
7166
|
-
}) => /* @__PURE__ */ n(
|
|
7166
|
+
}) => /* @__PURE__ */ n(gt, { ...i }) })
|
|
7167
7167
|
] });
|
|
7168
7168
|
}
|
|
7169
7169
|
function Hp({
|
|
@@ -7698,7 +7698,7 @@ function mm({
|
|
|
7698
7698
|
interactionManager: a,
|
|
7699
7699
|
variables: o
|
|
7700
7700
|
}) {
|
|
7701
|
-
const l = k(() => C.keyBy(t, e.series_name_key), [t, e.series_name_key]), s =
|
|
7701
|
+
const l = k(() => C.keyBy(t, e.series_name_key), [t, e.series_name_key]), s = qe(a.triggerManager, ro.id), d = fe((m) => {
|
|
7702
7702
|
const h = C.get(l, m.name, {
|
|
7703
7703
|
error: "rowData is not found"
|
|
7704
7704
|
});
|
|
@@ -7720,7 +7720,7 @@ function gm({
|
|
|
7720
7720
|
context: e,
|
|
7721
7721
|
instance: t
|
|
7722
7722
|
}) {
|
|
7723
|
-
const r =
|
|
7723
|
+
const r = je({
|
|
7724
7724
|
vizManager: e.vizManager,
|
|
7725
7725
|
instance: t
|
|
7726
7726
|
}), {
|
|
@@ -7764,7 +7764,7 @@ function fm({
|
|
|
7764
7764
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Value Formatter", labelPosition: "center" }),
|
|
7765
7765
|
/* @__PURE__ */ n(b, { name: `dimensions.${t}.formatter`, control: e, render: ({
|
|
7766
7766
|
field: a
|
|
7767
|
-
}) => /* @__PURE__ */ n(
|
|
7767
|
+
}) => /* @__PURE__ */ n(We, { ...a }) })
|
|
7768
7768
|
] }),
|
|
7769
7769
|
/* @__PURE__ */ n($, { color: "red", variant: "subtle", onClick: () => r(t), sx: {
|
|
7770
7770
|
position: "absolute",
|
|
@@ -8608,8 +8608,8 @@ const oo = {
|
|
|
8608
8608
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
8609
8609
|
`)
|
|
8610
8610
|
}, lo = {
|
|
8611
|
-
label:
|
|
8612
|
-
tooltip:
|
|
8611
|
+
label: Ue.on_axis,
|
|
8612
|
+
tooltip: Ue.in_tooltip
|
|
8613
8613
|
}, Dr = {
|
|
8614
8614
|
scatter: {
|
|
8615
8615
|
y_data_key: "",
|
|
@@ -8989,7 +8989,7 @@ const eg = {
|
|
|
8989
8989
|
function tg(e, t, r) {
|
|
8990
8990
|
const i = r.reduce((u, p) => {
|
|
8991
8991
|
const m = Ut(p, t);
|
|
8992
|
-
return u[p.name] =
|
|
8992
|
+
return u[p.name] = ft(p, m), u;
|
|
8993
8993
|
}, {}), a = e.y_axes.reduce((u, {
|
|
8994
8994
|
label_formatter: p
|
|
8995
8995
|
}, m) => (u[m] = function(g) {
|
|
@@ -9019,7 +9019,7 @@ function tg(e, t, r) {
|
|
|
9019
9019
|
};
|
|
9020
9020
|
return ne({}, d, eg);
|
|
9021
9021
|
}
|
|
9022
|
-
U.use([Ke,
|
|
9022
|
+
U.use([Ke, St, kt, xn, Pe, Fe, $e, Ce, bn, ir]);
|
|
9023
9023
|
function gi(e) {
|
|
9024
9024
|
return e.trim().length > 0;
|
|
9025
9025
|
}
|
|
@@ -9031,7 +9031,7 @@ function ng({
|
|
|
9031
9031
|
interactionManager: a,
|
|
9032
9032
|
variables: o
|
|
9033
9033
|
}) {
|
|
9034
|
-
const l = k(() => C.keyBy(t, e.x_axis.data_key), [t, e.x_axis.data_key]), s =
|
|
9034
|
+
const l = k(() => C.keyBy(t, e.x_axis.data_key), [t, e.x_axis.data_key]), s = qe(a.triggerManager, ao.id), d = fe((m) => {
|
|
9035
9035
|
const h = m.value[0], g = C.get(l, h, {
|
|
9036
9036
|
error: "rowData is not found"
|
|
9037
9037
|
});
|
|
@@ -9053,7 +9053,7 @@ function rg({
|
|
|
9053
9053
|
context: e,
|
|
9054
9054
|
instance: t
|
|
9055
9055
|
}) {
|
|
9056
|
-
const r =
|
|
9056
|
+
const r = je({
|
|
9057
9057
|
vizManager: e.vizManager,
|
|
9058
9058
|
instance: t
|
|
9059
9059
|
}), {
|
|
@@ -9208,7 +9208,7 @@ function og({
|
|
|
9208
9208
|
}) => /* @__PURE__ */ c(_, { children: [
|
|
9209
9209
|
/* @__PURE__ */ n(ig, { variableOptions: u, yAxisOptions: m, ...w }),
|
|
9210
9210
|
/* @__PURE__ */ n(L, { mb: -10, mt: 10, variant: "dashed" }),
|
|
9211
|
-
/* @__PURE__ */ n(D, { leftIcon: /* @__PURE__ */ n(
|
|
9211
|
+
/* @__PURE__ */ n(D, { leftIcon: /* @__PURE__ */ n(vt, { size: 16 }), color: "red", variant: "light", onClick: () => o(g), children: "Delete this Reference Area" })
|
|
9212
9212
|
] }) }) }, g))
|
|
9213
9213
|
] });
|
|
9214
9214
|
}
|
|
@@ -9451,7 +9451,7 @@ const ug = ({
|
|
|
9451
9451
|
...Xt[l]
|
|
9452
9452
|
});
|
|
9453
9453
|
};
|
|
9454
|
-
return /* @__PURE__ */ c(
|
|
9454
|
+
return /* @__PURE__ */ c(yt, { cols: 2, children: [
|
|
9455
9455
|
/* @__PURE__ */ n(A, { ref: a, label: e, data: gg, value: t.type, onChange: o, sx: {
|
|
9456
9456
|
flexGrow: 1
|
|
9457
9457
|
} }),
|
|
@@ -9576,7 +9576,7 @@ const ug = ({
|
|
|
9576
9576
|
...co[l]
|
|
9577
9577
|
});
|
|
9578
9578
|
};
|
|
9579
|
-
return /* @__PURE__ */ c(
|
|
9579
|
+
return /* @__PURE__ */ c(yt, { cols: 2, children: [
|
|
9580
9580
|
/* @__PURE__ */ n(A, { ref: a, label: e, data: _g, value: t.type, onChange: o, sx: {
|
|
9581
9581
|
flexGrow: 1
|
|
9582
9582
|
} }),
|
|
@@ -9909,7 +9909,7 @@ function Pg({
|
|
|
9909
9909
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
9910
9910
|
/* @__PURE__ */ n(b, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
9911
9911
|
field: i
|
|
9912
|
-
}) => /* @__PURE__ */ n(
|
|
9912
|
+
}) => /* @__PURE__ */ n(We, { ...i }) })
|
|
9913
9913
|
] }),
|
|
9914
9914
|
/* @__PURE__ */ c(_, { children: [
|
|
9915
9915
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -10473,7 +10473,7 @@ const sf = {
|
|
|
10473
10473
|
function cf(e, t, r) {
|
|
10474
10474
|
r.reduce((o, l) => {
|
|
10475
10475
|
const s = Ut(l, t);
|
|
10476
|
-
return o[l.name] =
|
|
10476
|
+
return o[l.name] = ft(l, s), o;
|
|
10477
10477
|
}, {});
|
|
10478
10478
|
const a = {
|
|
10479
10479
|
series: {
|
|
@@ -10999,7 +10999,7 @@ function Pf(e) {
|
|
|
10999
10999
|
color: Mf(t)
|
|
11000
11000
|
};
|
|
11001
11001
|
}
|
|
11002
|
-
function
|
|
11002
|
+
function _t(e) {
|
|
11003
11003
|
const t = e.tableCellContext.isClickable(), r = Rf({
|
|
11004
11004
|
clickable: t,
|
|
11005
11005
|
align: e.align
|
|
@@ -11009,7 +11009,7 @@ function wt(e) {
|
|
|
11009
11009
|
}, children: /* @__PURE__ */ n(v, { className: "table-cell-text", onClick: e.tableCellContext.getClickHandler(), children: /* @__PURE__ */ n("span", { title: e.children, children: e.children }) }) });
|
|
11010
11010
|
}
|
|
11011
11011
|
function Ff(e) {
|
|
11012
|
-
return /* @__PURE__ */ n(
|
|
11012
|
+
return /* @__PURE__ */ n(_t, { ...e, children: e.value });
|
|
11013
11013
|
}
|
|
11014
11014
|
function $f(e) {
|
|
11015
11015
|
const t = X(e.value).format({
|
|
@@ -11017,29 +11017,29 @@ function $f(e) {
|
|
|
11017
11017
|
mantissa: 2,
|
|
11018
11018
|
trimMantissa: !0
|
|
11019
11019
|
});
|
|
11020
|
-
return /* @__PURE__ */ n(
|
|
11020
|
+
return /* @__PURE__ */ n(_t, { ...e, children: t });
|
|
11021
11021
|
}
|
|
11022
11022
|
function Of(e) {
|
|
11023
11023
|
const t = X(e.value).format({
|
|
11024
11024
|
thousandSeparated: !0
|
|
11025
11025
|
});
|
|
11026
|
-
return /* @__PURE__ */ n(
|
|
11026
|
+
return /* @__PURE__ */ n(_t, { ...e, children: t });
|
|
11027
11027
|
}
|
|
11028
11028
|
function Ef(e) {
|
|
11029
11029
|
const t = X(e.value).format({
|
|
11030
11030
|
output: "percent",
|
|
11031
11031
|
mantissa: 3
|
|
11032
11032
|
});
|
|
11033
|
-
return /* @__PURE__ */ n(
|
|
11033
|
+
return /* @__PURE__ */ n(_t, { ...e, children: t });
|
|
11034
11034
|
}
|
|
11035
11035
|
function Nf(e) {
|
|
11036
11036
|
const t = e.value, r = e.func_content;
|
|
11037
11037
|
if (!r)
|
|
11038
|
-
return /* @__PURE__ */ n(
|
|
11038
|
+
return /* @__PURE__ */ n(_t, { ...e, children: t });
|
|
11039
11039
|
const i = new Function(`return ${r}`)()({
|
|
11040
11040
|
value: t
|
|
11041
11041
|
});
|
|
11042
|
-
return /* @__PURE__ */ n(
|
|
11042
|
+
return /* @__PURE__ */ n(_t, { ...e, children: i });
|
|
11043
11043
|
}
|
|
11044
11044
|
function Bf(e) {
|
|
11045
11045
|
switch (e.type) {
|
|
@@ -11056,9 +11056,9 @@ function Bf(e) {
|
|
|
11056
11056
|
}
|
|
11057
11057
|
}
|
|
11058
11058
|
const qf = (e) => {
|
|
11059
|
-
const t =
|
|
11059
|
+
const t = je(e), r = qe(t.triggerManager, Ar.id), {
|
|
11060
11060
|
colorManager: i
|
|
11061
|
-
} =
|
|
11061
|
+
} = Be(Ge);
|
|
11062
11062
|
return fe((a) => new Vf(e.getColIndex, a, r, t, i), [r, t, e.getColIndex]);
|
|
11063
11063
|
};
|
|
11064
11064
|
function Wf({
|
|
@@ -11341,7 +11341,7 @@ function Jf(e, t) {
|
|
|
11341
11341
|
const eb = te((e, t) => {
|
|
11342
11342
|
const {
|
|
11343
11343
|
colorManager: r
|
|
11344
|
-
} =
|
|
11344
|
+
} = Be(Ge), [i, a] = N(go(e.value)), [o, l] = N(Zf(r, e.value)), s = oi(o), [d, u] = N(Jf(r, e.value)), p = oi(d);
|
|
11345
11345
|
return /* @__PURE__ */ c(_, { align: "stretch", children: [
|
|
11346
11346
|
/* @__PURE__ */ n(A, { label: "Cell background", value: i || "none", onChange: (w) => {
|
|
11347
11347
|
var T, q, de;
|
|
@@ -11928,7 +11928,7 @@ const _b = ({
|
|
|
11928
11928
|
if (i.startsWith("<"))
|
|
11929
11929
|
return /* @__PURE__ */ n(xi, { message: i });
|
|
11930
11930
|
const o = r - 25 - 20 - 30;
|
|
11931
|
-
return /* @__PURE__ */ n(
|
|
11931
|
+
return /* @__PURE__ */ n(Ct, { sx: {
|
|
11932
11932
|
width: "100%",
|
|
11933
11933
|
height: o
|
|
11934
11934
|
}, children: /* @__PURE__ */ c(_, { align: "center", spacing: 20, children: [
|
|
@@ -12281,7 +12281,7 @@ const bo = {
|
|
|
12281
12281
|
metrics: []
|
|
12282
12282
|
}
|
|
12283
12283
|
};
|
|
12284
|
-
U.use([Ke,
|
|
12284
|
+
U.use([Ke, St, kt, ua, fs, Pe, Fe, $e, rr, Ce]);
|
|
12285
12285
|
function Wb({
|
|
12286
12286
|
name: e
|
|
12287
12287
|
}, t) {
|
|
@@ -12301,7 +12301,7 @@ function Gb({
|
|
|
12301
12301
|
const l = k(() => {
|
|
12302
12302
|
const m = e.calendar.data_key;
|
|
12303
12303
|
return C.keyBy(t, m);
|
|
12304
|
-
}, [t, e.calendar.data_key]), s =
|
|
12304
|
+
}, [t, e.calendar.data_key]), s = qe(a.triggerManager, bo.id), d = fe((m) => {
|
|
12305
12305
|
const [h, g] = m.value, w = C.get(l, h, {
|
|
12306
12306
|
error: "rowData is not found"
|
|
12307
12307
|
});
|
|
@@ -12326,7 +12326,7 @@ function jb({
|
|
|
12326
12326
|
context: e,
|
|
12327
12327
|
instance: t
|
|
12328
12328
|
}) {
|
|
12329
|
-
const r =
|
|
12329
|
+
const r = je({
|
|
12330
12330
|
vizManager: e.vizManager,
|
|
12331
12331
|
instance: t
|
|
12332
12332
|
}), {
|
|
@@ -12368,7 +12368,7 @@ function Hb({
|
|
|
12368
12368
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
12369
12369
|
/* @__PURE__ */ n(b, { name: "heat_block.value_formatter", control: t, render: ({
|
|
12370
12370
|
field: i
|
|
12371
|
-
}) => /* @__PURE__ */ n(
|
|
12371
|
+
}) => /* @__PURE__ */ n(We, { ...i }) })
|
|
12372
12372
|
] });
|
|
12373
12373
|
}
|
|
12374
12374
|
const Qb = ({
|
|
@@ -12805,7 +12805,7 @@ function mx(e, t) {
|
|
|
12805
12805
|
const r = {};
|
|
12806
12806
|
return t.map((i) => {
|
|
12807
12807
|
const a = Ut(i, e);
|
|
12808
|
-
r[i.name] =
|
|
12808
|
+
r[i.name] = ft(i, a);
|
|
12809
12809
|
}), r;
|
|
12810
12810
|
}
|
|
12811
12811
|
function gx(e, t) {
|
|
@@ -12900,7 +12900,7 @@ const Fr = {
|
|
|
12900
12900
|
formatter: {
|
|
12901
12901
|
...Ne
|
|
12902
12902
|
},
|
|
12903
|
-
overflow:
|
|
12903
|
+
overflow: Ue
|
|
12904
12904
|
},
|
|
12905
12905
|
nameAlignment: "center"
|
|
12906
12906
|
},
|
|
@@ -12961,7 +12961,7 @@ function vx() {
|
|
|
12961
12961
|
xAxisIndex: "0"
|
|
12962
12962
|
};
|
|
12963
12963
|
}
|
|
12964
|
-
U.use([Ke,
|
|
12964
|
+
U.use([Ke, St, kt, xn, Pe, Fe, $e, Ce, bn, ir]);
|
|
12965
12965
|
function wx({
|
|
12966
12966
|
conf: e,
|
|
12967
12967
|
data: t,
|
|
@@ -12970,7 +12970,7 @@ function wx({
|
|
|
12970
12970
|
interactionManager: a,
|
|
12971
12971
|
variables: o
|
|
12972
12972
|
}) {
|
|
12973
|
-
const l = k(() => C.keyBy(t, e.y_axis.data_key), [t, e.y_axis.data_key]), s =
|
|
12973
|
+
const l = k(() => C.keyBy(t, e.y_axis.data_key), [t, e.y_axis.data_key]), s = qe(a.triggerManager, mr.id), d = fe((m) => {
|
|
12974
12974
|
const h = C.get(l, m.name, {
|
|
12975
12975
|
error: "rowData is not found"
|
|
12976
12976
|
});
|
|
@@ -12992,7 +12992,7 @@ function _x({
|
|
|
12992
12992
|
context: e,
|
|
12993
12993
|
instance: t
|
|
12994
12994
|
}) {
|
|
12995
|
-
const r =
|
|
12995
|
+
const r = je({
|
|
12996
12996
|
vizManager: e.vizManager,
|
|
12997
12997
|
instance: t
|
|
12998
12998
|
}), {
|
|
@@ -13373,7 +13373,7 @@ function Mx({
|
|
|
13373
13373
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
13374
13374
|
/* @__PURE__ */ n(b, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
|
|
13375
13375
|
field: i
|
|
13376
|
-
}) => /* @__PURE__ */ n(
|
|
13376
|
+
}) => /* @__PURE__ */ n(We, { ...i }) })
|
|
13377
13377
|
] }),
|
|
13378
13378
|
/* @__PURE__ */ c(_, { children: [
|
|
13379
13379
|
/* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -13451,7 +13451,7 @@ function Fx({
|
|
|
13451
13451
|
}) => /* @__PURE__ */ n(Tn, { data: e, ...i }) }) }),
|
|
13452
13452
|
/* @__PURE__ */ n(b, { name: "y_axis.axisLabel.overflow", control: t, render: ({
|
|
13453
13453
|
field: i
|
|
13454
|
-
}) => /* @__PURE__ */ n(
|
|
13454
|
+
}) => /* @__PURE__ */ n(gt, { ...i }) })
|
|
13455
13455
|
] });
|
|
13456
13456
|
}
|
|
13457
13457
|
function $x({
|
|
@@ -13584,16 +13584,16 @@ const Ex = {
|
|
|
13584
13584
|
color: [...Nx, ...Bx]
|
|
13585
13585
|
}
|
|
13586
13586
|
}), Vt = new Zc(), ae = {
|
|
13587
|
-
pluginManager:
|
|
13588
|
-
vizManager:
|
|
13589
|
-
colorManager:
|
|
13587
|
+
pluginManager: Qe("pluginManager"),
|
|
13588
|
+
vizManager: Qe("vizManager"),
|
|
13589
|
+
colorManager: Qe("colorManager"),
|
|
13590
13590
|
instanceScope: {
|
|
13591
|
-
panelModel:
|
|
13592
|
-
vizInstance:
|
|
13593
|
-
interactionManager:
|
|
13594
|
-
migrator:
|
|
13595
|
-
operationManager:
|
|
13596
|
-
triggerManager:
|
|
13591
|
+
panelModel: Qe("panelModel"),
|
|
13592
|
+
vizInstance: Qe("vizInstance"),
|
|
13593
|
+
interactionManager: Qe("interactionManager"),
|
|
13594
|
+
migrator: Qe("migrator"),
|
|
13595
|
+
operationManager: Qe("operationManager"),
|
|
13596
|
+
triggerManager: Qe("triggerManager")
|
|
13597
13597
|
}
|
|
13598
13598
|
}, $r = () => {
|
|
13599
13599
|
try {
|
|
@@ -13606,7 +13606,7 @@ const Ex = {
|
|
|
13606
13606
|
vizManager: e,
|
|
13607
13607
|
colorManager: t
|
|
13608
13608
|
};
|
|
13609
|
-
},
|
|
13609
|
+
}, Ge = Vi($r());
|
|
13610
13610
|
try {
|
|
13611
13611
|
Vt.install(xo());
|
|
13612
13612
|
} catch {
|
|
@@ -13846,7 +13846,7 @@ class sy {
|
|
|
13846
13846
|
return {
|
|
13847
13847
|
id: o,
|
|
13848
13848
|
schemaRef: l,
|
|
13849
|
-
operationData: new
|
|
13849
|
+
operationData: new xt(a, "data")
|
|
13850
13850
|
};
|
|
13851
13851
|
};
|
|
13852
13852
|
this.attachments = new cr(t, "__OPERATIONS", i);
|
|
@@ -13922,7 +13922,7 @@ class cy {
|
|
|
13922
13922
|
return {
|
|
13923
13923
|
id: o,
|
|
13924
13924
|
schemaRef: l,
|
|
13925
|
-
triggerData: new
|
|
13925
|
+
triggerData: new xt(a, "data")
|
|
13926
13926
|
};
|
|
13927
13927
|
};
|
|
13928
13928
|
this.attachments = new cr(t, yi, i);
|
|
@@ -14039,7 +14039,7 @@ class Or {
|
|
|
14039
14039
|
}));
|
|
14040
14040
|
}
|
|
14041
14041
|
}
|
|
14042
|
-
const
|
|
14042
|
+
const je = ({
|
|
14043
14043
|
vizManager: e,
|
|
14044
14044
|
instance: t
|
|
14045
14045
|
}) => Me(() => new Or(t, e.resolveComponent(t.type), zn), [t, e]), yo = (e) => {
|
|
@@ -14287,7 +14287,7 @@ const Sy = S(({
|
|
|
14287
14287
|
data: t
|
|
14288
14288
|
} = me(), r = e.viz, {
|
|
14289
14289
|
vizManager: i
|
|
14290
|
-
} =
|
|
14290
|
+
} = Be(Ge), a = e.json, o = Me(() => i.getOrCreateInstance(a), [i, a]), l = Me(() => new Or(o, i.resolveComponent(r.type), zn), [o, r.type]);
|
|
14291
14291
|
return M(() => o.instanceData.watchItem(
|
|
14292
14292
|
null,
|
|
14293
14293
|
// avoid too many updates
|
|
@@ -14408,8 +14408,12 @@ function Ly(e) {
|
|
|
14408
14408
|
panel: t,
|
|
14409
14409
|
setVizConf: r
|
|
14410
14410
|
} = e;
|
|
14411
|
-
|
|
14412
|
-
|
|
14411
|
+
Co(r, t);
|
|
14412
|
+
const {
|
|
14413
|
+
inEditMode: i
|
|
14414
|
+
} = Be(mt);
|
|
14415
|
+
return _o(() => {
|
|
14416
|
+
i && yn({
|
|
14413
14417
|
title: `${t.title} - Updated`,
|
|
14414
14418
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
14415
14419
|
});
|
|
@@ -14418,7 +14422,7 @@ function Ly(e) {
|
|
|
14418
14422
|
function Ay(e, t) {
|
|
14419
14423
|
const {
|
|
14420
14424
|
vizManager: r
|
|
14421
|
-
} =
|
|
14425
|
+
} = Be(Ge), {
|
|
14422
14426
|
panel: {
|
|
14423
14427
|
viz: i,
|
|
14424
14428
|
title: a,
|
|
@@ -14500,7 +14504,7 @@ const Er = S(function({
|
|
|
14500
14504
|
}) {
|
|
14501
14505
|
const i = F(), {
|
|
14502
14506
|
inEditMode: a
|
|
14503
|
-
} =
|
|
14507
|
+
} = Be(mt), {
|
|
14504
14508
|
data: o,
|
|
14505
14509
|
state: l,
|
|
14506
14510
|
error: s
|
|
@@ -14702,7 +14706,7 @@ const Gy = S(({
|
|
|
14702
14706
|
"Swith to View: ",
|
|
14703
14707
|
p.name
|
|
14704
14708
|
] }),
|
|
14705
|
-
/* @__PURE__ */ n(D, { mt: 20, variant: "subtle", color: "red", onClick: () => l(u), disabled: s, leftIcon: /* @__PURE__ */ n(
|
|
14709
|
+
/* @__PURE__ */ n(D, { mt: 20, variant: "subtle", color: "red", onClick: () => l(u), disabled: s, leftIcon: /* @__PURE__ */ n(vt, { size: 14 }), children: "Delete This Tab" })
|
|
14706
14710
|
] })
|
|
14707
14711
|
] }),
|
|
14708
14712
|
p && /* @__PURE__ */ n(Nr, { view: p })
|
|
@@ -15140,7 +15144,7 @@ const lv = f.model("FilterConfigModel_DateRange", {
|
|
|
15140
15144
|
}
|
|
15141
15145
|
})).actions((e) => ({
|
|
15142
15146
|
setDefaultValue(t) {
|
|
15143
|
-
e.default_value =
|
|
15147
|
+
e.default_value = Tt(t);
|
|
15144
15148
|
},
|
|
15145
15149
|
setMinWidth(t) {
|
|
15146
15150
|
e.min_width = t;
|
|
@@ -15187,7 +15191,7 @@ const lv = f.model("FilterConfigModel_DateRange", {
|
|
|
15187
15191
|
}
|
|
15188
15192
|
})).actions((e) => ({
|
|
15189
15193
|
setDefaultValue(t) {
|
|
15190
|
-
e.default_value =
|
|
15194
|
+
e.default_value = Tt(t);
|
|
15191
15195
|
},
|
|
15192
15196
|
setMinWidth(t) {
|
|
15193
15197
|
e.min_width = t;
|
|
@@ -15429,7 +15433,7 @@ const mv = f.model("FiltersModel", {
|
|
|
15429
15433
|
}
|
|
15430
15434
|
})).actions((e) => ({
|
|
15431
15435
|
replace(t) {
|
|
15432
|
-
e.current =
|
|
15436
|
+
e.current = Tt(t);
|
|
15433
15437
|
},
|
|
15434
15438
|
append(t) {
|
|
15435
15439
|
e.current.push(t);
|
|
@@ -15910,7 +15914,7 @@ const Rv = f.model("QueryModel", {
|
|
|
15910
15914
|
})).volatile(() => ({
|
|
15911
15915
|
controller: new AbortController()
|
|
15912
15916
|
})).actions((e) => ({
|
|
15913
|
-
runSQL:
|
|
15917
|
+
runSQL: bt(function* () {
|
|
15914
15918
|
var t;
|
|
15915
15919
|
if (e.valid && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
15916
15920
|
e.controller = new AbortController(), e.state = "loading";
|
|
@@ -15938,7 +15942,7 @@ const Rv = f.model("QueryModel", {
|
|
|
15938
15942
|
}
|
|
15939
15943
|
}
|
|
15940
15944
|
}),
|
|
15941
|
-
runHTTP:
|
|
15945
|
+
runHTTP: bt(function* () {
|
|
15942
15946
|
var t;
|
|
15943
15947
|
if (console.log("runHTTP, ", e.datasource), !(!e.valid || !e.datasource) && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
15944
15948
|
e.controller = new AbortController(), e.state = "loading";
|
|
@@ -16004,7 +16008,7 @@ const Rv = f.model("QueryModel", {
|
|
|
16004
16008
|
}
|
|
16005
16009
|
})).actions((e) => ({
|
|
16006
16010
|
replace(t) {
|
|
16007
|
-
e.current =
|
|
16011
|
+
e.current = Tt(t);
|
|
16008
16012
|
},
|
|
16009
16013
|
append(t) {
|
|
16010
16014
|
e.current.push(t);
|
|
@@ -16099,7 +16103,7 @@ const Rv = f.model("QueryModel", {
|
|
|
16099
16103
|
}
|
|
16100
16104
|
})).actions((e) => ({
|
|
16101
16105
|
replace(t) {
|
|
16102
|
-
e.current =
|
|
16106
|
+
e.current = Tt(t);
|
|
16103
16107
|
},
|
|
16104
16108
|
append(t) {
|
|
16105
16109
|
e.current.push(t);
|
|
@@ -16347,7 +16351,7 @@ const Rv = f.model("QueryModel", {
|
|
|
16347
16351
|
e.setKeywords(t, r);
|
|
16348
16352
|
}
|
|
16349
16353
|
})).actions((e) => {
|
|
16350
|
-
const t =
|
|
16354
|
+
const t = bt(function* () {
|
|
16351
16355
|
var r;
|
|
16352
16356
|
(r = e.controllers.tables) == null || r.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
|
|
16353
16357
|
try {
|
|
@@ -16370,7 +16374,7 @@ const Rv = f.model("QueryModel", {
|
|
|
16370
16374
|
loadTablesIfEmpty() {
|
|
16371
16375
|
e.tables.empty && t();
|
|
16372
16376
|
},
|
|
16373
|
-
loadColumns:
|
|
16377
|
+
loadColumns: bt(function* () {
|
|
16374
16378
|
var r;
|
|
16375
16379
|
(r = e.controllers.columns) == null || r.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
|
|
16376
16380
|
try {
|
|
@@ -16389,7 +16393,7 @@ const Rv = f.model("QueryModel", {
|
|
|
16389
16393
|
}
|
|
16390
16394
|
}
|
|
16391
16395
|
}),
|
|
16392
|
-
loadIndexes:
|
|
16396
|
+
loadIndexes: bt(function* () {
|
|
16393
16397
|
var r;
|
|
16394
16398
|
(r = e.controllers.indexes) == null || r.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
|
|
16395
16399
|
try {
|
|
@@ -16408,7 +16412,7 @@ const Rv = f.model("QueryModel", {
|
|
|
16408
16412
|
}
|
|
16409
16413
|
}
|
|
16410
16414
|
}),
|
|
16411
|
-
loadTableData:
|
|
16415
|
+
loadTableData: bt(function* () {
|
|
16412
16416
|
var i;
|
|
16413
16417
|
(i = e.controllers.tableData) == null || i.abort(), e.controllers.tableData = new AbortController();
|
|
16414
16418
|
const r = e.tableData;
|
|
@@ -17079,7 +17083,7 @@ const r0 = f.model("PanelsModel", {
|
|
|
17079
17083
|
e.grow = t;
|
|
17080
17084
|
},
|
|
17081
17085
|
setTabs(t) {
|
|
17082
|
-
e.tabs.length = 0, e.tabs =
|
|
17086
|
+
e.tabs.length = 0, e.tabs = Tt(t);
|
|
17083
17087
|
},
|
|
17084
17088
|
addTab() {
|
|
17085
17089
|
const t = dt(), r = {
|
|
@@ -17937,7 +17941,7 @@ const R0 = {
|
|
|
17937
17941
|
}) => {
|
|
17938
17942
|
const {
|
|
17939
17943
|
freezeLayout: r
|
|
17940
|
-
} = z.useContext(
|
|
17944
|
+
} = z.useContext(mt);
|
|
17941
17945
|
return z.useEffect(() => {
|
|
17942
17946
|
r(e);
|
|
17943
17947
|
}, [e]), /* @__PURE__ */ n(
|
|
@@ -18031,7 +18035,7 @@ const $0 = S(() => {
|
|
|
18031
18035
|
}
|
|
18032
18036
|
e.editor.open(["_FILTERS_", e.filters.firstID]);
|
|
18033
18037
|
}, [i, a] = N(!1), o = () => a(!0), l = () => a(!1);
|
|
18034
|
-
return /* @__PURE__ */ c(
|
|
18038
|
+
return /* @__PURE__ */ c(Ye, { p: 0, width: {
|
|
18035
18039
|
base: 200,
|
|
18036
18040
|
xs: 200,
|
|
18037
18041
|
sm: 200,
|
|
@@ -18039,7 +18043,7 @@ const $0 = S(() => {
|
|
|
18039
18043
|
lg: 240,
|
|
18040
18044
|
xl: 260
|
|
18041
18045
|
}, children: [
|
|
18042
|
-
/* @__PURE__ */ c(
|
|
18046
|
+
/* @__PURE__ */ c(Ye.Section, { children: [
|
|
18043
18047
|
/* @__PURE__ */ c(y, { grow: !0, spacing: 0, sx: {
|
|
18044
18048
|
...Ho,
|
|
18045
18049
|
button: {
|
|
@@ -18054,16 +18058,16 @@ const $0 = S(() => {
|
|
|
18054
18058
|
] }),
|
|
18055
18059
|
/* @__PURE__ */ n(P0, { opened: i, close: l })
|
|
18056
18060
|
] }),
|
|
18057
|
-
/* @__PURE__ */ n(
|
|
18061
|
+
/* @__PURE__ */ n(Ye.Section, { py: 5, sx: {
|
|
18058
18062
|
borderBottom: "1px solid #eee"
|
|
18059
18063
|
}, children: /* @__PURE__ */ n(v, { align: "center", sx: {
|
|
18060
18064
|
userSelect: "none",
|
|
18061
18065
|
cursor: "default"
|
|
18062
18066
|
}, children: "Views" }) }),
|
|
18063
|
-
/* @__PURE__ */ n(
|
|
18067
|
+
/* @__PURE__ */ n(Ye.Section, { grow: !0, sx: {
|
|
18064
18068
|
overflow: "auto"
|
|
18065
18069
|
}, children: /* @__PURE__ */ n($0, {}) }),
|
|
18066
|
-
/* @__PURE__ */ n(
|
|
18070
|
+
/* @__PURE__ */ n(Ye.Section, { children: /* @__PURE__ */ n(y, { grow: !0, p: "md", pt: "sm", sx: {
|
|
18067
18071
|
borderTop: "1px solid #eee"
|
|
18068
18072
|
}, children: /* @__PURE__ */ n(D, { size: "xs", leftIcon: /* @__PURE__ */ n(Xl, { size: 20 }), onClick: () => e.editor.open([]), children: "Settings" }) }) })
|
|
18069
18073
|
] });
|
|
@@ -18141,7 +18145,7 @@ const $0 = S(() => {
|
|
|
18141
18145
|
const [e, t] = N(!1);
|
|
18142
18146
|
return /* @__PURE__ */ c(P, { children: [
|
|
18143
18147
|
/* @__PURE__ */ n(D, { variant: "subtle", compact: !0, onClick: () => t((r) => !r), children: e ? "Close" : "Click to see expected data structure" }),
|
|
18144
|
-
/* @__PURE__ */ n(Kn, { in: e, children: /* @__PURE__ */ n(
|
|
18148
|
+
/* @__PURE__ */ n(Kn, { in: e, children: /* @__PURE__ */ n(wt, { language: "typescript", noCopy: !0, colorScheme: "dark", children: q0 }) })
|
|
18145
18149
|
] });
|
|
18146
18150
|
}, W0 = S(function({
|
|
18147
18151
|
config: t
|
|
@@ -18166,7 +18170,7 @@ const $0 = S(() => {
|
|
|
18166
18170
|
top: "-5px",
|
|
18167
18171
|
bottom: "-5px"
|
|
18168
18172
|
} }),
|
|
18169
|
-
/* @__PURE__ */ n(
|
|
18173
|
+
/* @__PURE__ */ n(Ct, { sx: {
|
|
18170
18174
|
position: "absolute",
|
|
18171
18175
|
top: 0,
|
|
18172
18176
|
left: 0,
|
|
@@ -18231,7 +18235,7 @@ const $0 = S(() => {
|
|
|
18231
18235
|
top: "-5px",
|
|
18232
18236
|
bottom: "-5px"
|
|
18233
18237
|
} }),
|
|
18234
|
-
/* @__PURE__ */ n(
|
|
18238
|
+
/* @__PURE__ */ n(Ct, { sx: {
|
|
18235
18239
|
position: "absolute",
|
|
18236
18240
|
top: 0,
|
|
18237
18241
|
left: 0,
|
|
@@ -18290,7 +18294,7 @@ const $0 = S(() => {
|
|
|
18290
18294
|
const [e, t] = N(!1);
|
|
18291
18295
|
return /* @__PURE__ */ c(P, { children: [
|
|
18292
18296
|
/* @__PURE__ */ n(D, { variant: "subtle", compact: !0, onClick: () => t((r) => !r), children: e ? "Close" : "Click to see expected data structure" }),
|
|
18293
|
-
/* @__PURE__ */ n(Kn, { in: e, children: /* @__PURE__ */ n(
|
|
18297
|
+
/* @__PURE__ */ n(Kn, { in: e, children: /* @__PURE__ */ n(wt, { language: "typescript", noCopy: !0, colorScheme: "dark", children: H0 }) })
|
|
18294
18298
|
] });
|
|
18295
18299
|
}, Y0 = S(function({
|
|
18296
18300
|
config: t
|
|
@@ -18314,7 +18318,7 @@ const $0 = S(() => {
|
|
|
18314
18318
|
/* @__PURE__ */ n(v, { pb: "md", color: "gray", children: "Preview" }),
|
|
18315
18319
|
/* @__PURE__ */ n(Ia, { filter: t, value: r, onChange: i }),
|
|
18316
18320
|
/* @__PURE__ */ n(v, { pt: "lg", pb: "md", color: "gray", children: "Config" }),
|
|
18317
|
-
/* @__PURE__ */ n(
|
|
18321
|
+
/* @__PURE__ */ n(wt, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t, null, 4) })
|
|
18318
18322
|
] });
|
|
18319
18323
|
}), X0 = {
|
|
18320
18324
|
select: G0,
|
|
@@ -18781,7 +18785,7 @@ const hw = z.forwardRef(function({
|
|
|
18781
18785
|
] }),
|
|
18782
18786
|
/* @__PURE__ */ n(Sn, { label: "Aggregation", value: t.aggregation, onChange: (s) => l("aggregation", s) }),
|
|
18783
18787
|
/* @__PURE__ */ n(L, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
18784
|
-
/* @__PURE__ */ n(
|
|
18788
|
+
/* @__PURE__ */ n(We, { value: t.formatter, onChange: (s) => l("formatter", s) }),
|
|
18785
18789
|
a && /* @__PURE__ */ n(Ya, { value: t, onChange: r })
|
|
18786
18790
|
] });
|
|
18787
18791
|
}), el = Nt((e) => ({
|
|
@@ -18837,7 +18841,7 @@ const hw = z.forwardRef(function({
|
|
|
18837
18841
|
/* @__PURE__ */ c(_, { "data-testid": "variable-editor", align: "stretch", className: r.config, children: [
|
|
18838
18842
|
/* @__PURE__ */ c(y, { position: "right", children: [
|
|
18839
18843
|
/* @__PURE__ */ n($, { variant: "filled", disabled: !t.changed, color: "primary", onClick: t.commit, children: /* @__PURE__ */ n(Gt, { size: 18 }) }),
|
|
18840
|
-
/* @__PURE__ */ n($, { color: "red", onClick: () => e.uiModel.remove(e.variable), children: /* @__PURE__ */ n(
|
|
18844
|
+
/* @__PURE__ */ n($, { color: "red", onClick: () => e.uiModel.remove(e.variable), children: /* @__PURE__ */ n(vt, { size: 18 }) })
|
|
18841
18845
|
] }),
|
|
18842
18846
|
/* @__PURE__ */ n(hw, { value: Oe(t.copy), onChange: t.update, data: i })
|
|
18843
18847
|
] }),
|
|
@@ -18858,7 +18862,7 @@ const hw = z.forwardRef(function({
|
|
|
18858
18862
|
function ww() {
|
|
18859
18863
|
const {
|
|
18860
18864
|
vizManager: e
|
|
18861
|
-
} =
|
|
18865
|
+
} = Be(Ge);
|
|
18862
18866
|
return k(() => {
|
|
18863
18867
|
const t = e.availableVizList.map((r) => ({
|
|
18864
18868
|
value: r.name,
|
|
@@ -18902,7 +18906,7 @@ function Sw() {
|
|
|
18902
18906
|
}
|
|
18903
18907
|
} = me(), {
|
|
18904
18908
|
vizManager: p
|
|
18905
|
-
} =
|
|
18909
|
+
} = Be(Ge), m = {
|
|
18906
18910
|
title: i,
|
|
18907
18911
|
description: o,
|
|
18908
18912
|
viz: r,
|
|
@@ -18927,7 +18931,7 @@ const kw = S(() => {
|
|
|
18927
18931
|
}
|
|
18928
18932
|
} = me(), {
|
|
18929
18933
|
vizManager: r
|
|
18930
|
-
} =
|
|
18934
|
+
} = Be(Ge), i = z.useCallback((u) => {
|
|
18931
18935
|
if (u === t.type)
|
|
18932
18936
|
return;
|
|
18933
18937
|
const p = Cw(r, u);
|
|
@@ -19062,7 +19066,7 @@ const zw = S(({
|
|
|
19062
19066
|
] }),
|
|
19063
19067
|
/* @__PURE__ */ c(y, { position: "right", noWrap: !0, children: [
|
|
19064
19068
|
/* @__PURE__ */ n(Tw, { panel: e, sourceViewID: h }),
|
|
19065
|
-
/* @__PURE__ */ n(D, { size: "xs", variant: "subtle", color: "red", onClick: w, leftIcon: /* @__PURE__ */ n(
|
|
19069
|
+
/* @__PURE__ */ n(D, { size: "xs", variant: "subtle", color: "red", onClick: w, leftIcon: /* @__PURE__ */ n(vt, { size: 14 }), children: "Delete This Panel" })
|
|
19066
19070
|
] })
|
|
19067
19071
|
] }),
|
|
19068
19072
|
/* @__PURE__ */ c(x, { value: i, onTabChange: a, keepMounted: !1, styles: Dw, children: [
|
|
@@ -19546,14 +19550,14 @@ const Ow = S(({
|
|
|
19546
19550
|
hover: !0,
|
|
19547
19551
|
focus: !1,
|
|
19548
19552
|
touch: !1
|
|
19549
|
-
}, withinPortal: !0, children: /* @__PURE__ */ n(D, { color: "gray", size: "xs", leftIcon: /* @__PURE__ */ n(
|
|
19553
|
+
}, withinPortal: !0, children: /* @__PURE__ */ n(D, { color: "gray", size: "xs", leftIcon: /* @__PURE__ */ n(vt, { size: 16 }), sx: {
|
|
19550
19554
|
alignSelf: "flex-end"
|
|
19551
|
-
}, children: "Delete this Query" }) }) : /* @__PURE__ */ n(D, { color: "red", size: "xs", onClick: l, leftIcon: /* @__PURE__ */ n(
|
|
19555
|
+
}, children: "Delete this Query" }) }) : /* @__PURE__ */ n(D, { color: "red", size: "xs", onClick: l, leftIcon: /* @__PURE__ */ n(vt, { size: 16 }), sx: {
|
|
19552
19556
|
alignSelf: "flex-end"
|
|
19553
19557
|
}, children: "Delete this Query" });
|
|
19554
19558
|
}, Xw = S(Uw), Kw = S(({
|
|
19555
19559
|
queryModel: e
|
|
19556
|
-
}) => /* @__PURE__ */ n(
|
|
19560
|
+
}) => /* @__PURE__ */ n(Ct, { ml: 20, mt: 20, sx: {
|
|
19557
19561
|
maxWidth: "600px"
|
|
19558
19562
|
}, children: /* @__PURE__ */ c(_, { spacing: 10, sx: {
|
|
19559
19563
|
width: "100%"
|
|
@@ -19681,13 +19685,13 @@ WHERE
|
|
|
19681
19685
|
/* @__PURE__ */ n(v, { weight: 500, sx: {
|
|
19682
19686
|
flexGrow: 0
|
|
19683
19687
|
}, children: "Guide" }),
|
|
19684
|
-
/* @__PURE__ */ n(
|
|
19688
|
+
/* @__PURE__ */ n(wt, { language: "sql", sx: {
|
|
19685
19689
|
width: "100%"
|
|
19686
19690
|
}, noCopy: !0, colorScheme: "dark", children: e_ }),
|
|
19687
19691
|
/* @__PURE__ */ n(v, { weight: 500, sx: {
|
|
19688
19692
|
flexGrow: 0
|
|
19689
19693
|
}, children: "Current Values" }),
|
|
19690
|
-
/* @__PURE__ */ n(
|
|
19694
|
+
/* @__PURE__ */ n(wt, { language: "json", sx: {
|
|
19691
19695
|
width: "100%"
|
|
19692
19696
|
}, noCopy: !0, colorScheme: "dark", children: o })
|
|
19693
19697
|
] }) });
|
|
@@ -20268,7 +20272,7 @@ const z_ = S(() => /* @__PURE__ */ n(_, { sx: {
|
|
|
20268
20272
|
}, children: e.editor.navOptions.map((t) => /* @__PURE__ */ n(il, { option: t }, t.value)) });
|
|
20269
20273
|
}), E_ = S(() => {
|
|
20270
20274
|
const e = F();
|
|
20271
|
-
return /* @__PURE__ */ c(
|
|
20275
|
+
return /* @__PURE__ */ c(Ye, { p: 0, width: {
|
|
20272
20276
|
base: 200,
|
|
20273
20277
|
xs: 200,
|
|
20274
20278
|
sm: 220,
|
|
@@ -20278,16 +20282,16 @@ const z_ = S(() => /* @__PURE__ */ n(_, { sx: {
|
|
|
20278
20282
|
}, sx: {
|
|
20279
20283
|
height: "100vh - 60px - 60px"
|
|
20280
20284
|
}, children: [
|
|
20281
|
-
/* @__PURE__ */ n(
|
|
20285
|
+
/* @__PURE__ */ n(Ye.Section, { pt: 9, pb: 8, sx: {
|
|
20282
20286
|
borderBottom: "1px solid #eee"
|
|
20283
20287
|
}, children: /* @__PURE__ */ n(v, { align: "center", sx: {
|
|
20284
20288
|
userSelect: "none",
|
|
20285
20289
|
cursor: "default"
|
|
20286
20290
|
}, children: "Settings" }) }),
|
|
20287
|
-
/* @__PURE__ */ n(
|
|
20291
|
+
/* @__PURE__ */ n(Ye.Section, { grow: !0, sx: {
|
|
20288
20292
|
overflow: "auto"
|
|
20289
20293
|
}, children: /* @__PURE__ */ n(O_, {}) }),
|
|
20290
|
-
/* @__PURE__ */ n(
|
|
20294
|
+
/* @__PURE__ */ n(Ye.Section, { children: /* @__PURE__ */ n(y, { grow: !0, p: "md", pt: "sm", sx: {
|
|
20291
20295
|
borderTop: "1px solid #eee"
|
|
20292
20296
|
}, children: /* @__PURE__ */ n(D, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ n(Wi, { size: 18 }), onClick: () => e.editor.close(), children: "Close" }) }) })
|
|
20293
20297
|
] });
|
|
@@ -20448,11 +20452,11 @@ const j_ = {
|
|
|
20448
20452
|
const g = async () => {
|
|
20449
20453
|
await i(h.json);
|
|
20450
20454
|
}, w = Me($r, []), T = jo(w);
|
|
20451
|
-
return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: h, children: /* @__PURE__ */ n(
|
|
20455
|
+
return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: h, children: /* @__PURE__ */ n(mt.Provider, { value: {
|
|
20452
20456
|
layoutFrozen: p,
|
|
20453
20457
|
freezeLayout: m,
|
|
20454
20458
|
inEditMode: !0
|
|
20455
|
-
}, children: /* @__PURE__ */ n(
|
|
20459
|
+
}, children: /* @__PURE__ */ n(Ge.Provider, { value: w, children: /* @__PURE__ */ c(wn, { configure: T, children: [
|
|
20456
20460
|
/* @__PURE__ */ n(Li, { padding: 0, header: /* @__PURE__ */ n(h0, { saveDashboardChanges: g, headerSlot: s }), navbar: /* @__PURE__ */ n(O0, {}), styles: j_, children: /* @__PURE__ */ n(V, { className: `${a} dashboard-root`, sx: {
|
|
20457
20461
|
position: "relative"
|
|
20458
20462
|
}, children: h.views.visibleViews.map((q) => /* @__PURE__ */ n(Xy, { view: q }, q.id)) }) }),
|
|
@@ -20481,11 +20485,11 @@ const A1 = S(({
|
|
|
20481
20485
|
return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: s, children: /* @__PURE__ */ n(Ta.Provider, { value: {
|
|
20482
20486
|
fullScreenPanelID: a,
|
|
20483
20487
|
setFullScreenPanelID: o
|
|
20484
|
-
}, children: /* @__PURE__ */ n(
|
|
20488
|
+
}, children: /* @__PURE__ */ n(mt.Provider, { value: {
|
|
20485
20489
|
layoutFrozen: !0,
|
|
20486
20490
|
freezeLayout: C.noop,
|
|
20487
20491
|
inEditMode: !1
|
|
20488
|
-
}, children: /* @__PURE__ */ n(V, { className: `${r} dashboard-root`, children: /* @__PURE__ */ n(
|
|
20492
|
+
}, children: /* @__PURE__ */ n(V, { className: `${r} dashboard-root`, children: /* @__PURE__ */ n(Ge.Provider, { value: d, children: /* @__PURE__ */ n(wn, { configure: u, children: s.views.visibleViews.map((p) => /* @__PURE__ */ n(Nr, { view: p }, p.id)) }) }) }) }) }) }) });
|
|
20489
20493
|
});
|
|
20490
20494
|
O.extend(As);
|
|
20491
20495
|
O.extend(Vs);
|
|
@@ -20537,7 +20541,7 @@ export {
|
|
|
20537
20541
|
wi as FilterModel,
|
|
20538
20542
|
mv as FiltersModel,
|
|
20539
20543
|
Ta as FullScreenPanelContext,
|
|
20540
|
-
|
|
20544
|
+
mt as LayoutStateContext,
|
|
20541
20545
|
_a as ModelContextProvider,
|
|
20542
20546
|
Er as Panel,
|
|
20543
20547
|
ka as PanelContextProvider,
|