@devtable/dashboard 10.55.0 → 10.56.0
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/components/panel/settings/common/data-field-selector.d.ts +1 -1
- package/dist/components/plugins/plugin-context.d.ts +18 -0
- package/dist/components/widgets/rich-text-editor/readonly-rich-text-editor.d.ts +3 -1
- package/dist/contexts/panel-context.d.ts +18 -0
- package/dist/dashboard-editor/model/panels/panel.d.ts +9 -0
- package/dist/dashboard.es.js +495 -458
- package/dist/dashboard.umd.js +74 -74
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var Hu = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var V = (e, t, n) => (
|
|
4
|
-
import L, { useState as N, useEffect as O, useCallback as qe, useMemo as T, forwardRef as de, createElement as Jr, useContext as Ht, useRef as Zr, createContext as Xo, memo as
|
|
5
|
-
import { Box as z,
|
|
2
|
+
var Ku = (e, t, n) => t in e ? Hu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var V = (e, t, n) => (Ku(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import L, { useState as N, useEffect as O, useCallback as qe, useMemo as T, forwardRef as de, createElement as Jr, useContext as Ht, useRef as Zr, createContext as Xo, memo as Uu } from "react";
|
|
5
|
+
import { Box as z, HoverCard as Te, TextInput as I, Group as b, Text as j, Select as A, Stack as w, Button as C, Switch as Be, NumberInput as K, Divider as D, Table as Ue, ActionIcon as W, MultiSelect as nr, Paper as Yu, Code as Ua, Modal as me, Tabs as m, LoadingOverlay as vn, Alert as mi, ColorSwatch as Xs, Overlay as Rt, Checkbox as U, Center as wn, useMantineTheme as Jo, CheckIcon as Xu, MANTINE_SIZES as Ju, SimpleGrid as en, Tooltip as fe, NativeSelect as Zo, SegmentedControl as Zu, Anchor as Js, Textarea as eh, Collapse as fi, Mark as th, ColorInput as gi, createStyles as dr, Popover as Fn, Slider as nh, Flex as Kt, Badge as gn, CloseButton as el, Menu as ee, Affix as rh, Header as sh, List as Mt, FileInput as ih, ThemeIcon as Es, UnstyledButton as ah, Navbar as Nt, JsonInput as tl, Pagination as nl, Drawer as oh, Accordion as Cr, Radio as Ya, Skeleton as Xa, NavLink as Zs, AppShell as rl } from "@mantine/core";
|
|
6
6
|
import { useModals as Ct, ModalsProvider as sl } from "@mantine/modals";
|
|
7
|
-
import { useBoolean as
|
|
8
|
-
import { observable as al, runInAction as Jn, toJS as
|
|
7
|
+
import { useBoolean as Fe, useCreation as _t, useAsyncEffect as ur, useRequest as bn, useWhyDidYouUpdate as il, useLatest as Ja, usePrevious as lh } from "ahooks";
|
|
8
|
+
import { observable as al, runInAction as Jn, toJS as Ut, reaction as it, makeAutoObservable as hr } from "mobx";
|
|
9
9
|
import { observer as k } from "mobx-react-lite";
|
|
10
10
|
import * as ch from "crypto-js";
|
|
11
11
|
import dh from "crypto-js";
|
|
@@ -26,9 +26,9 @@ import { GridComponent as ot, VisualMapComponent as pr, LegendComponent as lt, T
|
|
|
26
26
|
import * as ae from "echarts/core";
|
|
27
27
|
import { CanvasRenderer as Xe } from "echarts/renderers";
|
|
28
28
|
import { useForm as ve, Controller as g, useFieldArray as we, useWatch as kh } from "react-hook-form";
|
|
29
|
-
import { DeviceFloppy as he, ArrowRight as Fs, Trash as oe, AlertCircle as Th, Recycle as pt, InfoCircle as sn, Plus as
|
|
29
|
+
import { DeviceFloppy as he, ArrowRight as Fs, Trash as oe, AlertCircle as Th, Recycle as pt, InfoCircle as sn, Plus as Me, Refresh as vi, Download as wi, ArrowsMaximize as xl, Settings as ml, Copy as Ih, ArrowLeft as Dh, ArrowsMove as zh, ChevronDownRight as Mh, ChevronsUpRight as Lh, PlaylistAdd as ns, ArrowBarToRight as Ah } from "tabler-icons-react";
|
|
30
30
|
import { BoxplotChart as Rh, CustomChart as Eh, BarChart as Nn, LineChart as Bn, ScatterChart as rs, FunnelChart as Fh, HeatmapChart as ss, PieChart as Oh, RadarChart as $h, SunburstChart as Ph } from "echarts/charts";
|
|
31
|
-
import { IconDeviceFloppy as Yt, IconTextSize as _i, IconInfoCircle as _n, IconPlayerSkipBack as fl, IconRecycle as is, IconMathFunction as Vh, IconPlus as xt, IconBorderAll as Nh, IconTrash as tn, IconArrowDown as Bh, IconArrowUp as qh, IconCalendar as Wh, IconMinus as Gh, IconCode as nn, IconCamera as as, IconShare3 as Qh, IconDownload as gl, IconArrowsLeftRight as Hh, IconVariable as bl, IconCodeDots as
|
|
31
|
+
import { IconDeviceFloppy as Yt, IconTextSize as _i, IconInfoCircle as _n, IconPlayerSkipBack as fl, IconRecycle as is, IconMathFunction as Vh, IconPlus as xt, IconBorderAll as Nh, IconTrash as tn, IconArrowDown as Bh, IconArrowUp as qh, IconCalendar as Wh, IconMinus as Gh, IconCode as nn, IconCamera as as, IconShare3 as Qh, IconDownload as gl, IconArrowsLeftRight as Hh, IconVariable as bl, IconCodeDots as Kh, IconFilter as yl, IconCopy as Uh, IconDatabase as os, IconBoxMultiple as jl, IconMenu2 as Yh, IconCaretDown as Xh, IconAlertTriangle as Si, IconArrowLeft as Jh, IconPlaylistAdd as eo, IconPointFilled as Ci, IconFileImport as to, IconCircleDashed as Zh, IconCircleDot as ep, IconCircleOff as tp, IconAdjustments as np, IconLink as rp, IconSettings as ls, IconArrowCurveRight as ei, IconLine as sp, IconX as vl, IconEye as wl, IconTable as ip, IconColumns as ap, IconAlertCircle as no, IconVariablePlus as op, IconHierarchy as lp, IconDiscountCheckFilled as cp } from "@tabler/icons-react";
|
|
32
32
|
import { useClipboard as dp, randomId as jn, useElementSize as sr, useDisclosure as xr, useInputState as _l } from "@mantine/hooks";
|
|
33
33
|
import { showNotification as On, notifications as up } from "@mantine/notifications";
|
|
34
34
|
import { interpolate as Sn } from "popmotion";
|
|
@@ -69,8 +69,8 @@ import { v4 as $s } from "uuid";
|
|
|
69
69
|
import Gp from "dayjs/plugin/advancedFormat";
|
|
70
70
|
import Qp from "dayjs/plugin/arraySupport";
|
|
71
71
|
import Hp from "dayjs/plugin/buddhistEra";
|
|
72
|
-
import
|
|
73
|
-
import
|
|
72
|
+
import Kp from "dayjs/plugin/calendar";
|
|
73
|
+
import Up from "dayjs/plugin/customParseFormat";
|
|
74
74
|
import Yp from "dayjs/plugin/dayOfYear";
|
|
75
75
|
import Xp from "dayjs/plugin/duration";
|
|
76
76
|
import Jp from "dayjs/plugin/isBetween";
|
|
@@ -101,7 +101,7 @@ import wx from "dayjs/plugin/weekOfYear";
|
|
|
101
101
|
import _x from "dayjs/plugin/weekYear";
|
|
102
102
|
import { useNavigate as Sx } from "react-router-dom";
|
|
103
103
|
import Cx, { Position as vt, Handle as io, MiniMap as kx, Controls as Tx, Background as Ix } from "reactflow";
|
|
104
|
-
var ni = { exports: {} },
|
|
104
|
+
var ni = { exports: {} }, Un = {};
|
|
105
105
|
/**
|
|
106
106
|
* @license React
|
|
107
107
|
* react-jsx-runtime.production.min.js
|
|
@@ -114,7 +114,7 @@ var ni = { exports: {} }, Kn = {};
|
|
|
114
114
|
var ao;
|
|
115
115
|
function Dx() {
|
|
116
116
|
if (ao)
|
|
117
|
-
return
|
|
117
|
+
return Un;
|
|
118
118
|
ao = 1;
|
|
119
119
|
var e = L, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
120
120
|
function o(l, c, d) {
|
|
@@ -127,7 +127,7 @@ function Dx() {
|
|
|
127
127
|
h[u] === void 0 && (h[u] = c[u]);
|
|
128
128
|
return { $$typeof: t, type: l, key: p, ref: x, props: h, _owner: i.current };
|
|
129
129
|
}
|
|
130
|
-
return
|
|
130
|
+
return Un.Fragment = n, Un.jsx = o, Un.jsxs = o, Un;
|
|
131
131
|
}
|
|
132
132
|
var Yn = {};
|
|
133
133
|
/**
|
|
@@ -167,10 +167,10 @@ function zx() {
|
|
|
167
167
|
pe.unshift("Warning: " + R), Function.prototype.apply.call(console[v], console, pe);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
var be = !1, ne = !1, Se = !1,
|
|
170
|
+
var be = !1, ne = !1, Se = !1, Ie = !1, Le = !1, on;
|
|
171
171
|
on = Symbol.for("react.module.reference");
|
|
172
172
|
function yt(v) {
|
|
173
|
-
return !!(typeof v == "string" || typeof v == "function" || v === s || v === a ||
|
|
173
|
+
return !!(typeof v == "string" || typeof v == "function" || v === s || v === a || Le || v === i || v === d || v === u || Ie || v === x || be || ne || Se || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === h || v.$$typeof === o || v.$$typeof === l || v.$$typeof === c || // This needs to include all possible module reference object
|
|
174
174
|
// types supported by any Flight configuration anywhere since
|
|
175
175
|
// we don't know which Flight build this will end up being used
|
|
176
176
|
// with.
|
|
@@ -362,26 +362,26 @@ function zx() {
|
|
|
362
362
|
if (Pt && H && typeof Pt.stack == "string") {
|
|
363
363
|
for (var J = Pt.stack.split(`
|
|
364
364
|
`), Ge = H.stack.split(`
|
|
365
|
-
`), ke = J.length - 1,
|
|
366
|
-
|
|
367
|
-
for (; ke >= 1 &&
|
|
368
|
-
if (J[ke] !== Ge[
|
|
369
|
-
if (ke !== 1 ||
|
|
365
|
+
`), ke = J.length - 1, De = Ge.length - 1; ke >= 1 && De >= 0 && J[ke] !== Ge[De]; )
|
|
366
|
+
De--;
|
|
367
|
+
for (; ke >= 1 && De >= 0; ke--, De--)
|
|
368
|
+
if (J[ke] !== Ge[De]) {
|
|
369
|
+
if (ke !== 1 || De !== 1)
|
|
370
370
|
do
|
|
371
|
-
if (ke--,
|
|
371
|
+
if (ke--, De--, De < 0 || J[ke] !== Ge[De]) {
|
|
372
372
|
var dt = `
|
|
373
373
|
` + J[ke].replace(" at new ", " at ");
|
|
374
374
|
return v.displayName && dt.includes("<anonymous>") && (dt = dt.replace("<anonymous>", v.displayName)), typeof v == "function" && vr.set(v, dt), dt;
|
|
375
375
|
}
|
|
376
|
-
while (ke >= 1 &&
|
|
376
|
+
while (ke >= 1 && De >= 0);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
} finally {
|
|
381
381
|
Ds = !1, Ts.current = pe, _u(), Error.prepareStackTrace = se;
|
|
382
382
|
}
|
|
383
|
-
var zn = v ? v.displayName || v.name : "",
|
|
384
|
-
return typeof v == "function" && vr.set(v,
|
|
383
|
+
var zn = v ? v.displayName || v.name : "", Ka = zn ? jr(zn) : "";
|
|
384
|
+
return typeof v == "function" && vr.set(v, Ka), Ka;
|
|
385
385
|
}
|
|
386
386
|
function Cu(v, R, P) {
|
|
387
387
|
return Ea(v, !1);
|
|
@@ -470,7 +470,7 @@ function zx() {
|
|
|
470
470
|
if (zu(v))
|
|
471
471
|
return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Du(v)), $a(v);
|
|
472
472
|
}
|
|
473
|
-
var
|
|
473
|
+
var Kn = F.ReactCurrentOwner, Mu = {
|
|
474
474
|
key: !0,
|
|
475
475
|
ref: !0,
|
|
476
476
|
__self: !0,
|
|
@@ -494,9 +494,9 @@ function zx() {
|
|
|
494
494
|
return v.key !== void 0;
|
|
495
495
|
}
|
|
496
496
|
function Ru(v, R) {
|
|
497
|
-
if (typeof v.ref == "string" &&
|
|
498
|
-
var P = $t(
|
|
499
|
-
Ms[P] || (B('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $t(
|
|
497
|
+
if (typeof v.ref == "string" && Kn.current && R && Kn.current.stateNode !== R) {
|
|
498
|
+
var P = $t(Kn.current.type);
|
|
499
|
+
Ms[P] || (B('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $t(Kn.current.type), v.ref), Ms[P] = !0);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
function Eu(v, R) {
|
|
@@ -562,10 +562,10 @@ function zx() {
|
|
|
562
562
|
Z[pe] === void 0 && (Z[pe] = ke[pe]);
|
|
563
563
|
}
|
|
564
564
|
if (J || Ge) {
|
|
565
|
-
var
|
|
566
|
-
J && Eu(Z,
|
|
565
|
+
var De = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
|
|
566
|
+
J && Eu(Z, De), Ge && Fu(Z, De);
|
|
567
567
|
}
|
|
568
|
-
return Ou(v, J, Ge, se, H,
|
|
568
|
+
return Ou(v, J, Ge, se, H, Kn.current, Z);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var Ls = F.ReactCurrentOwner, Ba = F.ReactDebugCurrentFrame;
|
|
@@ -697,9 +697,9 @@ Check the top-level render call using <` + P + ">.");
|
|
|
697
697
|
var ke;
|
|
698
698
|
v === null ? ke = "null" : zs(v) ? ke = "array" : v !== void 0 && v.$$typeof === t ? (ke = "<" + ($t(v.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : ke = typeof v, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ke, J);
|
|
699
699
|
}
|
|
700
|
-
var
|
|
701
|
-
if (
|
|
702
|
-
return
|
|
700
|
+
var De = $u(v, R, P, se, pe);
|
|
701
|
+
if (De == null)
|
|
702
|
+
return De;
|
|
703
703
|
if (Z) {
|
|
704
704
|
var dt = R.children;
|
|
705
705
|
if (dt !== void 0)
|
|
@@ -713,7 +713,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
713
713
|
else
|
|
714
714
|
Qa(dt, v);
|
|
715
715
|
}
|
|
716
|
-
return v === s ? Bu(
|
|
716
|
+
return v === s ? Bu(De) : Nu(De), De;
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
function qu(v, R, P) {
|
|
@@ -1094,7 +1094,7 @@ async function Hl() {
|
|
|
1094
1094
|
return console.error(e), [];
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
class
|
|
1097
|
+
class Kl {
|
|
1098
1098
|
constructor(t) {
|
|
1099
1099
|
V(this, "rootRef");
|
|
1100
1100
|
this.rootRef = al({
|
|
@@ -1111,7 +1111,7 @@ class Ul {
|
|
|
1111
1111
|
return Promise.resolve(n);
|
|
1112
1112
|
}
|
|
1113
1113
|
getValueFromRoot(t) {
|
|
1114
|
-
return t === null ?
|
|
1114
|
+
return t === null ? Ut(this.rootRef.current) : te(this.rootRef.current, [t]);
|
|
1115
1115
|
}
|
|
1116
1116
|
setItem(t, n) {
|
|
1117
1117
|
if (t === null)
|
|
@@ -1169,12 +1169,12 @@ class Qx {
|
|
|
1169
1169
|
name: t.viz.type,
|
|
1170
1170
|
type: t.viz.type,
|
|
1171
1171
|
messageChannels: new Gx(),
|
|
1172
|
-
instanceData: new
|
|
1172
|
+
instanceData: new Kl(t.viz.conf)
|
|
1173
1173
|
};
|
|
1174
1174
|
return this.instances.set(t.id, s), s;
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function Ul(e, t, n, s) {
|
|
1178
1178
|
return {
|
|
1179
1179
|
vizManager: n,
|
|
1180
1180
|
/**
|
|
@@ -1187,7 +1187,7 @@ function Kl(e, t, n, s) {
|
|
|
1187
1187
|
* todo: implement plugin scope storage, that is shared
|
|
1188
1188
|
* between instances
|
|
1189
1189
|
*/
|
|
1190
|
-
pluginData: new
|
|
1190
|
+
pluginData: new Kl({}),
|
|
1191
1191
|
/**
|
|
1192
1192
|
* todo: color palette not implemented
|
|
1193
1193
|
*/
|
|
@@ -1207,21 +1207,21 @@ const Hx = (e) => {
|
|
|
1207
1207
|
data: s,
|
|
1208
1208
|
variables: i
|
|
1209
1209
|
} = e, a = n.resolveComponent(t.viz.type), o = n.getOrCreateInstance(t), l = {
|
|
1210
|
-
...
|
|
1210
|
+
...Ul(o, s, n, i),
|
|
1211
1211
|
viewport: {
|
|
1212
1212
|
width: t.layout.w,
|
|
1213
1213
|
height: t.layout.h
|
|
1214
1214
|
}
|
|
1215
1215
|
}, c = a.viewRender;
|
|
1216
1216
|
return /* @__PURE__ */ r.jsx(c, { context: l, instance: o, ...yn(e, ["panel", "vizManager", "data"]) });
|
|
1217
|
-
},
|
|
1217
|
+
}, Kx = (e) => {
|
|
1218
1218
|
const {
|
|
1219
1219
|
vizManager: t,
|
|
1220
1220
|
panel: n,
|
|
1221
1221
|
data: s,
|
|
1222
1222
|
variables: i
|
|
1223
1223
|
} = e, a = t.resolveComponent(n.viz.type), o = t.getOrCreateInstance(n), l = {
|
|
1224
|
-
...
|
|
1224
|
+
...Ul(o, s, t, i)
|
|
1225
1225
|
}, c = a.configRender;
|
|
1226
1226
|
return /* @__PURE__ */ r.jsx(c, { context: l, instance: o, ...yn(e, ["panel", "vizManager", "data"]) });
|
|
1227
1227
|
}, Yl = (e, t) => {
|
|
@@ -1234,7 +1234,7 @@ const Hx = (e) => {
|
|
|
1234
1234
|
return function(n) {
|
|
1235
1235
|
return t(n / 100).hex();
|
|
1236
1236
|
};
|
|
1237
|
-
},
|
|
1237
|
+
}, Ux = {
|
|
1238
1238
|
type: "interpolation",
|
|
1239
1239
|
displayName: "Red / Green",
|
|
1240
1240
|
getColor: Yl(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
|
|
@@ -1317,7 +1317,7 @@ class Mi {
|
|
|
1317
1317
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
const Xl = "10.
|
|
1320
|
+
const Xl = "10.56.0", nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1321
1321
|
__proto__: null,
|
|
1322
1322
|
version: Xl
|
|
1323
1323
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1439,7 +1439,7 @@ class _e extends im {
|
|
|
1439
1439
|
const Q = (e, t) => {
|
|
1440
1440
|
const [n, {
|
|
1441
1441
|
setFalse: s
|
|
1442
|
-
}] =
|
|
1442
|
+
}] = Fe(!0), [i, a] = N();
|
|
1443
1443
|
O(() => (e.getItem(t).then((l) => {
|
|
1444
1444
|
a(l), s();
|
|
1445
1445
|
}), e.watchItem(t, (l) => {
|
|
@@ -1616,7 +1616,7 @@ function ac() {
|
|
|
1616
1616
|
throw new Error("Please use ContentModelContextProvider");
|
|
1617
1617
|
return e;
|
|
1618
1618
|
}
|
|
1619
|
-
const ce = () => ac(),
|
|
1619
|
+
const ce = () => ac(), Oe = () => ac(), dm = {
|
|
1620
1620
|
inEditMode: !1
|
|
1621
1621
|
}, Ai = L.createContext(dm), oc = L.createContext({
|
|
1622
1622
|
panel: null,
|
|
@@ -1661,6 +1661,23 @@ const G = k(de(({
|
|
|
1661
1661
|
group: ""
|
|
1662
1662
|
}), u;
|
|
1663
1663
|
}, [c.dataFieldOptions]);
|
|
1664
|
+
if (d.length === 0) {
|
|
1665
|
+
const u = c.explainDataKey(n);
|
|
1666
|
+
return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
|
|
1667
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(I, { label: e, required: t, defaultValue: u.columnKey, readOnly: !0, disabled: !0 }) }) }),
|
|
1668
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsxs(b, { position: "left", spacing: 0, children: [
|
|
1669
|
+
/* @__PURE__ */ r.jsx(j, { size: "xs", color: u.queryName ? "black" : "red", sx: {
|
|
1670
|
+
fontFamily: "monospace"
|
|
1671
|
+
}, children: u.queryName ?? u.queryID }),
|
|
1672
|
+
/* @__PURE__ */ r.jsx(j, { size: "xs", color: "black", sx: {
|
|
1673
|
+
fontFamily: "monospace"
|
|
1674
|
+
}, children: "." }),
|
|
1675
|
+
/* @__PURE__ */ r.jsx(j, { size: "xs", color: "red", sx: {
|
|
1676
|
+
fontFamily: "monospace"
|
|
1677
|
+
}, children: u.columnKey })
|
|
1678
|
+
] }) })
|
|
1679
|
+
] });
|
|
1680
|
+
}
|
|
1664
1681
|
return /* @__PURE__ */ r.jsx(A, { ref: l, label: e, data: d, value: n, onChange: s, required: t, sx: a, maxDropdownHeight: 500, ...o });
|
|
1665
1682
|
}));
|
|
1666
1683
|
function pm({
|
|
@@ -1878,7 +1895,7 @@ function gm({
|
|
|
1878
1895
|
}, styles: co })
|
|
1879
1896
|
] }),
|
|
1880
1897
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
1881
|
-
/* @__PURE__ */ r.jsx(
|
|
1898
|
+
/* @__PURE__ */ r.jsx(K, { label: "Mantissa", defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: i }),
|
|
1882
1899
|
/* @__PURE__ */ r.jsx(Be, { label: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
|
|
1883
1900
|
/* @__PURE__ */ r.jsx(j, { children: "Trim mantissa" }),
|
|
1884
1901
|
/* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "hide trailing zero(s)" })
|
|
@@ -1974,7 +1991,7 @@ const jm = [{
|
|
|
1974
1991
|
color: "dimmed"
|
|
1975
1992
|
} }),
|
|
1976
1993
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
1977
|
-
/* @__PURE__ */ r.jsx(
|
|
1994
|
+
/* @__PURE__ */ r.jsx(K, { label: "Max Width", hideControls: !0, value: t.width, onChange: i("width") }),
|
|
1978
1995
|
/* @__PURE__ */ r.jsx(A, { label: "Overflow", data: jm, value: t.overflow, onChange: i("overflow") }),
|
|
1979
1996
|
/* @__PURE__ */ r.jsx(
|
|
1980
1997
|
I,
|
|
@@ -2328,7 +2345,7 @@ const Lm = {
|
|
|
2328
2345
|
}
|
|
2329
2346
|
});
|
|
2330
2347
|
};
|
|
2331
|
-
return /* @__PURE__ */ r.jsxs(
|
|
2348
|
+
return /* @__PURE__ */ r.jsxs(Ue, { sx: Am, children: [
|
|
2332
2349
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
2333
2350
|
/* @__PURE__ */ r.jsx("th", { children: "Set filter" }),
|
|
2334
2351
|
/* @__PURE__ */ r.jsx("th", { children: "with" })
|
|
@@ -2487,7 +2504,7 @@ class Wm {
|
|
|
2487
2504
|
const s = cl(n).map((i) => ({
|
|
2488
2505
|
id: te(i, "id"),
|
|
2489
2506
|
schemaRef: te(i, "schemaRef"),
|
|
2490
|
-
config:
|
|
2507
|
+
config: Ut(te(i, "data.config"))
|
|
2491
2508
|
}));
|
|
2492
2509
|
t(s);
|
|
2493
2510
|
}, {
|
|
@@ -2612,12 +2629,12 @@ const gt = ({
|
|
|
2612
2629
|
/* @__PURE__ */ r.jsx(w, { style: {
|
|
2613
2630
|
maxHeight: "500px"
|
|
2614
2631
|
}, children: n.map((a) => /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
|
|
2615
|
-
/* @__PURE__ */ r.jsxs(
|
|
2632
|
+
/* @__PURE__ */ r.jsxs(Ua, { color: "teal", children: [
|
|
2616
2633
|
"// ",
|
|
2617
2634
|
a.description
|
|
2618
2635
|
] }),
|
|
2619
2636
|
/* @__PURE__ */ r.jsx("br", {}),
|
|
2620
|
-
/* @__PURE__ */ r.jsxs(
|
|
2637
|
+
/* @__PURE__ */ r.jsxs(Ua, { onClick: () => i(a.name), style: {
|
|
2621
2638
|
cursor: "pointer"
|
|
2622
2639
|
}, children: [
|
|
2623
2640
|
a.name,
|
|
@@ -2658,7 +2675,7 @@ const Hm = k(({
|
|
|
2658
2675
|
var s;
|
|
2659
2676
|
const n = (s = e.operationSchema) == null ? void 0 : s.displayName;
|
|
2660
2677
|
return /* @__PURE__ */ r.jsx(C, { variant: "outline", onClick: t, children: n });
|
|
2661
|
-
}),
|
|
2678
|
+
}), Km = k(({
|
|
2662
2679
|
model: e
|
|
2663
2680
|
}) => {
|
|
2664
2681
|
const t = {
|
|
@@ -2667,7 +2684,7 @@ const Hm = k(({
|
|
|
2667
2684
|
variables: []
|
|
2668
2685
|
};
|
|
2669
2686
|
return Jr(e.operationSchema.configRender, t);
|
|
2670
|
-
}),
|
|
2687
|
+
}), Um = k(({
|
|
2671
2688
|
model: e
|
|
2672
2689
|
}) => {
|
|
2673
2690
|
const t = e.schemaList, n = t.map((i) => ({
|
|
@@ -2682,7 +2699,7 @@ const Hm = k(({
|
|
|
2682
2699
|
const [t, {
|
|
2683
2700
|
setTrue: n,
|
|
2684
2701
|
setFalse: s
|
|
2685
|
-
}] =
|
|
2702
|
+
}] = Fe(!1), {
|
|
2686
2703
|
operationManager: i,
|
|
2687
2704
|
operationId: a,
|
|
2688
2705
|
instance: o,
|
|
@@ -2693,13 +2710,13 @@ const Hm = k(({
|
|
|
2693
2710
|
}, [a, c]), Qm(c) ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2694
2711
|
/* @__PURE__ */ r.jsx(Hm, { model: c, onClick: n }),
|
|
2695
2712
|
/* @__PURE__ */ r.jsx(me, { size: 600, opened: t, onClose: s, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
|
|
2696
|
-
/* @__PURE__ */ r.jsx(
|
|
2713
|
+
/* @__PURE__ */ r.jsx(Um, { model: c }),
|
|
2697
2714
|
/* @__PURE__ */ r.jsxs(m, { defaultValue: "settings", children: [
|
|
2698
2715
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
2699
2716
|
/* @__PURE__ */ r.jsx(m.Tab, { value: "settings", children: "Settings" }),
|
|
2700
2717
|
/* @__PURE__ */ r.jsx(m.Tab, { value: "variables", children: "Variables" })
|
|
2701
2718
|
] }),
|
|
2702
|
-
/* @__PURE__ */ r.jsx(m.Panel, { value: "settings", pt: 10, children: /* @__PURE__ */ r.jsx(
|
|
2719
|
+
/* @__PURE__ */ r.jsx(m.Panel, { value: "settings", pt: 10, children: /* @__PURE__ */ r.jsx(Km, { model: c }) }),
|
|
2703
2720
|
/* @__PURE__ */ r.jsx(m.Panel, { value: "variables", pt: 10, children: /* @__PURE__ */ r.jsx(hc, { title: "Variables", variables: c.variables }) })
|
|
2704
2721
|
] })
|
|
2705
2722
|
] }) })
|
|
@@ -2769,7 +2786,7 @@ const ef = k(({
|
|
|
2769
2786
|
const [t, {
|
|
2770
2787
|
setTrue: n,
|
|
2771
2788
|
setFalse: s
|
|
2772
|
-
}] =
|
|
2789
|
+
}] = Fe(!1), i = e.model;
|
|
2773
2790
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2774
2791
|
/* @__PURE__ */ r.jsx(me, { opened: t, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
|
|
2775
2792
|
/* @__PURE__ */ r.jsx(tf, { model: i }),
|
|
@@ -3675,8 +3692,8 @@ function Hf({
|
|
|
3675
3692
|
)
|
|
3676
3693
|
] });
|
|
3677
3694
|
}
|
|
3678
|
-
const
|
|
3679
|
-
function
|
|
3695
|
+
const Ke = L.forwardRef(Hf);
|
|
3696
|
+
function Kf({
|
|
3680
3697
|
control: e,
|
|
3681
3698
|
index: t,
|
|
3682
3699
|
remove: n,
|
|
@@ -3717,7 +3734,7 @@ function Uf({
|
|
|
3717
3734
|
}, children: /* @__PURE__ */ r.jsx(oe, { size: 16 }) })
|
|
3718
3735
|
] });
|
|
3719
3736
|
}
|
|
3720
|
-
function
|
|
3737
|
+
function Uf({
|
|
3721
3738
|
control: e,
|
|
3722
3739
|
watch: t,
|
|
3723
3740
|
variables: n
|
|
@@ -3741,7 +3758,7 @@ function Kf({
|
|
|
3741
3758
|
value: u.name
|
|
3742
3759
|
})), [n]);
|
|
3743
3760
|
return /* @__PURE__ */ r.jsxs(w, { children: [
|
|
3744
|
-
l.map((u, h) => /* @__PURE__ */ r.jsx(
|
|
3761
|
+
l.map((u, h) => /* @__PURE__ */ r.jsx(Kf, { control: e, index: h, remove: a, variableOptions: d }, u.id)),
|
|
3745
3762
|
/* @__PURE__ */ r.jsx(b, { position: "center", mt: "xs", children: /* @__PURE__ */ r.jsx(C, { onClick: c, children: "Add a Reference Line" }) })
|
|
3746
3763
|
] });
|
|
3747
3764
|
}
|
|
@@ -3771,7 +3788,7 @@ const Yf = ({
|
|
|
3771
3788
|
const [s, {
|
|
3772
3789
|
setTrue: i,
|
|
3773
3790
|
setFalse: a
|
|
3774
|
-
}] =
|
|
3791
|
+
}] = Fe(), [o, l] = N(e);
|
|
3775
3792
|
O(() => {
|
|
3776
3793
|
l(e);
|
|
3777
3794
|
}, [e]);
|
|
@@ -3805,7 +3822,7 @@ const Yf = ({
|
|
|
3805
3822
|
flexGrow: 0
|
|
3806
3823
|
}, children: "Customize Label" }),
|
|
3807
3824
|
/* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
|
|
3808
|
-
/* @__PURE__ */ r.jsx(
|
|
3825
|
+
/* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
|
|
3809
3826
|
/* @__PURE__ */ r.jsx(Yf, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
3810
3827
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
3811
3828
|
/* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
|
|
@@ -3838,7 +3855,7 @@ const Yf = ({
|
|
|
3838
3855
|
field: n
|
|
3839
3856
|
}) => (
|
|
3840
3857
|
// @ts-expect-error type of onChange
|
|
3841
|
-
/* @__PURE__ */ r.jsx(
|
|
3858
|
+
/* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
|
|
3842
3859
|
width: "48%"
|
|
3843
3860
|
}, styles: {
|
|
3844
3861
|
rightSection: {
|
|
@@ -3940,7 +3957,7 @@ const Yf = ({
|
|
|
3940
3957
|
}, children: [
|
|
3941
3958
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
3942
3959
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
|
|
3943
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
3960
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
3944
3961
|
] }),
|
|
3945
3962
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(Zf, { control: e, index: p, remove: i }, h.id) }, h.id))
|
|
3946
3963
|
] })
|
|
@@ -4039,9 +4056,9 @@ function sg({
|
|
|
4039
4056
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
4040
4057
|
/* @__PURE__ */ r.jsx(g, { name: "color", control: a, render: ({
|
|
4041
4058
|
field: p
|
|
4042
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
4059
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...p }) })
|
|
4043
4060
|
] }) }),
|
|
4044
|
-
/* @__PURE__ */ r.jsx(m.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(
|
|
4061
|
+
/* @__PURE__ */ r.jsx(m.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(Uf, { variables: s, control: a, watch: l }) })
|
|
4045
4062
|
] })
|
|
4046
4063
|
] }) });
|
|
4047
4064
|
}
|
|
@@ -4312,7 +4329,7 @@ const Pi = {
|
|
|
4312
4329
|
const n = gt({
|
|
4313
4330
|
vizManager: e.vizManager,
|
|
4314
4331
|
instance: t
|
|
4315
|
-
}), s = ft(n.triggerManager, bc.id), i =
|
|
4332
|
+
}), s = ft(n.triggerManager, bc.id), i = Oe(), {
|
|
4316
4333
|
value: a
|
|
4317
4334
|
} = Q(e.instanceData, "config"), o = T(() => je({}, a, Pi), [a]), {
|
|
4318
4335
|
content: l,
|
|
@@ -4455,7 +4472,7 @@ function kg({
|
|
|
4455
4472
|
}) => /* @__PURE__ */ r.jsx(wg, { label: "Size", ...p }) }),
|
|
4456
4473
|
/* @__PURE__ */ r.jsx(g, { control: a, name: "compact", render: ({
|
|
4457
4474
|
field: p
|
|
4458
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
4475
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Compact", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked), mt: 26 }) })
|
|
4459
4476
|
] }),
|
|
4460
4477
|
/* @__PURE__ */ r.jsxs(en, { cols: 2, children: [
|
|
4461
4478
|
/* @__PURE__ */ r.jsx(
|
|
@@ -4939,8 +4956,8 @@ function Gg({
|
|
|
4939
4956
|
y_axis_data_key: n
|
|
4940
4957
|
});
|
|
4941
4958
|
return Object.entries(be).map(([ne, Se]) => {
|
|
4942
|
-
const
|
|
4943
|
-
return
|
|
4959
|
+
const Ie = Pe(re);
|
|
4960
|
+
return Ie.name = ne, Ie.color = void 0, Ie.data = Se, Ie;
|
|
4944
4961
|
});
|
|
4945
4962
|
}
|
|
4946
4963
|
function Qg(e, t, n, s, i, a) {
|
|
@@ -4957,7 +4974,7 @@ function Hg(e, t) {
|
|
|
4957
4974
|
} = n;
|
|
4958
4975
|
return qn(t.x_axis.axisLabel.formatter)(s, i);
|
|
4959
4976
|
}
|
|
4960
|
-
function
|
|
4977
|
+
function Kg(e, t, n) {
|
|
4961
4978
|
const s = t.reduce((i, {
|
|
4962
4979
|
yAxisIndex: a,
|
|
4963
4980
|
name: o
|
|
@@ -4999,7 +5016,7 @@ function Ug(e, t, n) {
|
|
|
4999
5016
|
}
|
|
5000
5017
|
});
|
|
5001
5018
|
}
|
|
5002
|
-
function
|
|
5019
|
+
function Ug(e) {
|
|
5003
5020
|
return e.y_axes.reduce((n, {
|
|
5004
5021
|
label_formatter: s
|
|
5005
5022
|
}, i) => (n[i] = function(o) {
|
|
@@ -5116,11 +5133,11 @@ const eb = {
|
|
|
5116
5133
|
}]
|
|
5117
5134
|
};
|
|
5118
5135
|
function tb(e, t, n) {
|
|
5119
|
-
const s = yc(t, n), i =
|
|
5136
|
+
const s = yc(t, n), i = Ug(e), a = _.uniq(Qt(t, e.x_axis_data_key)), o = Qg(e, a, t, i, n, s), l = Fg(e, t), c = {
|
|
5120
5137
|
xAxis: Yg(e, a),
|
|
5121
5138
|
yAxis: Zg(e, i, o),
|
|
5122
5139
|
series: [...o, ...l],
|
|
5123
|
-
tooltip:
|
|
5140
|
+
tooltip: Kg(e, o, i),
|
|
5124
5141
|
grid: Mg(e),
|
|
5125
5142
|
legend: Rg(o),
|
|
5126
5143
|
dataZoom: Bi(e.dataZoom)
|
|
@@ -5354,7 +5371,7 @@ function ob({
|
|
|
5354
5371
|
}, children: [
|
|
5355
5372
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
5356
5373
|
l.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
|
|
5357
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
5374
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
5358
5375
|
] }),
|
|
5359
5376
|
l.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(ab, { control: e, index: h, remove: a, variableOptions: d }) }, u.id))
|
|
5360
5377
|
] });
|
|
@@ -5460,7 +5477,7 @@ function db({
|
|
|
5460
5477
|
control: e,
|
|
5461
5478
|
render: ({
|
|
5462
5479
|
field: l
|
|
5463
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
5480
|
+
}) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
|
|
5464
5481
|
flexGrow: 1
|
|
5465
5482
|
}, ...l })
|
|
5466
5483
|
}
|
|
@@ -5470,12 +5487,12 @@ function db({
|
|
|
5470
5487
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
5471
5488
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
5472
5489
|
field: l
|
|
5473
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
5490
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
|
|
5474
5491
|
] }),
|
|
5475
5492
|
/* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
5476
5493
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
|
|
5477
5494
|
field: l
|
|
5478
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
5495
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
|
|
5479
5496
|
/* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
5480
5497
|
top: 15,
|
|
5481
5498
|
right: 5
|
|
@@ -5531,7 +5548,7 @@ function ub({
|
|
|
5531
5548
|
}, children: [
|
|
5532
5549
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
5533
5550
|
l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
|
|
5534
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
5551
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
5535
5552
|
] }),
|
|
5536
5553
|
l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(db, { control: e, index: x, remove: a, watch: t, variableOptions: d, yAxisOptions: h }) }, p.id))
|
|
5537
5554
|
] });
|
|
@@ -5623,7 +5640,7 @@ function xb({
|
|
|
5623
5640
|
control: e,
|
|
5624
5641
|
render: ({
|
|
5625
5642
|
field: o
|
|
5626
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
5643
|
+
}) => /* @__PURE__ */ r.jsx(K, { label: "Order", sx: {
|
|
5627
5644
|
flex: 1
|
|
5628
5645
|
}, ...o })
|
|
5629
5646
|
}
|
|
@@ -5650,7 +5667,7 @@ function xb({
|
|
|
5650
5667
|
control: e,
|
|
5651
5668
|
render: ({
|
|
5652
5669
|
field: o
|
|
5653
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
5670
|
+
}) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
|
|
5654
5671
|
flexGrow: 1
|
|
5655
5672
|
}, ...o })
|
|
5656
5673
|
}
|
|
@@ -5660,7 +5677,7 @@ function xb({
|
|
|
5660
5677
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
5661
5678
|
/* @__PURE__ */ r.jsx(g, { name: `regressions.${n}.plot.color`, control: e, render: ({
|
|
5662
5679
|
field: o
|
|
5663
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
5680
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...o }) })
|
|
5664
5681
|
] }),
|
|
5665
5682
|
/* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => s(n), sx: {
|
|
5666
5683
|
top: 15,
|
|
@@ -5721,7 +5738,7 @@ function mb({
|
|
|
5721
5738
|
}, children: [
|
|
5722
5739
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
5723
5740
|
o.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
|
|
5724
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
5741
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
5725
5742
|
] }),
|
|
5726
5743
|
o.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(xb, { regressionItem: u, control: e, index: h, remove: i, yAxisOptions: c }) }, u.id))
|
|
5727
5744
|
] });
|
|
@@ -7060,7 +7077,7 @@ class nt {
|
|
|
7060
7077
|
return Ns[t] = n, n.prototype.jsonID = t, n;
|
|
7061
7078
|
}
|
|
7062
7079
|
}
|
|
7063
|
-
class
|
|
7080
|
+
class Re {
|
|
7064
7081
|
/**
|
|
7065
7082
|
@internal
|
|
7066
7083
|
*/
|
|
@@ -7071,13 +7088,13 @@ class Ae {
|
|
|
7071
7088
|
Create a successful step result.
|
|
7072
7089
|
*/
|
|
7073
7090
|
static ok(t) {
|
|
7074
|
-
return new
|
|
7091
|
+
return new Re(t, null);
|
|
7075
7092
|
}
|
|
7076
7093
|
/**
|
|
7077
7094
|
Create a failed step result.
|
|
7078
7095
|
*/
|
|
7079
7096
|
static fail(t) {
|
|
7080
|
-
return new
|
|
7097
|
+
return new Re(null, t);
|
|
7081
7098
|
}
|
|
7082
7099
|
/**
|
|
7083
7100
|
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
@@ -7086,10 +7103,10 @@ class Ae {
|
|
|
7086
7103
|
*/
|
|
7087
7104
|
static fromReplace(t, n, s, i) {
|
|
7088
7105
|
try {
|
|
7089
|
-
return
|
|
7106
|
+
return Re.ok(t.replace(n, s, i));
|
|
7090
7107
|
} catch (a) {
|
|
7091
7108
|
if (a instanceof fb)
|
|
7092
|
-
return
|
|
7109
|
+
return Re.fail(a.message);
|
|
7093
7110
|
throw a;
|
|
7094
7111
|
}
|
|
7095
7112
|
}
|
|
@@ -7111,7 +7128,7 @@ class hn extends nt {
|
|
|
7111
7128
|
}
|
|
7112
7129
|
apply(t) {
|
|
7113
7130
|
let n = t.slice(this.from, this.to), s = t.resolve(this.from), i = s.node(s.sharedDepth(this.to)), a = new ue(Hi(n.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), n.openStart, n.openEnd);
|
|
7114
|
-
return
|
|
7131
|
+
return Re.fromReplace(t, this.from, this.to, a);
|
|
7115
7132
|
}
|
|
7116
7133
|
invert() {
|
|
7117
7134
|
return new pn(this.from, this.to, this.mark);
|
|
@@ -7150,7 +7167,7 @@ class pn extends nt {
|
|
|
7150
7167
|
}
|
|
7151
7168
|
apply(t) {
|
|
7152
7169
|
let n = t.slice(this.from, this.to), s = new ue(Hi(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), t), n.openStart, n.openEnd);
|
|
7153
|
-
return
|
|
7170
|
+
return Re.fromReplace(t, this.from, this.to, s);
|
|
7154
7171
|
}
|
|
7155
7172
|
invert() {
|
|
7156
7173
|
return new hn(this.from, this.to, this.mark);
|
|
@@ -7190,9 +7207,9 @@ class xn extends nt {
|
|
|
7190
7207
|
apply(t) {
|
|
7191
7208
|
let n = t.nodeAt(this.pos);
|
|
7192
7209
|
if (!n)
|
|
7193
|
-
return
|
|
7210
|
+
return Re.fail("No node at mark step's position");
|
|
7194
7211
|
let s = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
|
|
7195
|
-
return
|
|
7212
|
+
return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
|
|
7196
7213
|
}
|
|
7197
7214
|
invert(t) {
|
|
7198
7215
|
let n = t.nodeAt(this.pos);
|
|
@@ -7234,9 +7251,9 @@ class or extends nt {
|
|
|
7234
7251
|
apply(t) {
|
|
7235
7252
|
let n = t.nodeAt(this.pos);
|
|
7236
7253
|
if (!n)
|
|
7237
|
-
return
|
|
7254
|
+
return Re.fail("No node at mark step's position");
|
|
7238
7255
|
let s = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
|
|
7239
|
-
return
|
|
7256
|
+
return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
|
|
7240
7257
|
}
|
|
7241
7258
|
invert(t) {
|
|
7242
7259
|
let n = t.nodeAt(this.pos);
|
|
@@ -7273,7 +7290,7 @@ class zt extends nt {
|
|
|
7273
7290
|
super(), this.from = t, this.to = n, this.slice = s, this.structure = i;
|
|
7274
7291
|
}
|
|
7275
7292
|
apply(t) {
|
|
7276
|
-
return this.structure && ai(t, this.from, this.to) ?
|
|
7293
|
+
return this.structure && ai(t, this.from, this.to) ? Re.fail("Structure replace would overwrite content") : Re.fromReplace(t, this.from, this.to, this.slice);
|
|
7277
7294
|
}
|
|
7278
7295
|
getMap() {
|
|
7279
7296
|
return new ut([this.from, this.to - this.from, this.slice.size]);
|
|
@@ -7323,12 +7340,12 @@ class fn extends nt {
|
|
|
7323
7340
|
}
|
|
7324
7341
|
apply(t) {
|
|
7325
7342
|
if (this.structure && (ai(t, this.from, this.gapFrom) || ai(t, this.gapTo, this.to)))
|
|
7326
|
-
return
|
|
7343
|
+
return Re.fail("Structure gap-replace would overwrite content");
|
|
7327
7344
|
let n = t.slice(this.gapFrom, this.gapTo);
|
|
7328
7345
|
if (n.openStart || n.openEnd)
|
|
7329
|
-
return
|
|
7346
|
+
return Re.fail("Gap is not a flat range");
|
|
7330
7347
|
let s = this.slice.insertAt(this.insert, n.content);
|
|
7331
|
-
return s ?
|
|
7348
|
+
return s ? Re.fromReplace(t, this.from, this.to, s) : Re.fail("Content does not fit in gap");
|
|
7332
7349
|
}
|
|
7333
7350
|
getMap() {
|
|
7334
7351
|
return new ut([
|
|
@@ -7431,13 +7448,13 @@ class er extends nt {
|
|
|
7431
7448
|
apply(t) {
|
|
7432
7449
|
let n = t.nodeAt(this.pos);
|
|
7433
7450
|
if (!n)
|
|
7434
|
-
return
|
|
7451
|
+
return Re.fail("No node at attribute step's position");
|
|
7435
7452
|
let s = /* @__PURE__ */ Object.create(null);
|
|
7436
7453
|
for (let a in n.attrs)
|
|
7437
7454
|
s[a] = n.attrs[a];
|
|
7438
7455
|
s[this.attr] = this.value;
|
|
7439
7456
|
let i = n.type.create(s, null, n.marks);
|
|
7440
|
-
return
|
|
7457
|
+
return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(i), 0, n.isLeaf ? 0 : 1));
|
|
7441
7458
|
}
|
|
7442
7459
|
getMap() {
|
|
7443
7460
|
return ut.empty;
|
|
@@ -7563,7 +7580,7 @@ class ye {
|
|
|
7563
7580
|
found.
|
|
7564
7581
|
*/
|
|
7565
7582
|
static findFrom(t, n, s = !1) {
|
|
7566
|
-
let i = t.parent.inlineContent ? new
|
|
7583
|
+
let i = t.parent.inlineContent ? new Ee(t) : Ln(t.node(0), t.parent, t.pos, t.index(), n, s);
|
|
7567
7584
|
if (i)
|
|
7568
7585
|
return i;
|
|
7569
7586
|
for (let a = t.depth - 1; a >= 0; a--) {
|
|
@@ -7630,7 +7647,7 @@ class ye {
|
|
|
7630
7647
|
returns the bookmark for that.
|
|
7631
7648
|
*/
|
|
7632
7649
|
getBookmark() {
|
|
7633
|
-
return
|
|
7650
|
+
return Ee.between(this.$anchor, this.$head).getBookmark();
|
|
7634
7651
|
}
|
|
7635
7652
|
}
|
|
7636
7653
|
ye.prototype.visible = !0;
|
|
@@ -7646,7 +7663,7 @@ let jo = !1;
|
|
|
7646
7663
|
function vo(e) {
|
|
7647
7664
|
!jo && !e.parent.inlineContent && (jo = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
|
|
7648
7665
|
}
|
|
7649
|
-
class
|
|
7666
|
+
class Ee extends ye {
|
|
7650
7667
|
/**
|
|
7651
7668
|
Construct a text selection between the given points.
|
|
7652
7669
|
*/
|
|
@@ -7665,7 +7682,7 @@ class Re extends ye {
|
|
|
7665
7682
|
if (!s.parent.inlineContent)
|
|
7666
7683
|
return ye.near(s);
|
|
7667
7684
|
let i = t.resolve(n.map(this.anchor));
|
|
7668
|
-
return new
|
|
7685
|
+
return new Ee(i.parent.inlineContent ? i : s, s);
|
|
7669
7686
|
}
|
|
7670
7687
|
replace(t, n = ue.empty) {
|
|
7671
7688
|
if (super.replace(t, n), n == ue.empty) {
|
|
@@ -7674,7 +7691,7 @@ class Re extends ye {
|
|
|
7674
7691
|
}
|
|
7675
7692
|
}
|
|
7676
7693
|
eq(t) {
|
|
7677
|
-
return t instanceof
|
|
7694
|
+
return t instanceof Ee && t.anchor == this.anchor && t.head == this.head;
|
|
7678
7695
|
}
|
|
7679
7696
|
getBookmark() {
|
|
7680
7697
|
return new ms(this.anchor, this.head);
|
|
@@ -7688,7 +7705,7 @@ class Re extends ye {
|
|
|
7688
7705
|
static fromJSON(t, n) {
|
|
7689
7706
|
if (typeof n.anchor != "number" || typeof n.head != "number")
|
|
7690
7707
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
7691
|
-
return new
|
|
7708
|
+
return new Ee(t.resolve(n.anchor), t.resolve(n.head));
|
|
7692
7709
|
}
|
|
7693
7710
|
/**
|
|
7694
7711
|
Create a text selection from non-resolved positions.
|
|
@@ -7714,10 +7731,10 @@ class Re extends ye {
|
|
|
7714
7731
|
else
|
|
7715
7732
|
return ye.near(n, s);
|
|
7716
7733
|
}
|
|
7717
|
-
return t.parent.inlineContent || (i == 0 ? t = n : (t = (ye.findFrom(t, -s, !0) || ye.findFrom(t, s, !0)).$anchor, t.pos < n.pos != i < 0 && (t = n))), new
|
|
7734
|
+
return t.parent.inlineContent || (i == 0 ? t = n : (t = (ye.findFrom(t, -s, !0) || ye.findFrom(t, s, !0)).$anchor, t.pos < n.pos != i < 0 && (t = n))), new Ee(t, n);
|
|
7718
7735
|
}
|
|
7719
7736
|
}
|
|
7720
|
-
ye.jsonID("text",
|
|
7737
|
+
ye.jsonID("text", Ee);
|
|
7721
7738
|
class ms {
|
|
7722
7739
|
constructor(t, n) {
|
|
7723
7740
|
this.anchor = t, this.head = n;
|
|
@@ -7726,7 +7743,7 @@ class ms {
|
|
|
7726
7743
|
return new ms(t.map(this.anchor), t.map(this.head));
|
|
7727
7744
|
}
|
|
7728
7745
|
resolve(t) {
|
|
7729
|
-
return
|
|
7746
|
+
return Ee.between(t.resolve(this.anchor), t.resolve(this.head));
|
|
7730
7747
|
}
|
|
7731
7748
|
}
|
|
7732
7749
|
class st extends ye {
|
|
@@ -7752,7 +7769,7 @@ class st extends ye {
|
|
|
7752
7769
|
return { type: "node", anchor: this.anchor };
|
|
7753
7770
|
}
|
|
7754
7771
|
getBookmark() {
|
|
7755
|
-
return new
|
|
7772
|
+
return new Ki(this.anchor);
|
|
7756
7773
|
}
|
|
7757
7774
|
/**
|
|
7758
7775
|
@internal
|
|
@@ -7778,13 +7795,13 @@ class st extends ye {
|
|
|
7778
7795
|
}
|
|
7779
7796
|
st.prototype.visible = !1;
|
|
7780
7797
|
ye.jsonID("node", st);
|
|
7781
|
-
class
|
|
7798
|
+
class Ki {
|
|
7782
7799
|
constructor(t) {
|
|
7783
7800
|
this.anchor = t;
|
|
7784
7801
|
}
|
|
7785
7802
|
map(t) {
|
|
7786
7803
|
let { deleted: n, pos: s } = t.mapResult(this.anchor);
|
|
7787
|
-
return n ? new ms(s, s) : new
|
|
7804
|
+
return n ? new ms(s, s) : new Ki(s);
|
|
7788
7805
|
}
|
|
7789
7806
|
resolve(t) {
|
|
7790
7807
|
let n = t.resolve(this.anchor), s = n.nodeAfter;
|
|
@@ -7836,7 +7853,7 @@ const Db = {
|
|
|
7836
7853
|
};
|
|
7837
7854
|
function Ln(e, t, n, s, i, a = !1) {
|
|
7838
7855
|
if (t.inlineContent)
|
|
7839
|
-
return
|
|
7856
|
+
return Ee.create(e, n);
|
|
7840
7857
|
for (let o = s - (i > 0 ? 0 : 1); i > 0 ? o < t.childCount : o >= 0; o += i) {
|
|
7841
7858
|
let l = t.child(o);
|
|
7842
7859
|
if (l.isAtom) {
|
|
@@ -8206,7 +8223,7 @@ function Hr(e, t, n = { strict: !0 }) {
|
|
|
8206
8223
|
function oi(e, t, n = {}) {
|
|
8207
8224
|
return e.find((s) => s.type === t && Hr(s.attrs, n));
|
|
8208
8225
|
}
|
|
8209
|
-
function
|
|
8226
|
+
function Kb(e, t, n = {}) {
|
|
8210
8227
|
return !!oi(e, t, n);
|
|
8211
8228
|
}
|
|
8212
8229
|
function Fc(e, t, n = {}) {
|
|
@@ -8221,7 +8238,7 @@ function Fc(e, t, n = {}) {
|
|
|
8221
8238
|
let a = s.index, o = e.start() + s.offset, l = a + 1, c = o + s.node.nodeSize;
|
|
8222
8239
|
for (oi([...s.node.marks], t, n); a > 0 && i.isInSet(e.parent.child(a - 1).marks); )
|
|
8223
8240
|
a -= 1, o -= e.parent.child(a).nodeSize;
|
|
8224
|
-
for (; l < e.parent.childCount &&
|
|
8241
|
+
for (; l < e.parent.childCount && Kb([...e.parent.child(l).marks], t, n); )
|
|
8225
8242
|
c += e.parent.child(l).nodeSize, l += 1;
|
|
8226
8243
|
return {
|
|
8227
8244
|
from: o,
|
|
@@ -8236,12 +8253,12 @@ function an(e, t) {
|
|
|
8236
8253
|
}
|
|
8237
8254
|
return e;
|
|
8238
8255
|
}
|
|
8239
|
-
const
|
|
8256
|
+
const Ub = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
8240
8257
|
const a = an(e, s.schema), { doc: o, selection: l } = n, { $from: c, from: d, to: u } = l;
|
|
8241
8258
|
if (i) {
|
|
8242
8259
|
const h = Fc(c, a, t);
|
|
8243
8260
|
if (h && h.from <= d && h.to >= u) {
|
|
8244
|
-
const p =
|
|
8261
|
+
const p = Ee.create(o, h.from, h.to);
|
|
8245
8262
|
n.setSelection(p);
|
|
8246
8263
|
}
|
|
8247
8264
|
}
|
|
@@ -8254,7 +8271,7 @@ const Kb = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
8254
8271
|
return !1;
|
|
8255
8272
|
};
|
|
8256
8273
|
function Oc(e) {
|
|
8257
|
-
return e instanceof
|
|
8274
|
+
return e instanceof Ee;
|
|
8258
8275
|
}
|
|
8259
8276
|
function mn(e = 0, t = 0, n = 0) {
|
|
8260
8277
|
return Math.min(Math.max(e, t), n);
|
|
@@ -8268,9 +8285,9 @@ function Xb(e, t = null) {
|
|
|
8268
8285
|
if (t === "end")
|
|
8269
8286
|
return s;
|
|
8270
8287
|
const i = n.from, a = s.to;
|
|
8271
|
-
return t === "all" ?
|
|
8288
|
+
return t === "all" ? Ee.create(e, mn(0, i, a), mn(e.content.size, i, a)) : Ee.create(e, mn(t, i, a), mn(t, i, a));
|
|
8272
8289
|
}
|
|
8273
|
-
function
|
|
8290
|
+
function Ui() {
|
|
8274
8291
|
return [
|
|
8275
8292
|
"iPad Simulator",
|
|
8276
8293
|
"iPhone Simulator",
|
|
@@ -8286,7 +8303,7 @@ const Jb = (e = null, t = {}) => ({ editor: n, view: s, tr: i, dispatch: a }) =>
|
|
|
8286
8303
|
...t
|
|
8287
8304
|
};
|
|
8288
8305
|
const o = () => {
|
|
8289
|
-
|
|
8306
|
+
Ui() && s.dom.focus(), requestAnimationFrame(() => {
|
|
8290
8307
|
n.isDestroyed || (s.focus(), t != null && t.scrollIntoView && n.commands.scrollIntoView());
|
|
8291
8308
|
});
|
|
8292
8309
|
};
|
|
@@ -8301,7 +8318,7 @@ function So(e) {
|
|
|
8301
8318
|
const t = `<body>${e}</body>`;
|
|
8302
8319
|
return new window.DOMParser().parseFromString(t, "text/html").body;
|
|
8303
8320
|
}
|
|
8304
|
-
function
|
|
8321
|
+
function Kr(e, t, n) {
|
|
8305
8322
|
if (n = {
|
|
8306
8323
|
slice: !0,
|
|
8307
8324
|
parseOptions: {},
|
|
@@ -8310,13 +8327,13 @@ function Ur(e, t, n) {
|
|
|
8310
8327
|
try {
|
|
8311
8328
|
return Array.isArray(e) && e.length > 0 ? ie.fromArray(e.map((s) => t.nodeFromJSON(s))) : t.nodeFromJSON(e);
|
|
8312
8329
|
} catch (s) {
|
|
8313
|
-
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", s),
|
|
8330
|
+
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", s), Kr("", t, n);
|
|
8314
8331
|
}
|
|
8315
8332
|
if (typeof e == "string") {
|
|
8316
8333
|
const s = Wr.fromSchema(t);
|
|
8317
8334
|
return n.slice ? s.parseSlice(So(e), n.parseOptions).content : s.parse(So(e), n.parseOptions);
|
|
8318
8335
|
}
|
|
8319
|
-
return
|
|
8336
|
+
return Kr("", t, n);
|
|
8320
8337
|
}
|
|
8321
8338
|
function ty(e, t, n) {
|
|
8322
8339
|
const s = e.steps.length - 1;
|
|
@@ -8338,7 +8355,7 @@ const ny = (e) => e.toString().startsWith("<"), ry = (e, t, n) => ({ tr: s, disp
|
|
|
8338
8355
|
updateSelection: !0,
|
|
8339
8356
|
...n
|
|
8340
8357
|
};
|
|
8341
|
-
const o =
|
|
8358
|
+
const o = Kr(t, a.schema, {
|
|
8342
8359
|
parseOptions: {
|
|
8343
8360
|
preserveWhitespace: "full",
|
|
8344
8361
|
...n.parseOptions
|
|
@@ -8376,7 +8393,7 @@ function ly(e) {
|
|
|
8376
8393
|
else if (/^s(hift)?$/i.test(c))
|
|
8377
8394
|
a = !0;
|
|
8378
8395
|
else if (/^mod$/i.test(c))
|
|
8379
|
-
|
|
8396
|
+
Ui() || $c() ? o = !0 : i = !0;
|
|
8380
8397
|
else
|
|
8381
8398
|
throw new Error(`Unrecognized modifier name: ${c}`);
|
|
8382
8399
|
}
|
|
@@ -8443,7 +8460,7 @@ const xy = (e, t) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
8443
8460
|
to: e.doc.content.size
|
|
8444
8461
|
}), gy = () => ({ state: e, dispatch: t }) => _p(e, t), by = () => ({ state: e, dispatch: t }) => Sp(e, t), yy = () => ({ state: e, dispatch: t }) => Cp(e, t), jy = () => ({ state: e, dispatch: t }) => kp(e, t), vy = () => ({ state: e, dispatch: t }) => Tp(e, t);
|
|
8445
8462
|
function wy(e, t, n = {}) {
|
|
8446
|
-
return
|
|
8463
|
+
return Kr(e, t, { slice: !1, parseOptions: n });
|
|
8447
8464
|
}
|
|
8448
8465
|
const _y = (e, t = !1, n = {}) => ({ tr: s, editor: i, dispatch: a }) => {
|
|
8449
8466
|
const { doc: o } = s, l = wy(e, i.schema, n);
|
|
@@ -8576,7 +8593,7 @@ const Dy = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
8576
8593
|
return !0;
|
|
8577
8594
|
}, Ay = (e) => ({ tr: t, dispatch: n }) => {
|
|
8578
8595
|
if (n) {
|
|
8579
|
-
const { doc: s } = t, { from: i, to: a } = typeof e == "number" ? { from: e, to: e } : e, o =
|
|
8596
|
+
const { doc: s } = t, { from: i, to: a } = typeof e == "number" ? { from: e, to: e } : e, o = Ee.atStart(s).from, l = Ee.atEnd(s).to, c = mn(i, o, l), d = mn(a, o, l), u = Ee.create(s, c, d);
|
|
8580
8597
|
t.setSelection(u);
|
|
8581
8598
|
}
|
|
8582
8599
|
return !0;
|
|
@@ -8599,7 +8616,7 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8599
8616
|
return !1;
|
|
8600
8617
|
if (s) {
|
|
8601
8618
|
const h = c.parentOffset === c.parent.content.size;
|
|
8602
|
-
a instanceof
|
|
8619
|
+
a instanceof Ee && t.deleteSelection();
|
|
8603
8620
|
const p = l.depth === 0 ? void 0 : Sy(l.node(-1).contentMatchAt(l.indexAfter(-1)));
|
|
8604
8621
|
let x = h && p ? [
|
|
8605
8622
|
{
|
|
@@ -8634,18 +8651,18 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8634
8651
|
if (s) {
|
|
8635
8652
|
let M = ie.empty;
|
|
8636
8653
|
const F = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
8637
|
-
for (let
|
|
8638
|
-
M = ie.from(l.node(
|
|
8654
|
+
for (let Ie = l.depth - F; Ie >= l.depth - 3; Ie -= 1)
|
|
8655
|
+
M = ie.from(l.node(Ie).copy(M));
|
|
8639
8656
|
const B = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, re = Or(h, l.node().type.name, l.node().attrs), be = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(re)) || void 0;
|
|
8640
8657
|
M = M.append(ie.from(o.createAndFill(null, be) || void 0));
|
|
8641
8658
|
const ne = l.before(l.depth - (F - 1));
|
|
8642
8659
|
t.replace(ne, l.after(-B), new ue(M, 4 - F, 0));
|
|
8643
8660
|
let Se = -1;
|
|
8644
|
-
t.doc.nodesBetween(ne, t.doc.content.size, (
|
|
8661
|
+
t.doc.nodesBetween(ne, t.doc.content.size, (Ie, Le) => {
|
|
8645
8662
|
if (Se > -1)
|
|
8646
8663
|
return !1;
|
|
8647
|
-
|
|
8648
|
-
}), Se > -1 && t.setSelection(
|
|
8664
|
+
Ie.isTextblock && Ie.content.size === 0 && (Se = Le + 1);
|
|
8665
|
+
}), Se > -1 && t.setSelection(Ee.near(t.doc.resolve(Se))), t.scrollIntoView();
|
|
8649
8666
|
}
|
|
8650
8667
|
return !0;
|
|
8651
8668
|
}
|
|
@@ -8695,8 +8712,8 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8695
8712
|
return c().command(() => (a.setNodeMarkup(ne.pos, x), !0)).command(() => Gs(a, x)).command(() => Qs(a, x)).run();
|
|
8696
8713
|
}
|
|
8697
8714
|
return !n || !be || !l ? c().command(() => u().wrapInList(x, s) ? !0 : d.clearNodes()).wrapInList(x, s).command(() => Gs(a, x)).command(() => Qs(a, x)).run() : c().command(() => {
|
|
8698
|
-
const Se = u().wrapInList(x, s),
|
|
8699
|
-
return a.ensureMarks(
|
|
8715
|
+
const Se = u().wrapInList(x, s), Ie = be.filter((Le) => p.includes(Le.type.name));
|
|
8716
|
+
return a.ensureMarks(Ie), Se ? !0 : d.clearNodes();
|
|
8700
8717
|
}).wrapInList(x, s).command(() => Gs(a, x)).command(() => Qs(a, x)).run();
|
|
8701
8718
|
}, $y = (e, t = {}, n = {}) => ({ state: s, commands: i }) => {
|
|
8702
8719
|
const { extendEmptyMarkRange: a = !1 } = n, o = an(e, s.schema);
|
|
@@ -8786,7 +8803,7 @@ var Hy = /* @__PURE__ */ Object.freeze({
|
|
|
8786
8803
|
deleteSelection: Gb,
|
|
8787
8804
|
enter: Qb,
|
|
8788
8805
|
exitCode: Hb,
|
|
8789
|
-
extendMarkRange:
|
|
8806
|
+
extendMarkRange: Ub,
|
|
8790
8807
|
first: Yb,
|
|
8791
8808
|
focus: Jb,
|
|
8792
8809
|
forEach: Zb,
|
|
@@ -8920,7 +8937,7 @@ At.create({
|
|
|
8920
8937
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
8921
8938
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
8922
8939
|
};
|
|
8923
|
-
return
|
|
8940
|
+
return Ui() || $c() ? a : i;
|
|
8924
8941
|
},
|
|
8925
8942
|
addProseMirrorPlugins() {
|
|
8926
8943
|
return [
|
|
@@ -8999,10 +9016,10 @@ const Vc = At.create({
|
|
|
8999
9016
|
}).removeEmptyTextStyle().run()
|
|
9000
9017
|
};
|
|
9001
9018
|
}
|
|
9002
|
-
}),
|
|
9019
|
+
}), Ky = ["8", "10", "12", "14", "16", "18", "20", "24", "30", "36", "48", "60", "72"].map((e) => `${e}px`), Uy = [{
|
|
9003
9020
|
label: "auto",
|
|
9004
9021
|
value: ""
|
|
9005
|
-
}].concat(
|
|
9022
|
+
}].concat(Ky.map((e) => ({
|
|
9006
9023
|
label: e,
|
|
9007
9024
|
value: e
|
|
9008
9025
|
}))), Yy = {
|
|
@@ -9016,15 +9033,16 @@ const Vc = At.create({
|
|
|
9016
9033
|
editor: e
|
|
9017
9034
|
}) => {
|
|
9018
9035
|
const t = e.getAttributes("textStyle").fontSize;
|
|
9019
|
-
return /* @__PURE__ */ r.jsx(X.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Zo, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { stroke: 1.5, size: 16 }), data:
|
|
9036
|
+
return /* @__PURE__ */ r.jsx(X.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Zo, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { stroke: 1.5, size: 16 }), data: Uy, styles: Yy, value: t || "", onChange: (n) => {
|
|
9020
9037
|
const s = n.currentTarget.value;
|
|
9021
9038
|
s ? e.chain().focus().setFontSize(s).run() : e.chain().focus().unsetFontSize().run();
|
|
9022
9039
|
} }) });
|
|
9023
9040
|
}, fs = ({
|
|
9024
9041
|
value: e,
|
|
9025
|
-
styles: t = {}
|
|
9042
|
+
styles: t = {},
|
|
9043
|
+
sx: n = {}
|
|
9026
9044
|
}) => {
|
|
9027
|
-
const
|
|
9045
|
+
const s = Ol({
|
|
9028
9046
|
extensions: [$l, Fl, Sl, Dl, Il, kl, Ll.configure({
|
|
9029
9047
|
resizable: !1,
|
|
9030
9048
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
@@ -9040,12 +9058,12 @@ const Vc = At.create({
|
|
|
9040
9058
|
editable: !1
|
|
9041
9059
|
});
|
|
9042
9060
|
O(() => {
|
|
9043
|
-
|
|
9044
|
-
}, [e,
|
|
9045
|
-
const
|
|
9061
|
+
s == null || s.commands.setContent(e);
|
|
9062
|
+
}, [e, s]);
|
|
9063
|
+
const i = T(() => _.defaultsDeep({}, {
|
|
9046
9064
|
content: Qi
|
|
9047
9065
|
}, t), [t]);
|
|
9048
|
-
return /* @__PURE__ */ r.jsx(X, { editor:
|
|
9066
|
+
return /* @__PURE__ */ r.jsx(X, { editor: s, styles: i, sx: n, children: /* @__PURE__ */ r.jsx(X.Content, {}) });
|
|
9049
9067
|
};
|
|
9050
9068
|
function Jy() {
|
|
9051
9069
|
const [e, {
|
|
@@ -9225,7 +9243,7 @@ function nj({
|
|
|
9225
9243
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
9226
9244
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, pt: s, children: [
|
|
9227
9245
|
/* @__PURE__ */ r.jsx(A, { ref: a, label: e, data: tj, value: t.type, onChange: o, maxDropdownHeight: 600 }),
|
|
9228
|
-
t.type === "quantile" && /* @__PURE__ */ r.jsx(
|
|
9246
|
+
t.type === "quantile" && /* @__PURE__ */ r.jsx(K, { label: "p", value: t.config.p, onChange: l, precision: 2, min: 0.05, step: 0.05, max: 1 }),
|
|
9229
9247
|
t.type === "custom" && /* @__PURE__ */ r.jsx(ej, { label: "", triggerLabel: "Edit Function", value: t.config.func, onChange: c, defaultValue: ho, triggerButtonProps: {
|
|
9230
9248
|
size: "xs",
|
|
9231
9249
|
sx: {
|
|
@@ -9310,7 +9328,7 @@ const ij = ({
|
|
|
9310
9328
|
const [n, {
|
|
9311
9329
|
setTrue: s,
|
|
9312
9330
|
setFalse: i
|
|
9313
|
-
}] =
|
|
9331
|
+
}] = Fe(), [a, o] = N(e), l = () => {
|
|
9314
9332
|
i();
|
|
9315
9333
|
const {
|
|
9316
9334
|
type: h,
|
|
@@ -9363,7 +9381,7 @@ const ij = ({
|
|
|
9363
9381
|
size: s
|
|
9364
9382
|
});
|
|
9365
9383
|
};
|
|
9366
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(
|
|
9384
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(K, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
|
|
9367
9385
|
}, cj = [{
|
|
9368
9386
|
label: "Static",
|
|
9369
9387
|
value: "static"
|
|
@@ -9437,7 +9455,7 @@ function hj({
|
|
|
9437
9455
|
control: e,
|
|
9438
9456
|
render: ({
|
|
9439
9457
|
field: i
|
|
9440
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
9458
|
+
}) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
|
|
9441
9459
|
flexGrow: 1
|
|
9442
9460
|
}, ...i })
|
|
9443
9461
|
}
|
|
@@ -9610,12 +9628,12 @@ function mj({
|
|
|
9610
9628
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
9611
9629
|
/* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
|
|
9612
9630
|
field: o
|
|
9613
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
9631
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...o }) })
|
|
9614
9632
|
] }),
|
|
9615
9633
|
/* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
9616
9634
|
/* @__PURE__ */ r.jsx(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
|
|
9617
9635
|
field: o
|
|
9618
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
9636
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }),
|
|
9619
9637
|
/* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed" }),
|
|
9620
9638
|
/* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
9621
9639
|
top: 15,
|
|
@@ -9681,7 +9699,7 @@ function fj({
|
|
|
9681
9699
|
}, children: [
|
|
9682
9700
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
9683
9701
|
o.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
|
|
9684
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
9702
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
9685
9703
|
] }),
|
|
9686
9704
|
o.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(mj, { control: e, index: h, remove: i, seriesItem: u, yAxisOptions: d }, u.id) }, u.id))
|
|
9687
9705
|
] });
|
|
@@ -9707,11 +9725,11 @@ const bj = () => /* @__PURE__ */ r.jsxs(b, { sx: {
|
|
|
9707
9725
|
display: "inline-flex"
|
|
9708
9726
|
}, spacing: 6, mr: 14, children: [
|
|
9709
9727
|
/* @__PURE__ */ r.jsx(j, { children: "X Axis Data Type" }),
|
|
9710
|
-
/* @__PURE__ */ r.jsxs(
|
|
9711
|
-
/* @__PURE__ */ r.jsx(
|
|
9728
|
+
/* @__PURE__ */ r.jsxs(Te, { width: 340, shadow: "md", position: "top", children: [
|
|
9729
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(W, { size: "xs", sx: {
|
|
9712
9730
|
transform: "none !important"
|
|
9713
9731
|
}, children: /* @__PURE__ */ r.jsx(_n, {}) }) }),
|
|
9714
|
-
/* @__PURE__ */ r.jsx(
|
|
9732
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
|
|
9715
9733
|
"Click",
|
|
9716
9734
|
/* @__PURE__ */ r.jsx(Js, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 4, children: "here" }),
|
|
9717
9735
|
"to learn more about these options"
|
|
@@ -9761,7 +9779,7 @@ function jj({
|
|
|
9761
9779
|
field: n
|
|
9762
9780
|
}) => (
|
|
9763
9781
|
// @ts-expect-error type of onChange
|
|
9764
|
-
/* @__PURE__ */ r.jsx(
|
|
9782
|
+
/* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
|
|
9765
9783
|
width: "48%"
|
|
9766
9784
|
}, styles: {
|
|
9767
9785
|
rightSection: {
|
|
@@ -9849,7 +9867,7 @@ function _j({
|
|
|
9849
9867
|
/* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
9850
9868
|
/* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.show`, control: e, render: ({
|
|
9851
9869
|
field: s
|
|
9852
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
9870
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
|
|
9853
9871
|
/* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this YAxis" })
|
|
9854
9872
|
] });
|
|
9855
9873
|
}
|
|
@@ -9887,7 +9905,7 @@ function Sj({
|
|
|
9887
9905
|
}, children: [
|
|
9888
9906
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
9889
9907
|
o.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
|
|
9890
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
9908
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
9891
9909
|
] }),
|
|
9892
9910
|
o.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(_j, { control: e, index: d, remove: i }) }, c.id))
|
|
9893
9911
|
] });
|
|
@@ -10390,7 +10408,7 @@ function Hj(e) {
|
|
|
10390
10408
|
};
|
|
10391
10409
|
return e.orient === "vertical" && _.get(s, n) && n === e.funnelAlign && _.set(s, n, t), s;
|
|
10392
10410
|
}
|
|
10393
|
-
function
|
|
10411
|
+
function Kj(e, t) {
|
|
10394
10412
|
return e.series.map((n) => {
|
|
10395
10413
|
const {
|
|
10396
10414
|
level_name_data_key: s,
|
|
@@ -10427,7 +10445,7 @@ function Uj(e, t) {
|
|
|
10427
10445
|
};
|
|
10428
10446
|
});
|
|
10429
10447
|
}
|
|
10430
|
-
function
|
|
10448
|
+
function Uj({
|
|
10431
10449
|
conf: e,
|
|
10432
10450
|
params: t,
|
|
10433
10451
|
max: n
|
|
@@ -10453,7 +10471,7 @@ function Yj(e, t) {
|
|
|
10453
10471
|
var a;
|
|
10454
10472
|
const n = $(e.series[0].level_name_data_key), s = $(e.series[0].level_value_data_key), i = (a = _.maxBy(t[n.queryID], s.columnKey)) == null ? void 0 : a[s.columnKey];
|
|
10455
10473
|
return (o) => {
|
|
10456
|
-
const c =
|
|
10474
|
+
const c = Uj({
|
|
10457
10475
|
conf: e,
|
|
10458
10476
|
params: o,
|
|
10459
10477
|
max: i
|
|
@@ -10492,7 +10510,7 @@ function Jj(e, t) {
|
|
|
10492
10510
|
bottom: 0
|
|
10493
10511
|
},
|
|
10494
10512
|
tooltip: Xj(e, t),
|
|
10495
|
-
series:
|
|
10513
|
+
series: Kj(e, t)
|
|
10496
10514
|
};
|
|
10497
10515
|
}
|
|
10498
10516
|
function Zj(e) {
|
|
@@ -10674,7 +10692,7 @@ const nv = [{
|
|
|
10674
10692
|
field: l
|
|
10675
10693
|
}) => (
|
|
10676
10694
|
// @ts-expect-error type of onChange
|
|
10677
|
-
/* @__PURE__ */ r.jsx(
|
|
10695
|
+
/* @__PURE__ */ r.jsx(K, { disabled: !i, labelProps: {
|
|
10678
10696
|
display: "block"
|
|
10679
10697
|
}, label: /* @__PURE__ */ r.jsxs(b, { position: "apart", pr: 6, sx: {
|
|
10680
10698
|
width: "100%"
|
|
@@ -10682,7 +10700,7 @@ const nv = [{
|
|
|
10682
10700
|
/* @__PURE__ */ r.jsx(j, { children: "Min Value" }),
|
|
10683
10701
|
/* @__PURE__ */ r.jsx(fe, { label: "Check to enable specific min value", children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.enable_value`, control: t, render: ({
|
|
10684
10702
|
field: c
|
|
10685
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
10703
|
+
}) => /* @__PURE__ */ r.jsx(U, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
|
|
10686
10704
|
] }), ...l })
|
|
10687
10705
|
) }),
|
|
10688
10706
|
/* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.size`, control: t, render: ({
|
|
@@ -10694,7 +10712,7 @@ const nv = [{
|
|
|
10694
10712
|
field: l
|
|
10695
10713
|
}) => (
|
|
10696
10714
|
// @ts-expect-error type of onChange
|
|
10697
|
-
/* @__PURE__ */ r.jsx(
|
|
10715
|
+
/* @__PURE__ */ r.jsx(K, { disabled: !a, labelProps: {
|
|
10698
10716
|
display: "block"
|
|
10699
10717
|
}, label: /* @__PURE__ */ r.jsxs(b, { position: "apart", pr: 6, sx: {
|
|
10700
10718
|
width: "100%"
|
|
@@ -10702,7 +10720,7 @@ const nv = [{
|
|
|
10702
10720
|
/* @__PURE__ */ r.jsx(j, { children: "Max Value" }),
|
|
10703
10721
|
/* @__PURE__ */ r.jsx(fe, { label: "Check to enable specific max value", children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.enable_value`, control: t, render: ({
|
|
10704
10722
|
field: c
|
|
10705
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
10723
|
+
}) => /* @__PURE__ */ r.jsx(U, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
|
|
10706
10724
|
] }), ...l })
|
|
10707
10725
|
) }),
|
|
10708
10726
|
/* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.size`, control: t, render: ({
|
|
@@ -10745,7 +10763,7 @@ const nv = [{
|
|
|
10745
10763
|
control: t,
|
|
10746
10764
|
render: ({
|
|
10747
10765
|
field: l
|
|
10748
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
10766
|
+
}) => /* @__PURE__ */ r.jsx(K, { placeholder: "0, 5, 10...", label: "Gap", ...l })
|
|
10749
10767
|
}
|
|
10750
10768
|
)
|
|
10751
10769
|
] }),
|
|
@@ -11101,7 +11119,7 @@ const vv = ({
|
|
|
11101
11119
|
const [n, {
|
|
11102
11120
|
setTrue: s,
|
|
11103
11121
|
setFalse: i
|
|
11104
|
-
}] =
|
|
11122
|
+
}] = Fe(), [a, o] = N(e), l = () => {
|
|
11105
11123
|
i();
|
|
11106
11124
|
const {
|
|
11107
11125
|
type: h,
|
|
@@ -11154,7 +11172,7 @@ const vv = ({
|
|
|
11154
11172
|
value: s
|
|
11155
11173
|
});
|
|
11156
11174
|
};
|
|
11157
|
-
return /* @__PURE__ */ r.jsx(
|
|
11175
|
+
return /* @__PURE__ */ r.jsx(K, { defaultValue: 18, label: " ", hideControls: !0, value: e.value, onChange: n });
|
|
11158
11176
|
}, Cv = [{
|
|
11159
11177
|
label: "Static",
|
|
11160
11178
|
value: "static"
|
|
@@ -11473,7 +11491,7 @@ function Ev({
|
|
|
11473
11491
|
field: s
|
|
11474
11492
|
}) => (
|
|
11475
11493
|
// @ts-expect-error type of onChange
|
|
11476
|
-
/* @__PURE__ */ r.jsx(
|
|
11494
|
+
/* @__PURE__ */ r.jsx(K, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
|
|
11477
11495
|
) })
|
|
11478
11496
|
] })
|
|
11479
11497
|
] });
|
|
@@ -11542,7 +11560,7 @@ const Fv = ({
|
|
|
11542
11560
|
}, children: [
|
|
11543
11561
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
11544
11562
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
|
|
11545
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
11563
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
11546
11564
|
] }),
|
|
11547
11565
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(Fv, { control: e, index: p, remove: i }, h.id) }, h.id))
|
|
11548
11566
|
] })
|
|
@@ -11584,7 +11602,7 @@ const Pv = ({
|
|
|
11584
11602
|
const [s, {
|
|
11585
11603
|
setTrue: i,
|
|
11586
11604
|
setFalse: a
|
|
11587
|
-
}] =
|
|
11605
|
+
}] = Fe(), [o, l] = N(e);
|
|
11588
11606
|
O(() => {
|
|
11589
11607
|
l(e);
|
|
11590
11608
|
}, [e]);
|
|
@@ -11618,7 +11636,7 @@ const Pv = ({
|
|
|
11618
11636
|
flexGrow: 0
|
|
11619
11637
|
}, children: "Customize Label" }),
|
|
11620
11638
|
/* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
|
|
11621
|
-
/* @__PURE__ */ r.jsx(
|
|
11639
|
+
/* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
|
|
11622
11640
|
/* @__PURE__ */ r.jsx(Pv, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
11623
11641
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
11624
11642
|
/* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
|
|
@@ -11656,7 +11674,7 @@ function Nv({
|
|
|
11656
11674
|
field: n
|
|
11657
11675
|
}) => (
|
|
11658
11676
|
// @ts-expect-error type of onChange
|
|
11659
|
-
/* @__PURE__ */ r.jsx(
|
|
11677
|
+
/* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
|
|
11660
11678
|
width: "48%"
|
|
11661
11679
|
}, styles: {
|
|
11662
11680
|
rightSection: {
|
|
@@ -11718,7 +11736,7 @@ function qv({
|
|
|
11718
11736
|
field: n
|
|
11719
11737
|
}) => (
|
|
11720
11738
|
// @ts-expect-error type of onChange
|
|
11721
|
-
/* @__PURE__ */ r.jsx(
|
|
11739
|
+
/* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
|
|
11722
11740
|
width: "48%"
|
|
11723
11741
|
}, styles: {
|
|
11724
11742
|
rightSection: {
|
|
@@ -11869,7 +11887,7 @@ function Hv(e) {
|
|
|
11869
11887
|
}
|
|
11870
11888
|
};
|
|
11871
11889
|
}
|
|
11872
|
-
class
|
|
11890
|
+
class Kv extends _e {
|
|
11873
11891
|
constructor() {
|
|
11874
11892
|
super(...arguments);
|
|
11875
11893
|
V(this, "VERSION", 4);
|
|
@@ -11893,10 +11911,10 @@ class Uv extends _e {
|
|
|
11893
11911
|
}));
|
|
11894
11912
|
}
|
|
11895
11913
|
}
|
|
11896
|
-
const
|
|
11914
|
+
const Uv = {
|
|
11897
11915
|
displayName: "Heatmap",
|
|
11898
11916
|
displayGroup: "ECharts-based charts",
|
|
11899
|
-
migrator: new
|
|
11917
|
+
migrator: new Kv(),
|
|
11900
11918
|
name: "heatmap",
|
|
11901
11919
|
viewRender: Rv,
|
|
11902
11920
|
configRender: Wv,
|
|
@@ -11969,7 +11987,7 @@ const Qc = {
|
|
|
11969
11987
|
dataZoom: Gn,
|
|
11970
11988
|
markLine: Qc
|
|
11971
11989
|
};
|
|
11972
|
-
function
|
|
11990
|
+
function Ur(e) {
|
|
11973
11991
|
return Y(e).format({
|
|
11974
11992
|
output: "percent",
|
|
11975
11993
|
mantissa: 0
|
|
@@ -11978,7 +11996,7 @@ function Kr(e) {
|
|
|
11978
11996
|
function Jv(e) {
|
|
11979
11997
|
const t = e.value[1];
|
|
11980
11998
|
try {
|
|
11981
|
-
return
|
|
11999
|
+
return Ur(t);
|
|
11982
12000
|
} catch (n) {
|
|
11983
12001
|
return console.error(n), t;
|
|
11984
12002
|
}
|
|
@@ -11997,7 +12015,7 @@ function Zv(e) {
|
|
|
11997
12015
|
return {
|
|
11998
12016
|
bar: t,
|
|
11999
12017
|
line: Jv,
|
|
12000
|
-
lineValue:
|
|
12018
|
+
lineValue: Ur
|
|
12001
12019
|
};
|
|
12002
12020
|
}
|
|
12003
12021
|
function ew(e, t, n) {
|
|
@@ -12020,8 +12038,8 @@ function tw(e, t) {
|
|
|
12020
12038
|
if (n === -1)
|
|
12021
12039
|
return {};
|
|
12022
12040
|
const s = t[n], i = {
|
|
12023
|
-
x:
|
|
12024
|
-
y:
|
|
12041
|
+
x: Ur((n + 1) / t.length),
|
|
12042
|
+
y: Ur(s[1])
|
|
12025
12043
|
}, a = {
|
|
12026
12044
|
left: n + 1,
|
|
12027
12045
|
right: t.length - n - 1
|
|
@@ -12276,7 +12294,7 @@ function dw({
|
|
|
12276
12294
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
12277
12295
|
/* @__PURE__ */ r.jsx(g, { name: "bar.color", control: e, render: ({
|
|
12278
12296
|
field: n
|
|
12279
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12297
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
|
|
12280
12298
|
] }),
|
|
12281
12299
|
/* @__PURE__ */ r.jsxs(w, { children: [
|
|
12282
12300
|
/* @__PURE__ */ r.jsx(D, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
@@ -12320,7 +12338,7 @@ function hw({
|
|
|
12320
12338
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
12321
12339
|
/* @__PURE__ */ r.jsx(g, { name: "line.color", control: e, render: ({
|
|
12322
12340
|
field: n
|
|
12323
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12341
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
|
|
12324
12342
|
] })
|
|
12325
12343
|
] });
|
|
12326
12344
|
}
|
|
@@ -12363,7 +12381,7 @@ function mw({
|
|
|
12363
12381
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
12364
12382
|
/* @__PURE__ */ r.jsx(g, { name: "markLine.color", control: e, render: ({
|
|
12365
12383
|
field: n
|
|
12366
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12384
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
|
|
12367
12385
|
] }),
|
|
12368
12386
|
/* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
|
|
12369
12387
|
/* @__PURE__ */ r.jsx(g, { name: "markLine.label_template", control: e, render: ({
|
|
@@ -12398,7 +12416,7 @@ function fw({
|
|
|
12398
12416
|
field: n
|
|
12399
12417
|
}) => (
|
|
12400
12418
|
// @ts-expect-error type of onChange
|
|
12401
|
-
/* @__PURE__ */ r.jsx(
|
|
12419
|
+
/* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
|
|
12402
12420
|
width: "48%"
|
|
12403
12421
|
}, styles: {
|
|
12404
12422
|
rightSection: {
|
|
@@ -12816,7 +12834,7 @@ function Lw(e, t, n) {
|
|
|
12816
12834
|
series: Mw(e, t, n)
|
|
12817
12835
|
};
|
|
12818
12836
|
}
|
|
12819
|
-
const
|
|
12837
|
+
const Kc = {
|
|
12820
12838
|
id: "builtin:echarts:click-pie-chart:series",
|
|
12821
12839
|
displayName: "Click Pie Series",
|
|
12822
12840
|
nameRender: Rw,
|
|
@@ -12866,7 +12884,7 @@ function Ew({
|
|
|
12866
12884
|
height: s,
|
|
12867
12885
|
interactionManager: i
|
|
12868
12886
|
}) {
|
|
12869
|
-
const a = Tn(t, e.label_field), o = ft(i.triggerManager,
|
|
12887
|
+
const a = Tn(t, e.label_field), o = ft(i.triggerManager, Kc.id), l = L.useCallback((u) => {
|
|
12870
12888
|
const h = _.get(a, u.name, {
|
|
12871
12889
|
error: "rowData is not found"
|
|
12872
12890
|
});
|
|
@@ -13006,7 +13024,7 @@ const Nw = {
|
|
|
13006
13024
|
config: Pe(ra)
|
|
13007
13025
|
};
|
|
13008
13026
|
},
|
|
13009
|
-
triggers: [
|
|
13027
|
+
triggers: [Kc]
|
|
13010
13028
|
};
|
|
13011
13029
|
function Bw(e) {
|
|
13012
13030
|
return /* @__PURE__ */ r.jsx(r.Fragment, {});
|
|
@@ -13014,7 +13032,7 @@ function Bw(e) {
|
|
|
13014
13032
|
function qw(e) {
|
|
13015
13033
|
return /* @__PURE__ */ r.jsx(j, { children: "Click heat block" });
|
|
13016
13034
|
}
|
|
13017
|
-
const
|
|
13035
|
+
const Uc = {
|
|
13018
13036
|
id: "builtin:echarts:click-radar-chart:series",
|
|
13019
13037
|
displayName: "Click radar chart series",
|
|
13020
13038
|
nameRender: qw,
|
|
@@ -13151,7 +13169,7 @@ function Qw(e, t) {
|
|
|
13151
13169
|
function Hw(e, t) {
|
|
13152
13170
|
return [...Gw(e, t), ...Qw(e, t)];
|
|
13153
13171
|
}
|
|
13154
|
-
function
|
|
13172
|
+
function Kw(e) {
|
|
13155
13173
|
return ({
|
|
13156
13174
|
name: t,
|
|
13157
13175
|
marker: n,
|
|
@@ -13194,7 +13212,7 @@ function Uw(e) {
|
|
|
13194
13212
|
`;
|
|
13195
13213
|
};
|
|
13196
13214
|
}
|
|
13197
|
-
const
|
|
13215
|
+
const Uw = {
|
|
13198
13216
|
legend: {
|
|
13199
13217
|
show: !0,
|
|
13200
13218
|
bottom: 0,
|
|
@@ -13227,7 +13245,7 @@ function Xw(e, t) {
|
|
|
13227
13245
|
},
|
|
13228
13246
|
tooltip: ge.getTooltip({
|
|
13229
13247
|
backgroundColor: "rgba(255,255,255,0.6)",
|
|
13230
|
-
formatter:
|
|
13248
|
+
formatter: Kw(e)
|
|
13231
13249
|
}),
|
|
13232
13250
|
legend: {
|
|
13233
13251
|
show: !0,
|
|
@@ -13238,7 +13256,7 @@ function Xw(e, t) {
|
|
|
13238
13256
|
series: Hw(t, e),
|
|
13239
13257
|
color: Yw
|
|
13240
13258
|
};
|
|
13241
|
-
return _.merge({},
|
|
13259
|
+
return _.merge({}, Uw, o);
|
|
13242
13260
|
}
|
|
13243
13261
|
ae.use([$h, ot, lt, ct, Xe]);
|
|
13244
13262
|
function Jw({
|
|
@@ -13264,7 +13282,7 @@ function Jw({
|
|
|
13264
13282
|
...x,
|
|
13265
13283
|
...y
|
|
13266
13284
|
};
|
|
13267
|
-
}, [t, e.series_name_key, e.additional_series]), l = ft(i.triggerManager,
|
|
13285
|
+
}, [t, e.series_name_key, e.additional_series]), l = ft(i.triggerManager, Uc.id), c = qe((h) => {
|
|
13268
13286
|
const p = _.get(o, h.name, {
|
|
13269
13287
|
error: "rowData is not found"
|
|
13270
13288
|
});
|
|
@@ -13510,10 +13528,10 @@ function s0({
|
|
|
13510
13528
|
/* @__PURE__ */ r.jsx(m.Panel, { value: "style", p: "md", children: /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
13511
13529
|
/* @__PURE__ */ r.jsx(g, { name: "background.enabled", control: i, render: ({
|
|
13512
13530
|
field: p
|
|
13513
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
13531
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Show background", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) }),
|
|
13514
13532
|
/* @__PURE__ */ r.jsx(g, { name: "label.enabled", control: i, render: ({
|
|
13515
13533
|
field: p
|
|
13516
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
13534
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Show value label", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) })
|
|
13517
13535
|
] }) }),
|
|
13518
13536
|
/* @__PURE__ */ r.jsx(m.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ r.jsx(t0, { control: i, watch: o }) })
|
|
13519
13537
|
] })
|
|
@@ -13683,7 +13701,7 @@ const h0 = {
|
|
|
13683
13701
|
version: 7,
|
|
13684
13702
|
config: gs
|
|
13685
13703
|
}),
|
|
13686
|
-
triggers: [
|
|
13704
|
+
triggers: [Uc]
|
|
13687
13705
|
};
|
|
13688
13706
|
function p0(e, t) {
|
|
13689
13707
|
const {
|
|
@@ -14039,7 +14057,7 @@ function zo({
|
|
|
14039
14057
|
rSquared: n,
|
|
14040
14058
|
adjustedRSquared: s
|
|
14041
14059
|
} = e;
|
|
14042
|
-
return t ? /* @__PURE__ */ r.jsx(
|
|
14060
|
+
return t ? /* @__PURE__ */ r.jsx(Ue, { fontSize: 14, sx: T0, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
14043
14061
|
/* @__PURE__ */ r.jsx("tr", { children: /* @__PURE__ */ r.jsx("td", { colSpan: 2, children: /* @__PURE__ */ r.jsx(j, { align: "center", children: t }) }) }),
|
|
14044
14062
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
14045
14063
|
/* @__PURE__ */ r.jsx("td", { children: "R-Sq" }),
|
|
@@ -14076,9 +14094,9 @@ function D0({
|
|
|
14076
14094
|
conf: e,
|
|
14077
14095
|
queryData: t
|
|
14078
14096
|
}) {
|
|
14079
|
-
return /* @__PURE__ */ r.jsxs(
|
|
14080
|
-
/* @__PURE__ */ r.jsx(
|
|
14081
|
-
/* @__PURE__ */ r.jsx(
|
|
14097
|
+
return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
14098
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(_n, { size: 14 }), children: "Regression Info" }) }),
|
|
14099
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(I0, { conf: e, queryData: t }) }) })
|
|
14082
14100
|
] });
|
|
14083
14101
|
}
|
|
14084
14102
|
function z0(e) {
|
|
@@ -14211,7 +14229,7 @@ function A0({
|
|
|
14211
14229
|
control: e,
|
|
14212
14230
|
render: ({
|
|
14213
14231
|
field: i
|
|
14214
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
14232
|
+
}) => /* @__PURE__ */ r.jsx(K, { label: "次", sx: {
|
|
14215
14233
|
flex: 1
|
|
14216
14234
|
}, ...i })
|
|
14217
14235
|
}
|
|
@@ -14221,7 +14239,7 @@ function A0({
|
|
|
14221
14239
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "颜色" }),
|
|
14222
14240
|
/* @__PURE__ */ r.jsx(g, { name: "regression.plot.color", control: e, render: ({
|
|
14223
14241
|
field: i
|
|
14224
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
14242
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...i }) })
|
|
14225
14243
|
] })
|
|
14226
14244
|
] });
|
|
14227
14245
|
}
|
|
@@ -14252,7 +14270,7 @@ const R0 = ({
|
|
|
14252
14270
|
const [i, {
|
|
14253
14271
|
setTrue: a,
|
|
14254
14272
|
setFalse: o
|
|
14255
|
-
}] =
|
|
14273
|
+
}] = Fe(), [l, c] = N(e);
|
|
14256
14274
|
O(() => {
|
|
14257
14275
|
c(e);
|
|
14258
14276
|
}, [e]);
|
|
@@ -14286,7 +14304,7 @@ const R0 = ({
|
|
|
14286
14304
|
flexGrow: 0
|
|
14287
14305
|
}, children: n }),
|
|
14288
14306
|
/* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(w, { children: [
|
|
14289
|
-
/* @__PURE__ */ r.jsx(
|
|
14307
|
+
/* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (y) => d(y.currentTarget.checked) }),
|
|
14290
14308
|
/* @__PURE__ */ r.jsx(R0, { value: l.func_content, onChange: p, disabled: !l.enabled }),
|
|
14291
14309
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
14292
14310
|
/* @__PURE__ */ r.jsx(C, { onClick: x, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
|
|
@@ -14325,7 +14343,7 @@ function E0({
|
|
|
14325
14343
|
field: n
|
|
14326
14344
|
}) => (
|
|
14327
14345
|
// @ts-expect-error type of onChange
|
|
14328
|
-
/* @__PURE__ */ r.jsx(
|
|
14346
|
+
/* @__PURE__ */ r.jsx(K, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
|
|
14329
14347
|
width: "48%"
|
|
14330
14348
|
}, styles: {
|
|
14331
14349
|
rightSection: {
|
|
@@ -14536,7 +14554,7 @@ function G0(e, t, n, s) {
|
|
|
14536
14554
|
const Q0 = k(({
|
|
14537
14555
|
context: e
|
|
14538
14556
|
}) => {
|
|
14539
|
-
const t =
|
|
14557
|
+
const t = Oe(), {
|
|
14540
14558
|
value: n
|
|
14541
14559
|
} = Q(e.instanceData, "config"), {
|
|
14542
14560
|
variables: s,
|
|
@@ -14651,7 +14669,7 @@ const ia = de(({
|
|
|
14651
14669
|
] })
|
|
14652
14670
|
] }) : null;
|
|
14653
14671
|
});
|
|
14654
|
-
function
|
|
14672
|
+
function K0({
|
|
14655
14673
|
context: e
|
|
14656
14674
|
}) {
|
|
14657
14675
|
const {
|
|
@@ -14699,7 +14717,7 @@ function U0({
|
|
|
14699
14717
|
) })
|
|
14700
14718
|
] }) });
|
|
14701
14719
|
}
|
|
14702
|
-
class
|
|
14720
|
+
class U0 extends _e {
|
|
14703
14721
|
constructor() {
|
|
14704
14722
|
super(...arguments);
|
|
14705
14723
|
V(this, "VERSION", 1);
|
|
@@ -14717,10 +14735,10 @@ class K0 extends _e {
|
|
|
14717
14735
|
const Y0 = {
|
|
14718
14736
|
displayName: "Rich Text",
|
|
14719
14737
|
displayGroup: "Others",
|
|
14720
|
-
migrator: new
|
|
14738
|
+
migrator: new U0(),
|
|
14721
14739
|
name: "richText",
|
|
14722
14740
|
viewRender: Q0,
|
|
14723
|
-
configRender:
|
|
14741
|
+
configRender: K0,
|
|
14724
14742
|
createConfig() {
|
|
14725
14743
|
return {
|
|
14726
14744
|
version: 1,
|
|
@@ -15313,11 +15331,11 @@ const g_ = de(({
|
|
|
15313
15331
|
/* @__PURE__ */ r.jsx(D, { mb: -15, variant: "dashed", label: "Style", labelPosition: "right" }),
|
|
15314
15332
|
/* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
|
|
15315
15333
|
/* @__PURE__ */ r.jsx(j, { size: 14, children: "Background Color" }),
|
|
15316
|
-
/* @__PURE__ */ r.jsx(
|
|
15334
|
+
/* @__PURE__ */ r.jsx(Ke, { value: e.itemStyle.color, onChange: (l) => o("itemStyle.color", l) })
|
|
15317
15335
|
] }),
|
|
15318
15336
|
/* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
|
|
15319
15337
|
/* @__PURE__ */ r.jsx(j, { size: 14, children: "Text Color" }),
|
|
15320
|
-
/* @__PURE__ */ r.jsx(
|
|
15338
|
+
/* @__PURE__ */ r.jsx(Ke, { value: e.label.color, onChange: (l) => o("label.color", l) })
|
|
15321
15339
|
] })
|
|
15322
15340
|
] });
|
|
15323
15341
|
});
|
|
@@ -15385,7 +15403,7 @@ function y_({
|
|
|
15385
15403
|
}, children: [
|
|
15386
15404
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
15387
15405
|
l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
|
|
15388
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
15406
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
15389
15407
|
] }),
|
|
15390
15408
|
l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(g, { name: `reference_areas.${x}`, control: e, render: ({
|
|
15391
15409
|
field: y
|
|
@@ -15497,7 +15515,7 @@ function w_({
|
|
|
15497
15515
|
control: e,
|
|
15498
15516
|
render: ({
|
|
15499
15517
|
field: l
|
|
15500
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15518
|
+
}) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
|
|
15501
15519
|
flexGrow: 1
|
|
15502
15520
|
}, ...l })
|
|
15503
15521
|
}
|
|
@@ -15507,7 +15525,7 @@ function w_({
|
|
|
15507
15525
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
15508
15526
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
15509
15527
|
field: l
|
|
15510
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15528
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
|
|
15511
15529
|
] }),
|
|
15512
15530
|
/* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
15513
15531
|
top: 15,
|
|
@@ -15565,7 +15583,7 @@ function __({
|
|
|
15565
15583
|
}, children: [
|
|
15566
15584
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
15567
15585
|
l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
|
|
15568
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
15586
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
15569
15587
|
] }),
|
|
15570
15588
|
l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(w_, { control: e, index: x, remove: a, watch: t, variableOptions: d, yAxisOptions: h }) }, p.id))
|
|
15571
15589
|
] });
|
|
@@ -15589,7 +15607,7 @@ const S_ = ({
|
|
|
15589
15607
|
const [n, {
|
|
15590
15608
|
setTrue: s,
|
|
15591
15609
|
setFalse: i
|
|
15592
|
-
}] =
|
|
15610
|
+
}] = Fe(), [a, o] = N(e), l = () => {
|
|
15593
15611
|
i();
|
|
15594
15612
|
const {
|
|
15595
15613
|
type: h,
|
|
@@ -15714,7 +15732,7 @@ const S_ = ({
|
|
|
15714
15732
|
const [n, {
|
|
15715
15733
|
setTrue: s,
|
|
15716
15734
|
setFalse: i
|
|
15717
|
-
}] =
|
|
15735
|
+
}] = Fe(), [a, o] = N(e), l = () => {
|
|
15718
15736
|
i();
|
|
15719
15737
|
const {
|
|
15720
15738
|
type: h,
|
|
@@ -15767,7 +15785,7 @@ const S_ = ({
|
|
|
15767
15785
|
size: s
|
|
15768
15786
|
});
|
|
15769
15787
|
};
|
|
15770
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(
|
|
15788
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(K, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
|
|
15771
15789
|
}, E_ = [{
|
|
15772
15790
|
label: "Static",
|
|
15773
15791
|
value: "static"
|
|
@@ -15954,7 +15972,7 @@ const V_ = ({
|
|
|
15954
15972
|
}, children: [
|
|
15955
15973
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
15956
15974
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
|
|
15957
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
15975
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
15958
15976
|
] }),
|
|
15959
15977
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(V_, { control: e, index: p, remove: i }, h.id) }, h.id))
|
|
15960
15978
|
] })
|
|
@@ -16013,7 +16031,7 @@ const W_ = ({
|
|
|
16013
16031
|
const [s, {
|
|
16014
16032
|
setTrue: i,
|
|
16015
16033
|
setFalse: a
|
|
16016
|
-
}] =
|
|
16034
|
+
}] = Fe(), [o, l] = N(e);
|
|
16017
16035
|
O(() => {
|
|
16018
16036
|
l(e);
|
|
16019
16037
|
}, [e]);
|
|
@@ -16047,7 +16065,7 @@ const W_ = ({
|
|
|
16047
16065
|
flexGrow: 0
|
|
16048
16066
|
}, children: "Customize Label" }),
|
|
16049
16067
|
/* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
|
|
16050
|
-
/* @__PURE__ */ r.jsx(
|
|
16068
|
+
/* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
|
|
16051
16069
|
/* @__PURE__ */ r.jsx(W_, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
16052
16070
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
16053
16071
|
/* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
|
|
@@ -16082,7 +16100,7 @@ function Q_({
|
|
|
16082
16100
|
field: n
|
|
16083
16101
|
}) => (
|
|
16084
16102
|
// @ts-expect-error type of onChange
|
|
16085
|
-
/* @__PURE__ */ r.jsx(
|
|
16103
|
+
/* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
|
|
16086
16104
|
width: "48%"
|
|
16087
16105
|
}, styles: {
|
|
16088
16106
|
rightSection: {
|
|
@@ -16107,14 +16125,14 @@ const H_ = [{
|
|
|
16107
16125
|
}, {
|
|
16108
16126
|
label: "right",
|
|
16109
16127
|
value: "right"
|
|
16110
|
-
}],
|
|
16128
|
+
}], K_ = [{
|
|
16111
16129
|
label: "left",
|
|
16112
16130
|
value: "left"
|
|
16113
16131
|
}, {
|
|
16114
16132
|
label: "right",
|
|
16115
16133
|
value: "right"
|
|
16116
16134
|
}];
|
|
16117
|
-
function
|
|
16135
|
+
function U_({
|
|
16118
16136
|
control: e,
|
|
16119
16137
|
index: t,
|
|
16120
16138
|
remove: n
|
|
@@ -16143,7 +16161,7 @@ function K_({
|
|
|
16143
16161
|
field: s
|
|
16144
16162
|
}) => (
|
|
16145
16163
|
// @ts-expect-error type of onChange
|
|
16146
|
-
/* @__PURE__ */ r.jsx(A, { label: "Position", required: !0, data:
|
|
16164
|
+
/* @__PURE__ */ r.jsx(A, { label: "Position", required: !0, data: K_, sx: {
|
|
16147
16165
|
flex: 1
|
|
16148
16166
|
}, ...s })
|
|
16149
16167
|
) }) }),
|
|
@@ -16201,9 +16219,9 @@ function Y_({
|
|
|
16201
16219
|
}, children: [
|
|
16202
16220
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
16203
16221
|
o.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
|
|
16204
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
16222
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
16205
16223
|
] }),
|
|
16206
|
-
o.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(
|
|
16224
|
+
o.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(U_, { control: e, index: d, remove: i }) }, c.id))
|
|
16207
16225
|
] });
|
|
16208
16226
|
}
|
|
16209
16227
|
function X_(e) {
|
|
@@ -16584,7 +16602,7 @@ const pS = {
|
|
|
16584
16602
|
}, mS = k(({
|
|
16585
16603
|
context: e
|
|
16586
16604
|
}) => {
|
|
16587
|
-
const t =
|
|
16605
|
+
const t = Oe(), {
|
|
16588
16606
|
value: n = oa
|
|
16589
16607
|
} = Q(e.instanceData, "config"), {
|
|
16590
16608
|
variables: s
|
|
@@ -16913,7 +16931,7 @@ const MS = [{
|
|
|
16913
16931
|
field: s
|
|
16914
16932
|
}) => (
|
|
16915
16933
|
// @ts-expect-error type of onChange
|
|
16916
|
-
/* @__PURE__ */ r.jsx(
|
|
16934
|
+
/* @__PURE__ */ r.jsx(K, { label: "Hide label when its percentage is less than...", precision: 4, step: 5e-4, min: 0, max: 1, ...s })
|
|
16917
16935
|
) }),
|
|
16918
16936
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
16919
16937
|
/* @__PURE__ */ r.jsx(
|
|
@@ -16948,7 +16966,7 @@ const MS = [{
|
|
|
16948
16966
|
control: e,
|
|
16949
16967
|
render: ({
|
|
16950
16968
|
field: s
|
|
16951
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16969
|
+
}) => /* @__PURE__ */ r.jsx(K, { label: "Padding", min: 0, hideControls: !0, ...s })
|
|
16952
16970
|
}
|
|
16953
16971
|
)
|
|
16954
16972
|
] }),
|
|
@@ -17006,7 +17024,7 @@ const MS = [{
|
|
|
17006
17024
|
}, children: [
|
|
17007
17025
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
17008
17026
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: p }, h.id)),
|
|
17009
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
17027
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
17010
17028
|
] }),
|
|
17011
17029
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(AS, { control: e, index: p, remove: i }, h.id) }, h.id))
|
|
17012
17030
|
] })
|
|
@@ -17265,7 +17283,7 @@ const od = ["function text({ value }) {", " // your code goes here", " ret
|
|
|
17265
17283
|
function HS(e) {
|
|
17266
17284
|
return e ? rr(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
|
|
17267
17285
|
}
|
|
17268
|
-
function
|
|
17286
|
+
function KS(e) {
|
|
17269
17287
|
const t = e.tableCellContext.bgColor;
|
|
17270
17288
|
return {
|
|
17271
17289
|
backgroundColor: t,
|
|
@@ -17278,10 +17296,10 @@ function Vn(e) {
|
|
|
17278
17296
|
align: e.align
|
|
17279
17297
|
});
|
|
17280
17298
|
return /* @__PURE__ */ r.jsx("div", { className: n.classes.content, style: {
|
|
17281
|
-
...
|
|
17299
|
+
...KS(e)
|
|
17282
17300
|
}, children: /* @__PURE__ */ r.jsx(j, { className: "table-cell-text", onClick: e.tableCellContext.getClickHandler(), children: /* @__PURE__ */ r.jsx("span", { title: e.children, children: e.children }) }) });
|
|
17283
17301
|
}
|
|
17284
|
-
function
|
|
17302
|
+
function US(e) {
|
|
17285
17303
|
return /* @__PURE__ */ r.jsx(Vn, { ...e, children: e.value });
|
|
17286
17304
|
}
|
|
17287
17305
|
function YS(e) {
|
|
@@ -17318,7 +17336,7 @@ function ZS(e) {
|
|
|
17318
17336
|
function eC(e) {
|
|
17319
17337
|
switch (e.type) {
|
|
17320
17338
|
case jt.string:
|
|
17321
|
-
return /* @__PURE__ */ r.jsx(
|
|
17339
|
+
return /* @__PURE__ */ r.jsx(US, { ...e });
|
|
17322
17340
|
case jt.eloc:
|
|
17323
17341
|
return /* @__PURE__ */ r.jsx(YS, { ...e });
|
|
17324
17342
|
case jt.number:
|
|
@@ -17519,23 +17537,23 @@ function cC({
|
|
|
17519
17537
|
} = s, {
|
|
17520
17538
|
classes: u,
|
|
17521
17539
|
cx: h
|
|
17522
|
-
} = WS(), p = L.useMemo(() => l ? !Array.isArray(e) || e.length === 0 ? [] : Object.keys(e[0]).map((
|
|
17523
|
-
id:
|
|
17524
|
-
label:
|
|
17525
|
-
value_field:
|
|
17540
|
+
} = WS(), p = L.useMemo(() => l ? !Array.isArray(e) || e.length === 0 ? [] : Object.keys(e[0]).map((Le) => ({
|
|
17541
|
+
id: Le,
|
|
17542
|
+
label: Le,
|
|
17543
|
+
value_field: Le,
|
|
17526
17544
|
value_type: jt.string,
|
|
17527
17545
|
align: "left",
|
|
17528
17546
|
width: "",
|
|
17529
17547
|
cellBackgroundColor: ""
|
|
17530
17548
|
})) : c, [l, c, e]), x = lC({
|
|
17531
|
-
getColIndex: qe((
|
|
17549
|
+
getColIndex: qe((Le) => p.indexOf(Le.column.columnDef.meta), [p]),
|
|
17532
17550
|
vizManager: i.vizManager,
|
|
17533
17551
|
instance: a
|
|
17534
17552
|
}), y = T(() => {
|
|
17535
|
-
const
|
|
17553
|
+
const Le = Pl();
|
|
17536
17554
|
return p.map((yt) => {
|
|
17537
17555
|
const ks = am(yt.value_field);
|
|
17538
|
-
return
|
|
17556
|
+
return Le.accessor(ks.columnKey, {
|
|
17539
17557
|
cell: (Qn) => /* @__PURE__ */ r.jsx(eC, { tableCellContext: x(Qn.cell), value: Qn.getValue(), type: yt.value_type, ...yt }),
|
|
17540
17558
|
header: yt.label,
|
|
17541
17559
|
enableSorting: !0,
|
|
@@ -17555,7 +17573,7 @@ function cC({
|
|
|
17555
17573
|
getSortedRowModel: Lp()
|
|
17556
17574
|
}), {
|
|
17557
17575
|
rows: B
|
|
17558
|
-
} = F.getRowModel(), re = L.useRef(null), be = B.length, ne = be > 0, Se = ne ? n - 22 : n,
|
|
17576
|
+
} = F.getRowModel(), re = L.useRef(null), be = B.length, ne = be > 0, Se = ne ? n - 22 : n, Ie = ne ? 22 : 0;
|
|
17559
17577
|
return il("VizTableComponent", {
|
|
17560
17578
|
queryData: e,
|
|
17561
17579
|
width: t,
|
|
@@ -17582,15 +17600,15 @@ function cC({
|
|
|
17582
17600
|
"Total: ",
|
|
17583
17601
|
be
|
|
17584
17602
|
] }) }),
|
|
17585
|
-
/* @__PURE__ */ r.jsxs(
|
|
17603
|
+
/* @__PURE__ */ r.jsxs(Ue, { sx: {
|
|
17586
17604
|
...GS,
|
|
17587
17605
|
maxHeight: Se
|
|
17588
17606
|
}, ...d, striped: s.striped, children: [
|
|
17589
17607
|
/* @__PURE__ */ r.jsx("thead", { className: u.thead, style: {
|
|
17590
|
-
top:
|
|
17591
|
-
}, children: F.getHeaderGroups().map((
|
|
17608
|
+
top: Ie
|
|
17609
|
+
}, children: F.getHeaderGroups().map((Le) => /* @__PURE__ */ r.jsx("tr", { children: Le.headers.map((on) => /* @__PURE__ */ r.jsx("th", { style: {
|
|
17592
17610
|
width: on.getSize()
|
|
17593
|
-
}, children: /* @__PURE__ */ r.jsx(BS, { header: on, cx: h }) }, on.id)) },
|
|
17611
|
+
}, children: /* @__PURE__ */ r.jsx(BS, { header: on, cx: h }) }, on.id)) }, Le.id)) }),
|
|
17594
17612
|
/* @__PURE__ */ r.jsx(tC, { tableContainerRef: re, rows: B })
|
|
17595
17613
|
] })
|
|
17596
17614
|
] });
|
|
@@ -17669,7 +17687,7 @@ class pC {
|
|
|
17669
17687
|
steps: al
|
|
17670
17688
|
}, {
|
|
17671
17689
|
deep: !1
|
|
17672
|
-
}), it(() =>
|
|
17690
|
+
}), it(() => Ut(this.steps), () => {
|
|
17673
17691
|
this.notifyStepChange();
|
|
17674
17692
|
});
|
|
17675
17693
|
}
|
|
@@ -17705,7 +17723,7 @@ function xC(e) {
|
|
|
17705
17723
|
} = ud(), [o, l] = N(i), [c, {
|
|
17706
17724
|
setTrue: d,
|
|
17707
17725
|
setFalse: u
|
|
17708
|
-
}] =
|
|
17726
|
+
}] = Fe(!1), h = s % 2 === 1, p = h && i != null, x = !h && i != null, y = `map ${i} to color ${s}`, S = () => {
|
|
17709
17727
|
l(i), u();
|
|
17710
17728
|
}, M = () => {
|
|
17711
17729
|
u(), t == null || t(o);
|
|
@@ -17722,7 +17740,7 @@ function xC(e) {
|
|
|
17722
17740
|
backgroundColor: n
|
|
17723
17741
|
} }) }),
|
|
17724
17742
|
/* @__PURE__ */ r.jsx(Fn.Dropdown, { children: /* @__PURE__ */ r.jsxs(w, { children: [
|
|
17725
|
-
/* @__PURE__ */ r.jsx(
|
|
17743
|
+
/* @__PURE__ */ r.jsx(K, { size: "xs", label: "Map a value to this color", value: o, onChange: l }),
|
|
17726
17744
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
17727
17745
|
/* @__PURE__ */ r.jsx(C, { variant: "subtle", size: "xs", onClick: S, children: "Cancel" }),
|
|
17728
17746
|
/* @__PURE__ */ r.jsx(C, { "data-testid": "palette-item-ok", size: "xs", onClick: M, children: "OK" })
|
|
@@ -17754,7 +17772,7 @@ const mC = k(({
|
|
|
17754
17772
|
} = e, i = s.getColorInterpolations(), [a, o] = N(t), l = s.decodeInterpolation(a.interpolation) || i[0], [c, {
|
|
17755
17773
|
setTrue: d,
|
|
17756
17774
|
setFalse: u
|
|
17757
|
-
}] =
|
|
17775
|
+
}] = Fe(), h = i.map((M) => ({
|
|
17758
17776
|
label: M.displayName,
|
|
17759
17777
|
value: s.encodeColor(M),
|
|
17760
17778
|
group: M.category
|
|
@@ -17766,7 +17784,7 @@ const mC = k(({
|
|
|
17766
17784
|
}));
|
|
17767
17785
|
}
|
|
17768
17786
|
const x = () => {
|
|
17769
|
-
u(), n == null || n(
|
|
17787
|
+
u(), n == null || n(Ut(a));
|
|
17770
17788
|
};
|
|
17771
17789
|
function y(M) {
|
|
17772
17790
|
o((F) => ({
|
|
@@ -17826,7 +17844,7 @@ const wC = de((e, t) => {
|
|
|
17826
17844
|
};
|
|
17827
17845
|
return /* @__PURE__ */ r.jsxs(w, { align: "stretch", children: [
|
|
17828
17846
|
/* @__PURE__ */ r.jsx(A, { label: "Cell background", value: s || "none", onChange: h, data: bC }),
|
|
17829
|
-
s === "static" && /* @__PURE__ */ r.jsx(
|
|
17847
|
+
s === "static" && /* @__PURE__ */ r.jsx(Ke, { value: a, onChange: p }),
|
|
17830
17848
|
s === "interpolation" && /* @__PURE__ */ r.jsx(gC, { colorManager: n, value: c, onChange: x })
|
|
17831
17849
|
] });
|
|
17832
17850
|
}), _C = {
|
|
@@ -17846,7 +17864,7 @@ const wC = de((e, t) => {
|
|
|
17846
17864
|
const [s, {
|
|
17847
17865
|
setTrue: i,
|
|
17848
17866
|
setFalse: a
|
|
17849
|
-
}] =
|
|
17867
|
+
}] = Fe(), [o, l] = N(e), c = () => {
|
|
17850
17868
|
a(), t(o);
|
|
17851
17869
|
}, d = () => {
|
|
17852
17870
|
a(), l(e);
|
|
@@ -17918,11 +17936,11 @@ const wC = de((e, t) => {
|
|
|
17918
17936
|
] }),
|
|
17919
17937
|
/* @__PURE__ */ r.jsx(D, { mb: -10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
17920
17938
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
17921
|
-
/* @__PURE__ */ r.jsx(
|
|
17939
|
+
/* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 }),
|
|
17922
17940
|
/* @__PURE__ */ r.jsx(g, { name: `columns.${t}.width`, control: e, render: ({
|
|
17923
17941
|
field: o
|
|
17924
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
17925
|
-
/* @__PURE__ */ r.jsx(
|
|
17942
|
+
}) => /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), ...o }) }),
|
|
17943
|
+
/* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Max Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 })
|
|
17926
17944
|
] }),
|
|
17927
17945
|
/* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(
|
|
17928
17946
|
g,
|
|
@@ -17981,7 +17999,7 @@ const wC = de((e, t) => {
|
|
|
17981
17999
|
}, children: [
|
|
17982
18000
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
17983
18001
|
n.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
|
|
17984
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: o, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
18002
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: o, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
17985
18003
|
] }),
|
|
17986
18004
|
n.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(IC, { control: e, watch: t, index: d, column: c, remove: i }) }, c.id))
|
|
17987
18005
|
] }) })
|
|
@@ -18216,7 +18234,7 @@ const ci = {
|
|
|
18216
18234
|
}, OC = k(({
|
|
18217
18235
|
context: e
|
|
18218
18236
|
}) => {
|
|
18219
|
-
const t =
|
|
18237
|
+
const t = Oe(), {
|
|
18220
18238
|
value: n = da
|
|
18221
18239
|
} = Q(e.instanceData, "config"), {
|
|
18222
18240
|
variables: s
|
|
@@ -18289,7 +18307,7 @@ const xd = L.forwardRef($C), PC = ({
|
|
|
18289
18307
|
const [s, {
|
|
18290
18308
|
setTrue: i,
|
|
18291
18309
|
setFalse: a
|
|
18292
|
-
}] =
|
|
18310
|
+
}] = Fe(), [o, l] = N(e), c = () => {
|
|
18293
18311
|
a(), t(o);
|
|
18294
18312
|
}, d = () => {
|
|
18295
18313
|
a(), l(e);
|
|
@@ -18490,7 +18508,7 @@ const HC = ({
|
|
|
18490
18508
|
fontSize: "14px",
|
|
18491
18509
|
lineHeight: "32px",
|
|
18492
18510
|
color: "#3D3E45"
|
|
18493
|
-
} }) }),
|
|
18511
|
+
} }) }), KC = ({
|
|
18494
18512
|
error: e,
|
|
18495
18513
|
width: t,
|
|
18496
18514
|
height: n
|
|
@@ -18507,7 +18525,7 @@ const HC = ({
|
|
|
18507
18525
|
/* @__PURE__ */ r.jsx(Eo, { message: s })
|
|
18508
18526
|
] }) });
|
|
18509
18527
|
};
|
|
18510
|
-
function
|
|
18528
|
+
function UC({
|
|
18511
18529
|
context: e
|
|
18512
18530
|
}) {
|
|
18513
18531
|
const {
|
|
@@ -18528,7 +18546,7 @@ function KC({
|
|
|
18528
18546
|
return !s || !i || !n ? null : c ? /* @__PURE__ */ r.jsx(z, { sx: {
|
|
18529
18547
|
position: "relative",
|
|
18530
18548
|
height: i
|
|
18531
|
-
}, children: /* @__PURE__ */ r.jsx(vn, { visible: !0 }) }) : l ? /* @__PURE__ */ r.jsx(z, { sx: di, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r.jsx(
|
|
18549
|
+
}, children: /* @__PURE__ */ r.jsx(vn, { visible: !0 }) }) : l ? /* @__PURE__ */ r.jsx(z, { sx: di, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r.jsx(KC, { error: l, width: s, height: i }) }) : !o || !Array.isArray(o.replies) || o.replies.length === 0 ? null : /* @__PURE__ */ r.jsx(z, { sx: di, "data-enable-scrollbar": !0, children: o.replies.map((d, u) => /* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: {
|
|
18532
18550
|
__html: d.interpretation.html
|
|
18533
18551
|
} }, u)) });
|
|
18534
18552
|
}
|
|
@@ -18591,7 +18609,7 @@ const JC = {
|
|
|
18591
18609
|
displayGroup: "Merico suite",
|
|
18592
18610
|
migrator: new XC(),
|
|
18593
18611
|
name: "mericoGQM",
|
|
18594
|
-
viewRender:
|
|
18612
|
+
viewRender: UC,
|
|
18595
18613
|
configRender: YC,
|
|
18596
18614
|
createConfig() {
|
|
18597
18615
|
return {
|
|
@@ -19009,7 +19027,7 @@ const b1 = ({
|
|
|
19009
19027
|
}, children: [
|
|
19010
19028
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
19011
19029
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
|
|
19012
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
19030
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
19013
19031
|
] }),
|
|
19014
19032
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(b1, { control: e, index: p, remove: i }, h.id) }, h.id))
|
|
19015
19033
|
] })
|
|
@@ -19595,7 +19613,7 @@ function H1(e, t, n) {
|
|
|
19595
19613
|
};
|
|
19596
19614
|
}
|
|
19597
19615
|
ae.use([Et, Nn, Bn, rs, ot, lt, ct, Xe, ts, ji]);
|
|
19598
|
-
function
|
|
19616
|
+
function K1({
|
|
19599
19617
|
conf: e,
|
|
19600
19618
|
data: t,
|
|
19601
19619
|
width: n,
|
|
@@ -19621,7 +19639,7 @@ function U1({
|
|
|
19621
19639
|
height: s
|
|
19622
19640
|
}, onEvents: d, notMerge: !0, theme: "merico-light" });
|
|
19623
19641
|
}
|
|
19624
|
-
function
|
|
19642
|
+
function U1({
|
|
19625
19643
|
context: e,
|
|
19626
19644
|
instance: t
|
|
19627
19645
|
}) {
|
|
@@ -19636,7 +19654,7 @@ function K1({
|
|
|
19636
19654
|
width: l,
|
|
19637
19655
|
height: c
|
|
19638
19656
|
} = e.viewport;
|
|
19639
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(tt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(
|
|
19657
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(tt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(K1, { variables: i, width: kt(l), height: Tt(c), data: o, conf: a, interactionManager: n }) });
|
|
19640
19658
|
}
|
|
19641
19659
|
const Y1 = [{
|
|
19642
19660
|
label: "solid",
|
|
@@ -19732,7 +19750,7 @@ function J1({
|
|
|
19732
19750
|
control: e,
|
|
19733
19751
|
render: ({
|
|
19734
19752
|
field: l
|
|
19735
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19753
|
+
}) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
|
|
19736
19754
|
flexGrow: 1
|
|
19737
19755
|
}, ...l })
|
|
19738
19756
|
}
|
|
@@ -19742,12 +19760,12 @@ function J1({
|
|
|
19742
19760
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
19743
19761
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
|
|
19744
19762
|
field: l
|
|
19745
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19763
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
|
|
19746
19764
|
] }),
|
|
19747
19765
|
/* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
19748
19766
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
|
|
19749
19767
|
field: l
|
|
19750
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19768
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
|
|
19751
19769
|
/* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
19752
19770
|
top: 15,
|
|
19753
19771
|
right: 5
|
|
@@ -19792,7 +19810,7 @@ function Z1({
|
|
|
19792
19810
|
}, children: [
|
|
19793
19811
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
19794
19812
|
l.map((x, y) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.id, children: x.name }, x.id)),
|
|
19795
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
19813
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
19796
19814
|
] }),
|
|
19797
19815
|
l.map((x, y) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.id, children: /* @__PURE__ */ r.jsx(J1, { control: e, index: y, remove: a, watch: t, variableOptions: d, xAxisOptions: h }) }, x.id))
|
|
19798
19816
|
] });
|
|
@@ -19957,15 +19975,15 @@ function sk({
|
|
|
19957
19975
|
/* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
|
|
19958
19976
|
/* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
|
|
19959
19977
|
field: a
|
|
19960
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19978
|
+
}) => /* @__PURE__ */ r.jsx(Ke, { ...a }) })
|
|
19961
19979
|
] }),
|
|
19962
19980
|
/* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
19963
19981
|
/* @__PURE__ */ r.jsx(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
|
|
19964
19982
|
field: a
|
|
19965
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19983
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
|
|
19966
19984
|
/* @__PURE__ */ r.jsx(g, { name: `series.${t}.invisible`, control: e, render: ({
|
|
19967
19985
|
field: a
|
|
19968
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19986
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Invisible", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
|
|
19969
19987
|
/* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed" }),
|
|
19970
19988
|
/* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
19971
19989
|
top: 15,
|
|
@@ -20012,7 +20030,7 @@ function ik({
|
|
|
20012
20030
|
}, children: [
|
|
20013
20031
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
20014
20032
|
o.map((x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.id, children: x.name }, x.id)),
|
|
20015
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
20033
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
20016
20034
|
] }),
|
|
20017
20035
|
o.map((x, y) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.id, children: /* @__PURE__ */ r.jsx(sk, { control: e, index: y, remove: i, seriesItem: x, xAxisOptions: d }, x.id) }, x.id))
|
|
20018
20036
|
] });
|
|
@@ -20067,7 +20085,7 @@ function ok({
|
|
|
20067
20085
|
/* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
20068
20086
|
/* @__PURE__ */ r.jsx(g, { name: `x_axes.${t}.show`, control: e, render: ({
|
|
20069
20087
|
field: s
|
|
20070
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
20088
|
+
}) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
|
|
20071
20089
|
/* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this X Axis" })
|
|
20072
20090
|
] });
|
|
20073
20091
|
}
|
|
@@ -20100,7 +20118,7 @@ function lk({
|
|
|
20100
20118
|
}, children: [
|
|
20101
20119
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
20102
20120
|
o.map((d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.id, children: d.name }, d.id)),
|
|
20103
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
20121
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
20104
20122
|
] }),
|
|
20105
20123
|
o.map((d, u) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.id, children: /* @__PURE__ */ r.jsx(ok, { control: e, index: u, remove: i }) }, d.id))
|
|
20106
20124
|
] });
|
|
@@ -20242,7 +20260,7 @@ const pk = {
|
|
|
20242
20260
|
displayGroup: "ECharts-based charts",
|
|
20243
20261
|
migrator: new hk(),
|
|
20244
20262
|
name: "horizontalBarChart",
|
|
20245
|
-
viewRender:
|
|
20263
|
+
viewRender: U1,
|
|
20246
20264
|
configRender: dk,
|
|
20247
20265
|
createConfig: () => ({
|
|
20248
20266
|
version: 2,
|
|
@@ -20878,9 +20896,9 @@ const Mk = {
|
|
|
20878
20896
|
}
|
|
20879
20897
|
};
|
|
20880
20898
|
function Rk() {
|
|
20881
|
-
return /* @__PURE__ */ r.jsxs(
|
|
20882
|
-
/* @__PURE__ */ r.jsx(
|
|
20883
|
-
/* @__PURE__ */ r.jsx(
|
|
20899
|
+
return /* @__PURE__ */ r.jsxs(Te, { width: 400, shadow: "md", children: [
|
|
20900
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(_n, { size: 14 }), children: "指标说明" }) }),
|
|
20901
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Ue, { fontSize: 14, sx: Ak, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
20884
20902
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
20885
20903
|
/* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
|
|
20886
20904
|
/* @__PURE__ */ r.jsx("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
|
|
@@ -21029,7 +21047,7 @@ const Pk = ({
|
|
|
21029
21047
|
}, children: [
|
|
21030
21048
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
21031
21049
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
|
|
21032
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
21050
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
21033
21051
|
] }),
|
|
21034
21052
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(Pk, { control: e, index: p, remove: i }, h.id) }, h.id))
|
|
21035
21053
|
] })
|
|
@@ -21058,7 +21076,7 @@ function Nk({
|
|
|
21058
21076
|
field: n
|
|
21059
21077
|
}) => (
|
|
21060
21078
|
// @ts-expect-error type of onChange
|
|
21061
|
-
/* @__PURE__ */ r.jsx(
|
|
21079
|
+
/* @__PURE__ */ r.jsx(K, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
|
|
21062
21080
|
width: "48%"
|
|
21063
21081
|
}, styles: {
|
|
21064
21082
|
rightSection: {
|
|
@@ -21232,7 +21250,7 @@ const $o = ({
|
|
|
21232
21250
|
data_keys: s,
|
|
21233
21251
|
formatter: i,
|
|
21234
21252
|
postfix: a
|
|
21235
|
-
} = e, o =
|
|
21253
|
+
} = e, o = Oe(), l = T(() => {
|
|
21236
21254
|
if (a.type === "text" && a.value)
|
|
21237
21255
|
return a.value;
|
|
21238
21256
|
if (a.type === "filter-option-label" && a.value) {
|
|
@@ -21261,7 +21279,7 @@ const $o = ({
|
|
|
21261
21279
|
] })
|
|
21262
21280
|
] })
|
|
21263
21281
|
] });
|
|
21264
|
-
}),
|
|
21282
|
+
}), Kk = k(({
|
|
21265
21283
|
context: e,
|
|
21266
21284
|
instance: t
|
|
21267
21285
|
}) => {
|
|
@@ -21273,10 +21291,10 @@ const $o = ({
|
|
|
21273
21291
|
width: l,
|
|
21274
21292
|
height: c
|
|
21275
21293
|
} = e.viewport;
|
|
21276
|
-
return !l || !c || !i ? null : /* @__PURE__ */ r.jsx(
|
|
21294
|
+
return !l || !c || !i ? null : /* @__PURE__ */ r.jsx(Kt, { w: `${l}px`, h: `${c}px`, justify: i.styles.justify, align: i.styles.align, direction: "row", wrap: "nowrap", sx: {
|
|
21277
21295
|
overflow: "hidden"
|
|
21278
21296
|
}, children: i.metrics.map((d) => /* @__PURE__ */ r.jsx(Hk, { metric: d, variableValueMap: o }, d.id)) });
|
|
21279
|
-
}),
|
|
21297
|
+
}), Uk = [{
|
|
21280
21298
|
label: "Text",
|
|
21281
21299
|
value: "text"
|
|
21282
21300
|
}, {
|
|
@@ -21298,7 +21316,7 @@ const $o = ({
|
|
|
21298
21316
|
});
|
|
21299
21317
|
};
|
|
21300
21318
|
return /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
21301
|
-
/* @__PURE__ */ r.jsx(A, { label: "Postfix Type", data:
|
|
21319
|
+
/* @__PURE__ */ r.jsx(A, { label: "Postfix Type", data: Uk, value: e.type, onChange: a }),
|
|
21302
21320
|
e.type === "text" && /* @__PURE__ */ r.jsx(I, { label: "Postfix Content", value: e.value, onChange: (l) => {
|
|
21303
21321
|
o(l.currentTarget.value);
|
|
21304
21322
|
} }),
|
|
@@ -21544,7 +21562,7 @@ const iT = {
|
|
|
21544
21562
|
displayGroup: "Merico suite",
|
|
21545
21563
|
migrator: new sT(),
|
|
21546
21564
|
name: "merico-stats",
|
|
21547
|
-
viewRender:
|
|
21565
|
+
viewRender: Kk,
|
|
21548
21566
|
configRender: nT,
|
|
21549
21567
|
createConfig: () => ({
|
|
21550
21568
|
version: 2,
|
|
@@ -21593,7 +21611,7 @@ function aT({
|
|
|
21593
21611
|
field: s
|
|
21594
21612
|
}) => (
|
|
21595
21613
|
// @ts-expect-error type of onChange
|
|
21596
|
-
/* @__PURE__ */ r.jsx(
|
|
21614
|
+
/* @__PURE__ */ r.jsx(K, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
|
|
21597
21615
|
) })
|
|
21598
21616
|
] })
|
|
21599
21617
|
] });
|
|
@@ -21662,7 +21680,7 @@ const oT = ({
|
|
|
21662
21680
|
}, children: [
|
|
21663
21681
|
/* @__PURE__ */ r.jsxs(m.List, { children: [
|
|
21664
21682
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
|
|
21665
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(
|
|
21683
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
21666
21684
|
] }),
|
|
21667
21685
|
o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(oT, { control: e, index: p, remove: i }, h.id) }, h.id))
|
|
21668
21686
|
] })
|
|
@@ -21704,7 +21722,7 @@ const dT = ({
|
|
|
21704
21722
|
const [s, {
|
|
21705
21723
|
setTrue: i,
|
|
21706
21724
|
setFalse: a
|
|
21707
|
-
}] =
|
|
21725
|
+
}] = Fe(), [o, l] = N(e);
|
|
21708
21726
|
O(() => {
|
|
21709
21727
|
l(e);
|
|
21710
21728
|
}, [e]);
|
|
@@ -21738,7 +21756,7 @@ const dT = ({
|
|
|
21738
21756
|
flexGrow: 0
|
|
21739
21757
|
}, children: "Customize Label" }),
|
|
21740
21758
|
/* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
|
|
21741
|
-
/* @__PURE__ */ r.jsx(
|
|
21759
|
+
/* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
|
|
21742
21760
|
/* @__PURE__ */ r.jsx(dT, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
21743
21761
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
21744
21762
|
/* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
|
|
@@ -21776,7 +21794,7 @@ function hT({
|
|
|
21776
21794
|
field: n
|
|
21777
21795
|
}) => (
|
|
21778
21796
|
// @ts-expect-error type of onChange
|
|
21779
|
-
/* @__PURE__ */ r.jsx(
|
|
21797
|
+
/* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
|
|
21780
21798
|
width: "48%"
|
|
21781
21799
|
}, styles: {
|
|
21782
21800
|
rightSection: {
|
|
@@ -21838,7 +21856,7 @@ function xT({
|
|
|
21838
21856
|
field: n
|
|
21839
21857
|
}) => (
|
|
21840
21858
|
// @ts-expect-error type of onChange
|
|
21841
|
-
/* @__PURE__ */ r.jsx(
|
|
21859
|
+
/* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
|
|
21842
21860
|
width: "48%"
|
|
21843
21861
|
}, styles: {
|
|
21844
21862
|
rightSection: {
|
|
@@ -22376,14 +22394,14 @@ const LT = {
|
|
|
22376
22394
|
value: e.value,
|
|
22377
22395
|
type: "single",
|
|
22378
22396
|
category: "basic"
|
|
22379
|
-
})), RT = [
|
|
22397
|
+
})), RT = [Ux, Yx, Zx, Jx, Xx, em], yd = () => ({
|
|
22380
22398
|
id: "dashboard",
|
|
22381
22399
|
version: Xl,
|
|
22382
22400
|
manifest: {
|
|
22383
|
-
viz: [ci, yS, WC, Y0, NS, Nw, pk, fm, xg, pv,
|
|
22401
|
+
viz: [ci, yS, WC, Y0, NS, Nw, pk, fm, xg, pv, Uv, T1, Iw, Wj, oS, h0, N0, JC, Gk, LT, iT, Ig],
|
|
22384
22402
|
color: [...AT, ...RT]
|
|
22385
22403
|
}
|
|
22386
|
-
}), Xn = new sm(),
|
|
22404
|
+
}), Xn = new sm(), ze = {
|
|
22387
22405
|
pluginManager: Vt("pluginManager"),
|
|
22388
22406
|
vizManager: Vt("vizManager"),
|
|
22389
22407
|
colorManager: Vt("colorManager"),
|
|
@@ -22449,7 +22467,7 @@ const ET = ({
|
|
|
22449
22467
|
onChange: o
|
|
22450
22468
|
}) => /* @__PURE__ */ r.jsxs(z, { children: [
|
|
22451
22469
|
/* @__PURE__ */ r.jsx(j, { children: " " }),
|
|
22452
|
-
/* @__PURE__ */ r.jsx(
|
|
22470
|
+
/* @__PURE__ */ r.jsx(U, { label: /* @__PURE__ */ r.jsxs(b, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
|
|
22453
22471
|
/* @__PURE__ */ r.jsx(z, { sx: {
|
|
22454
22472
|
flexGrow: 1
|
|
22455
22473
|
}, children: e }),
|
|
@@ -22637,7 +22655,7 @@ const ET = ({
|
|
|
22637
22655
|
};
|
|
22638
22656
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
22639
22657
|
/* @__PURE__ */ r.jsx(D, { variant: "dashed", my: 10 }),
|
|
22640
|
-
/* @__PURE__ */ r.jsx(
|
|
22658
|
+
/* @__PURE__ */ r.jsx(Ue, { withBorder: !1, sx: {
|
|
22641
22659
|
"tbody > tr > th, tbody > tr > td": {
|
|
22642
22660
|
borderTop: "none",
|
|
22643
22661
|
padding: "2px 6px"
|
|
@@ -22931,9 +22949,9 @@ const ET = ({
|
|
|
22931
22949
|
}, F = y && (l == null ? void 0 : l.length) > 0, [B, re] = N(""), be = T(() => {
|
|
22932
22950
|
if (!B)
|
|
22933
22951
|
return d;
|
|
22934
|
-
const ne = B.toLowerCase(), Se = (
|
|
22935
|
-
var
|
|
22936
|
-
return ((
|
|
22952
|
+
const ne = B.toLowerCase(), Se = (Ie) => {
|
|
22953
|
+
var Le;
|
|
22954
|
+
return ((Le = Ie.description) == null ? void 0 : Le.toLowerCase().includes(ne)) || Ie.label.toLowerCase().includes(ne);
|
|
22937
22955
|
};
|
|
22938
22956
|
return d.filter(Se);
|
|
22939
22957
|
}, [B, d]);
|
|
@@ -22956,7 +22974,7 @@ const ET = ({
|
|
|
22956
22974
|
value: n,
|
|
22957
22975
|
onChange: s
|
|
22958
22976
|
}) => {
|
|
22959
|
-
const i =
|
|
22977
|
+
const i = Oe(), a = !!t.options_query_id, {
|
|
22960
22978
|
state: o,
|
|
22961
22979
|
error: l
|
|
22962
22980
|
} = i.getDataStuffByID(t.options_query_id), c = o === "loading", d = t.min_width ? t.min_width : "200px", u = a ? c : !1, h = (p) => s(p, !1);
|
|
@@ -22979,7 +22997,7 @@ const ET = ({
|
|
|
22979
22997
|
value: n,
|
|
22980
22998
|
onChange: s
|
|
22981
22999
|
}) => {
|
|
22982
|
-
const i =
|
|
23000
|
+
const i = Oe(), a = !!t.options_query_id, {
|
|
22983
23001
|
state: o,
|
|
22984
23002
|
error: l
|
|
22985
23003
|
} = i.getDataStuffByID(t.options_query_id), c = o === "loading";
|
|
@@ -22996,7 +23014,7 @@ const ET = ({
|
|
|
22996
23014
|
}
|
|
22997
23015
|
}, itemComponent: QT });
|
|
22998
23016
|
});
|
|
22999
|
-
function
|
|
23017
|
+
function KT({
|
|
23000
23018
|
label: e,
|
|
23001
23019
|
config: t,
|
|
23002
23020
|
value: n,
|
|
@@ -23008,7 +23026,7 @@ function UT({
|
|
|
23008
23026
|
}
|
|
23009
23027
|
} });
|
|
23010
23028
|
}
|
|
23011
|
-
const
|
|
23029
|
+
const UT = ({
|
|
23012
23030
|
rotate: e,
|
|
23013
23031
|
onClick: t
|
|
23014
23032
|
}) => /* @__PURE__ */ r.jsx("svg", { onClick: t, className: "caret-icon", viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "14px", height: "14px", fill: "currentColor", "aria-hidden": "true", transform: `rotate(${e})`, children: /* @__PURE__ */ r.jsx("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }) }), YT = ({
|
|
@@ -23020,7 +23038,7 @@ const KT = ({
|
|
|
23020
23038
|
}) => (n === "0-0-value" && console.log(i), t ? /* @__PURE__ */ r.jsx("span", { style: {
|
|
23021
23039
|
width: "14px",
|
|
23022
23040
|
display: "inline-block"
|
|
23023
|
-
} }) : /* @__PURE__ */ r.jsx(
|
|
23041
|
+
} }) : /* @__PURE__ */ r.jsx(UT, { rotate: e ? "0" : "-90", onClick: s, ...i })), XT = ({
|
|
23024
23042
|
onClick: e
|
|
23025
23043
|
}) => /* @__PURE__ */ r.jsxs("svg", { onClick: e, className: "checkbox-icon", width: "16", height: "16", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
23026
23044
|
/* @__PURE__ */ r.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
@@ -23386,7 +23404,7 @@ const KT = ({
|
|
|
23386
23404
|
case "tree-select":
|
|
23387
23405
|
return /* @__PURE__ */ r.jsx(tI, { ...s, ...i, config: t });
|
|
23388
23406
|
case "text-input":
|
|
23389
|
-
return /* @__PURE__ */ r.jsx(
|
|
23407
|
+
return /* @__PURE__ */ r.jsx(KT, { ...s, ...i, config: t });
|
|
23390
23408
|
case "date-range":
|
|
23391
23409
|
return /* @__PURE__ */ r.jsx(vd, { ...s, ...i, config: t });
|
|
23392
23410
|
case "checkbox":
|
|
@@ -23419,7 +23437,7 @@ function iI(e) {
|
|
|
23419
23437
|
const _d = k(function({
|
|
23420
23438
|
view: t
|
|
23421
23439
|
}) {
|
|
23422
|
-
const n =
|
|
23440
|
+
const n = Oe(), {
|
|
23423
23441
|
control: s,
|
|
23424
23442
|
handleSubmit: i,
|
|
23425
23443
|
reset: a
|
|
@@ -23712,7 +23730,7 @@ const oI = f.model("PanelLayoutMeta", {
|
|
|
23712
23730
|
}
|
|
23713
23731
|
})), Ss = (e) => hl(e, (t, n) => {
|
|
23714
23732
|
if (n !== void 0 && t)
|
|
23715
|
-
return
|
|
23733
|
+
return Ut(t);
|
|
23716
23734
|
});
|
|
23717
23735
|
var et = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(et || {});
|
|
23718
23736
|
const xI = f.model("QueryMeta", {
|
|
@@ -23800,7 +23818,7 @@ const xI = f.model("QueryMeta", {
|
|
|
23800
23818
|
e.value = t;
|
|
23801
23819
|
}
|
|
23802
23820
|
}));
|
|
23803
|
-
var
|
|
23821
|
+
var Ae = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TreeSelect = "tree-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Ae || {});
|
|
23804
23822
|
const kd = f.model("FilterCheckboxConfigMeta", {
|
|
23805
23823
|
_name: f.literal("checkbox"),
|
|
23806
23824
|
description: f.optional(f.string, ""),
|
|
@@ -24025,7 +24043,7 @@ const gI = f.model("FilterDateRangeConfigMeta", {
|
|
|
24025
24043
|
}
|
|
24026
24044
|
})).actions((e) => ({
|
|
24027
24045
|
afterCreate() {
|
|
24028
|
-
wt(e, it(() =>
|
|
24046
|
+
wt(e, it(() => Ut(e.default_selection), e.setDefaultSelection, {
|
|
24029
24047
|
fireImmediately: !0,
|
|
24030
24048
|
delay: 0
|
|
24031
24049
|
}));
|
|
@@ -24083,7 +24101,7 @@ const gI = f.model("FilterDateRangeConfigMeta", {
|
|
|
24083
24101
|
}
|
|
24084
24102
|
})).actions((e) => ({
|
|
24085
24103
|
afterCreate() {
|
|
24086
|
-
wt(e, it(() =>
|
|
24104
|
+
wt(e, it(() => Ut(e.default_selection), e.setDefaultSelection, {
|
|
24087
24105
|
fireImmediately: !0,
|
|
24088
24106
|
delay: 0
|
|
24089
24107
|
}));
|
|
@@ -24254,7 +24272,7 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
|
|
|
24254
24272
|
order: f.number,
|
|
24255
24273
|
visibleInViewsIDs: f.array(f.string),
|
|
24256
24274
|
auto_submit: f.optional(f.boolean, !1),
|
|
24257
|
-
type: f.enumeration("DashboardFilterType", [
|
|
24275
|
+
type: f.enumeration("DashboardFilterType", [Ae.Select, Ae.MultiSelect, Ae.TreeSelect, Ae.TextInput, Ae.Checkbox, Ae.DateRange]),
|
|
24258
24276
|
config: f.union(zd, Dd, Ad, Md, kd, Id)
|
|
24259
24277
|
}).views((e) => ({
|
|
24260
24278
|
get plainDefaultValue() {
|
|
@@ -24262,10 +24280,10 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
|
|
|
24262
24280
|
return Array.isArray(t) ? [...t] : t;
|
|
24263
24281
|
},
|
|
24264
24282
|
get usingDefaultValue() {
|
|
24265
|
-
return e.type !==
|
|
24283
|
+
return e.type !== Ae.TreeSelect;
|
|
24266
24284
|
},
|
|
24267
24285
|
get auto_submit_supported() {
|
|
24268
|
-
return [
|
|
24286
|
+
return [Ae.Select, Ae.Checkbox, Ae.DateRange].includes(e.type);
|
|
24269
24287
|
}
|
|
24270
24288
|
})).views((e) => ({
|
|
24271
24289
|
get json() {
|
|
@@ -24287,7 +24305,7 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
|
|
|
24287
24305
|
order: i,
|
|
24288
24306
|
config: c.json,
|
|
24289
24307
|
auto_submit: o,
|
|
24290
|
-
visibleInViewsIDs:
|
|
24308
|
+
visibleInViewsIDs: Ut(a)
|
|
24291
24309
|
};
|
|
24292
24310
|
},
|
|
24293
24311
|
get visibleInViewsIDSet() {
|
|
@@ -24312,22 +24330,22 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
|
|
|
24312
24330
|
},
|
|
24313
24331
|
setType(t) {
|
|
24314
24332
|
switch (t) {
|
|
24315
|
-
case
|
|
24333
|
+
case Ae.Select:
|
|
24316
24334
|
e.config = vI();
|
|
24317
24335
|
break;
|
|
24318
|
-
case
|
|
24336
|
+
case Ae.MultiSelect:
|
|
24319
24337
|
e.config = jI();
|
|
24320
24338
|
break;
|
|
24321
|
-
case
|
|
24339
|
+
case Ae.TreeSelect:
|
|
24322
24340
|
e.config = SI();
|
|
24323
24341
|
break;
|
|
24324
|
-
case
|
|
24342
|
+
case Ae.TextInput:
|
|
24325
24343
|
e.config = Ld();
|
|
24326
24344
|
break;
|
|
24327
|
-
case
|
|
24345
|
+
case Ae.Checkbox:
|
|
24328
24346
|
e.config = fI();
|
|
24329
24347
|
break;
|
|
24330
|
-
case
|
|
24348
|
+
case Ae.DateRange:
|
|
24331
24349
|
e.config = bI();
|
|
24332
24350
|
break;
|
|
24333
24351
|
}
|
|
@@ -24978,7 +24996,7 @@ const Hd = f.model("FiltersRenderModel", {
|
|
|
24978
24996
|
In("Filters", n);
|
|
24979
24997
|
}
|
|
24980
24998
|
}));
|
|
24981
|
-
function
|
|
24999
|
+
function Kd(e) {
|
|
24982
25000
|
return {
|
|
24983
25001
|
current: e,
|
|
24984
25002
|
values: OI(e)
|
|
@@ -25239,7 +25257,7 @@ const $r = {
|
|
|
25239
25257
|
delay: 0
|
|
25240
25258
|
}));
|
|
25241
25259
|
}
|
|
25242
|
-
})),
|
|
25260
|
+
})), Ud = f.model("QueriesRenderModel", {
|
|
25243
25261
|
current: f.optional(f.array(WI), [])
|
|
25244
25262
|
}).views((e) => ({
|
|
25245
25263
|
get idSet() {
|
|
@@ -25396,7 +25414,7 @@ function Yr(e, t, n, s) {
|
|
|
25396
25414
|
return i;
|
|
25397
25415
|
}, {});
|
|
25398
25416
|
}
|
|
25399
|
-
class
|
|
25417
|
+
class KI {
|
|
25400
25418
|
constructor(t) {
|
|
25401
25419
|
V(this, "origin");
|
|
25402
25420
|
V(this, "copy");
|
|
@@ -25418,7 +25436,7 @@ class UI {
|
|
|
25418
25436
|
Qe(this.copy, t);
|
|
25419
25437
|
}
|
|
25420
25438
|
}
|
|
25421
|
-
const
|
|
25439
|
+
const UI = (e) => new KI(e), YI = k(({
|
|
25422
25440
|
view: e
|
|
25423
25441
|
}) => {
|
|
25424
25442
|
const t = le(), n = ce(), s = Ct(), {
|
|
@@ -25479,13 +25497,17 @@ const Xd = k(() => {
|
|
|
25479
25497
|
panel: n
|
|
25480
25498
|
} = kn();
|
|
25481
25499
|
return XI(n.description) ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
25482
|
-
/* @__PURE__ */ r.jsx(me, { opened: e, onClose: () => t(!1), title: n.name, withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(fs, { value: n.description, styles: {
|
|
25500
|
+
/* @__PURE__ */ r.jsx(me, { opened: e, onClose: () => t(!1), title: n.title.show ? n.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(fs, { value: n.description, styles: {
|
|
25483
25501
|
root: {
|
|
25484
25502
|
border: "none"
|
|
25485
25503
|
},
|
|
25486
25504
|
content: {
|
|
25487
25505
|
padding: 0
|
|
25488
25506
|
}
|
|
25507
|
+
}, sx: {
|
|
25508
|
+
".mantine-RichTextEditor-content .ProseMirror": {
|
|
25509
|
+
padding: "0 !important"
|
|
25510
|
+
}
|
|
25489
25511
|
} }) }),
|
|
25490
25512
|
/* @__PURE__ */ r.jsx(fe, { label: "Click to see description", position: "top-start", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => t((s) => !s), sx: {
|
|
25491
25513
|
verticalAlign: "baseline",
|
|
@@ -25539,7 +25561,7 @@ class eD {
|
|
|
25539
25561
|
V(this, "runningMigration");
|
|
25540
25562
|
V(this, "panelModel");
|
|
25541
25563
|
V(this, "status", "notStarted");
|
|
25542
|
-
this.panelModel = t.getRequired(
|
|
25564
|
+
this.panelModel = t.getRequired(ze.instanceScope.panelModel), this.vizInstance = t.getRequired(ze.instanceScope.vizInstance), this.operationManager = t.getRequired(ze.instanceScope.operationManager), this.triggerManager = t.getRequired(ze.instanceScope.triggerManager), this.vizManager = t.getRequired(ze.vizManager);
|
|
25543
25565
|
}
|
|
25544
25566
|
async createMigrationTask() {
|
|
25545
25567
|
const t = [];
|
|
@@ -25584,15 +25606,15 @@ function Zd(e) {
|
|
|
25584
25606
|
panel: t
|
|
25585
25607
|
} = kn();
|
|
25586
25608
|
return qe((n) => {
|
|
25587
|
-
const s = n.getRequired(
|
|
25588
|
-
return n.createScoped().provideFactory(
|
|
25589
|
-
const o = a.getRequired(
|
|
25609
|
+
const s = n.getRequired(ze.vizManager), i = s.resolveComponent(e.viz.type);
|
|
25610
|
+
return n.createScoped().provideFactory(ze.instanceScope.vizInstance, () => s.getOrCreateInstance(e)).provideFactory(ze.instanceScope.interactionManager, (a) => {
|
|
25611
|
+
const o = a.getRequired(ze.instanceScope.vizInstance);
|
|
25590
25612
|
return new Fi(o, i, ds);
|
|
25591
|
-
}).provideFactory(
|
|
25613
|
+
}).provideFactory(ze.instanceScope.operationManager, (a) => a.getRequired(ze.instanceScope.interactionManager).operationManager).provideFactory(ze.instanceScope.triggerManager, (a) => a.getRequired(ze.instanceScope.interactionManager).triggerManager).provideValue(ze.instanceScope.panelModel, t).provideFactory(ze.instanceScope.migrator, (a) => new eD(a));
|
|
25592
25614
|
}, [e.viz.type, e.viz.conf]);
|
|
25593
25615
|
}
|
|
25594
25616
|
function eu(e) {
|
|
25595
|
-
const [t, n] = N(!1), s = jd().getRequired(
|
|
25617
|
+
const [t, n] = N(!1), s = jd().getRequired(ze.instanceScope.migrator);
|
|
25596
25618
|
return ur(async () => {
|
|
25597
25619
|
const i = s.status === Pr.notStarted;
|
|
25598
25620
|
n(s.status === Pr.done), s.status === Pr.notStarted && s.runMigration().then((a) => {
|
|
@@ -25603,7 +25625,7 @@ function eu(e) {
|
|
|
25603
25625
|
}, [s]), t;
|
|
25604
25626
|
}
|
|
25605
25627
|
function tu(e, t) {
|
|
25606
|
-
const n = jd().getRequired(
|
|
25628
|
+
const n = jd().getRequired(ze.instanceScope.vizInstance);
|
|
25607
25629
|
return O(() => (n.instanceData.setItem(null, t.viz.conf), n.instanceData.watchItem(null, (s) => {
|
|
25608
25630
|
e(s);
|
|
25609
25631
|
})), [e, t.viz.type]), n;
|
|
@@ -25622,7 +25644,7 @@ function tD({
|
|
|
25622
25644
|
});
|
|
25623
25645
|
return ur(async () => {
|
|
25624
25646
|
await s.instanceData.setItem(null, n.viz.conf);
|
|
25625
|
-
}, [s, n.viz.type]), i ? /* @__PURE__ */ r.jsx(
|
|
25647
|
+
}, [s, n.viz.type]), i ? /* @__PURE__ */ r.jsx(Kx, { ...t }) : /* @__PURE__ */ r.jsx(j, { children: "Checking update..." });
|
|
25626
25648
|
}
|
|
25627
25649
|
function nD(e) {
|
|
25628
25650
|
const {
|
|
@@ -25693,7 +25715,7 @@ const sD = k(function({
|
|
|
25693
25715
|
/* @__PURE__ */ r.jsx(j, { color: "gray", align: "center", size: "sm", children: e.queryStateMessages })
|
|
25694
25716
|
] })), nu = k(({
|
|
25695
25717
|
panel: e
|
|
25696
|
-
}) => /* @__PURE__ */ r.jsxs(
|
|
25718
|
+
}) => /* @__PURE__ */ r.jsxs(Kt, { className: "panel-viz-section", direction: "column", sx: {
|
|
25697
25719
|
position: "relative",
|
|
25698
25720
|
width: "100%"
|
|
25699
25721
|
}, children: [
|
|
@@ -25810,7 +25832,7 @@ const su = k(({
|
|
|
25810
25832
|
function mD(e, t, n) {
|
|
25811
25833
|
const {
|
|
25812
25834
|
panels: s
|
|
25813
|
-
} =
|
|
25835
|
+
} = Oe(), i = e.id === "Main", [a, o] = L.useState(() => i && s.findByID(t) ? t : null), l = L.useCallback((h) => {
|
|
25814
25836
|
o(h), i && n(h);
|
|
25815
25837
|
}, [i, n]), c = L.useCallback(() => {
|
|
25816
25838
|
o(null), i && n("");
|
|
@@ -25851,7 +25873,7 @@ const fD = L.forwardRef(({
|
|
|
25851
25873
|
view: e,
|
|
25852
25874
|
className: t = "layout"
|
|
25853
25875
|
}) => {
|
|
25854
|
-
const n =
|
|
25876
|
+
const n = Oe(), {
|
|
25855
25877
|
panels: s,
|
|
25856
25878
|
layouts: i
|
|
25857
25879
|
} = n.panels.panelsByIDs(e.panelIDs), a = L.useCallback((l) => {
|
|
@@ -25878,7 +25900,7 @@ const fD = L.forwardRef(({
|
|
|
25878
25900
|
const {
|
|
25879
25901
|
panels: s,
|
|
25880
25902
|
layouts: i
|
|
25881
|
-
} =
|
|
25903
|
+
} = Oe().panels.panelsByIDs(t.panelIDs);
|
|
25882
25904
|
return /* @__PURE__ */ r.jsx(jD, { className: `dashboard-layout ${n}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: i, children: s.map((a) => /* @__PURE__ */ r.jsx("div", { "data-grid": {
|
|
25883
25905
|
...a.layout
|
|
25884
25906
|
}, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(su, { view: t, panel: a }) }, a.id)) });
|
|
@@ -25913,7 +25935,7 @@ const wD = k(({
|
|
|
25913
25935
|
const [t, {
|
|
25914
25936
|
setTrue: n,
|
|
25915
25937
|
setFalse: s
|
|
25916
|
-
}] =
|
|
25938
|
+
}] = Fe(!1), i = tc(), a = Oe(), o = () => {
|
|
25917
25939
|
const l = JSON.stringify(a.contentJSON, null, 2), c = `${i.name}__${a.name}`;
|
|
25918
25940
|
In(c, l);
|
|
25919
25941
|
};
|
|
@@ -25956,7 +25978,7 @@ const wD = k(({
|
|
|
25956
25978
|
children: e,
|
|
25957
25979
|
view: t
|
|
25958
25980
|
}) => {
|
|
25959
|
-
const n =
|
|
25981
|
+
const n = Oe(), s = t.config, i = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id), {
|
|
25960
25982
|
ref: o,
|
|
25961
25983
|
downloadScreenshot: l
|
|
25962
25984
|
} = ja(t);
|
|
@@ -26004,7 +26026,7 @@ const wD = k(({
|
|
|
26004
26026
|
} : {}, CD = k(({
|
|
26005
26027
|
view: e
|
|
26006
26028
|
}) => {
|
|
26007
|
-
const t =
|
|
26029
|
+
const t = Oe(), n = e.config;
|
|
26008
26030
|
return /* @__PURE__ */ r.jsxs(m, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, value: e.tab, onTabChange: e.setTab, styles: {
|
|
26009
26031
|
root: {
|
|
26010
26032
|
height: "100%",
|
|
@@ -26153,7 +26175,7 @@ const ID = k(({
|
|
|
26153
26175
|
return /* @__PURE__ */ r.jsxs(m, { className: "preview-view-tabs", variant: i.variant, orientation: i.orientation, value: e.tab, onTabChange: e.setTab, styles: DD(i), children: [
|
|
26154
26176
|
/* @__PURE__ */ r.jsxs(m.List, { grow: i.grow, children: [
|
|
26155
26177
|
i.tabs.map((l) => /* @__PURE__ */ r.jsx(m.Tab, { value: l.id, sx: zD(l), children: l.name ?? l.id }, l.id)),
|
|
26156
|
-
/* @__PURE__ */ r.jsx(m.Tab, { onClick: i.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(
|
|
26178
|
+
/* @__PURE__ */ r.jsx(m.Tab, { onClick: i.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
|
|
26157
26179
|
] }),
|
|
26158
26180
|
i.tabs.map((l, c) => {
|
|
26159
26181
|
const d = n.views.findByID(l.view_id);
|
|
@@ -26304,7 +26326,7 @@ const OD = f.compose("FiltersModel", Hd, f.model("FiltersModel", {
|
|
|
26304
26326
|
}));
|
|
26305
26327
|
},
|
|
26306
26328
|
get selects() {
|
|
26307
|
-
return e.current.filter((t) => t.type ===
|
|
26329
|
+
return e.current.filter((t) => t.type === Ae.Select).map((t) => ({
|
|
26308
26330
|
label: t.label ?? t.id,
|
|
26309
26331
|
value: t.id
|
|
26310
26332
|
}));
|
|
@@ -26358,7 +26380,7 @@ const OD = f.compose("FiltersModel", Hd, f.model("FiltersModel", {
|
|
|
26358
26380
|
t();
|
|
26359
26381
|
}
|
|
26360
26382
|
};
|
|
26361
|
-
}), $D =
|
|
26383
|
+
}), $D = Ud.views((e) => ({
|
|
26362
26384
|
get options() {
|
|
26363
26385
|
const t = e.current.map((n) => ({
|
|
26364
26386
|
value: n.id,
|
|
@@ -26788,7 +26810,7 @@ const HD = f.model("EditorModel", {
|
|
|
26788
26810
|
}, {
|
|
26789
26811
|
label: "Mock Context",
|
|
26790
26812
|
value: "_MOCK_CONTEXT_",
|
|
26791
|
-
Icon:
|
|
26813
|
+
Icon: Kh,
|
|
26792
26814
|
_type: "mock_context"
|
|
26793
26815
|
}, {
|
|
26794
26816
|
label: "Filters",
|
|
@@ -26799,7 +26821,7 @@ const HD = f.model("EditorModel", {
|
|
|
26799
26821
|
}, {
|
|
26800
26822
|
label: "SQL Snippets",
|
|
26801
26823
|
value: "_SQL_SNIPPETS_",
|
|
26802
|
-
Icon:
|
|
26824
|
+
Icon: Uh,
|
|
26803
26825
|
children: [cn("_SQL_SNIPPETS_SETTINGS_"), ...i.options, cn("_Add_A_SQL_SNIPPET_")],
|
|
26804
26826
|
_type: "GROUP"
|
|
26805
26827
|
}, {
|
|
@@ -26843,7 +26865,7 @@ const HD = f.model("EditorModel", {
|
|
|
26843
26865
|
const n = QD(t);
|
|
26844
26866
|
n && e.setPath(n);
|
|
26845
26867
|
}
|
|
26846
|
-
})),
|
|
26868
|
+
})), KD = Wd.views((e) => ({
|
|
26847
26869
|
get dataFieldOptions() {
|
|
26848
26870
|
return e.queryIDs.length === 0 ? [] : e.queries.map((t) => {
|
|
26849
26871
|
const n = t.data;
|
|
@@ -26853,6 +26875,21 @@ const HD = f.model("EditorModel", {
|
|
|
26853
26875
|
group: t.name
|
|
26854
26876
|
}));
|
|
26855
26877
|
}).flat();
|
|
26878
|
+
},
|
|
26879
|
+
explainDataKey(t) {
|
|
26880
|
+
const {
|
|
26881
|
+
queryID: n,
|
|
26882
|
+
columnKey: s
|
|
26883
|
+
} = $(t), i = e.queries.find((a) => a.id === n);
|
|
26884
|
+
return i ? {
|
|
26885
|
+
queryID: n,
|
|
26886
|
+
queryName: i.name,
|
|
26887
|
+
columnKey: s
|
|
26888
|
+
} : {
|
|
26889
|
+
queryID: n,
|
|
26890
|
+
queryName: null,
|
|
26891
|
+
columnKey: s
|
|
26892
|
+
};
|
|
26856
26893
|
}
|
|
26857
26894
|
})).actions((e) => ({
|
|
26858
26895
|
removeSelf() {
|
|
@@ -26862,8 +26899,8 @@ const HD = f.model("EditorModel", {
|
|
|
26862
26899
|
moveToView(t, n) {
|
|
26863
26900
|
Ne(e).content.views.findByID(t).removePanelID(e.id), Ne(e).content.views.findByID(n).appendPanelID(e.id), Ne(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
|
|
26864
26901
|
}
|
|
26865
|
-
})),
|
|
26866
|
-
list: f.optional(f.array(
|
|
26902
|
+
})), UD = f.compose("PanelsModel", Gd, f.model({
|
|
26903
|
+
list: f.optional(f.array(KD), [])
|
|
26867
26904
|
})).views((e) => ({
|
|
26868
26905
|
editorOptions(t, n) {
|
|
26869
26906
|
const {
|
|
@@ -27059,7 +27096,7 @@ const JD = f.model({
|
|
|
27059
27096
|
queries: $D,
|
|
27060
27097
|
sqlSnippets: PD,
|
|
27061
27098
|
views: XD,
|
|
27062
|
-
panels:
|
|
27099
|
+
panels: UD,
|
|
27063
27100
|
mock_context: Sd,
|
|
27064
27101
|
/**
|
|
27065
27102
|
* this field should be excluded from snapshot
|
|
@@ -27380,7 +27417,7 @@ function ZD({
|
|
|
27380
27417
|
create_time: s,
|
|
27381
27418
|
update_time: i,
|
|
27382
27419
|
version: o,
|
|
27383
|
-
filters:
|
|
27420
|
+
filters: Kd(l),
|
|
27384
27421
|
queries: {
|
|
27385
27422
|
current: u
|
|
27386
27423
|
},
|
|
@@ -27532,7 +27569,7 @@ function cu(e, t) {
|
|
|
27532
27569
|
}, [e]);
|
|
27533
27570
|
}
|
|
27534
27571
|
function du(e) {
|
|
27535
|
-
return L.useCallback((t) => t.provideValue(
|
|
27572
|
+
return L.useCallback((t) => t.provideValue(ze.pluginManager, e.pluginManager).provideValue(ze.vizManager, e.vizManager).provideValue(ze.colorManager, e.colorManager), []);
|
|
27536
27573
|
}
|
|
27537
27574
|
const nz = k(() => {
|
|
27538
27575
|
const e = tc(), t = ce(), n = () => {
|
|
@@ -27715,7 +27752,7 @@ const oz = k(({
|
|
|
27715
27752
|
const [n, {
|
|
27716
27753
|
setTrue: s,
|
|
27717
27754
|
setFalse: i
|
|
27718
|
-
}] =
|
|
27755
|
+
}] = Fe(), [a, o] = N(e ?? pi), l = (p) => {
|
|
27719
27756
|
o({
|
|
27720
27757
|
...a,
|
|
27721
27758
|
enabled: p
|
|
@@ -27745,7 +27782,7 @@ const oz = k(({
|
|
|
27745
27782
|
flexGrow: 0
|
|
27746
27783
|
}, children: /* @__PURE__ */ r.jsx(ml, { size: 14 }) }),
|
|
27747
27784
|
/* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize modal title", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
|
|
27748
|
-
/* @__PURE__ */ r.jsx(
|
|
27785
|
+
/* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (p) => l(p.currentTarget.checked) }),
|
|
27749
27786
|
/* @__PURE__ */ r.jsx(uz, { value: a.func_content, onChange: u, disabled: !a.enabled }),
|
|
27750
27787
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
27751
27788
|
/* @__PURE__ */ r.jsx(C, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
|
|
@@ -27764,7 +27801,7 @@ const oz = k(({
|
|
|
27764
27801
|
const t = e.config, n = t.custom_modal_title.value;
|
|
27765
27802
|
return /* @__PURE__ */ r.jsxs(w, { children: [
|
|
27766
27803
|
/* @__PURE__ */ r.jsx(D, { mt: 8, label: "Modal settings", labelPosition: "center" }),
|
|
27767
|
-
/* @__PURE__ */ r.jsxs(
|
|
27804
|
+
/* @__PURE__ */ r.jsxs(Kt, { gap: 10, children: [
|
|
27768
27805
|
/* @__PURE__ */ r.jsx(I, { label: "Modal Title", value: n, onChange: _.noop, disabled: !0, sx: {
|
|
27769
27806
|
flexGrow: 1
|
|
27770
27807
|
} }),
|
|
@@ -27807,7 +27844,7 @@ const oz = k(({
|
|
|
27807
27844
|
] }) : null), Cs = ({
|
|
27808
27845
|
headers: e,
|
|
27809
27846
|
rows: t
|
|
27810
|
-
}) => /* @__PURE__ */ r.jsxs(
|
|
27847
|
+
}) => /* @__PURE__ */ r.jsxs(Ue, { fontSize: "xs", highlightOnHover: !0, sx: {
|
|
27811
27848
|
tableLayout: "fixed",
|
|
27812
27849
|
fontFamily: "monospace"
|
|
27813
27850
|
}, children: [
|
|
@@ -28008,7 +28045,7 @@ const oz = k(({
|
|
|
28008
28045
|
}] = xr(!1), [s, {
|
|
28009
28046
|
setTrue: i,
|
|
28010
28047
|
setFalse: a
|
|
28011
|
-
}] =
|
|
28048
|
+
}] = Fe(!1), l = ((c = le().content.views.VIE) == null ? void 0 : c.type) === q.Tabs;
|
|
28012
28049
|
return l ? /* @__PURE__ */ r.jsx(fe, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(to, { size: 16 }), sx: {
|
|
28013
28050
|
...Wo,
|
|
28014
28051
|
transform: "none !important"
|
|
@@ -28325,19 +28362,19 @@ function Hz(e) {
|
|
|
28325
28362
|
};
|
|
28326
28363
|
return Qz(l);
|
|
28327
28364
|
}
|
|
28328
|
-
const
|
|
28365
|
+
const Ks = {
|
|
28329
28366
|
"builtin:op:open-link": /* @__PURE__ */ r.jsx(Es, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(Zh, { size: 14 }) }),
|
|
28330
28367
|
"builtin:op:set_filter_values": /* @__PURE__ */ r.jsx(Es, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(ep, { size: 14 }) }),
|
|
28331
28368
|
"builtin:op:clear_filter_values": /* @__PURE__ */ r.jsx(Es, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(tp, { size: 14 }) })
|
|
28332
28369
|
};
|
|
28333
|
-
function
|
|
28370
|
+
function Kz(e) {
|
|
28334
28371
|
const t = [];
|
|
28335
28372
|
return e.forEach((n) => {
|
|
28336
28373
|
switch (n.schemaRef) {
|
|
28337
28374
|
case "builtin:op:open-link":
|
|
28338
28375
|
t.push({
|
|
28339
28376
|
key: n.urlTemplate,
|
|
28340
|
-
icon:
|
|
28377
|
+
icon: Ks[n.schemaRef],
|
|
28341
28378
|
text: /* @__PURE__ */ r.jsxs(b, { spacing: 4, children: [
|
|
28342
28379
|
/* @__PURE__ */ r.jsx(j, { children: "Open: " }),
|
|
28343
28380
|
/* @__PURE__ */ r.jsx(j, { color: "dimmed", children: n.shortURLTemplate })
|
|
@@ -28351,7 +28388,7 @@ function Uz(e) {
|
|
|
28351
28388
|
}) => {
|
|
28352
28389
|
t.push({
|
|
28353
28390
|
key: n.schemaRef + s,
|
|
28354
|
-
icon:
|
|
28391
|
+
icon: Ks[n.schemaRef],
|
|
28355
28392
|
text: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
|
|
28356
28393
|
"Set Filter: ",
|
|
28357
28394
|
i
|
|
@@ -28366,7 +28403,7 @@ function Uz(e) {
|
|
|
28366
28403
|
}) => {
|
|
28367
28404
|
t.push({
|
|
28368
28405
|
key: n.schemaRef + s,
|
|
28369
|
-
icon:
|
|
28406
|
+
icon: Ks[n.schemaRef],
|
|
28370
28407
|
text: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
|
|
28371
28408
|
"Clear Filter: ",
|
|
28372
28409
|
i
|
|
@@ -28377,14 +28414,14 @@ function Uz(e) {
|
|
|
28377
28414
|
}
|
|
28378
28415
|
}), t;
|
|
28379
28416
|
}
|
|
28380
|
-
const
|
|
28417
|
+
const Uz = Uu(({
|
|
28381
28418
|
data: e,
|
|
28382
28419
|
isConnectable: t,
|
|
28383
28420
|
sourcePosition: n = vt.Right,
|
|
28384
28421
|
targetPosition: s = vt.Left,
|
|
28385
28422
|
...i
|
|
28386
28423
|
}) => {
|
|
28387
|
-
const a = T(() =>
|
|
28424
|
+
const a = T(() => Kz(e.interactions), [e.interactions]);
|
|
28388
28425
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28389
28426
|
/* @__PURE__ */ r.jsx(io, { type: "target", position: s, isConnectable: t }),
|
|
28390
28427
|
/* @__PURE__ */ r.jsx(z, { sx: {
|
|
@@ -28392,17 +28429,17 @@ const Kz = Ku(({
|
|
|
28392
28429
|
top: 0,
|
|
28393
28430
|
right: 0
|
|
28394
28431
|
}, children: /* @__PURE__ */ r.jsx(Lh, { size: 12 }) }),
|
|
28395
|
-
/* @__PURE__ */ r.jsxs(
|
|
28396
|
-
/* @__PURE__ */ r.jsx(
|
|
28397
|
-
/* @__PURE__ */ r.jsx(
|
|
28432
|
+
/* @__PURE__ */ r.jsxs(Te, { shadow: "xl", withinPortal: !0, children: [
|
|
28433
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(j, { children: e.label }) }),
|
|
28434
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Mt, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(Mt.Item, { icon: o.icon, children: o.text }, o.key)) }) })
|
|
28398
28435
|
] }),
|
|
28399
28436
|
/* @__PURE__ */ r.jsx(io, { type: "source", position: n, isConnectable: t })
|
|
28400
28437
|
] });
|
|
28401
28438
|
});
|
|
28402
28439
|
const Yz = {
|
|
28403
|
-
interaction:
|
|
28440
|
+
interaction: Uz
|
|
28404
28441
|
}, Xz = k(() => {
|
|
28405
|
-
const e =
|
|
28442
|
+
const e = Oe(), {
|
|
28406
28443
|
edges: t,
|
|
28407
28444
|
nodes: n
|
|
28408
28445
|
} = Hz(e);
|
|
@@ -28570,7 +28607,7 @@ const tM = k(() => {
|
|
|
28570
28607
|
config: t
|
|
28571
28608
|
}) {
|
|
28572
28609
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28573
|
-
/* @__PURE__ */ r.jsx(
|
|
28610
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.default_value, onChange: (n) => t.setDefaultValue(n.currentTarget.checked), label: "Default Checked" }),
|
|
28574
28611
|
/* @__PURE__ */ r.jsx(ia, { label: "Description", value: t.description, onChange: t.setDescription, styles: {
|
|
28575
28612
|
root: {
|
|
28576
28613
|
flexGrow: 1,
|
|
@@ -28598,8 +28635,8 @@ const tM = k(() => {
|
|
|
28598
28635
|
}) {
|
|
28599
28636
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28600
28637
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
28601
|
-
/* @__PURE__ */ r.jsx(
|
|
28602
|
-
/* @__PURE__ */ r.jsx(
|
|
28638
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
|
|
28639
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.allowSingleDateInRange, onChange: (n) => t.setAllowSingleDateInRange(n.currentTarget.checked), label: "Allow choosing 1 day" })
|
|
28603
28640
|
] }),
|
|
28604
28641
|
/* @__PURE__ */ r.jsx(A, { data: sM, label: "Display Format", value: t.inputFormat, onChange: t.setInputFormat }),
|
|
28605
28642
|
/* @__PURE__ */ r.jsx(
|
|
@@ -28611,7 +28648,7 @@ const tM = k(() => {
|
|
|
28611
28648
|
onChange: t.setDefaultValue
|
|
28612
28649
|
}
|
|
28613
28650
|
),
|
|
28614
|
-
/* @__PURE__ */ r.jsx(
|
|
28651
|
+
/* @__PURE__ */ r.jsx(K, { label: "Max Days", min: 0, value: t.max_days, onChange: t.setMaxDays, hideControls: !0, sx: {
|
|
28615
28652
|
width: "149px"
|
|
28616
28653
|
} })
|
|
28617
28654
|
] });
|
|
@@ -28655,7 +28692,7 @@ const tM = k(() => {
|
|
|
28655
28692
|
});
|
|
28656
28693
|
}, s = t.static_options, i = [...s];
|
|
28657
28694
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28658
|
-
/* @__PURE__ */ r.jsx(
|
|
28695
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
|
|
28659
28696
|
/* @__PURE__ */ r.jsx(I, { label: "Width", description: "At least 160px", value: t.min_width, onChange: (a) => t.setMinWidth(a.currentTarget.value), placeholder: "default: 200px" }),
|
|
28660
28697
|
/* @__PURE__ */ r.jsx(D, { label: "Configure options", labelPosition: "center" }),
|
|
28661
28698
|
/* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
|
|
@@ -28679,7 +28716,7 @@ const tM = k(() => {
|
|
|
28679
28716
|
}, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: "Using query" }) })
|
|
28680
28717
|
] }),
|
|
28681
28718
|
s.length > 0 && /* @__PURE__ */ r.jsx(nr, { label: "Default Selection", data: i, value: [...t.default_value], onChange: t.setDefaultValue }),
|
|
28682
|
-
s.map((a, o) => /* @__PURE__ */ r.jsxs(
|
|
28719
|
+
s.map((a, o) => /* @__PURE__ */ r.jsxs(Kt, { gap: 10, sx: {
|
|
28683
28720
|
position: "relative"
|
|
28684
28721
|
}, pr: "40px", children: [
|
|
28685
28722
|
/* @__PURE__ */ r.jsx(I, { label: "Label", required: !0, value: t.static_options[o].label, onChange: (l) => {
|
|
@@ -28703,7 +28740,7 @@ const tM = k(() => {
|
|
|
28703
28740
|
}, mx: "auto", children: "Add an Option" })
|
|
28704
28741
|
] }),
|
|
28705
28742
|
/* @__PURE__ */ r.jsx(D, { label: "Or fetch options from database", labelPosition: "center" }),
|
|
28706
|
-
/* @__PURE__ */ r.jsx(
|
|
28743
|
+
/* @__PURE__ */ r.jsx(K, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
28707
28744
|
/* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
28708
28745
|
/* @__PURE__ */ r.jsx(mu, {})
|
|
28709
28746
|
] });
|
|
@@ -28720,7 +28757,7 @@ const tM = k(() => {
|
|
|
28720
28757
|
value: ""
|
|
28721
28758
|
}, ...s];
|
|
28722
28759
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28723
|
-
/* @__PURE__ */ r.jsx(
|
|
28760
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
|
|
28724
28761
|
/* @__PURE__ */ r.jsx(I, { label: "Width", value: t.width, onChange: (a) => t.setWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
28725
28762
|
/* @__PURE__ */ r.jsx(D, { label: "Configure options", labelPosition: "center" }),
|
|
28726
28763
|
/* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
|
|
@@ -28744,7 +28781,7 @@ const tM = k(() => {
|
|
|
28744
28781
|
}, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: "Using query" }) })
|
|
28745
28782
|
] }),
|
|
28746
28783
|
s.length > 0 && /* @__PURE__ */ r.jsx(A, { label: "Default Selection", data: i, value: t.default_value, onChange: t.setDefaultValue }),
|
|
28747
|
-
s.map((a, o) => /* @__PURE__ */ r.jsxs(
|
|
28784
|
+
s.map((a, o) => /* @__PURE__ */ r.jsxs(Kt, { gap: 10, sx: {
|
|
28748
28785
|
position: "relative"
|
|
28749
28786
|
}, pr: "40px", children: [
|
|
28750
28787
|
/* @__PURE__ */ r.jsx(I, { label: "Label", required: !0, value: t.static_options[o].label, onChange: (l) => {
|
|
@@ -28768,7 +28805,7 @@ const tM = k(() => {
|
|
|
28768
28805
|
}, mx: "auto", children: "Add an Option" })
|
|
28769
28806
|
] }),
|
|
28770
28807
|
/* @__PURE__ */ r.jsx(D, { label: "Or fetch options from database", labelPosition: "center" }),
|
|
28771
|
-
/* @__PURE__ */ r.jsx(
|
|
28808
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.default_selection_count === 1, onChange: (a) => t.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: "Select the first option by default" }),
|
|
28772
28809
|
/* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
28773
28810
|
/* @__PURE__ */ r.jsx(mu, {})
|
|
28774
28811
|
] });
|
|
@@ -28779,7 +28816,7 @@ const tM = k(() => {
|
|
|
28779
28816
|
/* @__PURE__ */ r.jsx(I, { label: "Default Value", value: t.default_value, onChange: (n) => {
|
|
28780
28817
|
t.setDefaultValue(n.currentTarget.value);
|
|
28781
28818
|
} }),
|
|
28782
|
-
/* @__PURE__ */ r.jsx(
|
|
28819
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" })
|
|
28783
28820
|
] });
|
|
28784
28821
|
}), dM = `
|
|
28785
28822
|
// row
|
|
@@ -28799,11 +28836,11 @@ const tM = k(() => {
|
|
|
28799
28836
|
config: t
|
|
28800
28837
|
}) {
|
|
28801
28838
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28802
|
-
/* @__PURE__ */ r.jsx(
|
|
28839
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
|
|
28803
28840
|
/* @__PURE__ */ r.jsx(I, { label: "Min-width", value: t.min_width, onChange: (n) => t.setMinWidth(n.currentTarget.value), placeholder: "200px" }),
|
|
28804
28841
|
/* @__PURE__ */ r.jsx(D, { label: "Fetch options from database", labelPosition: "center" }),
|
|
28805
|
-
/* @__PURE__ */ r.jsx(
|
|
28806
|
-
/* @__PURE__ */ r.jsx(
|
|
28842
|
+
/* @__PURE__ */ r.jsx(U, { checked: t.treeCheckStrictly, onChange: (n) => t.setTreeCheckStrictly(n.currentTarget.checked), label: "Parent and children nodes are not associated" }),
|
|
28843
|
+
/* @__PURE__ */ r.jsx(K, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
28807
28844
|
/* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
28808
28845
|
/* @__PURE__ */ r.jsx(uM, {})
|
|
28809
28846
|
] });
|
|
@@ -28860,7 +28897,7 @@ const tM = k(() => {
|
|
|
28860
28897
|
/* @__PURE__ */ r.jsxs(w, { children: [
|
|
28861
28898
|
/* @__PURE__ */ r.jsxs(b, { noWrap: !0, children: [
|
|
28862
28899
|
/* @__PURE__ */ r.jsx(
|
|
28863
|
-
|
|
28900
|
+
K,
|
|
28864
28901
|
{
|
|
28865
28902
|
label: "Placement Order",
|
|
28866
28903
|
required: !0,
|
|
@@ -28872,7 +28909,7 @@ const tM = k(() => {
|
|
|
28872
28909
|
}
|
|
28873
28910
|
}
|
|
28874
28911
|
),
|
|
28875
|
-
t.auto_submit_supported && /* @__PURE__ */ r.jsx(
|
|
28912
|
+
t.auto_submit_supported && /* @__PURE__ */ r.jsx(U, { label: "Submit automatically", checked: t.auto_submit, onChange: (i) => t.setAutoSubmit(i.currentTarget.checked), mt: 22 })
|
|
28876
28913
|
] }),
|
|
28877
28914
|
/* @__PURE__ */ r.jsx(nr, { label: "Visible in...", data: n.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
|
|
28878
28915
|
/* @__PURE__ */ r.jsx(I, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (i) => {
|
|
@@ -28949,7 +28986,7 @@ const tM = k(() => {
|
|
|
28949
28986
|
userSelect: "none",
|
|
28950
28987
|
cursor: "default"
|
|
28951
28988
|
}, children: "Manage Filters" }) }),
|
|
28952
|
-
/* @__PURE__ */ r.jsx(
|
|
28989
|
+
/* @__PURE__ */ r.jsx(Kt, { justify: "space-between", align: "center", px: 12, children: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
28953
28990
|
/* @__PURE__ */ r.jsxs(C.Group, { children: [
|
|
28954
28991
|
/* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: o, children: "Select All" }),
|
|
28955
28992
|
/* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: l, children: "Clear Selection" })
|
|
@@ -28969,7 +29006,7 @@ const tM = k(() => {
|
|
|
28969
29006
|
/* @__PURE__ */ r.jsx(z, { sx: {
|
|
28970
29007
|
flexGrow: 1,
|
|
28971
29008
|
overflow: "auto"
|
|
28972
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
29009
|
+
}, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
|
|
28973
29010
|
tableLayout: "fixed"
|
|
28974
29011
|
}, children: [
|
|
28975
29012
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
@@ -28989,7 +29026,7 @@ const tM = k(() => {
|
|
|
28989
29026
|
}, children: "Action" })
|
|
28990
29027
|
] }) }),
|
|
28991
29028
|
/* @__PURE__ */ r.jsx("tbody", { children: n.content.filters.sortedList.map((c) => /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
28992
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
29029
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: c.id, styles: {
|
|
28993
29030
|
input: {
|
|
28994
29031
|
cursor: "pointer"
|
|
28995
29032
|
}
|
|
@@ -29071,14 +29108,14 @@ const tM = k(() => {
|
|
|
29071
29108
|
/* @__PURE__ */ r.jsx(D, { mb: -10, label: "Style", labelPosition: "center", variant: "dashed" }),
|
|
29072
29109
|
/* @__PURE__ */ r.jsxs(w, { spacing: 20, children: [
|
|
29073
29110
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, align: "top", children: [
|
|
29074
|
-
/* @__PURE__ */ r.jsx(
|
|
29111
|
+
/* @__PURE__ */ r.jsx(K, { label: "Width", min: 1, max: 36, step: 1, precision: 0, rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "of 36 columns" }), styles: {
|
|
29075
29112
|
rightSection: {
|
|
29076
29113
|
width: "110px"
|
|
29077
29114
|
}
|
|
29078
29115
|
}, value: e.layout.w, onChange: (n) => {
|
|
29079
29116
|
n && e.layout.setWidth(n);
|
|
29080
29117
|
} }),
|
|
29081
|
-
/* @__PURE__ */ r.jsx(
|
|
29118
|
+
/* @__PURE__ */ r.jsx(K, { label: "Height", rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "px" }), styles: {
|
|
29082
29119
|
rightSection: {
|
|
29083
29120
|
width: "40px"
|
|
29084
29121
|
}
|
|
@@ -29086,7 +29123,7 @@ const tM = k(() => {
|
|
|
29086
29123
|
n && e.layout.setHeight(n);
|
|
29087
29124
|
} })
|
|
29088
29125
|
] }),
|
|
29089
|
-
/* @__PURE__ */ r.jsx(
|
|
29126
|
+
/* @__PURE__ */ r.jsx(U, { ml: 6, label: "Border", checked: t.border.enabled, onChange: (n) => t.border.setEnabled(n.currentTarget.checked) })
|
|
29090
29127
|
] })
|
|
29091
29128
|
] });
|
|
29092
29129
|
}), wM = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
|
|
@@ -29119,10 +29156,10 @@ const tM = k(() => {
|
|
|
29119
29156
|
panel: e
|
|
29120
29157
|
} = It();
|
|
29121
29158
|
return /* @__PURE__ */ r.jsx(w, { spacing: 6, mb: 10, children: /* @__PURE__ */ r.jsxs(b, { pl: 6, position: "left", spacing: 20, children: [
|
|
29122
|
-
/* @__PURE__ */ r.jsx(
|
|
29159
|
+
/* @__PURE__ */ r.jsx(U, { size: "sm", checked: e.title.show, onChange: (t) => e.title.setShow(t.currentTarget.checked), label: "Show Title", sx: {
|
|
29123
29160
|
userSelect: "none"
|
|
29124
29161
|
} }),
|
|
29125
|
-
/* @__PURE__ */ r.jsx(
|
|
29162
|
+
/* @__PURE__ */ r.jsx(U, { size: "sm", checked: !0, disabled: !0, label: "Use name as title" })
|
|
29126
29163
|
] }) });
|
|
29127
29164
|
});
|
|
29128
29165
|
function CM() {
|
|
@@ -29190,7 +29227,7 @@ function fu({
|
|
|
29190
29227
|
});
|
|
29191
29228
|
return e.length === 0 ? /* @__PURE__ */ r.jsx(z, { sx: {
|
|
29192
29229
|
height: "5em"
|
|
29193
|
-
} }) : /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsxs(
|
|
29230
|
+
} }) : /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsxs(Ue, { sx: kM, children: [
|
|
29194
29231
|
/* @__PURE__ */ r.jsx("thead", { children: n.getHeaderGroups().map((s) => /* @__PURE__ */ r.jsx("tr", { children: s.headers.map((i) => /* @__PURE__ */ r.jsxs("th", { style: {
|
|
29195
29232
|
width: i.getSize()
|
|
29196
29233
|
}, children: [
|
|
@@ -29283,7 +29320,7 @@ const TM = [{
|
|
|
29283
29320
|
}, MM = ({
|
|
29284
29321
|
queryID: e
|
|
29285
29322
|
}) => {
|
|
29286
|
-
const t =
|
|
29323
|
+
const t = Oe(), {
|
|
29287
29324
|
state: n,
|
|
29288
29325
|
error: s
|
|
29289
29326
|
} = t.getDataStuffByID(e), i = L.useMemo(() => t.queries.findByID(e), [t, e]);
|
|
@@ -29295,7 +29332,7 @@ const TM = [{
|
|
|
29295
29332
|
moreActions: t,
|
|
29296
29333
|
refreshOnMount: n
|
|
29297
29334
|
}) => {
|
|
29298
|
-
const s =
|
|
29335
|
+
const s = Oe(), {
|
|
29299
29336
|
data: i,
|
|
29300
29337
|
state: a
|
|
29301
29338
|
} = s.getDataStuffByID(e), o = a === "loading", l = qe(() => {
|
|
@@ -29338,7 +29375,7 @@ const TM = [{
|
|
|
29338
29375
|
t.editor.setPath(["_QUERIES_", l]);
|
|
29339
29376
|
};
|
|
29340
29377
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
29341
|
-
/* @__PURE__ */ r.jsx(oh, { opened: i, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(
|
|
29378
|
+
/* @__PURE__ */ r.jsx(oh, { opened: i, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(U.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(w, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ r.jsx(U, { label: l.label, value: l.value }, l.value)) }) }) }),
|
|
29342
29379
|
/* @__PURE__ */ r.jsxs(w, { spacing: 6, children: [
|
|
29343
29380
|
/* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(C, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(sp, { size: 16 }), onClick: () => a(!0), children: "Click me to choose queries for this panel" }) }),
|
|
29344
29381
|
s.queryIDs.length === 1 && /* @__PURE__ */ r.jsx(xi, { id: s.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(fe, { label: "Open this query", children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => o(s.queryIDs[0]), children: /* @__PURE__ */ r.jsx(ei, { size: 16 }) }) }) }),
|
|
@@ -29382,7 +29419,7 @@ const TM = [{
|
|
|
29382
29419
|
}
|
|
29383
29420
|
}, children: /* @__PURE__ */ r.jsx(nu, { panel: e }) })
|
|
29384
29421
|
] }) }) });
|
|
29385
|
-
}),
|
|
29422
|
+
}), Us = {
|
|
29386
29423
|
name: "new_var",
|
|
29387
29424
|
size: "1rem",
|
|
29388
29425
|
weight: "initial",
|
|
@@ -29423,10 +29460,10 @@ class RM {
|
|
|
29423
29460
|
}));
|
|
29424
29461
|
}
|
|
29425
29462
|
addNew() {
|
|
29426
|
-
const t = this.panel.variables.filter((n) => n.name.startsWith(
|
|
29463
|
+
const t = this.panel.variables.filter((n) => n.name.startsWith(Us.name)).length;
|
|
29427
29464
|
this.panel.addVariable(Pe({
|
|
29428
|
-
...
|
|
29429
|
-
name: `${
|
|
29465
|
+
...Us,
|
|
29466
|
+
name: `${Us.name}${t || ""}`
|
|
29430
29467
|
})), this.selected = ll(this.panel.variables);
|
|
29431
29468
|
}
|
|
29432
29469
|
select(t) {
|
|
@@ -29562,7 +29599,7 @@ const PM = L.forwardRef($M), VM = L.forwardRef(function({
|
|
|
29562
29599
|
label: "Continuous Color",
|
|
29563
29600
|
value: "continuous"
|
|
29564
29601
|
}], value: t.color.type, onChange: o }),
|
|
29565
|
-
i === "static" && /* @__PURE__ */ r.jsx(
|
|
29602
|
+
i === "static" && /* @__PURE__ */ r.jsx(Ke, { value: t.color.staticColor, onChange: (l) => a("color.staticColor", l) }),
|
|
29566
29603
|
i === "continuous" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
29567
29604
|
/* @__PURE__ */ r.jsx(PM, { label: "Value Range", value: t.color.valueRange, type: "number", onChange: (l) => a("color.valueRange", l) }),
|
|
29568
29605
|
/* @__PURE__ */ r.jsx(OM, { label: "Color Range", value: t.color.colorRange, onChange: (l) => a("color.colorRange", l) })
|
|
@@ -29600,7 +29637,7 @@ const PM = L.forwardRef($M), VM = L.forwardRef(function({
|
|
|
29600
29637
|
/* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(tn, { size: 16 }), color: "red", variant: "light", onClick: i, children: "Delete this Variable" })
|
|
29601
29638
|
] });
|
|
29602
29639
|
}), BM = k((e) => {
|
|
29603
|
-
const t = _t(() =>
|
|
29640
|
+
const t = _t(() => UI(e.variable), [e.variable]), n = () => e.uiModel.remove(e.variable);
|
|
29604
29641
|
return /* @__PURE__ */ r.jsxs(w, { "data-testid": "variable-editor", align: "stretch", children: [
|
|
29605
29642
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
29606
29643
|
/* @__PURE__ */ r.jsx(C, { variant: "subtle", size: "xs", disabled: !t.changed, color: "red", onClick: t.reset, leftIcon: /* @__PURE__ */ r.jsx(is, { size: 18 }), children: "Revert Changes" }),
|
|
@@ -29675,14 +29712,14 @@ const HM = k(({
|
|
|
29675
29712
|
const i = QM(), a = e !== n;
|
|
29676
29713
|
return /* @__PURE__ */ r.jsx(A, { label: "Visualization", value: n, searchable: !0, onChange: s, data: i, rightSection: /* @__PURE__ */ r.jsx(W, { disabled: !a, onClick: () => t(n), children: /* @__PURE__ */ r.jsx(he, { size: 20 }) }), maxDropdownHeight: 600 });
|
|
29677
29714
|
}), Ho = [];
|
|
29678
|
-
function
|
|
29715
|
+
function KM(e, t) {
|
|
29679
29716
|
try {
|
|
29680
29717
|
return e.resolveComponent(t).createConfig();
|
|
29681
29718
|
} catch {
|
|
29682
29719
|
return null;
|
|
29683
29720
|
}
|
|
29684
29721
|
}
|
|
29685
|
-
function
|
|
29722
|
+
function UM() {
|
|
29686
29723
|
const {
|
|
29687
29724
|
data: e,
|
|
29688
29725
|
panel: {
|
|
@@ -29721,7 +29758,7 @@ const YM = k(() => {
|
|
|
29721
29758
|
} = Ht(Ot), s = L.useCallback((d) => {
|
|
29722
29759
|
if (d === t.type)
|
|
29723
29760
|
return;
|
|
29724
|
-
const u =
|
|
29761
|
+
const u = KM(n, d);
|
|
29725
29762
|
t.setType(d), t.setConf(u || {});
|
|
29726
29763
|
}, [t.type]), i = (d) => {
|
|
29727
29764
|
try {
|
|
@@ -29732,7 +29769,7 @@ const YM = k(() => {
|
|
|
29732
29769
|
}, a = L.useMemo(() => {
|
|
29733
29770
|
var d;
|
|
29734
29771
|
return (d = Ho.find((u) => u.value === t.type)) == null ? void 0 : d.Panel;
|
|
29735
|
-
}, [t.type, Ho]), o =
|
|
29772
|
+
}, [t.type, Ho]), o = UM(), l = a ? Jr(a, {
|
|
29736
29773
|
data: e,
|
|
29737
29774
|
conf: t.conf,
|
|
29738
29775
|
setConf: t.setConf
|
|
@@ -29936,7 +29973,7 @@ const eL = k(({
|
|
|
29936
29973
|
userSelect: "none",
|
|
29937
29974
|
cursor: "default"
|
|
29938
29975
|
}, children: "Manage Queries" }) }),
|
|
29939
|
-
/* @__PURE__ */ r.jsxs(
|
|
29976
|
+
/* @__PURE__ */ r.jsxs(Kt, { justify: "space-between", align: "center", px: 12, children: [
|
|
29940
29977
|
/* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
29941
29978
|
/* @__PURE__ */ r.jsxs(C.Group, { children: [
|
|
29942
29979
|
/* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: c, children: "Select All" }),
|
|
@@ -29959,7 +29996,7 @@ const eL = k(({
|
|
|
29959
29996
|
/* @__PURE__ */ r.jsx(z, { sx: {
|
|
29960
29997
|
flexGrow: 1,
|
|
29961
29998
|
overflow: "auto"
|
|
29962
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
29999
|
+
}, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
|
|
29963
30000
|
tableLayout: "fixed"
|
|
29964
30001
|
}, children: [
|
|
29965
30002
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
@@ -29987,7 +30024,7 @@ const eL = k(({
|
|
|
29987
30024
|
var x;
|
|
29988
30025
|
const p = ((x = u[h.id]) == null ? void 0 : x.length) ?? 0;
|
|
29989
30026
|
return /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
29990
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
30027
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: h.id, styles: {
|
|
29991
30028
|
input: {
|
|
29992
30029
|
cursor: "pointer"
|
|
29993
30030
|
}
|
|
@@ -30062,7 +30099,7 @@ const eL = k(({
|
|
|
30062
30099
|
const {
|
|
30063
30100
|
columns: t
|
|
30064
30101
|
} = e;
|
|
30065
|
-
return t.loading ? /* @__PURE__ */ r.jsx(gu, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ r.jsxs(
|
|
30102
|
+
return t.loading ? /* @__PURE__ */ r.jsx(gu, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
30066
30103
|
width: "auto",
|
|
30067
30104
|
minWidth: "1000px",
|
|
30068
30105
|
alignSelf: "flex-start",
|
|
@@ -30122,7 +30159,7 @@ const eL = k(({
|
|
|
30122
30159
|
const {
|
|
30123
30160
|
indexes: t
|
|
30124
30161
|
} = e, n = t.data;
|
|
30125
|
-
return /* @__PURE__ */ r.jsxs(
|
|
30162
|
+
return /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
30126
30163
|
width: "auto",
|
|
30127
30164
|
minWidth: "950px",
|
|
30128
30165
|
alignSelf: "flex-start",
|
|
@@ -30170,7 +30207,7 @@ const eL = k(({
|
|
|
30170
30207
|
const {
|
|
30171
30208
|
indexes: t
|
|
30172
30209
|
} = e, n = t.data;
|
|
30173
|
-
return /* @__PURE__ */ r.jsxs(
|
|
30210
|
+
return /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
30174
30211
|
width: "auto",
|
|
30175
30212
|
minWidth: "850px",
|
|
30176
30213
|
alignSelf: "flex-start",
|
|
@@ -30351,7 +30388,7 @@ const hL = k(({
|
|
|
30351
30388
|
e.loadTablesIfEmpty();
|
|
30352
30389
|
}, [e]), e.tables.error ? /* @__PURE__ */ r.jsx(j, { color: "red", size: "md", align: "center", sx: {
|
|
30353
30390
|
fontFamily: "monospace"
|
|
30354
|
-
}, children: e.tables.error }) : /* @__PURE__ */ r.jsxs(
|
|
30391
|
+
}, children: e.tables.error }) : /* @__PURE__ */ r.jsxs(Kt, { sx: {
|
|
30355
30392
|
height: "100%"
|
|
30356
30393
|
}, children: [
|
|
30357
30394
|
/* @__PURE__ */ r.jsx(z, { w: 300, sx: {
|
|
@@ -30466,7 +30503,7 @@ const hL = k(({
|
|
|
30466
30503
|
}
|
|
30467
30504
|
}
|
|
30468
30505
|
}, disabled: i, value: e.key, onChange: l });
|
|
30469
|
-
}),
|
|
30506
|
+
}), Ko = de((e, t) => {
|
|
30470
30507
|
const {
|
|
30471
30508
|
label: n,
|
|
30472
30509
|
description: s,
|
|
@@ -30505,8 +30542,8 @@ const hL = k(({
|
|
|
30505
30542
|
e.setKey(i), e.setType(s);
|
|
30506
30543
|
} }),
|
|
30507
30544
|
/* @__PURE__ */ r.jsx(D, { mt: 10, mb: -10, variant: "dashed", label: "Conditions", labelPosition: "center" }),
|
|
30508
|
-
/* @__PURE__ */ r.jsx(nr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent:
|
|
30509
|
-
e.typedAsHTTP && /* @__PURE__ */ r.jsx(nr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent:
|
|
30545
|
+
/* @__PURE__ */ r.jsx(nr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent: Ko, maxDropdownHeight: 500 }),
|
|
30546
|
+
e.typedAsHTTP && /* @__PURE__ */ r.jsx(nr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent: Ko, maxDropdownHeight: 500 }),
|
|
30510
30547
|
/* @__PURE__ */ r.jsx(D, { mt: 20, mb: 10, variant: "dashed" }),
|
|
30511
30548
|
/* @__PURE__ */ r.jsx(sL, { queryModel: e })
|
|
30512
30549
|
] }) });
|
|
@@ -30514,14 +30551,14 @@ const hL = k(({
|
|
|
30514
30551
|
function SL({
|
|
30515
30552
|
content: e
|
|
30516
30553
|
}) {
|
|
30517
|
-
return /* @__PURE__ */ r.jsxs(
|
|
30518
|
-
/* @__PURE__ */ r.jsx(
|
|
30519
|
-
/* @__PURE__ */ r.jsx(
|
|
30554
|
+
return /* @__PURE__ */ r.jsxs(Te, { width: "60vw", shadow: "md", children: [
|
|
30555
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(W, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(wl, {}) }) }),
|
|
30556
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(rn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
|
|
30520
30557
|
] });
|
|
30521
30558
|
}
|
|
30522
30559
|
const CL = k(() => {
|
|
30523
30560
|
const t = [...le().globalSQLSnippets.list];
|
|
30524
|
-
return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(
|
|
30561
|
+
return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(Ue, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
|
|
30525
30562
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
30526
30563
|
/* @__PURE__ */ r.jsx("th", { children: "Key" }),
|
|
30527
30564
|
/* @__PURE__ */ r.jsx("th", { children: "Value" })
|
|
@@ -30594,7 +30631,7 @@ WHERE
|
|
|
30594
30631
|
}
|
|
30595
30632
|
}, children: "See Query Variables" })
|
|
30596
30633
|
] });
|
|
30597
|
-
}),
|
|
30634
|
+
}), Uo = {
|
|
30598
30635
|
pre: ["function build_request({ context, filters }, utils) {", " // build the quest", " return { method: 'POST', url: '/', params: {}, headers: {}, data: {} }", "}"].join(`
|
|
30599
30636
|
`),
|
|
30600
30637
|
post: ["function process_result(res, utils, state) {", " // your code goes here", " return data", "}"].join(`
|
|
@@ -30611,8 +30648,8 @@ WHERE
|
|
|
30611
30648
|
] }),
|
|
30612
30649
|
/* @__PURE__ */ r.jsx(m.Panel, { value: "pre_process", sx: {
|
|
30613
30650
|
position: "relative"
|
|
30614
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue:
|
|
30615
|
-
/* @__PURE__ */ r.jsx(m.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue:
|
|
30651
|
+
}, p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Uo.pre }) }),
|
|
30652
|
+
/* @__PURE__ */ r.jsx(m.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Uo.post }) })
|
|
30616
30653
|
] }) : null), IL = k(({
|
|
30617
30654
|
queryID: e,
|
|
30618
30655
|
usage: t
|
|
@@ -30630,7 +30667,7 @@ WHERE
|
|
|
30630
30667
|
}, i = (a) => {
|
|
30631
30668
|
n.setPath(["_VIEWS_", a]);
|
|
30632
30669
|
};
|
|
30633
|
-
return /* @__PURE__ */ r.jsx(w, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(
|
|
30670
|
+
return /* @__PURE__ */ r.jsx(w, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, sx: {
|
|
30634
30671
|
tableLayout: "fixed"
|
|
30635
30672
|
}, children: [
|
|
30636
30673
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
@@ -30677,9 +30714,9 @@ WHERE
|
|
|
30677
30714
|
queryModel: e
|
|
30678
30715
|
}) => {
|
|
30679
30716
|
const t = T(() => _.groupBy(e.dependencies, "type"), [e.dependencies]), n = T(() => e.dependencies.some((i) => !i.valid), [e.dependencies]), s = e.dependencies.length > 0;
|
|
30680
|
-
return s ? /* @__PURE__ */ r.jsxs(
|
|
30681
|
-
/* @__PURE__ */ r.jsx(
|
|
30682
|
-
/* @__PURE__ */ r.jsx(
|
|
30717
|
+
return s ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
|
|
30718
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: n ? "red" : "green", disabled: !s, leftIcon: n ? /* @__PURE__ */ r.jsx(Si, { size: 16 }) : /* @__PURE__ */ r.jsx(cp, { size: 16 }), children: "Dependency" }) }),
|
|
30719
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Mt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(t).map(([i, a]) => /* @__PURE__ */ r.jsxs(Mt.Item, { children: [
|
|
30683
30720
|
/* @__PURE__ */ r.jsx(j, { fw: "bold", ff: "monospace", children: i }),
|
|
30684
30721
|
/* @__PURE__ */ r.jsx(Mt, { withPadding: !0, size: 14, sx: {
|
|
30685
30722
|
fontFamily: "monospace",
|
|
@@ -30743,7 +30780,7 @@ WHERE
|
|
|
30743
30780
|
} }), AL = k(({
|
|
30744
30781
|
value: e
|
|
30745
30782
|
}) => {
|
|
30746
|
-
const n =
|
|
30783
|
+
const n = Oe().payloadForSQL, s = L.useMemo(() => Ii(e, n), [e, n]);
|
|
30747
30784
|
return /* @__PURE__ */ r.jsx(LL, { height: "100%", value: s });
|
|
30748
30785
|
}), Yo = {
|
|
30749
30786
|
pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
|
|
@@ -30823,7 +30860,7 @@ WHERE
|
|
|
30823
30860
|
}), OL = k(({
|
|
30824
30861
|
value: e
|
|
30825
30862
|
}) => {
|
|
30826
|
-
const n =
|
|
30863
|
+
const n = Oe().payloadForSQL, s = T(() => Ii(e, n), [e, n]);
|
|
30827
30864
|
return /* @__PURE__ */ r.jsx(ka, { height: "100%", value: s });
|
|
30828
30865
|
}), $L = k(({
|
|
30829
30866
|
item: e,
|
|
@@ -30954,7 +30991,7 @@ WHERE
|
|
|
30954
30991
|
userSelect: "none",
|
|
30955
30992
|
cursor: "default"
|
|
30956
30993
|
}, children: "Manage SQL Snippets" }) }),
|
|
30957
|
-
/* @__PURE__ */ r.jsxs(
|
|
30994
|
+
/* @__PURE__ */ r.jsxs(Kt, { justify: "space-between", align: "center", px: 12, children: [
|
|
30958
30995
|
/* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
30959
30996
|
/* @__PURE__ */ r.jsxs(C.Group, { children: [
|
|
30960
30997
|
/* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: c, children: "Select All" }),
|
|
@@ -30977,7 +31014,7 @@ WHERE
|
|
|
30977
31014
|
/* @__PURE__ */ r.jsx(z, { sx: {
|
|
30978
31015
|
flexGrow: 1,
|
|
30979
31016
|
overflow: "auto"
|
|
30980
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
31017
|
+
}, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
|
|
30981
31018
|
tableLayout: "fixed"
|
|
30982
31019
|
}, children: [
|
|
30983
31020
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
@@ -30998,7 +31035,7 @@ WHERE
|
|
|
30998
31035
|
var x;
|
|
30999
31036
|
const p = ((x = u[h.key]) == null ? void 0 : x.length) ?? 0;
|
|
31000
31037
|
return /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
31001
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
31038
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: h.key, styles: {
|
|
31002
31039
|
input: {
|
|
31003
31040
|
cursor: "pointer"
|
|
31004
31041
|
}
|
|
@@ -31073,10 +31110,10 @@ function QL(e) {
|
|
|
31073
31110
|
function HL(e) {
|
|
31074
31111
|
return e.length === 2 && e[0] === "_SQL_SNIPPETS_";
|
|
31075
31112
|
}
|
|
31076
|
-
function
|
|
31113
|
+
function KL(e) {
|
|
31077
31114
|
return e.length === 2 && e[0] === "_QUERIES_";
|
|
31078
31115
|
}
|
|
31079
|
-
function
|
|
31116
|
+
function UL(e) {
|
|
31080
31117
|
return e.length === 1 && e[0] === "_QUERIES_";
|
|
31081
31118
|
}
|
|
31082
31119
|
function YL(e) {
|
|
@@ -31089,7 +31126,7 @@ const JL = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
|
|
|
31089
31126
|
height: "100%"
|
|
31090
31127
|
}, p: "sm", children: /* @__PURE__ */ r.jsx(yu, {}) })), ZL = k(() => {
|
|
31091
31128
|
const e = le().editor, t = e.path;
|
|
31092
|
-
return BL(t) ? /* @__PURE__ */ r.jsx(JL, {}) : qL(t) ? /* @__PURE__ */ r.jsx(yM, {}) : WL(t) ? /* @__PURE__ */ r.jsx(bM, {}) : GL(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(gM, { id: t[1] }) }) : QL(t) ? /* @__PURE__ */ r.jsx(VL, {}) : HL(t) ? /* @__PURE__ */ r.jsx(PL, { id: t[1] }) :
|
|
31129
|
+
return BL(t) ? /* @__PURE__ */ r.jsx(JL, {}) : qL(t) ? /* @__PURE__ */ r.jsx(yM, {}) : WL(t) ? /* @__PURE__ */ r.jsx(bM, {}) : GL(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(gM, { id: t[1] }) }) : QL(t) ? /* @__PURE__ */ r.jsx(VL, {}) : HL(t) ? /* @__PURE__ */ r.jsx(PL, { id: t[1] }) : UL(t) ? /* @__PURE__ */ r.jsx(nL, {}) : KL(t) ? /* @__PURE__ */ r.jsx(FL, { id: t[1] }) : YL(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(NL, { id: t[1] }) }) : XL(t) ? /* @__PURE__ */ r.jsx(tL, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r.jsx(z, { children: e.path });
|
|
31093
31130
|
}), eA = k(() => /* @__PURE__ */ r.jsx(ZL, {})), tA = k(() => {
|
|
31094
31131
|
const e = le(), t = () => {
|
|
31095
31132
|
const n = (/* @__PURE__ */ new Date()).getTime().toString(), s = {
|
|
@@ -31097,7 +31134,7 @@ const JL = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
|
|
|
31097
31134
|
key: n,
|
|
31098
31135
|
label: n,
|
|
31099
31136
|
order: e.content.filters.current.length + 1,
|
|
31100
|
-
type:
|
|
31137
|
+
type: Ae.TextInput,
|
|
31101
31138
|
config: Ld(),
|
|
31102
31139
|
visibleInViewsIDs: ["Main"],
|
|
31103
31140
|
auto_submit: !1
|
|
@@ -31336,7 +31373,7 @@ const fA = {
|
|
|
31336
31373
|
h.datasources.replace(d);
|
|
31337
31374
|
}, [d]), L.useEffect(() => {
|
|
31338
31375
|
h.globalSQLSnippets.replace(u);
|
|
31339
|
-
}, [u]), L.useEffect(() => it(() =>
|
|
31376
|
+
}, [u]), L.useEffect(() => it(() => Ut(h.json), (S) => {
|
|
31340
31377
|
o == null || o(S);
|
|
31341
31378
|
}), [h]);
|
|
31342
31379
|
const p = async () => {
|
|
@@ -31362,7 +31399,7 @@ const vu = f.model({
|
|
|
31362
31399
|
version: f.string,
|
|
31363
31400
|
// schema version
|
|
31364
31401
|
filters: Hd,
|
|
31365
|
-
queries:
|
|
31402
|
+
queries: Ud,
|
|
31366
31403
|
sqlSnippets: Yd,
|
|
31367
31404
|
views: Bd,
|
|
31368
31405
|
panels: Gd,
|
|
@@ -31482,7 +31519,7 @@ function bA({
|
|
|
31482
31519
|
create_time: s,
|
|
31483
31520
|
update_time: i,
|
|
31484
31521
|
version: o,
|
|
31485
|
-
filters:
|
|
31522
|
+
filters: Kd(l),
|
|
31486
31523
|
queries: GI(u),
|
|
31487
31524
|
sqlSnippets: HI(h),
|
|
31488
31525
|
mock_context: Cd(p),
|
|
@@ -31559,8 +31596,8 @@ const mR = k(({
|
|
|
31559
31596
|
E.extend(Gp);
|
|
31560
31597
|
E.extend(Qp);
|
|
31561
31598
|
E.extend(Hp);
|
|
31562
|
-
E.extend(Up);
|
|
31563
31599
|
E.extend(Kp);
|
|
31600
|
+
E.extend(Up);
|
|
31564
31601
|
E.extend(Yp);
|
|
31565
31602
|
E.extend(Xp);
|
|
31566
31603
|
E.extend(Jp);
|
|
@@ -31603,7 +31640,7 @@ export {
|
|
|
31603
31640
|
Px as DashboardApiClient,
|
|
31604
31641
|
Vx as DashboardApiFacadeClient,
|
|
31605
31642
|
xR as DashboardEditor,
|
|
31606
|
-
|
|
31643
|
+
Ae as DashboardFilterType,
|
|
31607
31644
|
RD as DashboardMode,
|
|
31608
31645
|
ez as DashboardModel,
|
|
31609
31646
|
Zl as DashboardModelContextProvider,
|
|
@@ -31620,10 +31657,10 @@ export {
|
|
|
31620
31657
|
cD as Panel,
|
|
31621
31658
|
lc as PanelContextProvider,
|
|
31622
31659
|
iD as PanelErrorOrStateMessage,
|
|
31623
|
-
|
|
31660
|
+
KD as PanelModel,
|
|
31624
31661
|
su as PanelRender,
|
|
31625
31662
|
nu as PanelVizSection,
|
|
31626
|
-
|
|
31663
|
+
UD as PanelsModel,
|
|
31627
31664
|
$D as QueriesModel,
|
|
31628
31665
|
mR as ReadOnlyDashboard,
|
|
31629
31666
|
PD as SQLSnippetsModel,
|
|
@@ -31647,7 +31684,7 @@ export {
|
|
|
31647
31684
|
It as useEditPanelContext,
|
|
31648
31685
|
hm as useFullScreenPanelContext,
|
|
31649
31686
|
mD as usePanelFullScreen,
|
|
31650
|
-
|
|
31687
|
+
Oe as useRenderContentModelContext,
|
|
31651
31688
|
tc as useRenderDashboardContext,
|
|
31652
31689
|
kn as useRenderPanelContext
|
|
31653
31690
|
};
|