@devtable/dashboard 13.11.1 → 13.11.2
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 +156 -154
- package/dist/dashboard.umd.js +23 -23
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -2,8 +2,8 @@ var uh = Object.defineProperty;
|
|
|
2
2
|
var hh = (t, e, n) => e in t ? uh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var N = (t, e, n) => (hh(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
4
|
import L, { forwardRef as ne, useState as Q, useEffect as B, useCallback as Ne, useMemo as C, createElement as us, useContext as Kt, useRef as hs, createContext as sl, memo as mh } from "react";
|
|
5
|
-
import { TextInput as D, Text as w, Box as M, Button as I, HoverCard as Te, Group as b, Select as F, Stack as k, Overlay as Xn, Modal as Se, Checkbox as ee, Divider as A, NumberInput as oe, Switch as qe, Table as Pe, ActionIcon as Z, MultiSelect as Wn, Paper as ph, Code as to, Tabs as _, LoadingOverlay as In, Alert as ms, ColorSwatch as li, createStyles as _r, Popover as Nn, Tooltip as xe, Center as an, Collapse as vr, useMantineTheme as il, CheckIcon as xh, MANTINE_SIZES as gh, SimpleGrid as vn, NativeSelect as al, SegmentedControl as fh, Anchor as Xr, Menu as Y, UnstyledButton as ol, Badge as rn, ColorInput as Gn, CloseButton as ps, Textarea as ll, Mark as bh, Slider as yh, Flex as Jt, Affix as _h, Header as vh, List as ct, FileInput as jh, ThemeIcon as Hs, Navbar as
|
|
6
|
-
import { useModals as
|
|
5
|
+
import { TextInput as D, Text as w, Box as M, Button as I, HoverCard as Te, Group as b, Select as F, Stack as k, Overlay as Xn, Modal as Se, Checkbox as ee, Divider as A, NumberInput as oe, Switch as qe, Table as Pe, ActionIcon as Z, MultiSelect as Wn, Paper as ph, Code as to, Tabs as _, LoadingOverlay as In, Alert as ms, ColorSwatch as li, createStyles as _r, Popover as Nn, Tooltip as xe, Center as an, Collapse as vr, useMantineTheme as il, CheckIcon as xh, MANTINE_SIZES as gh, SimpleGrid as vn, NativeSelect as al, SegmentedControl as fh, Anchor as Xr, Menu as Y, UnstyledButton as ol, Badge as rn, ColorInput as Gn, CloseButton as ps, Textarea as ll, Mark as bh, Slider as yh, Flex as Jt, Affix as _h, Header as vh, List as ct, FileInput as jh, ThemeIcon as Hs, Navbar as Wt, JsonInput as cl, Pagination as dl, Drawer as wh, Accordion as Pr, Radio as no, Skeleton as ro, NavLink as ci, AppShell as ul } from "@mantine/core";
|
|
6
|
+
import { useModals as At, ModalsProvider as hl } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as st, useCreation as wt, useAsyncEffect as jr, useRequest as Sn, useLatest as so, usePrevious as Sh, useWhyDidYouUpdate as ml } from "ahooks";
|
|
8
8
|
import { toJS as Xt, observable as pl, runInAction as dr, reaction as tt, makeAutoObservable as wr } from "mobx";
|
|
9
9
|
import { observer as z } from "mobx-react-lite";
|
|
@@ -16,7 +16,7 @@ import P from "dayjs";
|
|
|
16
16
|
import S, { cloneDeepWith as xl, unset as Th, get as se, isObject as gl, set as Ci, omit as kn, isFunction as Dh, orderBy as Mh, last as fl, defaults as we, minBy as Lh, maxBy as Eh, cloneDeep as Be, values as bl, template as zi, throttle as Rh, range as Ah, isEqual as pe, defaultsDeep as ke, keyBy as $h, isEmpty as yl, isNumber as Ph, findLastIndex as Oh, isString as _l, pick as vl } from "lodash";
|
|
17
17
|
import * as Bn from "mathjs";
|
|
18
18
|
import Zr from "numbro";
|
|
19
|
-
import
|
|
19
|
+
import Mt from "axios";
|
|
20
20
|
import { useClipboard as Fh, randomId as Cn, useDisclosure as on, useElementSize as pr, useResizeObserver as Vh, useInputState as jl } from "@mantine/hooks";
|
|
21
21
|
import { interpolate as Tn } from "popmotion";
|
|
22
22
|
import * as Ke from "echarts/core";
|
|
@@ -32,8 +32,8 @@ import "echarts-gl";
|
|
|
32
32
|
import { useForm as ye, Controller as g, useFieldArray as gs, useWatch as cm } from "react-hook-form";
|
|
33
33
|
import { DatesProvider as dm, DatePicker as um } from "@mantine/dates";
|
|
34
34
|
import { useTranslation as y, Trans as Ii, initReactI18next as hm, I18nextProvider as mm } from "react-i18next";
|
|
35
|
-
import { DeviceFloppy as Ut, Recycle as Dn, Trash as
|
|
36
|
-
import
|
|
35
|
+
import { DeviceFloppy as Ut, Recycle as Dn, Trash as $t, AlertCircle as pm, InfoCircle as Zt, Plus as wl, Refresh as Ti, Download as Di, ArrowsMaximize as Sl, Settings as kl, Copy as xm, ArrowLeft as gm, ArrowsMove as fm, ChevronDownRight as bm, ChevronsUpRight as ym, PlaylistAdd as fs, ArrowBarToRight as _m } from "tabler-icons-react";
|
|
36
|
+
import Pt, { loader as Us } from "@monaco-editor/react";
|
|
37
37
|
import { IconMathFunction as ln, IconDeviceFloppy as Oe, IconPlus as St, IconTrash as Yt, IconChevronUp as vm, IconChevronDown as jm, IconTextSize as Mi, IconInfoCircle as Mn, IconPlayerSkipBack as Cl, IconRecycle as Sr, IconSelector as wm, IconBorderAll as Sm, IconArrowDown as km, IconArrowUp as Cm, IconCalendar as zm, IconMinus as Im, IconChevronsUp as Tm, IconChevronsDown as Dm, IconCode as zn, IconCamera as bs, IconShare3 as Mm, IconDownload as Lm, IconArrowsLeftRight as Em, IconVariable as zl, IconCodeDots as Rm, IconFilter as Il, IconCopy as Am, IconDatabase as ys, IconBoxMultiple as Tl, IconCaretDown as $m, IconAlertTriangle as Dl, IconArrowLeft as Pm, IconPlaylistAdd as ao, IconDevices as Om, IconSettings as kr, IconPointFilled as Li, IconFileImport as oo, IconCircleDashed as Fm, IconCircleDot as Vm, IconCircleOff as qm, IconAdjustments as Nm, IconLink as Bm, IconArrowCurveRight as di, IconLine as Wm, IconX as Ml, IconEye as Ll, IconTable as Gm, IconColumns as Qm, IconVectorTriangle as Hm, IconAlertCircle as lo, IconVariablePlus as Um, IconHierarchy as Ym, IconDiscountCheckFilled as Km } from "@tabler/icons-react";
|
|
38
38
|
import { showNotification as Qn, notifications as El } from "@mantine/notifications";
|
|
39
39
|
import * as nn from "d3-regression";
|
|
@@ -62,7 +62,7 @@ import { useVirtual as bp } from "react-virtual";
|
|
|
62
62
|
import yp, { Option as _p } from "rc-select";
|
|
63
63
|
import vp, { SHOW_PARENT as jp } from "rc-tree-select";
|
|
64
64
|
import { WidthProvider as Xl, Responsive as Zl } from "react-grid-layout";
|
|
65
|
-
import { types as x, cast as
|
|
65
|
+
import { types as x, cast as Lt, getRoot as Ge, getParent as Ee, addDisposer as gt, isAlive as uo, flow as Vn, toGenerator as gn, clone as wp, getSnapshot as Dt, applySnapshot as Qe, addMiddleware as Sp, getType as kp, detach as ui, castToSnapshot as ec } from "mobx-state-tree";
|
|
66
66
|
import { arrayToTree as Cp } from "performant-array-to-tree";
|
|
67
67
|
import { saveAs as _s } from "file-saver";
|
|
68
68
|
import tc from "dom-to-image-more";
|
|
@@ -173,7 +173,7 @@ function px() {
|
|
|
173
173
|
}
|
|
174
174
|
var K = !1, ae = !1, J = !1, X = !1, je = !1, _e;
|
|
175
175
|
_e = Symbol.for("react.module.reference");
|
|
176
|
-
function
|
|
176
|
+
function qt(j) {
|
|
177
177
|
return !!(typeof j == "string" || typeof j == "function" || j === s || j === a || je || j === i || j === d || j === u || X || j === p || K || ae || J || typeof j == "object" && j !== null && (j.$$typeof === m || j.$$typeof === h || j.$$typeof === o || j.$$typeof === l || j.$$typeof === c || // This needs to include all possible module reference object
|
|
178
178
|
// types supported by any Flight configuration anywhere since
|
|
179
179
|
// we don't know which Flight build this will end up being used
|
|
@@ -342,29 +342,29 @@ function px() {
|
|
|
342
342
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
343
343
|
try {
|
|
344
344
|
Reflect.construct(ce, []);
|
|
345
|
-
} catch (
|
|
346
|
-
U =
|
|
345
|
+
} catch (Nt) {
|
|
346
|
+
U = Nt;
|
|
347
347
|
}
|
|
348
348
|
Reflect.construct(j, [], ce);
|
|
349
349
|
} else {
|
|
350
350
|
try {
|
|
351
351
|
ce.call();
|
|
352
|
-
} catch (
|
|
353
|
-
U =
|
|
352
|
+
} catch (Nt) {
|
|
353
|
+
U = Nt;
|
|
354
354
|
}
|
|
355
355
|
j.call(ce.prototype);
|
|
356
356
|
}
|
|
357
357
|
} else {
|
|
358
358
|
try {
|
|
359
359
|
throw Error();
|
|
360
|
-
} catch (
|
|
361
|
-
U =
|
|
360
|
+
} catch (Nt) {
|
|
361
|
+
U = Nt;
|
|
362
362
|
}
|
|
363
363
|
j();
|
|
364
364
|
}
|
|
365
|
-
} catch (
|
|
366
|
-
if (
|
|
367
|
-
for (var re =
|
|
365
|
+
} catch (Nt) {
|
|
366
|
+
if (Nt && U && typeof Nt.stack == "string") {
|
|
367
|
+
for (var re = Nt.stack.split(`
|
|
368
368
|
`), Je = U.stack.split(`
|
|
369
369
|
`), Ie = re.length - 1, De = Je.length - 1; Ie >= 1 && De >= 0 && re[Ie] !== Je[De]; )
|
|
370
370
|
De--;
|
|
@@ -692,7 +692,7 @@ Check the top-level render call using <` + q + ">.");
|
|
|
692
692
|
}
|
|
693
693
|
function Za(j, R, q, U, de, fe) {
|
|
694
694
|
{
|
|
695
|
-
var ce =
|
|
695
|
+
var ce = qt(j);
|
|
696
696
|
if (!ce) {
|
|
697
697
|
var re = "";
|
|
698
698
|
(j === void 0 || typeof j == "object" && j !== null && Object.keys(j).length === 0) && (re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -732,7 +732,7 @@ Check the top-level render call using <` + q + ">.");
|
|
|
732
732
|
}
|
|
733
733
|
process.env.NODE_ENV === "production" ? hi.exports = mx() : hi.exports = px();
|
|
734
734
|
var r = hi.exports;
|
|
735
|
-
const
|
|
735
|
+
const Ot = {
|
|
736
736
|
CryptoJS: zh,
|
|
737
737
|
d3Array: Ih,
|
|
738
738
|
dayjs: P,
|
|
@@ -820,7 +820,7 @@ function bx({
|
|
|
820
820
|
try {
|
|
821
821
|
return new Function(`return ${e}`)()({
|
|
822
822
|
sql: t
|
|
823
|
-
},
|
|
823
|
+
}, Ot);
|
|
824
824
|
} catch (n) {
|
|
825
825
|
return console.error(n), t;
|
|
826
826
|
}
|
|
@@ -829,7 +829,7 @@ function yx(t, e, n) {
|
|
|
829
829
|
if (!t.trim())
|
|
830
830
|
return e;
|
|
831
831
|
try {
|
|
832
|
-
return new Function(`return ${t}`)()(e,
|
|
832
|
+
return new Function(`return ${t}`)()(e, Ot, n);
|
|
833
833
|
} catch (s) {
|
|
834
834
|
return console.error(s), e;
|
|
835
835
|
}
|
|
@@ -876,7 +876,9 @@ class jx {
|
|
|
876
876
|
getRequest(e, n) {
|
|
877
877
|
return (s, i, a, o) => {
|
|
878
878
|
const l = this.buildHeader(a), c = this.buildAxiosConfig(e, s, i, a, l, n);
|
|
879
|
-
return
|
|
879
|
+
return Mt(c).then((d) => o ? d : d.data).catch((d) => {
|
|
880
|
+
if (Mt.isCancel(d))
|
|
881
|
+
return Promise.reject(d);
|
|
880
882
|
const u = S.get(d, "response.data.detail.message", d.message);
|
|
881
883
|
return Promise.reject(new Error(u));
|
|
882
884
|
});
|
|
@@ -984,7 +986,7 @@ const Pn = new wx();
|
|
|
984
986
|
function rc(t) {
|
|
985
987
|
Pn.baseURL !== t.apiBaseURL && (Pn.baseURL = t.apiBaseURL), t.app_id && (Pn.app_id = t.app_id), t.app_secret && (Pn.app_secret = t.app_secret), t.makeQueryENV && (Pn.makeQueryENV = t.makeQueryENV);
|
|
986
988
|
}
|
|
987
|
-
const kx = new Sx(Pn),
|
|
989
|
+
const kx = new Sx(Pn), Gt = kx, gr = ne(function({
|
|
988
990
|
value: e,
|
|
989
991
|
onChange: n,
|
|
990
992
|
...s
|
|
@@ -1004,7 +1006,7 @@ function Cx(t) {
|
|
|
1004
1006
|
columnKey: t
|
|
1005
1007
|
};
|
|
1006
1008
|
}
|
|
1007
|
-
function
|
|
1009
|
+
function Et(t, e) {
|
|
1008
1010
|
var i;
|
|
1009
1011
|
const {
|
|
1010
1012
|
queryID: n,
|
|
@@ -1070,14 +1072,14 @@ function Dx(t, e, n) {
|
|
|
1070
1072
|
const s = vs(t, e);
|
|
1071
1073
|
return new Function(`return ${n.config.func}`)()({
|
|
1072
1074
|
queryData: s
|
|
1073
|
-
},
|
|
1075
|
+
}, Ot);
|
|
1074
1076
|
} catch (s) {
|
|
1075
1077
|
return console.error(s), s.message;
|
|
1076
1078
|
}
|
|
1077
1079
|
}
|
|
1078
1080
|
function js(t, e, n) {
|
|
1079
1081
|
try {
|
|
1080
|
-
return n.type === "custom" ? Dx(t, e, n) : Ai(
|
|
1082
|
+
return n.type === "custom" ? Dx(t, e, n) : Ai(Et(t, e), n);
|
|
1081
1083
|
} catch (s) {
|
|
1082
1084
|
return console.error(s), null;
|
|
1083
1085
|
}
|
|
@@ -1119,7 +1121,7 @@ function ie(t, {
|
|
|
1119
1121
|
function Lx(t) {
|
|
1120
1122
|
return t === null ? "null" : t === void 0 ? "undefined" : Array.isArray(t) ? `Array(${t.length})` : t.toString();
|
|
1121
1123
|
}
|
|
1122
|
-
function
|
|
1124
|
+
function Ft({
|
|
1123
1125
|
data_field: t,
|
|
1124
1126
|
aggregation: e
|
|
1125
1127
|
}, n) {
|
|
@@ -1378,7 +1380,7 @@ function qx(t, e = {
|
|
|
1378
1380
|
return (n) => /* @__PURE__ */ r.jsx(He, { ...e, children: /* @__PURE__ */ r.jsx(t, { ...n }) });
|
|
1379
1381
|
}
|
|
1380
1382
|
function Nx(t, e) {
|
|
1381
|
-
return new Function(`return ${t}`)()(e,
|
|
1383
|
+
return new Function(`return ${t}`)()(e, Ot);
|
|
1382
1384
|
}
|
|
1383
1385
|
function Bx(t, e, n) {
|
|
1384
1386
|
return Nx(t, {
|
|
@@ -1388,16 +1390,16 @@ function Bx(t, e, n) {
|
|
|
1388
1390
|
}
|
|
1389
1391
|
function Wx(t, e) {
|
|
1390
1392
|
try {
|
|
1391
|
-
return new Function(`return ${t.config.processing.pre}`)()(e,
|
|
1393
|
+
return new Function(`return ${t.config.processing.pre}`)()(e, Ot);
|
|
1392
1394
|
} catch (n) {
|
|
1393
1395
|
return console.error(n), e;
|
|
1394
1396
|
}
|
|
1395
1397
|
}
|
|
1396
1398
|
function Gx(t, e) {
|
|
1397
|
-
return new Function(`return ${t.config.processing.post}`)()(e,
|
|
1399
|
+
return new Function(`return ${t.config.processing.post}`)()(e, Ot);
|
|
1398
1400
|
}
|
|
1399
1401
|
function Qx(t, e, n) {
|
|
1400
|
-
return t ? new Function(`return ${t}`)()(e,
|
|
1402
|
+
return t ? new Function(`return ${t}`)()(e, Ot, n) : e;
|
|
1401
1403
|
}
|
|
1402
1404
|
function ac() {
|
|
1403
1405
|
qh([am, Nh, Bh, Wh, Gh, Qh, Hh, Uh, Yh, Kh, Jh, Xh, Zh, em, tm, nm, rm, sm, im]);
|
|
@@ -1437,7 +1439,7 @@ async function Ux({
|
|
|
1437
1439
|
pre_process: c
|
|
1438
1440
|
}), m = om(h);
|
|
1439
1441
|
Hx(h, m);
|
|
1440
|
-
let p = await
|
|
1442
|
+
let p = await Gt.query(i)({
|
|
1441
1443
|
type: a,
|
|
1442
1444
|
key: o,
|
|
1443
1445
|
query: m,
|
|
@@ -1457,7 +1459,7 @@ async function Yx({
|
|
|
1457
1459
|
additionals: i
|
|
1458
1460
|
}, a) {
|
|
1459
1461
|
try {
|
|
1460
|
-
return await
|
|
1462
|
+
return await Gt.httpDataSourceQuery(a)({
|
|
1461
1463
|
type: t,
|
|
1462
1464
|
key: e,
|
|
1463
1465
|
query: n,
|
|
@@ -1468,14 +1470,14 @@ async function Yx({
|
|
|
1468
1470
|
}
|
|
1469
1471
|
});
|
|
1470
1472
|
} catch (o) {
|
|
1471
|
-
if (
|
|
1473
|
+
if (Mt.isCancel(o))
|
|
1472
1474
|
throw o;
|
|
1473
1475
|
return console.error(o), o;
|
|
1474
1476
|
}
|
|
1475
1477
|
}
|
|
1476
1478
|
async function Pi() {
|
|
1477
1479
|
try {
|
|
1478
|
-
return (await
|
|
1480
|
+
return (await Gt.post()("/datasource/list", {
|
|
1479
1481
|
filter: {},
|
|
1480
1482
|
sort: [{
|
|
1481
1483
|
field: "create_time",
|
|
@@ -1492,7 +1494,7 @@ async function Pi() {
|
|
|
1492
1494
|
}
|
|
1493
1495
|
async function oc() {
|
|
1494
1496
|
try {
|
|
1495
|
-
return (await
|
|
1497
|
+
return (await Gt.post()("/sql_snippet/list", {
|
|
1496
1498
|
filter: {},
|
|
1497
1499
|
sort: [{
|
|
1498
1500
|
field: "id",
|
|
@@ -1691,7 +1693,7 @@ class ag {
|
|
|
1691
1693
|
this.symbol = Symbol(e);
|
|
1692
1694
|
}
|
|
1693
1695
|
}
|
|
1694
|
-
function
|
|
1696
|
+
function Bt(t) {
|
|
1695
1697
|
return new ag(t);
|
|
1696
1698
|
}
|
|
1697
1699
|
class Oi {
|
|
@@ -1731,7 +1733,7 @@ class Oi {
|
|
|
1731
1733
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1732
1734
|
}
|
|
1733
1735
|
}
|
|
1734
|
-
const uc = "13.11.
|
|
1736
|
+
const uc = "13.11.2", og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1735
1737
|
__proto__: null,
|
|
1736
1738
|
version: uc
|
|
1737
1739
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2219,7 +2221,7 @@ const Sg = {
|
|
|
2219
2221
|
position: "relative"
|
|
2220
2222
|
}, children: [
|
|
2221
2223
|
t && /* @__PURE__ */ r.jsx(Xn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
2222
|
-
/* @__PURE__ */ r.jsx(
|
|
2224
|
+
/* @__PURE__ */ r.jsx(Pt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: s, theme: "vs-dark", options: {
|
|
2223
2225
|
minimap: {
|
|
2224
2226
|
enabled: !1
|
|
2225
2227
|
},
|
|
@@ -3264,7 +3266,7 @@ const gf = z(({
|
|
|
3264
3266
|
return /* @__PURE__ */ r.jsxs(b, { children: [
|
|
3265
3267
|
/* @__PURE__ */ r.jsx(pf, { model: c }),
|
|
3266
3268
|
/* @__PURE__ */ r.jsx(of, { instance: n, operationId: l, variables: d, operationManager: e.operationManager }),
|
|
3267
|
-
/* @__PURE__ */ r.jsx(Z, { "aria-label": "delete-interaction", variant: "filled", color: "red", onClick: () => a(t), children: /* @__PURE__ */ r.jsx(
|
|
3269
|
+
/* @__PURE__ */ r.jsx(Z, { "aria-label": "delete-interaction", variant: "filled", color: "red", onClick: () => a(t), children: /* @__PURE__ */ r.jsx($t, { size: 16 }) })
|
|
3268
3270
|
] });
|
|
3269
3271
|
}
|
|
3270
3272
|
return null;
|
|
@@ -3307,7 +3309,7 @@ const gf = z(({
|
|
|
3307
3309
|
data: e
|
|
3308
3310
|
} = cn(), n = t.viz, {
|
|
3309
3311
|
vizManager: s
|
|
3310
|
-
} = Kt(
|
|
3312
|
+
} = Kt(Vt), i = t.json, a = wt(() => s.getOrCreateInstance(i), [s, i]), o = wt(() => new Bi(a, s.resolveComponent(n.type), ks), [a, n.type]);
|
|
3311
3313
|
return B(() => a.instanceData.watchItem(
|
|
3312
3314
|
null,
|
|
3313
3315
|
// avoid too many updates
|
|
@@ -3481,7 +3483,7 @@ function Tf({
|
|
|
3481
3483
|
}
|
|
3482
3484
|
function Df(t, e, n) {
|
|
3483
3485
|
const s = e.reduce((i, a) => {
|
|
3484
|
-
const o =
|
|
3486
|
+
const o = Ft(a, n);
|
|
3485
3487
|
return i[a.name] = ut(a, o), i;
|
|
3486
3488
|
}, {});
|
|
3487
3489
|
return t.map((i) => ({
|
|
@@ -3950,7 +3952,7 @@ function Uf({
|
|
|
3950
3952
|
t: s
|
|
3951
3953
|
} = y(), {
|
|
3952
3954
|
colorManager: i
|
|
3953
|
-
} = Kt(
|
|
3955
|
+
} = Kt(Vt), a = L.useMemo(() => i.getStaticColors().map((c) => ({
|
|
3954
3956
|
label: c.name,
|
|
3955
3957
|
group: c.category,
|
|
3956
3958
|
// todo: select color by reference instead of value, e.g. $category.name
|
|
@@ -5437,7 +5439,7 @@ function Ub({
|
|
|
5437
5439
|
group_by_key: l
|
|
5438
5440
|
} = a;
|
|
5439
5441
|
if (!l || l === e) {
|
|
5440
|
-
const h =
|
|
5442
|
+
const h = Et(n, a.y_axis_data_key).map((m, p) => [p, Number(m)]);
|
|
5441
5443
|
i(a, o, "", h);
|
|
5442
5444
|
return;
|
|
5443
5445
|
}
|
|
@@ -5506,7 +5508,7 @@ function Jb(t, e, n, s, i, a) {
|
|
|
5506
5508
|
});
|
|
5507
5509
|
}
|
|
5508
5510
|
function Ui(t, e, n) {
|
|
5509
|
-
const s =
|
|
5511
|
+
const s = Et(t, e), i = Et(t, n);
|
|
5510
5512
|
return S.zip(s, i);
|
|
5511
5513
|
}
|
|
5512
5514
|
function Xb(t, e, n, s) {
|
|
@@ -5520,7 +5522,7 @@ function Zb({
|
|
|
5520
5522
|
y_axis_data_key: s,
|
|
5521
5523
|
valueTypedXAxis: i
|
|
5522
5524
|
}) {
|
|
5523
|
-
return i ? Xb(t, e, n, s) :
|
|
5525
|
+
return i ? Xb(t, e, n, s) : Et(e, s);
|
|
5524
5526
|
}
|
|
5525
5527
|
function ey({
|
|
5526
5528
|
dataTemplate: t,
|
|
@@ -5709,7 +5711,7 @@ function oy(t, e, n, s) {
|
|
|
5709
5711
|
</tr>
|
|
5710
5712
|
`;
|
|
5711
5713
|
}), c = t.tooltip.metrics.map((h) => {
|
|
5712
|
-
const m =
|
|
5714
|
+
const m = Et(e, h.data_key), p = S.uniq(o.map(({
|
|
5713
5715
|
dataIndex: f
|
|
5714
5716
|
}) => m[f]));
|
|
5715
5717
|
return `<tr>
|
|
@@ -5754,7 +5756,7 @@ function ly(t) {
|
|
|
5754
5756
|
function Ac(t, e) {
|
|
5755
5757
|
const n = {};
|
|
5756
5758
|
return e.map((s) => {
|
|
5757
|
-
const i =
|
|
5759
|
+
const i = Ft(s, t);
|
|
5758
5760
|
n[s.name] = ut(s, i);
|
|
5759
5761
|
}), n;
|
|
5760
5762
|
}
|
|
@@ -5850,7 +5852,7 @@ const my = {
|
|
|
5850
5852
|
}]
|
|
5851
5853
|
};
|
|
5852
5854
|
function py(t, e, n) {
|
|
5853
|
-
const s = Ac(e, n), i = ly(t), a = S.uniq(
|
|
5855
|
+
const s = Ac(e, n), i = ly(t), a = S.uniq(Et(e, t.x_axis_data_key)), o = sy(t, a, e, i, n, s), l = Ub(t, e), c = {
|
|
5854
5856
|
xAxis: cy(t, a),
|
|
5855
5857
|
yAxis: hy(t, i, o),
|
|
5856
5858
|
series: [...o, ...l],
|
|
@@ -6336,7 +6338,7 @@ const wy = ({
|
|
|
6336
6338
|
const n = (s) => {
|
|
6337
6339
|
s && e(s);
|
|
6338
6340
|
};
|
|
6339
|
-
return /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(
|
|
6341
|
+
return /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(Pt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: n, theme: "vs-dark", options: {
|
|
6340
6342
|
minimap: {
|
|
6341
6343
|
enabled: !1
|
|
6342
6344
|
}
|
|
@@ -8781,7 +8783,7 @@ function Jc(t, e) {
|
|
|
8781
8783
|
ti(e[s]) ? s in t ? n[s] = Jc(t[s], e[s]) : Object.assign(n, { [s]: e[s] }) : Object.assign(n, { [s]: e[s] });
|
|
8782
8784
|
}), n;
|
|
8783
8785
|
}
|
|
8784
|
-
class
|
|
8786
|
+
class Rt {
|
|
8785
8787
|
constructor(e = {}) {
|
|
8786
8788
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
|
8787
8789
|
name: this.name,
|
|
@@ -8797,7 +8799,7 @@ class Et {
|
|
|
8797
8799
|
})) || {};
|
|
8798
8800
|
}
|
|
8799
8801
|
static create(e = {}) {
|
|
8800
|
-
return new
|
|
8802
|
+
return new Rt(e);
|
|
8801
8803
|
}
|
|
8802
8804
|
configure(e = {}) {
|
|
8803
8805
|
const n = this.extend();
|
|
@@ -8807,7 +8809,7 @@ class Et {
|
|
|
8807
8809
|
})), n;
|
|
8808
8810
|
}
|
|
8809
8811
|
extend(e = {}) {
|
|
8810
|
-
const n = new
|
|
8812
|
+
const n = new Rt(e);
|
|
8811
8813
|
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Fn(tn(n, "addOptions", {
|
|
8812
8814
|
name: n.name
|
|
8813
8815
|
})), n.storage = Fn(tn(n, "addStorage", {
|
|
@@ -8836,7 +8838,7 @@ function Qy(t, e, n) {
|
|
|
8836
8838
|
function Hy(t) {
|
|
8837
8839
|
return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
|
|
8838
8840
|
}
|
|
8839
|
-
|
|
8841
|
+
Rt.create({
|
|
8840
8842
|
name: "clipboardTextSerializer",
|
|
8841
8843
|
addProseMirrorPlugins() {
|
|
8842
8844
|
return [
|
|
@@ -9533,7 +9535,7 @@ var sv = /* @__PURE__ */ Object.freeze({
|
|
|
9533
9535
|
wrapIn: nv,
|
|
9534
9536
|
wrapInList: rv
|
|
9535
9537
|
});
|
|
9536
|
-
|
|
9538
|
+
Rt.create({
|
|
9537
9539
|
name: "commands",
|
|
9538
9540
|
addCommands() {
|
|
9539
9541
|
return {
|
|
@@ -9541,7 +9543,7 @@ Et.create({
|
|
|
9541
9543
|
};
|
|
9542
9544
|
}
|
|
9543
9545
|
});
|
|
9544
|
-
|
|
9546
|
+
Rt.create({
|
|
9545
9547
|
name: "editable",
|
|
9546
9548
|
addProseMirrorPlugins() {
|
|
9547
9549
|
return [
|
|
@@ -9554,7 +9556,7 @@ Et.create({
|
|
|
9554
9556
|
];
|
|
9555
9557
|
}
|
|
9556
9558
|
});
|
|
9557
|
-
|
|
9559
|
+
Rt.create({
|
|
9558
9560
|
name: "focusEvents",
|
|
9559
9561
|
addProseMirrorPlugins() {
|
|
9560
9562
|
const { editor: t } = this;
|
|
@@ -9579,7 +9581,7 @@ Et.create({
|
|
|
9579
9581
|
];
|
|
9580
9582
|
}
|
|
9581
9583
|
});
|
|
9582
|
-
|
|
9584
|
+
Rt.create({
|
|
9583
9585
|
name: "keymap",
|
|
9584
9586
|
addKeyboardShortcuts() {
|
|
9585
9587
|
const t = () => this.editor.commands.first(({ commands: o }) => [
|
|
@@ -9655,7 +9657,7 @@ Et.create({
|
|
|
9655
9657
|
];
|
|
9656
9658
|
}
|
|
9657
9659
|
});
|
|
9658
|
-
|
|
9660
|
+
Rt.create({
|
|
9659
9661
|
name: "tabindex",
|
|
9660
9662
|
addProseMirrorPlugins() {
|
|
9661
9663
|
return [
|
|
@@ -9668,7 +9670,7 @@ Et.create({
|
|
|
9668
9670
|
];
|
|
9669
9671
|
}
|
|
9670
9672
|
});
|
|
9671
|
-
const nd =
|
|
9673
|
+
const nd = Rt.create({
|
|
9672
9674
|
name: "fontSize",
|
|
9673
9675
|
addOptions() {
|
|
9674
9676
|
return {
|
|
@@ -9788,7 +9790,7 @@ const cv = ({
|
|
|
9788
9790
|
return /* @__PURE__ */ r.jsx(M, { sx: {
|
|
9789
9791
|
position: "relative",
|
|
9790
9792
|
flexGrow: 1
|
|
9791
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
9793
|
+
}, children: /* @__PURE__ */ r.jsx(Pt, { className: "function-editor", height: "100%", defaultLanguage: "javascript", value: t, onChange: n, theme: "vs-dark", options: {
|
|
9792
9794
|
lineNumbers: "off",
|
|
9793
9795
|
folding: !1,
|
|
9794
9796
|
lineDecorationsWidth: 20,
|
|
@@ -11846,7 +11848,7 @@ const Sj = ({
|
|
|
11846
11848
|
const n = (s) => {
|
|
11847
11849
|
s && e(s);
|
|
11848
11850
|
};
|
|
11849
|
-
return /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(
|
|
11851
|
+
return /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(Pt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: n, theme: "vs-dark", options: {
|
|
11850
11852
|
minimap: {
|
|
11851
11853
|
enabled: !1
|
|
11852
11854
|
}
|
|
@@ -12248,7 +12250,7 @@ function Oj(t, e, n, s, i) {
|
|
|
12248
12250
|
if (!t.x_axis.data_key || !t.y_axis.data_key || !t.heat_block.data_key)
|
|
12249
12251
|
return {};
|
|
12250
12252
|
const a = n.reduce((V, K) => {
|
|
12251
|
-
const ae =
|
|
12253
|
+
const ae = Ft(K, e);
|
|
12252
12254
|
return V[K.name] = ut(K, ae), V;
|
|
12253
12255
|
}, {}), o = Dj(t.visualMap, a), {
|
|
12254
12256
|
min: l,
|
|
@@ -15944,7 +15946,7 @@ const MS = {
|
|
|
15944
15946
|
};
|
|
15945
15947
|
function LS(t, e, n) {
|
|
15946
15948
|
const s = n.reduce((c, d) => {
|
|
15947
|
-
const u =
|
|
15949
|
+
const u = Ft(d, e);
|
|
15948
15950
|
return c[d.name] = ut(d, u), c;
|
|
15949
15951
|
}, {}), i = t.y_axes.reduce((c, {
|
|
15950
15952
|
label_formatter: d
|
|
@@ -15961,7 +15963,7 @@ function LS(t, e, n) {
|
|
|
15961
15963
|
default: ({
|
|
15962
15964
|
value: c
|
|
15963
15965
|
}) => c
|
|
15964
|
-
}), a = S.uniq(
|
|
15966
|
+
}), a = S.uniq(Et(e, t.x_axis.data_key)), o = kS(t, e, n, s), l = {
|
|
15965
15967
|
xAxis: TS(t, a),
|
|
15966
15968
|
yAxis: DS(t, i),
|
|
15967
15969
|
series: o,
|
|
@@ -16265,7 +16267,7 @@ const VS = ({
|
|
|
16265
16267
|
const n = (s) => {
|
|
16266
16268
|
s && e(s);
|
|
16267
16269
|
};
|
|
16268
|
-
return /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(
|
|
16270
|
+
return /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(Pt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: n, theme: "vs-dark", options: {
|
|
16269
16271
|
minimap: {
|
|
16270
16272
|
enabled: !1
|
|
16271
16273
|
}
|
|
@@ -17103,7 +17105,7 @@ const jk = {
|
|
|
17103
17105
|
return c;
|
|
17104
17106
|
}
|
|
17105
17107
|
}, [i.payloadForSQL, c]), f = C(() => fr(p, l, t.data), [p, l, t.data, t]), v = C(() => l.reduce(($, V) => {
|
|
17106
|
-
const K =
|
|
17108
|
+
const K = Ft(V, o);
|
|
17107
17109
|
return $[V.name] = ut(V, K), $;
|
|
17108
17110
|
}, {}), [o, l]), T = Ne(() => {
|
|
17109
17111
|
s.forEach(($) => {
|
|
@@ -17337,7 +17339,7 @@ const Pk = {
|
|
|
17337
17339
|
};
|
|
17338
17340
|
function Ok(t, e, n) {
|
|
17339
17341
|
n.reduce((a, o) => {
|
|
17340
|
-
const l =
|
|
17342
|
+
const l = Ft(o, e);
|
|
17341
17343
|
return a[o.name] = ut(o, l), a;
|
|
17342
17344
|
}, {});
|
|
17343
17345
|
const i = {
|
|
@@ -17845,7 +17847,7 @@ function c1(t) {
|
|
|
17845
17847
|
const i = new Function(`return ${s}`)()({
|
|
17846
17848
|
value: e,
|
|
17847
17849
|
row_data: n
|
|
17848
|
-
},
|
|
17850
|
+
}, Ot);
|
|
17849
17851
|
return /* @__PURE__ */ r.jsx(Jn, { ...t, children: i });
|
|
17850
17852
|
}
|
|
17851
17853
|
function d1(t) {
|
|
@@ -18041,7 +18043,7 @@ class f1 {
|
|
|
18041
18043
|
const b1 = (t) => {
|
|
18042
18044
|
const e = mt(t), n = ht(e.triggerManager, ma.id), {
|
|
18043
18045
|
colorManager: s
|
|
18044
|
-
} = Kt(
|
|
18046
|
+
} = Kt(Vt);
|
|
18045
18047
|
return Ne((i) => new f1(t.getColIndex, i, n, e, s), [n, e, t.getColIndex]);
|
|
18046
18048
|
};
|
|
18047
18049
|
function Fo({
|
|
@@ -18068,8 +18070,8 @@ function Fo({
|
|
|
18068
18070
|
if (!Array.isArray(t) || t.length === 0)
|
|
18069
18071
|
return [];
|
|
18070
18072
|
let _e = Object.keys(t[0]);
|
|
18071
|
-
const
|
|
18072
|
-
return
|
|
18073
|
+
const qt = new Set(c == null ? void 0 : c.split(/\r?\n|\r|\n/g).filter((Re) => !!Re));
|
|
18074
|
+
return qt.size > 0 && (_e = _e.filter((Re) => !qt.has(Re))), _e.map((Re) => ({
|
|
18073
18075
|
id: Re,
|
|
18074
18076
|
label: Re,
|
|
18075
18077
|
value_field: Re,
|
|
@@ -18125,9 +18127,9 @@ function Fo({
|
|
|
18125
18127
|
}, ...u, striped: s.striped, children: [
|
|
18126
18128
|
/* @__PURE__ */ r.jsx("thead", { className: h.thead, style: {
|
|
18127
18129
|
top: je
|
|
18128
|
-
}, children: $.getHeaderGroups().map((_e) => /* @__PURE__ */ r.jsx("tr", { children: _e.headers.map((
|
|
18129
|
-
width:
|
|
18130
|
-
}, children: /* @__PURE__ */ r.jsx(Zk, { header:
|
|
18130
|
+
}, children: $.getHeaderGroups().map((_e) => /* @__PURE__ */ r.jsx("tr", { children: _e.headers.map((qt) => /* @__PURE__ */ r.jsx("th", { style: {
|
|
18131
|
+
width: qt.getSize()
|
|
18132
|
+
}, children: /* @__PURE__ */ r.jsx(Zk, { header: qt, cx: m }) }, qt.id)) }, _e.id)) }),
|
|
18131
18133
|
/* @__PURE__ */ r.jsx(u1, { tableContainerRef: K, rows: V })
|
|
18132
18134
|
] })
|
|
18133
18135
|
] });
|
|
@@ -18216,7 +18218,7 @@ const k1 = ne((t, e) => {
|
|
|
18216
18218
|
t: n
|
|
18217
18219
|
} = y(), {
|
|
18218
18220
|
colorManager: s
|
|
18219
|
-
} = Kt(
|
|
18221
|
+
} = Kt(Vt), [i, a] = Q(kd(t.value)), [o, l] = Q(w1(s, t.value)), c = so(o), [d, u] = Q(S1(s, t.value)), h = so(d), m = (v) => {
|
|
18220
18222
|
var T, E, $;
|
|
18221
18223
|
a(v || "none"), v === "static" ? (T = t.onChange) == null || T.call(t, c.current) : v === "none" || !v ? (E = t.onChange) == null || E.call(t, "none") : ($ = t.onChange) == null || $.call(t, h.current);
|
|
18222
18224
|
}, p = (v) => {
|
|
@@ -18270,7 +18272,7 @@ const k1 = ne((t, e) => {
|
|
|
18270
18272
|
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(rd, {}) }),
|
|
18271
18273
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
18272
18274
|
position: "relative"
|
|
18273
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
18275
|
+
}, children: /* @__PURE__ */ r.jsx(Pt, { height: "500px", defaultLanguage: "javascript", value: l, onChange: (m) => c(m ?? ""), theme: "vs-dark", options: {
|
|
18274
18276
|
minimap: {
|
|
18275
18277
|
enabled: !1
|
|
18276
18278
|
}
|
|
@@ -18332,7 +18334,7 @@ const k1 = ne((t, e) => {
|
|
|
18332
18334
|
field: c
|
|
18333
18335
|
}) => /* @__PURE__ */ r.jsx(k1, { ...c }) }),
|
|
18334
18336
|
/* @__PURE__ */ r.jsx(A, { mb: 4, mt: 12, variant: "dashed" }),
|
|
18335
|
-
/* @__PURE__ */ r.jsx(I, { leftIcon: /* @__PURE__ */ r.jsx(
|
|
18337
|
+
/* @__PURE__ */ r.jsx(I, { leftIcon: /* @__PURE__ */ r.jsx($t, { size: 16 }), color: "red", variant: "light", onClick: () => s(e), children: a("viz.table.column.delete") })
|
|
18336
18338
|
] });
|
|
18337
18339
|
}, T1 = ({
|
|
18338
18340
|
control: t,
|
|
@@ -18740,7 +18742,7 @@ const _i = {
|
|
|
18740
18742
|
font_size: l,
|
|
18741
18743
|
font_weight: c
|
|
18742
18744
|
} = n, d = C(() => s.reduce((h, m) => {
|
|
18743
|
-
const p =
|
|
18745
|
+
const p = Ft(m, i);
|
|
18744
18746
|
return h[m.name] = ut(m, p), h;
|
|
18745
18747
|
}, {}), [s, i]), u = C(() => new Function(`return ${a}`)()({
|
|
18746
18748
|
data: i,
|
|
@@ -18791,7 +18793,7 @@ const zd = L.forwardRef(B1), W1 = ({
|
|
|
18791
18793
|
};
|
|
18792
18794
|
return /* @__PURE__ */ r.jsx(M, { sx: {
|
|
18793
18795
|
position: "relative"
|
|
18794
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
18796
|
+
}, children: /* @__PURE__ */ r.jsx(Pt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: n, theme: "vs-dark", options: {
|
|
18795
18797
|
minimap: {
|
|
18796
18798
|
enabled: !1
|
|
18797
18799
|
}
|
|
@@ -18965,7 +18967,7 @@ async function Z1(t, e, n, s = {}) {
|
|
|
18965
18967
|
params: s.params,
|
|
18966
18968
|
headers: i
|
|
18967
18969
|
};
|
|
18968
|
-
return a.data = s.string ? JSON.stringify(n) : n,
|
|
18970
|
+
return a.data = s.string ? JSON.stringify(n) : n, Mt(a).then((o) => o.data).catch((o) => Promise.reject(o));
|
|
18969
18971
|
}
|
|
18970
18972
|
const eC = ({
|
|
18971
18973
|
conf: t,
|
|
@@ -19317,7 +19319,7 @@ function _C(t, e) {
|
|
|
19317
19319
|
}
|
|
19318
19320
|
function vC(t, e, n) {
|
|
19319
19321
|
const s = n.reduce((h, m) => {
|
|
19320
|
-
const p =
|
|
19322
|
+
const p = Ft(m, e);
|
|
19321
19323
|
return h[m.name] = ut(m, p), h;
|
|
19322
19324
|
}, {}), i = uC(t), {
|
|
19323
19325
|
dateSpan: a,
|
|
@@ -19881,7 +19883,7 @@ function HC(t, e, n, s) {
|
|
|
19881
19883
|
});
|
|
19882
19884
|
}
|
|
19883
19885
|
function As(t, e, n) {
|
|
19884
|
-
const s =
|
|
19886
|
+
const s = Et(t, e), i = Et(t, n);
|
|
19885
19887
|
return S.zip(i, s);
|
|
19886
19888
|
}
|
|
19887
19889
|
function UC(t, e, n, s) {
|
|
@@ -20073,7 +20075,7 @@ function nz(t) {
|
|
|
20073
20075
|
function rz(t, e) {
|
|
20074
20076
|
const n = {};
|
|
20075
20077
|
return e.map((s) => {
|
|
20076
|
-
const i =
|
|
20078
|
+
const i = Ft(s, t);
|
|
20077
20079
|
n[s.name] = ut(s, i);
|
|
20078
20080
|
}), n;
|
|
20079
20081
|
}
|
|
@@ -22497,7 +22499,7 @@ function FI(t, e, n) {
|
|
|
22497
22499
|
if (!t.x_axis.data_key || !t.y_axis.data_key || !t.heat_block.data_key)
|
|
22498
22500
|
return {};
|
|
22499
22501
|
const s = n.reduce((l, c) => {
|
|
22500
|
-
const d =
|
|
22502
|
+
const d = Ft(c, e);
|
|
22501
22503
|
return l[c.name] = ut(c, d), l;
|
|
22502
22504
|
}, {}), i = TI(t), a = DI(t);
|
|
22503
22505
|
return {
|
|
@@ -22660,16 +22662,16 @@ const QI = {
|
|
|
22660
22662
|
color: [...HI, ...UI]
|
|
22661
22663
|
}
|
|
22662
22664
|
}), cr = new cg(), Me = {
|
|
22663
|
-
pluginManager:
|
|
22664
|
-
vizManager:
|
|
22665
|
-
colorManager:
|
|
22665
|
+
pluginManager: Bt("pluginManager"),
|
|
22666
|
+
vizManager: Bt("vizManager"),
|
|
22667
|
+
colorManager: Bt("colorManager"),
|
|
22666
22668
|
instanceScope: {
|
|
22667
|
-
panelModel:
|
|
22668
|
-
vizInstance:
|
|
22669
|
-
interactionManager:
|
|
22670
|
-
migrator:
|
|
22671
|
-
operationManager:
|
|
22672
|
-
triggerManager:
|
|
22669
|
+
panelModel: Bt("panelModel"),
|
|
22670
|
+
vizInstance: Bt("vizInstance"),
|
|
22671
|
+
interactionManager: Bt("interactionManager"),
|
|
22672
|
+
migrator: Bt("migrator"),
|
|
22673
|
+
operationManager: Bt("operationManager"),
|
|
22674
|
+
triggerManager: Bt("triggerManager")
|
|
22673
22675
|
}
|
|
22674
22676
|
}, va = () => {
|
|
22675
22677
|
try {
|
|
@@ -22682,7 +22684,7 @@ const QI = {
|
|
|
22682
22684
|
vizManager: t,
|
|
22683
22685
|
colorManager: e
|
|
22684
22686
|
};
|
|
22685
|
-
},
|
|
22687
|
+
}, Vt = sl(va());
|
|
22686
22688
|
try {
|
|
22687
22689
|
cr.install(Ld());
|
|
22688
22690
|
} catch {
|
|
@@ -24028,10 +24030,10 @@ const vT = x.model("PanelStyleBorderMeta", {
|
|
|
24028
24030
|
if (!t.queryIDSet.has(e))
|
|
24029
24031
|
return;
|
|
24030
24032
|
const n = new Set(t.queryIDSet);
|
|
24031
|
-
n.delete(e), t.queryIDs =
|
|
24033
|
+
n.delete(e), t.queryIDs = Lt(Array.from(n));
|
|
24032
24034
|
},
|
|
24033
24035
|
setQueryIDs(e) {
|
|
24034
|
-
t.queryIDs =
|
|
24036
|
+
t.queryIDs = Lt(e);
|
|
24035
24037
|
},
|
|
24036
24038
|
addVariable(e) {
|
|
24037
24039
|
t.variables.push(e);
|
|
@@ -24516,7 +24518,7 @@ const LT = x.model("FilterDateRangeConfigMeta", {
|
|
|
24516
24518
|
}
|
|
24517
24519
|
})).actions((t) => ({
|
|
24518
24520
|
setDefaultValue(e) {
|
|
24519
|
-
t.default_value =
|
|
24521
|
+
t.default_value = Lt(e);
|
|
24520
24522
|
},
|
|
24521
24523
|
setMinWidth(e) {
|
|
24522
24524
|
t.min_width = e;
|
|
@@ -24738,7 +24740,7 @@ const Qd = x.compose("FilterTreeSelectConfigMeta", x.model({
|
|
|
24738
24740
|
}
|
|
24739
24741
|
})).actions((t) => ({
|
|
24740
24742
|
setDefaultValue(e) {
|
|
24741
|
-
t.default_value =
|
|
24743
|
+
t.default_value = Lt(e);
|
|
24742
24744
|
},
|
|
24743
24745
|
setMinWidth(e) {
|
|
24744
24746
|
t.min_width = e;
|
|
@@ -25039,7 +25041,7 @@ const Ud = x.model("ViewDivisionConfig", {
|
|
|
25039
25041
|
t.grow = e;
|
|
25040
25042
|
},
|
|
25041
25043
|
setTabs(e) {
|
|
25042
|
-
t.tabs.length = 0, t.tabs =
|
|
25044
|
+
t.tabs.length = 0, t.tabs = Lt(e);
|
|
25043
25045
|
},
|
|
25044
25046
|
addTab() {
|
|
25045
25047
|
const e = Cn(), n = {
|
|
@@ -25500,7 +25502,7 @@ function iu(t) {
|
|
|
25500
25502
|
function XT(t, e) {
|
|
25501
25503
|
const n = t.default_value_func;
|
|
25502
25504
|
try {
|
|
25503
|
-
return new Function(`return ${n}`)()(t,
|
|
25505
|
+
return new Function(`return ${n}`)()(t, Ot, e);
|
|
25504
25506
|
} catch (s) {
|
|
25505
25507
|
return console.error(s), iu(t);
|
|
25506
25508
|
}
|
|
@@ -25803,7 +25805,7 @@ const ZT = zT.views((t) => ({
|
|
|
25803
25805
|
additionals: t.additionalQueryInfo
|
|
25804
25806
|
}, t.controller.signal)), t.state = "idle", t.error = null;
|
|
25805
25807
|
} catch (n) {
|
|
25806
|
-
if (!
|
|
25808
|
+
if (!Mt.isCancel(n)) {
|
|
25807
25809
|
t.data = [];
|
|
25808
25810
|
const s = se(n, "message", "unkown error");
|
|
25809
25811
|
t.error = se(n, "response.data.detail.message", s), t.state = "error";
|
|
@@ -25832,7 +25834,7 @@ const ZT = zT.views((t) => ({
|
|
|
25832
25834
|
}, t.controller.signal)), l = Gx(t.datasource, o), c = Qx(i, l, t.contentModel.dashboardState);
|
|
25833
25835
|
t.data = c, t.state = "idle", t.error = null;
|
|
25834
25836
|
} catch (n) {
|
|
25835
|
-
if (console.error(n), !
|
|
25837
|
+
if (console.error(n), !Mt.isCancel(n)) {
|
|
25836
25838
|
t.data = [];
|
|
25837
25839
|
const s = se(n, "message", "unkown error");
|
|
25838
25840
|
t.error = se(n, "response.data.detail.message", s), t.state = "error";
|
|
@@ -25847,7 +25849,7 @@ const ZT = zT.views((t) => ({
|
|
|
25847
25849
|
id: o.id,
|
|
25848
25850
|
name: o.name,
|
|
25849
25851
|
data: S.cloneDeep(o.data)
|
|
25850
|
-
})), s = t.contentModel.dashboardState, i = t.pre_process, a = new Function(`return ${i}`)()(n, s,
|
|
25852
|
+
})), s = t.contentModel.dashboardState, i = t.pre_process, a = new Function(`return ${i}`)()(n, s, Ot);
|
|
25851
25853
|
t.data = a, t.state = "idle", t.error = null;
|
|
25852
25854
|
} catch (e) {
|
|
25853
25855
|
t.data = [], t.error = e.message, t.state = "error";
|
|
@@ -26175,7 +26177,7 @@ const sD = (t) => new rD(t), iD = z(({
|
|
|
26175
26177
|
}) => {
|
|
26176
26178
|
const {
|
|
26177
26179
|
t: n
|
|
26178
|
-
} = y(), s = me(), i = le(), a =
|
|
26180
|
+
} = y(), s = me(), i = le(), a = At(), {
|
|
26179
26181
|
panel: o,
|
|
26180
26182
|
downloadPanelScreenshot: l
|
|
26181
26183
|
} = bt(), {
|
|
@@ -26221,7 +26223,7 @@ const sD = (t) => new rD(t), iD = z(({
|
|
|
26221
26223
|
/* @__PURE__ */ r.jsx(A, { label: n("common.actions.edit"), labelPosition: "center" }),
|
|
26222
26224
|
/* @__PURE__ */ r.jsx(Y.Item, { onClick: m, icon: /* @__PURE__ */ r.jsx(kl, { size: 14 }), children: n("common.titles.settings") }),
|
|
26223
26225
|
/* @__PURE__ */ r.jsx(Y.Item, { onClick: h, icon: /* @__PURE__ */ r.jsx(xm, { size: 14 }), children: n("common.actions.duplicate") }),
|
|
26224
|
-
/* @__PURE__ */ r.jsx(Y.Item, { color: "red", onClick: p, icon: /* @__PURE__ */ r.jsx(
|
|
26226
|
+
/* @__PURE__ */ r.jsx(Y.Item, { color: "red", onClick: p, icon: /* @__PURE__ */ r.jsx($t, { size: 14 }), children: n("common.actions.delete") })
|
|
26225
26227
|
] })
|
|
26226
26228
|
] }) }) });
|
|
26227
26229
|
});
|
|
@@ -26403,7 +26405,7 @@ function uD(t) {
|
|
|
26403
26405
|
function hD(t, e) {
|
|
26404
26406
|
const {
|
|
26405
26407
|
vizManager: n
|
|
26406
|
-
} = Kt(
|
|
26408
|
+
} = Kt(Vt), {
|
|
26407
26409
|
panel: {
|
|
26408
26410
|
viz: s,
|
|
26409
26411
|
title: i,
|
|
@@ -26906,7 +26908,7 @@ const PD = z(({
|
|
|
26906
26908
|
}) => {
|
|
26907
26909
|
const {
|
|
26908
26910
|
t: e
|
|
26909
|
-
} = y(), n =
|
|
26911
|
+
} = y(), n = At(), s = le(), i = C(() => s.views.options.filter((c) => c.type === W.Division), [t.id, s.views.options]), a = t.config, o = (c) => n.openConfirmModal({
|
|
26910
26912
|
title: `${e("view.component.tabs.tab.delete")}?`,
|
|
26911
26913
|
labels: {
|
|
26912
26914
|
confirm: e("common.actions.confirm"),
|
|
@@ -27078,7 +27080,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27078
27080
|
}
|
|
27079
27081
|
})).actions((t) => ({
|
|
27080
27082
|
replace(e) {
|
|
27081
|
-
t.current =
|
|
27083
|
+
t.current = Lt(e);
|
|
27082
27084
|
},
|
|
27083
27085
|
append(e) {
|
|
27084
27086
|
t.current.push(e);
|
|
@@ -27147,7 +27149,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27147
27149
|
}
|
|
27148
27150
|
})).actions((t) => ({
|
|
27149
27151
|
replace(e) {
|
|
27150
|
-
t.current =
|
|
27152
|
+
t.current = Lt(e);
|
|
27151
27153
|
},
|
|
27152
27154
|
append(e) {
|
|
27153
27155
|
t.current.push(e);
|
|
@@ -27174,7 +27176,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27174
27176
|
n.has(i.id) && ui(i);
|
|
27175
27177
|
});
|
|
27176
27178
|
const s = [...t.current];
|
|
27177
|
-
S.remove(s, (i) => n.has(i.id)), t.current =
|
|
27179
|
+
S.remove(s, (i) => n.has(i.id)), t.current = Lt(s);
|
|
27178
27180
|
}
|
|
27179
27181
|
})), YD = mu.views((t) => ({
|
|
27180
27182
|
get sortedList() {
|
|
@@ -27190,7 +27192,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27190
27192
|
}
|
|
27191
27193
|
})).actions((t) => ({
|
|
27192
27194
|
replace(e) {
|
|
27193
|
-
t.current =
|
|
27195
|
+
t.current = Lt(e);
|
|
27194
27196
|
},
|
|
27195
27197
|
append(e) {
|
|
27196
27198
|
t.current.push(e);
|
|
@@ -27214,7 +27216,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27214
27216
|
n.has(i.key) && ui(i);
|
|
27215
27217
|
});
|
|
27216
27218
|
const s = [...t.current];
|
|
27217
|
-
S.remove(s, (i) => n.has(i.key)), t.current =
|
|
27219
|
+
S.remove(s, (i) => n.has(i.key)), t.current = Lt(s);
|
|
27218
27220
|
},
|
|
27219
27221
|
replaceByIndex(e, n) {
|
|
27220
27222
|
t.current.splice(e, 1, n);
|
|
@@ -27355,7 +27357,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27355
27357
|
var n;
|
|
27356
27358
|
(n = t.controllers.tables) == null || n.abort(), t.controllers.tables = new AbortController(), t.tables.state = "loading";
|
|
27357
27359
|
try {
|
|
27358
|
-
const s = yield* gn(
|
|
27360
|
+
const s = yield* gn(Gt.structure(t.controllers.tables.signal)({
|
|
27359
27361
|
query_type: "TABLES",
|
|
27360
27362
|
type: t.sqlDataSourceType,
|
|
27361
27363
|
key: t.key,
|
|
@@ -27368,7 +27370,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27368
27370
|
}));
|
|
27369
27371
|
t.tables.data = S.groupBy(s, "table_schema"), t.tables.state = "idle", t.tables.error = null, t.initKeywords();
|
|
27370
27372
|
} catch (s) {
|
|
27371
|
-
if (!
|
|
27373
|
+
if (!Mt.isCancel(s)) {
|
|
27372
27374
|
t.tables.data = {};
|
|
27373
27375
|
const i = S.get(s, "message", "unkown error");
|
|
27374
27376
|
t.tables.error = S.get(s, "response.data.detail.message", i), t.tables.state = "error";
|
|
@@ -27384,7 +27386,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27384
27386
|
var n;
|
|
27385
27387
|
(n = t.controllers.columns) == null || n.abort(), t.controllers.columns = new AbortController(), t.columns.state = "loading";
|
|
27386
27388
|
try {
|
|
27387
|
-
t.columns.data = yield* gn(
|
|
27389
|
+
t.columns.data = yield* gn(Gt.structure(t.controllers.columns.signal)({
|
|
27388
27390
|
query_type: "COLUMNS",
|
|
27389
27391
|
type: t.sqlDataSourceType,
|
|
27390
27392
|
key: t.key,
|
|
@@ -27396,7 +27398,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27396
27398
|
}
|
|
27397
27399
|
})), t.columns.state = "idle", t.columns.error = null;
|
|
27398
27400
|
} catch (s) {
|
|
27399
|
-
if (
|
|
27401
|
+
if (Mt.isCancel(s))
|
|
27400
27402
|
t.columns.state = "idle", t.columns.error = null;
|
|
27401
27403
|
else {
|
|
27402
27404
|
t.columns.data = [];
|
|
@@ -27409,7 +27411,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27409
27411
|
var n;
|
|
27410
27412
|
(n = t.controllers.indexes) == null || n.abort(), t.controllers.indexes = new AbortController(), t.indexes.state = "loading";
|
|
27411
27413
|
try {
|
|
27412
|
-
t.indexes.data = yield* gn(
|
|
27414
|
+
t.indexes.data = yield* gn(Gt.structure(t.controllers.indexes.signal)({
|
|
27413
27415
|
query_type: "INDEXES",
|
|
27414
27416
|
type: t.sqlDataSourceType,
|
|
27415
27417
|
key: t.key,
|
|
@@ -27421,7 +27423,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27421
27423
|
}
|
|
27422
27424
|
})), t.indexes.state = "idle", t.indexes.error = null;
|
|
27423
27425
|
} catch (s) {
|
|
27424
|
-
if (
|
|
27426
|
+
if (Mt.isCancel(s))
|
|
27425
27427
|
t.indexes.state = "idle", t.indexes.error = null;
|
|
27426
27428
|
else {
|
|
27427
27429
|
t.indexes.data = [];
|
|
@@ -27436,7 +27438,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27436
27438
|
const n = t.tableData;
|
|
27437
27439
|
n.state = "loading";
|
|
27438
27440
|
try {
|
|
27439
|
-
n.data = yield* gn(
|
|
27441
|
+
n.data = yield* gn(Gt.structure(t.controllers.tableData.signal)({
|
|
27440
27442
|
query_type: "DATA",
|
|
27441
27443
|
type: t.sqlDataSourceType,
|
|
27442
27444
|
key: t.key,
|
|
@@ -27451,7 +27453,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27451
27453
|
}));
|
|
27452
27454
|
const [{
|
|
27453
27455
|
total: i
|
|
27454
|
-
}] = yield* gn(
|
|
27456
|
+
}] = yield* gn(Gt.structure(t.controllers.tableData.signal)({
|
|
27455
27457
|
query_type: "COUNT",
|
|
27456
27458
|
type: t.sqlDataSourceType,
|
|
27457
27459
|
key: t.key,
|
|
@@ -27464,7 +27466,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
|
|
|
27464
27466
|
}));
|
|
27465
27467
|
n.total = Number(i), n.state = "idle", n.error = null;
|
|
27466
27468
|
} catch (i) {
|
|
27467
|
-
if (
|
|
27469
|
+
if (Mt.isCancel(i))
|
|
27468
27470
|
n.state = "idle", n.error = null;
|
|
27469
27471
|
else {
|
|
27470
27472
|
n.data = [];
|
|
@@ -30341,7 +30343,7 @@ const xM = z(({
|
|
|
30341
30343
|
}) => {
|
|
30342
30344
|
const {
|
|
30343
30345
|
t: e
|
|
30344
|
-
} = y(), n =
|
|
30346
|
+
} = y(), n = At(), s = le(), i = () => {
|
|
30345
30347
|
n.openConfirmModal({
|
|
30346
30348
|
title: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
30347
30349
|
/* @__PURE__ */ r.jsx(Dl, { size: 18, color: "red" }),
|
|
@@ -31345,7 +31347,7 @@ const iL = z(() => {
|
|
|
31345
31347
|
}
|
|
31346
31348
|
e.editor.open(["_FILTERS_", n.filters.firstID]);
|
|
31347
31349
|
}, [a, o] = Q(!1), l = () => o(!0), c = () => o(!1);
|
|
31348
|
-
return /* @__PURE__ */ r.jsxs(
|
|
31350
|
+
return /* @__PURE__ */ r.jsxs(Wt, { p: 0, width: {
|
|
31349
31351
|
base: 200,
|
|
31350
31352
|
xs: 200,
|
|
31351
31353
|
sm: 200,
|
|
@@ -31353,7 +31355,7 @@ const iL = z(() => {
|
|
|
31353
31355
|
lg: 240,
|
|
31354
31356
|
xl: 260
|
|
31355
31357
|
}, zIndex: 299, children: [
|
|
31356
|
-
/* @__PURE__ */ r.jsxs(
|
|
31358
|
+
/* @__PURE__ */ r.jsxs(Wt.Section, { children: [
|
|
31357
31359
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, spacing: 0, sx: {
|
|
31358
31360
|
...rL,
|
|
31359
31361
|
button: {
|
|
@@ -31374,16 +31376,16 @@ const iL = z(() => {
|
|
|
31374
31376
|
] }),
|
|
31375
31377
|
/* @__PURE__ */ r.jsx(nL, { opened: a, close: c })
|
|
31376
31378
|
] }),
|
|
31377
|
-
/* @__PURE__ */ r.jsx(
|
|
31379
|
+
/* @__PURE__ */ r.jsx(Wt.Section, { py: 5, sx: {
|
|
31378
31380
|
borderBottom: "1px solid #eee"
|
|
31379
31381
|
}, children: /* @__PURE__ */ r.jsx(w, { align: "center", sx: {
|
|
31380
31382
|
userSelect: "none",
|
|
31381
31383
|
cursor: "default"
|
|
31382
31384
|
}, children: t("view.labels") }) }),
|
|
31383
|
-
/* @__PURE__ */ r.jsx(
|
|
31385
|
+
/* @__PURE__ */ r.jsx(Wt.Section, { grow: !0, sx: {
|
|
31384
31386
|
overflow: "auto"
|
|
31385
31387
|
}, children: /* @__PURE__ */ r.jsx(iL, {}) }),
|
|
31386
|
-
/* @__PURE__ */ r.jsx(
|
|
31388
|
+
/* @__PURE__ */ r.jsx(Wt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
|
|
31387
31389
|
borderTop: "1px solid #eee"
|
|
31388
31390
|
}, children: /* @__PURE__ */ r.jsx(I, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(kr, { size: 20 }), onClick: () => e.editor.open([]), children: t("common.titles.settings") }) }) })
|
|
31389
31391
|
] });
|
|
@@ -31576,7 +31578,7 @@ const iL = z(() => {
|
|
|
31576
31578
|
position: "absolute",
|
|
31577
31579
|
top: 28,
|
|
31578
31580
|
right: 5
|
|
31579
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
31581
|
+
}, children: /* @__PURE__ */ r.jsx($t, { size: 16 }) })
|
|
31580
31582
|
] }, c)),
|
|
31581
31583
|
/* @__PURE__ */ r.jsx(I, { mt: 10, size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(fs, { size: 20 }), onClick: i, sx: {
|
|
31582
31584
|
width: "50%"
|
|
@@ -31648,7 +31650,7 @@ const iL = z(() => {
|
|
|
31648
31650
|
position: "absolute",
|
|
31649
31651
|
top: 28,
|
|
31650
31652
|
right: 5
|
|
31651
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
31653
|
+
}, children: /* @__PURE__ */ r.jsx($t, { size: 16 }) })
|
|
31652
31654
|
] }, d)),
|
|
31653
31655
|
/* @__PURE__ */ r.jsx(I, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(fs, { size: 20 }), onClick: a, sx: {
|
|
31654
31656
|
width: "50%"
|
|
@@ -31802,7 +31804,7 @@ const iL = z(() => {
|
|
|
31802
31804
|
}) => {
|
|
31803
31805
|
const {
|
|
31804
31806
|
t: e
|
|
31805
|
-
} = y(), n =
|
|
31807
|
+
} = y(), n = At(), s = me(), i = le();
|
|
31806
31808
|
if (t === "")
|
|
31807
31809
|
return null;
|
|
31808
31810
|
const a = i.filters.findByID(t);
|
|
@@ -31835,7 +31837,7 @@ const iL = z(() => {
|
|
|
31835
31837
|
maxWidth: "1100px",
|
|
31836
31838
|
height: "100vh"
|
|
31837
31839
|
}, spacing: "sm", pb: 30, children: [
|
|
31838
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
31840
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx($t, { size: 16 }), onClick: l, children: e("filter.delete") }) }),
|
|
31839
31841
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
31840
31842
|
flexGrow: 1,
|
|
31841
31843
|
maxHeight: "calc(100% - 52px)",
|
|
@@ -32413,7 +32415,7 @@ function qL({
|
|
|
32413
32415
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
32414
32416
|
i.map((m, p) => /* @__PURE__ */ r.jsx(Gn, { value: m, onChange: (f) => {
|
|
32415
32417
|
a((v) => (v.splice(p, 1, f), [...v]));
|
|
32416
|
-
}, swatches: h, rightSection: /* @__PURE__ */ r.jsx(Z, { onClick: () => l(p), color: "red", children: /* @__PURE__ */ r.jsx(
|
|
32418
|
+
}, swatches: h, rightSection: /* @__PURE__ */ r.jsx(Z, { onClick: () => l(p), color: "red", children: /* @__PURE__ */ r.jsx($t, { size: 14 }) }), sx: {
|
|
32417
32419
|
width: "45%"
|
|
32418
32420
|
} })),
|
|
32419
32421
|
/* @__PURE__ */ r.jsx(Z, { onClick: o, color: "blue", variant: "outline", children: /* @__PURE__ */ r.jsx(fs, { size: 20 }) })
|
|
@@ -32443,7 +32445,7 @@ function BL({
|
|
|
32443
32445
|
a.map((h, m) => /* @__PURE__ */ r.jsx(D, { type: s, value: h, onChange: (p) => {
|
|
32444
32446
|
const f = p.currentTarget.value;
|
|
32445
32447
|
o((v) => (v.splice(m, 1, f), [...v]));
|
|
32446
|
-
}, rightSection: /* @__PURE__ */ r.jsx(Z, { onClick: () => c(m), color: "red", children: /* @__PURE__ */ r.jsx(
|
|
32448
|
+
}, rightSection: /* @__PURE__ */ r.jsx(Z, { onClick: () => c(m), color: "red", children: /* @__PURE__ */ r.jsx($t, { size: 14 }) }), sx: {
|
|
32447
32449
|
width: "45%"
|
|
32448
32450
|
} })),
|
|
32449
32451
|
/* @__PURE__ */ r.jsx(Z, { onClick: l, color: "blue", variant: "outline", children: /* @__PURE__ */ r.jsx(fs, { size: 20 }) })
|
|
@@ -32605,7 +32607,7 @@ function JL() {
|
|
|
32605
32607
|
t
|
|
32606
32608
|
} = y(), {
|
|
32607
32609
|
vizManager: e
|
|
32608
|
-
} = Kt(
|
|
32610
|
+
} = Kt(Vt);
|
|
32609
32611
|
return C(() => {
|
|
32610
32612
|
const n = e.availableVizList.map((s) => ({
|
|
32611
32613
|
value: s.name,
|
|
@@ -32649,7 +32651,7 @@ function eE() {
|
|
|
32649
32651
|
}
|
|
32650
32652
|
} = bt(), {
|
|
32651
32653
|
vizManager: c
|
|
32652
|
-
} = Kt(
|
|
32654
|
+
} = Kt(Vt), d = {
|
|
32653
32655
|
name: i,
|
|
32654
32656
|
title: s,
|
|
32655
32657
|
description: o,
|
|
@@ -32671,7 +32673,7 @@ const tE = z(() => {
|
|
|
32671
32673
|
}
|
|
32672
32674
|
} = bt(), {
|
|
32673
32675
|
vizManager: n
|
|
32674
|
-
} = Kt(
|
|
32676
|
+
} = Kt(Vt), s = L.useCallback((d) => {
|
|
32675
32677
|
if (d === e.type)
|
|
32676
32678
|
return;
|
|
32677
32679
|
const u = ZL(n, d);
|
|
@@ -32786,7 +32788,7 @@ const iE = z(({
|
|
|
32786
32788
|
}) => {
|
|
32787
32789
|
const {
|
|
32788
32790
|
t: e
|
|
32789
|
-
} = y(), n =
|
|
32791
|
+
} = y(), n = At(), s = me(), i = le(), [a, o] = Q("Data"), l = t.queries, d = sE(t.viz.type) && t.dataLoading, u = d || t.queryErrors.length > 0 || t.queryStateMessages !== "" || l.length === 0, h = s.editor.path[1];
|
|
32790
32792
|
B(() => {
|
|
32791
32793
|
o((f) => u && f === "Visualization" ? "Data" : f);
|
|
32792
32794
|
}, [t.id, u]);
|
|
@@ -32862,7 +32864,7 @@ const iE = z(({
|
|
|
32862
32864
|
}), oE = z(() => {
|
|
32863
32865
|
const {
|
|
32864
32866
|
t
|
|
32865
|
-
} = y(), [e, n] = Q([]), s =
|
|
32867
|
+
} = y(), [e, n] = Q([]), s = At(), i = me(), a = (m) => {
|
|
32866
32868
|
i.editor.setPath(["_QUERIES_", m]);
|
|
32867
32869
|
}, o = () => {
|
|
32868
32870
|
s.openConfirmModal({
|
|
@@ -32971,7 +32973,7 @@ const iE = z(({
|
|
|
32971
32973
|
t: e
|
|
32972
32974
|
} = y(), {
|
|
32973
32975
|
queryModel: n
|
|
32974
|
-
} = t, s = me(), i = le(), o = i.findQueryUsage(n.id).length > 0, l =
|
|
32976
|
+
} = t, s = me(), i = le(), o = i.findQueryUsage(n.id).length > 0, l = At(), c = () => {
|
|
32975
32977
|
l.openConfirmModal({
|
|
32976
32978
|
title: `${e("query.delete")}?`,
|
|
32977
32979
|
labels: {
|
|
@@ -33663,7 +33665,7 @@ WHERE
|
|
|
33663
33665
|
const a = (l) => {
|
|
33664
33666
|
e == null || e(l ?? "");
|
|
33665
33667
|
}, o = !e;
|
|
33666
|
-
return /* @__PURE__ */ r.jsx(
|
|
33668
|
+
return /* @__PURE__ */ r.jsx(Pt, { className: "minimal-monaco-editor", height: n, defaultLanguage: s, value: t, onChange: o ? void 0 : a, theme: i, options: {
|
|
33667
33669
|
lineNumbers: "off",
|
|
33668
33670
|
folding: !1,
|
|
33669
33671
|
lineDecorationsWidth: 20,
|
|
@@ -33737,7 +33739,7 @@ WHERE
|
|
|
33737
33739
|
value: t,
|
|
33738
33740
|
height: e = "200px",
|
|
33739
33741
|
defaultLanguage: n = "sql"
|
|
33740
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
33742
|
+
}) => /* @__PURE__ */ r.jsx(Pt, { className: "preview-sql-in-monaco-editor", height: e, defaultLanguage: n, value: t, onChange: void 0, theme: "vs-light", options: {
|
|
33741
33743
|
lineNumbers: "on",
|
|
33742
33744
|
folding: !0,
|
|
33743
33745
|
lineDecorationsWidth: 20,
|
|
@@ -33877,7 +33879,7 @@ WHERE
|
|
|
33877
33879
|
B(() => {
|
|
33878
33880
|
l(t.key), m(t.value);
|
|
33879
33881
|
}, [t]);
|
|
33880
|
-
const f = h !== t.value, v =
|
|
33882
|
+
const f = h !== t.value, v = At(), T = () => {
|
|
33881
33883
|
v.openConfirmModal({
|
|
33882
33884
|
title: `${s("sql_snippet.delete")}?`,
|
|
33883
33885
|
labels: {
|
|
@@ -33914,7 +33916,7 @@ WHERE
|
|
|
33914
33916
|
error: u
|
|
33915
33917
|
}
|
|
33916
33918
|
),
|
|
33917
|
-
/* @__PURE__ */ r.jsx(I, { leftIcon: /* @__PURE__ */ r.jsx(
|
|
33919
|
+
/* @__PURE__ */ r.jsx(I, { leftIcon: /* @__PURE__ */ r.jsx($t, { size: 16 }), color: "red", variant: "light", onClick: T, children: s("sql_snippet.delete") })
|
|
33918
33920
|
] }),
|
|
33919
33921
|
/* @__PURE__ */ r.jsxs(_, { value: i, onTabChange: a, sx: {
|
|
33920
33922
|
flexGrow: 1
|
|
@@ -33962,7 +33964,7 @@ WHERE
|
|
|
33962
33964
|
}), HE = z(() => {
|
|
33963
33965
|
const {
|
|
33964
33966
|
t
|
|
33965
|
-
} = y(), [e, n] = Q([]), s =
|
|
33967
|
+
} = y(), [e, n] = Q([]), s = At(), i = me(), a = (m) => {
|
|
33966
33968
|
i.editor.setPath(["_SQL_SNIPPETS_", m]);
|
|
33967
33969
|
}, o = () => {
|
|
33968
33970
|
s.openConfirmModal({
|
|
@@ -34100,7 +34102,7 @@ WHERE
|
|
|
34100
34102
|
position: "relative"
|
|
34101
34103
|
}, children: [
|
|
34102
34104
|
t && /* @__PURE__ */ r.jsx(Xn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
34103
|
-
/* @__PURE__ */ r.jsx(
|
|
34105
|
+
/* @__PURE__ */ r.jsx(Pt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: s, theme: "vs-dark", options: {
|
|
34104
34106
|
minimap: {
|
|
34105
34107
|
enabled: !1
|
|
34106
34108
|
},
|
|
@@ -34215,7 +34217,7 @@ WHERE
|
|
|
34215
34217
|
}) => {
|
|
34216
34218
|
const {
|
|
34217
34219
|
t: e
|
|
34218
|
-
} = y(), n =
|
|
34220
|
+
} = y(), n = At(), s = me(), i = le();
|
|
34219
34221
|
if (t === "")
|
|
34220
34222
|
return null;
|
|
34221
34223
|
const a = i.views.findByID(t);
|
|
@@ -34245,7 +34247,7 @@ WHERE
|
|
|
34245
34247
|
maxWidth: "600px",
|
|
34246
34248
|
height: "100%"
|
|
34247
34249
|
}, spacing: "sm", children: [
|
|
34248
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
34250
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx($t, { size: 16 }), onClick: l, children: e("view.delete") }) }),
|
|
34249
34251
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
34250
34252
|
flexGrow: 1,
|
|
34251
34253
|
maxHeight: "calc(100% - 52px)",
|
|
@@ -34441,7 +34443,7 @@ const hR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34441
34443
|
const {
|
|
34442
34444
|
t
|
|
34443
34445
|
} = y(), e = me();
|
|
34444
|
-
return /* @__PURE__ */ r.jsxs(
|
|
34446
|
+
return /* @__PURE__ */ r.jsxs(Wt, { p: 0, width: {
|
|
34445
34447
|
base: 220,
|
|
34446
34448
|
xs: 220,
|
|
34447
34449
|
sm: 240,
|
|
@@ -34454,16 +34456,16 @@ const hR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34454
34456
|
wordWrap: "break-word"
|
|
34455
34457
|
}
|
|
34456
34458
|
}, children: [
|
|
34457
|
-
/* @__PURE__ */ r.jsx(
|
|
34459
|
+
/* @__PURE__ */ r.jsx(Wt.Section, { pt: 9, pb: 8, sx: {
|
|
34458
34460
|
borderBottom: "1px solid #eee"
|
|
34459
34461
|
}, children: /* @__PURE__ */ r.jsx(w, { align: "center", sx: {
|
|
34460
34462
|
userSelect: "none",
|
|
34461
34463
|
cursor: "default"
|
|
34462
34464
|
}, children: t("common.titles.settings") }) }),
|
|
34463
|
-
/* @__PURE__ */ r.jsx(
|
|
34465
|
+
/* @__PURE__ */ r.jsx(Wt.Section, { grow: !0, sx: {
|
|
34464
34466
|
overflow: "auto"
|
|
34465
34467
|
}, children: /* @__PURE__ */ r.jsx(SR, {}) }),
|
|
34466
|
-
/* @__PURE__ */ r.jsx(
|
|
34468
|
+
/* @__PURE__ */ r.jsx(Wt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
|
|
34467
34469
|
borderTop: "1px solid #eee"
|
|
34468
34470
|
}, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Ml, { size: 18 }), onClick: () => e.editor.close(), children: t("common.actions.close") }) }) })
|
|
34469
34471
|
] });
|
|
@@ -34589,7 +34591,7 @@ const DR = {
|
|
|
34589
34591
|
searchButtonProps: a.searchButtonProps
|
|
34590
34592
|
}, children: /* @__PURE__ */ r.jsx(mc, { value: v, children: /* @__PURE__ */ r.jsx(bc, { value: v.content, children: /* @__PURE__ */ r.jsx(Vi.Provider, { value: {
|
|
34591
34593
|
inEditMode: !0
|
|
34592
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
34594
|
+
}, children: /* @__PURE__ */ r.jsx(Vt.Provider, { value: E, children: /* @__PURE__ */ r.jsxs($s, { configure: $, children: [
|
|
34593
34595
|
/* @__PURE__ */ r.jsx(ul, { padding: 0, header: /* @__PURE__ */ r.jsx(EM, { onExit: u, saveDashboardChanges: T, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(aL, {}), styles: DR, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
|
|
34594
34596
|
position: "relative"
|
|
34595
34597
|
}, children: v.content.views.visibleViews.map((V) => /* @__PURE__ */ r.jsx(ND, { view: V }, V.id)) }) }),
|
|
@@ -34823,7 +34825,7 @@ const AR = ({
|
|
|
34823
34825
|
setFullScreenPanelID: o
|
|
34824
34826
|
}, children: /* @__PURE__ */ r.jsx(Vi.Provider, { value: {
|
|
34825
34827
|
inEditMode: !1
|
|
34826
|
-
}, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(
|
|
34828
|
+
}, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Vt.Provider, { value: p, children: /* @__PURE__ */ r.jsx($s, { configure: f, children: m.content.views.visibleViews.map((v) => /* @__PURE__ */ r.jsx(za, { view: v }, v.id)) }) }) }) }) }) }) }) }) }) }) });
|
|
34827
34829
|
}, R2 = z(AR);
|
|
34828
34830
|
P.extend(Ip);
|
|
34829
34831
|
P.extend(Tp);
|
|
@@ -34866,7 +34868,7 @@ const A2 = () => Promise.resolve().then(() => og).then(({
|
|
|
34866
34868
|
version: t
|
|
34867
34869
|
}) => (console.log(`[@devtable/dashboard] version: ${t}`), t));
|
|
34868
34870
|
export {
|
|
34869
|
-
|
|
34871
|
+
Gt as APIClient,
|
|
34870
34872
|
hn as CURRENT_SCHEMA_VERSION,
|
|
34871
34873
|
ku as ContentModel,
|
|
34872
34874
|
bc as ContentModelContextProvider,
|