@devtable/dashboard 11.0.0 → 11.0.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 +347 -338
- package/dist/dashboard.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var rh = Object.defineProperty;
|
|
2
2
|
var sh = (e, t, n) => t in e ? rh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var N = (e, t, n) => (sh(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import L, { forwardRef as ue, useState as
|
|
4
|
+
import L, { forwardRef as ue, useState as q, useEffect as O, useCallback as Be, useMemo as T, createElement as ts, useContext as Ht, useRef as ns, createContext as tl, memo as ih } from "react";
|
|
5
5
|
import { TextInput as D, Text as j, Box as z, Button as C, HoverCard as Te, Group as b, Select as A, Stack as w, Divider as I, NumberInput as U, Switch as Ve, Table as We, ActionIcon as W, MultiSelect as Pn, Paper as oh, Code as ea, Modal as fe, Tabs as f, LoadingOverlay as _n, Alert as rs, ColorSwatch as ti, Overlay as Et, Checkbox as K, Collapse as xr, Center as Sn, useMantineTheme as nl, CheckIcon as ah, MANTINE_SIZES as lh, SimpleGrid as nn, Tooltip as ge, NativeSelect as rl, SegmentedControl as ch, Anchor as ni, Textarea as dh, Mark as uh, ColorInput as ji, createStyles as mr, Popover as $n, Slider as hh, Flex as Ut, Badge as yn, CloseButton as sl, Menu as te, Affix as ph, Header as xh, List as it, FileInput as mh, ThemeIcon as Ps, UnstyledButton as fh, Navbar as Nt, JsonInput as il, Pagination as ol, Drawer as gh, Accordion as Ir, Radio as ta, Skeleton as na, NavLink as ri, AppShell as al } from "@mantine/core";
|
|
6
6
|
import { useModals as Tt, ModalsProvider as ll } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as $e, useCreation as kt, useAsyncEffect as fr, useRequest as jn, useWhyDidYouUpdate as cl, useLatest as ra, usePrevious as bh } from "ahooks";
|
|
@@ -16,7 +16,7 @@ import E from "dayjs";
|
|
|
16
16
|
import _, { cloneDeepWith as ul, unset as _h, get as ne, isObject as hl, set as vi, omit as vn, isFunction as Sh, orderBy as Ch, last as pl, defaults as Ce, minBy as kh, maxBy as Th, cloneDeep as Ne, values as xl, template as wi, throttle as Dh, isEqual as me, defaultsDeep as je, keyBy as Ih, isEmpty as ml, isNumber as zh, findLastIndex as Mh, isString as fl, range as Lh, pick as gl } from "lodash";
|
|
17
17
|
import * as Fr from "mathjs";
|
|
18
18
|
import si from "numbro";
|
|
19
|
-
import
|
|
19
|
+
import Bt from "axios";
|
|
20
20
|
import { useClipboard as Ah, randomId as wn, useDisclosure as Cn, useElementSize as lr, useInputState as bl } from "@mantine/hooks";
|
|
21
21
|
import { interpolate as kn } from "popmotion";
|
|
22
22
|
import * as oe from "echarts/core";
|
|
@@ -28,7 +28,7 @@ import "echarts-gl";
|
|
|
28
28
|
import { GridComponent as lt, VisualMapComponent as br, LegendComponent as ct, TooltipComponent as dt, DataZoomComponent as Ft, MarkLineComponent as is, MarkAreaComponent as _i, CalendarComponent as Fh } from "echarts/components";
|
|
29
29
|
import { CanvasRenderer as Xe } from "echarts/renderers";
|
|
30
30
|
import { useForm as ve, Controller as g, useFieldArray as we, useWatch as Oh } from "react-hook-form";
|
|
31
|
-
import { DeviceFloppy as pe, Trash as ae, AlertCircle as $h, Recycle as mt, InfoCircle as an, Plus as Ae, Refresh as Si, Download as Ci, ArrowsMaximize as yl, Settings as jl, Copy as Ph, ArrowLeft as Vh, ArrowsMove as Nh, ChevronDownRight as
|
|
31
|
+
import { DeviceFloppy as pe, Trash as ae, AlertCircle as $h, Recycle as mt, InfoCircle as an, Plus as Ae, Refresh as Si, Download as Ci, ArrowsMaximize as yl, Settings as jl, Copy as Ph, ArrowLeft as Vh, ArrowsMove as Nh, ChevronDownRight as qh, ChevronsUpRight as Bh, PlaylistAdd as os, ArrowBarToRight as Wh } from "tabler-icons-react";
|
|
32
32
|
import { BoxplotChart as Gh, CustomChart as Qh, BarChart as Gn, LineChart as Qn, ScatterChart as as, FunnelChart as Hh, HeatmapChart as ls, PieChart as Uh, RadarChart as Kh, SunburstChart as Yh } from "echarts/charts";
|
|
33
33
|
import { IconDeviceFloppy as Yt, IconChevronUp as Xh, IconChevronDown as Jh, IconTextSize as ki, IconInfoCircle as Tn, IconPlayerSkipBack as vl, IconRecycle as cs, IconMathFunction as wl, IconPlus as ft, IconBorderAll as Zh, IconTrash as rn, IconArrowDown as ep, IconArrowUp as tp, IconCalendar as np, IconMinus as rp, IconChevronsUp as sp, IconChevronsDown as ip, IconCode as sn, IconCamera as ds, IconShare3 as op, IconDownload as _l, IconArrowsLeftRight as ap, IconVariable as Sl, IconCodeDots as lp, IconFilter as Cl, IconCopy as cp, IconDatabase as us, IconBoxMultiple as kl, IconMenu2 as dp, IconCaretDown as up, IconAlertTriangle as Ti, IconArrowLeft as hp, IconPlaylistAdd as ia, IconPointFilled as Di, IconFileImport as oa, IconCircleDashed as pp, IconCircleDot as xp, IconCircleOff as mp, IconAdjustments as fp, IconLink as gp, IconSettings as hs, IconArrowCurveRight as ii, IconLine as bp, IconX as Tl, IconEye as Dl, IconTable as yp, IconColumns as jp, IconVectorTriangle as vp, IconAlertCircle as aa, IconVariablePlus as wp, IconHierarchy as _p, IconDiscountCheckFilled as Sp } from "@tabler/icons-react";
|
|
34
34
|
import { showNotification as Vn, notifications as Cp } from "@mantine/notifications";
|
|
@@ -47,11 +47,11 @@ import $l from "@tiptap/extension-table-cell";
|
|
|
47
47
|
import Pl from "@tiptap/extension-table-header";
|
|
48
48
|
import Vl from "@tiptap/extension-table-row";
|
|
49
49
|
import Nl from "@tiptap/extension-underline";
|
|
50
|
-
import { useEditor as
|
|
51
|
-
import
|
|
50
|
+
import { useEditor as ql } from "@tiptap/react";
|
|
51
|
+
import Bl from "@tiptap/starter-kit";
|
|
52
52
|
import "prosemirror-keymap";
|
|
53
|
-
import { createParagraphNear as Tp, deleteSelection as Dp, exitCode as Ip, joinUp as zp, joinDown as Mp, joinBackward as Lp, joinForward as Ap, lift as Rp, liftEmptyBlock as Ep, newlineInCode as Fp, selectNodeBackward as Op, selectNodeForward as $p, selectParentNode as Pp, selectTextblockEnd as Vp, selectTextblockStart as Np, setBlockType as la, wrapIn as
|
|
54
|
-
import { liftListItem as
|
|
53
|
+
import { createParagraphNear as Tp, deleteSelection as Dp, exitCode as Ip, joinUp as zp, joinDown as Mp, joinBackward as Lp, joinForward as Ap, lift as Rp, liftEmptyBlock as Ep, newlineInCode as Fp, selectNodeBackward as Op, selectNodeForward as $p, selectParentNode as Pp, selectTextblockEnd as Vp, selectTextblockStart as Np, setBlockType as la, wrapIn as qp } from "prosemirror-commands";
|
|
54
|
+
import { liftListItem as Bp, sinkListItem as Wp, wrapInList as Gp } from "prosemirror-schema-list";
|
|
55
55
|
import { Prism as on } from "@mantine/prism";
|
|
56
56
|
import { flexRender as Gr, createColumnHelper as Wl, useReactTable as Gl, getCoreRowModel as Ql, getSortedRowModel as Qp } from "@tanstack/react-table";
|
|
57
57
|
import { useVirtual as Hp } from "react-virtual";
|
|
@@ -100,7 +100,7 @@ import Ex from "dayjs/plugin/weekday";
|
|
|
100
100
|
import Fx from "dayjs/plugin/weekOfYear";
|
|
101
101
|
import Ox from "dayjs/plugin/weekYear";
|
|
102
102
|
import { useNavigate as $x } from "react-router-dom";
|
|
103
|
-
import Px, { Position as St, Handle as da, MiniMap as Vx, Controls as Nx, Background as
|
|
103
|
+
import Px, { Position as St, Handle as da, MiniMap as Vx, Controls as Nx, Background as qx } from "reactflow";
|
|
104
104
|
var ai = { exports: {} }, er = {};
|
|
105
105
|
/**
|
|
106
106
|
* @license React
|
|
@@ -112,7 +112,7 @@ var ai = { exports: {} }, er = {};
|
|
|
112
112
|
* LICENSE file in the root directory of this source tree.
|
|
113
113
|
*/
|
|
114
114
|
var ua;
|
|
115
|
-
function
|
|
115
|
+
function Bx() {
|
|
116
116
|
if (ua)
|
|
117
117
|
return er;
|
|
118
118
|
ua = 1;
|
|
@@ -419,13 +419,13 @@ function Wx() {
|
|
|
419
419
|
}
|
|
420
420
|
return "";
|
|
421
421
|
}
|
|
422
|
-
var Tr = Object.prototype.hasOwnProperty, No = {},
|
|
422
|
+
var Tr = Object.prototype.hasOwnProperty, No = {}, qo = F.ReactDebugCurrentFrame;
|
|
423
423
|
function Dr(v) {
|
|
424
424
|
if (v) {
|
|
425
425
|
var R = v._owner, P = kr(v.type, v._source, R ? R.type : null);
|
|
426
|
-
|
|
426
|
+
qo.setExtraStackFrame(P);
|
|
427
427
|
} else
|
|
428
|
-
|
|
428
|
+
qo.setExtraStackFrame(null);
|
|
429
429
|
}
|
|
430
430
|
function Ou(v, R, P, H, se) {
|
|
431
431
|
{
|
|
@@ -458,17 +458,17 @@ function Wx() {
|
|
|
458
458
|
}
|
|
459
459
|
function Vu(v) {
|
|
460
460
|
try {
|
|
461
|
-
return
|
|
461
|
+
return Bo(v), !1;
|
|
462
462
|
} catch {
|
|
463
463
|
return !0;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Bo(v) {
|
|
467
467
|
return "" + v;
|
|
468
468
|
}
|
|
469
469
|
function Wo(v) {
|
|
470
470
|
if (Vu(v))
|
|
471
|
-
return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pu(v)),
|
|
471
|
+
return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pu(v)), Bo(v);
|
|
472
472
|
}
|
|
473
473
|
var Zn = F.ReactCurrentOwner, Nu = {
|
|
474
474
|
key: !0,
|
|
@@ -477,7 +477,7 @@ function Wx() {
|
|
|
477
477
|
__source: !0
|
|
478
478
|
}, Go, Qo, Es;
|
|
479
479
|
Es = {};
|
|
480
|
-
function
|
|
480
|
+
function qu(v) {
|
|
481
481
|
if (Tr.call(v, "ref")) {
|
|
482
482
|
var R = Object.getOwnPropertyDescriptor(v, "ref").get;
|
|
483
483
|
if (R && R.isReactWarning)
|
|
@@ -485,7 +485,7 @@ function Wx() {
|
|
|
485
485
|
}
|
|
486
486
|
return v.ref !== void 0;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Bu(v) {
|
|
489
489
|
if (Tr.call(v, "key")) {
|
|
490
490
|
var R = Object.getOwnPropertyDescriptor(v, "key").get;
|
|
491
491
|
if (R && R.isReactWarning)
|
|
@@ -553,7 +553,7 @@ function Wx() {
|
|
|
553
553
|
function Uu(v, R, P, H, se) {
|
|
554
554
|
{
|
|
555
555
|
var xe, ee = {}, J = null, He = null;
|
|
556
|
-
P !== void 0 && (Wo(P), J = "" + P),
|
|
556
|
+
P !== void 0 && (Wo(P), J = "" + P), Bu(R) && (Wo(R.key), J = "" + R.key), qu(R) && (He = R.ref, Wu(R, se));
|
|
557
557
|
for (xe in R)
|
|
558
558
|
Tr.call(R, xe) && !Nu.hasOwnProperty(xe) && (ee[xe] = R[xe]);
|
|
559
559
|
if (v && v.defaultProps) {
|
|
@@ -726,7 +726,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
726
726
|
tr.Fragment = s, tr.jsx = th, tr.jsxs = nh;
|
|
727
727
|
}()), tr;
|
|
728
728
|
}
|
|
729
|
-
process.env.NODE_ENV === "production" ? ai.exports =
|
|
729
|
+
process.env.NODE_ENV === "production" ? ai.exports = Bx() : ai.exports = Wx();
|
|
730
730
|
var r = ai.exports;
|
|
731
731
|
const Xt = {
|
|
732
732
|
CryptoJS: vh,
|
|
@@ -872,7 +872,7 @@ class Jx {
|
|
|
872
872
|
getRequest(t, n) {
|
|
873
873
|
return (s, i, o, a) => {
|
|
874
874
|
const l = this.buildHeader(o), c = this.buildAxiosConfig(t, s, i, o, l, n);
|
|
875
|
-
return
|
|
875
|
+
return Bt(c).then((d) => a ? d : d.data).catch((d) => Promise.reject(d));
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
878
|
get(t) {
|
|
@@ -977,7 +977,7 @@ const An = new Zx();
|
|
|
977
977
|
function Xl(e) {
|
|
978
978
|
An.baseURL !== e.apiBaseURL && (An.baseURL = e.apiBaseURL), e.app_id && (An.app_id = e.app_id), e.app_secret && (An.app_secret = e.app_secret), e.makeQueryENV && (An.makeQueryENV = e.makeQueryENV);
|
|
979
979
|
}
|
|
980
|
-
const tm = new em(An),
|
|
980
|
+
const tm = new em(An), qt = tm, dr = ue(function({
|
|
981
981
|
value: t,
|
|
982
982
|
onChange: n,
|
|
983
983
|
...s
|
|
@@ -1087,7 +1087,7 @@ class am {
|
|
|
1087
1087
|
return this.mapper(t);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1090
|
+
const qe = {
|
|
1091
1091
|
mantissa: 0,
|
|
1092
1092
|
output: "number",
|
|
1093
1093
|
trimMantissa: !1,
|
|
@@ -1179,7 +1179,7 @@ function pm(e) {
|
|
|
1179
1179
|
return o !== n.length - 1 && a.push(/* @__PURE__ */ r.jsx("br", {}, `br-${o}`)), a;
|
|
1180
1180
|
}).flat().filter((i) => i !== void 0);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function qs(e) {
|
|
1183
1183
|
return pm(e);
|
|
1184
1184
|
}
|
|
1185
1185
|
function ur(e, t, n) {
|
|
@@ -1187,14 +1187,14 @@ function ur(e, t, n) {
|
|
|
1187
1187
|
return e.split("$").map((o, a) => {
|
|
1188
1188
|
const l = i.exec(o);
|
|
1189
1189
|
if (!l)
|
|
1190
|
-
return
|
|
1190
|
+
return qs(o);
|
|
1191
1191
|
const c = s[l[1]];
|
|
1192
1192
|
if (!c)
|
|
1193
|
-
return
|
|
1193
|
+
return qs(o);
|
|
1194
1194
|
const d = l[2] ?? "";
|
|
1195
1195
|
return /* @__PURE__ */ r.jsxs(L.Fragment, { children: [
|
|
1196
1196
|
c,
|
|
1197
|
-
|
|
1197
|
+
qs(d)
|
|
1198
1198
|
] }, `${o}-${a}`);
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
@@ -1427,7 +1427,7 @@ async function Sm({
|
|
|
1427
1427
|
pre_process: c
|
|
1428
1428
|
}), p = Rh(h);
|
|
1429
1429
|
_m(h, p);
|
|
1430
|
-
let x = await
|
|
1430
|
+
let x = await qt.query(i)({
|
|
1431
1431
|
type: o,
|
|
1432
1432
|
key: a,
|
|
1433
1433
|
query: p,
|
|
@@ -1447,7 +1447,7 @@ async function Cm({
|
|
|
1447
1447
|
additionals: i
|
|
1448
1448
|
}, o) {
|
|
1449
1449
|
try {
|
|
1450
|
-
return await
|
|
1450
|
+
return await qt.httpDataSourceQuery(o)({
|
|
1451
1451
|
type: e,
|
|
1452
1452
|
key: t,
|
|
1453
1453
|
query: n,
|
|
@@ -1458,14 +1458,14 @@ async function Cm({
|
|
|
1458
1458
|
}
|
|
1459
1459
|
});
|
|
1460
1460
|
} catch (a) {
|
|
1461
|
-
if (
|
|
1461
|
+
if (Bt.isCancel(a))
|
|
1462
1462
|
throw a;
|
|
1463
1463
|
return console.error(a), a;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
async function Ri() {
|
|
1467
1467
|
try {
|
|
1468
|
-
return (await
|
|
1468
|
+
return (await qt.post()("/datasource/list", {
|
|
1469
1469
|
filter: {},
|
|
1470
1470
|
sort: [{
|
|
1471
1471
|
field: "create_time",
|
|
@@ -1482,7 +1482,7 @@ async function Ri() {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
async function ec() {
|
|
1484
1484
|
try {
|
|
1485
|
-
return (await
|
|
1485
|
+
return (await qt.post()("/sql_snippet/list", {
|
|
1486
1486
|
filter: {},
|
|
1487
1487
|
sort: [{
|
|
1488
1488
|
field: "id",
|
|
@@ -1720,7 +1720,7 @@ class Ei {
|
|
|
1720
1720
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
const sc = "11.0.
|
|
1723
|
+
const sc = "11.0.2", Om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1724
1724
|
__proto__: null,
|
|
1725
1725
|
version: sc
|
|
1726
1726
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1842,13 +1842,13 @@ class _e extends Vm {
|
|
|
1842
1842
|
const Q = (e, t) => {
|
|
1843
1843
|
const [n, {
|
|
1844
1844
|
setFalse: s
|
|
1845
|
-
}] = $e(!0), [i, o] =
|
|
1845
|
+
}] = $e(!0), [i, o] = q();
|
|
1846
1846
|
O(() => (e.getItem(t).then((l) => {
|
|
1847
1847
|
o(l), s();
|
|
1848
1848
|
}), e.watchItem(t, (l) => {
|
|
1849
1849
|
o(l);
|
|
1850
1850
|
})));
|
|
1851
|
-
const a =
|
|
1851
|
+
const a = Be(async (l) => {
|
|
1852
1852
|
await e.setItem(t, l), o(l);
|
|
1853
1853
|
}, [e, t]);
|
|
1854
1854
|
return {
|
|
@@ -1971,7 +1971,7 @@ function ac() {
|
|
|
1971
1971
|
const ce = () => ac(), lc = () => ac(), cc = L.createContext({
|
|
1972
1972
|
searchButtonProps: {}
|
|
1973
1973
|
}), dc = cc.Provider;
|
|
1974
|
-
function
|
|
1974
|
+
function qm() {
|
|
1975
1975
|
return L.useContext(cc);
|
|
1976
1976
|
}
|
|
1977
1977
|
const uc = L.createContext(null), hc = uc.Provider;
|
|
@@ -1981,9 +1981,9 @@ function pc() {
|
|
|
1981
1981
|
throw new Error("Please use ContentModelContextProvider");
|
|
1982
1982
|
return e;
|
|
1983
1983
|
}
|
|
1984
|
-
const le = () => pc(), Pe = () => pc(),
|
|
1984
|
+
const le = () => pc(), Pe = () => pc(), Bm = {
|
|
1985
1985
|
inEditMode: !1
|
|
1986
|
-
}, Oi = L.createContext(
|
|
1986
|
+
}, Oi = L.createContext(Bm), xc = L.createContext({
|
|
1987
1987
|
panel: null,
|
|
1988
1988
|
data: {},
|
|
1989
1989
|
loading: !1,
|
|
@@ -2315,7 +2315,7 @@ const $i = {
|
|
|
2315
2315
|
y_axis: {
|
|
2316
2316
|
name: "Y Axis",
|
|
2317
2317
|
data_key: "value",
|
|
2318
|
-
label_formatter:
|
|
2318
|
+
label_formatter: qe
|
|
2319
2319
|
},
|
|
2320
2320
|
tooltip: {
|
|
2321
2321
|
metrics: []
|
|
@@ -2342,7 +2342,7 @@ function In(e, t) {
|
|
|
2342
2342
|
}, [e, t]);
|
|
2343
2343
|
}
|
|
2344
2344
|
const yt = (e, t) => {
|
|
2345
|
-
const [n, s] =
|
|
2345
|
+
const [n, s] = q([]);
|
|
2346
2346
|
return O(() => e.watchTriggerSnapshotList((i) => s(i.filter((o) => o.schemaRef === t))), []), n;
|
|
2347
2347
|
};
|
|
2348
2348
|
class On {
|
|
@@ -2403,7 +2403,7 @@ function Zm(e, t) {
|
|
|
2403
2403
|
const {
|
|
2404
2404
|
value: n,
|
|
2405
2405
|
set: s
|
|
2406
|
-
} = Q(e.operation.operationData, "config"), [i, o] =
|
|
2406
|
+
} = Q(e.operation.operationData, "config"), [i, o] = q(Ce({}, n, t)), a = async () => {
|
|
2407
2407
|
await s(i);
|
|
2408
2408
|
};
|
|
2409
2409
|
return O(() => {
|
|
@@ -2538,7 +2538,7 @@ const uf = {
|
|
|
2538
2538
|
value: e = "",
|
|
2539
2539
|
onChange: t
|
|
2540
2540
|
}) => {
|
|
2541
|
-
const [n, s] =
|
|
2541
|
+
const [n, s] = q(e);
|
|
2542
2542
|
O(() => {
|
|
2543
2543
|
s(e);
|
|
2544
2544
|
}, [e]);
|
|
@@ -3035,7 +3035,7 @@ const Af = k(({
|
|
|
3035
3035
|
] });
|
|
3036
3036
|
});
|
|
3037
3037
|
function Of(e, t) {
|
|
3038
|
-
const [n, s] =
|
|
3038
|
+
const [n, s] = q([]);
|
|
3039
3039
|
return fr(async () => {
|
|
3040
3040
|
const i = await e.getInteractionList();
|
|
3041
3041
|
s(i);
|
|
@@ -3065,7 +3065,7 @@ const $f = k(({
|
|
|
3065
3065
|
}
|
|
3066
3066
|
return null;
|
|
3067
3067
|
}), Pf = (e) => {
|
|
3068
|
-
const [t, n] =
|
|
3068
|
+
const [t, n] = q(0), {
|
|
3069
3069
|
interactionManager: s,
|
|
3070
3070
|
instance: i,
|
|
3071
3071
|
sampleData: o,
|
|
@@ -3140,12 +3140,12 @@ const $f = k(({
|
|
|
3140
3140
|
},
|
|
3141
3141
|
z: 3
|
|
3142
3142
|
};
|
|
3143
|
-
function
|
|
3143
|
+
function qf(e) {
|
|
3144
3144
|
return _.defaultsDeep({}, e, jc);
|
|
3145
3145
|
}
|
|
3146
|
-
const
|
|
3146
|
+
const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3147
3147
|
__proto__: null,
|
|
3148
|
-
getXAxis:
|
|
3148
|
+
getXAxis: qf,
|
|
3149
3149
|
xAxis: jc
|
|
3150
3150
|
}, Symbol.toStringTag, { value: "Module" })), vc = {
|
|
3151
3151
|
axisTick: {
|
|
@@ -3183,7 +3183,7 @@ const Hf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3183
3183
|
getTooltip: Qf,
|
|
3184
3184
|
tooltip: wc
|
|
3185
3185
|
}, Symbol.toStringTag, { value: "Module" })), be = {
|
|
3186
|
-
...
|
|
3186
|
+
...Bf,
|
|
3187
3187
|
...Gf,
|
|
3188
3188
|
...Hf
|
|
3189
3189
|
};
|
|
@@ -3675,7 +3675,7 @@ function pg({
|
|
|
3675
3675
|
} = e.viewport, l = Ce({}, n, $i), c = jt({
|
|
3676
3676
|
vizManager: e.vizManager,
|
|
3677
3677
|
instance: t
|
|
3678
|
-
}), d = yt(c.triggerManager, bc.id), u = In(i, l.x_axis.data_key), h =
|
|
3678
|
+
}), d = yt(c.triggerManager, bc.id), u = In(i, l.x_axis.data_key), h = Be((y) => {
|
|
3679
3679
|
const S = _.get(u, y.name, {
|
|
3680
3680
|
error: "rowData is not found"
|
|
3681
3681
|
});
|
|
@@ -3837,7 +3837,7 @@ const gg = ({
|
|
|
3837
3837
|
const [s, {
|
|
3838
3838
|
setTrue: i,
|
|
3839
3839
|
setFalse: o
|
|
3840
|
-
}] = $e(), [a, l] =
|
|
3840
|
+
}] = $e(), [a, l] = q(e);
|
|
3841
3841
|
O(() => {
|
|
3842
3842
|
l(e);
|
|
3843
3843
|
}, [e]);
|
|
@@ -3921,7 +3921,7 @@ const gg = ({
|
|
|
3921
3921
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.overflow", control: e, render: ({
|
|
3922
3922
|
field: n
|
|
3923
3923
|
}) => /* @__PURE__ */ r.jsx(Mt, { ...n }) })
|
|
3924
|
-
] })),
|
|
3924
|
+
] })), Bs = {
|
|
3925
3925
|
root: {
|
|
3926
3926
|
alignSelf: "flex-end"
|
|
3927
3927
|
},
|
|
@@ -4005,20 +4005,20 @@ function vg({
|
|
|
4005
4005
|
/* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "Non-negative" })
|
|
4006
4006
|
] }), checked: e.absolute, onChange: l, sx: {
|
|
4007
4007
|
flexGrow: 1
|
|
4008
|
-
}, styles:
|
|
4008
|
+
}, styles: Bs }),
|
|
4009
4009
|
/* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
|
|
4010
4010
|
/* @__PURE__ */ r.jsx(j, { children: "Average" }),
|
|
4011
4011
|
/* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "like 1.234k, 1.234m" })
|
|
4012
4012
|
] }), checked: e.average, onChange: a, disabled: e.output !== "number", sx: {
|
|
4013
4013
|
flexGrow: 1
|
|
4014
|
-
}, styles:
|
|
4014
|
+
}, styles: Bs })
|
|
4015
4015
|
] }),
|
|
4016
4016
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
4017
4017
|
/* @__PURE__ */ r.jsx(U, { label: "Mantissa", defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: i }),
|
|
4018
4018
|
/* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
|
|
4019
4019
|
/* @__PURE__ */ r.jsx(j, { children: "Trim mantissa" }),
|
|
4020
4020
|
/* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "hide trailing zero(s)" })
|
|
4021
|
-
] }), checked: e.trimMantissa, onChange: o, disabled: e.mantissa === 0, styles:
|
|
4021
|
+
] }), checked: e.trimMantissa, onChange: o, disabled: e.mantissa === 0, styles: Bs }),
|
|
4022
4022
|
/* @__PURE__ */ r.jsx(z, {})
|
|
4023
4023
|
] }),
|
|
4024
4024
|
/* @__PURE__ */ r.jsx(jg, { format: e })
|
|
@@ -4086,7 +4086,7 @@ const vt = L.forwardRef(vg), wg = ({
|
|
|
4086
4086
|
id: Date.now().toString(),
|
|
4087
4087
|
data_key: "",
|
|
4088
4088
|
name: ""
|
|
4089
|
-
}), c = t("tooltip.metrics.0.id"), [d, u] =
|
|
4089
|
+
}), c = t("tooltip.metrics.0.id"), [d, u] = q(() => c ?? null);
|
|
4090
4090
|
return O(() => {
|
|
4091
4091
|
c && u((h) => h !== null ? h : c);
|
|
4092
4092
|
}, [c]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -4219,7 +4219,7 @@ function Ig(e) {
|
|
|
4219
4219
|
}
|
|
4220
4220
|
function zg(e) {
|
|
4221
4221
|
const {
|
|
4222
|
-
label_formatter: t =
|
|
4222
|
+
label_formatter: t = qe,
|
|
4223
4223
|
...n
|
|
4224
4224
|
} = e.y_axis;
|
|
4225
4225
|
return {
|
|
@@ -4458,7 +4458,7 @@ function Pg(e) {
|
|
|
4458
4458
|
function Vg(e) {
|
|
4459
4459
|
return /* @__PURE__ */ r.jsx(j, { children: "Click this button" });
|
|
4460
4460
|
}
|
|
4461
|
-
const
|
|
4461
|
+
const qi = {
|
|
4462
4462
|
content: "Button",
|
|
4463
4463
|
variant: "filled",
|
|
4464
4464
|
color: "blue",
|
|
@@ -4470,11 +4470,11 @@ const Bi = {
|
|
|
4470
4470
|
left: "flex-start",
|
|
4471
4471
|
center: "center",
|
|
4472
4472
|
right: "flex-end"
|
|
4473
|
-
},
|
|
4473
|
+
}, qg = {
|
|
4474
4474
|
top: "flex-start",
|
|
4475
4475
|
center: "center",
|
|
4476
4476
|
bottom: "flex-end"
|
|
4477
|
-
},
|
|
4477
|
+
}, Bg = k(({
|
|
4478
4478
|
context: e,
|
|
4479
4479
|
instance: t
|
|
4480
4480
|
}) => {
|
|
@@ -4483,7 +4483,7 @@ const Bi = {
|
|
|
4483
4483
|
instance: t
|
|
4484
4484
|
}), s = yt(n.triggerManager, Sc.id), i = Pe(), {
|
|
4485
4485
|
value: o
|
|
4486
|
-
} = Q(e.instanceData, "config"), a = T(() => je({}, o,
|
|
4486
|
+
} = Q(e.instanceData, "config"), a = T(() => je({}, o, qi), [o]), {
|
|
4487
4487
|
content: l,
|
|
4488
4488
|
horizontal_align: c,
|
|
4489
4489
|
vertical_align: d,
|
|
@@ -4500,14 +4500,14 @@ const Bi = {
|
|
|
4500
4500
|
width: h,
|
|
4501
4501
|
height: p,
|
|
4502
4502
|
justifyContent: Ng[c],
|
|
4503
|
-
alignItems:
|
|
4503
|
+
alignItems: qg[d]
|
|
4504
4504
|
}, children: /* @__PURE__ */ r.jsx(C, { ...u, onClick: y, children: wi(l)(x) }) });
|
|
4505
4505
|
}), Wg = ({
|
|
4506
4506
|
value: e,
|
|
4507
4507
|
onChange: t,
|
|
4508
4508
|
label: n
|
|
4509
4509
|
}) => {
|
|
4510
|
-
const s = nl(), i =
|
|
4510
|
+
const s = nl(), i = Be((a) => () => t(a), [t]), o = (a) => e === a;
|
|
4511
4511
|
return /* @__PURE__ */ r.jsxs(w, { spacing: 2, children: [
|
|
4512
4512
|
/* @__PURE__ */ r.jsx(j, { size: 14, sx: {
|
|
4513
4513
|
fontWeight: 500
|
|
@@ -4573,7 +4573,7 @@ function Yg({
|
|
|
4573
4573
|
const {
|
|
4574
4574
|
value: t,
|
|
4575
4575
|
set: n
|
|
4576
|
-
} = Q(e.instanceData, "config"), s = T(() => je({}, t,
|
|
4576
|
+
} = Q(e.instanceData, "config"), s = T(() => je({}, t, qi), [t]), i = s;
|
|
4577
4577
|
O(() => {
|
|
4578
4578
|
!me(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
|
|
4579
4579
|
}, [s, i]);
|
|
@@ -4683,16 +4683,16 @@ const Jg = {
|
|
|
4683
4683
|
displayGroup: "Others",
|
|
4684
4684
|
migrator: new Xg(),
|
|
4685
4685
|
name: "button",
|
|
4686
|
-
viewRender:
|
|
4686
|
+
viewRender: Bg,
|
|
4687
4687
|
configRender: Yg,
|
|
4688
4688
|
createConfig() {
|
|
4689
4689
|
return {
|
|
4690
4690
|
version: 2,
|
|
4691
|
-
config: Ne(
|
|
4691
|
+
config: Ne(qi)
|
|
4692
4692
|
};
|
|
4693
4693
|
},
|
|
4694
4694
|
triggers: [Sc]
|
|
4695
|
-
},
|
|
4695
|
+
}, Bi = {
|
|
4696
4696
|
id: "builtin:echarts:click-echart:series",
|
|
4697
4697
|
displayName: "Click Chart Series",
|
|
4698
4698
|
nameRender: eb,
|
|
@@ -4762,7 +4762,7 @@ const Kn = {
|
|
|
4762
4762
|
show: !0,
|
|
4763
4763
|
position: "left",
|
|
4764
4764
|
nameAlignment: "center",
|
|
4765
|
-
label_formatter:
|
|
4765
|
+
label_formatter: qe
|
|
4766
4766
|
}],
|
|
4767
4767
|
reference_lines: [],
|
|
4768
4768
|
reference_areas: [],
|
|
@@ -5320,7 +5320,7 @@ function kb({
|
|
|
5320
5320
|
interactionManager: i,
|
|
5321
5321
|
variables: o
|
|
5322
5322
|
}) {
|
|
5323
|
-
const a = In(t, e.x_axis_data_key), l = yt(i.triggerManager,
|
|
5323
|
+
const a = In(t, e.x_axis_data_key), l = yt(i.triggerManager, Bi.id), c = Be((x) => {
|
|
5324
5324
|
const y = _.get(a, x.name, {
|
|
5325
5325
|
error: "rowData is not found"
|
|
5326
5326
|
});
|
|
@@ -6558,7 +6558,7 @@ class Hr {
|
|
|
6558
6558
|
matchTag(t, n, s) {
|
|
6559
6559
|
for (let i = s ? this.tags.indexOf(s) + 1 : 0; i < this.tags.length; i++) {
|
|
6560
6560
|
let o = this.tags[i];
|
|
6561
|
-
if (
|
|
6561
|
+
if (Bb(t, o.tag) && (o.namespace === void 0 || t.namespaceURI == o.namespace) && (!o.context || n.matchesContext(o.context))) {
|
|
6562
6562
|
if (o.getAttrs) {
|
|
6563
6563
|
let a = o.getAttrs(t);
|
|
6564
6564
|
if (a === !1)
|
|
@@ -6768,7 +6768,7 @@ class ya {
|
|
|
6768
6768
|
// none is found, the element's content nodes are added directly.
|
|
6769
6769
|
addElement(t, n) {
|
|
6770
6770
|
let s = t.nodeName.toLowerCase(), i;
|
|
6771
|
-
Mc.hasOwnProperty(s) && this.parser.normalizeLists &&
|
|
6771
|
+
Mc.hasOwnProperty(s) && this.parser.normalizeLists && qb(t);
|
|
6772
6772
|
let o = this.options.ruleFromNode && this.options.ruleFromNode(t) || (i = this.parser.matchTag(t, this, n));
|
|
6773
6773
|
if (o ? o.ignore : Nb.hasOwnProperty(s))
|
|
6774
6774
|
this.findInside(t), this.ignoreFallback(t);
|
|
@@ -6999,13 +6999,13 @@ class ya {
|
|
|
6999
6999
|
}
|
|
7000
7000
|
}
|
|
7001
7001
|
}
|
|
7002
|
-
function
|
|
7002
|
+
function qb(e) {
|
|
7003
7003
|
for (let t = e.firstChild, n = null; t; t = t.nextSibling) {
|
|
7004
7004
|
let s = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
|
|
7005
7005
|
s && Mc.hasOwnProperty(s) && n ? (n.appendChild(t), t = n) : s == "li" ? n = t : s && (n = null);
|
|
7006
7006
|
}
|
|
7007
7007
|
}
|
|
7008
|
-
function
|
|
7008
|
+
function Bb(e, t) {
|
|
7009
7009
|
return (e.matches || e.msMatchesSelector || e.webkitMatchesSelector || e.mozMatchesSelector).call(e, t);
|
|
7010
7010
|
}
|
|
7011
7011
|
function Wb(e) {
|
|
@@ -8378,7 +8378,7 @@ function pi(e, t, n = {}) {
|
|
|
8378
8378
|
function by(e, t, n = {}) {
|
|
8379
8379
|
return !!pi(e, t, n);
|
|
8380
8380
|
}
|
|
8381
|
-
function
|
|
8381
|
+
function qc(e, t, n = {}) {
|
|
8382
8382
|
if (!e || !t)
|
|
8383
8383
|
return;
|
|
8384
8384
|
let s = e.parent.childAfter(e.parentOffset);
|
|
@@ -8408,7 +8408,7 @@ function ln(e, t) {
|
|
|
8408
8408
|
const yy = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
8409
8409
|
const o = ln(e, s.schema), { doc: a, selection: l } = n, { $from: c, from: d, to: u } = l;
|
|
8410
8410
|
if (i) {
|
|
8411
|
-
const h =
|
|
8411
|
+
const h = qc(c, o, t);
|
|
8412
8412
|
if (h && h.from <= d && h.to >= u) {
|
|
8413
8413
|
const p = Oe.create(a, h.from, h.to);
|
|
8414
8414
|
n.setSelection(p);
|
|
@@ -8422,7 +8422,7 @@ const yy = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
8422
8422
|
return !0;
|
|
8423
8423
|
return !1;
|
|
8424
8424
|
};
|
|
8425
|
-
function
|
|
8425
|
+
function Bc(e) {
|
|
8426
8426
|
return e instanceof Oe;
|
|
8427
8427
|
}
|
|
8428
8428
|
function gn(e = 0, t = 0, n = 0) {
|
|
@@ -8461,7 +8461,7 @@ const wy = (e = null, t = {}) => ({ editor: n, view: s, tr: i, dispatch: o }) =>
|
|
|
8461
8461
|
};
|
|
8462
8462
|
if (s.hasFocus() && e === null || e === !1)
|
|
8463
8463
|
return !0;
|
|
8464
|
-
if (o && e === null && !
|
|
8464
|
+
if (o && e === null && !Bc(n.state.selection))
|
|
8465
8465
|
return a(), !0;
|
|
8466
8466
|
const l = vy(i.doc, e) || n.state.selection, c = n.state.selection.eq(l);
|
|
8467
8467
|
return o && (c || i.setSelection(l), c && i.storedMarks && i.setStoredMarks(i.storedMarks), a()), !0;
|
|
@@ -8588,7 +8588,7 @@ const Ry = (e, t = {}) => ({ state: n, dispatch: s }) => {
|
|
|
8588
8588
|
return Zi(n, i, t) ? Rp(n, s) : !1;
|
|
8589
8589
|
}, Ey = () => ({ state: e, dispatch: t }) => Ep(e, t), Fy = (e) => ({ state: t, dispatch: n }) => {
|
|
8590
8590
|
const s = Qe(e, t.schema);
|
|
8591
|
-
return
|
|
8591
|
+
return Bp(s)(t, n);
|
|
8592
8592
|
}, Oy = () => ({ state: e, dispatch: t }) => Fp(e, t);
|
|
8593
8593
|
function Gc(e, t) {
|
|
8594
8594
|
return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
|
|
@@ -8610,7 +8610,7 @@ const $y = (e, t) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
8610
8610
|
}, Py = () => ({ tr: e, dispatch: t }) => (t && e.scrollIntoView(), !0), Vy = () => ({ tr: e, commands: t }) => t.setTextSelection({
|
|
8611
8611
|
from: 0,
|
|
8612
8612
|
to: e.doc.content.size
|
|
8613
|
-
}), Ny = () => ({ state: e, dispatch: t }) => Op(e, t),
|
|
8613
|
+
}), Ny = () => ({ state: e, dispatch: t }) => Op(e, t), qy = () => ({ state: e, dispatch: t }) => $p(e, t), By = () => ({ state: e, dispatch: t }) => Pp(e, t), Wy = () => ({ state: e, dispatch: t }) => Vp(e, t), Gy = () => ({ state: e, dispatch: t }) => Np(e, t);
|
|
8614
8614
|
function Qy(e, t, n = {}) {
|
|
8615
8615
|
return Xr(e, t, { slice: !1, parseOptions: n });
|
|
8616
8616
|
}
|
|
@@ -8693,7 +8693,7 @@ function Jy(e, t, n) {
|
|
|
8693
8693
|
var s;
|
|
8694
8694
|
const { selection: i } = t;
|
|
8695
8695
|
let o = null;
|
|
8696
|
-
if (
|
|
8696
|
+
if (Bc(i) && (o = i.$cursor), o) {
|
|
8697
8697
|
const l = (s = e.storedMarks) !== null && s !== void 0 ? s : o.marks();
|
|
8698
8698
|
return !!n.isInSet(l) || !l.some((c) => c.type.excludes(n));
|
|
8699
8699
|
}
|
|
@@ -8908,7 +8908,7 @@ const ij = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8908
8908
|
return !0;
|
|
8909
8909
|
if (u && a) {
|
|
8910
8910
|
let { from: p, to: x } = l;
|
|
8911
|
-
const y = (o = d.marks().find((M) => M.type === c)) === null || o === void 0 ? void 0 : o.attrs, S =
|
|
8911
|
+
const y = (o = d.marks().find((M) => M.type === c)) === null || o === void 0 ? void 0 : o.attrs, S = qc(d, c, y);
|
|
8912
8912
|
S && (p = S.from, x = S.to), n.removeMark(p, x, c);
|
|
8913
8913
|
} else
|
|
8914
8914
|
h.forEach((p) => {
|
|
@@ -8937,7 +8937,7 @@ const ij = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8937
8937
|
}), !0) : !1;
|
|
8938
8938
|
}, mj = (e, t = {}) => ({ state: n, dispatch: s }) => {
|
|
8939
8939
|
const i = Qe(e, n.schema);
|
|
8940
|
-
return
|
|
8940
|
+
return qp(i, t)(n, s);
|
|
8941
8941
|
}, fj = (e, t = {}) => ({ state: n, dispatch: s }) => {
|
|
8942
8942
|
const i = Qe(e, n.schema);
|
|
8943
8943
|
return Gp(i, t)(n, s);
|
|
@@ -8974,8 +8974,8 @@ var gj = /* @__PURE__ */ Object.freeze({
|
|
|
8974
8974
|
scrollIntoView: Py,
|
|
8975
8975
|
selectAll: Vy,
|
|
8976
8976
|
selectNodeBackward: Ny,
|
|
8977
|
-
selectNodeForward:
|
|
8978
|
-
selectParentNode:
|
|
8977
|
+
selectNodeForward: qy,
|
|
8978
|
+
selectParentNode: By,
|
|
8979
8979
|
selectTextblockEnd: Wy,
|
|
8980
8980
|
selectTextblockStart: Gy,
|
|
8981
8981
|
setContent: Hy,
|
|
@@ -9194,8 +9194,8 @@ const Qc = Rt.create({
|
|
|
9194
9194
|
styles: t = {},
|
|
9195
9195
|
sx: n = {}
|
|
9196
9196
|
}) => {
|
|
9197
|
-
const s =
|
|
9198
|
-
extensions: [
|
|
9197
|
+
const s = ql({
|
|
9198
|
+
extensions: [Bl, Nl, Il, Rl, Al, Ml, Ol.configure({
|
|
9199
9199
|
resizable: !1,
|
|
9200
9200
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
9201
9201
|
HTMLAttributes: {
|
|
@@ -9263,7 +9263,7 @@ const _j = ({
|
|
|
9263
9263
|
label: n,
|
|
9264
9264
|
defaultValue: s
|
|
9265
9265
|
}, i) => {
|
|
9266
|
-
const [o, a] =
|
|
9266
|
+
const [o, a] = q(e), l = () => {
|
|
9267
9267
|
t(o);
|
|
9268
9268
|
}, c = () => {
|
|
9269
9269
|
a(e);
|
|
@@ -9485,7 +9485,7 @@ const Dj = ({
|
|
|
9485
9485
|
const [n, {
|
|
9486
9486
|
setTrue: s,
|
|
9487
9487
|
setFalse: i
|
|
9488
|
-
}] = $e(), [o, a] =
|
|
9488
|
+
}] = $e(), [o, a] = q(e), l = () => {
|
|
9489
9489
|
i();
|
|
9490
9490
|
const {
|
|
9491
9491
|
type: h,
|
|
@@ -9892,7 +9892,7 @@ const Nj = () => /* @__PURE__ */ r.jsxs(b, { sx: {
|
|
|
9892
9892
|
"to learn more about these options"
|
|
9893
9893
|
] }) })
|
|
9894
9894
|
] })
|
|
9895
|
-
] }),
|
|
9895
|
+
] }), qj = [{
|
|
9896
9896
|
label: "Value",
|
|
9897
9897
|
value: "value"
|
|
9898
9898
|
}, {
|
|
@@ -9905,7 +9905,7 @@ const Nj = () => /* @__PURE__ */ r.jsxs(b, { sx: {
|
|
|
9905
9905
|
label: "Log",
|
|
9906
9906
|
value: "log"
|
|
9907
9907
|
}];
|
|
9908
|
-
function
|
|
9908
|
+
function Bj({
|
|
9909
9909
|
control: e,
|
|
9910
9910
|
watch: t
|
|
9911
9911
|
}) {
|
|
@@ -9925,7 +9925,7 @@ function qj({
|
|
|
9925
9925
|
field: n
|
|
9926
9926
|
}) => (
|
|
9927
9927
|
// @ts-expect-error type of onChange
|
|
9928
|
-
/* @__PURE__ */ r.jsx(A, { label: /* @__PURE__ */ r.jsx(Nj, {}), required: !0, data:
|
|
9928
|
+
/* @__PURE__ */ r.jsx(A, { label: /* @__PURE__ */ r.jsx(Nj, {}), required: !0, data: qj, sx: {
|
|
9929
9929
|
flex: 1
|
|
9930
9930
|
}, ...n })
|
|
9931
9931
|
) })
|
|
@@ -10046,7 +10046,7 @@ function Hj({
|
|
|
10046
10046
|
name: "",
|
|
10047
10047
|
position: "left",
|
|
10048
10048
|
nameAlignment: "left",
|
|
10049
|
-
label_formatter:
|
|
10049
|
+
label_formatter: qe,
|
|
10050
10050
|
min: "",
|
|
10051
10051
|
max: "",
|
|
10052
10052
|
show: !0
|
|
@@ -10116,7 +10116,7 @@ function Uj({
|
|
|
10116
10116
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "Reference Areas", children: "Reference Areas" }),
|
|
10117
10117
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "Zooming", children: "Zooming" })
|
|
10118
10118
|
] }),
|
|
10119
|
-
/* @__PURE__ */ r.jsx(f.Panel, { value: "X Axis", children: /* @__PURE__ */ r.jsx(
|
|
10119
|
+
/* @__PURE__ */ r.jsx(f.Panel, { value: "X Axis", children: /* @__PURE__ */ r.jsx(Bj, { control: o, watch: l }) }),
|
|
10120
10120
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Y Axes", children: /* @__PURE__ */ r.jsx(Hj, { control: o, watch: l }) }),
|
|
10121
10121
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Series", children: /* @__PURE__ */ r.jsx(Pj, { control: o, watch: l }) }),
|
|
10122
10122
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Regression Lines", children: /* @__PURE__ */ r.jsx(Pb, { control: o, watch: l }) }),
|
|
@@ -10546,7 +10546,7 @@ const pv = {
|
|
|
10546
10546
|
config: Ne(Wi)
|
|
10547
10547
|
};
|
|
10548
10548
|
},
|
|
10549
|
-
triggers: [
|
|
10549
|
+
triggers: [Bi]
|
|
10550
10550
|
};
|
|
10551
10551
|
function xv(e) {
|
|
10552
10552
|
if (e.enable_value)
|
|
@@ -10950,7 +10950,7 @@ const Cv = [{
|
|
|
10950
10950
|
}), o = t("series"), a = n.map((u, h) => ({
|
|
10951
10951
|
...u,
|
|
10952
10952
|
...o[h]
|
|
10953
|
-
})), l = _.get(a, "0.id"), [c, d] =
|
|
10953
|
+
})), l = _.get(a, "0.id"), [c, d] = q(l ?? null);
|
|
10954
10954
|
return O(() => {
|
|
10955
10955
|
l && d((u) => u !== null ? u : l);
|
|
10956
10956
|
}, [l]), /* @__PURE__ */ r.jsxs(f, { value: c, onTabChange: (u) => d(u), styles: {
|
|
@@ -11158,7 +11158,7 @@ const Nv = (e) => Z(e, {
|
|
|
11158
11158
|
mantissa: 2,
|
|
11159
11159
|
absolute: !1
|
|
11160
11160
|
});
|
|
11161
|
-
function
|
|
11161
|
+
function qv({
|
|
11162
11162
|
conf: e,
|
|
11163
11163
|
labelFormatters: t,
|
|
11164
11164
|
valueFormatters: n,
|
|
@@ -11202,7 +11202,7 @@ function Bv({
|
|
|
11202
11202
|
});
|
|
11203
11203
|
}), x;
|
|
11204
11204
|
}
|
|
11205
|
-
function
|
|
11205
|
+
function Bv(e, t, n, s) {
|
|
11206
11206
|
const {
|
|
11207
11207
|
x_axis: i,
|
|
11208
11208
|
y_axis: o,
|
|
@@ -11212,7 +11212,7 @@ function qv(e, t, n, s) {
|
|
|
11212
11212
|
const d = _.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
|
|
11213
11213
|
return be.getTooltip({
|
|
11214
11214
|
formatter: function(u) {
|
|
11215
|
-
const p =
|
|
11215
|
+
const p = qv({
|
|
11216
11216
|
conf: e,
|
|
11217
11217
|
labelFormatters: n,
|
|
11218
11218
|
valueFormatters: s,
|
|
@@ -11273,7 +11273,7 @@ const Wv = ({
|
|
|
11273
11273
|
const [n, {
|
|
11274
11274
|
setTrue: s,
|
|
11275
11275
|
setFalse: i
|
|
11276
|
-
}] = $e(), [o, a] =
|
|
11276
|
+
}] = $e(), [o, a] = q(e), l = () => {
|
|
11277
11277
|
i();
|
|
11278
11278
|
const {
|
|
11279
11279
|
type: h,
|
|
@@ -11333,7 +11333,7 @@ const Wv = ({
|
|
|
11333
11333
|
}, {
|
|
11334
11334
|
label: "Dynamic",
|
|
11335
11335
|
value: "dynamic"
|
|
11336
|
-
}],
|
|
11336
|
+
}], qn = ue(({
|
|
11337
11337
|
label: e = "Value",
|
|
11338
11338
|
value: t,
|
|
11339
11339
|
onChange: n
|
|
@@ -11351,7 +11351,7 @@ const Wv = ({
|
|
|
11351
11351
|
/* @__PURE__ */ r.jsx(Qv, { value: t, onChange: n })
|
|
11352
11352
|
] });
|
|
11353
11353
|
});
|
|
11354
|
-
function
|
|
11354
|
+
function Bn(e, t, n) {
|
|
11355
11355
|
if (!e.type)
|
|
11356
11356
|
return n;
|
|
11357
11357
|
if (e.type === "static") {
|
|
@@ -11375,7 +11375,7 @@ function qn(e, t, n) {
|
|
|
11375
11375
|
}
|
|
11376
11376
|
}
|
|
11377
11377
|
function Kv(e, t) {
|
|
11378
|
-
const n =
|
|
11378
|
+
const n = Bn(e.heat_block.min, t), s = Bn(e.heat_block.max, t);
|
|
11379
11379
|
return {
|
|
11380
11380
|
min: n,
|
|
11381
11381
|
max: s,
|
|
@@ -11470,7 +11470,7 @@ function Zv(e, t, n, s, i) {
|
|
|
11470
11470
|
xAxis: Yv(e, h, a.x_axis),
|
|
11471
11471
|
yAxis: Xv(e, p, a.y_axis),
|
|
11472
11472
|
series: Vv(e, x, y),
|
|
11473
|
-
tooltip:
|
|
11473
|
+
tooltip: Bv(e, t, a, l),
|
|
11474
11474
|
grid: Pv(e),
|
|
11475
11475
|
visualMap: Kv(e, o)
|
|
11476
11476
|
};
|
|
@@ -11546,7 +11546,7 @@ const Yc = {
|
|
|
11546
11546
|
},
|
|
11547
11547
|
name: "Value",
|
|
11548
11548
|
data_key: "",
|
|
11549
|
-
value_formatter:
|
|
11549
|
+
value_formatter: qe,
|
|
11550
11550
|
label: {
|
|
11551
11551
|
show: !1,
|
|
11552
11552
|
fontSize: 10
|
|
@@ -11568,7 +11568,7 @@ function nw({
|
|
|
11568
11568
|
const a = T(() => {
|
|
11569
11569
|
const h = $(e.x_axis.data_key), p = $(e.y_axis.data_key);
|
|
11570
11570
|
return _.keyBy(t[h.queryID], (x) => `${x[h.columnKey]}---${x[p.columnKey]}`);
|
|
11571
|
-
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = yt(i.triggerManager, Yc.id), c =
|
|
11571
|
+
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = yt(i.triggerManager, Yc.id), c = Be((h) => {
|
|
11572
11572
|
const [p, x] = h.value, y = _.get(a, `${p}---${x}`, {
|
|
11573
11573
|
error: "rowData is not found"
|
|
11574
11574
|
});
|
|
@@ -11625,10 +11625,10 @@ function sw({
|
|
|
11625
11625
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
11626
11626
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.min", control: e, render: ({
|
|
11627
11627
|
field: s
|
|
11628
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
11628
|
+
}) => /* @__PURE__ */ r.jsx(qn, { label: "Min Value", ...s }) }),
|
|
11629
11629
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.max", control: e, render: ({
|
|
11630
11630
|
field: s
|
|
11631
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
11631
|
+
}) => /* @__PURE__ */ r.jsx(qn, { label: "Max Value", ...s }) })
|
|
11632
11632
|
] }),
|
|
11633
11633
|
/* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
11634
11634
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.value_formatter", control: e, render: ({
|
|
@@ -11690,7 +11690,7 @@ const iw = ({
|
|
|
11690
11690
|
id: Date.now().toString(),
|
|
11691
11691
|
data_key: "",
|
|
11692
11692
|
name: ""
|
|
11693
|
-
}), c = t("tooltip.metrics.0.id"), [d, u] =
|
|
11693
|
+
}), c = t("tooltip.metrics.0.id"), [d, u] = q(() => c ?? null);
|
|
11694
11694
|
return O(() => {
|
|
11695
11695
|
c && u((h) => h !== null ? h : c);
|
|
11696
11696
|
}, [c]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -11756,7 +11756,7 @@ const lw = ({
|
|
|
11756
11756
|
const [s, {
|
|
11757
11757
|
setTrue: i,
|
|
11758
11758
|
setFalse: o
|
|
11759
|
-
}] = $e(), [a, l] =
|
|
11759
|
+
}] = $e(), [a, l] = q(e);
|
|
11760
11760
|
O(() => {
|
|
11761
11761
|
l(e);
|
|
11762
11762
|
}, [e]);
|
|
@@ -12131,7 +12131,7 @@ const Zc = {
|
|
|
12131
12131
|
name: "Value",
|
|
12132
12132
|
nameAlignment: "left",
|
|
12133
12133
|
color: "#228be6",
|
|
12134
|
-
label_formatter:
|
|
12134
|
+
label_formatter: qe
|
|
12135
12135
|
},
|
|
12136
12136
|
line: {
|
|
12137
12137
|
name: "Value",
|
|
@@ -12400,7 +12400,7 @@ function Mw({
|
|
|
12400
12400
|
} = e.viewport, a = Ce({}, n, io), l = zw(a, s), c = jt({
|
|
12401
12401
|
vizManager: e.vizManager,
|
|
12402
12402
|
instance: t
|
|
12403
|
-
}), d = yt(c.triggerManager, Jc.id), u = In(s, a.x_axis.data_key), h =
|
|
12403
|
+
}), d = yt(c.triggerManager, Jc.id), u = In(s, a.x_axis.data_key), h = Be((x) => {
|
|
12404
12404
|
const y = _.get(u, x.name, {
|
|
12405
12405
|
error: "rowData is not found"
|
|
12406
12406
|
});
|
|
@@ -12521,7 +12521,7 @@ const Fw = `
|
|
|
12521
12521
|
};
|
|
12522
12522
|
}
|
|
12523
12523
|
`, Ow = () => {
|
|
12524
|
-
const [e, t] =
|
|
12524
|
+
const [e, t] = q(!1);
|
|
12525
12525
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
12526
12526
|
/* @__PURE__ */ r.jsx(C, { variant: "subtle", compact: !0, onClick: () => t((n) => !n), children: e ? "Close" : "Click to see params for Label Template" }),
|
|
12527
12527
|
/* @__PURE__ */ r.jsx(xr, { in: e, children: /* @__PURE__ */ r.jsx(on, { language: "typescript", noCopy: !0, colorScheme: "dark", children: Fw }) })
|
|
@@ -12656,7 +12656,7 @@ function Nw({
|
|
|
12656
12656
|
] })
|
|
12657
12657
|
] });
|
|
12658
12658
|
}
|
|
12659
|
-
function
|
|
12659
|
+
function qw(e) {
|
|
12660
12660
|
const {
|
|
12661
12661
|
dataZoom: t = Kn,
|
|
12662
12662
|
...n
|
|
@@ -12666,7 +12666,7 @@ function Bw(e) {
|
|
|
12666
12666
|
dataZoom: t
|
|
12667
12667
|
};
|
|
12668
12668
|
}
|
|
12669
|
-
function
|
|
12669
|
+
function Bw(e) {
|
|
12670
12670
|
const {
|
|
12671
12671
|
markLine: t = Zc,
|
|
12672
12672
|
...n
|
|
@@ -12693,7 +12693,7 @@ function Ww(e) {
|
|
|
12693
12693
|
}
|
|
12694
12694
|
function Gw(e) {
|
|
12695
12695
|
const {
|
|
12696
|
-
label_formatter: t =
|
|
12696
|
+
label_formatter: t = qe
|
|
12697
12697
|
} = e.bar;
|
|
12698
12698
|
return {
|
|
12699
12699
|
...e,
|
|
@@ -12788,11 +12788,11 @@ class Yw extends _e {
|
|
|
12788
12788
|
})), this.version(2, (n) => ({
|
|
12789
12789
|
...n,
|
|
12790
12790
|
version: 2,
|
|
12791
|
-
config:
|
|
12791
|
+
config: qw(n.config)
|
|
12792
12792
|
})), this.version(3, (n) => ({
|
|
12793
12793
|
...n,
|
|
12794
12794
|
version: 3,
|
|
12795
|
-
config:
|
|
12795
|
+
config: Bw(n.config)
|
|
12796
12796
|
})), this.version(4, (n) => ({
|
|
12797
12797
|
...n,
|
|
12798
12798
|
version: 4,
|
|
@@ -13345,7 +13345,7 @@ function y0({
|
|
|
13345
13345
|
...x,
|
|
13346
13346
|
...y
|
|
13347
13347
|
};
|
|
13348
|
-
}, [t, e.series_name_key, e.additional_series]), l = yt(i.triggerManager, td.id), c =
|
|
13348
|
+
}, [t, e.series_name_key, e.additional_series]), l = yt(i.triggerManager, td.id), c = Be((h) => {
|
|
13349
13349
|
const p = _.get(a, h.name, {
|
|
13350
13350
|
error: "rowData is not found"
|
|
13351
13351
|
});
|
|
@@ -13423,7 +13423,7 @@ function w0({
|
|
|
13423
13423
|
name_key: "",
|
|
13424
13424
|
color_key: ""
|
|
13425
13425
|
});
|
|
13426
|
-
}, c = _.get(a, "0.id", null), [d, u] =
|
|
13426
|
+
}, c = _.get(a, "0.id", null), [d, u] = q(c);
|
|
13427
13427
|
O(() => {
|
|
13428
13428
|
u((p) => p || c);
|
|
13429
13429
|
}, [c]);
|
|
@@ -13519,9 +13519,9 @@ function S0({
|
|
|
13519
13519
|
name: p,
|
|
13520
13520
|
data_key: "",
|
|
13521
13521
|
max: "100",
|
|
13522
|
-
formatter:
|
|
13522
|
+
formatter: qe
|
|
13523
13523
|
});
|
|
13524
|
-
}, c = _.get(a, "0.id", null), [d, u] =
|
|
13524
|
+
}, c = _.get(a, "0.id", null), [d, u] = q(c);
|
|
13525
13525
|
O(() => {
|
|
13526
13526
|
u((p) => p || c);
|
|
13527
13527
|
}, [c]);
|
|
@@ -13609,7 +13609,7 @@ function k0(e) {
|
|
|
13609
13609
|
name: i = "",
|
|
13610
13610
|
data_key: o = "",
|
|
13611
13611
|
max: a = 10,
|
|
13612
|
-
formatter: l =
|
|
13612
|
+
formatter: l = qe
|
|
13613
13613
|
}) {
|
|
13614
13614
|
return {
|
|
13615
13615
|
name: i,
|
|
@@ -13946,7 +13946,7 @@ const N0 = {
|
|
|
13946
13946
|
yAxisIndex: [0]
|
|
13947
13947
|
}]
|
|
13948
13948
|
};
|
|
13949
|
-
function
|
|
13949
|
+
function q0(e, t) {
|
|
13950
13950
|
const n = O0(e, t), s = R0(e, n), i = {
|
|
13951
13951
|
xAxis: V0(e),
|
|
13952
13952
|
yAxis: be.getYAxis({
|
|
@@ -13983,7 +13983,7 @@ const La = {
|
|
|
13983
13983
|
function _s(e, t, n) {
|
|
13984
13984
|
return 1 - (1 - e) * (t - 1) / (t - n - 1);
|
|
13985
13985
|
}
|
|
13986
|
-
function
|
|
13986
|
+
function B0(e, t, n, s) {
|
|
13987
13987
|
const {
|
|
13988
13988
|
x_axis: i,
|
|
13989
13989
|
y_axis: o
|
|
@@ -14083,7 +14083,7 @@ function Aa(e, t, n) {
|
|
|
14083
14083
|
regression: s,
|
|
14084
14084
|
x_axis: i
|
|
14085
14085
|
} = n, o = $(i.data_key), a = $(s.y_axis_data_key), l = t.map((c) => [c[o.columnKey], c[a.columnKey]]);
|
|
14086
|
-
return s.transform.config.method === "linear" ?
|
|
14086
|
+
return s.transform.config.method === "linear" ? B0(e, t, l, n) : s.transform.config.method === "exponential" ? W0(e, t, l, n) : s.transform.config.method === "logarithmic" ? G0(e, t, l, n) : s.transform.config.method === "polynomial" ? Q0(e, t, l, n) : {
|
|
14087
14087
|
name: e,
|
|
14088
14088
|
expression: "",
|
|
14089
14089
|
rSquared: 0,
|
|
@@ -14184,7 +14184,7 @@ const Ss = {
|
|
|
14184
14184
|
data_key: "",
|
|
14185
14185
|
axisLabel: {
|
|
14186
14186
|
rotate: 0,
|
|
14187
|
-
format:
|
|
14187
|
+
format: qe,
|
|
14188
14188
|
overflow: tt(),
|
|
14189
14189
|
formatter: {
|
|
14190
14190
|
...Ss
|
|
@@ -14236,7 +14236,7 @@ function J0({
|
|
|
14236
14236
|
...y,
|
|
14237
14237
|
[p.columnKey]: Number(y[p.columnKey])
|
|
14238
14238
|
});
|
|
14239
|
-
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), o = T(() =>
|
|
14239
|
+
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), o = T(() => q0(je({}, t, ao), i), [t, i]), a = ns(null), l = (c) => {
|
|
14240
14240
|
a.current = c;
|
|
14241
14241
|
};
|
|
14242
14242
|
return !n || !s || !t ? null : /* @__PURE__ */ r.jsxs(nt, { width: n, height: s, children: [
|
|
@@ -14335,7 +14335,7 @@ const t_ = ({
|
|
|
14335
14335
|
const [i, {
|
|
14336
14336
|
setTrue: o,
|
|
14337
14337
|
setFalse: a
|
|
14338
|
-
}] = $e(), [l, c] =
|
|
14338
|
+
}] = $e(), [l, c] = q(e);
|
|
14339
14339
|
O(() => {
|
|
14340
14340
|
c(e);
|
|
14341
14341
|
}, [e]);
|
|
@@ -14493,7 +14493,7 @@ function i_(e) {
|
|
|
14493
14493
|
x_axis: {
|
|
14494
14494
|
axisLabel: {
|
|
14495
14495
|
rotate: 0,
|
|
14496
|
-
format:
|
|
14496
|
+
format: qe,
|
|
14497
14497
|
overflow: tt(),
|
|
14498
14498
|
formatter: Ss
|
|
14499
14499
|
}
|
|
@@ -14655,8 +14655,8 @@ const lo = ue(({
|
|
|
14655
14655
|
label: s,
|
|
14656
14656
|
onSubmit: i
|
|
14657
14657
|
}, o) => {
|
|
14658
|
-
const [a, l] =
|
|
14659
|
-
extensions: [
|
|
14658
|
+
const [a, l] = q(e), c = ql({
|
|
14659
|
+
extensions: [Bl, Nl, Il, Rl, Al, Ml, Ol.configure({
|
|
14660
14660
|
resizable: !1,
|
|
14661
14661
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
14662
14662
|
HTMLAttributes: {
|
|
@@ -14905,7 +14905,7 @@ const co = {
|
|
|
14905
14905
|
name: "Y Axis",
|
|
14906
14906
|
position: "left",
|
|
14907
14907
|
nameAlignment: "center",
|
|
14908
|
-
label_formatter:
|
|
14908
|
+
label_formatter: qe,
|
|
14909
14909
|
min: "",
|
|
14910
14910
|
max: "",
|
|
14911
14911
|
show: !0
|
|
@@ -15307,7 +15307,7 @@ function F_({
|
|
|
15307
15307
|
interactionManager: i,
|
|
15308
15308
|
variables: o
|
|
15309
15309
|
}) {
|
|
15310
|
-
const a = In(t, e.x_axis.data_key), l = yt(i.triggerManager, ld.id), c =
|
|
15310
|
+
const a = In(t, e.x_axis.data_key), l = yt(i.triggerManager, ld.id), c = Be((h) => {
|
|
15311
15311
|
const p = h.data;
|
|
15312
15312
|
l.forEach((x) => {
|
|
15313
15313
|
i.runInteraction(x.id, {
|
|
@@ -15495,14 +15495,14 @@ const N_ = [{
|
|
|
15495
15495
|
}, {
|
|
15496
15496
|
label: "dotted",
|
|
15497
15497
|
value: "dotted"
|
|
15498
|
-
}],
|
|
15498
|
+
}], q_ = [{
|
|
15499
15499
|
label: "Horizontal",
|
|
15500
15500
|
value: "horizontal"
|
|
15501
15501
|
}, {
|
|
15502
15502
|
label: "Vertical",
|
|
15503
15503
|
value: "vertical"
|
|
15504
15504
|
}];
|
|
15505
|
-
function
|
|
15505
|
+
function B_({
|
|
15506
15506
|
control: e,
|
|
15507
15507
|
index: t,
|
|
15508
15508
|
remove: n,
|
|
@@ -15544,7 +15544,7 @@ function q_({
|
|
|
15544
15544
|
field: l
|
|
15545
15545
|
}) => (
|
|
15546
15546
|
// @ts-expect-error type of onChange
|
|
15547
|
-
/* @__PURE__ */ r.jsx(A, { label: "Orientation", data:
|
|
15547
|
+
/* @__PURE__ */ r.jsx(A, { label: "Orientation", data: q_, required: !0, sx: {
|
|
15548
15548
|
flex: 1
|
|
15549
15549
|
}, ...l })
|
|
15550
15550
|
) }),
|
|
@@ -15657,7 +15657,7 @@ function W_({
|
|
|
15657
15657
|
l.map((p, x) => /* @__PURE__ */ r.jsx(f.Tab, { value: x.toString(), children: x + 1 }, p.id)),
|
|
15658
15658
|
/* @__PURE__ */ r.jsx(f.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Ae, { size: 18, color: "#228be6" }) })
|
|
15659
15659
|
] }),
|
|
15660
|
-
l.map((p, x) => /* @__PURE__ */ r.jsx(f.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(
|
|
15660
|
+
l.map((p, x) => /* @__PURE__ */ r.jsx(f.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(B_, { control: e, index: x, remove: o, watch: t, variableOptions: d, yAxisOptions: h }) }, p.id))
|
|
15661
15661
|
] });
|
|
15662
15662
|
}
|
|
15663
15663
|
const G_ = ({
|
|
@@ -15679,7 +15679,7 @@ const G_ = ({
|
|
|
15679
15679
|
const [n, {
|
|
15680
15680
|
setTrue: s,
|
|
15681
15681
|
setFalse: i
|
|
15682
|
-
}] = $e(), [o, a] =
|
|
15682
|
+
}] = $e(), [o, a] = q(e), l = () => {
|
|
15683
15683
|
i();
|
|
15684
15684
|
const {
|
|
15685
15685
|
type: h,
|
|
@@ -15804,7 +15804,7 @@ const G_ = ({
|
|
|
15804
15804
|
const [n, {
|
|
15805
15805
|
setTrue: s,
|
|
15806
15806
|
setFalse: i
|
|
15807
|
-
}] = $e(), [o, a] =
|
|
15807
|
+
}] = $e(), [o, a] = q(e), l = () => {
|
|
15808
15808
|
i();
|
|
15809
15809
|
const {
|
|
15810
15810
|
type: h,
|
|
@@ -16021,7 +16021,7 @@ const aS = ({
|
|
|
16021
16021
|
id: Date.now().toString(),
|
|
16022
16022
|
data_key: "",
|
|
16023
16023
|
name: ""
|
|
16024
|
-
}), c = t("tooltip.metrics.0.id"), [d, u] =
|
|
16024
|
+
}), c = t("tooltip.metrics.0.id"), [d, u] = q(() => c ?? null);
|
|
16025
16025
|
return O(() => {
|
|
16026
16026
|
c && u((h) => h !== null ? h : c);
|
|
16027
16027
|
}, [c]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -16103,7 +16103,7 @@ const uS = ({
|
|
|
16103
16103
|
const [s, {
|
|
16104
16104
|
setTrue: i,
|
|
16105
16105
|
setFalse: o
|
|
16106
|
-
}] = $e(), [a, l] =
|
|
16106
|
+
}] = $e(), [a, l] = q(e);
|
|
16107
16107
|
O(() => {
|
|
16108
16108
|
l(e);
|
|
16109
16109
|
}, [e]);
|
|
@@ -16276,7 +16276,7 @@ function gS({
|
|
|
16276
16276
|
...o[d]
|
|
16277
16277
|
})), l = () => s({
|
|
16278
16278
|
name: "",
|
|
16279
|
-
label_formatter:
|
|
16279
|
+
label_formatter: qe,
|
|
16280
16280
|
min: "",
|
|
16281
16281
|
max: "",
|
|
16282
16282
|
show: !0,
|
|
@@ -16814,7 +16814,7 @@ const NS = {
|
|
|
16814
16814
|
group_key: "",
|
|
16815
16815
|
levels: []
|
|
16816
16816
|
};
|
|
16817
|
-
function
|
|
16817
|
+
function qS(e) {
|
|
16818
16818
|
const t = new Set(e.map((s) => s.parent_id)), n = new Set(e.map((s) => s.id));
|
|
16819
16819
|
return t.forEach((s) => {
|
|
16820
16820
|
s === null || n.has(s) || e.push({
|
|
@@ -16824,8 +16824,8 @@ function BS(e) {
|
|
|
16824
16824
|
});
|
|
16825
16825
|
}), e;
|
|
16826
16826
|
}
|
|
16827
|
-
function
|
|
16828
|
-
const t =
|
|
16827
|
+
function BS(e) {
|
|
16828
|
+
const t = qS(e).map((i) => ({
|
|
16829
16829
|
...i,
|
|
16830
16830
|
children: []
|
|
16831
16831
|
})), n = _.keyBy(t, (i) => i.id), s = [];
|
|
@@ -16852,7 +16852,7 @@ function WS(e, t) {
|
|
|
16852
16852
|
name: d[o.columnKey],
|
|
16853
16853
|
value: d[a.columnKey] ? Number(d[a.columnKey]) : d[a.columnKey]
|
|
16854
16854
|
}));
|
|
16855
|
-
return i ?
|
|
16855
|
+
return i ? BS(c) : c;
|
|
16856
16856
|
}
|
|
16857
16857
|
const GS = (e) => ({
|
|
16858
16858
|
treePathInfo: t,
|
|
@@ -17095,7 +17095,7 @@ const ZS = [{
|
|
|
17095
17095
|
position: "inside",
|
|
17096
17096
|
padding: 0
|
|
17097
17097
|
}
|
|
17098
|
-
}), c = t("levels.0.id"), [d, u] =
|
|
17098
|
+
}), c = t("levels.0.id"), [d, u] = q(() => c ?? null);
|
|
17099
17099
|
return O(() => {
|
|
17100
17100
|
c && u((h) => h !== null ? h : c);
|
|
17101
17101
|
}, [c]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -17145,7 +17145,7 @@ function rC({
|
|
|
17145
17145
|
}, [i]);
|
|
17146
17146
|
const u = c(), h = T(() => !_.isEqual(u, s), [u, s]);
|
|
17147
17147
|
l(["label_key", "value_key", "group_key", "levels"]);
|
|
17148
|
-
const [p, x] =
|
|
17148
|
+
const [p, x] = q("Data");
|
|
17149
17149
|
return /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", children: [
|
|
17150
17150
|
/* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
|
|
17151
17151
|
borderBottom: "1px solid #eee",
|
|
@@ -17456,7 +17456,7 @@ function _C({
|
|
|
17456
17456
|
const n = Hp({
|
|
17457
17457
|
parentRef: e,
|
|
17458
17458
|
size: t.length,
|
|
17459
|
-
estimateSize:
|
|
17459
|
+
estimateSize: Be(() => 28, []),
|
|
17460
17460
|
overscan: 20
|
|
17461
17461
|
}), {
|
|
17462
17462
|
virtualItems: s,
|
|
@@ -17620,7 +17620,7 @@ const zC = (e) => {
|
|
|
17620
17620
|
const t = jt(e), n = yt(t.triggerManager, po.id), {
|
|
17621
17621
|
colorManager: s
|
|
17622
17622
|
} = Ht(Ot);
|
|
17623
|
-
return
|
|
17623
|
+
return Be((i) => new IC(e.getColIndex, i, n, t, s), [n, t, e.getColIndex]);
|
|
17624
17624
|
};
|
|
17625
17625
|
function MC({
|
|
17626
17626
|
queryData: e,
|
|
@@ -17647,7 +17647,7 @@ function MC({
|
|
|
17647
17647
|
width: "",
|
|
17648
17648
|
cellBackgroundColor: ""
|
|
17649
17649
|
})) : c, [l, c, e]), x = zC({
|
|
17650
|
-
getColIndex:
|
|
17650
|
+
getColIndex: Be((Re) => p.indexOf(Re.column.columnDef.meta), [p]),
|
|
17651
17651
|
vizManager: i.vizManager,
|
|
17652
17652
|
instance: o
|
|
17653
17653
|
}), y = T(() => {
|
|
@@ -17663,7 +17663,7 @@ function MC({
|
|
|
17663
17663
|
minSize: typeof wt.width == "number" ? wt.width : void 0
|
|
17664
17664
|
});
|
|
17665
17665
|
});
|
|
17666
|
-
}, [p, x]), [S, M] =
|
|
17666
|
+
}, [p, x]), [S, M] = q([]), F = Gl({
|
|
17667
17667
|
data: e,
|
|
17668
17668
|
state: {
|
|
17669
17669
|
sorting: S
|
|
@@ -17821,7 +17821,7 @@ function FC(e) {
|
|
|
17821
17821
|
value: i
|
|
17822
17822
|
} = e, {
|
|
17823
17823
|
classes: o
|
|
17824
|
-
} = gd(), [a, l] =
|
|
17824
|
+
} = gd(), [a, l] = q(i), [c, {
|
|
17825
17825
|
setTrue: d,
|
|
17826
17826
|
setFalse: u
|
|
17827
17827
|
}] = $e(!1), h = s % 2 === 1, p = h && i != null, x = !h && i != null, y = `map ${i} to color ${s}`, S = () => {
|
|
@@ -17873,7 +17873,7 @@ const OC = k(({
|
|
|
17873
17873
|
value: t,
|
|
17874
17874
|
onChange: n,
|
|
17875
17875
|
colorManager: s
|
|
17876
|
-
} = e, i = s.getColorInterpolations(), [o, a] =
|
|
17876
|
+
} = e, i = s.getColorInterpolations(), [o, a] = q(t), l = s.decodeInterpolation(o.interpolation) || i[0], [c, {
|
|
17877
17877
|
setTrue: d,
|
|
17878
17878
|
setFalse: u
|
|
17879
17879
|
}] = $e(), h = i.map((M) => ({
|
|
@@ -17923,11 +17923,11 @@ const OC = k(({
|
|
|
17923
17923
|
function bd(e) {
|
|
17924
17924
|
return e ? fl(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
|
|
17925
17925
|
}
|
|
17926
|
-
function
|
|
17926
|
+
function qC(e, t) {
|
|
17927
17927
|
var n;
|
|
17928
17928
|
return bd(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
|
|
17929
17929
|
}
|
|
17930
|
-
function
|
|
17930
|
+
function BC(e, t) {
|
|
17931
17931
|
return hl(t) ? t : {
|
|
17932
17932
|
steps: NC,
|
|
17933
17933
|
interpolation: e.encodeColor(e.getColorInterpolations()[0])
|
|
@@ -17936,7 +17936,7 @@ function qC(e, t) {
|
|
|
17936
17936
|
const WC = ue((e, t) => {
|
|
17937
17937
|
const {
|
|
17938
17938
|
colorManager: n
|
|
17939
|
-
} = Ht(Ot), [s, i] =
|
|
17939
|
+
} = Ht(Ot), [s, i] = q(bd(e.value)), [o, a] = q(qC(n, e.value)), l = ra(o), [c, d] = q(BC(n, e.value)), u = ra(c), h = (y) => {
|
|
17940
17940
|
var S, M, F;
|
|
17941
17941
|
i(y || "none"), y === "static" ? (S = e.onChange) == null || S.call(e, l.current) : y === "none" || !y ? (M = e.onChange) == null || M.call(e, "none") : (F = e.onChange) == null || F.call(e, u.current);
|
|
17942
17942
|
}, p = (y) => {
|
|
@@ -17968,7 +17968,7 @@ const WC = ue((e, t) => {
|
|
|
17968
17968
|
const [s, {
|
|
17969
17969
|
setTrue: i,
|
|
17970
17970
|
setFalse: o
|
|
17971
|
-
}] = $e(), [a, l] =
|
|
17971
|
+
}] = $e(), [a, l] = q(e), c = () => {
|
|
17972
17972
|
o(), t(a);
|
|
17973
17973
|
}, d = () => {
|
|
17974
17974
|
o(), l(e);
|
|
@@ -18411,7 +18411,7 @@ const jd = L.forwardRef(o1), a1 = ({
|
|
|
18411
18411
|
const [s, {
|
|
18412
18412
|
setTrue: i,
|
|
18413
18413
|
setFalse: o
|
|
18414
|
-
}] = $e(), [a, l] =
|
|
18414
|
+
}] = $e(), [a, l] = q(e), c = () => {
|
|
18415
18415
|
o(), t(a);
|
|
18416
18416
|
}, d = () => {
|
|
18417
18417
|
o(), l(e);
|
|
@@ -18567,7 +18567,7 @@ async function x1(e, t, n, s = {}) {
|
|
|
18567
18567
|
params: s.params,
|
|
18568
18568
|
headers: i
|
|
18569
18569
|
};
|
|
18570
|
-
return o.data = s.string ? JSON.stringify(n) : n,
|
|
18570
|
+
return o.data = s.string ? JSON.stringify(n) : n, Bt(o).then((a) => a.data).catch((a) => Promise.reject(a));
|
|
18571
18571
|
}
|
|
18572
18572
|
const m1 = ({
|
|
18573
18573
|
conf: e,
|
|
@@ -18875,7 +18875,7 @@ function D1(e, t, n) {
|
|
|
18875
18875
|
});
|
|
18876
18876
|
}
|
|
18877
18877
|
function I1(e, t, n) {
|
|
18878
|
-
const s =
|
|
18878
|
+
const s = Bn(e.heat_block.min, n), i = Bn(e.heat_block.max, n);
|
|
18879
18879
|
return {
|
|
18880
18880
|
min: s,
|
|
18881
18881
|
max: i,
|
|
@@ -18971,7 +18971,7 @@ const vd = {
|
|
|
18971
18971
|
},
|
|
18972
18972
|
name: "Value",
|
|
18973
18973
|
data_key: "",
|
|
18974
|
-
value_formatter:
|
|
18974
|
+
value_formatter: qe
|
|
18975
18975
|
},
|
|
18976
18976
|
tooltip: {
|
|
18977
18977
|
metrics: []
|
|
@@ -18994,7 +18994,7 @@ function O1({
|
|
|
18994
18994
|
interactionManager: i,
|
|
18995
18995
|
variables: o
|
|
18996
18996
|
}) {
|
|
18997
|
-
const a = In(t, e.calendar.data_key), l = yt(i.triggerManager, vd.id), c =
|
|
18997
|
+
const a = In(t, e.calendar.data_key), l = yt(i.triggerManager, vd.id), c = Be((h) => {
|
|
18998
18998
|
const [p, x] = h.value, y = _.get(a, p, {
|
|
18999
18999
|
error: "rowData is not found"
|
|
19000
19000
|
});
|
|
@@ -19052,10 +19052,10 @@ function P1({
|
|
|
19052
19052
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
19053
19053
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.min", control: e, render: ({
|
|
19054
19054
|
field: n
|
|
19055
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19055
|
+
}) => /* @__PURE__ */ r.jsx(qn, { label: "Min Value", ...n }) }),
|
|
19056
19056
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.max", control: e, render: ({
|
|
19057
19057
|
field: n
|
|
19058
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19058
|
+
}) => /* @__PURE__ */ r.jsx(qn, { label: "Max Value", ...n }) })
|
|
19059
19059
|
] }),
|
|
19060
19060
|
/* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
19061
19061
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.value_formatter", control: e, render: ({
|
|
@@ -19103,7 +19103,7 @@ const V1 = ({
|
|
|
19103
19103
|
id: Date.now().toString(),
|
|
19104
19104
|
data_key: "",
|
|
19105
19105
|
name: ""
|
|
19106
|
-
}), c = t("tooltip.metrics.0.id"), [d, u] =
|
|
19106
|
+
}), c = t("tooltip.metrics.0.id"), [d, u] = q(() => c ?? null);
|
|
19107
19107
|
return O(() => {
|
|
19108
19108
|
c && u((h) => h !== null ? h : c);
|
|
19109
19109
|
}, [c]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -19133,13 +19133,13 @@ const V1 = ({
|
|
|
19133
19133
|
] })
|
|
19134
19134
|
] });
|
|
19135
19135
|
};
|
|
19136
|
-
function
|
|
19136
|
+
function q1({
|
|
19137
19137
|
control: e,
|
|
19138
19138
|
watch: t
|
|
19139
19139
|
}) {
|
|
19140
19140
|
return /* @__PURE__ */ r.jsx(N1, { control: e, watch: t });
|
|
19141
19141
|
}
|
|
19142
|
-
const
|
|
19142
|
+
const B1 = [{
|
|
19143
19143
|
label: "Chinese",
|
|
19144
19144
|
value: "ZH"
|
|
19145
19145
|
}, {
|
|
@@ -19163,7 +19163,7 @@ function W1({
|
|
|
19163
19163
|
control: e,
|
|
19164
19164
|
render: ({
|
|
19165
19165
|
field: n
|
|
19166
|
-
}) => /* @__PURE__ */ r.jsx(A, { label: "Language", required: !0, data:
|
|
19166
|
+
}) => /* @__PURE__ */ r.jsx(A, { label: "Language", required: !0, data: B1, sx: {
|
|
19167
19167
|
flex: 1
|
|
19168
19168
|
}, ...n })
|
|
19169
19169
|
}
|
|
@@ -19218,7 +19218,7 @@ function G1({
|
|
|
19218
19218
|
] }),
|
|
19219
19219
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Calendar", children: /* @__PURE__ */ r.jsx(W1, { control: o, watch: l }) }),
|
|
19220
19220
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Heat Block", children: /* @__PURE__ */ r.jsx(P1, { control: o, watch: l }) }),
|
|
19221
|
-
/* @__PURE__ */ r.jsx(f.Panel, { value: "Tooltip", children: /* @__PURE__ */ r.jsx(
|
|
19221
|
+
/* @__PURE__ */ r.jsx(f.Panel, { value: "Tooltip", children: /* @__PURE__ */ r.jsx(q1, { control: o, watch: l }) })
|
|
19222
19222
|
] })
|
|
19223
19223
|
] }) });
|
|
19224
19224
|
}
|
|
@@ -19320,7 +19320,7 @@ const K1 = {
|
|
|
19320
19320
|
name: "X Axis",
|
|
19321
19321
|
data_key: "",
|
|
19322
19322
|
position: "bottom",
|
|
19323
|
-
label_formatter:
|
|
19323
|
+
label_formatter: qe,
|
|
19324
19324
|
show: !0
|
|
19325
19325
|
}],
|
|
19326
19326
|
y_axis: {
|
|
@@ -19349,7 +19349,7 @@ function Y1() {
|
|
|
19349
19349
|
name: e,
|
|
19350
19350
|
data_key: "",
|
|
19351
19351
|
position: "bottom",
|
|
19352
|
-
label_formatter:
|
|
19352
|
+
label_formatter: qe,
|
|
19353
19353
|
show: !0
|
|
19354
19354
|
};
|
|
19355
19355
|
}
|
|
@@ -19721,7 +19721,7 @@ function fk({
|
|
|
19721
19721
|
interactionManager: i,
|
|
19722
19722
|
variables: o
|
|
19723
19723
|
}) {
|
|
19724
|
-
const a = In(t, e.y_axis.data_key), l = yt(i.triggerManager,
|
|
19724
|
+
const a = In(t, e.y_axis.data_key), l = yt(i.triggerManager, Bi.id), c = Be((h) => {
|
|
19725
19725
|
const p = _.get(a, h.name, {
|
|
19726
19726
|
error: "rowData is not found"
|
|
19727
19727
|
});
|
|
@@ -19916,7 +19916,7 @@ function vk({
|
|
|
19916
19916
|
] });
|
|
19917
19917
|
}
|
|
19918
19918
|
function wk(e) {
|
|
19919
|
-
const [t, n] =
|
|
19919
|
+
const [t, n] = q(e);
|
|
19920
19920
|
return O(() => {
|
|
19921
19921
|
n(e);
|
|
19922
19922
|
}, [e]), {
|
|
@@ -20681,7 +20681,7 @@ function Nk(e, t, n, s) {
|
|
|
20681
20681
|
show_in_legend: !0
|
|
20682
20682
|
}));
|
|
20683
20683
|
}
|
|
20684
|
-
function
|
|
20684
|
+
function qk(e, t, n, s) {
|
|
20685
20685
|
const i = $(t.data_key), o = t.name, a = n.map((l) => {
|
|
20686
20686
|
const c = _.sumBy(s[l], i.columnKey);
|
|
20687
20687
|
return [l, c];
|
|
@@ -20696,12 +20696,12 @@ function Bk(e, t, n, s) {
|
|
|
20696
20696
|
show_in_legend: !1
|
|
20697
20697
|
};
|
|
20698
20698
|
}
|
|
20699
|
-
function
|
|
20699
|
+
function Bk(e, t, n, s) {
|
|
20700
20700
|
const a = {
|
|
20701
20701
|
barMinWidth: 5,
|
|
20702
20702
|
barMaxWidth: 20
|
|
20703
20703
|
};
|
|
20704
|
-
return [Ok(e, n, s), Pk(e, n, s, a), ...Nk(e, n, s, a),
|
|
20704
|
+
return [Ok(e, n, s), Pk(e, n, s, a), ...Nk(e, n, s, a), qk(e, t, n, s)];
|
|
20705
20705
|
}
|
|
20706
20706
|
function Wk(e, t) {
|
|
20707
20707
|
const {
|
|
@@ -20943,7 +20943,7 @@ function Xk(e, t) {
|
|
|
20943
20943
|
};
|
|
20944
20944
|
}
|
|
20945
20945
|
function Jk(e, t, n) {
|
|
20946
|
-
const s = Hk(e, n), i = $(e.x_axis.data_key), o = _.uniqBy(n[i.queryID], i.columnKey).map((u) => u[i.columnKey]), a = _.groupBy(s, i.columnKey), l = Xk(e, t), c =
|
|
20946
|
+
const s = Hk(e, n), i = $(e.x_axis.data_key), o = _.uniqBy(n[i.queryID], i.columnKey).map((u) => u[i.columnKey]), a = _.groupBy(s, i.columnKey), l = Xk(e, t), c = Bk(e, l, o, a), d = {
|
|
20947
20947
|
xAxis: Wk(e, o),
|
|
20948
20948
|
yAxis: Gk(l),
|
|
20949
20949
|
series: c,
|
|
@@ -21048,7 +21048,7 @@ function iT({
|
|
|
21048
21048
|
} = n, {
|
|
21049
21049
|
estimated_value: c,
|
|
21050
21050
|
actual_value: d
|
|
21051
|
-
} = l.data_keys, [u, h] =
|
|
21051
|
+
} = l.data_keys, [u, h] = q(d);
|
|
21052
21052
|
if (O(() => {
|
|
21053
21053
|
h((y) => y || d);
|
|
21054
21054
|
}, [d]), !a.data_key || !c || !d || !i || !o)
|
|
@@ -21127,7 +21127,7 @@ const aT = ({
|
|
|
21127
21127
|
id: Date.now().toString(),
|
|
21128
21128
|
data_key: "",
|
|
21129
21129
|
name: ""
|
|
21130
|
-
}), c = t("metrics.0.id"), [d, u] =
|
|
21130
|
+
}), c = t("metrics.0.id"), [d, u] = q(() => c ?? null);
|
|
21131
21131
|
return O(() => {
|
|
21132
21132
|
c && u((h) => h !== null ? h : c);
|
|
21133
21133
|
}, [c]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -21329,14 +21329,14 @@ function xT() {
|
|
|
21329
21329
|
value: "",
|
|
21330
21330
|
basis: ""
|
|
21331
21331
|
},
|
|
21332
|
-
formatter:
|
|
21332
|
+
formatter: qe,
|
|
21333
21333
|
postfix: {
|
|
21334
21334
|
type: "text",
|
|
21335
21335
|
value: ""
|
|
21336
21336
|
}
|
|
21337
21337
|
};
|
|
21338
21338
|
}
|
|
21339
|
-
const
|
|
21339
|
+
const qa = ({
|
|
21340
21340
|
postfix: e
|
|
21341
21341
|
}) => e ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
21342
21342
|
/* @__PURE__ */ r.jsx(j, { size: "12px", color: "#818388", sx: {
|
|
@@ -21370,7 +21370,7 @@ const Ba = ({
|
|
|
21370
21370
|
/* @__PURE__ */ r.jsx(j, { size: "24px", fw: "bold", color: "#3D3E45", sx: {
|
|
21371
21371
|
lineHeight: 1
|
|
21372
21372
|
}, children: Z(t[s.value], i) }),
|
|
21373
|
-
/* @__PURE__ */ r.jsx(
|
|
21373
|
+
/* @__PURE__ */ r.jsx(qa, { postfix: l })
|
|
21374
21374
|
] })
|
|
21375
21375
|
] }),
|
|
21376
21376
|
/* @__PURE__ */ r.jsxs(w, { spacing: 12, children: [
|
|
@@ -21379,7 +21379,7 @@ const Ba = ({
|
|
|
21379
21379
|
/* @__PURE__ */ r.jsx(j, { size: "12px", color: "#3D3E45", sx: {
|
|
21380
21380
|
lineHeight: 1
|
|
21381
21381
|
}, children: Z(t[s.basis], i) }),
|
|
21382
|
-
/* @__PURE__ */ r.jsx(
|
|
21382
|
+
/* @__PURE__ */ r.jsx(qa, { postfix: l })
|
|
21383
21383
|
] })
|
|
21384
21384
|
] })
|
|
21385
21385
|
] });
|
|
@@ -21503,7 +21503,7 @@ const jT = ({
|
|
|
21503
21503
|
}, d = T(() => n.map((y) => ({
|
|
21504
21504
|
label: y.name,
|
|
21505
21505
|
value: y.name
|
|
21506
|
-
})), [n]), u = _.get(l, "0.id", null), [h, p] =
|
|
21506
|
+
})), [n]), u = _.get(l, "0.id", null), [h, p] = q(u);
|
|
21507
21507
|
O(() => {
|
|
21508
21508
|
p((y) => y || u);
|
|
21509
21509
|
}, [u]);
|
|
@@ -21695,10 +21695,10 @@ function DT({
|
|
|
21695
21695
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
21696
21696
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.min", control: e, render: ({
|
|
21697
21697
|
field: s
|
|
21698
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21698
|
+
}) => /* @__PURE__ */ r.jsx(qn, { label: "Min Value", ...s }) }),
|
|
21699
21699
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.max", control: e, render: ({
|
|
21700
21700
|
field: s
|
|
21701
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21701
|
+
}) => /* @__PURE__ */ r.jsx(qn, { label: "Max Value", ...s }) })
|
|
21702
21702
|
] }),
|
|
21703
21703
|
/* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
21704
21704
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.value_formatter", control: e, render: ({
|
|
@@ -21760,7 +21760,7 @@ const IT = ({
|
|
|
21760
21760
|
id: Date.now().toString(),
|
|
21761
21761
|
data_key: "",
|
|
21762
21762
|
name: ""
|
|
21763
|
-
}), c = t("tooltip.metrics.0.id"), [d, u] =
|
|
21763
|
+
}), c = t("tooltip.metrics.0.id"), [d, u] = q(() => c ?? null);
|
|
21764
21764
|
return O(() => {
|
|
21765
21765
|
c && u((h) => h !== null ? h : c);
|
|
21766
21766
|
}, [c]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -21826,7 +21826,7 @@ const LT = ({
|
|
|
21826
21826
|
const [s, {
|
|
21827
21827
|
setTrue: i,
|
|
21828
21828
|
setFalse: o
|
|
21829
|
-
}] = $e(), [a, l] =
|
|
21829
|
+
}] = $e(), [a, l] = q(e);
|
|
21830
21830
|
O(() => {
|
|
21831
21831
|
l(e);
|
|
21832
21832
|
}, [e]);
|
|
@@ -22011,7 +22011,7 @@ const jo = {
|
|
|
22011
22011
|
},
|
|
22012
22012
|
name: "Value",
|
|
22013
22013
|
data_key: "",
|
|
22014
|
-
value_formatter:
|
|
22014
|
+
value_formatter: qe,
|
|
22015
22015
|
label: {
|
|
22016
22016
|
show: !1,
|
|
22017
22017
|
fontSize: 10
|
|
@@ -22120,7 +22120,7 @@ const Sd = {
|
|
|
22120
22120
|
valueType: "object"
|
|
22121
22121
|
}]
|
|
22122
22122
|
};
|
|
22123
|
-
function
|
|
22123
|
+
function Ba({
|
|
22124
22124
|
enabled: e,
|
|
22125
22125
|
func_content: t
|
|
22126
22126
|
}) {
|
|
@@ -22135,7 +22135,7 @@ function qa({
|
|
|
22135
22135
|
};
|
|
22136
22136
|
}
|
|
22137
22137
|
function VT(e) {
|
|
22138
|
-
const t =
|
|
22138
|
+
const t = Ba(e.x_axis.axisLabel.formatter), n = Ba(e.y_axis.axisLabel.formatter);
|
|
22139
22139
|
return {
|
|
22140
22140
|
x_axis: t,
|
|
22141
22141
|
y_axis: n
|
|
@@ -22154,7 +22154,7 @@ function NT(e) {
|
|
|
22154
22154
|
}
|
|
22155
22155
|
};
|
|
22156
22156
|
}
|
|
22157
|
-
function
|
|
22157
|
+
function qT(e) {
|
|
22158
22158
|
let t = 0;
|
|
22159
22159
|
return e.x_axis.name && (t += 20), {
|
|
22160
22160
|
top: 45,
|
|
@@ -22164,7 +22164,7 @@ function BT(e) {
|
|
|
22164
22164
|
containLabel: !0
|
|
22165
22165
|
};
|
|
22166
22166
|
}
|
|
22167
|
-
function
|
|
22167
|
+
function BT(e, t) {
|
|
22168
22168
|
const {
|
|
22169
22169
|
x_axis: n,
|
|
22170
22170
|
y_axis: s,
|
|
@@ -22279,7 +22279,7 @@ function QT(e, t, n, s) {
|
|
|
22279
22279
|
});
|
|
22280
22280
|
}
|
|
22281
22281
|
function HT(e, t) {
|
|
22282
|
-
const n =
|
|
22282
|
+
const n = Bn(e.heat_block.min, t), s = Bn(e.heat_block.max, t);
|
|
22283
22283
|
return {
|
|
22284
22284
|
min: n,
|
|
22285
22285
|
max: s,
|
|
@@ -22370,9 +22370,9 @@ function YT(e, t, n) {
|
|
|
22370
22370
|
return {
|
|
22371
22371
|
xAxis: UT(e, t, i.x_axis),
|
|
22372
22372
|
yAxis: KT(e, t, i.y_axis),
|
|
22373
|
-
series:
|
|
22373
|
+
series: BT(e, t),
|
|
22374
22374
|
tooltip: QT(e, t, i, o),
|
|
22375
|
-
grid:
|
|
22375
|
+
grid: qT(e),
|
|
22376
22376
|
visualMap: HT(e, s)
|
|
22377
22377
|
};
|
|
22378
22378
|
}
|
|
@@ -22388,7 +22388,7 @@ function XT({
|
|
|
22388
22388
|
const a = T(() => {
|
|
22389
22389
|
const h = $(e.x_axis.data_key), p = $(e.y_axis.data_key);
|
|
22390
22390
|
return _.keyBy(t[h.queryID], (x) => `${x[h.columnKey]}---${x[p.columnKey]}`);
|
|
22391
|
-
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = yt(i.triggerManager, Sd.id), c =
|
|
22391
|
+
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = yt(i.triggerManager, Sd.id), c = Be((h) => {
|
|
22392
22392
|
const [p, x] = h.value, y = _.get(a, `${p}---${x}`, {
|
|
22393
22393
|
error: "rowData is not found"
|
|
22394
22394
|
});
|
|
@@ -23071,9 +23071,9 @@ const lD = ({
|
|
|
23071
23071
|
classNames: t,
|
|
23072
23072
|
styles: n,
|
|
23073
23073
|
unstyled: s
|
|
23074
|
-
}), [y, S] =
|
|
23074
|
+
}), [y, S] = q(!1), M = (re) => {
|
|
23075
23075
|
S(re);
|
|
23076
|
-
}, F = y && (l == null ? void 0 : l.length) > 0, [V, Y] =
|
|
23076
|
+
}, F = y && (l == null ? void 0 : l.length) > 0, [V, Y] = q(""), de = T(() => {
|
|
23077
23077
|
if (!V)
|
|
23078
23078
|
return d;
|
|
23079
23079
|
const re = V.toLowerCase(), Se = (De) => {
|
|
@@ -23446,7 +23446,7 @@ const fD = ({
|
|
|
23446
23446
|
classNames: t,
|
|
23447
23447
|
styles: n,
|
|
23448
23448
|
unstyled: s
|
|
23449
|
-
}), [S, M] =
|
|
23449
|
+
}), [S, M] = q(!1), F = (Y) => {
|
|
23450
23450
|
M(Y);
|
|
23451
23451
|
}, V = S && (l == null ? void 0 : l.length) > 0;
|
|
23452
23452
|
return /* @__PURE__ */ r.jsxs(w, { spacing: 3, children: [
|
|
@@ -23499,7 +23499,7 @@ const fD = ({
|
|
|
23499
23499
|
treeData: i,
|
|
23500
23500
|
treeDataLoading: o,
|
|
23501
23501
|
errorMessage: a
|
|
23502
|
-
} = t, [l, c] =
|
|
23502
|
+
} = t, [l, c] = q(t.defaultSelectionOptions), d = (x) => {
|
|
23503
23503
|
c(x);
|
|
23504
23504
|
const y = x.map((S) => S.value);
|
|
23505
23505
|
s(y, !1);
|
|
@@ -23547,7 +23547,7 @@ const fD = ({
|
|
|
23547
23547
|
}) => {
|
|
23548
23548
|
const {
|
|
23549
23549
|
searchButtonProps: t
|
|
23550
|
-
} =
|
|
23550
|
+
} = qm(), {
|
|
23551
23551
|
children: n = "Search",
|
|
23552
23552
|
type: s,
|
|
23553
23553
|
...i
|
|
@@ -24202,7 +24202,7 @@ const PD = m.model("FilterDateRangeConfigMeta", {
|
|
|
24202
24202
|
delay: 0
|
|
24203
24203
|
}));
|
|
24204
24204
|
}
|
|
24205
|
-
})),
|
|
24205
|
+
})), qD = () => Fd.create({
|
|
24206
24206
|
_name: "multi-select",
|
|
24207
24207
|
default_value: [],
|
|
24208
24208
|
static_options: [],
|
|
@@ -24260,7 +24260,7 @@ const PD = m.model("FilterDateRangeConfigMeta", {
|
|
|
24260
24260
|
delay: 0
|
|
24261
24261
|
}));
|
|
24262
24262
|
}
|
|
24263
|
-
})),
|
|
24263
|
+
})), BD = () => Od.create({
|
|
24264
24264
|
_name: "select",
|
|
24265
24265
|
required: !1,
|
|
24266
24266
|
default_value: "",
|
|
@@ -24506,10 +24506,10 @@ const Vd = m.compose("FilterTreeSelectConfigMeta", m.model({
|
|
|
24506
24506
|
setType(t) {
|
|
24507
24507
|
switch (t) {
|
|
24508
24508
|
case Ee.Select:
|
|
24509
|
-
e.config =
|
|
24509
|
+
e.config = BD();
|
|
24510
24510
|
break;
|
|
24511
24511
|
case Ee.MultiSelect:
|
|
24512
|
-
e.config =
|
|
24512
|
+
e.config = qD();
|
|
24513
24513
|
break;
|
|
24514
24514
|
case Ee.TreeSelect:
|
|
24515
24515
|
e.config = QD();
|
|
@@ -24536,9 +24536,9 @@ const Vd = m.compose("FilterTreeSelectConfigMeta", m.model({
|
|
|
24536
24536
|
e.default_value_func = t;
|
|
24537
24537
|
}
|
|
24538
24538
|
}));
|
|
24539
|
-
var
|
|
24540
|
-
const
|
|
24541
|
-
_name: m.literal(
|
|
24539
|
+
var B = /* @__PURE__ */ ((e) => (e.Division = "div", e.Modal = "modal", e.Tabs = "tabs", e))(B || {});
|
|
24540
|
+
const qd = m.model("ViewDivisionConfig", {
|
|
24541
|
+
_name: m.literal(B.Division)
|
|
24542
24542
|
}).views((e) => ({
|
|
24543
24543
|
get json() {
|
|
24544
24544
|
const {
|
|
@@ -24548,8 +24548,8 @@ const Bd = m.model("ViewDivisionConfig", {
|
|
|
24548
24548
|
_name: t
|
|
24549
24549
|
};
|
|
24550
24550
|
}
|
|
24551
|
-
})), HD = () =>
|
|
24552
|
-
_name:
|
|
24551
|
+
})), HD = () => qd.create({
|
|
24552
|
+
_name: B.Division
|
|
24553
24553
|
}), UD = m.model("CustomModalTitleModel", {
|
|
24554
24554
|
enabled: m.optional(m.boolean, !1),
|
|
24555
24555
|
func_content: m.optional(m.string, "")
|
|
@@ -24598,8 +24598,8 @@ const Bd = m.model("ViewDivisionConfig", {
|
|
|
24598
24598
|
enabled: !1,
|
|
24599
24599
|
func_content: ["function text({ filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
|
|
24600
24600
|
`)
|
|
24601
|
-
},
|
|
24602
|
-
_name: m.literal(
|
|
24601
|
+
}, Bd = m.model("ViewModalConfig", {
|
|
24602
|
+
_name: m.literal(B.Modal),
|
|
24603
24603
|
width: m.string,
|
|
24604
24604
|
height: m.string,
|
|
24605
24605
|
custom_modal_title: m.optional(UD, bi)
|
|
@@ -24625,8 +24625,8 @@ const Bd = m.model("ViewDivisionConfig", {
|
|
|
24625
24625
|
setHeight(t) {
|
|
24626
24626
|
e.height = t;
|
|
24627
24627
|
}
|
|
24628
|
-
})), KD = () =>
|
|
24629
|
-
_name:
|
|
24628
|
+
})), KD = () => Bd.create({
|
|
24629
|
+
_name: B.Modal,
|
|
24630
24630
|
width: "90vw",
|
|
24631
24631
|
height: "90vh"
|
|
24632
24632
|
}), YD = m.model("ViewTabsTabModel", {
|
|
@@ -24660,7 +24660,7 @@ const Bd = m.model("ViewDivisionConfig", {
|
|
|
24660
24660
|
e.color = t;
|
|
24661
24661
|
}
|
|
24662
24662
|
})), Wd = m.model("ViewTabsConfig", {
|
|
24663
|
-
_name: m.literal(
|
|
24663
|
+
_name: m.literal(B.Modal),
|
|
24664
24664
|
tabs: m.optional(m.array(YD), []),
|
|
24665
24665
|
variant: m.optional(m.enumeration("variant", ["default", "outline", "pills"]), "default"),
|
|
24666
24666
|
orientation: m.optional(m.enumeration("orientation", ["horizontal", "vertical"]), "horizontal"),
|
|
@@ -24707,13 +24707,13 @@ const Bd = m.model("ViewDivisionConfig", {
|
|
|
24707
24707
|
e.tabs.splice(t, 1);
|
|
24708
24708
|
}
|
|
24709
24709
|
})), XD = () => Wd.create({
|
|
24710
|
-
_name:
|
|
24710
|
+
_name: B.Modal,
|
|
24711
24711
|
tabs: []
|
|
24712
24712
|
}), JD = m.model({
|
|
24713
24713
|
id: m.identifier,
|
|
24714
24714
|
name: m.string,
|
|
24715
|
-
type: m.enumeration("EViewComponentType", [
|
|
24716
|
-
config: m.union(
|
|
24715
|
+
type: m.enumeration("EViewComponentType", [B.Division, B.Modal, B.Tabs]),
|
|
24716
|
+
config: m.union(qd, Bd, Wd),
|
|
24717
24717
|
panelIDs: m.optional(m.array(m.string), [])
|
|
24718
24718
|
}).views((e) => ({
|
|
24719
24719
|
get json() {
|
|
@@ -24738,13 +24738,13 @@ const Bd = m.model("ViewDivisionConfig", {
|
|
|
24738
24738
|
setType(t) {
|
|
24739
24739
|
if (e.type !== t) {
|
|
24740
24740
|
switch (t) {
|
|
24741
|
-
case
|
|
24741
|
+
case B.Division:
|
|
24742
24742
|
e.config = HD();
|
|
24743
24743
|
break;
|
|
24744
|
-
case
|
|
24744
|
+
case B.Modal:
|
|
24745
24745
|
e.config = KD();
|
|
24746
24746
|
break;
|
|
24747
|
-
case
|
|
24747
|
+
case B.Tabs:
|
|
24748
24748
|
e.config = XD();
|
|
24749
24749
|
break;
|
|
24750
24750
|
}
|
|
@@ -24770,7 +24770,7 @@ const Bd = m.model("ViewDivisionConfig", {
|
|
|
24770
24770
|
views: [{
|
|
24771
24771
|
id: "Main",
|
|
24772
24772
|
name: "Main",
|
|
24773
|
-
type:
|
|
24773
|
+
type: B.Division,
|
|
24774
24774
|
config: {},
|
|
24775
24775
|
panelIDs: []
|
|
24776
24776
|
}],
|
|
@@ -24853,27 +24853,27 @@ const Ud = m.compose("ViewRenderModel", JD, m.model({
|
|
|
24853
24853
|
// FIXME: manage this state in a better way
|
|
24854
24854
|
})).views((e) => ({
|
|
24855
24855
|
get defaultTab() {
|
|
24856
|
-
if (e.type !==
|
|
24856
|
+
if (e.type !== B.Tabs)
|
|
24857
24857
|
return "";
|
|
24858
24858
|
const t = e.config;
|
|
24859
24859
|
return t.tabs.length > 0 ? t.tabs[0].id : "";
|
|
24860
24860
|
},
|
|
24861
24861
|
get tabViewID() {
|
|
24862
24862
|
var n;
|
|
24863
|
-
return e.type !==
|
|
24863
|
+
return e.type !== B.Tabs ? "" : ((n = e.config.tabs.find((s) => s.id === e.tab)) == null ? void 0 : n.view_id) ?? "";
|
|
24864
24864
|
},
|
|
24865
24865
|
get contentModel() {
|
|
24866
24866
|
return Le(e, 3);
|
|
24867
24867
|
},
|
|
24868
24868
|
get panels() {
|
|
24869
|
-
if (e.type !==
|
|
24869
|
+
if (e.type !== B.Tabs)
|
|
24870
24870
|
return this.contentModel.panels.panelsByIDs(e.panelIDs).panels;
|
|
24871
24871
|
const t = this.tabViewID, n = this.contentModel.views.findByID(t);
|
|
24872
24872
|
return (n == null ? void 0 : n.panels) ?? [];
|
|
24873
24873
|
},
|
|
24874
24874
|
get renderViewIDs() {
|
|
24875
24875
|
const t = [e.id];
|
|
24876
|
-
return e.type ===
|
|
24876
|
+
return e.type === B.Tabs && t.push(this.tabViewID), t;
|
|
24877
24877
|
}
|
|
24878
24878
|
})).actions((e) => ({
|
|
24879
24879
|
setTab(t) {
|
|
@@ -25432,7 +25432,7 @@ const oI = FD.views((e) => ({
|
|
|
25432
25432
|
additionals: e.additionalQueryInfo
|
|
25433
25433
|
}, e.controller.signal)), e.state = "idle", e.error = null;
|
|
25434
25434
|
} catch (n) {
|
|
25435
|
-
if (!
|
|
25435
|
+
if (!Bt.isCancel(n)) {
|
|
25436
25436
|
e.data = [];
|
|
25437
25437
|
const s = ne(n, "message", "unkown error");
|
|
25438
25438
|
e.error = ne(n, "response.data.detail.message", s), e.state = "error";
|
|
@@ -25461,7 +25461,7 @@ const oI = FD.views((e) => ({
|
|
|
25461
25461
|
}, e.controller.signal)), l = vm(e.datasource, a), c = wm(i, l, e.contentModel.dashboardState);
|
|
25462
25462
|
e.data = c, e.state = "idle", e.error = null;
|
|
25463
25463
|
} catch (n) {
|
|
25464
|
-
if (console.error(n), !
|
|
25464
|
+
if (console.error(n), !Bt.isCancel(n)) {
|
|
25465
25465
|
e.data = [];
|
|
25466
25466
|
const s = ne(n, "message", "unkown error");
|
|
25467
25467
|
e.error = ne(n, "response.data.detail.message", s), e.state = "error";
|
|
@@ -25717,7 +25717,7 @@ const uI = (e) => new dI(e), hI = k(({
|
|
|
25717
25717
|
zIndex: 320
|
|
25718
25718
|
}), p = L.useCallback(() => {
|
|
25719
25719
|
l(a);
|
|
25720
|
-
}, [a, l]), x = !c && e.type !==
|
|
25720
|
+
}, [a, l]), x = !c && e.type !== B.Modal;
|
|
25721
25721
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(z, { sx: {
|
|
25722
25722
|
position: "absolute",
|
|
25723
25723
|
top: 0,
|
|
@@ -25803,7 +25803,7 @@ function mI(e) {
|
|
|
25803
25803
|
}
|
|
25804
25804
|
};
|
|
25805
25805
|
}
|
|
25806
|
-
var lu = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(lu || {}),
|
|
25806
|
+
var lu = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(lu || {}), qr = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(qr || {});
|
|
25807
25807
|
class fI {
|
|
25808
25808
|
constructor(t) {
|
|
25809
25809
|
N(this, "vizInstance");
|
|
@@ -25857,7 +25857,7 @@ function cu(e) {
|
|
|
25857
25857
|
const {
|
|
25858
25858
|
panel: t
|
|
25859
25859
|
} = Dn();
|
|
25860
|
-
return
|
|
25860
|
+
return Be((n) => {
|
|
25861
25861
|
const s = n.getRequired(ze.vizManager), i = s.resolveComponent(e.viz.type);
|
|
25862
25862
|
return n.createScoped().provideFactory(ze.instanceScope.vizInstance, () => s.getOrCreateInstance(e)).provideFactory(ze.instanceScope.interactionManager, (o) => {
|
|
25863
25863
|
const a = o.getRequired(ze.instanceScope.vizInstance);
|
|
@@ -25866,10 +25866,10 @@ function cu(e) {
|
|
|
25866
25866
|
}, [e.viz.type, e.viz.conf]);
|
|
25867
25867
|
}
|
|
25868
25868
|
function du(e) {
|
|
25869
|
-
const [t, n] =
|
|
25869
|
+
const [t, n] = q(!1), s = kd().getRequired(ze.instanceScope.migrator);
|
|
25870
25870
|
return fr(async () => {
|
|
25871
|
-
const i = s.status ===
|
|
25872
|
-
n(s.status ===
|
|
25871
|
+
const i = s.status === qr.notStarted;
|
|
25872
|
+
n(s.status === qr.done), s.status === qr.notStarted && s.runMigration().then((o) => {
|
|
25873
25873
|
o === lu.migrated && i && (e == null || e());
|
|
25874
25874
|
}).finally(() => {
|
|
25875
25875
|
n(!0);
|
|
@@ -26033,7 +26033,7 @@ const TI = k(({
|
|
|
26033
26033
|
inFullScreen: o
|
|
26034
26034
|
} = L.useContext(Ds), a = L.useCallback(() => {
|
|
26035
26035
|
i(s);
|
|
26036
|
-
}, [s, i]), l = !o && e.type !==
|
|
26036
|
+
}, [s, i]), l = !o && e.type !== B.Modal;
|
|
26037
26037
|
return kI(t.viz.type) ? /* @__PURE__ */ r.jsx(z, { sx: {
|
|
26038
26038
|
position: "absolute",
|
|
26039
26039
|
top: 0,
|
|
@@ -26121,7 +26121,7 @@ const LI = L.forwardRef(({
|
|
|
26121
26121
|
"&:hover": {
|
|
26122
26122
|
color: "#228be6"
|
|
26123
26123
|
}
|
|
26124
|
-
}, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(
|
|
26124
|
+
}, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(qh, { size: 16 }) })), RI = Ul(Hl), EI = k(({
|
|
26125
26125
|
view: e,
|
|
26126
26126
|
className: t = "layout"
|
|
26127
26127
|
}) => {
|
|
@@ -26297,20 +26297,20 @@ const $I = k(({
|
|
|
26297
26297
|
return i ? /* @__PURE__ */ r.jsx(f.Panel, { value: s.id, children: /* @__PURE__ */ r.jsx(ko, { view: i }) }, s.id) : null;
|
|
26298
26298
|
})
|
|
26299
26299
|
] });
|
|
26300
|
-
}),
|
|
26300
|
+
}), qI = k(({
|
|
26301
26301
|
view: e,
|
|
26302
26302
|
children: t
|
|
26303
26303
|
}) => {
|
|
26304
26304
|
switch (e.type) {
|
|
26305
|
-
case
|
|
26305
|
+
case B.Modal:
|
|
26306
26306
|
return /* @__PURE__ */ r.jsx(PI, { view: e, children: t });
|
|
26307
|
-
case
|
|
26307
|
+
case B.Tabs:
|
|
26308
26308
|
return /* @__PURE__ */ r.jsx(NI, { view: e });
|
|
26309
|
-
case
|
|
26309
|
+
case B.Division:
|
|
26310
26310
|
default:
|
|
26311
26311
|
return /* @__PURE__ */ r.jsx(mu, { view: e, children: t });
|
|
26312
26312
|
}
|
|
26313
|
-
}),
|
|
26313
|
+
}), BI = k(({
|
|
26314
26314
|
children: e,
|
|
26315
26315
|
view: t
|
|
26316
26316
|
}) => /* @__PURE__ */ r.jsx(mu, { sx: {
|
|
@@ -26409,7 +26409,7 @@ const WI = k(({
|
|
|
26409
26409
|
} : {}, HI = k(({
|
|
26410
26410
|
view: e
|
|
26411
26411
|
}) => {
|
|
26412
|
-
const t = Tt(), n = le(), s = T(() => n.views.options.filter((l) => l.type ===
|
|
26412
|
+
const t = Tt(), n = le(), s = T(() => n.views.options.filter((l) => l.type === B.Division), [e.id, n.views.options]), i = e.config, o = (l) => t.openConfirmModal({
|
|
26413
26413
|
title: "Delete this tab?",
|
|
26414
26414
|
labels: {
|
|
26415
26415
|
confirm: "Confirm",
|
|
@@ -26470,13 +26470,13 @@ const WI = k(({
|
|
|
26470
26470
|
children: t
|
|
26471
26471
|
}) => {
|
|
26472
26472
|
switch (e.type) {
|
|
26473
|
-
case
|
|
26473
|
+
case B.Modal:
|
|
26474
26474
|
return /* @__PURE__ */ r.jsx(WI, { view: e, children: t });
|
|
26475
|
-
case
|
|
26475
|
+
case B.Tabs:
|
|
26476
26476
|
return /* @__PURE__ */ r.jsx(HI, { view: e });
|
|
26477
|
-
case
|
|
26477
|
+
case B.Division:
|
|
26478
26478
|
default:
|
|
26479
|
-
return /* @__PURE__ */ r.jsx(
|
|
26479
|
+
return /* @__PURE__ */ r.jsx(BI, { view: e, children: t });
|
|
26480
26480
|
}
|
|
26481
26481
|
}), KI = k(function({
|
|
26482
26482
|
view: t
|
|
@@ -26509,10 +26509,10 @@ const WI = k(({
|
|
|
26509
26509
|
viewPanelInFullScreen: i,
|
|
26510
26510
|
inFullScreen: a
|
|
26511
26511
|
}, children: /* @__PURE__ */ r.jsxs(z, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
|
|
26512
|
-
height: t.type ===
|
|
26512
|
+
height: t.type === B.Modal ? "0 !important" : "100%"
|
|
26513
26513
|
}, children: [
|
|
26514
26514
|
a && /* @__PURE__ */ r.jsx(zI, { view: t, panel: l, exitFullScreen: o }),
|
|
26515
|
-
/* @__PURE__ */ r.jsx(
|
|
26515
|
+
/* @__PURE__ */ r.jsx(qI, { view: t, children: /* @__PURE__ */ r.jsxs(z, { sx: {
|
|
26516
26516
|
position: "relative"
|
|
26517
26517
|
}, children: [
|
|
26518
26518
|
!a && /* @__PURE__ */ r.jsx(z, { className: "dashboard-sticky-area", sx: {
|
|
@@ -26525,17 +26525,17 @@ const WI = k(({
|
|
|
26525
26525
|
});
|
|
26526
26526
|
var YI = /* @__PURE__ */ ((e) => (e.Use = "use", e.Edit = "edit", e))(YI || {});
|
|
26527
26527
|
const LR = {
|
|
26528
|
-
[
|
|
26529
|
-
[
|
|
26530
|
-
[
|
|
26528
|
+
[B.Division]: "Division",
|
|
26529
|
+
[B.Tabs]: "Tabs",
|
|
26530
|
+
[B.Modal]: "Modal"
|
|
26531
26531
|
}, XI = {
|
|
26532
|
-
[
|
|
26533
|
-
[
|
|
26534
|
-
[
|
|
26532
|
+
[B.Division]: "rgba(255, 0, 0, 0.2)",
|
|
26533
|
+
[B.Modal]: "rgba(0, 0, 0, 0.2)",
|
|
26534
|
+
[B.Tabs]: "rgba(255, 200, 100, 0.4)"
|
|
26535
26535
|
}, AR = {
|
|
26536
|
-
[
|
|
26537
|
-
[
|
|
26538
|
-
[
|
|
26536
|
+
[B.Division]: "#ff4000",
|
|
26537
|
+
[B.Modal]: "#000",
|
|
26538
|
+
[B.Tabs]: "#ffad18"
|
|
26539
26539
|
};
|
|
26540
26540
|
function JI(e, t, n) {
|
|
26541
26541
|
Ct(e, ex(e, (s, i) => {
|
|
@@ -26855,7 +26855,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26855
26855
|
var n;
|
|
26856
26856
|
(n = e.controllers.tables) == null || n.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
|
|
26857
26857
|
try {
|
|
26858
|
-
const s = yield* pn(
|
|
26858
|
+
const s = yield* pn(qt.structure(e.controllers.tables.signal)({
|
|
26859
26859
|
query_type: "TABLES",
|
|
26860
26860
|
type: e.sqlDataSourceType,
|
|
26861
26861
|
key: e.key,
|
|
@@ -26868,7 +26868,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26868
26868
|
}));
|
|
26869
26869
|
e.tables.data = _.groupBy(s, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
|
|
26870
26870
|
} catch (s) {
|
|
26871
|
-
if (!
|
|
26871
|
+
if (!Bt.isCancel(s)) {
|
|
26872
26872
|
e.tables.data = {};
|
|
26873
26873
|
const i = _.get(s, "message", "unkown error");
|
|
26874
26874
|
e.tables.error = _.get(s, "response.data.detail.message", i), e.tables.state = "error";
|
|
@@ -26884,7 +26884,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26884
26884
|
var n;
|
|
26885
26885
|
(n = e.controllers.columns) == null || n.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
|
|
26886
26886
|
try {
|
|
26887
|
-
e.columns.data = yield* pn(
|
|
26887
|
+
e.columns.data = yield* pn(qt.structure(e.controllers.columns.signal)({
|
|
26888
26888
|
query_type: "COLUMNS",
|
|
26889
26889
|
type: e.sqlDataSourceType,
|
|
26890
26890
|
key: e.key,
|
|
@@ -26896,7 +26896,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26896
26896
|
}
|
|
26897
26897
|
})), e.columns.state = "idle", e.columns.error = null;
|
|
26898
26898
|
} catch (s) {
|
|
26899
|
-
if (
|
|
26899
|
+
if (Bt.isCancel(s))
|
|
26900
26900
|
e.columns.state = "idle", e.columns.error = null;
|
|
26901
26901
|
else {
|
|
26902
26902
|
e.columns.data = [];
|
|
@@ -26909,7 +26909,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26909
26909
|
var n;
|
|
26910
26910
|
(n = e.controllers.indexes) == null || n.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
|
|
26911
26911
|
try {
|
|
26912
|
-
e.indexes.data = yield* pn(
|
|
26912
|
+
e.indexes.data = yield* pn(qt.structure(e.controllers.indexes.signal)({
|
|
26913
26913
|
query_type: "INDEXES",
|
|
26914
26914
|
type: e.sqlDataSourceType,
|
|
26915
26915
|
key: e.key,
|
|
@@ -26921,7 +26921,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26921
26921
|
}
|
|
26922
26922
|
})), e.indexes.state = "idle", e.indexes.error = null;
|
|
26923
26923
|
} catch (s) {
|
|
26924
|
-
if (
|
|
26924
|
+
if (Bt.isCancel(s))
|
|
26925
26925
|
e.indexes.state = "idle", e.indexes.error = null;
|
|
26926
26926
|
else {
|
|
26927
26927
|
e.indexes.data = [];
|
|
@@ -26936,7 +26936,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26936
26936
|
const n = e.tableData;
|
|
26937
26937
|
n.state = "loading";
|
|
26938
26938
|
try {
|
|
26939
|
-
n.data = yield* pn(
|
|
26939
|
+
n.data = yield* pn(qt.structure(e.controllers.tableData.signal)({
|
|
26940
26940
|
query_type: "DATA",
|
|
26941
26941
|
type: e.sqlDataSourceType,
|
|
26942
26942
|
key: e.key,
|
|
@@ -26951,7 +26951,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26951
26951
|
}));
|
|
26952
26952
|
const [{
|
|
26953
26953
|
total: i
|
|
26954
|
-
}] = yield* pn(
|
|
26954
|
+
}] = yield* pn(qt.structure(e.controllers.tableData.signal)({
|
|
26955
26955
|
query_type: "COUNT",
|
|
26956
26956
|
type: e.sqlDataSourceType,
|
|
26957
26957
|
key: e.key,
|
|
@@ -26964,7 +26964,7 @@ const ZI = m.compose("FiltersModel", nu, m.model("FiltersModel", {
|
|
|
26964
26964
|
}));
|
|
26965
26965
|
n.total = Number(i), n.state = "idle", n.error = null;
|
|
26966
26966
|
} catch (i) {
|
|
26967
|
-
if (
|
|
26967
|
+
if (Bt.isCancel(i))
|
|
26968
26968
|
n.state = "idle", n.error = null;
|
|
26969
26969
|
else {
|
|
26970
26970
|
n.data = [];
|
|
@@ -27256,7 +27256,7 @@ const dz = m.model("EditorModel", {
|
|
|
27256
27256
|
};
|
|
27257
27257
|
},
|
|
27258
27258
|
downloadSchema() {
|
|
27259
|
-
if (e.type ===
|
|
27259
|
+
if (e.type === B.Tabs) {
|
|
27260
27260
|
console.error(new Error("Please choose a tab first"));
|
|
27261
27261
|
return;
|
|
27262
27262
|
}
|
|
@@ -27329,8 +27329,8 @@ const dz = m.model("EditorModel", {
|
|
|
27329
27329
|
},
|
|
27330
27330
|
addARandomNewView() {
|
|
27331
27331
|
const t = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
27332
|
-
this.addANewView(t,
|
|
27333
|
-
_name:
|
|
27332
|
+
this.addANewView(t, B.Division, B.Division, {
|
|
27333
|
+
_name: B.Division
|
|
27334
27334
|
}), this.setIDOfVIE(t);
|
|
27335
27335
|
},
|
|
27336
27336
|
removeVIE() {
|
|
@@ -27954,7 +27954,7 @@ const yz = k(() => {
|
|
|
27954
27954
|
borderBottom: "1px solid #e9ecef"
|
|
27955
27955
|
}, wz = k(() => {
|
|
27956
27956
|
var s;
|
|
27957
|
-
const e = le(), t = ((s = e.views.VIE) == null ? void 0 : s.type) ===
|
|
27957
|
+
const e = le(), t = ((s = e.views.VIE) == null ? void 0 : s.type) === B.Tabs, n = () => e.addANewPanel(e.views.idOfVIE);
|
|
27958
27958
|
return t ? /* @__PURE__ */ r.jsx(ge, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(ia, { size: 20 }), sx: {
|
|
27959
27959
|
...Ha,
|
|
27960
27960
|
transform: "none !important"
|
|
@@ -27964,7 +27964,7 @@ const yz = k(() => {
|
|
|
27964
27964
|
}, children: "Add a Panel" });
|
|
27965
27965
|
}), _z = k(({
|
|
27966
27966
|
view: e
|
|
27967
|
-
}) => !e || e.type !==
|
|
27967
|
+
}) => !e || e.type !== B.Division ? null : /* @__PURE__ */ r.jsxs(w, { children: [
|
|
27968
27968
|
/* @__PURE__ */ r.jsx(I, { mt: 8, mb: 0, label: "Division settings", labelPosition: "center" }),
|
|
27969
27969
|
/* @__PURE__ */ r.jsx(j, { align: "center", size: "xs", color: "dimmed", children: "Under construction" })
|
|
27970
27970
|
] })), Sz = [{
|
|
@@ -27985,7 +27985,7 @@ const yz = k(() => {
|
|
|
27985
27985
|
}], kz = k(({
|
|
27986
27986
|
view: e
|
|
27987
27987
|
}) => {
|
|
27988
|
-
if (!e || e.type !==
|
|
27988
|
+
if (!e || e.type !== B.Tabs)
|
|
27989
27989
|
return null;
|
|
27990
27990
|
const t = e.config;
|
|
27991
27991
|
return /* @__PURE__ */ r.jsxs(w, { children: [
|
|
@@ -28020,7 +28020,7 @@ const yz = k(() => {
|
|
|
28020
28020
|
const [n, {
|
|
28021
28021
|
setTrue: s,
|
|
28022
28022
|
setFalse: i
|
|
28023
|
-
}] = $e(), [o, a] =
|
|
28023
|
+
}] = $e(), [o, a] = q(e ?? bi), l = (p) => {
|
|
28024
28024
|
a({
|
|
28025
28025
|
...o,
|
|
28026
28026
|
enabled: p
|
|
@@ -28064,7 +28064,7 @@ const yz = k(() => {
|
|
|
28064
28064
|
}, Iz = k(({
|
|
28065
28065
|
view: e
|
|
28066
28066
|
}) => {
|
|
28067
|
-
if (!e || e.type !==
|
|
28067
|
+
if (!e || e.type !== B.Modal)
|
|
28068
28068
|
return null;
|
|
28069
28069
|
const t = e.config, n = t.custom_modal_title.value;
|
|
28070
28070
|
return /* @__PURE__ */ r.jsxs(w, { children: [
|
|
@@ -28086,19 +28086,19 @@ const yz = k(() => {
|
|
|
28086
28086
|
/* @__PURE__ */ r.jsx(_z, { view: e }),
|
|
28087
28087
|
/* @__PURE__ */ r.jsx(Iz, { view: e }),
|
|
28088
28088
|
/* @__PURE__ */ r.jsx(kz, { view: e })
|
|
28089
|
-
] })),
|
|
28090
|
-
[
|
|
28091
|
-
[
|
|
28092
|
-
[
|
|
28089
|
+
] })), Br = {
|
|
28090
|
+
[B.Division]: "Division",
|
|
28091
|
+
[B.Modal]: "Modal",
|
|
28092
|
+
[B.Tabs]: "Tabs"
|
|
28093
28093
|
}, Mz = [{
|
|
28094
|
-
label:
|
|
28095
|
-
value:
|
|
28094
|
+
label: Br[B.Division],
|
|
28095
|
+
value: B.Division
|
|
28096
28096
|
}, {
|
|
28097
|
-
label:
|
|
28098
|
-
value:
|
|
28097
|
+
label: Br[B.Modal],
|
|
28098
|
+
value: B.Modal
|
|
28099
28099
|
}, {
|
|
28100
|
-
label:
|
|
28101
|
-
value:
|
|
28100
|
+
label: Br[B.Tabs],
|
|
28101
|
+
value: B.Tabs
|
|
28102
28102
|
}], Lz = k(({
|
|
28103
28103
|
view: e
|
|
28104
28104
|
}) => e ? /* @__PURE__ */ r.jsxs(w, { sx: {
|
|
@@ -28133,7 +28133,7 @@ const yz = k(() => {
|
|
|
28133
28133
|
] }), rows: t.map((n) => /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
28134
28134
|
/* @__PURE__ */ r.jsx("td", { children: n.id }),
|
|
28135
28135
|
/* @__PURE__ */ r.jsx("td", { children: n.name }),
|
|
28136
|
-
/* @__PURE__ */ r.jsx("td", { children:
|
|
28136
|
+
/* @__PURE__ */ r.jsx("td", { children: Br[n.type] })
|
|
28137
28137
|
] }, n.id)) })
|
|
28138
28138
|
] });
|
|
28139
28139
|
}, Rz = ({
|
|
@@ -28276,7 +28276,7 @@ const Nz = k(({
|
|
|
28276
28276
|
color: "red"
|
|
28277
28277
|
});
|
|
28278
28278
|
}
|
|
28279
|
-
}, [h, p] =
|
|
28279
|
+
}, [h, p] = q(null);
|
|
28280
28280
|
O(() => {
|
|
28281
28281
|
if (!h)
|
|
28282
28282
|
return;
|
|
@@ -28329,7 +28329,7 @@ const Nz = k(({
|
|
|
28329
28329
|
borderTop: "none",
|
|
28330
28330
|
borderRight: "1px solid #e9ecef",
|
|
28331
28331
|
borderBottom: "1px solid #e9ecef"
|
|
28332
|
-
},
|
|
28332
|
+
}, qz = k(() => {
|
|
28333
28333
|
var c;
|
|
28334
28334
|
const [e, {
|
|
28335
28335
|
open: t,
|
|
@@ -28337,7 +28337,7 @@ const Nz = k(({
|
|
|
28337
28337
|
}] = Cn(!1), [s, {
|
|
28338
28338
|
setTrue: i,
|
|
28339
28339
|
setFalse: o
|
|
28340
|
-
}] = $e(!1), l = ((c = ce().content.views.VIE) == null ? void 0 : c.type) ===
|
|
28340
|
+
}] = $e(!1), l = ((c = ce().content.views.VIE) == null ? void 0 : c.type) === B.Tabs;
|
|
28341
28341
|
return l ? /* @__PURE__ */ r.jsx(ge, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(oa, { size: 16 }), sx: {
|
|
28342
28342
|
...Ua,
|
|
28343
28343
|
transform: "none !important"
|
|
@@ -28356,9 +28356,9 @@ const Nz = k(({
|
|
|
28356
28356
|
borderTop: "none",
|
|
28357
28357
|
borderLeft: "1px solid #e9ecef",
|
|
28358
28358
|
borderBottom: "1px solid #e9ecef"
|
|
28359
|
-
},
|
|
28359
|
+
}, Bz = k(() => {
|
|
28360
28360
|
var s;
|
|
28361
|
-
const e = le(), t = ((s = e.views.VIE) == null ? void 0 : s.type) ===
|
|
28361
|
+
const e = le(), t = ((s = e.views.VIE) == null ? void 0 : s.type) === B.Tabs, n = () => {
|
|
28362
28362
|
var i;
|
|
28363
28363
|
return (i = e.views.VIE) == null ? void 0 : i.downloadSchema();
|
|
28364
28364
|
};
|
|
@@ -28391,10 +28391,10 @@ const Nz = k(({
|
|
|
28391
28391
|
}, children: [
|
|
28392
28392
|
/* @__PURE__ */ r.jsxs(b, { position: "left", spacing: 0, children: [
|
|
28393
28393
|
/* @__PURE__ */ r.jsx(wz, {}),
|
|
28394
|
-
/* @__PURE__ */ r.jsx(
|
|
28394
|
+
/* @__PURE__ */ r.jsx(qz, {})
|
|
28395
28395
|
] }),
|
|
28396
28396
|
/* @__PURE__ */ r.jsx(z, {}),
|
|
28397
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", spacing: 0, children: /* @__PURE__ */ r.jsx(
|
|
28397
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", spacing: 0, children: /* @__PURE__ */ r.jsx(Bz, {}) })
|
|
28398
28398
|
] }) })), Qz = k((e) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28399
28399
|
/* @__PURE__ */ r.jsx(vz, { ...e }),
|
|
28400
28400
|
/* @__PURE__ */ r.jsx(Gz, {})
|
|
@@ -28524,15 +28524,15 @@ function Zz(e, t) {
|
|
|
28524
28524
|
}), s;
|
|
28525
28525
|
}
|
|
28526
28526
|
const eM = {
|
|
28527
|
-
[
|
|
28528
|
-
[
|
|
28529
|
-
[
|
|
28527
|
+
[B.Division]: "Div",
|
|
28528
|
+
[B.Modal]: "Modal",
|
|
28529
|
+
[B.Tabs]: "Tabs"
|
|
28530
28530
|
}, tM = XI;
|
|
28531
28531
|
function nM(e) {
|
|
28532
28532
|
return e.current.map((n, s) => {
|
|
28533
28533
|
const i = Kz(n.panelIDs.length, Wr, Su) + To + wu;
|
|
28534
28534
|
let o = [];
|
|
28535
|
-
return n.type ===
|
|
28535
|
+
return n.type === B.Tabs && (o = n.config.tabs.map((l) => l.view_id)), {
|
|
28536
28536
|
id: n.id,
|
|
28537
28537
|
_node_type: "view-root",
|
|
28538
28538
|
_view_type: n.type,
|
|
@@ -28560,7 +28560,7 @@ function nM(e) {
|
|
|
28560
28560
|
function rM(e) {
|
|
28561
28561
|
const t = _.keyBy(e, (n) => n.id);
|
|
28562
28562
|
e.forEach((n) => {
|
|
28563
|
-
n._node_type !== "view-root" || n._view_type !==
|
|
28563
|
+
n._node_type !== "view-root" || n._view_type !== B.Tabs || n._tab_view_ids.forEach((s) => {
|
|
28564
28564
|
t[s].parentNode = n.id;
|
|
28565
28565
|
});
|
|
28566
28566
|
});
|
|
@@ -28577,7 +28577,7 @@ function iM({
|
|
|
28577
28577
|
edges: n
|
|
28578
28578
|
}) {
|
|
28579
28579
|
t.forEach((s) => {
|
|
28580
|
-
s._node_type !== "view-root" || s._view_type !==
|
|
28580
|
+
s._node_type !== "view-root" || s._view_type !== B.Tabs || (s.sourcePosition = St.Bottom, s.style.width = Do + es * 2, s.style.height = wu + s._tab_view_ids.reduce((i, o) => {
|
|
28581
28581
|
const a = e[o];
|
|
28582
28582
|
a.position.y = i, a.position.x = es;
|
|
28583
28583
|
const l = a.style.height;
|
|
@@ -28720,7 +28720,7 @@ const hM = ih(({
|
|
|
28720
28720
|
position: "absolute",
|
|
28721
28721
|
top: 0,
|
|
28722
28722
|
right: 0
|
|
28723
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
28723
|
+
}, children: /* @__PURE__ */ r.jsx(Bh, { size: 12 }) }),
|
|
28724
28724
|
/* @__PURE__ */ r.jsxs(Te, { shadow: "xl", withinPortal: !0, children: [
|
|
28725
28725
|
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(j, { children: e.label }) }),
|
|
28726
28726
|
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(it, { spacing: "xs", size: "sm", center: !0, children: o.map((a) => /* @__PURE__ */ r.jsx(it.Item, { icon: a.icon, children: a.text }, a.key)) }) })
|
|
@@ -28738,7 +28738,7 @@ const pM = {
|
|
|
28738
28738
|
return /* @__PURE__ */ r.jsxs(Px, { nodes: n, edges: t, onNodesChange: _.noop, onEdgesChange: _.noop, onConnect: _.noop, className: "interactions-viewer", fitView: !0, nodeTypes: pM, children: [
|
|
28739
28739
|
/* @__PURE__ */ r.jsx(Vx, {}),
|
|
28740
28740
|
/* @__PURE__ */ r.jsx(Nx, {}),
|
|
28741
|
-
/* @__PURE__ */ r.jsx(
|
|
28741
|
+
/* @__PURE__ */ r.jsx(qx, {})
|
|
28742
28742
|
] });
|
|
28743
28743
|
}), mM = k(({
|
|
28744
28744
|
opened: e,
|
|
@@ -28822,7 +28822,7 @@ function gM({
|
|
|
28822
28822
|
] });
|
|
28823
28823
|
}
|
|
28824
28824
|
const bM = k(() => {
|
|
28825
|
-
const e = ce(), t = le(), n =
|
|
28825
|
+
const e = ce(), t = le(), n = Be((i) => () => t.views.setIDOfVIE(i), [t]), s = (i) => {
|
|
28826
28826
|
e.editor.open(["_VIEWS_", i]);
|
|
28827
28827
|
};
|
|
28828
28828
|
return /* @__PURE__ */ r.jsxs(z, { sx: {
|
|
@@ -28852,7 +28852,7 @@ const bM = k(() => {
|
|
|
28852
28852
|
return;
|
|
28853
28853
|
}
|
|
28854
28854
|
e.editor.open(["_FILTERS_", t.filters.firstID]);
|
|
28855
|
-
}, [i, o] =
|
|
28855
|
+
}, [i, o] = q(!1), a = () => o(!0), l = () => o(!1);
|
|
28856
28856
|
return /* @__PURE__ */ r.jsxs(Nt, { p: 0, width: {
|
|
28857
28857
|
base: 200,
|
|
28858
28858
|
xs: 200,
|
|
@@ -29002,7 +29002,7 @@ const bM = k(() => {
|
|
|
29002
29002
|
description?: string; // optional
|
|
29003
29003
|
}
|
|
29004
29004
|
`, Cu = () => {
|
|
29005
|
-
const [e, t] =
|
|
29005
|
+
const [e, t] = q(!1);
|
|
29006
29006
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
29007
29007
|
/* @__PURE__ */ r.jsx(C, { variant: "subtle", compact: !0, onClick: () => t((n) => !n), children: e ? "Close" : "Click to see expected data structure" }),
|
|
29008
29008
|
/* @__PURE__ */ r.jsx(xr, { in: e, children: /* @__PURE__ */ r.jsx(on, { language: "typescript", noCopy: !0, colorScheme: "dark", children: SM }) })
|
|
@@ -29164,7 +29164,7 @@ const bM = k(() => {
|
|
|
29164
29164
|
description?: string;
|
|
29165
29165
|
}
|
|
29166
29166
|
`, IM = () => {
|
|
29167
|
-
const [e, t] =
|
|
29167
|
+
const [e, t] = q(!1);
|
|
29168
29168
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
29169
29169
|
/* @__PURE__ */ r.jsx(C, { variant: "subtle", compact: !0, onClick: () => t((n) => !n), children: e ? "Close" : "Click to see expected data structure" }),
|
|
29170
29170
|
/* @__PURE__ */ r.jsx(xr, { in: e, children: /* @__PURE__ */ r.jsx(on, { language: "typescript", noCopy: !0, colorScheme: "dark", children: DM }) })
|
|
@@ -29310,7 +29310,7 @@ const bM = k(() => {
|
|
|
29310
29310
|
}, children: /* @__PURE__ */ r.jsx(RM, { filter: i }) })
|
|
29311
29311
|
] });
|
|
29312
29312
|
}), FM = k(() => {
|
|
29313
|
-
const [e, t] =
|
|
29313
|
+
const [e, t] = q([]), n = ce(), s = (c) => {
|
|
29314
29314
|
n.editor.setPath(["_FILTERS_", c]);
|
|
29315
29315
|
}, i = () => {
|
|
29316
29316
|
n.content.filters.downloadSchema(e);
|
|
@@ -29381,7 +29381,7 @@ const bM = k(() => {
|
|
|
29381
29381
|
] }) }) })
|
|
29382
29382
|
] });
|
|
29383
29383
|
}), OM = k(() => {
|
|
29384
|
-
const e = le(), [t, n] =
|
|
29384
|
+
const e = le(), [t, n] = q(() => JSON.stringify(e.mock_context.current, null, 4)), s = () => {
|
|
29385
29385
|
try {
|
|
29386
29386
|
e.mock_context.replace(JSON.parse(t));
|
|
29387
29387
|
} catch (o) {
|
|
@@ -29493,7 +29493,7 @@ const bM = k(() => {
|
|
|
29493
29493
|
] }),
|
|
29494
29494
|
/* @__PURE__ */ r.jsx(D, { value: n, onChange: s, required: !0 })
|
|
29495
29495
|
] });
|
|
29496
|
-
}),
|
|
29496
|
+
}), qM = k(() => {
|
|
29497
29497
|
const {
|
|
29498
29498
|
panel: e
|
|
29499
29499
|
} = zt();
|
|
@@ -29504,14 +29504,14 @@ const bM = k(() => {
|
|
|
29504
29504
|
/* @__PURE__ */ r.jsx(K, { size: "sm", checked: !0, disabled: !0, label: "Use name as title" })
|
|
29505
29505
|
] }) });
|
|
29506
29506
|
});
|
|
29507
|
-
function
|
|
29507
|
+
function BM() {
|
|
29508
29508
|
return /* @__PURE__ */ r.jsxs(w, { sx: {
|
|
29509
29509
|
height: "100%"
|
|
29510
29510
|
}, children: [
|
|
29511
29511
|
/* @__PURE__ */ r.jsx(PM, {}),
|
|
29512
29512
|
/* @__PURE__ */ r.jsx(I, { label: "Info", labelPosition: "center", variant: "dashed" }),
|
|
29513
29513
|
/* @__PURE__ */ r.jsx(NM, {}),
|
|
29514
|
-
/* @__PURE__ */ r.jsx(
|
|
29514
|
+
/* @__PURE__ */ r.jsx(qM, {}),
|
|
29515
29515
|
/* @__PURE__ */ r.jsx($M, {})
|
|
29516
29516
|
] });
|
|
29517
29517
|
}
|
|
@@ -29643,7 +29643,7 @@ const GM = [{
|
|
|
29643
29643
|
data: e,
|
|
29644
29644
|
loading: t
|
|
29645
29645
|
}) => {
|
|
29646
|
-
const [n, s] =
|
|
29646
|
+
const [n, s] = q(1), [i, o] = q(20), a = T(() => {
|
|
29647
29647
|
const l = (n - 1) * i, c = l + i;
|
|
29648
29648
|
return e.slice(l, c);
|
|
29649
29649
|
}, [e, n, i]);
|
|
@@ -29677,7 +29677,7 @@ const GM = [{
|
|
|
29677
29677
|
const s = Pe(), {
|
|
29678
29678
|
data: i,
|
|
29679
29679
|
state: o
|
|
29680
|
-
} = s.getDataStuffByID(e), a = o === "loading", l =
|
|
29680
|
+
} = s.getDataStuffByID(e), a = o === "loading", l = Be(() => {
|
|
29681
29681
|
s.queries.refetchDataByQueryID(e);
|
|
29682
29682
|
}, [e, s]), c = () => {
|
|
29683
29683
|
s.queries.downloadDataByQueryID(e);
|
|
@@ -29713,7 +29713,7 @@ const GM = [{
|
|
|
29713
29713
|
}), YM = k(function() {
|
|
29714
29714
|
const t = ce(), n = le(), {
|
|
29715
29715
|
panel: s
|
|
29716
|
-
} = zt(), [i, o] =
|
|
29716
|
+
} = zt(), [i, o] = q(!1), a = (l) => {
|
|
29717
29717
|
t.editor.setPath(["_QUERIES_", l]);
|
|
29718
29718
|
};
|
|
29719
29719
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -30134,7 +30134,7 @@ const xL = k(() => {
|
|
|
30134
30134
|
panel: e,
|
|
30135
30135
|
sourceViewID: t
|
|
30136
30136
|
}) => {
|
|
30137
|
-
const n = le(), [s, i] =
|
|
30137
|
+
const n = le(), [s, i] = q(t);
|
|
30138
30138
|
O(() => {
|
|
30139
30139
|
i(t);
|
|
30140
30140
|
}, [t]);
|
|
@@ -30208,7 +30208,7 @@ function gL(e) {
|
|
|
30208
30208
|
const bL = k(({
|
|
30209
30209
|
panel: e
|
|
30210
30210
|
}) => {
|
|
30211
|
-
const t = Tt(), n = ce(), s = le(), [i, o] =
|
|
30211
|
+
const t = Tt(), n = ce(), s = le(), [i, o] = q("Data"), a = e.queries, c = gL(e.viz.type) && e.dataLoading, d = c || e.queryErrors.length > 0 || e.queryStateMessages !== "" || a.length === 0, u = n.editor.path[1];
|
|
30212
30212
|
O(() => {
|
|
30213
30213
|
o((x) => d && x === "Visualization" ? "Data" : x);
|
|
30214
30214
|
}, [e.id, d]);
|
|
@@ -30258,7 +30258,7 @@ const bL = k(({
|
|
|
30258
30258
|
/* @__PURE__ */ r.jsx(_n, { visible: c, exitTransitionDuration: 0 }),
|
|
30259
30259
|
/* @__PURE__ */ r.jsx(YM, {})
|
|
30260
30260
|
] }),
|
|
30261
|
-
/* @__PURE__ */ r.jsx(f.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(ei, { children: /* @__PURE__ */ r.jsx(
|
|
30261
|
+
/* @__PURE__ */ r.jsx(f.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(ei, { children: /* @__PURE__ */ r.jsx(BM, {}) }) }),
|
|
30262
30262
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Variables", children: /* @__PURE__ */ r.jsx(ei, { children: /* @__PURE__ */ r.jsx(lL, {}) }) }),
|
|
30263
30263
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Visualization", children: /* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(ei, { children: /* @__PURE__ */ r.jsx(xL, {}) }) }) }),
|
|
30264
30264
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Interactions", children: /* @__PURE__ */ r.jsx(Ge, { children: /* @__PURE__ */ r.jsx(Nf, {}) }) })
|
|
@@ -30282,7 +30282,7 @@ const bL = k(({
|
|
|
30282
30282
|
"] is not found"
|
|
30283
30283
|
] });
|
|
30284
30284
|
}), jL = k(() => {
|
|
30285
|
-
const [e, t] =
|
|
30285
|
+
const [e, t] = q([]), n = Tt(), s = ce(), i = (h) => {
|
|
30286
30286
|
s.editor.setPath(["_QUERIES_", h]);
|
|
30287
30287
|
}, o = () => {
|
|
30288
30288
|
n.openConfirmModal({
|
|
@@ -30771,7 +30771,7 @@ const zL = k(({
|
|
|
30771
30771
|
dataSource: e,
|
|
30772
30772
|
triggerButtonProps: t = {}
|
|
30773
30773
|
}) => {
|
|
30774
|
-
const [n, s] =
|
|
30774
|
+
const [n, s] = q(!1);
|
|
30775
30775
|
return e.type === "http" ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30776
30776
|
/* @__PURE__ */ r.jsx(fe, { opened: n, onClose: () => s(!1), title: /* @__PURE__ */ r.jsxs(b, { position: "apart", sx: {
|
|
30777
30777
|
flexGrow: 1
|
|
@@ -30800,7 +30800,16 @@ const zL = k(({
|
|
|
30800
30800
|
label: e,
|
|
30801
30801
|
type: t,
|
|
30802
30802
|
...n
|
|
30803
|
-
}, s) => t === Me.Transform ? /* @__PURE__ */ r.jsxs(b, { position: "left", ref: s, ...n,
|
|
30803
|
+
}, s) => t === Me.Transform ? /* @__PURE__ */ r.jsxs(b, { className: "transform-query-option", position: "left", ref: s, ...n, sx: {
|
|
30804
|
+
'&[data-selected="true"]': {
|
|
30805
|
+
".mantine-Text-root": {
|
|
30806
|
+
color: "white"
|
|
30807
|
+
},
|
|
30808
|
+
svg: {
|
|
30809
|
+
stroke: "white"
|
|
30810
|
+
}
|
|
30811
|
+
}
|
|
30812
|
+
}, children: [
|
|
30804
30813
|
/* @__PURE__ */ r.jsx(vp, { size: 14, color: "#228be6" }),
|
|
30805
30814
|
/* @__PURE__ */ r.jsx(j, { color: "blue", children: e })
|
|
30806
30815
|
] }) : /* @__PURE__ */ r.jsxs(b, { position: "apart", ref: s, ...n, children: [
|
|
@@ -30868,7 +30877,7 @@ const zL = k(({
|
|
|
30868
30877
|
}), NL = k(({
|
|
30869
30878
|
queryModel: e
|
|
30870
30879
|
}) => {
|
|
30871
|
-
const [t, n] =
|
|
30880
|
+
const [t, n] = q(e.name);
|
|
30872
30881
|
return O(() => {
|
|
30873
30882
|
n(e.name);
|
|
30874
30883
|
}, [e.name]), /* @__PURE__ */ r.jsx(Sn, { ml: 20, mt: 20, sx: {
|
|
@@ -30900,7 +30909,7 @@ const zL = k(({
|
|
|
30900
30909
|
/* @__PURE__ */ r.jsx(wL, { queryModel: e })
|
|
30901
30910
|
] }) });
|
|
30902
30911
|
});
|
|
30903
|
-
function
|
|
30912
|
+
function qL({
|
|
30904
30913
|
content: e
|
|
30905
30914
|
}) {
|
|
30906
30915
|
return /* @__PURE__ */ r.jsxs(Te, { width: "60vw", shadow: "md", children: [
|
|
@@ -30908,7 +30917,7 @@ function BL({
|
|
|
30908
30917
|
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(on, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
|
|
30909
30918
|
] });
|
|
30910
30919
|
}
|
|
30911
|
-
const
|
|
30920
|
+
const BL = k(() => {
|
|
30912
30921
|
const t = [...ce().globalSQLSnippets.list];
|
|
30913
30922
|
return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(We, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
|
|
30914
30923
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
@@ -30922,7 +30931,7 @@ const qL = k(() => {
|
|
|
30922
30931
|
} = n;
|
|
30923
30932
|
return /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
30924
30933
|
/* @__PURE__ */ r.jsx("td", { children: s }),
|
|
30925
|
-
/* @__PURE__ */ r.jsx("td", { width: 200, children: /* @__PURE__ */ r.jsx(
|
|
30934
|
+
/* @__PURE__ */ r.jsx("td", { width: 200, children: /* @__PURE__ */ r.jsx(qL, { content: i }) })
|
|
30926
30935
|
] }, s);
|
|
30927
30936
|
}) })
|
|
30928
30937
|
] });
|
|
@@ -30970,11 +30979,11 @@ WHERE
|
|
|
30970
30979
|
}, noCopy: !0, colorScheme: "dark", children: a }) }),
|
|
30971
30980
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(w, { spacing: 10, children: [
|
|
30972
30981
|
/* @__PURE__ */ r.jsx(rs, { icon: /* @__PURE__ */ r.jsx(aa, { size: 16 }), title: "Global SQL Snippets", children: "SQL snippets worth sharing between dashboards are managed in System Settings by admins." }),
|
|
30973
|
-
/* @__PURE__ */ r.jsx(
|
|
30982
|
+
/* @__PURE__ */ r.jsx(BL, {})
|
|
30974
30983
|
] }) })
|
|
30975
30984
|
] }) });
|
|
30976
30985
|
}), zo = k(() => {
|
|
30977
|
-
const [e, t] =
|
|
30986
|
+
const [e, t] = q(!1);
|
|
30978
30987
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30979
30988
|
/* @__PURE__ */ r.jsx(fe, { opened: e, onClose: () => t(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ r.jsx(Iu, {}) }),
|
|
30980
30989
|
/* @__PURE__ */ r.jsx(C, { variant: "subtle", onClick: () => t(!0), px: 16, styles: {
|
|
@@ -31089,7 +31098,7 @@ WHERE
|
|
|
31089
31098
|
}), UL = "SELECT 1", KL = k(({
|
|
31090
31099
|
queryModel: e
|
|
31091
31100
|
}) => {
|
|
31092
|
-
const [t, n] =
|
|
31101
|
+
const [t, n] = q(e.sql), s = () => {
|
|
31093
31102
|
e.setSQL(t);
|
|
31094
31103
|
}, i = () => {
|
|
31095
31104
|
n(e.sql);
|
|
@@ -31191,7 +31200,7 @@ WHERE
|
|
|
31191
31200
|
}, tA = k(({
|
|
31192
31201
|
queryModel: e
|
|
31193
31202
|
}) => {
|
|
31194
|
-
const t = le(), n = T(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [s, i] =
|
|
31203
|
+
const t = le(), n = T(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [s, i] = q(n);
|
|
31195
31204
|
O(() => {
|
|
31196
31205
|
i((l) => l !== "Configurations" && n === "Configurations" ? "Configurations" : l);
|
|
31197
31206
|
}, [n]);
|
|
@@ -31241,9 +31250,9 @@ WHERE
|
|
|
31241
31250
|
remove: t,
|
|
31242
31251
|
onKeyChanged: n
|
|
31243
31252
|
}) => {
|
|
31244
|
-
const [s, i] =
|
|
31253
|
+
const [s, i] = q("SQL"), [o, a] = q(e.key), l = () => {
|
|
31245
31254
|
e.setKey(o), n(o);
|
|
31246
|
-
}, c = o !== e.key, d = e.isADuplicatedKey(o), [u, h] =
|
|
31255
|
+
}, c = o !== e.key, d = e.isADuplicatedKey(o), [u, h] = q(e.value), p = () => {
|
|
31247
31256
|
e.setValue(u);
|
|
31248
31257
|
};
|
|
31249
31258
|
O(() => {
|
|
@@ -31332,7 +31341,7 @@ WHERE
|
|
|
31332
31341
|
};
|
|
31333
31342
|
return /* @__PURE__ */ r.jsx(sA, { item: s, remove: o, onKeyChanged: a });
|
|
31334
31343
|
}), oA = k(() => {
|
|
31335
|
-
const [e, t] =
|
|
31344
|
+
const [e, t] = q([]), n = Tt(), s = ce(), i = (h) => {
|
|
31336
31345
|
s.editor.setPath(["_SQL_SNIPPETS_", h]);
|
|
31337
31346
|
}, o = () => {
|
|
31338
31347
|
n.openConfirmModal({
|
|
@@ -31530,7 +31539,7 @@ const bA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
|
|
|
31530
31539
|
if (!e)
|
|
31531
31540
|
return null;
|
|
31532
31541
|
const n = t.views.findByID(e);
|
|
31533
|
-
return !n || n.type ===
|
|
31542
|
+
return !n || n.type === B.Tabs ? null : /* @__PURE__ */ r.jsx(C, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(ft, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => t.addANewPanel(n.id), sx: {
|
|
31534
31543
|
width: "100%",
|
|
31535
31544
|
borderRadius: 0
|
|
31536
31545
|
}, styles: {
|
|
@@ -31623,7 +31632,7 @@ const bA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
|
|
|
31623
31632
|
option: e
|
|
31624
31633
|
}) => {
|
|
31625
31634
|
var d;
|
|
31626
|
-
const t = ce().editor, n = t.isOptionActive, s = n(t.path, e), i = t.isOptionOpened, o = t.navigate, a = i(e), [l, c] =
|
|
31635
|
+
const t = ce().editor, n = t.isOptionActive, s = n(t.path, e), i = t.isOptionOpened, o = t.navigate, a = i(e), [l, c] = q(a);
|
|
31627
31636
|
return O(() => {
|
|
31628
31637
|
c(a);
|
|
31629
31638
|
}, [a]), /* @__PURE__ */ r.jsx(ri, { active: s, defaultOpened: a, opened: l, onChange: c, label: e.label, onClick: () => o(e), icon: e.Icon ? /* @__PURE__ */ r.jsx(e.Icon, { size: 18 }) : null, children: (d = e.children) == null ? void 0 : d.map((u) => u._type === "ACTION" ? /* @__PURE__ */ r.jsx(IA, { action_type: u._action_type, parentID: u.parentID }, `_ADD_${u.value}_`) : /* @__PURE__ */ r.jsx(zu, { option: u }, u.value)) }, e.label);
|
|
@@ -32017,7 +32026,7 @@ const OR = () => Promise.resolve().then(() => Om).then(({
|
|
|
32017
32026
|
version: e
|
|
32018
32027
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
32019
32028
|
export {
|
|
32020
|
-
|
|
32029
|
+
qt as APIClient,
|
|
32021
32030
|
cn as CURRENT_SCHEMA_VERSION,
|
|
32022
32031
|
bu as ContentModel,
|
|
32023
32032
|
hc as ContentModelContextProvider,
|
|
@@ -32041,7 +32050,7 @@ export {
|
|
|
32041
32050
|
Jx as DefaultApiClient,
|
|
32042
32051
|
au as DescriptionPopover,
|
|
32043
32052
|
dI as DraftModel,
|
|
32044
|
-
|
|
32053
|
+
B as EViewComponentType,
|
|
32045
32054
|
zR as FacadeApiClient,
|
|
32046
32055
|
Ad as FilterCheckboxConfigMeta,
|
|
32047
32056
|
Ed as FilterDateRangeConfigMeta,
|
|
@@ -32087,9 +32096,9 @@ export {
|
|
|
32087
32096
|
XI as ViewComponentTypeBackground,
|
|
32088
32097
|
AR as ViewComponentTypeColor,
|
|
32089
32098
|
LR as ViewComponentTypeName,
|
|
32090
|
-
|
|
32099
|
+
qd as ViewDivisionConfig,
|
|
32091
32100
|
JD as ViewMeta,
|
|
32092
|
-
|
|
32101
|
+
Bd as ViewModalConfig,
|
|
32093
32102
|
Ud as ViewRenderModel,
|
|
32094
32103
|
Wd as ViewTabsConfig,
|
|
32095
32104
|
xz as ViewsModel,
|
|
@@ -32105,8 +32114,8 @@ export {
|
|
|
32105
32114
|
uI as createDraft,
|
|
32106
32115
|
$D as createFilterCheckboxConfig,
|
|
32107
32116
|
VD as createFilterDateRangeConfig,
|
|
32108
|
-
|
|
32109
|
-
|
|
32117
|
+
qD as createFilterMultiSelectConfig,
|
|
32118
|
+
BD as createFilterSelectConfig,
|
|
32110
32119
|
Pd as createFilterTextInputConfig,
|
|
32111
32120
|
QD as createFilterTreeSelectConfig,
|
|
32112
32121
|
HD as createViewDivisionConfig,
|
|
@@ -32124,7 +32133,7 @@ export {
|
|
|
32124
32133
|
OR as getVersion,
|
|
32125
32134
|
MR as initialDashboardContent,
|
|
32126
32135
|
ac as useDashboardContext,
|
|
32127
|
-
|
|
32136
|
+
qm as useDashboardThemeContext,
|
|
32128
32137
|
le as useEditContentModelContext,
|
|
32129
32138
|
ce as useEditDashboardContext,
|
|
32130
32139
|
zt as useEditPanelContext,
|