@devtable/dashboard 10.13.0 → 10.13.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
CHANGED
|
@@ -2,14 +2,14 @@ var Bu = Object.defineProperty;
|
|
|
2
2
|
var qu = (e, t, n) => t in e ? Bu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var H = (e, t, n) => (qu(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import R, { useState as K, useEffect as W, useCallback as ot, useMemo as z, forwardRef as Se, createElement as Zr, useContext as Yt, useRef as qo, createContext as rl, memo as Wu } from "react";
|
|
5
|
-
import { Select as P, Stack as S, Text as C, Group as w, TextInput as $, Button as M, Box as V, Switch as et, NumberInput as se, Divider as E, Table as Ot, ActionIcon as U, MultiSelect as lr, Paper as Wo, Code as cs, Modal as
|
|
5
|
+
import { Select as P, Stack as S, Text as C, Group as w, TextInput as $, Button as M, Box as V, Switch as et, NumberInput as se, Divider as E, Table as Ot, ActionIcon as U, MultiSelect as lr, Paper as Wo, Code as cs, Modal as ze, Tabs as g, LoadingOverlay as Sn, Alert as jo, useMantineTheme as il, ColorInput as Go, ColorSwatch as Hi, Slider as ju, Overlay as an, Checkbox as xe, Center as kn, CheckIcon as Gu, MANTINE_SIZES as Yu, SimpleGrid as nn, Tooltip as Ve, SegmentedControl as Hu, HoverCard as it, Anchor as Qi, Textarea as Qu, Collapse as Yo, Mark as Ku, NativeSelect as ol, createStyles as qn, Popover as Li, Flex as Wn, Badge as cr, CloseButton as al, Menu as Ce, Header as Uu, ThemeIcon as Ai, List as ds, UnstyledButton as Xu, Navbar as qt, JsonInput as sl, Drawer as Ju, Radio as us, Skeleton as hs, NavLink as Ki, Pagination as Zu, AppShell as ll } from "@mantine/core";
|
|
6
6
|
import { useModals as Ht, ModalsProvider as cl } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as nt, useCreation as Tt, useAsyncEffect as br, useRequest as vn, useLatest as ps, usePrevious as eh } from "ahooks";
|
|
8
8
|
import { observable as dl, runInAction as ir, toJS as sn, reaction as kt, makeAutoObservable as yr } from "mobx";
|
|
9
9
|
import { observer as D } from "mobx-react-lite";
|
|
10
10
|
import ul from "crypto-js";
|
|
11
11
|
import ee from "dayjs";
|
|
12
|
-
import k, { unset as th, get as ce, isObject as hl, set as Ho, omit as wn, isFunction as nh, orderBy as rh, last as pl, defaults as Ne, minBy as ih, maxBy as oh, cloneDeep as Ue, values as fl, template as Qo, throttle as ah, isEqual as ke, defaultsDeep as
|
|
12
|
+
import k, { unset as th, get as ce, isObject as hl, set as Ho, omit as wn, isFunction as nh, orderBy as rh, last as pl, defaults as Ne, minBy as ih, maxBy as oh, cloneDeep as Ue, values as fl, template as Qo, throttle as ah, isEqual as ke, defaultsDeep as $e, keyBy as sh, isEmpty as ml, isNumber as lh, findLastIndex as ch, isString as gl, range as dh, cloneDeepWith as bl, pick as yl } from "lodash";
|
|
13
13
|
import le from "numbro";
|
|
14
14
|
import * as uh from "d3-array";
|
|
15
15
|
import { quantile as Lr } from "d3-array";
|
|
@@ -57,7 +57,7 @@ import { DatePickerInput as xp } from "@mantine/dates";
|
|
|
57
57
|
import vp, { Option as wp } from "rc-select";
|
|
58
58
|
import _p, { SHOW_PARENT as Cp } from "rc-tree-select";
|
|
59
59
|
import Ul, { WidthProvider as Xl } from "react-grid-layout";
|
|
60
|
-
import { types as b, cast as rn, getParent as Ke, getRoot as
|
|
60
|
+
import { types as b, cast as rn, getParent as Ke, getRoot as Me, addDisposer as Wt, isAlive as ys, flow as Pn, toGenerator as fn, clone as Sp, getSnapshot as At, applySnapshot as st, addMiddleware as kp, getType as Tp, detach as Dp, castToSnapshot as Jl } from "mobx-state-tree";
|
|
61
61
|
import { arrayToTree as Ip } from "performant-array-to-tree";
|
|
62
62
|
import Mp from "jszip";
|
|
63
63
|
import { saveAs as ea } from "file-saver";
|
|
@@ -201,7 +201,7 @@ function Pp() {
|
|
|
201
201
|
}
|
|
202
202
|
return null;
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var Le = Object.assign, Qe = 0, Te, Fe, De, Ze, gt, hn, _r;
|
|
205
205
|
function Cr() {
|
|
206
206
|
}
|
|
207
207
|
Cr.__reactDisabledLog = !0;
|
|
@@ -237,25 +237,25 @@ function Pp() {
|
|
|
237
237
|
writable: !0
|
|
238
238
|
};
|
|
239
239
|
Object.defineProperties(console, {
|
|
240
|
-
log:
|
|
240
|
+
log: Le({}, _, {
|
|
241
241
|
value: Te
|
|
242
242
|
}),
|
|
243
|
-
info:
|
|
243
|
+
info: Le({}, _, {
|
|
244
244
|
value: Fe
|
|
245
245
|
}),
|
|
246
|
-
warn:
|
|
246
|
+
warn: Le({}, _, {
|
|
247
247
|
value: De
|
|
248
248
|
}),
|
|
249
|
-
error:
|
|
249
|
+
error: Le({}, _, {
|
|
250
250
|
value: Ze
|
|
251
251
|
}),
|
|
252
|
-
group:
|
|
252
|
+
group: Le({}, _, {
|
|
253
253
|
value: gt
|
|
254
254
|
}),
|
|
255
|
-
groupCollapsed:
|
|
255
|
+
groupCollapsed: Le({}, _, {
|
|
256
256
|
value: hn
|
|
257
257
|
}),
|
|
258
|
-
groupEnd:
|
|
258
|
+
groupEnd: Le({}, _, {
|
|
259
259
|
value: _r
|
|
260
260
|
})
|
|
261
261
|
});
|
|
@@ -1164,7 +1164,7 @@ class ia {
|
|
|
1164
1164
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
|
-
const ic = "10.13.
|
|
1167
|
+
const ic = "10.13.2", af = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1168
1168
|
__proto__: null,
|
|
1169
1169
|
version: ic
|
|
1170
1170
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2513,7 +2513,7 @@ const em = D((e) => {
|
|
|
2513
2513
|
await c.configOperation(a, l);
|
|
2514
2514
|
}, [a, c]), Uf(c) ? /* @__PURE__ */ u(Y, { children: [
|
|
2515
2515
|
/* @__PURE__ */ i(Xf, { model: c, onClick: n }),
|
|
2516
|
-
/* @__PURE__ */ i(
|
|
2516
|
+
/* @__PURE__ */ i(ze, { size: 600, opened: t, onClose: r, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
|
|
2517
2517
|
/* @__PURE__ */ i(Zf, { model: c }),
|
|
2518
2518
|
/* @__PURE__ */ u(g, { defaultValue: "settings", children: [
|
|
2519
2519
|
/* @__PURE__ */ u(g.List, { children: [
|
|
@@ -2592,7 +2592,7 @@ const im = D(({
|
|
|
2592
2592
|
setFalse: r
|
|
2593
2593
|
}] = nt(!1), o = e.model;
|
|
2594
2594
|
return /* @__PURE__ */ u(Y, { children: [
|
|
2595
|
-
/* @__PURE__ */ i(
|
|
2595
|
+
/* @__PURE__ */ i(ze, { opened: t, onClose: r, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
|
|
2596
2596
|
/* @__PURE__ */ i(om, { model: o }),
|
|
2597
2597
|
/* @__PURE__ */ i(am, { model: o }),
|
|
2598
2598
|
/* @__PURE__ */ i(gc, { title: "Payload", variables: o.triggerSchema.payload })
|
|
@@ -3566,7 +3566,7 @@ const Ym = ({
|
|
|
3566
3566
|
/* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
3567
3567
|
flexGrow: 0
|
|
3568
3568
|
}, children: "Customize Label" }),
|
|
3569
|
-
/* @__PURE__ */ i(
|
|
3569
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
3570
3570
|
/* @__PURE__ */ i(xe, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
|
|
3571
3571
|
/* @__PURE__ */ i(Ym, { value: s.func_content, onChange: h, disabled: !s.enabled }),
|
|
3572
3572
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -4019,7 +4019,7 @@ const ua = {
|
|
|
4019
4019
|
instance: t
|
|
4020
4020
|
}), r = Mt(n.triggerManager, vc.id), o = Xe(), {
|
|
4021
4021
|
value: a
|
|
4022
|
-
} = J(e.instanceData, "config"), s = z(() =>
|
|
4022
|
+
} = J(e.instanceData, "config"), s = z(() => $e({}, a, ua), [a]), {
|
|
4023
4023
|
content: l,
|
|
4024
4024
|
horizontal_align: c,
|
|
4025
4025
|
vertical_align: d,
|
|
@@ -4109,7 +4109,7 @@ function xg({
|
|
|
4109
4109
|
const {
|
|
4110
4110
|
value: t,
|
|
4111
4111
|
set: n
|
|
4112
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
4112
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, ua), [t]), o = r;
|
|
4113
4113
|
W(() => {
|
|
4114
4114
|
!ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
4115
4115
|
}, [r, o]);
|
|
@@ -4799,7 +4799,7 @@ function Gg(e, t, n) {
|
|
|
4799
4799
|
legend: Dg(s),
|
|
4800
4800
|
dataZoom: fa(e.dataZoom)
|
|
4801
4801
|
};
|
|
4802
|
-
return
|
|
4802
|
+
return $e({}, c, jg);
|
|
4803
4803
|
}
|
|
4804
4804
|
function Cs(e) {
|
|
4805
4805
|
const t = e.getModel(), n = t.getSeries().map((r) => {
|
|
@@ -5508,7 +5508,7 @@ const lb = ({
|
|
|
5508
5508
|
}, children: /* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
5509
5509
|
flexGrow: 0
|
|
5510
5510
|
}, children: "Setup" }) }),
|
|
5511
|
-
/* @__PURE__ */ i(
|
|
5511
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Setup dynamic size", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
5512
5512
|
/* @__PURE__ */ i(E, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
5513
5513
|
/* @__PURE__ */ i(lb, { value: a.func_content, onChange: d }),
|
|
5514
5514
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -6072,7 +6072,7 @@ function Ib({
|
|
|
6072
6072
|
set: n
|
|
6073
6073
|
} = J(e.instanceData, "config"), {
|
|
6074
6074
|
variables: r
|
|
6075
|
-
} = e, o = z(() =>
|
|
6075
|
+
} = e, o = z(() => $e({}, t, pa), [t]), {
|
|
6076
6076
|
control: a,
|
|
6077
6077
|
handleSubmit: s,
|
|
6078
6078
|
watch: l,
|
|
@@ -7300,7 +7300,7 @@ const Sy = ({
|
|
|
7300
7300
|
}, children: /* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
7301
7301
|
flexGrow: 0
|
|
7302
7302
|
}, children: "Setup" }) }),
|
|
7303
|
-
/* @__PURE__ */ i(
|
|
7303
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Setup dynamic value", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
7304
7304
|
/* @__PURE__ */ i(E, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
7305
7305
|
/* @__PURE__ */ i(Sy, { value: a.value, onChange: d }),
|
|
7306
7306
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -7476,7 +7476,7 @@ function Ay(e, t, n) {
|
|
|
7476
7476
|
grid: xy(e),
|
|
7477
7477
|
visualMap: My(e, r)
|
|
7478
7478
|
};
|
|
7479
|
-
return
|
|
7479
|
+
return $e({}, s, Ly);
|
|
7480
7480
|
}
|
|
7481
7481
|
function Ey(e) {
|
|
7482
7482
|
return /* @__PURE__ */ i(Y, {});
|
|
@@ -7789,7 +7789,7 @@ const qy = ({
|
|
|
7789
7789
|
/* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
7790
7790
|
flexGrow: 0
|
|
7791
7791
|
}, children: "Customize Label" }),
|
|
7792
|
-
/* @__PURE__ */ i(
|
|
7792
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
7793
7793
|
/* @__PURE__ */ i(xe, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
|
|
7794
7794
|
/* @__PURE__ */ i(qy, { value: s.func_content, onChange: h, disabled: !s.enabled }),
|
|
7795
7795
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -7912,7 +7912,7 @@ function Hy({
|
|
|
7912
7912
|
const {
|
|
7913
7913
|
value: t,
|
|
7914
7914
|
set: n
|
|
7915
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
7915
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, va), [t]), o = z(() => k.cloneDeep(r), [r]);
|
|
7916
7916
|
W(() => {
|
|
7917
7917
|
!ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
7918
7918
|
}, [r, o]);
|
|
@@ -9069,7 +9069,7 @@ function Nx({
|
|
|
9069
9069
|
const {
|
|
9070
9070
|
value: t,
|
|
9071
9071
|
set: n
|
|
9072
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
9072
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, _a), [t]), o = z(() => k.clone(r), [r]), {
|
|
9073
9073
|
control: a,
|
|
9074
9074
|
handleSubmit: s,
|
|
9075
9075
|
watch: l,
|
|
@@ -9442,7 +9442,7 @@ function tv({
|
|
|
9442
9442
|
});
|
|
9443
9443
|
}, [s, l, o]), d = z(() => ({
|
|
9444
9444
|
click: c
|
|
9445
|
-
}), [c]), p = z(() => ev(
|
|
9445
|
+
}), [c]), p = z(() => ev($e({}, e, mi), t), [e, t]);
|
|
9446
9446
|
return !n || !r ? null : /* @__PURE__ */ i(ut, { echarts: be, option: p, style: {
|
|
9447
9447
|
width: n,
|
|
9448
9448
|
height: r
|
|
@@ -9635,7 +9635,7 @@ function sv({
|
|
|
9635
9635
|
const {
|
|
9636
9636
|
value: t,
|
|
9637
9637
|
set: n
|
|
9638
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
9638
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, mi), [t]), {
|
|
9639
9639
|
control: o,
|
|
9640
9640
|
handleSubmit: a,
|
|
9641
9641
|
watch: s,
|
|
@@ -10042,7 +10042,7 @@ function Cv(e, t) {
|
|
|
10042
10042
|
data: n.map((a) => a.name)
|
|
10043
10043
|
}
|
|
10044
10044
|
};
|
|
10045
|
-
return
|
|
10045
|
+
return $e({}, o, _v);
|
|
10046
10046
|
}
|
|
10047
10047
|
function gi(e, t, n) {
|
|
10048
10048
|
return 1 - (1 - e) * (t - 1) / (t - n - 1);
|
|
@@ -10303,7 +10303,7 @@ function Av({
|
|
|
10303
10303
|
...v,
|
|
10304
10304
|
[f.columnKey]: Number(v[f.columnKey])
|
|
10305
10305
|
});
|
|
10306
|
-
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = z(() => Cv(
|
|
10306
|
+
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = z(() => Cv($e({}, t, Ca), o), [t, o]), s = qo(null), l = (c) => {
|
|
10307
10307
|
s.current = c;
|
|
10308
10308
|
};
|
|
10309
10309
|
return !n || !r || !t ? null : /* @__PURE__ */ u(V, { sx: {
|
|
@@ -10437,7 +10437,7 @@ const Ov = ({
|
|
|
10437
10437
|
/* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: a, sx: {
|
|
10438
10438
|
flexGrow: 0
|
|
10439
10439
|
}, children: n }),
|
|
10440
|
-
/* @__PURE__ */ i(
|
|
10440
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Customize label content", opened: o, onClose: s, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: o && /* @__PURE__ */ u(S, { children: [
|
|
10441
10441
|
/* @__PURE__ */ i(xe, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (v) => d(v.currentTarget.checked) }),
|
|
10442
10442
|
/* @__PURE__ */ i(Ov, { value: l.func_content, onChange: f, disabled: !l.enabled }),
|
|
10443
10443
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -14669,7 +14669,7 @@ function Jw(e, t, n) {
|
|
|
14669
14669
|
legend: Vw(),
|
|
14670
14670
|
dataZoom: fa(e.dataZoom)
|
|
14671
14671
|
};
|
|
14672
|
-
return
|
|
14672
|
+
return $e({}, l, Xw);
|
|
14673
14673
|
}
|
|
14674
14674
|
be.use([Qt, jn, Gn, ii, xt, vt, wt, dt, ni, Ko]);
|
|
14675
14675
|
function qs(e) {
|
|
@@ -15078,7 +15078,7 @@ const l_ = ({
|
|
|
15078
15078
|
}, children: /* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
15079
15079
|
flexGrow: 0
|
|
15080
15080
|
}, children: "Setup" }) }),
|
|
15081
|
-
/* @__PURE__ */ i(
|
|
15081
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Setup dynamic color", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
15082
15082
|
/* @__PURE__ */ i(E, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
15083
15083
|
/* @__PURE__ */ i(l_, { value: a.func_content, onChange: d }),
|
|
15084
15084
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -15200,7 +15200,7 @@ const l_ = ({
|
|
|
15200
15200
|
}, children: /* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
15201
15201
|
flexGrow: 0
|
|
15202
15202
|
}, children: "Setup" }) }),
|
|
15203
|
-
/* @__PURE__ */ i(
|
|
15203
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Setup dynamic size", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
15204
15204
|
/* @__PURE__ */ i(E, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
15205
15205
|
/* @__PURE__ */ i(m_, { value: a.func_content, onChange: d }),
|
|
15206
15206
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -15503,7 +15503,7 @@ const I_ = ({
|
|
|
15503
15503
|
/* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
15504
15504
|
flexGrow: 0
|
|
15505
15505
|
}, children: "Customize Label" }),
|
|
15506
|
-
/* @__PURE__ */ i(
|
|
15506
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
15507
15507
|
/* @__PURE__ */ i(xe, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
|
|
15508
15508
|
/* @__PURE__ */ i(I_, { value: s.func_content, onChange: h, disabled: !s.enabled }),
|
|
15509
15509
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -15690,7 +15690,7 @@ function F_({
|
|
|
15690
15690
|
set: n
|
|
15691
15691
|
} = J(e.instanceData, "config"), {
|
|
15692
15692
|
variables: r
|
|
15693
|
-
} = e, o = z(() =>
|
|
15693
|
+
} = e, o = z(() => $e({}, t, $a), [t]), a = z(() => O_(o), [o]);
|
|
15694
15694
|
W(() => {
|
|
15695
15695
|
!ke(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
|
|
15696
15696
|
}, [o, a]);
|
|
@@ -16090,7 +16090,7 @@ function nC({
|
|
|
16090
16090
|
const {
|
|
16091
16091
|
value: t,
|
|
16092
16092
|
set: n
|
|
16093
|
-
} = J(e.instanceData, "config"), r = R.useMemo(() =>
|
|
16093
|
+
} = J(e.instanceData, "config"), r = R.useMemo(() => $e({}, t, La), [t]), {
|
|
16094
16094
|
control: o,
|
|
16095
16095
|
handleSubmit: a,
|
|
16096
16096
|
watch: s,
|
|
@@ -16304,7 +16304,7 @@ function hC(e, t, n) {
|
|
|
16304
16304
|
},
|
|
16305
16305
|
tooltip: dC()
|
|
16306
16306
|
};
|
|
16307
|
-
return
|
|
16307
|
+
return $e({}, o, uC);
|
|
16308
16308
|
}
|
|
16309
16309
|
be.use([Dh, dt]);
|
|
16310
16310
|
function pC({
|
|
@@ -16480,7 +16480,7 @@ function xC({
|
|
|
16480
16480
|
const {
|
|
16481
16481
|
value: t,
|
|
16482
16482
|
set: n
|
|
16483
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
16483
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, Aa), [t]), o = z(() => k.clone(r), [r]), {
|
|
16484
16484
|
control: a,
|
|
16485
16485
|
handleSubmit: s,
|
|
16486
16486
|
watch: l,
|
|
@@ -16943,7 +16943,7 @@ function YC({
|
|
|
16943
16943
|
context: o,
|
|
16944
16944
|
instance: a
|
|
16945
16945
|
}) {
|
|
16946
|
-
var
|
|
16946
|
+
var Le, Qe;
|
|
16947
16947
|
const {
|
|
16948
16948
|
id_field: s,
|
|
16949
16949
|
use_raw_columns: l,
|
|
@@ -17001,7 +17001,7 @@ function YC({
|
|
|
17001
17001
|
}), {
|
|
17002
17002
|
virtualItems: O,
|
|
17003
17003
|
totalSize: A
|
|
17004
|
-
} = N, Q = O.length > 0 && ((
|
|
17004
|
+
} = N, Q = O.length > 0 && ((Le = O == null ? void 0 : O[0]) == null ? void 0 : Le.start) || 0, re = O.length > 0 ? A - (((Qe = O == null ? void 0 : O[O.length - 1]) == null ? void 0 : Qe.end) || 0) : 0, te = B.length, ie = te > 0, fe = ie ? n - 22 : n, ge = ie ? 22 : 0;
|
|
17005
17005
|
return !Array.isArray(f) || f.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: j, style: {
|
|
17006
17006
|
height: n,
|
|
17007
17007
|
width: t
|
|
@@ -17202,7 +17202,7 @@ const XC = D(({
|
|
|
17202
17202
|
};
|
|
17203
17203
|
return /* @__PURE__ */ u(Y, { children: [
|
|
17204
17204
|
/* @__PURE__ */ i(M, { variant: "outline", onClick: d, children: l == null ? void 0 : l.displayName }),
|
|
17205
|
-
/* @__PURE__ */ i(
|
|
17205
|
+
/* @__PURE__ */ i(ze, { size: 508, title: "Setup color interpolation", opened: c, onClose: p, zIndex: 320, children: c && /* @__PURE__ */ u(S, { "data-testid": "color-interpolation-modal", children: [
|
|
17206
17206
|
/* @__PURE__ */ i(P, { label: "Color style", value: a.interpolation, data: h, onChange: f }),
|
|
17207
17207
|
/* @__PURE__ */ i(JC, { steps: a.steps, interpolation: l, onChange: v }),
|
|
17208
17208
|
/* @__PURE__ */ u(w, { position: "right", children: [
|
|
@@ -17282,7 +17282,7 @@ const i1 = Se((e, t) => {
|
|
|
17282
17282
|
/* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
17283
17283
|
flexGrow: 0
|
|
17284
17284
|
}, children: "Custom Cell Content" }),
|
|
17285
|
-
/* @__PURE__ */ i(
|
|
17285
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Custom cell content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
17286
17286
|
/* @__PURE__ */ i(V, { sx: {
|
|
17287
17287
|
position: "relative"
|
|
17288
17288
|
}, children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (h) => l(h ?? ""), theme: "vs-dark", options: {
|
|
@@ -17471,7 +17471,7 @@ function f1({
|
|
|
17471
17471
|
const {
|
|
17472
17472
|
value: t,
|
|
17473
17473
|
set: n
|
|
17474
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
17474
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, dd), [t]), o = z(() => p1(r), [r]);
|
|
17475
17475
|
W(() => {
|
|
17476
17476
|
!ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
17477
17477
|
}, [r, o]);
|
|
@@ -17691,7 +17691,7 @@ const to = {
|
|
|
17691
17691
|
/* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
17692
17692
|
flexGrow: 0
|
|
17693
17693
|
}, children: "Edit Content" }),
|
|
17694
|
-
/* @__PURE__ */ i(
|
|
17694
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Text content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
17695
17695
|
/* @__PURE__ */ i(v1, { value: s, onChange: l }),
|
|
17696
17696
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
17697
17697
|
/* @__PURE__ */ i(M, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(It, { size: 20 }), children: "Rest" }),
|
|
@@ -17718,7 +17718,7 @@ function C1({
|
|
|
17718
17718
|
const {
|
|
17719
17719
|
value: t,
|
|
17720
17720
|
set: n
|
|
17721
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
17721
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, Ra), [t]), o = z(() => {
|
|
17722
17722
|
const {
|
|
17723
17723
|
func_content: f,
|
|
17724
17724
|
horizontal_align: m,
|
|
@@ -17901,7 +17901,7 @@ function z1({
|
|
|
17901
17901
|
}) {
|
|
17902
17902
|
const {
|
|
17903
17903
|
value: t
|
|
17904
|
-
} = J(e.instanceData, "config"), n = z(() =>
|
|
17904
|
+
} = J(e.instanceData, "config"), n = z(() => $e({}, t, Oa), [t]), {
|
|
17905
17905
|
width: r,
|
|
17906
17906
|
height: o
|
|
17907
17907
|
} = e.viewport, a = e.data, {
|
|
@@ -17927,7 +17927,7 @@ function $1({
|
|
|
17927
17927
|
const {
|
|
17928
17928
|
value: t,
|
|
17929
17929
|
set: n
|
|
17930
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
17930
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, Oa), [t]), {
|
|
17931
17931
|
control: o,
|
|
17932
17932
|
handleSubmit: a,
|
|
17933
17933
|
watch: s,
|
|
@@ -18192,7 +18192,7 @@ function Y1(e, t, n) {
|
|
|
18192
18192
|
visualMap: q1(e, d, r),
|
|
18193
18193
|
legend: F1(d, c)
|
|
18194
18194
|
};
|
|
18195
|
-
return
|
|
18195
|
+
return $e({}, p, W1);
|
|
18196
18196
|
}
|
|
18197
18197
|
function H1(e) {
|
|
18198
18198
|
return /* @__PURE__ */ i(Y, {});
|
|
@@ -18451,7 +18451,7 @@ function iS({
|
|
|
18451
18451
|
const {
|
|
18452
18452
|
value: t,
|
|
18453
18453
|
set: n
|
|
18454
|
-
} = J(e.instanceData, "config"), r = z(() =>
|
|
18454
|
+
} = J(e.instanceData, "config"), r = z(() => $e({}, t, Fa), [t]), o = z(() => k.cloneDeep(r), [r]);
|
|
18455
18455
|
W(() => {
|
|
18456
18456
|
!ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
18457
18457
|
}, [r, o]);
|
|
@@ -20246,7 +20246,7 @@ function uk(e, t, n) {
|
|
|
20246
20246
|
}],
|
|
20247
20247
|
legend: lk(c)
|
|
20248
20248
|
};
|
|
20249
|
-
return
|
|
20249
|
+
return $e({}, d, ck);
|
|
20250
20250
|
}
|
|
20251
20251
|
const hk = {
|
|
20252
20252
|
input: {
|
|
@@ -20891,7 +20891,7 @@ function Fk({
|
|
|
20891
20891
|
set: n
|
|
20892
20892
|
} = J(e.instanceData, "config"), {
|
|
20893
20893
|
variables: r
|
|
20894
|
-
} = e, o = z(() =>
|
|
20894
|
+
} = e, o = z(() => $e({}, t, Na), [t]), {
|
|
20895
20895
|
control: a,
|
|
20896
20896
|
handleSubmit: s,
|
|
20897
20897
|
watch: l,
|
|
@@ -22238,7 +22238,7 @@ const gT = b.model("FilterDateRangeConfigMeta", {
|
|
|
22238
22238
|
setFilterValue(t) {
|
|
22239
22239
|
try {
|
|
22240
22240
|
const n = Ke(e);
|
|
22241
|
-
|
|
22241
|
+
Me(e).filters.setValueByKey(n.key, t);
|
|
22242
22242
|
} catch (n) {
|
|
22243
22243
|
console.error(n);
|
|
22244
22244
|
}
|
|
@@ -22314,7 +22314,7 @@ const gT = b.model("FilterDateRangeConfigMeta", {
|
|
|
22314
22314
|
data: t,
|
|
22315
22315
|
state: n,
|
|
22316
22316
|
error: r
|
|
22317
|
-
} =
|
|
22317
|
+
} = Me(e).content.getDataStuffByID(e.options_query_id);
|
|
22318
22318
|
return n === "idle" ? t : [];
|
|
22319
22319
|
}
|
|
22320
22320
|
})).actions((e) => ({
|
|
@@ -22364,7 +22364,7 @@ const gT = b.model("FilterDateRangeConfigMeta", {
|
|
|
22364
22364
|
e.min_width = t;
|
|
22365
22365
|
},
|
|
22366
22366
|
setDefaultSelection() {
|
|
22367
|
-
const t =
|
|
22367
|
+
const t = Me(e).content.filters, n = Ke(e).key;
|
|
22368
22368
|
t.setValueByKey(n, e.default_selection);
|
|
22369
22369
|
}
|
|
22370
22370
|
})).actions((e) => ({
|
|
@@ -22518,19 +22518,19 @@ const Ad = b.compose("FilterTreeSelectConfigMeta", b.model({
|
|
|
22518
22518
|
get treeData() {
|
|
22519
22519
|
const {
|
|
22520
22520
|
data: t
|
|
22521
|
-
} =
|
|
22521
|
+
} = Me(e).content.getDataStuffByID(e.options_query_id), n = _T(t);
|
|
22522
22522
|
return wT(n);
|
|
22523
22523
|
},
|
|
22524
22524
|
get errorMessage() {
|
|
22525
22525
|
const {
|
|
22526
22526
|
error: t
|
|
22527
|
-
} =
|
|
22527
|
+
} = Me(e).content.getDataStuffByID(e.options_query_id);
|
|
22528
22528
|
return t;
|
|
22529
22529
|
},
|
|
22530
22530
|
get treeDataLoading() {
|
|
22531
22531
|
const {
|
|
22532
22532
|
state: t
|
|
22533
|
-
} =
|
|
22533
|
+
} = Me(e).content.getDataStuffByID(e.options_query_id);
|
|
22534
22534
|
return t === "loading";
|
|
22535
22535
|
},
|
|
22536
22536
|
get defaultSelection() {
|
|
@@ -22548,7 +22548,7 @@ const Ad = b.compose("FilterTreeSelectConfigMeta", b.model({
|
|
|
22548
22548
|
},
|
|
22549
22549
|
applyDefaultSelection() {
|
|
22550
22550
|
const t = Ke(e, 1).key;
|
|
22551
|
-
|
|
22551
|
+
Me(e).content.filters.setValueByKey(t, e.defaultSelection);
|
|
22552
22552
|
},
|
|
22553
22553
|
afterCreate() {
|
|
22554
22554
|
Wt(e, kt(() => JSON.stringify(e.defaultSelection), this.applyDefaultSelection, {
|
|
@@ -22684,7 +22684,7 @@ const Rd = b.model("ViewDivisionConfig", {
|
|
|
22684
22684
|
const {
|
|
22685
22685
|
enabled: t,
|
|
22686
22686
|
func_content: n
|
|
22687
|
-
} = e, r = Ke(e, 2), o =
|
|
22687
|
+
} = e, r = Ke(e, 2), o = Me(e);
|
|
22688
22688
|
if (!t)
|
|
22689
22689
|
return r.name;
|
|
22690
22690
|
try {
|
|
@@ -23003,7 +23003,7 @@ function LT(e) {
|
|
|
23003
23003
|
}
|
|
23004
23004
|
const qd = hT.views((e) => ({
|
|
23005
23005
|
get contentModel() {
|
|
23006
|
-
return
|
|
23006
|
+
return Me(e).content;
|
|
23007
23007
|
}
|
|
23008
23008
|
})).views((e) => ({
|
|
23009
23009
|
get queries() {
|
|
@@ -23029,7 +23029,7 @@ const qd = hT.views((e) => ({
|
|
|
23029
23029
|
e.queries.forEach((t) => t.fetchData());
|
|
23030
23030
|
},
|
|
23031
23031
|
downloadData() {
|
|
23032
|
-
|
|
23032
|
+
Me(e).content.queries.downloadDataByQueryIDs(e.queryIDs);
|
|
23033
23033
|
}
|
|
23034
23034
|
}));
|
|
23035
23035
|
function AT(e) {
|
|
@@ -23166,7 +23166,7 @@ const RT = pT.views((e) => ({
|
|
|
23166
23166
|
const {
|
|
23167
23167
|
context: t,
|
|
23168
23168
|
filters: n
|
|
23169
|
-
} =
|
|
23169
|
+
} = Me(e).content.payloadForSQL, r = Object.keys({
|
|
23170
23170
|
...t
|
|
23171
23171
|
}).map((s) => `context.${s}`), o = Object.keys(n).map((s) => `filters.${s}`);
|
|
23172
23172
|
return [...r, ...o].map((s) => ({
|
|
@@ -23183,7 +23183,7 @@ const RT = pT.views((e) => ({
|
|
|
23183
23183
|
} = e;
|
|
23184
23184
|
if (t.length === 0)
|
|
23185
23185
|
return [];
|
|
23186
|
-
const n =
|
|
23186
|
+
const n = Me(e).content.payloadForSQL;
|
|
23187
23187
|
return t.filter((r) => {
|
|
23188
23188
|
const o = k.get(n, r);
|
|
23189
23189
|
return Array.isArray(o) ? o.length === 0 : typeof o == "number" ? Number.isNaN(o) : !o;
|
|
@@ -23196,7 +23196,7 @@ const RT = pT.views((e) => ({
|
|
|
23196
23196
|
} = e;
|
|
23197
23197
|
if (t.length === 0)
|
|
23198
23198
|
return "";
|
|
23199
|
-
const n =
|
|
23199
|
+
const n = Me(e).content.payloadForSQL, r = [...t].reduce((o, a) => (o[a] = k.get(n, a), o), {});
|
|
23200
23200
|
return JSON.stringify(r);
|
|
23201
23201
|
},
|
|
23202
23202
|
get runByConditionsMet() {
|
|
@@ -23210,7 +23210,7 @@ const RT = pT.views((e) => ({
|
|
|
23210
23210
|
};
|
|
23211
23211
|
const {
|
|
23212
23212
|
keyLabelMap: t
|
|
23213
|
-
} =
|
|
23213
|
+
} = Me(e).content.filters, n = e.unmetRunByConditions.filter((o) => o.startsWith("context.")).map((o) => o.split("context.")[0]), r = e.unmetRunByConditions.filter((o) => o.startsWith("filters.")).map((o) => k.get({
|
|
23214
23214
|
filters: t
|
|
23215
23215
|
}, o)).filter((o) => !!o);
|
|
23216
23216
|
return {
|
|
@@ -23247,7 +23247,7 @@ const BT = b.compose("QueryRenderModel", RT, b.model({
|
|
|
23247
23247
|
error: b.frozen()
|
|
23248
23248
|
})).views((e) => ({
|
|
23249
23249
|
get formattedSQL() {
|
|
23250
|
-
const t =
|
|
23250
|
+
const t = Me(e).content.payloadForSQL;
|
|
23251
23251
|
return na(e.sql, t);
|
|
23252
23252
|
},
|
|
23253
23253
|
get typedAsSQL() {
|
|
@@ -23261,7 +23261,7 @@ const BT = b.compose("QueryRenderModel", RT, b.model({
|
|
|
23261
23261
|
key: t,
|
|
23262
23262
|
type: n
|
|
23263
23263
|
} = e;
|
|
23264
|
-
return
|
|
23264
|
+
return Me(e).datasources.find({
|
|
23265
23265
|
type: n,
|
|
23266
23266
|
key: t
|
|
23267
23267
|
});
|
|
@@ -23270,7 +23270,7 @@ const BT = b.compose("QueryRenderModel", RT, b.model({
|
|
|
23270
23270
|
const {
|
|
23271
23271
|
context: t,
|
|
23272
23272
|
filters: n
|
|
23273
|
-
} =
|
|
23273
|
+
} = Me(e).content.payloadForSQL, {
|
|
23274
23274
|
name: r,
|
|
23275
23275
|
pre_process: o
|
|
23276
23276
|
} = e.json, a = FT(o, t, n);
|
|
@@ -23300,7 +23300,7 @@ const BT = b.compose("QueryRenderModel", RT, b.model({
|
|
|
23300
23300
|
if (e.valid && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
23301
23301
|
e.controller = new AbortController(), e.state = "loading";
|
|
23302
23302
|
try {
|
|
23303
|
-
const n =
|
|
23303
|
+
const n = Me(e).content.payloadForSQL;
|
|
23304
23304
|
e.data = yield* fn(Yp({
|
|
23305
23305
|
payload: n,
|
|
23306
23306
|
title: e.name,
|
|
@@ -23577,7 +23577,7 @@ const Xd = D(() => {
|
|
|
23577
23577
|
panel: n
|
|
23578
23578
|
} = Mn();
|
|
23579
23579
|
return UT(n.description) ? null : /* @__PURE__ */ u(Y, { children: [
|
|
23580
|
-
/* @__PURE__ */ i(
|
|
23580
|
+
/* @__PURE__ */ i(ze, { opened: e, onClose: () => t(!1), title: n.title, withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ i(vi, { value: n.description, styles: {
|
|
23581
23581
|
root: {
|
|
23582
23582
|
border: "none"
|
|
23583
23583
|
},
|
|
@@ -23902,7 +23902,7 @@ const iu = D(({
|
|
|
23902
23902
|
panel: n,
|
|
23903
23903
|
exitFullScreen: r
|
|
23904
23904
|
}) {
|
|
23905
|
-
return /* @__PURE__ */ i(
|
|
23905
|
+
return /* @__PURE__ */ i(ze, { opened: !0, fullScreen: !0, onClose: r, title: /* @__PURE__ */ i(M, { color: "blue", size: "xs", onClick: r, leftIcon: /* @__PURE__ */ i(yh, { size: 20 }), children: "Exit fullscreen" }), styles: hD, children: /* @__PURE__ */ i(w, { grow: !0, sx: {
|
|
23906
23906
|
flexGrow: 1,
|
|
23907
23907
|
flexShrink: 0
|
|
23908
23908
|
}, children: /* @__PURE__ */ i(iu, { view: t, panel: n }) }) });
|
|
@@ -24004,7 +24004,7 @@ const _D = D(({
|
|
|
24004
24004
|
"> div:not(.mantine-Modal-root)": {
|
|
24005
24005
|
height: "100%"
|
|
24006
24006
|
}
|
|
24007
|
-
}, children: /* @__PURE__ */ i(
|
|
24007
|
+
}, children: /* @__PURE__ */ i(ze, { size: n.width, opened: !0, onClose: k.noop, withCloseButton: !1, title: n.custom_modal_title.value, trapFocus: !0, onDragStart: (a) => {
|
|
24008
24008
|
a.stopPropagation();
|
|
24009
24009
|
}, styles: {
|
|
24010
24010
|
root: {
|
|
@@ -24157,7 +24157,7 @@ const _D = D(({
|
|
|
24157
24157
|
view: t
|
|
24158
24158
|
}) => {
|
|
24159
24159
|
const n = Xe(), r = t.config, o = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id);
|
|
24160
|
-
return /* @__PURE__ */ i(
|
|
24160
|
+
return /* @__PURE__ */ i(ze, { size: r.width, centered: !0, opened: o, onClose: a, withCloseButton: !1, title: r.custom_modal_title.value, trapFocus: !0, onDragStart: (s) => {
|
|
24161
24161
|
s.stopPropagation();
|
|
24162
24162
|
}, styles: {
|
|
24163
24163
|
root: {
|
|
@@ -24768,7 +24768,7 @@ const YD = b.model("EditorModel", {
|
|
|
24768
24768
|
get navOptions() {
|
|
24769
24769
|
const {
|
|
24770
24770
|
content: t
|
|
24771
|
-
} =
|
|
24771
|
+
} = Me(e), {
|
|
24772
24772
|
filters: n,
|
|
24773
24773
|
views: r,
|
|
24774
24774
|
sqlSnippets: o,
|
|
@@ -24854,7 +24854,7 @@ const YD = b.model("EditorModel", {
|
|
|
24854
24854
|
}
|
|
24855
24855
|
})).actions((e) => ({
|
|
24856
24856
|
moveToView(t, n) {
|
|
24857
|
-
|
|
24857
|
+
Me(e).content.views.findByID(t).removePanelID(e.id), Me(e).content.views.findByID(n).appendPanelID(e.id), Me(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
|
|
24858
24858
|
}
|
|
24859
24859
|
})), QD = b.compose("PanelsModel", Wd, b.model({
|
|
24860
24860
|
list: b.optional(b.array(HD), [])
|
|
@@ -24894,6 +24894,11 @@ const YD = b.model("EditorModel", {
|
|
|
24894
24894
|
const n = e.list.findIndex((r) => r.id === t);
|
|
24895
24895
|
n !== -1 && e.list.splice(n, 1);
|
|
24896
24896
|
},
|
|
24897
|
+
removeByIDs(t) {
|
|
24898
|
+
t.forEach((n) => {
|
|
24899
|
+
this.removeByID(n);
|
|
24900
|
+
});
|
|
24901
|
+
},
|
|
24897
24902
|
duplicateByID(t) {
|
|
24898
24903
|
const n = e.list.find((o) => o.id === t);
|
|
24899
24904
|
if (!n) {
|
|
@@ -24934,7 +24939,7 @@ const YD = b.model("EditorModel", {
|
|
|
24934
24939
|
}));
|
|
24935
24940
|
},
|
|
24936
24941
|
get editorOptions() {
|
|
24937
|
-
const t =
|
|
24942
|
+
const t = Me(e).content.panels;
|
|
24938
24943
|
return e.current.map((n) => ({
|
|
24939
24944
|
label: n.name,
|
|
24940
24945
|
value: n.id,
|
|
@@ -24965,8 +24970,11 @@ const YD = b.model("EditorModel", {
|
|
|
24965
24970
|
e.current.splice(t, 1);
|
|
24966
24971
|
},
|
|
24967
24972
|
removeByID(t) {
|
|
24968
|
-
const n = e.current.findIndex((
|
|
24969
|
-
n
|
|
24973
|
+
const n = e.current.findIndex((a) => a.id === t);
|
|
24974
|
+
if (n === -1)
|
|
24975
|
+
return;
|
|
24976
|
+
const r = e.current[n];
|
|
24977
|
+
Me(e).content.panels.removeByIDs(r.panelIDs), e.current.splice(n, 1);
|
|
24970
24978
|
},
|
|
24971
24979
|
replaceByIndex(t, n) {
|
|
24972
24980
|
e.current.splice(t, 1, n);
|
|
@@ -25871,7 +25879,7 @@ const TI = {
|
|
|
25871
25879
|
opened: e,
|
|
25872
25880
|
close: t
|
|
25873
25881
|
}) => /* @__PURE__ */ i(
|
|
25874
|
-
|
|
25882
|
+
ze,
|
|
25875
25883
|
{
|
|
25876
25884
|
size: "96vw",
|
|
25877
25885
|
opened: e,
|
|
@@ -26911,7 +26919,7 @@ const yM = D(() => {
|
|
|
26911
26919
|
};
|
|
26912
26920
|
return /* @__PURE__ */ u(Y, { children: [
|
|
26913
26921
|
/* @__PURE__ */ i(M, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftIcon: /* @__PURE__ */ i(kl, { size: 14 }), children: "Move into Another View" }),
|
|
26914
|
-
/* @__PURE__ */ i(
|
|
26922
|
+
/* @__PURE__ */ i(ze, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ u(S, { sx: {
|
|
26915
26923
|
maxHeight: "calc(100vh - 185px)",
|
|
26916
26924
|
overflow: "hidden"
|
|
26917
26925
|
}, children: [
|
|
@@ -26985,7 +26993,9 @@ const _M = D(({
|
|
|
26985
26993
|
panel: e,
|
|
26986
26994
|
data: e.data,
|
|
26987
26995
|
loading: c,
|
|
26988
|
-
errors: e.queryErrors
|
|
26996
|
+
errors: e.queryErrors,
|
|
26997
|
+
downloadPanelScreenshot: () => {
|
|
26998
|
+
}
|
|
26989
26999
|
}, children: [
|
|
26990
27000
|
/* @__PURE__ */ u(w, { px: 16, position: "apart", sx: {
|
|
26991
27001
|
borderBottom: "1px solid #eee"
|
|
@@ -27421,7 +27431,7 @@ const AM = D(({
|
|
|
27421
27431
|
}) => {
|
|
27422
27432
|
const [n, r] = K(!1);
|
|
27423
27433
|
return e.type === "http" ? null : /* @__PURE__ */ u(Y, { children: [
|
|
27424
|
-
/* @__PURE__ */ i(
|
|
27434
|
+
/* @__PURE__ */ i(ze, { opened: n, onClose: () => r(!1), title: /* @__PURE__ */ u(w, { position: "apart", sx: {
|
|
27425
27435
|
flexGrow: 1
|
|
27426
27436
|
}, children: [
|
|
27427
27437
|
/* @__PURE__ */ i(C, { fw: 500, children: "Explorer Data Source" }),
|
|
@@ -27534,7 +27544,7 @@ function GM() {
|
|
|
27534
27544
|
close: n
|
|
27535
27545
|
}] = $l(!1);
|
|
27536
27546
|
return /* @__PURE__ */ u(Y, { children: [
|
|
27537
|
-
/* @__PURE__ */ i(
|
|
27547
|
+
/* @__PURE__ */ i(ze, { opened: e, onClose: n, title: "About FunctionUtils", zIndex: 320, children: /* @__PURE__ */ i(vi, { value: Bp, styles: {
|
|
27538
27548
|
root: {
|
|
27539
27549
|
border: "none"
|
|
27540
27550
|
},
|
|
@@ -27676,7 +27686,7 @@ WHERE
|
|
|
27676
27686
|
}), Qa = D(() => {
|
|
27677
27687
|
const [e, t] = K(!1);
|
|
27678
27688
|
return /* @__PURE__ */ u(Y, { children: [
|
|
27679
|
-
/* @__PURE__ */ i(
|
|
27689
|
+
/* @__PURE__ */ i(ze, { opened: e, onClose: () => t(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ i(yu, {}) }),
|
|
27680
27690
|
/* @__PURE__ */ i(M, { variant: "subtle", onClick: () => t(!0), px: 16, styles: {
|
|
27681
27691
|
inner: {
|
|
27682
27692
|
justifyContent: "flex-start"
|
|
@@ -28074,7 +28084,7 @@ WHERE
|
|
|
28074
28084
|
/* @__PURE__ */ i(U, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: r, sx: {
|
|
28075
28085
|
flexGrow: 0
|
|
28076
28086
|
}, children: /* @__PURE__ */ i(vl, { size: 14 }) }),
|
|
28077
|
-
/* @__PURE__ */ i(
|
|
28087
|
+
/* @__PURE__ */ i(ze, { size: 800, title: "Customize modal title", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
28078
28088
|
/* @__PURE__ */ i(xe, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (f) => l(f.currentTarget.checked) }),
|
|
28079
28089
|
/* @__PURE__ */ i(uz, { value: a.func_content, onChange: p, disabled: !a.enabled }),
|
|
28080
28090
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -28343,7 +28353,7 @@ const kz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28343
28353
|
}
|
|
28344
28354
|
}, Fz = D(() => {
|
|
28345
28355
|
const e = Oe().editor;
|
|
28346
|
-
return /* @__PURE__ */ i(
|
|
28356
|
+
return /* @__PURE__ */ i(ze, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionProps: {
|
|
28347
28357
|
duration: 0
|
|
28348
28358
|
}, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
|
|
28349
28359
|
body: {
|
|
@@ -28842,8 +28852,8 @@ var po = {}, t$ = {
|
|
|
28842
28852
|
T = x, I = l && l.formats;
|
|
28843
28853
|
for (var L = (x = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(re, te, ie) {
|
|
28844
28854
|
var fe = ie && ie.toUpperCase();
|
|
28845
|
-
return te || I[ie] || n[ie] || I[fe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge,
|
|
28846
|
-
return
|
|
28855
|
+
return te || I[ie] || n[ie] || I[fe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge, Le, Qe) {
|
|
28856
|
+
return Le || Qe.slice(1);
|
|
28847
28857
|
});
|
|
28848
28858
|
})).match(r), B = L.length, j = 0; j < B; j += 1) {
|
|
28849
28859
|
var N = L[j], O = m[N], A = O && O[0], Q = O && O[1];
|
|
@@ -28855,7 +28865,7 @@ var po = {}, t$ = {
|
|
|
28855
28865
|
if (typeof ge == "string")
|
|
28856
28866
|
fe += ge.length;
|
|
28857
28867
|
else {
|
|
28858
|
-
var
|
|
28868
|
+
var Le = ge.regex, Qe = ge.parser, Te = re.slice(fe), Fe = Le.exec(Te)[0];
|
|
28859
28869
|
Qe.call(te, Fe), re = re.replace(Fe, "");
|
|
28860
28870
|
}
|
|
28861
28871
|
}
|
|
@@ -28890,14 +28900,14 @@ var po = {}, t$ = {
|
|
|
28890
28900
|
}
|
|
28891
28901
|
}(N, Q, O), this.init(), fe && fe !== !0 && (this.$L = this.locale(fe).$L), ie && N != this.format(Q) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
28892
28902
|
} else if (Q instanceof Array)
|
|
28893
|
-
for (var ge = Q.length,
|
|
28894
|
-
A[1] = Q[
|
|
28903
|
+
for (var ge = Q.length, Le = 1; Le <= ge; Le += 1) {
|
|
28904
|
+
A[1] = Q[Le - 1];
|
|
28895
28905
|
var Qe = I.apply(this, A);
|
|
28896
28906
|
if (Qe.isValid()) {
|
|
28897
28907
|
this.$d = Qe.$d, this.$L = Qe.$L, this.init();
|
|
28898
28908
|
break;
|
|
28899
28909
|
}
|
|
28900
|
-
|
|
28910
|
+
Le === ge && (this.$d = /* @__PURE__ */ new Date(""));
|
|
28901
28911
|
}
|
|
28902
28912
|
else
|
|
28903
28913
|
B.call(this, j);
|
|
@@ -28989,7 +28999,7 @@ var mo = {}, o$ = {
|
|
|
28989
28999
|
this.$d.weeks && (re += 7 * this.$d.weeks);
|
|
28990
29000
|
var te = B(re, "D"), ie = B(this.$d.hours, "H"), fe = B(this.$d.minutes, "M"), ge = this.$d.seconds || 0;
|
|
28991
29001
|
this.$d.milliseconds && (ge += this.$d.milliseconds / 1e3);
|
|
28992
|
-
var
|
|
29002
|
+
var Le = B(ge, "S"), Qe = A.negative || Q.negative || te.negative || ie.negative || fe.negative || Le.negative, Te = ie.format || fe.format || Le.format ? "T" : "", Fe = (Qe ? "-" : "") + "P" + A.format + Q.format + te.format + Te + ie.format + fe.format + Le.format;
|
|
28993
29003
|
return Fe === "P" || Fe === "-P" ? "P0D" : Fe;
|
|
28994
29004
|
}, O.toJSON = function() {
|
|
28995
29005
|
return this.toISOString();
|