@devtable/dashboard 8.55.0 → 8.55.1
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 +227 -224
- package/dist/dashboard.umd.js +33 -33
- 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
|
|
5
|
+
import { Box as V, Text as v, Button as D, Checkbox as K, Group as y, Tooltip as ee, MultiSelect as Nt, Select as A, TextInput as I, createStyles as Bt, Stack as _, Badge as ln, CloseButton as dl, Modal as te, 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 ht, 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 pt, Accordion as st, Popover as Vn, LoadingOverlay as mt, Flex as qt, 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
|
-
import { useCreation as Me, usePrevious as vl, useBoolean as ve, useLatest as oi, useRequest as
|
|
7
|
+
import { useCreation as Me, usePrevious as vl, useBoolean as ve, useLatest as oi, useRequest as Wt, useAsyncEffect as Gt } from "ahooks";
|
|
8
8
|
import { observer as S } from "mobx-react-lite";
|
|
9
9
|
import z, { useEffect as M, createContext as Vi, useMemo as k, forwardRef as ne, useState as N, useCallback as fe, useContext as Be, useRef as wl, createElement as pn, memo as _l } from "react";
|
|
10
|
-
import C, { template as Jn, cloneDeepWith as Ri, get as H, isFunction as Cl, omit as
|
|
10
|
+
import C, { template as Jn, cloneDeepWith as Ri, get as H, isFunction as Cl, omit as dt, values as Mi, unset as Sl, isObject as Fi, set as er, orderBy as kl, last as Pi, defaults as ie, minBy as Tl, maxBy as Dl, cloneDeep as ce, isEqual as Z, defaultsDeep as re, 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
|
|
12
|
+
import { IconInfoCircle as nr, IconPlus as rt, IconDeviceFloppy as jt, IconBorderAll as Ml, IconTrash as vt, IconArrowDown as Fl, IconArrowUp as Pl, 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";
|
|
@@ -27,13 +27,13 @@ import { useEditor as ra } from "@tiptap/react";
|
|
|
27
27
|
import ia from "@tiptap/starter-kit";
|
|
28
28
|
import { DateRangePicker as rs } from "@mantine/dates";
|
|
29
29
|
import O from "dayjs";
|
|
30
|
-
import { Calendar as is, InfoCircle as
|
|
30
|
+
import { Calendar as is, InfoCircle as Ht, Refresh as aa, Download as oa, ArrowsMaximize as as, Settings as la, Copy as os, Trash as Y, DeviceFloppy as Q, ArrowRight as Fn, PlaylistAdd as gn, Recycle as Xe, Plus as he, AlertCircle as ls, ArrowsMove as ss, ChevronDownRight as cs, ArrowLeft as ds, ChevronsUpRight as us, ArrowBarToRight as hs } from "tabler-icons-react";
|
|
31
31
|
import { arrayToTree as ps } from "performant-array-to-tree";
|
|
32
32
|
import ms, { SHOW_PARENT as gs } from "rc-tree-select";
|
|
33
33
|
import sa, { WidthProvider as ca } from "react-grid-layout";
|
|
34
|
-
import { observable as da, runInAction as
|
|
34
|
+
import { observable as da, runInAction as Mt, toJS as it, reaction as Ee, makeAutoObservable as Qt } from "mobx";
|
|
35
35
|
import si from "eventemitter2";
|
|
36
|
-
import
|
|
36
|
+
import Pt, { random as fn } from "chroma-js";
|
|
37
37
|
import "echarts-gl";
|
|
38
38
|
import * as U from "/Users/leto/Merico/merico-dev/table/node_modules/echarts/core.js";
|
|
39
39
|
import { GridComponent as Fe, VisualMapComponent as rr, LegendComponent as Pe, TooltipComponent as $e, DataZoomComponent as Ke, MarkLineComponent as bn, MarkAreaComponent as ir, CalendarComponent as fs } from "/Users/leto/Merico/merico-dev/table/node_modules/echarts/components.js";
|
|
@@ -41,7 +41,7 @@ import { CanvasRenderer as Ce } from "/Users/leto/Merico/merico-dev/table/node_m
|
|
|
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
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
|
-
import { useElementSize as
|
|
44
|
+
import { useElementSize as $t, randomId as ut, 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";
|
|
47
47
|
import { quantile as nn } from "d3-array";
|
|
@@ -53,7 +53,7 @@ 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 Tt, addDisposer as et, addMiddleware as Ts, getType as Ds, isAlive as ci, flow as bt, toGenerator 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 ct, 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";
|
|
@@ -440,7 +440,7 @@ const sr = {
|
|
|
440
440
|
layoutFrozen: !1,
|
|
441
441
|
freezeLayout: C.noop,
|
|
442
442
|
inEditMode: !1
|
|
443
|
-
},
|
|
443
|
+
}, gt = z.createContext(vc), Sa = z.createContext({
|
|
444
444
|
panel: null,
|
|
445
445
|
data: [],
|
|
446
446
|
loading: !1
|
|
@@ -477,7 +477,7 @@ const Da = ne(({
|
|
|
477
477
|
const a = P(), o = !!t.options_query_id, {
|
|
478
478
|
state: l
|
|
479
479
|
} = a.getDataStuffByID(t.options_query_id), s = l === "loading", d = t.min_width ? t.min_width : "200px", u = o ? s : !1;
|
|
480
|
-
return /* @__PURE__ */ n(
|
|
480
|
+
return /* @__PURE__ */ n(Nt, { label: e, data: t.options, disabled: u, value: r, onChange: i, styles: {
|
|
481
481
|
root: {
|
|
482
482
|
minWidth: d,
|
|
483
483
|
maxWidth: u ? d : "unset"
|
|
@@ -559,7 +559,7 @@ const Dc = ({
|
|
|
559
559
|
] }), Lc = ({
|
|
560
560
|
onClick: e,
|
|
561
561
|
...t
|
|
562
|
-
}) => /* @__PURE__ */ n(zc, { onClick: e, ...t }), Ac =
|
|
562
|
+
}) => /* @__PURE__ */ n(zc, { onClick: e, ...t }), Ac = Bt((e, {
|
|
563
563
|
radius: t = 4
|
|
564
564
|
}) => ({
|
|
565
565
|
root: {
|
|
@@ -995,7 +995,7 @@ function Pc(e) {
|
|
|
995
995
|
const La = S(() => {
|
|
996
996
|
const {
|
|
997
997
|
freezeLayout: e
|
|
998
|
-
} = z.useContext(
|
|
998
|
+
} = z.useContext(gt), [t, r] = z.useState(!1), {
|
|
999
999
|
panel: i
|
|
1000
1000
|
} = me();
|
|
1001
1001
|
return z.useEffect(() => {
|
|
@@ -1012,7 +1012,7 @@ const La = S(() => {
|
|
|
1012
1012
|
/* @__PURE__ */ n(ee, { label: "Click to see description", position: "top-start", withinPortal: !0, children: /* @__PURE__ */ n($, { variant: "subtle", color: "blue", onClick: () => r((a) => !a), sx: {
|
|
1013
1013
|
verticalAlign: "baseline",
|
|
1014
1014
|
cursor: "pointer"
|
|
1015
|
-
}, children: /* @__PURE__ */ n(
|
|
1015
|
+
}, children: /* @__PURE__ */ n(Ht, { size: 20 }) }) })
|
|
1016
1016
|
] });
|
|
1017
1017
|
}), $c = S(({
|
|
1018
1018
|
view: e
|
|
@@ -1024,7 +1024,7 @@ const La = S(() => {
|
|
|
1024
1024
|
query: o
|
|
1025
1025
|
} = i, {
|
|
1026
1026
|
inEditMode: l
|
|
1027
|
-
} = z.useContext(
|
|
1027
|
+
} = z.useContext(gt), s = () => o == null ? void 0 : o.fetchData(), {
|
|
1028
1028
|
viewPanelInFullScreen: d,
|
|
1029
1029
|
inFullScreen: u
|
|
1030
1030
|
} = z.useContext(lr), p = () => {
|
|
@@ -1090,7 +1090,7 @@ class xt {
|
|
|
1090
1090
|
async deleteItem(t) {
|
|
1091
1091
|
t === null && await this.root.deleteItem(this.path);
|
|
1092
1092
|
const r = await this.root.getItem(this.path) || {};
|
|
1093
|
-
await this.root.setItem(this.path,
|
|
1093
|
+
await this.root.setItem(this.path, dt(r, t));
|
|
1094
1094
|
}
|
|
1095
1095
|
async getItem(t) {
|
|
1096
1096
|
const r = await this.root.getItem(this.path);
|
|
@@ -1145,7 +1145,7 @@ class Aa {
|
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
1147
|
async deleteItem(t) {
|
|
1148
|
-
|
|
1148
|
+
Mt(() => {
|
|
1149
1149
|
Sl(this.rootRef.current, [t]);
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
@@ -1159,13 +1159,13 @@ class Aa {
|
|
|
1159
1159
|
setItem(t, r) {
|
|
1160
1160
|
if (t === null)
|
|
1161
1161
|
if (Fi(r))
|
|
1162
|
-
|
|
1162
|
+
Mt(() => {
|
|
1163
1163
|
this.rootRef.current = r;
|
|
1164
1164
|
});
|
|
1165
1165
|
else
|
|
1166
1166
|
throw new Error("Cannot set root value to non-object");
|
|
1167
1167
|
else
|
|
1168
|
-
|
|
1168
|
+
Mt(() => {
|
|
1169
1169
|
er(this.rootRef.current, [t], r);
|
|
1170
1170
|
});
|
|
1171
1171
|
return Promise.resolve(this.getItem(t));
|
|
@@ -1256,7 +1256,7 @@ const Bc = (e) => {
|
|
|
1256
1256
|
height: t.layout.h
|
|
1257
1257
|
}
|
|
1258
1258
|
}, d = o.viewRender;
|
|
1259
|
-
return /* @__PURE__ */ n(d, { context: s, instance: l, ...
|
|
1259
|
+
return /* @__PURE__ */ n(d, { context: s, instance: l, ...dt(e, ["panel", "vizManager", "data"]) });
|
|
1260
1260
|
}, qc = (e) => {
|
|
1261
1261
|
const {
|
|
1262
1262
|
vizManager: t,
|
|
@@ -1268,14 +1268,14 @@ const Bc = (e) => {
|
|
|
1268
1268
|
...Va(s, a, t, o),
|
|
1269
1269
|
panelInfoEditor: i
|
|
1270
1270
|
}, u = l.configRender;
|
|
1271
|
-
return /* @__PURE__ */ n(u, { context: d, instance: s, ...
|
|
1271
|
+
return /* @__PURE__ */ n(u, { context: d, instance: s, ...dt(e, ["panel", "vizManager", "data", "panelInfoEditor"]) });
|
|
1272
1272
|
}, Ra = (e, t) => {
|
|
1273
|
-
const r =
|
|
1273
|
+
const r = Pt.bezier(e), i = Pt.bezier(t);
|
|
1274
1274
|
return function(a) {
|
|
1275
1275
|
return a < 50 ? r(a * 2 / 100).hex() : i((a - 50) * 2 / 100).hex();
|
|
1276
1276
|
};
|
|
1277
1277
|
}, Cn = (e) => {
|
|
1278
|
-
const t =
|
|
1278
|
+
const t = Pt.bezier(e);
|
|
1279
1279
|
return function(r) {
|
|
1280
1280
|
return t(r / 100).hex();
|
|
1281
1281
|
};
|
|
@@ -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.55.
|
|
1318
|
+
}, Ma = "@devtable/dashboard", dr = "8.55.1", Fa = "Apache-2.0", Pa = {
|
|
1319
1319
|
access: "public",
|
|
1320
1320
|
registry: "https://registry.npmjs.org/"
|
|
1321
1321
|
}, $a = [
|
|
@@ -2005,7 +2005,7 @@ const sd = [{
|
|
|
2005
2005
|
)
|
|
2006
2006
|
] })
|
|
2007
2007
|
] });
|
|
2008
|
-
}),
|
|
2008
|
+
}), ft = ne(({
|
|
2009
2009
|
value: e,
|
|
2010
2010
|
onChange: t
|
|
2011
2011
|
}, r) => {
|
|
@@ -2083,7 +2083,7 @@ const hr = {
|
|
|
2083
2083
|
},
|
|
2084
2084
|
color: "#228be6",
|
|
2085
2085
|
reference_lines: []
|
|
2086
|
-
},
|
|
2086
|
+
}, Ot = ne(function({
|
|
2087
2087
|
value: t,
|
|
2088
2088
|
onChange: r,
|
|
2089
2089
|
...i
|
|
@@ -2348,7 +2348,7 @@ z.forwardRef(function({
|
|
|
2348
2348
|
a && /* @__PURE__ */ n(Ya, { value: t, onChange: r })
|
|
2349
2349
|
] });
|
|
2350
2350
|
});
|
|
2351
|
-
const
|
|
2351
|
+
const Yt = {
|
|
2352
2352
|
type: "none",
|
|
2353
2353
|
config: {}
|
|
2354
2354
|
};
|
|
@@ -2360,7 +2360,7 @@ function xd(e, t) {
|
|
|
2360
2360
|
const r = e[t], i = Number(r);
|
|
2361
2361
|
return isFinite(i) ? i : 0;
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2363
|
+
function Ut(e, t, r) {
|
|
2364
2364
|
try {
|
|
2365
2365
|
const i = e.map((a) => xd(a, t));
|
|
2366
2366
|
switch (r.type) {
|
|
@@ -2403,13 +2403,13 @@ class yd {
|
|
|
2403
2403
|
function vd(e) {
|
|
2404
2404
|
return e === null ? "null" : e === void 0 ? "undefined" : Array.isArray(e) ? `Array(${e.length})` : e.toString();
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2406
|
+
function Dt({
|
|
2407
2407
|
data_field: e,
|
|
2408
2408
|
aggregation: t
|
|
2409
2409
|
}, r) {
|
|
2410
|
-
return
|
|
2410
|
+
return Ut(r, e, t);
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2412
|
+
function ot({
|
|
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 =
|
|
2437
|
+
} = e, s = Ut(t, i, a), d = ot(e, s);
|
|
2438
2438
|
return /* @__PURE__ */ n(v, { sx: {
|
|
2439
2439
|
fontSize: o,
|
|
2440
2440
|
display: "inline"
|
|
@@ -2464,7 +2464,7 @@ function Sd(e) {
|
|
|
2464
2464
|
function $n(e) {
|
|
2465
2465
|
return Sd(e);
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function Et(e, t, r) {
|
|
2468
2468
|
const i = _d(t, r), a = /^\{(.+)\}(.*)$/;
|
|
2469
2469
|
return e.split("$").map((o) => {
|
|
2470
2470
|
const l = a.exec(o);
|
|
@@ -2487,8 +2487,8 @@ function kd(e, t) {
|
|
|
2487
2487
|
name: a,
|
|
2488
2488
|
data_field: o,
|
|
2489
2489
|
aggregation: l
|
|
2490
|
-
} = i, s =
|
|
2491
|
-
r[a] =
|
|
2490
|
+
} = i, s = Ut(t, o, l);
|
|
2491
|
+
r[a] = ot(i, s);
|
|
2492
2492
|
}), r;
|
|
2493
2493
|
}
|
|
2494
2494
|
function kn(e, t, r) {
|
|
@@ -2504,7 +2504,7 @@ function kn(e, t, r) {
|
|
|
2504
2504
|
return `${s}${d}`;
|
|
2505
2505
|
}).join("");
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2507
|
+
function It({
|
|
2508
2508
|
enabled: e,
|
|
2509
2509
|
func_content: t
|
|
2510
2510
|
}) {
|
|
@@ -2607,8 +2607,8 @@ function Ld(e, t) {
|
|
|
2607
2607
|
}
|
|
2608
2608
|
function Ad(e, t, r) {
|
|
2609
2609
|
const i = t.reduce((a, o) => {
|
|
2610
|
-
const l =
|
|
2611
|
-
return a[o.name] =
|
|
2610
|
+
const l = Dt(o, r);
|
|
2611
|
+
return a[o.name] = ot(o, l), a;
|
|
2612
2612
|
}, {});
|
|
2613
2613
|
return e.map((a) => ({
|
|
2614
2614
|
name: "refs",
|
|
@@ -2663,7 +2663,7 @@ function Vd({
|
|
|
2663
2663
|
axisLabel: {
|
|
2664
2664
|
...i.axisLabel,
|
|
2665
2665
|
...p,
|
|
2666
|
-
formatter:
|
|
2666
|
+
formatter: It(i.axisLabel.formatter)
|
|
2667
2667
|
}
|
|
2668
2668
|
}],
|
|
2669
2669
|
yAxis: [{
|
|
@@ -2816,7 +2816,7 @@ const Pd = ({
|
|
|
2816
2816
|
}) => /* @__PURE__ */ c(V, { sx: {
|
|
2817
2817
|
position: "relative"
|
|
2818
2818
|
}, children: [
|
|
2819
|
-
e && /* @__PURE__ */ n(
|
|
2819
|
+
e && /* @__PURE__ */ n(ht, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
2820
2820
|
/* @__PURE__ */ n(Ie, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
2821
2821
|
a && r(a);
|
|
2822
2822
|
}, theme: "vs-dark", options: {
|
|
@@ -2913,7 +2913,7 @@ const Pd = ({
|
|
|
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(ft, { ...i }) })
|
|
2917
2917
|
] })), Od = ({
|
|
2918
2918
|
control: e,
|
|
2919
2919
|
data: t,
|
|
@@ -2996,7 +2996,7 @@ function Ed({
|
|
|
2996
2996
|
] }) });
|
|
2997
2997
|
}
|
|
2998
2998
|
function Nd(e) {
|
|
2999
|
-
return
|
|
2999
|
+
return dt(e, "variables");
|
|
3000
3000
|
}
|
|
3001
3001
|
function Bd(e) {
|
|
3002
3002
|
const {
|
|
@@ -3410,7 +3410,7 @@ function lu(e) {
|
|
|
3410
3410
|
function su(e) {
|
|
3411
3411
|
return /* @__PURE__ */ n(v, { children: "Click chart's series" });
|
|
3412
3412
|
}
|
|
3413
|
-
const
|
|
3413
|
+
const zt = {
|
|
3414
3414
|
x_axis_scroll: !1,
|
|
3415
3415
|
y_axis_scroll: !1,
|
|
3416
3416
|
x_axis_slider: !1,
|
|
@@ -3446,7 +3446,7 @@ const It = {
|
|
|
3446
3446
|
}],
|
|
3447
3447
|
reference_lines: [],
|
|
3448
3448
|
reference_areas: [],
|
|
3449
|
-
dataZoom:
|
|
3449
|
+
dataZoom: zt
|
|
3450
3450
|
};
|
|
3451
3451
|
function fr(e) {
|
|
3452
3452
|
const t = [];
|
|
@@ -3699,7 +3699,7 @@ function vu({
|
|
|
3699
3699
|
});
|
|
3700
3700
|
const l = br(t, i, a), s = C.groupBy(l, "0");
|
|
3701
3701
|
return Object.entries(s).map(([u, p]) => {
|
|
3702
|
-
const m =
|
|
3702
|
+
const m = Ut(p, "1", r);
|
|
3703
3703
|
return [u, m];
|
|
3704
3704
|
});
|
|
3705
3705
|
}
|
|
@@ -3762,15 +3762,15 @@ function _u({
|
|
|
3762
3762
|
y_axis_data_key: t,
|
|
3763
3763
|
valueTypedXAxis: w
|
|
3764
3764
|
}), ze;
|
|
3765
|
-
const
|
|
3765
|
+
const At = wu({
|
|
3766
3766
|
group_by_key: o,
|
|
3767
3767
|
data: T,
|
|
3768
3768
|
x_axis_data_key: e,
|
|
3769
3769
|
y_axis_data_key: t
|
|
3770
3770
|
});
|
|
3771
|
-
return Object.entries(
|
|
3771
|
+
return Object.entries(At).map(([xe, Vt]) => {
|
|
3772
3772
|
const ke = ce(ze);
|
|
3773
|
-
return ke.name = xe, ke.color = void 0, ke.data =
|
|
3773
|
+
return ke.name = xe, ke.color = void 0, ke.data = Vt, ke;
|
|
3774
3774
|
});
|
|
3775
3775
|
}
|
|
3776
3776
|
function Cu(e, t, r, i, a, o, l) {
|
|
@@ -3785,7 +3785,7 @@ function Su(e, t) {
|
|
|
3785
3785
|
axisValue: i,
|
|
3786
3786
|
axisIndex: a
|
|
3787
3787
|
} = r;
|
|
3788
|
-
return
|
|
3788
|
+
return It(t.x_axis.axisLabel.formatter)(i, a);
|
|
3789
3789
|
}
|
|
3790
3790
|
function ku(e, t, r) {
|
|
3791
3791
|
const i = t.reduce((a, {
|
|
@@ -3849,8 +3849,8 @@ function Tu(e) {
|
|
|
3849
3849
|
function Du(e, t) {
|
|
3850
3850
|
const r = {};
|
|
3851
3851
|
return t.map((i) => {
|
|
3852
|
-
const a =
|
|
3853
|
-
r[i.name] =
|
|
3852
|
+
const a = Dt(i, e);
|
|
3853
|
+
r[i.name] = ot(i, a);
|
|
3854
3854
|
}), r;
|
|
3855
3855
|
}
|
|
3856
3856
|
function Iu(e, t) {
|
|
@@ -3870,7 +3870,7 @@ function Iu(e, t) {
|
|
|
3870
3870
|
axisLabel: {
|
|
3871
3871
|
...a,
|
|
3872
3872
|
...o,
|
|
3873
|
-
formatter:
|
|
3873
|
+
formatter: It(a.formatter)
|
|
3874
3874
|
}
|
|
3875
3875
|
}];
|
|
3876
3876
|
}
|
|
@@ -4011,18 +4011,18 @@ function Ru({
|
|
|
4011
4011
|
} = e.viewport, {
|
|
4012
4012
|
ref: u,
|
|
4013
4013
|
height: p
|
|
4014
|
-
} =
|
|
4014
|
+
} = $t(), {
|
|
4015
4015
|
ref: m,
|
|
4016
4016
|
height: h
|
|
4017
|
-
} =
|
|
4017
|
+
} = $t(), g = z.useMemo(() => {
|
|
4018
4018
|
const {
|
|
4019
4019
|
stats: {
|
|
4020
4020
|
templates: T
|
|
4021
4021
|
}
|
|
4022
4022
|
} = o;
|
|
4023
4023
|
return {
|
|
4024
|
-
top:
|
|
4025
|
-
bottom:
|
|
4024
|
+
top: Et(T.top, a, l),
|
|
4025
|
+
bottom: Et(T.bottom, a, l)
|
|
4026
4026
|
};
|
|
4027
4027
|
}, [o, l]), w = Math.max(0, d - p - h);
|
|
4028
4028
|
return /* @__PURE__ */ c(V, { children: [
|
|
@@ -4818,7 +4818,7 @@ function ih({
|
|
|
4818
4818
|
}, ...s }) }),
|
|
4819
4819
|
/* @__PURE__ */ n(b, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
|
|
4820
4820
|
field: s
|
|
4821
|
-
}) => /* @__PURE__ */ n(Sn, { label: "Aggregation on Value", value: s.value ??
|
|
4821
|
+
}) => /* @__PURE__ */ n(Sn, { label: "Aggregation on Value", value: s.value ?? Yt, onChange: s.onChange, pt: 0 }) })
|
|
4822
4822
|
] }),
|
|
4823
4823
|
/* @__PURE__ */ n(y, { grow: !0, children: /* @__PURE__ */ n(b, { name: `series.${t}.group_by_key`, control: e, render: ({
|
|
4824
4824
|
field: s
|
|
@@ -4867,7 +4867,7 @@ function ah({
|
|
|
4867
4867
|
})), d = () => {
|
|
4868
4868
|
const m = {
|
|
4869
4869
|
type: "bar",
|
|
4870
|
-
name:
|
|
4870
|
+
name: ut(),
|
|
4871
4871
|
showSymbol: !1,
|
|
4872
4872
|
symbolSize: yr.static,
|
|
4873
4873
|
y_axis_data_key: "value",
|
|
@@ -4920,12 +4920,12 @@ function oh({
|
|
|
4920
4920
|
return t("stats"), /* @__PURE__ */ n(_, { children: /* @__PURE__ */ c(_, { spacing: 0, children: [
|
|
4921
4921
|
/* @__PURE__ */ n(b, { name: "stats.templates.top", control: e, render: ({
|
|
4922
4922
|
field: r
|
|
4923
|
-
}) => /* @__PURE__ */ n(
|
|
4923
|
+
}) => /* @__PURE__ */ n(Ot, { label: "Template for stats above the chart", py: "md", sx: {
|
|
4924
4924
|
flexGrow: 1
|
|
4925
4925
|
}, ...r }) }),
|
|
4926
4926
|
/* @__PURE__ */ n(b, { name: "stats.templates.bottom", control: e, render: ({
|
|
4927
4927
|
field: r
|
|
4928
|
-
}) => /* @__PURE__ */ n(
|
|
4928
|
+
}) => /* @__PURE__ */ n(Ot, { label: "Template for stats under the chart", py: "md", sx: {
|
|
4929
4929
|
flexGrow: 1
|
|
4930
4930
|
}, ...r }) })
|
|
4931
4931
|
] }) });
|
|
@@ -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(ft, { ...i }) })
|
|
4971
4971
|
] });
|
|
4972
4972
|
}
|
|
4973
4973
|
const sh = [{
|
|
@@ -5134,8 +5134,8 @@ function hh({
|
|
|
5134
5134
|
] }) });
|
|
5135
5135
|
}
|
|
5136
5136
|
function ph(e) {
|
|
5137
|
-
const t = ce(
|
|
5138
|
-
return t.stats =
|
|
5137
|
+
const t = ce(dt(e, "variables"));
|
|
5138
|
+
return t.stats = dt(t.stats, "variables"), t;
|
|
5139
5139
|
}
|
|
5140
5140
|
function mh(e) {
|
|
5141
5141
|
const {
|
|
@@ -5155,7 +5155,7 @@ function mh(e) {
|
|
|
5155
5155
|
}
|
|
5156
5156
|
function gh(e) {
|
|
5157
5157
|
const {
|
|
5158
|
-
dataZoom: t =
|
|
5158
|
+
dataZoom: t = zt,
|
|
5159
5159
|
...r
|
|
5160
5160
|
} = e;
|
|
5161
5161
|
return {
|
|
@@ -5223,7 +5223,7 @@ function xh(e) {
|
|
|
5223
5223
|
function yh(e) {
|
|
5224
5224
|
const t = e.series.map((r) => {
|
|
5225
5225
|
const {
|
|
5226
|
-
aggregation_on_group: i =
|
|
5226
|
+
aggregation_on_group: i = Yt
|
|
5227
5227
|
} = r;
|
|
5228
5228
|
return {
|
|
5229
5229
|
...r,
|
|
@@ -5238,7 +5238,7 @@ function yh(e) {
|
|
|
5238
5238
|
function vh(e) {
|
|
5239
5239
|
const t = e.series.map((r) => {
|
|
5240
5240
|
const {
|
|
5241
|
-
aggregation_on_value: i =
|
|
5241
|
+
aggregation_on_value: i = Yt
|
|
5242
5242
|
} = r;
|
|
5243
5243
|
return {
|
|
5244
5244
|
...r,
|
|
@@ -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(ft, { ...d }) }) })
|
|
5819
5819
|
] });
|
|
5820
5820
|
}, Hh = ({
|
|
5821
5821
|
control: e,
|
|
@@ -6392,7 +6392,7 @@ const mp = ({
|
|
|
6392
6392
|
cursor: "default",
|
|
6393
6393
|
userSelect: "none"
|
|
6394
6394
|
}, children: [
|
|
6395
|
-
/* @__PURE__ */ n(
|
|
6395
|
+
/* @__PURE__ */ n(Ht, { size: 14, color: "#888" }),
|
|
6396
6396
|
/* @__PURE__ */ n(v, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
|
|
6397
6397
|
] }),
|
|
6398
6398
|
/* @__PURE__ */ n(L, { variant: "dashed", my: 10 }),
|
|
@@ -6428,7 +6428,7 @@ const bp = ({
|
|
|
6428
6428
|
}) => /* @__PURE__ */ c(V, { sx: {
|
|
6429
6429
|
position: "relative"
|
|
6430
6430
|
}, children: [
|
|
6431
|
-
e && /* @__PURE__ */ n(
|
|
6431
|
+
e && /* @__PURE__ */ n(ht, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
6432
6432
|
/* @__PURE__ */ n(Ie, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
6433
6433
|
a && r(a);
|
|
6434
6434
|
}, theme: "vs-dark", options: {
|
|
@@ -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(ft, { ...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(ft, { ...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
|
|
@@ -6730,7 +6730,7 @@ const no = {
|
|
|
6730
6730
|
nameAlignment: "right",
|
|
6731
6731
|
color: "red"
|
|
6732
6732
|
},
|
|
6733
|
-
dataZoom:
|
|
6733
|
+
dataZoom: zt,
|
|
6734
6734
|
markLine: no
|
|
6735
6735
|
};
|
|
6736
6736
|
function dn(e) {
|
|
@@ -6905,7 +6905,7 @@ function Mp(e) {
|
|
|
6905
6905
|
axisLabel: {
|
|
6906
6906
|
...r,
|
|
6907
6907
|
...i,
|
|
6908
|
-
formatter:
|
|
6908
|
+
formatter: It(r.formatter)
|
|
6909
6909
|
}
|
|
6910
6910
|
}];
|
|
6911
6911
|
}
|
|
@@ -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(ft, { ...i }) })
|
|
7167
7167
|
] });
|
|
7168
7168
|
}
|
|
7169
7169
|
function Hp({
|
|
@@ -7235,7 +7235,7 @@ function Qp({
|
|
|
7235
7235
|
}
|
|
7236
7236
|
function Yp(e) {
|
|
7237
7237
|
const {
|
|
7238
|
-
dataZoom: t =
|
|
7238
|
+
dataZoom: t = zt,
|
|
7239
7239
|
...r
|
|
7240
7240
|
} = e;
|
|
7241
7241
|
return {
|
|
@@ -8207,7 +8207,7 @@ function Im({
|
|
|
8207
8207
|
width: r - 190,
|
|
8208
8208
|
height: u
|
|
8209
8209
|
}, notMerge: !0, theme: "merico-light" }),
|
|
8210
|
-
s && /* @__PURE__ */ n(
|
|
8210
|
+
s && /* @__PURE__ */ n(pt, { mt: 20, fontSize: 12, sx: {
|
|
8211
8211
|
width: 180,
|
|
8212
8212
|
border: "1px solid #999",
|
|
8213
8213
|
td: {
|
|
@@ -8315,10 +8315,10 @@ function Am({
|
|
|
8315
8315
|
/* @__PURE__ */ n(v, { children: "Chart Config" }),
|
|
8316
8316
|
/* @__PURE__ */ n($, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !m, children: /* @__PURE__ */ n(Q, { size: 20 }) })
|
|
8317
8317
|
] }),
|
|
8318
|
-
/* @__PURE__ */ c(
|
|
8319
|
-
/* @__PURE__ */ c(
|
|
8320
|
-
/* @__PURE__ */ n(
|
|
8321
|
-
/* @__PURE__ */ c(
|
|
8318
|
+
/* @__PURE__ */ c(st, { multiple: !0, defaultValue: ["Axis", "Regression"], children: [
|
|
8319
|
+
/* @__PURE__ */ c(st.Item, { value: "Axis", children: [
|
|
8320
|
+
/* @__PURE__ */ n(st.Control, { children: "Axis" }),
|
|
8321
|
+
/* @__PURE__ */ c(st.Panel, { children: [
|
|
8322
8322
|
/* @__PURE__ */ c(y, { grow: !0, noWrap: !0, children: [
|
|
8323
8323
|
/* @__PURE__ */ n(b, { name: "x_axis.name", control: o, render: ({
|
|
8324
8324
|
field: h
|
|
@@ -8338,9 +8338,9 @@ function Am({
|
|
|
8338
8338
|
}, ...h }) }) })
|
|
8339
8339
|
] })
|
|
8340
8340
|
] }),
|
|
8341
|
-
/* @__PURE__ */ c(
|
|
8342
|
-
/* @__PURE__ */ n(
|
|
8343
|
-
/* @__PURE__ */ n(
|
|
8341
|
+
/* @__PURE__ */ c(st.Item, { value: "Regression", children: [
|
|
8342
|
+
/* @__PURE__ */ n(st.Control, { children: "Regression Line" }),
|
|
8343
|
+
/* @__PURE__ */ n(st.Panel, { children: /* @__PURE__ */ n(Lm, { control: o, watch: s, data: i }) })
|
|
8344
8344
|
] })
|
|
8345
8345
|
] })
|
|
8346
8346
|
] }) });
|
|
@@ -8439,7 +8439,7 @@ const Tr = ne(({
|
|
|
8439
8439
|
}, children: [
|
|
8440
8440
|
/* @__PURE__ */ c(y, { align: "center", children: [
|
|
8441
8441
|
/* @__PURE__ */ n(v, { size: 14, fw: 500, children: i }),
|
|
8442
|
-
/* @__PURE__ */ n($, { color: "blue", disabled: !p, onClick: u, children: /* @__PURE__ */ n(
|
|
8442
|
+
/* @__PURE__ */ n($, { color: "blue", disabled: !p, onClick: u, children: /* @__PURE__ */ n(jt, { size: 18 }) })
|
|
8443
8443
|
] }),
|
|
8444
8444
|
/* @__PURE__ */ c(W, { editor: d, styles: m, children: [
|
|
8445
8445
|
/* @__PURE__ */ c(W.Toolbar, { sticky: !0, stickyOffset: 0, children: [
|
|
@@ -8652,7 +8652,7 @@ const oo = {
|
|
|
8652
8652
|
},
|
|
8653
8653
|
reference_lines: [],
|
|
8654
8654
|
reference_areas: [],
|
|
8655
|
-
dataZoom:
|
|
8655
|
+
dataZoom: zt
|
|
8656
8656
|
};
|
|
8657
8657
|
function Bm(e) {
|
|
8658
8658
|
const t = e.y_axes.some((a) => !!a.name);
|
|
@@ -8988,8 +8988,8 @@ const eg = {
|
|
|
8988
8988
|
};
|
|
8989
8989
|
function tg(e, t, r) {
|
|
8990
8990
|
const i = r.reduce((u, p) => {
|
|
8991
|
-
const m =
|
|
8992
|
-
return u[p.name] =
|
|
8991
|
+
const m = Dt(p, t);
|
|
8992
|
+
return u[p.name] = ot(p, m), u;
|
|
8993
8993
|
}, {}), a = e.y_axes.reduce((u, {
|
|
8994
8994
|
label_formatter: p
|
|
8995
8995
|
}, m) => (u[m] = function(g) {
|
|
@@ -9066,18 +9066,18 @@ function rg({
|
|
|
9066
9066
|
} = e.viewport, {
|
|
9067
9067
|
ref: u,
|
|
9068
9068
|
height: p
|
|
9069
|
-
} =
|
|
9069
|
+
} = $t(), {
|
|
9070
9070
|
ref: m,
|
|
9071
9071
|
height: h
|
|
9072
|
-
} =
|
|
9072
|
+
} = $t(), g = z.useMemo(() => {
|
|
9073
9073
|
const {
|
|
9074
9074
|
stats: {
|
|
9075
9075
|
templates: T
|
|
9076
9076
|
}
|
|
9077
9077
|
} = o;
|
|
9078
9078
|
return {
|
|
9079
|
-
top:
|
|
9080
|
-
bottom:
|
|
9079
|
+
top: Et(T.top, a, l),
|
|
9080
|
+
bottom: Et(T.bottom, a, l)
|
|
9081
9081
|
};
|
|
9082
9082
|
}, [o, l]), w = Math.max(0, d - p - h);
|
|
9083
9083
|
return /* @__PURE__ */ c(V, { children: [
|
|
@@ -9667,12 +9667,12 @@ function Tg({
|
|
|
9667
9667
|
return t("stats"), /* @__PURE__ */ n(_, { children: /* @__PURE__ */ c(_, { spacing: 0, children: [
|
|
9668
9668
|
/* @__PURE__ */ n(b, { name: "stats.templates.top", control: e, render: ({
|
|
9669
9669
|
field: r
|
|
9670
|
-
}) => /* @__PURE__ */ n(
|
|
9670
|
+
}) => /* @__PURE__ */ n(Ot, { label: "Template for stats above the chart", py: "md", sx: {
|
|
9671
9671
|
flexGrow: 1
|
|
9672
9672
|
}, ...r }) }),
|
|
9673
9673
|
/* @__PURE__ */ n(b, { name: "stats.templates.bottom", control: e, render: ({
|
|
9674
9674
|
field: r
|
|
9675
|
-
}) => /* @__PURE__ */ n(
|
|
9675
|
+
}) => /* @__PURE__ */ n(Ot, { label: "Template for stats under the chart", py: "md", sx: {
|
|
9676
9676
|
flexGrow: 1
|
|
9677
9677
|
}, ...r }) })
|
|
9678
9678
|
] }) });
|
|
@@ -9727,7 +9727,7 @@ const Dg = ({
|
|
|
9727
9727
|
cursor: "default",
|
|
9728
9728
|
userSelect: "none"
|
|
9729
9729
|
}, children: [
|
|
9730
|
-
/* @__PURE__ */ n(
|
|
9730
|
+
/* @__PURE__ */ n(Ht, { size: 14, color: "#888" }),
|
|
9731
9731
|
/* @__PURE__ */ n(v, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
|
|
9732
9732
|
] }),
|
|
9733
9733
|
/* @__PURE__ */ n(L, { variant: "dashed", my: 10 }),
|
|
@@ -9763,7 +9763,7 @@ const Lg = ({
|
|
|
9763
9763
|
}) => /* @__PURE__ */ c(V, { sx: {
|
|
9764
9764
|
position: "relative"
|
|
9765
9765
|
}, children: [
|
|
9766
|
-
e && /* @__PURE__ */ n(
|
|
9766
|
+
e && /* @__PURE__ */ n(ht, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
9767
9767
|
/* @__PURE__ */ n(Ie, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
9768
9768
|
a && r(a);
|
|
9769
9769
|
}, theme: "vs-dark", options: {
|
|
@@ -10046,7 +10046,7 @@ function Eg({
|
|
|
10046
10046
|
}
|
|
10047
10047
|
function Ng(e) {
|
|
10048
10048
|
const {
|
|
10049
|
-
dataZoom: t =
|
|
10049
|
+
dataZoom: t = zt,
|
|
10050
10050
|
...r
|
|
10051
10051
|
} = e;
|
|
10052
10052
|
return {
|
|
@@ -10212,7 +10212,7 @@ function Hg(e) {
|
|
|
10212
10212
|
};
|
|
10213
10213
|
}
|
|
10214
10214
|
function Qg(e) {
|
|
10215
|
-
return
|
|
10215
|
+
return dt(e, ["variables"]);
|
|
10216
10216
|
}
|
|
10217
10217
|
function Yg(e) {
|
|
10218
10218
|
const t = ce(e), r = H(t, "color.valueRange");
|
|
@@ -10263,7 +10263,7 @@ const Xg = S(({
|
|
|
10263
10263
|
} catch {
|
|
10264
10264
|
return a;
|
|
10265
10265
|
}
|
|
10266
|
-
}, [t.filters.values, t.context.current, a]), s = k(() =>
|
|
10266
|
+
}, [t.filters.values, t.context.current, a]), s = k(() => Et(l, i, e.data), [l, i, e.data, e]);
|
|
10267
10267
|
return /* @__PURE__ */ n(v, { align: o, children: Object.values(s).map((d, u) => /* @__PURE__ */ n(z.Fragment, { children: d }, u)) });
|
|
10268
10268
|
}), Kg = [{
|
|
10269
10269
|
label: "Left",
|
|
@@ -10313,7 +10313,7 @@ function Zg({
|
|
|
10313
10313
|
] }),
|
|
10314
10314
|
/* @__PURE__ */ n(b, { name: "template", control: a, render: ({
|
|
10315
10315
|
field: m
|
|
10316
|
-
}) => /* @__PURE__ */ n(
|
|
10316
|
+
}) => /* @__PURE__ */ n(Ot, { label: "Template", py: "md", sx: {
|
|
10317
10317
|
flexGrow: 1
|
|
10318
10318
|
}, ...m }) }),
|
|
10319
10319
|
/* @__PURE__ */ n(b, { name: "align", control: a, render: ({
|
|
@@ -10472,8 +10472,8 @@ const sf = {
|
|
|
10472
10472
|
};
|
|
10473
10473
|
function cf(e, t, r) {
|
|
10474
10474
|
r.reduce((o, l) => {
|
|
10475
|
-
const s =
|
|
10476
|
-
return o[l.name] =
|
|
10475
|
+
const s = Dt(l, t);
|
|
10476
|
+
return o[l.name] = ot(l, s), o;
|
|
10477
10477
|
}, {});
|
|
10478
10478
|
const a = {
|
|
10479
10479
|
series: {
|
|
@@ -10609,7 +10609,7 @@ const hf = [{
|
|
|
10609
10609
|
cursor: "default",
|
|
10610
10610
|
userSelect: "none"
|
|
10611
10611
|
}, children: [
|
|
10612
|
-
/* @__PURE__ */ n(
|
|
10612
|
+
/* @__PURE__ */ n(Ht, { size: 14, color: "#888" }),
|
|
10613
10613
|
/* @__PURE__ */ n(v, { size: 14, color: "#888", children: "Configure ring style on each level" })
|
|
10614
10614
|
] }),
|
|
10615
10615
|
/* @__PURE__ */ n(L, { variant: "dashed", my: 10 }),
|
|
@@ -10848,7 +10848,7 @@ function If(e) {
|
|
|
10848
10848
|
} = E(e.trigger.triggerData, "config");
|
|
10849
10849
|
return /* @__PURE__ */ n(v, { children: Df(r, t) });
|
|
10850
10850
|
}
|
|
10851
|
-
const zf =
|
|
10851
|
+
const zf = Bt((e) => ({
|
|
10852
10852
|
root: {
|
|
10853
10853
|
overflow: "auto",
|
|
10854
10854
|
position: "relative",
|
|
@@ -10977,7 +10977,7 @@ class Vf {
|
|
|
10977
10977
|
}
|
|
10978
10978
|
}
|
|
10979
10979
|
}
|
|
10980
|
-
const Rf =
|
|
10980
|
+
const Rf = Bt((e, t) => ({
|
|
10981
10981
|
content: {
|
|
10982
10982
|
display: "flex",
|
|
10983
10983
|
alignItems: "center",
|
|
@@ -10990,7 +10990,7 @@ const Rf = Nt((e, t) => ({
|
|
|
10990
10990
|
}
|
|
10991
10991
|
}));
|
|
10992
10992
|
function Mf(e) {
|
|
10993
|
-
return e ?
|
|
10993
|
+
return e ? Pt(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
|
|
10994
10994
|
}
|
|
10995
10995
|
function Ff(e) {
|
|
10996
10996
|
const t = e.tableCellContext.bgColor;
|
|
@@ -11109,15 +11109,15 @@ function Wf({
|
|
|
11109
11109
|
getSortedRowModel: Ss()
|
|
11110
11110
|
}), {
|
|
11111
11111
|
rows: de
|
|
11112
|
-
} = B.getRowModel(), ze = z.useRef(null),
|
|
11112
|
+
} = B.getRowModel(), ze = z.useRef(null), At = ks({
|
|
11113
11113
|
parentRef: ze,
|
|
11114
11114
|
size: de.length,
|
|
11115
11115
|
estimateSize: fe(() => 28, []),
|
|
11116
11116
|
overscan: 20
|
|
11117
11117
|
}), {
|
|
11118
11118
|
virtualItems: xe,
|
|
11119
|
-
totalSize:
|
|
11120
|
-
} =
|
|
11119
|
+
totalSize: Vt
|
|
11120
|
+
} = At, ke = xe.length > 0 && ((Zr = xe == null ? void 0 : xe[0]) == null ? void 0 : Zr.start) || 0, Xr = xe.length > 0 ? Vt - (((Jr = xe == null ? void 0 : xe[xe.length - 1]) == null ? void 0 : Jr.end) || 0) : 0, An = de.length, Kr = An > 0, ol = Kr ? i - 22 : i, ll = Kr ? 22 : 0;
|
|
11121
11121
|
return !Array.isArray(r) || r.length === 0 ? /* @__PURE__ */ n(v, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ c("div", { ref: ze, style: {
|
|
11122
11122
|
height: i,
|
|
11123
11123
|
width: a
|
|
@@ -11130,22 +11130,22 @@ function Wf({
|
|
|
11130
11130
|
"Total: ",
|
|
11131
11131
|
An
|
|
11132
11132
|
] }) }),
|
|
11133
|
-
/* @__PURE__ */ c(
|
|
11133
|
+
/* @__PURE__ */ c(pt, { sx: {
|
|
11134
11134
|
...Lf,
|
|
11135
11135
|
maxHeight: ol
|
|
11136
11136
|
}, ...d, striped: o.striped, children: [
|
|
11137
11137
|
/* @__PURE__ */ n("thead", { className: u.thead, style: {
|
|
11138
11138
|
top: ll
|
|
11139
|
-
}, children: B.getHeaderGroups().map((Te) => /* @__PURE__ */ n("tr", { children: Te.headers.map((
|
|
11140
|
-
width:
|
|
11141
|
-
}, children: /* @__PURE__ */ n(_f, { header:
|
|
11139
|
+
}, children: B.getHeaderGroups().map((Te) => /* @__PURE__ */ n("tr", { children: Te.headers.map((lt) => /* @__PURE__ */ n("th", { style: {
|
|
11140
|
+
width: lt.getSize()
|
|
11141
|
+
}, children: /* @__PURE__ */ n(_f, { header: lt, cx: p }) }, lt.id)) }, Te.id)) }),
|
|
11142
11142
|
/* @__PURE__ */ c("tbody", { children: [
|
|
11143
11143
|
ke > 0 && /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n("td", { style: {
|
|
11144
11144
|
height: `${ke}px`
|
|
11145
11145
|
} }) }),
|
|
11146
11146
|
xe.map((Te) => {
|
|
11147
|
-
const
|
|
11148
|
-
return /* @__PURE__ */ n("tr", { children:
|
|
11147
|
+
const lt = de[Te.index];
|
|
11148
|
+
return /* @__PURE__ */ n("tr", { children: lt.getVisibleCells().map((Le) => /* @__PURE__ */ n("td", { children: sn(Le.column.columnDef.cell, Le.getContext()) }, Le.id)) }, lt.id);
|
|
11149
11149
|
}),
|
|
11150
11150
|
Xr > 0 && /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n("td", { style: {
|
|
11151
11151
|
height: `${Xr}px`
|
|
@@ -11154,7 +11154,7 @@ function Wf({
|
|
|
11154
11154
|
] })
|
|
11155
11155
|
] });
|
|
11156
11156
|
}
|
|
11157
|
-
const mo =
|
|
11157
|
+
const mo = Bt(() => ({
|
|
11158
11158
|
palette: {
|
|
11159
11159
|
display: "flex",
|
|
11160
11160
|
flexFlow: "row nowrap"
|
|
@@ -11192,7 +11192,7 @@ class jf {
|
|
|
11192
11192
|
R(this, "steps", /* @__PURE__ */ new Map());
|
|
11193
11193
|
R(this, "interpolation");
|
|
11194
11194
|
R(this, "onChange");
|
|
11195
|
-
|
|
11195
|
+
Qt(this, {
|
|
11196
11196
|
steps: da
|
|
11197
11197
|
}, {
|
|
11198
11198
|
deep: !1
|
|
@@ -11245,7 +11245,7 @@ function Hf(e) {
|
|
|
11245
11245
|
}, color: "dimmed", size: "sm", className: "palette-value--up palette-value", children: de }),
|
|
11246
11246
|
/* @__PURE__ */ c(Vn, { width: 200, trapFocus: !0, opened: d, onClose: p, children: [
|
|
11247
11247
|
/* @__PURE__ */ n(Vn.Target, { children: /* @__PURE__ */ n("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: u, style: {
|
|
11248
|
-
"--shadow-color":
|
|
11248
|
+
"--shadow-color": Pt(r).alpha(0.5).hex(),
|
|
11249
11249
|
backgroundColor: r
|
|
11250
11250
|
} }) }),
|
|
11251
11251
|
/* @__PURE__ */ n(Vn.Dropdown, { children: /* @__PURE__ */ c(_, { children: [
|
|
@@ -11475,7 +11475,7 @@ const eb = ne((e, t) => {
|
|
|
11475
11475
|
control: e,
|
|
11476
11476
|
name: "columns"
|
|
11477
11477
|
}), s = () => {
|
|
11478
|
-
const u =
|
|
11478
|
+
const u = ut();
|
|
11479
11479
|
a({
|
|
11480
11480
|
id: u,
|
|
11481
11481
|
label: u,
|
|
@@ -11562,7 +11562,7 @@ function cb({
|
|
|
11562
11562
|
id: r,
|
|
11563
11563
|
...i
|
|
11564
11564
|
}) => ({
|
|
11565
|
-
id: r ??
|
|
11565
|
+
id: r ?? ut(),
|
|
11566
11566
|
...i
|
|
11567
11567
|
}))
|
|
11568
11568
|
};
|
|
@@ -11657,7 +11657,7 @@ class hb extends le {
|
|
|
11657
11657
|
id: o,
|
|
11658
11658
|
...l
|
|
11659
11659
|
}) => ({
|
|
11660
|
-
id: o ??
|
|
11660
|
+
id: o ?? ut(),
|
|
11661
11661
|
...l
|
|
11662
11662
|
}))
|
|
11663
11663
|
}
|
|
@@ -11696,20 +11696,23 @@ const jn = {
|
|
|
11696
11696
|
value: r = Vr
|
|
11697
11697
|
} = E(e.instanceData, "config"), {
|
|
11698
11698
|
variables: i
|
|
11699
|
-
} = e, {
|
|
11700
|
-
func_content:
|
|
11701
|
-
horizontal_align:
|
|
11702
|
-
font_size:
|
|
11703
|
-
font_weight:
|
|
11704
|
-
} = r,
|
|
11705
|
-
|
|
11706
|
-
|
|
11699
|
+
} = e, a = e.data, {
|
|
11700
|
+
func_content: o,
|
|
11701
|
+
horizontal_align: l,
|
|
11702
|
+
font_size: s,
|
|
11703
|
+
font_weight: d
|
|
11704
|
+
} = r, u = k(() => i.reduce((m, h) => {
|
|
11705
|
+
const g = Dt(h, a);
|
|
11706
|
+
return m[h.name] = ot(h, g), m;
|
|
11707
|
+
}, {}), [i, a]), p = k(() => new Function(`return ${o}`)()({
|
|
11708
|
+
data: a,
|
|
11709
|
+
variables: u,
|
|
11707
11710
|
filters: t.filters.values,
|
|
11708
11711
|
context: t.context.current
|
|
11709
|
-
}), [
|
|
11710
|
-
return /* @__PURE__ */ n(v, { align:
|
|
11711
|
-
fontSize:
|
|
11712
|
-
}, children:
|
|
11712
|
+
}), [o, a, u, t.filters.values, t.context.current]);
|
|
11713
|
+
return /* @__PURE__ */ n(v, { align: l, weight: d, sx: {
|
|
11714
|
+
fontSize: s
|
|
11715
|
+
}, children: p });
|
|
11713
11716
|
}), mb = ({
|
|
11714
11717
|
value: e,
|
|
11715
11718
|
onChange: t
|
|
@@ -11948,7 +11951,7 @@ function Sb({
|
|
|
11948
11951
|
data: l,
|
|
11949
11952
|
error: s,
|
|
11950
11953
|
loading: d
|
|
11951
|
-
} =
|
|
11954
|
+
} = Wt(_b({
|
|
11952
11955
|
conf: r,
|
|
11953
11956
|
data: o
|
|
11954
11957
|
}), {
|
|
@@ -11957,7 +11960,7 @@ function Sb({
|
|
|
11957
11960
|
return !i || !a || !r ? null : d ? /* @__PURE__ */ n(V, { sx: {
|
|
11958
11961
|
position: "relative",
|
|
11959
11962
|
height: a
|
|
11960
|
-
}, children: /* @__PURE__ */ n(
|
|
11963
|
+
}, children: /* @__PURE__ */ n(mt, { visible: !0 }) }) : s ? /* @__PURE__ */ n(V, { sx: Hn, "data-enable-scrollbar": !0, children: /* @__PURE__ */ n(Cb, { error: s, width: i, height: a }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ n(V, { sx: Hn, "data-enable-scrollbar": !0, children: l.replies.map((u, p) => /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: {
|
|
11961
11964
|
__html: u.interpretation.html
|
|
11962
11965
|
} }, p)) });
|
|
11963
11966
|
}
|
|
@@ -12421,7 +12424,7 @@ const Qb = ({
|
|
|
12421
12424
|
cursor: "default",
|
|
12422
12425
|
userSelect: "none"
|
|
12423
12426
|
}, children: [
|
|
12424
|
-
/* @__PURE__ */ n(
|
|
12427
|
+
/* @__PURE__ */ n(Ht, { size: 14, color: "#888" }),
|
|
12425
12428
|
/* @__PURE__ */ n(v, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
|
|
12426
12429
|
] }),
|
|
12427
12430
|
/* @__PURE__ */ n(L, { variant: "dashed", my: 10 }),
|
|
@@ -12651,7 +12654,7 @@ function lx({
|
|
|
12651
12654
|
});
|
|
12652
12655
|
const l = Fr(t, i, a), s = C.groupBy(l, "0");
|
|
12653
12656
|
return Object.entries(s).map(([u, p]) => {
|
|
12654
|
-
const m =
|
|
12657
|
+
const m = Ut(p, "1", r);
|
|
12655
12658
|
return [u, m];
|
|
12656
12659
|
});
|
|
12657
12660
|
}
|
|
@@ -12711,15 +12714,15 @@ function cx({
|
|
|
12711
12714
|
value_data_key: t,
|
|
12712
12715
|
valueTypedXAxis: w
|
|
12713
12716
|
}), ze;
|
|
12714
|
-
const
|
|
12717
|
+
const At = sx({
|
|
12715
12718
|
group_by_key: o,
|
|
12716
12719
|
data: T,
|
|
12717
12720
|
name_data_key: e.data_key,
|
|
12718
12721
|
value_data_key: t
|
|
12719
12722
|
});
|
|
12720
|
-
return Object.entries(
|
|
12723
|
+
return Object.entries(At).map(([xe, Vt]) => {
|
|
12721
12724
|
const ke = ce(ze);
|
|
12722
|
-
return ke.name = xe, ke.color = void 0, ke.data =
|
|
12725
|
+
return ke.name = xe, ke.color = void 0, ke.data = Vt, ke;
|
|
12723
12726
|
});
|
|
12724
12727
|
}
|
|
12725
12728
|
function dx(e, t, r, i, a, o, l) {
|
|
@@ -12736,7 +12739,7 @@ function ux(e, t) {
|
|
|
12736
12739
|
axisValue: o,
|
|
12737
12740
|
axisIndex: l
|
|
12738
12741
|
} = r;
|
|
12739
|
-
return a === "yAxis.category" ? i :
|
|
12742
|
+
return a === "yAxis.category" ? i : It(t.y_axis.axisLabel.formatter)(o, l);
|
|
12740
12743
|
}
|
|
12741
12744
|
function hx(e, t, r) {
|
|
12742
12745
|
const i = t.reduce((a, {
|
|
@@ -12804,8 +12807,8 @@ function px(e) {
|
|
|
12804
12807
|
function mx(e, t) {
|
|
12805
12808
|
const r = {};
|
|
12806
12809
|
return t.map((i) => {
|
|
12807
|
-
const a =
|
|
12808
|
-
r[i.name] =
|
|
12810
|
+
const a = Dt(i, e);
|
|
12811
|
+
r[i.name] = ot(i, a);
|
|
12809
12812
|
}), r;
|
|
12810
12813
|
}
|
|
12811
12814
|
function gx(e, t) {
|
|
@@ -12866,7 +12869,7 @@ function fx(e, t) {
|
|
|
12866
12869
|
axisLabel: {
|
|
12867
12870
|
...a,
|
|
12868
12871
|
...o,
|
|
12869
|
-
formatter:
|
|
12872
|
+
formatter: It(a.formatter)
|
|
12870
12873
|
},
|
|
12871
12874
|
z: 5
|
|
12872
12875
|
}];
|
|
@@ -12940,7 +12943,7 @@ function yx() {
|
|
|
12940
12943
|
hide_in_legend: !1,
|
|
12941
12944
|
invisible: !1,
|
|
12942
12945
|
label_position: "right",
|
|
12943
|
-
aggregation_on_value:
|
|
12946
|
+
aggregation_on_value: Yt,
|
|
12944
12947
|
xAxisIndex: "0"
|
|
12945
12948
|
};
|
|
12946
12949
|
}
|
|
@@ -13265,7 +13268,7 @@ function Ax({
|
|
|
13265
13268
|
}, ...l }) }),
|
|
13266
13269
|
/* @__PURE__ */ n(b, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
|
|
13267
13270
|
field: l
|
|
13268
|
-
}) => /* @__PURE__ */ n(Sn, { label: "Aggregation on Value", value: l.value ??
|
|
13271
|
+
}) => /* @__PURE__ */ n(Sn, { label: "Aggregation on Value", value: l.value ?? Yt, onChange: l.onChange, pt: 0 }) })
|
|
13269
13272
|
] }),
|
|
13270
13273
|
/* @__PURE__ */ n(y, { grow: !0, children: /* @__PURE__ */ n(b, { name: `series.${t}.group_by_key`, control: e, render: ({
|
|
13271
13274
|
field: l
|
|
@@ -13451,7 +13454,7 @@ function Px({
|
|
|
13451
13454
|
}) => /* @__PURE__ */ n(Tn, { data: e, ...i }) }) }),
|
|
13452
13455
|
/* @__PURE__ */ n(b, { name: "y_axis.axisLabel.overflow", control: t, render: ({
|
|
13453
13456
|
field: i
|
|
13454
|
-
}) => /* @__PURE__ */ n(
|
|
13457
|
+
}) => /* @__PURE__ */ n(ft, { ...i }) })
|
|
13455
13458
|
] });
|
|
13456
13459
|
}
|
|
13457
13460
|
function $x({
|
|
@@ -13583,7 +13586,7 @@ const Ex = {
|
|
|
13583
13586
|
viz: [jn, Jg, yb, Om, wf, lm, Ex, id, Hd, Xh, Sp, ex, nm, Ih, jg, Cm, Rm, Db, ou],
|
|
13584
13587
|
color: [...Nx, ...Bx]
|
|
13585
13588
|
}
|
|
13586
|
-
}),
|
|
13589
|
+
}), Rt = new Zc(), ae = {
|
|
13587
13590
|
pluginManager: Qe("pluginManager"),
|
|
13588
13591
|
vizManager: Qe("vizManager"),
|
|
13589
13592
|
colorManager: Qe("colorManager"),
|
|
@@ -13597,18 +13600,18 @@ const Ex = {
|
|
|
13597
13600
|
}
|
|
13598
13601
|
}, $r = () => {
|
|
13599
13602
|
try {
|
|
13600
|
-
|
|
13603
|
+
Rt.install(xo());
|
|
13601
13604
|
} catch {
|
|
13602
13605
|
}
|
|
13603
|
-
const e = new Nc(
|
|
13606
|
+
const e = new Nc(Rt), t = new Kc(Rt);
|
|
13604
13607
|
return {
|
|
13605
|
-
pluginManager:
|
|
13608
|
+
pluginManager: Rt,
|
|
13606
13609
|
vizManager: e,
|
|
13607
13610
|
colorManager: t
|
|
13608
13611
|
};
|
|
13609
13612
|
}, Ge = Vi($r());
|
|
13610
13613
|
try {
|
|
13611
|
-
|
|
13614
|
+
Rt.install(xo());
|
|
13612
13615
|
} catch {
|
|
13613
13616
|
}
|
|
13614
13617
|
function qx(e, t) {
|
|
@@ -13765,7 +13768,7 @@ const Jx = {
|
|
|
13765
13768
|
};
|
|
13766
13769
|
return /* @__PURE__ */ c(_, { spacing: 10, children: [
|
|
13767
13770
|
/* @__PURE__ */ n(v, { children: "Mapping Rules" }),
|
|
13768
|
-
Object.entries(a).map(([d, u]) => /* @__PURE__ */ c(
|
|
13771
|
+
Object.entries(a).map(([d, u]) => /* @__PURE__ */ c(qt, { justify: "space-between", gap: 10, children: [
|
|
13769
13772
|
/* @__PURE__ */ n(I, { label: "Payload key", value: u, onChange: (p) => {
|
|
13770
13773
|
o(d, p.currentTarget.value);
|
|
13771
13774
|
}, sx: {
|
|
@@ -13817,7 +13820,7 @@ const ry = {
|
|
|
13817
13820
|
label: s.label,
|
|
13818
13821
|
value: s.key
|
|
13819
13822
|
})), [t.filters.values]);
|
|
13820
|
-
return /* @__PURE__ */ n(_, { spacing: 10, children: /* @__PURE__ */ n(
|
|
13823
|
+
return /* @__PURE__ */ n(_, { spacing: 10, children: /* @__PURE__ */ n(Nt, { label: "Select Filters to Clear", data: l, value: a, onChange: o }) });
|
|
13821
13824
|
});
|
|
13822
13825
|
async function oy(e, t) {
|
|
13823
13826
|
const i = (await t.operationData.getItem("config")).filter_keys;
|
|
@@ -14078,14 +14081,14 @@ class dy {
|
|
|
14078
14081
|
R(this, "operation");
|
|
14079
14082
|
R(this, "operationSchema");
|
|
14080
14083
|
R(this, "variables", []);
|
|
14081
|
-
this.operationManager = t, this.instance = r,
|
|
14084
|
+
this.operationManager = t, this.instance = r, Qt(this);
|
|
14082
14085
|
}
|
|
14083
14086
|
get schemaList() {
|
|
14084
14087
|
return this.operationManager.getOperationSchemaList();
|
|
14085
14088
|
}
|
|
14086
14089
|
async configOperation(t, r) {
|
|
14087
14090
|
const i = await this.operationManager.retrieveTrigger(t), a = this.operationManager.getOperationSchemaList().find((o) => o.id === (i == null ? void 0 : i.schemaRef));
|
|
14088
|
-
|
|
14091
|
+
Mt(() => {
|
|
14089
14092
|
this.operationId = t, this.operation = i, this.operationSchema = a, this.variables = r;
|
|
14090
14093
|
});
|
|
14091
14094
|
}
|
|
@@ -14135,7 +14138,7 @@ const gy = S((e) => {
|
|
|
14135
14138
|
instance: l,
|
|
14136
14139
|
variables: s
|
|
14137
14140
|
} = e, d = Me(() => new dy(a, l), [a, l]);
|
|
14138
|
-
return
|
|
14141
|
+
return Gt(async () => {
|
|
14139
14142
|
await d.configOperation(o, s);
|
|
14140
14143
|
}, [o, d]), uy(d) ? /* @__PURE__ */ c(F, { children: [
|
|
14141
14144
|
/* @__PURE__ */ n(hy, { model: d, onClick: r }),
|
|
@@ -14152,14 +14155,14 @@ class fy {
|
|
|
14152
14155
|
R(this, "trigger");
|
|
14153
14156
|
R(this, "triggerSchema");
|
|
14154
14157
|
R(this, "sampleData");
|
|
14155
|
-
this.triggerManager = t, this.instance = r,
|
|
14158
|
+
this.triggerManager = t, this.instance = r, Qt(this);
|
|
14156
14159
|
}
|
|
14157
14160
|
get schemaList() {
|
|
14158
14161
|
return this.triggerManager.getTriggerSchemaList();
|
|
14159
14162
|
}
|
|
14160
14163
|
async configTrigger(t, r) {
|
|
14161
14164
|
const i = await this.triggerManager.retrieveTrigger(t), a = this.triggerManager.getTriggerSchemaList().find((o) => o.id === (i == null ? void 0 : i.schemaRef));
|
|
14162
|
-
|
|
14165
|
+
Mt(() => {
|
|
14163
14166
|
this.triggerId = t, this.trigger = i, this.triggerSchema = a, this.sampleData = r;
|
|
14164
14167
|
});
|
|
14165
14168
|
}
|
|
@@ -14222,7 +14225,7 @@ const yy = S(({
|
|
|
14222
14225
|
});
|
|
14223
14226
|
function Cy(e, t) {
|
|
14224
14227
|
const [r, i] = N([]);
|
|
14225
|
-
return
|
|
14228
|
+
return Gt(async () => {
|
|
14226
14229
|
const a = await e.getInteractionList();
|
|
14227
14230
|
i(a);
|
|
14228
14231
|
}, [t, e]), r;
|
|
@@ -14239,7 +14242,7 @@ const Sy = S(({
|
|
|
14239
14242
|
triggerRef: l,
|
|
14240
14243
|
operationRef: s
|
|
14241
14244
|
} = e, d = xy(t.triggerManager, r);
|
|
14242
|
-
if (
|
|
14245
|
+
if (Gt(async () => {
|
|
14243
14246
|
await d.configTrigger(l, i);
|
|
14244
14247
|
}, [d, l, i]), d.isReady()) {
|
|
14245
14248
|
const u = [...d.triggerSchema.payload, ...a];
|
|
@@ -14257,7 +14260,7 @@ const Sy = S(({
|
|
|
14257
14260
|
sampleData: o,
|
|
14258
14261
|
variables: l
|
|
14259
14262
|
} = e, s = Cy(i, t), d = async () => {
|
|
14260
|
-
const h = await i.triggerManager.createOrGetTrigger(
|
|
14263
|
+
const h = await i.triggerManager.createOrGetTrigger(ut(), i.triggerManager.getTriggerSchemaList()[0]), g = await i.operationManager.createOrGetOperation(ut(), i.operationManager.getOperationSchemaList()[0]);
|
|
14261
14264
|
await i.addInteraction(h, g), r((w) => w + 1);
|
|
14262
14265
|
};
|
|
14263
14266
|
async function u(h) {
|
|
@@ -14266,7 +14269,7 @@ const Sy = S(({
|
|
|
14266
14269
|
const {
|
|
14267
14270
|
data: p = 0,
|
|
14268
14271
|
loading: m
|
|
14269
|
-
} =
|
|
14272
|
+
} = Wt(async () => {
|
|
14270
14273
|
try {
|
|
14271
14274
|
return (await i.triggerManager.getTriggerSchemaList()).length;
|
|
14272
14275
|
} catch {
|
|
@@ -14274,7 +14277,7 @@ const Sy = S(({
|
|
|
14274
14277
|
}
|
|
14275
14278
|
});
|
|
14276
14279
|
return /* @__PURE__ */ c(_, { children: [
|
|
14277
|
-
/* @__PURE__ */ n(
|
|
14280
|
+
/* @__PURE__ */ n(mt, { visible: m }),
|
|
14278
14281
|
p === 0 && /* @__PURE__ */ n(fl, { icon: /* @__PURE__ */ n(ls, { size: 16 }), title: "Unavailable", color: "gray", children: "This visualization does not have available interactions to choose from" }),
|
|
14279
14282
|
s.map((h) => /* @__PURE__ */ n(Sy, { onRemove: u, instance: a, sampleData: o, variables: l, item: h, manager: e.interactionManager }, h.id)),
|
|
14280
14283
|
/* @__PURE__ */ n(D, { style: {
|
|
@@ -14372,7 +14375,7 @@ function wo(e) {
|
|
|
14372
14375
|
}
|
|
14373
14376
|
function _o(e) {
|
|
14374
14377
|
const [t, r] = N(!1), i = va().getRequired(ae.instanceScope.migrator);
|
|
14375
|
-
return
|
|
14378
|
+
return Gt(async () => {
|
|
14376
14379
|
const a = i.status === an.notStarted;
|
|
14377
14380
|
r(i.status === an.done), i.status === an.notStarted && i.runMigration().then((o) => {
|
|
14378
14381
|
o === vo.migrated && a && (e == null || e());
|
|
@@ -14399,7 +14402,7 @@ function zy({
|
|
|
14399
14402
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
14400
14403
|
});
|
|
14401
14404
|
});
|
|
14402
|
-
return
|
|
14405
|
+
return Gt(async () => {
|
|
14403
14406
|
await i.instanceData.setItem(null, r.viz.conf);
|
|
14404
14407
|
}, [i, r.viz.type]), a ? /* @__PURE__ */ n(qc, { ...t }) : /* @__PURE__ */ n(v, { children: "Checking update..." });
|
|
14405
14408
|
}
|
|
@@ -14411,7 +14414,7 @@ function Ly(e) {
|
|
|
14411
14414
|
Co(r, t);
|
|
14412
14415
|
const {
|
|
14413
14416
|
inEditMode: i
|
|
14414
|
-
} = Be(
|
|
14417
|
+
} = Be(gt);
|
|
14415
14418
|
return _o(() => {
|
|
14416
14419
|
i && yn({
|
|
14417
14420
|
title: `${t.title} - Updated`,
|
|
@@ -14457,7 +14460,7 @@ const Vy = ["richText", "button"], So = S(function({
|
|
|
14457
14460
|
ref: s,
|
|
14458
14461
|
width: d,
|
|
14459
14462
|
height: u
|
|
14460
|
-
} =
|
|
14463
|
+
} = $t(), p = Ay(i, {
|
|
14461
14464
|
w: d,
|
|
14462
14465
|
h: u
|
|
14463
14466
|
});
|
|
@@ -14469,7 +14472,7 @@ const Vy = ["richText", "button"], So = S(function({
|
|
|
14469
14472
|
return /* @__PURE__ */ n("div", { className: "viz-root", style: {
|
|
14470
14473
|
height: t,
|
|
14471
14474
|
position: "relative"
|
|
14472
|
-
}, ref: s, children: /* @__PURE__ */ n(
|
|
14475
|
+
}, ref: s, children: /* @__PURE__ */ n(mt, { visible: a, exitTransitionDuration: 0 }) });
|
|
14473
14476
|
const h = !!o, g = !h && !!(l != null && l.stateMessage), w = !h && !g;
|
|
14474
14477
|
return /* @__PURE__ */ c("div", { className: "viz-root", style: {
|
|
14475
14478
|
height: t
|
|
@@ -14504,7 +14507,7 @@ const Er = S(function({
|
|
|
14504
14507
|
}) {
|
|
14505
14508
|
const i = P(), {
|
|
14506
14509
|
inEditMode: a
|
|
14507
|
-
} = Be(
|
|
14510
|
+
} = Be(gt), {
|
|
14508
14511
|
data: o,
|
|
14509
14512
|
state: l,
|
|
14510
14513
|
error: s
|
|
@@ -14690,7 +14693,7 @@ const Gy = S(({
|
|
|
14690
14693
|
bottom: 0,
|
|
14691
14694
|
zIndex: 200
|
|
14692
14695
|
}, children: [
|
|
14693
|
-
/* @__PURE__ */ n(
|
|
14696
|
+
/* @__PURE__ */ n(ht, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
|
|
14694
14697
|
/* @__PURE__ */ c(_, { mx: "auto", mt: 100, sx: {
|
|
14695
14698
|
width: "300px",
|
|
14696
14699
|
position: "relative",
|
|
@@ -15524,7 +15527,7 @@ function Oo(e) {
|
|
|
15524
15527
|
}), $o + t.join(`
|
|
15525
15528
|
`);
|
|
15526
15529
|
}
|
|
15527
|
-
const
|
|
15530
|
+
const Lt = {
|
|
15528
15531
|
CryptoJS: xa,
|
|
15529
15532
|
d3Array: Cs,
|
|
15530
15533
|
dayjs: O,
|
|
@@ -15584,7 +15587,7 @@ const zt = {
|
|
|
15584
15587
|
</table>
|
|
15585
15588
|
`;
|
|
15586
15589
|
function Cv(e, t) {
|
|
15587
|
-
return new Function(`return ${e}`)()(t,
|
|
15590
|
+
return new Function(`return ${e}`)()(t, Lt);
|
|
15588
15591
|
}
|
|
15589
15592
|
function Sv(e, t, r) {
|
|
15590
15593
|
return {
|
|
@@ -15601,21 +15604,21 @@ function kv(e, t, r, i) {
|
|
|
15601
15604
|
}
|
|
15602
15605
|
function Tv(e, t) {
|
|
15603
15606
|
try {
|
|
15604
|
-
return new Function(`return ${e.config.processing.pre}`)()(t,
|
|
15607
|
+
return new Function(`return ${e.config.processing.pre}`)()(t, Lt);
|
|
15605
15608
|
} catch (r) {
|
|
15606
15609
|
return console.error(r), t;
|
|
15607
15610
|
}
|
|
15608
15611
|
}
|
|
15609
15612
|
function Dv(e, t) {
|
|
15610
15613
|
try {
|
|
15611
|
-
return new Function(`return ${e.config.processing.post}`)()(t,
|
|
15614
|
+
return new Function(`return ${e.config.processing.post}`)()(t, Lt);
|
|
15612
15615
|
} catch (r) {
|
|
15613
15616
|
return console.error(r), t;
|
|
15614
15617
|
}
|
|
15615
15618
|
}
|
|
15616
15619
|
function Iv(e, t) {
|
|
15617
15620
|
try {
|
|
15618
|
-
return new Function(`return ${e}`)()(t,
|
|
15621
|
+
return new Function(`return ${e}`)()(t, Lt);
|
|
15619
15622
|
} catch (r) {
|
|
15620
15623
|
return console.error(r), t;
|
|
15621
15624
|
}
|
|
@@ -15667,7 +15670,7 @@ function Lv({
|
|
|
15667
15670
|
try {
|
|
15668
15671
|
return new Function(`return ${t}`)()({
|
|
15669
15672
|
sql: e
|
|
15670
|
-
},
|
|
15673
|
+
}, Lt);
|
|
15671
15674
|
} catch (r) {
|
|
15672
15675
|
return console.error(r), e;
|
|
15673
15676
|
}
|
|
@@ -15676,7 +15679,7 @@ function Av(e, t) {
|
|
|
15676
15679
|
if (!e.trim())
|
|
15677
15680
|
return t;
|
|
15678
15681
|
try {
|
|
15679
|
-
return new Function(`return ${e}`)()(t,
|
|
15682
|
+
return new Function(`return ${e}`)()(t, Lt);
|
|
15680
15683
|
} catch (r) {
|
|
15681
15684
|
return console.error(r), t;
|
|
15682
15685
|
}
|
|
@@ -15926,7 +15929,7 @@ const Mv = f.model("QueryModel", {
|
|
|
15926
15929
|
sqlSnippets: a,
|
|
15927
15930
|
filterValues: o
|
|
15928
15931
|
} = pe(e).payloadForSQL;
|
|
15929
|
-
e.data = yield*
|
|
15932
|
+
e.data = yield* ct(Vv({
|
|
15930
15933
|
context: r,
|
|
15931
15934
|
mock_context: i,
|
|
15932
15935
|
sqlSnippets: a,
|
|
@@ -15953,7 +15956,7 @@ const Mv = f.model("QueryModel", {
|
|
|
15953
15956
|
mock_context: i,
|
|
15954
15957
|
filterValues: a
|
|
15955
15958
|
} = pe(e).payloadForSQL;
|
|
15956
|
-
e.data = yield*
|
|
15959
|
+
e.data = yield* ct(Rv({
|
|
15957
15960
|
context: r,
|
|
15958
15961
|
mock_context: i,
|
|
15959
15962
|
query: e.json,
|
|
@@ -16356,7 +16359,7 @@ const Mv = f.model("QueryModel", {
|
|
|
16356
16359
|
var r;
|
|
16357
16360
|
(r = e.controllers.tables) == null || r.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
|
|
16358
16361
|
try {
|
|
16359
|
-
const i = yield*
|
|
16362
|
+
const i = yield* ct(De.getRequest("POST", e.controllers.tables.signal)("/query", {
|
|
16360
16363
|
type: e.type,
|
|
16361
16364
|
key: e.key,
|
|
16362
16365
|
query: e.tables.sql
|
|
@@ -16379,7 +16382,7 @@ const Mv = f.model("QueryModel", {
|
|
|
16379
16382
|
var r;
|
|
16380
16383
|
(r = e.controllers.columns) == null || r.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
|
|
16381
16384
|
try {
|
|
16382
|
-
e.columns.data = yield*
|
|
16385
|
+
e.columns.data = yield* ct(De.getRequest("POST", e.controllers.columns.signal)("/query", {
|
|
16383
16386
|
type: e.type,
|
|
16384
16387
|
key: e.key,
|
|
16385
16388
|
query: e.columns.sql
|
|
@@ -16398,7 +16401,7 @@ const Mv = f.model("QueryModel", {
|
|
|
16398
16401
|
var r;
|
|
16399
16402
|
(r = e.controllers.indexes) == null || r.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
|
|
16400
16403
|
try {
|
|
16401
|
-
e.indexes.data = yield*
|
|
16404
|
+
e.indexes.data = yield* ct(De.getRequest("POST", e.controllers.indexes.signal)("/query", {
|
|
16402
16405
|
type: e.type,
|
|
16403
16406
|
key: e.key,
|
|
16404
16407
|
query: e.indexes.sql
|
|
@@ -16419,14 +16422,14 @@ const Mv = f.model("QueryModel", {
|
|
|
16419
16422
|
const r = e.tableData;
|
|
16420
16423
|
r.state = "loading";
|
|
16421
16424
|
try {
|
|
16422
|
-
r.data = yield*
|
|
16425
|
+
r.data = yield* ct(De.getRequest("POST", e.controllers.tableData.signal)("/query", {
|
|
16423
16426
|
type: e.type,
|
|
16424
16427
|
key: e.key,
|
|
16425
16428
|
query: r.sql
|
|
16426
16429
|
}, {}));
|
|
16427
16430
|
const [{
|
|
16428
16431
|
total: a
|
|
16429
|
-
}] = yield*
|
|
16432
|
+
}] = yield* ct(De.getRequest("POST", e.controllers.tableData.signal)("/query", {
|
|
16430
16433
|
type: e.type,
|
|
16431
16434
|
key: e.key,
|
|
16432
16435
|
query: r.countSql
|
|
@@ -16741,7 +16744,7 @@ class e0 {
|
|
|
16741
16744
|
constructor(t) {
|
|
16742
16745
|
R(this, "origin");
|
|
16743
16746
|
R(this, "copy");
|
|
16744
|
-
this.origin = t, this.copy = zs(t),
|
|
16747
|
+
this.origin = t, this.copy = zs(t), Qt(this, {}, {
|
|
16745
16748
|
autoBind: !0,
|
|
16746
16749
|
deep: !1
|
|
16747
16750
|
});
|
|
@@ -17087,7 +17090,7 @@ const i0 = f.model("PanelsModel", {
|
|
|
17087
17090
|
e.tabs.length = 0, e.tabs = Tt(t);
|
|
17088
17091
|
},
|
|
17089
17092
|
addTab() {
|
|
17090
|
-
const t =
|
|
17093
|
+
const t = ut(), r = {
|
|
17091
17094
|
id: t,
|
|
17092
17095
|
name: t,
|
|
17093
17096
|
view_id: ""
|
|
@@ -17590,7 +17593,7 @@ const Ho = {
|
|
|
17590
17593
|
] }),
|
|
17591
17594
|
/* @__PURE__ */ c(y, { spacing: 16, children: [
|
|
17592
17595
|
/* @__PURE__ */ n(ee, { label: "Revert Changes", withinPortal: !0, children: /* @__PURE__ */ n($, { variant: "default", size: "md", disabled: !u, onClick: d, children: /* @__PURE__ */ n(qi, { size: 20, color: "red" }) }) }),
|
|
17593
|
-
/* @__PURE__ */ n(D, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ n(
|
|
17596
|
+
/* @__PURE__ */ n(D, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ n(jt, { size: 18 }), onClick: e, disabled: !u, children: "Save Changes" })
|
|
17594
17597
|
] })
|
|
17595
17598
|
] })
|
|
17596
17599
|
] }) });
|
|
@@ -17942,7 +17945,7 @@ const M0 = {
|
|
|
17942
17945
|
}) => {
|
|
17943
17946
|
const {
|
|
17944
17947
|
freezeLayout: r
|
|
17945
|
-
} = z.useContext(
|
|
17948
|
+
} = z.useContext(gt);
|
|
17946
17949
|
return z.useEffect(() => {
|
|
17947
17950
|
r(e);
|
|
17948
17951
|
}, [e]), /* @__PURE__ */ n(
|
|
@@ -18165,7 +18168,7 @@ const O0 = S(() => {
|
|
|
18165
18168
|
minHeight: "50px"
|
|
18166
18169
|
}, children: [
|
|
18167
18170
|
t.usingQuery && /* @__PURE__ */ c(F, { children: [
|
|
18168
|
-
/* @__PURE__ */ n(
|
|
18171
|
+
/* @__PURE__ */ n(ht, { opacity: 0.8, color: "#000", sx: {
|
|
18169
18172
|
left: "-5px",
|
|
18170
18173
|
right: "-5px",
|
|
18171
18174
|
top: "-5px",
|
|
@@ -18180,8 +18183,8 @@ const O0 = S(() => {
|
|
|
18180
18183
|
width: "100%"
|
|
18181
18184
|
}, children: /* @__PURE__ */ n(v, { color: "white", size: 16, children: "Using query" }) })
|
|
18182
18185
|
] }),
|
|
18183
|
-
i.length > 0 && /* @__PURE__ */ n(
|
|
18184
|
-
i.map((o, l) => /* @__PURE__ */ c(
|
|
18186
|
+
i.length > 0 && /* @__PURE__ */ n(Nt, { label: "Default Selection", data: a, value: [...t.default_value], onChange: t.setDefaultValue }),
|
|
18187
|
+
i.map((o, l) => /* @__PURE__ */ c(qt, { gap: 10, sx: {
|
|
18185
18188
|
position: "relative"
|
|
18186
18189
|
}, pr: "40px", children: [
|
|
18187
18190
|
/* @__PURE__ */ n(I, { label: "Label", required: !0, value: t.static_options[l].label, onChange: (s) => {
|
|
@@ -18230,7 +18233,7 @@ const O0 = S(() => {
|
|
|
18230
18233
|
minHeight: "50px"
|
|
18231
18234
|
}, children: [
|
|
18232
18235
|
t.usingQuery && /* @__PURE__ */ c(F, { children: [
|
|
18233
|
-
/* @__PURE__ */ n(
|
|
18236
|
+
/* @__PURE__ */ n(ht, { opacity: 0.8, color: "#000", sx: {
|
|
18234
18237
|
left: "-5px",
|
|
18235
18238
|
right: "-5px",
|
|
18236
18239
|
top: "-5px",
|
|
@@ -18246,7 +18249,7 @@ const O0 = S(() => {
|
|
|
18246
18249
|
}, children: /* @__PURE__ */ n(v, { color: "white", size: 16, children: "Using query" }) })
|
|
18247
18250
|
] }),
|
|
18248
18251
|
i.length > 0 && /* @__PURE__ */ n(A, { label: "Default Selection", data: a, value: t.default_value, onChange: t.setDefaultValue }),
|
|
18249
|
-
i.map((o, l) => /* @__PURE__ */ c(
|
|
18252
|
+
i.map((o, l) => /* @__PURE__ */ c(qt, { gap: 10, sx: {
|
|
18250
18253
|
position: "relative"
|
|
18251
18254
|
}, pr: "40px", children: [
|
|
18252
18255
|
/* @__PURE__ */ n(I, { label: "Label", required: !0, value: t.static_options[l].label, onChange: (s) => {
|
|
@@ -18372,7 +18375,7 @@ const O0 = S(() => {
|
|
|
18372
18375
|
),
|
|
18373
18376
|
t.auto_submit_supported && /* @__PURE__ */ n(K, { label: "Submit automatically", checked: t.auto_submit, onChange: (a) => t.setAutoSubmit(a.currentTarget.checked), mt: 22 })
|
|
18374
18377
|
] }),
|
|
18375
|
-
/* @__PURE__ */ n(
|
|
18378
|
+
/* @__PURE__ */ n(Nt, { label: "Visible in...", data: r.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
|
|
18376
18379
|
/* @__PURE__ */ n(I, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (a) => {
|
|
18377
18380
|
t.setKey(a.currentTarget.value);
|
|
18378
18381
|
} }),
|
|
@@ -18578,7 +18581,7 @@ function Zo({
|
|
|
18578
18581
|
});
|
|
18579
18582
|
return e.length === 0 ? /* @__PURE__ */ n(V, { sx: {
|
|
18580
18583
|
height: "5em"
|
|
18581
|
-
} }) : /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ c(
|
|
18584
|
+
} }) : /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ c(pt, { sx: lw, children: [
|
|
18582
18585
|
/* @__PURE__ */ n("thead", { children: r.getHeaderGroups().map((i) => /* @__PURE__ */ n("tr", { children: i.headers.map((a) => /* @__PURE__ */ c("th", { style: {
|
|
18583
18586
|
width: a.getSize()
|
|
18584
18587
|
}, children: [
|
|
@@ -18622,7 +18625,7 @@ const Jo = S(function({
|
|
|
18622
18625
|
position: "relative",
|
|
18623
18626
|
overflow: "auto"
|
|
18624
18627
|
}, children: [
|
|
18625
|
-
/* @__PURE__ */ n(
|
|
18628
|
+
/* @__PURE__ */ n(mt, { visible: o }),
|
|
18626
18629
|
/* @__PURE__ */ n(ow, { queryID: t }),
|
|
18627
18630
|
/* @__PURE__ */ n(Zo, { data: d })
|
|
18628
18631
|
] })
|
|
@@ -18736,7 +18739,7 @@ class uw {
|
|
|
18736
18739
|
constructor(t) {
|
|
18737
18740
|
R(this, "panel");
|
|
18738
18741
|
R(this, "selected");
|
|
18739
|
-
this.panel = t,
|
|
18742
|
+
this.panel = t, Qt(this, {}, {
|
|
18740
18743
|
deep: !1,
|
|
18741
18744
|
autoBind: !0
|
|
18742
18745
|
});
|
|
@@ -18789,7 +18792,7 @@ const pw = z.forwardRef(function({
|
|
|
18789
18792
|
/* @__PURE__ */ n(We, { value: t.formatter, onChange: (s) => l("formatter", s) }),
|
|
18790
18793
|
a && /* @__PURE__ */ n(Ya, { value: t, onChange: r })
|
|
18791
18794
|
] });
|
|
18792
|
-
}), el =
|
|
18795
|
+
}), el = Bt((e) => ({
|
|
18793
18796
|
root: {
|
|
18794
18797
|
height: "100%",
|
|
18795
18798
|
overflow: "hidden",
|
|
@@ -18841,7 +18844,7 @@ const pw = z.forwardRef(function({
|
|
|
18841
18844
|
}, align: "start", children: [
|
|
18842
18845
|
/* @__PURE__ */ c(_, { "data-testid": "variable-editor", align: "stretch", className: r.config, children: [
|
|
18843
18846
|
/* @__PURE__ */ c(y, { position: "right", children: [
|
|
18844
|
-
/* @__PURE__ */ n($, { variant: "filled", disabled: !t.changed, color: "primary", onClick: t.commit, children: /* @__PURE__ */ n(
|
|
18847
|
+
/* @__PURE__ */ n($, { variant: "filled", disabled: !t.changed, color: "primary", onClick: t.commit, children: /* @__PURE__ */ n(jt, { size: 18 }) }),
|
|
18845
18848
|
/* @__PURE__ */ n($, { color: "red", onClick: () => e.uiModel.remove(e.variable), children: /* @__PURE__ */ n(vt, { size: 18 }) })
|
|
18846
18849
|
] }),
|
|
18847
18850
|
/* @__PURE__ */ n(pw, { value: Oe(t.copy), onChange: t.update, data: i })
|
|
@@ -18993,7 +18996,7 @@ const Tw = S(() => {
|
|
|
18993
18996
|
flexShrink: 0
|
|
18994
18997
|
}, children: [
|
|
18995
18998
|
/* @__PURE__ */ n(D, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ n(Wi, { size: 14 }), onClick: s, children: "Cancel" }),
|
|
18996
|
-
/* @__PURE__ */ n(D, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ n(
|
|
18999
|
+
/* @__PURE__ */ n(D, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ n(jt, { size: 14 }), onClick: d, disabled: i === t, children: "Confirm" })
|
|
18997
19000
|
] })
|
|
18998
19001
|
] }) })
|
|
18999
19002
|
] });
|
|
@@ -19079,7 +19082,7 @@ const Lw = S(({
|
|
|
19079
19082
|
/* @__PURE__ */ n(x.Tab, { value: "Interactions", children: "Interactions" })
|
|
19080
19083
|
] }),
|
|
19081
19084
|
/* @__PURE__ */ c(x.Panel, { value: "Data", children: [
|
|
19082
|
-
/* @__PURE__ */ n(
|
|
19085
|
+
/* @__PURE__ */ n(mt, { visible: p, exitTransitionDuration: 0 }),
|
|
19083
19086
|
/* @__PURE__ */ n(sw, {})
|
|
19084
19087
|
] }),
|
|
19085
19088
|
/* @__PURE__ */ n(x.Panel, { value: "Panel", children: /* @__PURE__ */ n(Si, { children: /* @__PURE__ */ n(aw, {}) }) }),
|
|
@@ -19115,7 +19118,7 @@ const Lw = S(({
|
|
|
19115
19118
|
}) => /* @__PURE__ */ c(_, { spacing: a, mt: 6, pl: o, children: [
|
|
19116
19119
|
Array.from(new Array(i - 1), (l, s) => /* @__PURE__ */ n(ii, { width: e, height: r, radius: "xs" }, s)),
|
|
19117
19120
|
/* @__PURE__ */ n(ii, { width: t, height: r, radius: "xs" })
|
|
19118
|
-
] }),
|
|
19121
|
+
] }), Ft = ({
|
|
19119
19122
|
value: e
|
|
19120
19123
|
}) => e === null || e === "" ? null : /* @__PURE__ */ n(ee, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ n($, { children: /* @__PURE__ */ n(nr, { size: 14 }) }) }), Vw = ({
|
|
19121
19124
|
column: e
|
|
@@ -19131,7 +19134,7 @@ const Lw = S(({
|
|
|
19131
19134
|
const {
|
|
19132
19135
|
columns: t
|
|
19133
19136
|
} = e;
|
|
19134
|
-
return t.loading ? /* @__PURE__ */ n(tl, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ c(
|
|
19137
|
+
return t.loading ? /* @__PURE__ */ n(tl, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ c(pt, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
19135
19138
|
width: "auto",
|
|
19136
19139
|
minWidth: "1000px",
|
|
19137
19140
|
alignSelf: "flex-start",
|
|
@@ -19178,11 +19181,11 @@ const Lw = S(({
|
|
|
19178
19181
|
/* @__PURE__ */ n("tbody", { children: t.data.map((r) => /* @__PURE__ */ c("tr", { children: [
|
|
19179
19182
|
/* @__PURE__ */ n("td", { children: r.ordinal_position }),
|
|
19180
19183
|
/* @__PURE__ */ n("td", { children: r.column_name }),
|
|
19181
|
-
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(
|
|
19184
|
+
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: r.column_comment }) }),
|
|
19182
19185
|
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Vw, { column: r }) }),
|
|
19183
19186
|
/* @__PURE__ */ n("td", { children: r.column_type }),
|
|
19184
19187
|
/* @__PURE__ */ n("td", { children: r.is_nullable }),
|
|
19185
|
-
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(
|
|
19188
|
+
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: r.column_default }) })
|
|
19186
19189
|
] }, r.column_name)) })
|
|
19187
19190
|
] });
|
|
19188
19191
|
}), Mw = S(({
|
|
@@ -19191,7 +19194,7 @@ const Lw = S(({
|
|
|
19191
19194
|
const {
|
|
19192
19195
|
indexes: t
|
|
19193
19196
|
} = e, r = t.data;
|
|
19194
|
-
return /* @__PURE__ */ c(
|
|
19197
|
+
return /* @__PURE__ */ c(pt, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
19195
19198
|
width: "auto",
|
|
19196
19199
|
minWidth: "950px",
|
|
19197
19200
|
alignSelf: "flex-start",
|
|
@@ -19239,7 +19242,7 @@ const Lw = S(({
|
|
|
19239
19242
|
const {
|
|
19240
19243
|
indexes: t
|
|
19241
19244
|
} = e, r = t.data;
|
|
19242
|
-
return /* @__PURE__ */ c(
|
|
19245
|
+
return /* @__PURE__ */ c(pt, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
19243
19246
|
width: "auto",
|
|
19244
19247
|
minWidth: "850px",
|
|
19245
19248
|
alignSelf: "flex-start",
|
|
@@ -19281,9 +19284,9 @@ const Lw = S(({
|
|
|
19281
19284
|
/* @__PURE__ */ n("td", { children: i.index_name }),
|
|
19282
19285
|
/* @__PURE__ */ n("td", { children: i.index_algorithm }),
|
|
19283
19286
|
/* @__PURE__ */ n("td", { children: i.is_unique ? "YES" : "NO" }),
|
|
19284
|
-
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(
|
|
19285
|
-
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(
|
|
19286
|
-
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(
|
|
19287
|
+
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: i.index_definition }) }),
|
|
19288
|
+
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: i.condition }) }),
|
|
19289
|
+
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: i.comment }) })
|
|
19287
19290
|
] }, i.index_name)) })
|
|
19288
19291
|
] });
|
|
19289
19292
|
}), Pw = S(({
|
|
@@ -19329,7 +19332,7 @@ const Ew = S(({
|
|
|
19329
19332
|
height: "100%",
|
|
19330
19333
|
overflow: "hidden",
|
|
19331
19334
|
position: "relative"
|
|
19332
|
-
}, children: /* @__PURE__ */ n(
|
|
19335
|
+
}, children: /* @__PURE__ */ n(mt, { visible: e }) }), Bw = [{
|
|
19333
19336
|
label: "10",
|
|
19334
19337
|
value: "10"
|
|
19335
19338
|
}, {
|
|
@@ -19396,7 +19399,7 @@ const Ew = S(({
|
|
|
19396
19399
|
overflow: "auto",
|
|
19397
19400
|
position: "relative"
|
|
19398
19401
|
}, children: [
|
|
19399
|
-
/* @__PURE__ */ n(
|
|
19402
|
+
/* @__PURE__ */ n(mt, { visible: t.loading, overlayBlur: 2 }),
|
|
19400
19403
|
/* @__PURE__ */ n(Zo, { data: t.data })
|
|
19401
19404
|
] })
|
|
19402
19405
|
] }));
|
|
@@ -19418,7 +19421,7 @@ const Ew = S(({
|
|
|
19418
19421
|
e.loadTablesIfEmpty();
|
|
19419
19422
|
}, [e]), e.tables.error ? /* @__PURE__ */ n(v, { color: "red", size: "md", align: "center", sx: {
|
|
19420
19423
|
fontFamily: "monospace"
|
|
19421
|
-
}, children: e.tables.error }) : /* @__PURE__ */ c(
|
|
19424
|
+
}, children: e.tables.error }) : /* @__PURE__ */ c(qt, { sx: {
|
|
19422
19425
|
height: "100%"
|
|
19423
19426
|
}, children: [
|
|
19424
19427
|
/* @__PURE__ */ n(V, { w: 300, sx: {
|
|
@@ -19497,7 +19500,7 @@ const Ew = S(({
|
|
|
19497
19500
|
const r = P(), {
|
|
19498
19501
|
data: i = [],
|
|
19499
19502
|
loading: a
|
|
19500
|
-
} =
|
|
19503
|
+
} = Wt(Gr, {
|
|
19501
19504
|
refreshDeps: []
|
|
19502
19505
|
}, []), o = k(() => i.map((u) => ({
|
|
19503
19506
|
label: u.key,
|
|
@@ -19579,7 +19582,7 @@ const Ew = S(({
|
|
|
19579
19582
|
e.setKey(r), e.setType(t);
|
|
19580
19583
|
} }),
|
|
19581
19584
|
/* @__PURE__ */ n(L, { mt: 10, mb: -10, variant: "dashed", label: "Conditions", labelPosition: "center" }),
|
|
19582
|
-
/* @__PURE__ */ n(
|
|
19585
|
+
/* @__PURE__ */ n(Nt, { label: "Run query when these are truthy", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy }),
|
|
19583
19586
|
/* @__PURE__ */ n(L, { mt: 20, mb: 10, variant: "dashed" }),
|
|
19584
19587
|
/* @__PURE__ */ n(Kw, { queryModel: e })
|
|
19585
19588
|
] }) }));
|
|
@@ -19645,7 +19648,7 @@ const e_ = ({
|
|
|
19645
19648
|
/* @__PURE__ */ c(y, { position: "right", children: [
|
|
19646
19649
|
/* @__PURE__ */ n(D, { onClick: u, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ n(ts, { size: 16 }), children: "Reset to default" }),
|
|
19647
19650
|
/* @__PURE__ */ n(D, { onClick: d, color: "red", size: "xs", disabled: !p, leftIcon: /* @__PURE__ */ n(qi, { size: 16 }), children: "Revert Changes" }),
|
|
19648
|
-
/* @__PURE__ */ n(D, { size: "xs", onClick: s, disabled: !p, leftIcon: /* @__PURE__ */ n(
|
|
19651
|
+
/* @__PURE__ */ n(D, { size: "xs", onClick: s, disabled: !p, leftIcon: /* @__PURE__ */ n(jt, { size: 16 }), children: "Confirm Changes" })
|
|
19649
19652
|
] })
|
|
19650
19653
|
] }),
|
|
19651
19654
|
/* @__PURE__ */ n(v, { size: 14, children: r }),
|
|
@@ -19824,7 +19827,7 @@ WHERE
|
|
|
19824
19827
|
}, a = (o) => {
|
|
19825
19828
|
r.setPath(["_VIEWS_", o]);
|
|
19826
19829
|
};
|
|
19827
|
-
return /* @__PURE__ */ n(_, { py: "sm", px: "md", children: /* @__PURE__ */ c(
|
|
19830
|
+
return /* @__PURE__ */ n(_, { py: "sm", px: "md", children: /* @__PURE__ */ c(pt, { highlightOnHover: !0, sx: {
|
|
19828
19831
|
tableLayout: "fixed"
|
|
19829
19832
|
}, children: [
|
|
19830
19833
|
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ c("tr", { children: [
|
|
@@ -20015,7 +20018,7 @@ WHERE
|
|
|
20015
20018
|
}) => /* @__PURE__ */ c(V, { sx: {
|
|
20016
20019
|
position: "relative"
|
|
20017
20020
|
}, children: [
|
|
20018
|
-
e && /* @__PURE__ */ n(
|
|
20021
|
+
e && /* @__PURE__ */ n(ht, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
20019
20022
|
/* @__PURE__ */ n(Ie, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
20020
20023
|
a && r(a);
|
|
20021
20024
|
}, theme: "vs-dark", options: {
|
|
@@ -20080,7 +20083,7 @@ WHERE
|
|
|
20080
20083
|
const t = e.config, r = t.custom_modal_title.value;
|
|
20081
20084
|
return /* @__PURE__ */ c(_, { children: [
|
|
20082
20085
|
/* @__PURE__ */ n(L, { mt: 8, label: "Modal settings", labelPosition: "center" }),
|
|
20083
|
-
/* @__PURE__ */ c(
|
|
20086
|
+
/* @__PURE__ */ c(qt, { gap: 10, children: [
|
|
20084
20087
|
/* @__PURE__ */ n(I, { label: "Modal Title", value: r, onChange: C.noop, disabled: !0, sx: {
|
|
20085
20088
|
flexGrow: 1
|
|
20086
20089
|
} }),
|
|
@@ -20442,7 +20445,7 @@ const H_ = {
|
|
|
20442
20445
|
G_(o.monacoPath), To(o);
|
|
20443
20446
|
const {
|
|
20444
20447
|
data: u = []
|
|
20445
|
-
} =
|
|
20448
|
+
} = Wt(Gr), [p, m] = z.useState(!1), h = z.useMemo(() => Go(r, u, t), [r]);
|
|
20446
20449
|
z.useImperativeHandle(d, () => h, [h]), ya(h, !0), z.useEffect(() => {
|
|
20447
20450
|
h.context.replace(t);
|
|
20448
20451
|
}, [t]), z.useEffect(() => {
|
|
@@ -20453,7 +20456,7 @@ const H_ = {
|
|
|
20453
20456
|
const g = async () => {
|
|
20454
20457
|
await i(h.json);
|
|
20455
20458
|
}, w = Me($r, []), T = jo(w);
|
|
20456
|
-
return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: h, children: /* @__PURE__ */ n(
|
|
20459
|
+
return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: h, children: /* @__PURE__ */ n(gt.Provider, { value: {
|
|
20457
20460
|
layoutFrozen: p,
|
|
20458
20461
|
freezeLayout: m,
|
|
20459
20462
|
inEditMode: !0
|
|
@@ -20476,7 +20479,7 @@ const V1 = S(({
|
|
|
20476
20479
|
To(i);
|
|
20477
20480
|
const {
|
|
20478
20481
|
data: l = []
|
|
20479
|
-
} =
|
|
20482
|
+
} = Wt(Gr), s = z.useMemo(() => Go(t, l, e), [t]);
|
|
20480
20483
|
ya(s, !1), z.useEffect(() => {
|
|
20481
20484
|
s.context.replace(e);
|
|
20482
20485
|
}, [e]), z.useEffect(() => {
|
|
@@ -20486,7 +20489,7 @@ const V1 = S(({
|
|
|
20486
20489
|
return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: s, children: /* @__PURE__ */ n(Ta.Provider, { value: {
|
|
20487
20490
|
fullScreenPanelID: a,
|
|
20488
20491
|
setFullScreenPanelID: o
|
|
20489
|
-
}, children: /* @__PURE__ */ n(
|
|
20492
|
+
}, children: /* @__PURE__ */ n(gt.Provider, { value: {
|
|
20490
20493
|
layoutFrozen: !0,
|
|
20491
20494
|
freezeLayout: C.noop,
|
|
20492
20495
|
inEditMode: !1
|
|
@@ -20542,7 +20545,7 @@ export {
|
|
|
20542
20545
|
wi as FilterModel,
|
|
20543
20546
|
gv as FiltersModel,
|
|
20544
20547
|
Ta as FullScreenPanelContext,
|
|
20545
|
-
|
|
20548
|
+
gt as LayoutStateContext,
|
|
20546
20549
|
_a as ModelContextProvider,
|
|
20547
20550
|
Er as Panel,
|
|
20548
20551
|
ka as PanelContextProvider,
|