@devtable/dashboard 10.13.1 → 10.13.3
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.3", 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
|
},
|
|
@@ -23615,6 +23615,8 @@ function JT(e) {
|
|
|
23615
23615
|
width: o,
|
|
23616
23616
|
height: a,
|
|
23617
23617
|
style: {
|
|
23618
|
+
border: "none",
|
|
23619
|
+
borderRadius: 0,
|
|
23618
23620
|
transformOrigin: "0 0",
|
|
23619
23621
|
transform: "scale(2)"
|
|
23620
23622
|
}
|
|
@@ -23902,7 +23904,7 @@ const iu = D(({
|
|
|
23902
23904
|
panel: n,
|
|
23903
23905
|
exitFullScreen: r
|
|
23904
23906
|
}) {
|
|
23905
|
-
return /* @__PURE__ */ i(
|
|
23907
|
+
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
23908
|
flexGrow: 1,
|
|
23907
23909
|
flexShrink: 0
|
|
23908
23910
|
}, children: /* @__PURE__ */ i(iu, { view: t, panel: n }) }) });
|
|
@@ -24004,7 +24006,7 @@ const _D = D(({
|
|
|
24004
24006
|
"> div:not(.mantine-Modal-root)": {
|
|
24005
24007
|
height: "100%"
|
|
24006
24008
|
}
|
|
24007
|
-
}, children: /* @__PURE__ */ i(
|
|
24009
|
+
}, 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
24010
|
a.stopPropagation();
|
|
24009
24011
|
}, styles: {
|
|
24010
24012
|
root: {
|
|
@@ -24157,7 +24159,7 @@ const _D = D(({
|
|
|
24157
24159
|
view: t
|
|
24158
24160
|
}) => {
|
|
24159
24161
|
const n = Xe(), r = t.config, o = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id);
|
|
24160
|
-
return /* @__PURE__ */ i(
|
|
24162
|
+
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
24163
|
s.stopPropagation();
|
|
24162
24164
|
}, styles: {
|
|
24163
24165
|
root: {
|
|
@@ -24768,7 +24770,7 @@ const YD = b.model("EditorModel", {
|
|
|
24768
24770
|
get navOptions() {
|
|
24769
24771
|
const {
|
|
24770
24772
|
content: t
|
|
24771
|
-
} =
|
|
24773
|
+
} = Me(e), {
|
|
24772
24774
|
filters: n,
|
|
24773
24775
|
views: r,
|
|
24774
24776
|
sqlSnippets: o,
|
|
@@ -24854,7 +24856,7 @@ const YD = b.model("EditorModel", {
|
|
|
24854
24856
|
}
|
|
24855
24857
|
})).actions((e) => ({
|
|
24856
24858
|
moveToView(t, n) {
|
|
24857
|
-
|
|
24859
|
+
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
24860
|
}
|
|
24859
24861
|
})), QD = b.compose("PanelsModel", Wd, b.model({
|
|
24860
24862
|
list: b.optional(b.array(HD), [])
|
|
@@ -24894,6 +24896,11 @@ const YD = b.model("EditorModel", {
|
|
|
24894
24896
|
const n = e.list.findIndex((r) => r.id === t);
|
|
24895
24897
|
n !== -1 && e.list.splice(n, 1);
|
|
24896
24898
|
},
|
|
24899
|
+
removeByIDs(t) {
|
|
24900
|
+
t.forEach((n) => {
|
|
24901
|
+
this.removeByID(n);
|
|
24902
|
+
});
|
|
24903
|
+
},
|
|
24897
24904
|
duplicateByID(t) {
|
|
24898
24905
|
const n = e.list.find((o) => o.id === t);
|
|
24899
24906
|
if (!n) {
|
|
@@ -24934,7 +24941,7 @@ const YD = b.model("EditorModel", {
|
|
|
24934
24941
|
}));
|
|
24935
24942
|
},
|
|
24936
24943
|
get editorOptions() {
|
|
24937
|
-
const t =
|
|
24944
|
+
const t = Me(e).content.panels;
|
|
24938
24945
|
return e.current.map((n) => ({
|
|
24939
24946
|
label: n.name,
|
|
24940
24947
|
value: n.id,
|
|
@@ -24965,8 +24972,11 @@ const YD = b.model("EditorModel", {
|
|
|
24965
24972
|
e.current.splice(t, 1);
|
|
24966
24973
|
},
|
|
24967
24974
|
removeByID(t) {
|
|
24968
|
-
const n = e.current.findIndex((
|
|
24969
|
-
n
|
|
24975
|
+
const n = e.current.findIndex((a) => a.id === t);
|
|
24976
|
+
if (n === -1)
|
|
24977
|
+
return;
|
|
24978
|
+
const r = e.current[n];
|
|
24979
|
+
Me(e).content.panels.removeByIDs(r.panelIDs), e.current.splice(n, 1);
|
|
24970
24980
|
},
|
|
24971
24981
|
replaceByIndex(t, n) {
|
|
24972
24982
|
e.current.splice(t, 1, n);
|
|
@@ -25871,7 +25881,7 @@ const TI = {
|
|
|
25871
25881
|
opened: e,
|
|
25872
25882
|
close: t
|
|
25873
25883
|
}) => /* @__PURE__ */ i(
|
|
25874
|
-
|
|
25884
|
+
ze,
|
|
25875
25885
|
{
|
|
25876
25886
|
size: "96vw",
|
|
25877
25887
|
opened: e,
|
|
@@ -26911,7 +26921,7 @@ const yM = D(() => {
|
|
|
26911
26921
|
};
|
|
26912
26922
|
return /* @__PURE__ */ u(Y, { children: [
|
|
26913
26923
|
/* @__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(
|
|
26924
|
+
/* @__PURE__ */ i(ze, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ u(S, { sx: {
|
|
26915
26925
|
maxHeight: "calc(100vh - 185px)",
|
|
26916
26926
|
overflow: "hidden"
|
|
26917
26927
|
}, children: [
|
|
@@ -27423,7 +27433,7 @@ const AM = D(({
|
|
|
27423
27433
|
}) => {
|
|
27424
27434
|
const [n, r] = K(!1);
|
|
27425
27435
|
return e.type === "http" ? null : /* @__PURE__ */ u(Y, { children: [
|
|
27426
|
-
/* @__PURE__ */ i(
|
|
27436
|
+
/* @__PURE__ */ i(ze, { opened: n, onClose: () => r(!1), title: /* @__PURE__ */ u(w, { position: "apart", sx: {
|
|
27427
27437
|
flexGrow: 1
|
|
27428
27438
|
}, children: [
|
|
27429
27439
|
/* @__PURE__ */ i(C, { fw: 500, children: "Explorer Data Source" }),
|
|
@@ -27536,7 +27546,7 @@ function GM() {
|
|
|
27536
27546
|
close: n
|
|
27537
27547
|
}] = $l(!1);
|
|
27538
27548
|
return /* @__PURE__ */ u(Y, { children: [
|
|
27539
|
-
/* @__PURE__ */ i(
|
|
27549
|
+
/* @__PURE__ */ i(ze, { opened: e, onClose: n, title: "About FunctionUtils", zIndex: 320, children: /* @__PURE__ */ i(vi, { value: Bp, styles: {
|
|
27540
27550
|
root: {
|
|
27541
27551
|
border: "none"
|
|
27542
27552
|
},
|
|
@@ -27678,7 +27688,7 @@ WHERE
|
|
|
27678
27688
|
}), Qa = D(() => {
|
|
27679
27689
|
const [e, t] = K(!1);
|
|
27680
27690
|
return /* @__PURE__ */ u(Y, { children: [
|
|
27681
|
-
/* @__PURE__ */ i(
|
|
27691
|
+
/* @__PURE__ */ i(ze, { opened: e, onClose: () => t(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ i(yu, {}) }),
|
|
27682
27692
|
/* @__PURE__ */ i(M, { variant: "subtle", onClick: () => t(!0), px: 16, styles: {
|
|
27683
27693
|
inner: {
|
|
27684
27694
|
justifyContent: "flex-start"
|
|
@@ -28076,7 +28086,7 @@ WHERE
|
|
|
28076
28086
|
/* @__PURE__ */ i(U, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: r, sx: {
|
|
28077
28087
|
flexGrow: 0
|
|
28078
28088
|
}, children: /* @__PURE__ */ i(vl, { size: 14 }) }),
|
|
28079
|
-
/* @__PURE__ */ i(
|
|
28089
|
+
/* @__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: [
|
|
28080
28090
|
/* @__PURE__ */ i(xe, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (f) => l(f.currentTarget.checked) }),
|
|
28081
28091
|
/* @__PURE__ */ i(uz, { value: a.func_content, onChange: p, disabled: !a.enabled }),
|
|
28082
28092
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -28345,7 +28355,7 @@ const kz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28345
28355
|
}
|
|
28346
28356
|
}, Fz = D(() => {
|
|
28347
28357
|
const e = Oe().editor;
|
|
28348
|
-
return /* @__PURE__ */ i(
|
|
28358
|
+
return /* @__PURE__ */ i(ze, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionProps: {
|
|
28349
28359
|
duration: 0
|
|
28350
28360
|
}, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
|
|
28351
28361
|
body: {
|
|
@@ -28844,8 +28854,8 @@ var po = {}, t$ = {
|
|
|
28844
28854
|
T = x, I = l && l.formats;
|
|
28845
28855
|
for (var L = (x = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(re, te, ie) {
|
|
28846
28856
|
var fe = ie && ie.toUpperCase();
|
|
28847
|
-
return te || I[ie] || n[ie] || I[fe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge,
|
|
28848
|
-
return
|
|
28857
|
+
return te || I[ie] || n[ie] || I[fe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge, Le, Qe) {
|
|
28858
|
+
return Le || Qe.slice(1);
|
|
28849
28859
|
});
|
|
28850
28860
|
})).match(r), B = L.length, j = 0; j < B; j += 1) {
|
|
28851
28861
|
var N = L[j], O = m[N], A = O && O[0], Q = O && O[1];
|
|
@@ -28857,7 +28867,7 @@ var po = {}, t$ = {
|
|
|
28857
28867
|
if (typeof ge == "string")
|
|
28858
28868
|
fe += ge.length;
|
|
28859
28869
|
else {
|
|
28860
|
-
var
|
|
28870
|
+
var Le = ge.regex, Qe = ge.parser, Te = re.slice(fe), Fe = Le.exec(Te)[0];
|
|
28861
28871
|
Qe.call(te, Fe), re = re.replace(Fe, "");
|
|
28862
28872
|
}
|
|
28863
28873
|
}
|
|
@@ -28892,14 +28902,14 @@ var po = {}, t$ = {
|
|
|
28892
28902
|
}
|
|
28893
28903
|
}(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 = {};
|
|
28894
28904
|
} else if (Q instanceof Array)
|
|
28895
|
-
for (var ge = Q.length,
|
|
28896
|
-
A[1] = Q[
|
|
28905
|
+
for (var ge = Q.length, Le = 1; Le <= ge; Le += 1) {
|
|
28906
|
+
A[1] = Q[Le - 1];
|
|
28897
28907
|
var Qe = I.apply(this, A);
|
|
28898
28908
|
if (Qe.isValid()) {
|
|
28899
28909
|
this.$d = Qe.$d, this.$L = Qe.$L, this.init();
|
|
28900
28910
|
break;
|
|
28901
28911
|
}
|
|
28902
|
-
|
|
28912
|
+
Le === ge && (this.$d = /* @__PURE__ */ new Date(""));
|
|
28903
28913
|
}
|
|
28904
28914
|
else
|
|
28905
28915
|
B.call(this, j);
|
|
@@ -28991,7 +29001,7 @@ var mo = {}, o$ = {
|
|
|
28991
29001
|
this.$d.weeks && (re += 7 * this.$d.weeks);
|
|
28992
29002
|
var te = B(re, "D"), ie = B(this.$d.hours, "H"), fe = B(this.$d.minutes, "M"), ge = this.$d.seconds || 0;
|
|
28993
29003
|
this.$d.milliseconds && (ge += this.$d.milliseconds / 1e3);
|
|
28994
|
-
var
|
|
29004
|
+
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;
|
|
28995
29005
|
return Fe === "P" || Fe === "-P" ? "P0D" : Fe;
|
|
28996
29006
|
}, O.toJSON = function() {
|
|
28997
29007
|
return this.toISOString();
|