@devtable/dashboard 4.9.0 → 4.10.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/dashboard.es.js +575 -495
- package/dist/dashboard.umd.js +13 -13
- package/dist/main/use-panel-full-screen.d.ts +68 -0
- package/dist/model/views/view/index.d.ts +326 -0
- package/dist/model/views/view/panels/index.d.ts +117 -0
- package/dist/model/views/view/panels/panel.d.ts +22 -0
- package/dist/model/views/view/panels/style/border.d.ts +11 -0
- package/dist/model/views/view/panels/style/index.d.ts +19 -0
- package/dist/panel/settings/panel-config/description.d.ts +3 -1
- package/dist/panel/settings/panel-config/edit-style.d.ts +4 -0
- package/dist/panel/settings/panel-config/preview-panel.d.ts +3 -1
- package/dist/panel/settings/panel-config/title.d.ts +3 -1
- package/dist/style.css +1 -1
- package/dist/types/dashboard.d.ts +7 -0
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var Pi = Object.defineProperty;
|
|
2
2
|
var Ai = (t, e, n) => e in t ? Pi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var E = (t, e, n) => (Ai(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { Box as q, Text as
|
|
4
|
+
import { Box as q, Text as v, Button as F, Checkbox as He, MultiSelect as dn, Select as j, TextInput as k, Group as g, Stack as w, ActionIcon as z, LoadingOverlay as Tt, Table as Vt, Tabs as V, Textarea as hn, AppShell as pn, Modal as Ce, Divider as ie, SimpleGrid as Li, NumberInput as Be, Menu as ue, Tooltip as qi, Paper as $i, Code as dr, Switch as Fe, useMantineTheme as Ni, ColorInput as ji, ColorSwatch as hr, Slider as zr, createStyles as mn, Popover as Kt, Accordion as P, SegmentedControl as Bi, JsonInput as Gi } from "@mantine/core";
|
|
5
5
|
import { useModals as Wi, ModalsProvider as Er } from "@mantine/modals";
|
|
6
|
-
import { useRequest as zt, useBoolean as mt, useCreation as
|
|
6
|
+
import { useRequest as zt, useBoolean as mt, useCreation as Me, useAsyncEffect as ft, useLatest as pr } from "ahooks";
|
|
7
7
|
import { observer as R } from "mobx-react-lite";
|
|
8
|
-
import x, { forwardRef as fn, useMemo as A, useState as
|
|
8
|
+
import x, { forwardRef as fn, useMemo as A, useState as de, createElement as Et, useEffect as K, useCallback as Rt, useRef as Qi, useContext as Pe, createContext as Yi } from "react";
|
|
9
9
|
import $, { omit as Ot, get as re, values as Or, unset as Ui, isObject as Fr, set as Mr, orderBy as Hi, last as Xi, noop as Ji, defaults as te, isEqual as Ie, defaultsDeep as Ge, findLastIndex as Ki, isEmpty as Pr, isNumber as Zi, isString as Ar, range as eo, cloneDeep as Lr, maxBy as qr, merge as $r, minBy as to, groupBy as no, template as Nr, cloneDeepWith as ro, throttle as ao } from "lodash";
|
|
10
10
|
import { useForm as ke, Controller as _, useFieldArray as we } from "react-hook-form";
|
|
11
11
|
import { DateRangePicker as io } from "@mantine/dates";
|
|
12
12
|
import { Calendar as oo, Refresh as jr, DeviceFloppy as Z, Trash as J, PlaylistAdd as Je, Recycle as Br, Settings as Gr, Filter as so, Database as lo, Share as co, Download as Wr, Code as uo, InfoCircle as ho, ArrowRight as Zt, ArrowsMaximize as po, Copy as mo, ArrowLeft as fo, ArrowsMove as go, ChevronDownRight as bo } from "tabler-icons-react";
|
|
13
13
|
import vo from "axios";
|
|
14
14
|
import { Prism as Ne } from "@mantine/prism";
|
|
15
|
-
import { cast as
|
|
15
|
+
import { cast as Ae, types as b, getRoot as mr, flow as yo, toGenerator as xo, addDisposer as Co } from "mobx-state-tree";
|
|
16
16
|
import { randomId as fe, useClipboard as wo, useElementSize as rn, useInputState as Qr } from "@mantine/hooks";
|
|
17
17
|
import Yr, { RichTextEditor as Ur } from "@mantine/rte";
|
|
18
18
|
import { makeAutoObservable as gn, runInAction as ct, observable as Hr, toJS as Ft, reaction as bn } from "mobx";
|
|
@@ -24,10 +24,10 @@ import { quantile as So } from "d3-array";
|
|
|
24
24
|
import { flexRender as Xr, createColumnHelper as _o, useReactTable as Io, getCoreRowModel as Ro, getSortedRowModel as Do } from "@tanstack/react-table";
|
|
25
25
|
import { useVirtual as ko } from "react-virtual";
|
|
26
26
|
import { useForm as yn } from "@mantine/form";
|
|
27
|
-
import
|
|
27
|
+
import Le from "echarts-for-react/lib/core";
|
|
28
28
|
import { SunburstChart as To, PieChart as Vo, BoxplotChart as zo, BarChart as Jr, LineChart as Kr, ScatterChart as Zr, RadarChart as Eo } from "echarts/charts";
|
|
29
29
|
import * as ne from "echarts/core";
|
|
30
|
-
import { CanvasRenderer as
|
|
30
|
+
import { CanvasRenderer as qe } from "echarts/renderers";
|
|
31
31
|
import "echarts-gl";
|
|
32
32
|
import { GridComponent as Ke, VisualMapComponent as Oo, LegendComponent as Ze, TooltipComponent as et, DataZoomComponent as Mt, MarkLineComponent as Fo } from "echarts/components";
|
|
33
33
|
import { transform as ea } from "echarts-stat";
|
|
@@ -111,12 +111,12 @@ function qo() {
|
|
|
111
111
|
B.unshift("Warning: " + C), Function.prototype.apply.call(console[d], console, B);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
var
|
|
114
|
+
var oe = !1, tt = !1, We = !1, nt = !1, bt = !1, rt;
|
|
115
115
|
rt = Symbol.for("react.module.reference");
|
|
116
116
|
function vt(d) {
|
|
117
|
-
return !!(typeof d == "string" || typeof d == "function" || d === a || d === o || bt || d === i || d === p || d === h || nt || d === y ||
|
|
117
|
+
return !!(typeof d == "string" || typeof d == "function" || d === a || d === o || bt || d === i || d === p || d === h || nt || d === y || oe || tt || We || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === f || d.$$typeof === s || d.$$typeof === l || d.$$typeof === u || d.$$typeof === rt || d.getModuleId !== void 0));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function se(d, C, S) {
|
|
120
120
|
var T = d.displayName;
|
|
121
121
|
if (T)
|
|
122
122
|
return T;
|
|
@@ -126,7 +126,7 @@ function qo() {
|
|
|
126
126
|
function be(d) {
|
|
127
127
|
return d.displayName || "Context";
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function le(d) {
|
|
130
130
|
if (d == null)
|
|
131
131
|
return null;
|
|
132
132
|
if (typeof d.tag == "number" && W("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
@@ -156,14 +156,14 @@ function qo() {
|
|
|
156
156
|
var S = d;
|
|
157
157
|
return be(S._context) + ".Provider";
|
|
158
158
|
case u:
|
|
159
|
-
return
|
|
159
|
+
return se(d, d.render, "ForwardRef");
|
|
160
160
|
case f:
|
|
161
161
|
var T = d.displayName || null;
|
|
162
|
-
return T !== null ? T :
|
|
162
|
+
return T !== null ? T : le(d.type) || "Memo";
|
|
163
163
|
case m: {
|
|
164
164
|
var N = d, B = N._payload, L = N._init;
|
|
165
165
|
try {
|
|
166
|
-
return
|
|
166
|
+
return le(L(B));
|
|
167
167
|
} catch {
|
|
168
168
|
return null;
|
|
169
169
|
}
|
|
@@ -171,7 +171,7 @@ function qo() {
|
|
|
171
171
|
}
|
|
172
172
|
return null;
|
|
173
173
|
}
|
|
174
|
-
var
|
|
174
|
+
var ce = Object.assign, Ve = 0, Bn, Gn, Wn, Qn, Yn, Un, Hn;
|
|
175
175
|
function Xn() {
|
|
176
176
|
}
|
|
177
177
|
Xn.__reactDisabledLog = !0;
|
|
@@ -207,25 +207,25 @@ function qo() {
|
|
|
207
207
|
writable: !0
|
|
208
208
|
};
|
|
209
209
|
Object.defineProperties(console, {
|
|
210
|
-
log:
|
|
210
|
+
log: ce({}, d, {
|
|
211
211
|
value: Bn
|
|
212
212
|
}),
|
|
213
|
-
info:
|
|
213
|
+
info: ce({}, d, {
|
|
214
214
|
value: Gn
|
|
215
215
|
}),
|
|
216
|
-
warn:
|
|
216
|
+
warn: ce({}, d, {
|
|
217
217
|
value: Wn
|
|
218
218
|
}),
|
|
219
|
-
error:
|
|
219
|
+
error: ce({}, d, {
|
|
220
220
|
value: Qn
|
|
221
221
|
}),
|
|
222
|
-
group:
|
|
222
|
+
group: ce({}, d, {
|
|
223
223
|
value: Yn
|
|
224
224
|
}),
|
|
225
|
-
groupCollapsed:
|
|
225
|
+
groupCollapsed: ce({}, d, {
|
|
226
226
|
value: Un
|
|
227
227
|
}),
|
|
228
|
-
groupEnd:
|
|
228
|
+
groupEnd: ce({}, d, {
|
|
229
229
|
value: Hn
|
|
230
230
|
})
|
|
231
231
|
});
|
|
@@ -302,18 +302,18 @@ function qo() {
|
|
|
302
302
|
if (_e && T && typeof _e.stack == "string") {
|
|
303
303
|
for (var M = _e.stack.split(`
|
|
304
304
|
`), ae = T.stack.split(`
|
|
305
|
-
`),
|
|
305
|
+
`), H = M.length - 1, X = ae.length - 1; H >= 1 && X >= 0 && M[H] !== ae[X]; )
|
|
306
306
|
X--;
|
|
307
|
-
for (;
|
|
308
|
-
if (M[
|
|
309
|
-
if (
|
|
307
|
+
for (; H >= 1 && X >= 0; H--, X--)
|
|
308
|
+
if (M[H] !== ae[X]) {
|
|
309
|
+
if (H !== 1 || X !== 1)
|
|
310
310
|
do
|
|
311
|
-
if (
|
|
311
|
+
if (H--, X--, X < 0 || M[H] !== ae[X]) {
|
|
312
312
|
var pe = `
|
|
313
|
-
` + M[
|
|
313
|
+
` + M[H].replace(" at new ", " at ");
|
|
314
314
|
return d.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", d.displayName)), typeof d == "function" && xt.set(d, pe), pe;
|
|
315
315
|
}
|
|
316
|
-
while (
|
|
316
|
+
while (H >= 1 && X >= 0);
|
|
317
317
|
break;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -379,8 +379,8 @@ function qo() {
|
|
|
379
379
|
throw ae.name = "Invariant Violation", ae;
|
|
380
380
|
}
|
|
381
381
|
M = d[L](C, L, T, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
382
|
-
} catch (
|
|
383
|
-
M =
|
|
382
|
+
} catch (H) {
|
|
383
|
+
M = H;
|
|
384
384
|
}
|
|
385
385
|
M && !(M instanceof Error) && (St(N), W("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", S, L, typeof M), St(null)), M instanceof Error && !(M.message in Kn) && (Kn[M.message] = !0, St(N), W("Failed %s type: %s", S, M.message), St(null));
|
|
386
386
|
}
|
|
@@ -435,8 +435,8 @@ function qo() {
|
|
|
435
435
|
}
|
|
436
436
|
function Si(d, C) {
|
|
437
437
|
if (typeof d.ref == "string" && at.current && C && at.current.stateNode !== C) {
|
|
438
|
-
var S =
|
|
439
|
-
Ut[S] || (W('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',
|
|
438
|
+
var S = le(at.current.type);
|
|
439
|
+
Ut[S] || (W('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', le(at.current.type), d.ref), Ut[S] = !0);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
function _i(d, C) {
|
|
@@ -494,9 +494,9 @@ function qo() {
|
|
|
494
494
|
for (B in C)
|
|
495
495
|
wt.call(C, B) && !xi.hasOwnProperty(B) && (L[B] = C[B]);
|
|
496
496
|
if (d && d.defaultProps) {
|
|
497
|
-
var
|
|
498
|
-
for (B in
|
|
499
|
-
L[B] === void 0 && (L[B] =
|
|
497
|
+
var H = d.defaultProps;
|
|
498
|
+
for (B in H)
|
|
499
|
+
L[B] === void 0 && (L[B] = H[B]);
|
|
500
500
|
}
|
|
501
501
|
if (M || ae) {
|
|
502
502
|
var X = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
@@ -521,7 +521,7 @@ function qo() {
|
|
|
521
521
|
function ir() {
|
|
522
522
|
{
|
|
523
523
|
if (Ht.current) {
|
|
524
|
-
var d =
|
|
524
|
+
var d = le(Ht.current.type);
|
|
525
525
|
if (d)
|
|
526
526
|
return `
|
|
527
527
|
|
|
@@ -564,7 +564,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
564
564
|
return;
|
|
565
565
|
or[S] = !0;
|
|
566
566
|
var T = "";
|
|
567
|
-
d && d._owner && d._owner !== Ht.current && (T = " It was passed a child from " +
|
|
567
|
+
d && d._owner && d._owner !== Ht.current && (T = " It was passed a child from " + le(d._owner.type) + "."), Qe(d), W('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, T), Qe(null);
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
function lr(d, C) {
|
|
@@ -599,11 +599,11 @@ Check the top-level render call using <` + S + ">.");
|
|
|
599
599
|
else
|
|
600
600
|
return;
|
|
601
601
|
if (S) {
|
|
602
|
-
var T =
|
|
602
|
+
var T = le(C);
|
|
603
603
|
gi(S, d.props, "prop", T, d);
|
|
604
604
|
} else if (C.PropTypes !== void 0 && !Xt) {
|
|
605
605
|
Xt = !0;
|
|
606
|
-
var N =
|
|
606
|
+
var N = le(C);
|
|
607
607
|
W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
608
608
|
}
|
|
609
609
|
typeof C.getDefaultProps == "function" && !C.getDefaultProps.isReactClassApproved && W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -629,8 +629,8 @@ Check the top-level render call using <` + S + ">.");
|
|
|
629
629
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
630
630
|
var ae = ki(N);
|
|
631
631
|
ae ? M += ae : M += ir();
|
|
632
|
-
var
|
|
633
|
-
d === null ?
|
|
632
|
+
var H;
|
|
633
|
+
d === null ? H = "null" : Yt(d) ? H = "array" : d !== void 0 && d.$$typeof === e ? (H = "<" + (le(d.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, M);
|
|
634
634
|
}
|
|
635
635
|
var X = Di(d, C, S, N, B);
|
|
636
636
|
if (X == null)
|
|
@@ -664,7 +664,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
664
664
|
(function(t) {
|
|
665
665
|
process.env.NODE_ENV === "production" ? t.exports = Lo() : t.exports = qo();
|
|
666
666
|
})(Pt);
|
|
667
|
-
const
|
|
667
|
+
const U = Pt.exports.Fragment, r = Pt.exports.jsx, c = Pt.exports.jsxs;
|
|
668
668
|
class Xe extends x.Component {
|
|
669
669
|
constructor(e) {
|
|
670
670
|
super(e), this.state = {
|
|
@@ -685,7 +685,7 @@ class Xe extends x.Component {
|
|
|
685
685
|
});
|
|
686
686
|
};
|
|
687
687
|
return /* @__PURE__ */ c(q, {
|
|
688
|
-
children: [/* @__PURE__ */ r(
|
|
688
|
+
children: [/* @__PURE__ */ r(v, {
|
|
689
689
|
size: "xs",
|
|
690
690
|
children: (e = this.state.error) == null ? void 0 : e.message
|
|
691
691
|
}), /* @__PURE__ */ r(F, {
|
|
@@ -714,7 +714,7 @@ function $o({
|
|
|
714
714
|
onChange: i
|
|
715
715
|
}) {
|
|
716
716
|
return /* @__PURE__ */ c(q, {
|
|
717
|
-
children: [/* @__PURE__ */ r(
|
|
717
|
+
children: [/* @__PURE__ */ r(v, {
|
|
718
718
|
children: "\xA0"
|
|
719
719
|
}), /* @__PURE__ */ r(He, {
|
|
720
720
|
label: t,
|
|
@@ -1038,7 +1038,7 @@ WHERE
|
|
|
1038
1038
|
background: "#efefef",
|
|
1039
1039
|
flexGrow: 0
|
|
1040
1040
|
},
|
|
1041
|
-
children: /* @__PURE__ */ r(
|
|
1041
|
+
children: /* @__PURE__ */ r(v, {
|
|
1042
1042
|
weight: 500,
|
|
1043
1043
|
children: "Global Variables"
|
|
1044
1044
|
})
|
|
@@ -1056,7 +1056,7 @@ WHERE
|
|
|
1056
1056
|
noCopy: !0,
|
|
1057
1057
|
colorScheme: "dark",
|
|
1058
1058
|
children: Jo
|
|
1059
|
-
}), /* @__PURE__ */ r(
|
|
1059
|
+
}), /* @__PURE__ */ r(v, {
|
|
1060
1060
|
weight: 500,
|
|
1061
1061
|
sx: {
|
|
1062
1062
|
flexGrow: 0
|
|
@@ -1085,7 +1085,7 @@ function Ko({
|
|
|
1085
1085
|
children: [/* @__PURE__ */ r("thead", {
|
|
1086
1086
|
children: /* @__PURE__ */ r("tr", {
|
|
1087
1087
|
children: Object.keys(t == null ? void 0 : t[0]).map((e) => /* @__PURE__ */ r("th", {
|
|
1088
|
-
children: /* @__PURE__ */ r(
|
|
1088
|
+
children: /* @__PURE__ */ r(v, {
|
|
1089
1089
|
weight: 700,
|
|
1090
1090
|
color: "#000",
|
|
1091
1091
|
children: e
|
|
@@ -1101,7 +1101,7 @@ function Ko({
|
|
|
1101
1101
|
fontFamily: "monospace"
|
|
1102
1102
|
}
|
|
1103
1103
|
},
|
|
1104
|
-
children: /* @__PURE__ */ r(
|
|
1104
|
+
children: /* @__PURE__ */ r(v, {
|
|
1105
1105
|
children: a
|
|
1106
1106
|
})
|
|
1107
1107
|
})
|
|
@@ -1134,10 +1134,10 @@ const da = R(function({
|
|
|
1134
1134
|
},
|
|
1135
1135
|
children: [/* @__PURE__ */ c(g, {
|
|
1136
1136
|
position: "left",
|
|
1137
|
-
children: [/* @__PURE__ */ r(
|
|
1137
|
+
children: [/* @__PURE__ */ r(v, {
|
|
1138
1138
|
weight: 500,
|
|
1139
1139
|
children: "Preview Data"
|
|
1140
|
-
}), a.length > 10 && /* @__PURE__ */ c(
|
|
1140
|
+
}), a.length > 10 && /* @__PURE__ */ c(v, {
|
|
1141
1141
|
size: "sm",
|
|
1142
1142
|
color: "gray",
|
|
1143
1143
|
children: ["Showing 10 rows of ", a.length]
|
|
@@ -1171,9 +1171,9 @@ const da = R(function({
|
|
|
1171
1171
|
position: "apart",
|
|
1172
1172
|
ref: a,
|
|
1173
1173
|
...n,
|
|
1174
|
-
children: [/* @__PURE__ */ r(
|
|
1174
|
+
children: [/* @__PURE__ */ r(v, {
|
|
1175
1175
|
children: t
|
|
1176
|
-
}), /* @__PURE__ */ r(
|
|
1176
|
+
}), /* @__PURE__ */ r(v, {
|
|
1177
1177
|
children: e
|
|
1178
1178
|
})]
|
|
1179
1179
|
})), ha = R(function({
|
|
@@ -1247,7 +1247,7 @@ const es = R(function({
|
|
|
1247
1247
|
borderBottom: "1px solid #eee",
|
|
1248
1248
|
background: "#efefef"
|
|
1249
1249
|
},
|
|
1250
|
-
children: /* @__PURE__ */ r(
|
|
1250
|
+
children: /* @__PURE__ */ r(v, {
|
|
1251
1251
|
weight: 500,
|
|
1252
1252
|
children: "Edit Query"
|
|
1253
1253
|
})
|
|
@@ -1372,7 +1372,7 @@ const ns = R(function({
|
|
|
1372
1372
|
}, [e, a.queries.current, i]);
|
|
1373
1373
|
const o = () => {
|
|
1374
1374
|
const s = fe();
|
|
1375
|
-
a.queries.append(
|
|
1375
|
+
a.queries.append(Ae({
|
|
1376
1376
|
id: s,
|
|
1377
1377
|
type: xe.Postgresql,
|
|
1378
1378
|
key: "",
|
|
@@ -1387,7 +1387,7 @@ const ns = R(function({
|
|
|
1387
1387
|
maxWidth: "600px",
|
|
1388
1388
|
alignItems: "baseline"
|
|
1389
1389
|
},
|
|
1390
|
-
children: [/* @__PURE__ */ r(
|
|
1390
|
+
children: [/* @__PURE__ */ r(v, {
|
|
1391
1391
|
children: "Select a Query"
|
|
1392
1392
|
}), /* @__PURE__ */ r(j, {
|
|
1393
1393
|
data: a.queries.options,
|
|
@@ -1398,7 +1398,7 @@ const ns = R(function({
|
|
|
1398
1398
|
sx: {
|
|
1399
1399
|
flexGrow: 1
|
|
1400
1400
|
}
|
|
1401
|
-
}), /* @__PURE__ */ r(
|
|
1401
|
+
}), /* @__PURE__ */ r(v, {
|
|
1402
1402
|
children: "or"
|
|
1403
1403
|
}), /* @__PURE__ */ r(g, {
|
|
1404
1404
|
position: "center",
|
|
@@ -1455,7 +1455,7 @@ function as({
|
|
|
1455
1455
|
}) {
|
|
1456
1456
|
const n = ee().context.current, a = x.useMemo(() => jo(t, n), [t, n]);
|
|
1457
1457
|
return /* @__PURE__ */ c(w, {
|
|
1458
|
-
children: [/* @__PURE__ */ r(
|
|
1458
|
+
children: [/* @__PURE__ */ r(v, {
|
|
1459
1459
|
children: "Preview"
|
|
1460
1460
|
}), /* @__PURE__ */ r(Ne, {
|
|
1461
1461
|
language: "sql",
|
|
@@ -1466,7 +1466,7 @@ function as({
|
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
1468
|
const is = R(function() {
|
|
1469
|
-
const e = ee(), n = () => e.sqlSnippets.append(
|
|
1469
|
+
const e = ee(), n = () => e.sqlSnippets.append(Ae({
|
|
1470
1470
|
key: fe(),
|
|
1471
1471
|
value: ""
|
|
1472
1472
|
}));
|
|
@@ -1484,7 +1484,7 @@ const is = R(function() {
|
|
|
1484
1484
|
background: "#efefef",
|
|
1485
1485
|
flexGrow: 0
|
|
1486
1486
|
},
|
|
1487
|
-
children: /* @__PURE__ */ r(
|
|
1487
|
+
children: /* @__PURE__ */ r(v, {
|
|
1488
1488
|
weight: 500,
|
|
1489
1489
|
children: "SQL Snippets"
|
|
1490
1490
|
})
|
|
@@ -1623,13 +1623,13 @@ const ss = R(function({
|
|
|
1623
1623
|
});
|
|
1624
1624
|
});
|
|
1625
1625
|
var me = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(me || {});
|
|
1626
|
-
const ma =
|
|
1627
|
-
type:
|
|
1628
|
-
key:
|
|
1629
|
-
sql:
|
|
1630
|
-
}), fa =
|
|
1631
|
-
required:
|
|
1632
|
-
default_value:
|
|
1626
|
+
const ma = b.model({
|
|
1627
|
+
type: b.enumeration("DataSourceType", [xe.Postgresql, xe.MySQL, xe.HTTP]),
|
|
1628
|
+
key: b.string,
|
|
1629
|
+
sql: b.string
|
|
1630
|
+
}), fa = b.model("FilterConfigModel_TextInput", {
|
|
1631
|
+
required: b.boolean,
|
|
1632
|
+
default_value: b.string
|
|
1633
1633
|
}).actions((t) => ({
|
|
1634
1634
|
setRequired(e) {
|
|
1635
1635
|
t.required = e;
|
|
@@ -1643,7 +1643,7 @@ const ma = v.model({
|
|
|
1643
1643
|
}), ls = R(function({
|
|
1644
1644
|
config: e
|
|
1645
1645
|
}) {
|
|
1646
|
-
return /* @__PURE__ */ r(
|
|
1646
|
+
return /* @__PURE__ */ r(U, {
|
|
1647
1647
|
children: /* @__PURE__ */ r(He, {
|
|
1648
1648
|
checked: e.default_value,
|
|
1649
1649
|
onChange: (n) => e.setDefaultValue(n.currentTarget.checked),
|
|
@@ -1662,7 +1662,7 @@ const ma = v.model({
|
|
|
1662
1662
|
}], us = R(function({
|
|
1663
1663
|
config: e
|
|
1664
1664
|
}) {
|
|
1665
|
-
return /* @__PURE__ */ c(
|
|
1665
|
+
return /* @__PURE__ */ c(U, {
|
|
1666
1666
|
children: [/* @__PURE__ */ c(g, {
|
|
1667
1667
|
children: [/* @__PURE__ */ r(He, {
|
|
1668
1668
|
checked: e.required,
|
|
@@ -1692,7 +1692,7 @@ function ds({
|
|
|
1692
1692
|
children: [/* @__PURE__ */ r("thead", {
|
|
1693
1693
|
children: /* @__PURE__ */ r("tr", {
|
|
1694
1694
|
children: Object.keys(t == null ? void 0 : t[0]).map((e) => /* @__PURE__ */ r("th", {
|
|
1695
|
-
children: /* @__PURE__ */ r(
|
|
1695
|
+
children: /* @__PURE__ */ r(v, {
|
|
1696
1696
|
weight: 700,
|
|
1697
1697
|
color: "#000",
|
|
1698
1698
|
children: e
|
|
@@ -1708,7 +1708,7 @@ function ds({
|
|
|
1708
1708
|
fontFamily: "monospace"
|
|
1709
1709
|
}
|
|
1710
1710
|
},
|
|
1711
|
-
children: /* @__PURE__ */ r(
|
|
1711
|
+
children: /* @__PURE__ */ r(v, {
|
|
1712
1712
|
children: a
|
|
1713
1713
|
})
|
|
1714
1714
|
})
|
|
@@ -1718,7 +1718,7 @@ function ds({
|
|
|
1718
1718
|
children: /* @__PURE__ */ r("tr", {
|
|
1719
1719
|
children: /* @__PURE__ */ r("td", {
|
|
1720
1720
|
colSpan: Object.keys(t == null ? void 0 : t[0]).length,
|
|
1721
|
-
children: /* @__PURE__ */ c(
|
|
1721
|
+
children: /* @__PURE__ */ c(v, {
|
|
1722
1722
|
color: "gray",
|
|
1723
1723
|
size: "sm",
|
|
1724
1724
|
children: [t.length - 3, " more row(s) hidden"]
|
|
@@ -1742,7 +1742,7 @@ const hs = R(function({
|
|
|
1742
1742
|
my: 0,
|
|
1743
1743
|
children: [/* @__PURE__ */ c(g, {
|
|
1744
1744
|
position: "apart",
|
|
1745
|
-
children: [/* @__PURE__ */ r(
|
|
1745
|
+
children: [/* @__PURE__ */ r(v, {
|
|
1746
1746
|
size: "md",
|
|
1747
1747
|
pl: "sm",
|
|
1748
1748
|
children: "Fetched Data"
|
|
@@ -1836,8 +1836,8 @@ const hs = R(function({
|
|
|
1836
1836
|
value: ""
|
|
1837
1837
|
});
|
|
1838
1838
|
}, a = e.static_options, i = [...a];
|
|
1839
|
-
return /* @__PURE__ */ c(
|
|
1840
|
-
children: [/* @__PURE__ */ r(
|
|
1839
|
+
return /* @__PURE__ */ c(U, {
|
|
1840
|
+
children: [/* @__PURE__ */ r(ie, {
|
|
1841
1841
|
label: "Configure options",
|
|
1842
1842
|
labelPosition: "center"
|
|
1843
1843
|
}), a.length > 0 && /* @__PURE__ */ r(dn, {
|
|
@@ -1895,7 +1895,7 @@ const hs = R(function({
|
|
|
1895
1895
|
},
|
|
1896
1896
|
mx: "auto",
|
|
1897
1897
|
children: "Add an Option"
|
|
1898
|
-
}), /* @__PURE__ */ r(
|
|
1898
|
+
}), /* @__PURE__ */ r(ie, {
|
|
1899
1899
|
label: "Or fetch options from database",
|
|
1900
1900
|
labelPosition: "center"
|
|
1901
1901
|
}), /* @__PURE__ */ r(ba, {
|
|
@@ -1915,12 +1915,12 @@ const hs = R(function({
|
|
|
1915
1915
|
label: "No default selection",
|
|
1916
1916
|
value: ""
|
|
1917
1917
|
}, ...a];
|
|
1918
|
-
return /* @__PURE__ */ c(
|
|
1918
|
+
return /* @__PURE__ */ c(U, {
|
|
1919
1919
|
children: [/* @__PURE__ */ r(He, {
|
|
1920
1920
|
checked: e.required,
|
|
1921
1921
|
onChange: (o) => e.setRequired(o.currentTarget.checked),
|
|
1922
1922
|
label: "Required"
|
|
1923
|
-
}), /* @__PURE__ */ r(
|
|
1923
|
+
}), /* @__PURE__ */ r(ie, {
|
|
1924
1924
|
label: "Configure options",
|
|
1925
1925
|
labelPosition: "center"
|
|
1926
1926
|
}), a.length > 0 && /* @__PURE__ */ r(j, {
|
|
@@ -1978,7 +1978,7 @@ const hs = R(function({
|
|
|
1978
1978
|
},
|
|
1979
1979
|
mx: "auto",
|
|
1980
1980
|
children: "Add an Option"
|
|
1981
|
-
}), /* @__PURE__ */ r(
|
|
1981
|
+
}), /* @__PURE__ */ r(ie, {
|
|
1982
1982
|
label: "Or fetch options from database",
|
|
1983
1983
|
labelPosition: "center"
|
|
1984
1984
|
}), /* @__PURE__ */ r(ba, {
|
|
@@ -1989,7 +1989,7 @@ const hs = R(function({
|
|
|
1989
1989
|
}), fs = R(function({
|
|
1990
1990
|
config: e
|
|
1991
1991
|
}) {
|
|
1992
|
-
return /* @__PURE__ */ c(
|
|
1992
|
+
return /* @__PURE__ */ c(U, {
|
|
1993
1993
|
children: [/* @__PURE__ */ r(k, {
|
|
1994
1994
|
label: "Default Value",
|
|
1995
1995
|
value: e.default_value,
|
|
@@ -2012,7 +2012,7 @@ const hs = R(function({
|
|
|
2012
2012
|
sx: {
|
|
2013
2013
|
maxWidth: "30em"
|
|
2014
2014
|
},
|
|
2015
|
-
children: [/* @__PURE__ */ r(
|
|
2015
|
+
children: [/* @__PURE__ */ r(v, {
|
|
2016
2016
|
pb: "md",
|
|
2017
2017
|
color: "gray",
|
|
2018
2018
|
children: "Preview"
|
|
@@ -2020,7 +2020,7 @@ const hs = R(function({
|
|
|
2020
2020
|
filter: e,
|
|
2021
2021
|
value: a,
|
|
2022
2022
|
onChange: i
|
|
2023
|
-
}), /* @__PURE__ */ r(
|
|
2023
|
+
}), /* @__PURE__ */ r(v, {
|
|
2024
2024
|
pt: "lg",
|
|
2025
2025
|
pb: "md",
|
|
2026
2026
|
color: "gray",
|
|
@@ -2062,7 +2062,7 @@ const hs = R(function({
|
|
|
2062
2062
|
cols: 2,
|
|
2063
2063
|
children: [/* @__PURE__ */ c(q, {
|
|
2064
2064
|
pl: "md",
|
|
2065
|
-
children: [/* @__PURE__ */ r(
|
|
2065
|
+
children: [/* @__PURE__ */ r(v, {
|
|
2066
2066
|
pb: "md",
|
|
2067
2067
|
color: "gray",
|
|
2068
2068
|
children: "Edit"
|
|
@@ -2255,12 +2255,12 @@ var ws = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(ws || {}),
|
|
|
2255
2255
|
const _s = R(() => {
|
|
2256
2256
|
const e = ee().views.VIE;
|
|
2257
2257
|
return !e || e.type !== Re.Division ? null : /* @__PURE__ */ c(w, {
|
|
2258
|
-
children: [/* @__PURE__ */ r(
|
|
2258
|
+
children: [/* @__PURE__ */ r(ie, {
|
|
2259
2259
|
mt: 8,
|
|
2260
2260
|
mb: 0,
|
|
2261
2261
|
label: "Division settings",
|
|
2262
2262
|
labelPosition: "center"
|
|
2263
|
-
}), /* @__PURE__ */ r(
|
|
2263
|
+
}), /* @__PURE__ */ r(v, {
|
|
2264
2264
|
align: "center",
|
|
2265
2265
|
size: "xs",
|
|
2266
2266
|
color: "dimmed",
|
|
@@ -2270,7 +2270,7 @@ const _s = R(() => {
|
|
|
2270
2270
|
}), Is = R(() => {
|
|
2271
2271
|
const e = ee().views.VIE;
|
|
2272
2272
|
return !e || e.type !== Re.Modal ? null : /* @__PURE__ */ c(w, {
|
|
2273
|
-
children: [/* @__PURE__ */ r(
|
|
2273
|
+
children: [/* @__PURE__ */ r(ie, {
|
|
2274
2274
|
mt: 8,
|
|
2275
2275
|
label: "Modal settings",
|
|
2276
2276
|
labelPosition: "center"
|
|
@@ -2289,7 +2289,7 @@ const _s = R(() => {
|
|
|
2289
2289
|
})]
|
|
2290
2290
|
})]
|
|
2291
2291
|
});
|
|
2292
|
-
}), Rs = R(() => /* @__PURE__ */ c(
|
|
2292
|
+
}), Rs = R(() => /* @__PURE__ */ c(U, {
|
|
2293
2293
|
children: [/* @__PURE__ */ r(_s, {}), /* @__PURE__ */ r(Is, {})]
|
|
2294
2294
|
})), Ds = [{
|
|
2295
2295
|
label: "Division",
|
|
@@ -2342,7 +2342,7 @@ const _s = R(() => {
|
|
|
2342
2342
|
},
|
|
2343
2343
|
title: /* @__PURE__ */ c(g, {
|
|
2344
2344
|
position: "apart",
|
|
2345
|
-
children: [/* @__PURE__ */ c(
|
|
2345
|
+
children: [/* @__PURE__ */ c(v, {
|
|
2346
2346
|
sx: {
|
|
2347
2347
|
flexGrow: 1
|
|
2348
2348
|
},
|
|
@@ -2373,10 +2373,10 @@ const _s = R(() => {
|
|
|
2373
2373
|
children: /* @__PURE__ */ c(g, {
|
|
2374
2374
|
noWrap: !0,
|
|
2375
2375
|
position: "apart",
|
|
2376
|
-
children: [/* @__PURE__ */ r(
|
|
2376
|
+
children: [/* @__PURE__ */ r(v, {
|
|
2377
2377
|
size: "sm",
|
|
2378
2378
|
children: t
|
|
2379
|
-
}), /* @__PURE__ */ r(
|
|
2379
|
+
}), /* @__PURE__ */ r(v, {
|
|
2380
2380
|
size: "xs",
|
|
2381
2381
|
color: "dimmed",
|
|
2382
2382
|
children: e
|
|
@@ -2388,7 +2388,7 @@ const _s = R(() => {
|
|
|
2388
2388
|
children: /* @__PURE__ */ r(g, {
|
|
2389
2389
|
noWrap: !0,
|
|
2390
2390
|
grow: !0,
|
|
2391
|
-
children: /* @__PURE__ */ r(
|
|
2391
|
+
children: /* @__PURE__ */ r(v, {
|
|
2392
2392
|
size: "sm",
|
|
2393
2393
|
align: "center",
|
|
2394
2394
|
color: "#228be6",
|
|
@@ -2452,12 +2452,12 @@ const _s = R(() => {
|
|
|
2452
2452
|
})]
|
|
2453
2453
|
});
|
|
2454
2454
|
}), Es = R(() => {
|
|
2455
|
-
const t = ee(), [e, n] =
|
|
2455
|
+
const t = ee(), [e, n] = de(!1), a = () => {
|
|
2456
2456
|
n(!0);
|
|
2457
2457
|
}, i = () => {
|
|
2458
2458
|
n(!1);
|
|
2459
2459
|
};
|
|
2460
|
-
return /* @__PURE__ */ c(
|
|
2460
|
+
return /* @__PURE__ */ c(U, {
|
|
2461
2461
|
children: [/* @__PURE__ */ r(zs, {
|
|
2462
2462
|
value: t.views.idOfVIE,
|
|
2463
2463
|
onChange: t.views.setIDOfVIE,
|
|
@@ -2506,13 +2506,13 @@ const va = R(function({
|
|
|
2506
2506
|
saveChanges: e
|
|
2507
2507
|
}) {
|
|
2508
2508
|
const n = ee(), a = x.useCallback(() => {
|
|
2509
|
-
const
|
|
2509
|
+
const oe = n.queries.current, tt = n.views.current, We = n.sqlSnippets.current;
|
|
2510
2510
|
return {
|
|
2511
2511
|
filters: n.filters.current,
|
|
2512
2512
|
views: tt,
|
|
2513
2513
|
definition: {
|
|
2514
2514
|
sqlSnippets: We,
|
|
2515
|
-
queries:
|
|
2515
|
+
queries: oe
|
|
2516
2516
|
}
|
|
2517
2517
|
};
|
|
2518
2518
|
}, [n]), i = () => {
|
|
@@ -2574,9 +2574,9 @@ const va = R(function({
|
|
|
2574
2574
|
size: 20
|
|
2575
2575
|
}),
|
|
2576
2576
|
children: "Revert Changes"
|
|
2577
|
-
}), /* @__PURE__ */ c(
|
|
2577
|
+
}), /* @__PURE__ */ c(ue, {
|
|
2578
2578
|
width: 180,
|
|
2579
|
-
children: [/* @__PURE__ */ r(
|
|
2579
|
+
children: [/* @__PURE__ */ r(ue.Target, {
|
|
2580
2580
|
children: /* @__PURE__ */ r(F, {
|
|
2581
2581
|
variant: "default",
|
|
2582
2582
|
size: "xs",
|
|
@@ -2585,14 +2585,14 @@ const va = R(function({
|
|
|
2585
2585
|
}),
|
|
2586
2586
|
children: "Export"
|
|
2587
2587
|
})
|
|
2588
|
-
}), /* @__PURE__ */ c(
|
|
2589
|
-
children: [/* @__PURE__ */ r(
|
|
2588
|
+
}), /* @__PURE__ */ c(ue.Dropdown, {
|
|
2589
|
+
children: [/* @__PURE__ */ r(ue.Item, {
|
|
2590
2590
|
icon: /* @__PURE__ */ r(Wr, {
|
|
2591
2591
|
size: 14
|
|
2592
2592
|
}),
|
|
2593
2593
|
onClick: n.queries.downloadAllData,
|
|
2594
2594
|
children: "Download Data"
|
|
2595
|
-
}), /* @__PURE__ */ r(
|
|
2595
|
+
}), /* @__PURE__ */ r(ue.Item, {
|
|
2596
2596
|
icon: /* @__PURE__ */ r(uo, {
|
|
2597
2597
|
size: 14
|
|
2598
2598
|
}),
|
|
@@ -2622,7 +2622,7 @@ function ya() {
|
|
|
2622
2622
|
} = he();
|
|
2623
2623
|
return x.useEffect(() => {
|
|
2624
2624
|
t(e);
|
|
2625
|
-
}, [e]), !a.description || a.description === "<p><br></p>" ? null : /* @__PURE__ */ c(
|
|
2625
|
+
}, [e]), !a.description || a.description === "<p><br></p>" ? null : /* @__PURE__ */ c(U, {
|
|
2626
2626
|
children: [/* @__PURE__ */ r(Ce, {
|
|
2627
2627
|
opened: e,
|
|
2628
2628
|
onClose: () => n(!1),
|
|
@@ -2667,7 +2667,7 @@ const xa = (t) => {
|
|
|
2667
2667
|
return /* @__PURE__ */ c($i, {
|
|
2668
2668
|
withBorder: !0,
|
|
2669
2669
|
p: "sm",
|
|
2670
|
-
children: [/* @__PURE__ */ r(
|
|
2670
|
+
children: [/* @__PURE__ */ r(v, {
|
|
2671
2671
|
size: "xs",
|
|
2672
2672
|
color: "dimmed",
|
|
2673
2673
|
mb: "sm",
|
|
@@ -2676,7 +2676,7 @@ const xa = (t) => {
|
|
|
2676
2676
|
style: {
|
|
2677
2677
|
maxHeight: "300px"
|
|
2678
2678
|
},
|
|
2679
|
-
children: n.map((o) => /* @__PURE__ */ c(
|
|
2679
|
+
children: n.map((o) => /* @__PURE__ */ c(v, {
|
|
2680
2680
|
size: "sm",
|
|
2681
2681
|
children: [/* @__PURE__ */ c(dr, {
|
|
2682
2682
|
color: "teal",
|
|
@@ -2763,10 +2763,10 @@ const qs = R((t) => {
|
|
|
2763
2763
|
operationId: o,
|
|
2764
2764
|
instance: s,
|
|
2765
2765
|
variables: l
|
|
2766
|
-
} = t, u =
|
|
2766
|
+
} = t, u = Me(() => new Fs(i, s), [i, s]);
|
|
2767
2767
|
return ft(async () => {
|
|
2768
2768
|
await u.configOperation(o, l);
|
|
2769
|
-
}, [o, u]), Ms(u) ? /* @__PURE__ */ c(
|
|
2769
|
+
}, [o, u]), Ms(u) ? /* @__PURE__ */ c(U, {
|
|
2770
2770
|
children: [/* @__PURE__ */ r(Ps, {
|
|
2771
2771
|
model: u,
|
|
2772
2772
|
onClick: n
|
|
@@ -2816,7 +2816,7 @@ function Ns(t) {
|
|
|
2816
2816
|
return !!t.triggerId && !!t.triggerSchema;
|
|
2817
2817
|
}
|
|
2818
2818
|
function js(t, e) {
|
|
2819
|
-
return
|
|
2819
|
+
return Me(() => new $s(t, e), [t, e]);
|
|
2820
2820
|
}
|
|
2821
2821
|
const Bs = R(({
|
|
2822
2822
|
model: t,
|
|
@@ -2862,7 +2862,7 @@ const Bs = R(({
|
|
|
2862
2862
|
setTrue: n,
|
|
2863
2863
|
setFalse: a
|
|
2864
2864
|
}] = mt(!1), i = t.model;
|
|
2865
|
-
return /* @__PURE__ */ c(
|
|
2865
|
+
return /* @__PURE__ */ c(U, {
|
|
2866
2866
|
children: [/* @__PURE__ */ r(Ce, {
|
|
2867
2867
|
opened: e,
|
|
2868
2868
|
onClose: a,
|
|
@@ -3122,7 +3122,7 @@ const Hs = (t) => {
|
|
|
3122
3122
|
getColor: At(["#fff7f1", "darkorange", "#b60000"]),
|
|
3123
3123
|
name: "orange",
|
|
3124
3124
|
category: "sequential"
|
|
3125
|
-
}, rl = "4.
|
|
3125
|
+
}, rl = "4.10.0";
|
|
3126
3126
|
class al {
|
|
3127
3127
|
constructor(e) {
|
|
3128
3128
|
E(this, "staticColors", /* @__PURE__ */ new Map());
|
|
@@ -3225,7 +3225,7 @@ class ye extends ol {
|
|
|
3225
3225
|
const _n = {
|
|
3226
3226
|
content: ""
|
|
3227
3227
|
}, G = (t, e) => {
|
|
3228
|
-
const [n, { setFalse: a }] = mt(!0), [i, o] =
|
|
3228
|
+
const [n, { setFalse: a }] = mt(!0), [i, o] = de();
|
|
3229
3229
|
K(() => (t.getItem(e).then((l) => {
|
|
3230
3230
|
o(l), a();
|
|
3231
3231
|
}), t.watchItem(e, (l) => {
|
|
@@ -3298,7 +3298,7 @@ function ll({
|
|
|
3298
3298
|
borderBottom: "1px solid #eee",
|
|
3299
3299
|
background: "#efefef"
|
|
3300
3300
|
},
|
|
3301
|
-
children: [/* @__PURE__ */ r(
|
|
3301
|
+
children: [/* @__PURE__ */ r(v, {
|
|
3302
3302
|
children: "Content"
|
|
3303
3303
|
}), /* @__PURE__ */ r(z, {
|
|
3304
3304
|
type: "submit",
|
|
@@ -3474,12 +3474,12 @@ function pl({
|
|
|
3474
3474
|
sx: {
|
|
3475
3475
|
flexGrow: 1
|
|
3476
3476
|
}
|
|
3477
|
-
}), /* @__PURE__ */ r(
|
|
3477
|
+
}), /* @__PURE__ */ r(Fe, {
|
|
3478
3478
|
label: /* @__PURE__ */ c(w, {
|
|
3479
3479
|
spacing: 0,
|
|
3480
|
-
children: [/* @__PURE__ */ r(
|
|
3480
|
+
children: [/* @__PURE__ */ r(v, {
|
|
3481
3481
|
children: "Average"
|
|
3482
|
-
}), /* @__PURE__ */ r(
|
|
3482
|
+
}), /* @__PURE__ */ r(v, {
|
|
3483
3483
|
size: 12,
|
|
3484
3484
|
color: "gray",
|
|
3485
3485
|
children: "like 1.234k, 1.234m"
|
|
@@ -3513,7 +3513,7 @@ function pl({
|
|
|
3513
3513
|
max: 4,
|
|
3514
3514
|
value: t.mantissa,
|
|
3515
3515
|
onChange: i
|
|
3516
|
-
}), /* @__PURE__ */ r(
|
|
3516
|
+
}), /* @__PURE__ */ r(Fe, {
|
|
3517
3517
|
label: "Trim mantissa",
|
|
3518
3518
|
checked: t.trimMantissa,
|
|
3519
3519
|
onChange: o,
|
|
@@ -3529,25 +3529,25 @@ function pl({
|
|
|
3529
3529
|
})]
|
|
3530
3530
|
}), /* @__PURE__ */ c(w, {
|
|
3531
3531
|
spacing: 0,
|
|
3532
|
-
children: [/* @__PURE__ */ r(
|
|
3532
|
+
children: [/* @__PURE__ */ r(v, {
|
|
3533
3533
|
weight: "bold",
|
|
3534
3534
|
children: "Preview"
|
|
3535
3535
|
}), /* @__PURE__ */ r(Xe, {
|
|
3536
3536
|
children: /* @__PURE__ */ c(g, {
|
|
3537
3537
|
position: "apart",
|
|
3538
|
-
children: [/* @__PURE__ */ c(
|
|
3538
|
+
children: [/* @__PURE__ */ c(v, {
|
|
3539
3539
|
size: 12,
|
|
3540
3540
|
color: "gray",
|
|
3541
3541
|
children: ["123456789 ", /* @__PURE__ */ r(Zt, {
|
|
3542
3542
|
size: 9
|
|
3543
3543
|
}), " ", ve(123456789).format(t)]
|
|
3544
|
-
}), /* @__PURE__ */ c(
|
|
3544
|
+
}), /* @__PURE__ */ c(v, {
|
|
3545
3545
|
size: 12,
|
|
3546
3546
|
color: "gray",
|
|
3547
3547
|
children: ["1234 ", /* @__PURE__ */ r(Zt, {
|
|
3548
3548
|
size: 9
|
|
3549
3549
|
}), " ", ve(1234).format(t)]
|
|
3550
|
-
}), /* @__PURE__ */ c(
|
|
3550
|
+
}), /* @__PURE__ */ c(v, {
|
|
3551
3551
|
size: 12,
|
|
3552
3552
|
color: "gray",
|
|
3553
3553
|
children: ["0.1234 ", /* @__PURE__ */ r(Zt, {
|
|
@@ -3693,11 +3693,11 @@ function vl({
|
|
|
3693
3693
|
}, [o]), u = x.useMemo(() => !$.isEqual(i, e), [i, e]), p = () => {
|
|
3694
3694
|
n(i.map((m) => m.toString()));
|
|
3695
3695
|
}, h = Ni(), f = x.useMemo(() => Object.entries(h.colors).map(([m, y]) => y[6]), [h]);
|
|
3696
|
-
return /* @__PURE__ */ c(
|
|
3696
|
+
return /* @__PURE__ */ c(U, {
|
|
3697
3697
|
children: [/* @__PURE__ */ c(g, {
|
|
3698
3698
|
position: "left",
|
|
3699
3699
|
ref: a,
|
|
3700
|
-
children: [/* @__PURE__ */ r(
|
|
3700
|
+
children: [/* @__PURE__ */ r(v, {
|
|
3701
3701
|
children: t
|
|
3702
3702
|
}), /* @__PURE__ */ r(z, {
|
|
3703
3703
|
mr: 5,
|
|
@@ -3744,7 +3744,7 @@ function xl({
|
|
|
3744
3744
|
}, n) {
|
|
3745
3745
|
const {
|
|
3746
3746
|
colorManager: a
|
|
3747
|
-
} =
|
|
3747
|
+
} = Pe(Te), i = x.useMemo(() => a.getStaticColors().map((l) => ({
|
|
3748
3748
|
label: l.name,
|
|
3749
3749
|
group: l.category,
|
|
3750
3750
|
value: l.value
|
|
@@ -3766,7 +3766,7 @@ function xl({
|
|
|
3766
3766
|
maxWidth: "46%",
|
|
3767
3767
|
flexGrow: 1
|
|
3768
3768
|
}
|
|
3769
|
-
}), /* @__PURE__ */ r(
|
|
3769
|
+
}), /* @__PURE__ */ r(v, {
|
|
3770
3770
|
sx: {
|
|
3771
3771
|
flexGrow: 0
|
|
3772
3772
|
},
|
|
@@ -3818,7 +3818,7 @@ function Cl({
|
|
|
3818
3818
|
spacing: 0,
|
|
3819
3819
|
mt: "sm",
|
|
3820
3820
|
mb: "lg",
|
|
3821
|
-
children: [/* @__PURE__ */ r(
|
|
3821
|
+
children: [/* @__PURE__ */ r(v, {
|
|
3822
3822
|
size: "sm",
|
|
3823
3823
|
children: t
|
|
3824
3824
|
}), /* @__PURE__ */ r(zr, {
|
|
@@ -3843,11 +3843,11 @@ function Sl({
|
|
|
3843
3843
|
}, [o]), l = x.useCallback((h) => {
|
|
3844
3844
|
o((f) => (f.splice(h, 1), [...f]));
|
|
3845
3845
|
}, [o]), u = x.useMemo(() => !$.isEqual(i, e), [i, e]);
|
|
3846
|
-
return /* @__PURE__ */ c(
|
|
3846
|
+
return /* @__PURE__ */ c(U, {
|
|
3847
3847
|
children: [/* @__PURE__ */ c(g, {
|
|
3848
3848
|
position: "left",
|
|
3849
3849
|
ref: a,
|
|
3850
|
-
children: [/* @__PURE__ */ r(
|
|
3850
|
+
children: [/* @__PURE__ */ r(v, {
|
|
3851
3851
|
children: t
|
|
3852
3852
|
}), /* @__PURE__ */ r(z, {
|
|
3853
3853
|
mr: 5,
|
|
@@ -3897,8 +3897,8 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
|
|
|
3897
3897
|
const u = $.cloneDeep(e);
|
|
3898
3898
|
$.set(u, s, l), n(u);
|
|
3899
3899
|
};
|
|
3900
|
-
return /* @__PURE__ */ c(
|
|
3901
|
-
children: [/* @__PURE__ */ r(
|
|
3900
|
+
return /* @__PURE__ */ c(U, {
|
|
3901
|
+
children: [/* @__PURE__ */ r(ie, {
|
|
3902
3902
|
my: "xs",
|
|
3903
3903
|
label: "Typography",
|
|
3904
3904
|
labelPosition: "center"
|
|
@@ -3926,7 +3926,7 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
|
|
|
3926
3926
|
value: e.weight,
|
|
3927
3927
|
onChange: (s) => o("weight", s)
|
|
3928
3928
|
})
|
|
3929
|
-
}), /* @__PURE__ */ r(
|
|
3929
|
+
}), /* @__PURE__ */ r(ie, {
|
|
3930
3930
|
my: "xs",
|
|
3931
3931
|
label: "Style",
|
|
3932
3932
|
labelPosition: "center"
|
|
@@ -3945,7 +3945,7 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
|
|
|
3945
3945
|
}), i === "static" && /* @__PURE__ */ r(De, {
|
|
3946
3946
|
value: e.color.staticColor,
|
|
3947
3947
|
onChange: (s) => o("color.staticColor", s)
|
|
3948
|
-
}), i === "continuous" && /* @__PURE__ */ c(
|
|
3948
|
+
}), i === "continuous" && /* @__PURE__ */ c(U, {
|
|
3949
3949
|
children: [/* @__PURE__ */ r(_l, {
|
|
3950
3950
|
label: "Value Range",
|
|
3951
3951
|
value: e.color.valueRange,
|
|
@@ -3972,11 +3972,11 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
|
|
|
3972
3972
|
px: "sm",
|
|
3973
3973
|
py: "md",
|
|
3974
3974
|
ref: o,
|
|
3975
|
-
children: [/* @__PURE__ */ r(
|
|
3975
|
+
children: [/* @__PURE__ */ r(v, {
|
|
3976
3976
|
weight: "bold",
|
|
3977
3977
|
pb: 0,
|
|
3978
3978
|
children: e.name
|
|
3979
|
-
}), /* @__PURE__ */ r(
|
|
3979
|
+
}), /* @__PURE__ */ r(ie, {
|
|
3980
3980
|
my: "xs",
|
|
3981
3981
|
label: "Data",
|
|
3982
3982
|
labelPosition: "center"
|
|
@@ -3999,7 +3999,7 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
|
|
|
3999
3999
|
label: "Aggregation",
|
|
4000
4000
|
value: e.aggregation,
|
|
4001
4001
|
onChange: (l) => s("aggregation", l)
|
|
4002
|
-
}), /* @__PURE__ */ r(
|
|
4002
|
+
}), /* @__PURE__ */ r(ie, {
|
|
4003
4003
|
my: "xs",
|
|
4004
4004
|
label: "Format",
|
|
4005
4005
|
labelPosition: "center"
|
|
@@ -4074,7 +4074,7 @@ const Tn = (t, e) => (n) => Boolean(gt(n) && kl.test(n) && n.startsWith(t) || e
|
|
|
4074
4074
|
[n]: parseFloat(s),
|
|
4075
4075
|
alpha: l !== void 0 ? parseFloat(l) : 1
|
|
4076
4076
|
};
|
|
4077
|
-
},
|
|
4077
|
+
}, $e = {
|
|
4078
4078
|
test: Tn("hsl", "hue"),
|
|
4079
4079
|
parse: Va("hue", "saturation", "lightness"),
|
|
4080
4080
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: a = 1 }) => "hsla(" + Math.round(t) + ", " + dt.transform(ut(e)) + ", " + dt.transform(ut(n)) + ", " + ut(Ta.transform(a)) + ")"
|
|
@@ -4097,9 +4097,9 @@ const sn = {
|
|
|
4097
4097
|
parse: zl,
|
|
4098
4098
|
transform: Ee.transform
|
|
4099
4099
|
}, Nt = {
|
|
4100
|
-
test: (t) => Ee.test(t) || sn.test(t) ||
|
|
4101
|
-
parse: (t) => Ee.test(t) ? Ee.parse(t) :
|
|
4102
|
-
transform: (t) => gt(t) ? t : t.hasOwnProperty("red") ? Ee.transform(t) :
|
|
4100
|
+
test: (t) => Ee.test(t) || sn.test(t) || $e.test(t),
|
|
4101
|
+
parse: (t) => Ee.test(t) ? Ee.parse(t) : $e.test(t) ? $e.parse(t) : sn.parse(t),
|
|
4102
|
+
transform: (t) => gt(t) ? t : t.hasOwnProperty("red") ? Ee.transform(t) : $e.transform(t)
|
|
4103
4103
|
}, za = "${c}", Ea = "${n}";
|
|
4104
4104
|
function El(t) {
|
|
4105
4105
|
var e, n, a, i;
|
|
@@ -4154,11 +4154,11 @@ function yr({ hue: t, saturation: e, lightness: n, alpha: a }) {
|
|
|
4154
4154
|
const Ml = (t, e, n) => {
|
|
4155
4155
|
const a = t * t, i = e * e;
|
|
4156
4156
|
return Math.sqrt(Math.max(0, n * (i - a) + a));
|
|
4157
|
-
}, Pl = [sn, Ee,
|
|
4157
|
+
}, Pl = [sn, Ee, $e], xr = (t) => Pl.find((e) => e.test(t)), Cr = (t) => `'${t}' is not an animatable color. Use the equivalent color code instead.`, Aa = (t, e) => {
|
|
4158
4158
|
let n = xr(t), a = xr(e);
|
|
4159
4159
|
pt(!!n, Cr(t)), pt(!!a, Cr(e));
|
|
4160
4160
|
let i = n.parse(t), o = a.parse(e);
|
|
4161
|
-
n ===
|
|
4161
|
+
n === $e && (i = yr(i), n = Ee), a === $e && (o = yr(o), a = Ee);
|
|
4162
4162
|
const s = Object.assign({}, i);
|
|
4163
4163
|
return (l) => {
|
|
4164
4164
|
for (const u in s)
|
|
@@ -4274,7 +4274,7 @@ function Hl(t, e) {
|
|
|
4274
4274
|
size: u,
|
|
4275
4275
|
weight: p
|
|
4276
4276
|
} = a, h = Dn(e, s, l), f = jt(a, h);
|
|
4277
|
-
n[i] = /* @__PURE__ */ r(
|
|
4277
|
+
n[i] = /* @__PURE__ */ r(v, {
|
|
4278
4278
|
sx: {
|
|
4279
4279
|
fontSize: u,
|
|
4280
4280
|
display: "inline"
|
|
@@ -4286,7 +4286,7 @@ function Hl(t, e) {
|
|
|
4286
4286
|
}), n;
|
|
4287
4287
|
}
|
|
4288
4288
|
function Xl(t) {
|
|
4289
|
-
return t.split(" ").map((e) => /* @__PURE__ */ c(
|
|
4289
|
+
return t.split(" ").map((e) => /* @__PURE__ */ c(U, {
|
|
4290
4290
|
children: [e, "\xA0"]
|
|
4291
4291
|
}));
|
|
4292
4292
|
}
|
|
@@ -4312,7 +4312,7 @@ function ln(t, e, n) {
|
|
|
4312
4312
|
if (!l)
|
|
4313
4313
|
return nn(o);
|
|
4314
4314
|
const u = (p = s[2]) != null ? p : "";
|
|
4315
|
-
return /* @__PURE__ */ c(
|
|
4315
|
+
return /* @__PURE__ */ c(U, {
|
|
4316
4316
|
children: [l, nn(u)]
|
|
4317
4317
|
});
|
|
4318
4318
|
});
|
|
@@ -4348,7 +4348,7 @@ function Zl({
|
|
|
4348
4348
|
variables: a,
|
|
4349
4349
|
align: i
|
|
4350
4350
|
} = e, o = A(() => ln(n, a, t.data), [n, a, t.data]);
|
|
4351
|
-
return /* @__PURE__ */ r(
|
|
4351
|
+
return /* @__PURE__ */ r(v, {
|
|
4352
4352
|
align: i,
|
|
4353
4353
|
children: Object.values(o).map((s) => s)
|
|
4354
4354
|
});
|
|
@@ -4467,7 +4467,7 @@ function nc({
|
|
|
4467
4467
|
borderBottom: "1px solid #eee",
|
|
4468
4468
|
background: "#efefef"
|
|
4469
4469
|
},
|
|
4470
|
-
children: [/* @__PURE__ */ r(
|
|
4470
|
+
children: [/* @__PURE__ */ r(v, {
|
|
4471
4471
|
weight: 500,
|
|
4472
4472
|
children: "Stats Configurations"
|
|
4473
4473
|
}), /* @__PURE__ */ r(z, {
|
|
@@ -4493,7 +4493,7 @@ function nc({
|
|
|
4493
4493
|
},
|
|
4494
4494
|
...m
|
|
4495
4495
|
})
|
|
4496
|
-
}), /* @__PURE__ */ r(
|
|
4496
|
+
}), /* @__PURE__ */ r(v, {
|
|
4497
4497
|
pb: "sm",
|
|
4498
4498
|
pt: "md",
|
|
4499
4499
|
size: "sm",
|
|
@@ -4532,11 +4532,11 @@ const kt = {
|
|
|
4532
4532
|
}, ac = ({
|
|
4533
4533
|
vizManager: t,
|
|
4534
4534
|
instance: e
|
|
4535
|
-
}) =>
|
|
4535
|
+
}) => Me(
|
|
4536
4536
|
() => new Xa(e, t.resolveComponent(e.type), $n),
|
|
4537
4537
|
[e, t]
|
|
4538
4538
|
), ic = (t, e) => {
|
|
4539
|
-
const [n, a] =
|
|
4539
|
+
const [n, a] = de([]);
|
|
4540
4540
|
return K(() => t.watchTriggerSnapshotList(
|
|
4541
4541
|
(i) => a(i.filter((o) => o.schemaRef === e))
|
|
4542
4542
|
), []), n;
|
|
@@ -4598,7 +4598,7 @@ function dc(t) {
|
|
|
4598
4598
|
const hc = ({
|
|
4599
4599
|
header: t,
|
|
4600
4600
|
cx: e
|
|
4601
|
-
}) => /* @__PURE__ */ c(
|
|
4601
|
+
}) => /* @__PURE__ */ c(v, {
|
|
4602
4602
|
className: e("table-head-cell", {
|
|
4603
4603
|
"table-head-cell--sortable": t.column.getCanSort()
|
|
4604
4604
|
}),
|
|
@@ -4685,7 +4685,7 @@ function vc(t) {
|
|
|
4685
4685
|
const e = Wa(t.instance), {
|
|
4686
4686
|
value: n
|
|
4687
4687
|
} = G(t.trigger.triggerData, "config");
|
|
4688
|
-
return /* @__PURE__ */ r(
|
|
4688
|
+
return /* @__PURE__ */ r(v, {
|
|
4689
4689
|
children: bc(n, e)
|
|
4690
4690
|
});
|
|
4691
4691
|
}
|
|
@@ -4746,7 +4746,7 @@ function Bt(t) {
|
|
|
4746
4746
|
style: {
|
|
4747
4747
|
...wc(t)
|
|
4748
4748
|
},
|
|
4749
|
-
children: /* @__PURE__ */ r(
|
|
4749
|
+
children: /* @__PURE__ */ r(v, {
|
|
4750
4750
|
className: "table-cell-text",
|
|
4751
4751
|
onClick: t.tableCellContext.getClickHandler(),
|
|
4752
4752
|
children: /* @__PURE__ */ r("span", {
|
|
@@ -4809,7 +4809,7 @@ function Dc(t) {
|
|
|
4809
4809
|
const kc = (t) => {
|
|
4810
4810
|
const e = ac(t), n = ic(e.triggerManager, Vn.id), {
|
|
4811
4811
|
colorManager: a
|
|
4812
|
-
} =
|
|
4812
|
+
} = Pe(Te);
|
|
4813
4813
|
return Rt((i) => new Vc(t.getColIndex, i, n, e, a), [n, e, t.getColIndex]);
|
|
4814
4814
|
};
|
|
4815
4815
|
function Tc({
|
|
@@ -4829,32 +4829,32 @@ function Tc({
|
|
|
4829
4829
|
} = o, {
|
|
4830
4830
|
classes: p,
|
|
4831
4831
|
cx: h
|
|
4832
|
-
} = yc(), f = x.useMemo(() => s ? Object.keys(n[0]).map((
|
|
4833
|
-
label:
|
|
4834
|
-
value_field:
|
|
4832
|
+
} = yc(), f = x.useMemo(() => s ? Object.keys(n[0]).map((se) => ({
|
|
4833
|
+
label: se,
|
|
4834
|
+
value_field: se,
|
|
4835
4835
|
value_type: Oe.string
|
|
4836
4836
|
})) : l, [s, l, n]), m = kc({
|
|
4837
|
-
getColIndex: Rt((
|
|
4837
|
+
getColIndex: Rt((se) => f.indexOf(se.column.columnDef.meta), [f]),
|
|
4838
4838
|
vizManager: t.vizManager,
|
|
4839
4839
|
instance: e
|
|
4840
4840
|
}), y = A(() => {
|
|
4841
|
-
const
|
|
4841
|
+
const se = _o(), be = f.map((ce) => se.accessor(ce.value_field, {
|
|
4842
4842
|
cell: (Ve) => /* @__PURE__ */ r(Dc, {
|
|
4843
4843
|
tableCellContext: m(Ve.cell),
|
|
4844
4844
|
value: Ve.getValue(),
|
|
4845
|
-
type:
|
|
4845
|
+
type: ce.value_type
|
|
4846
4846
|
}),
|
|
4847
|
-
header:
|
|
4847
|
+
header: ce.label,
|
|
4848
4848
|
enableSorting: !0,
|
|
4849
|
-
meta:
|
|
4849
|
+
meta: ce
|
|
4850
4850
|
}));
|
|
4851
|
-
return [
|
|
4851
|
+
return [se.display({
|
|
4852
4852
|
id: "#index",
|
|
4853
|
-
cell: (
|
|
4853
|
+
cell: (ce) => ce.row.index + 1,
|
|
4854
4854
|
header: "#",
|
|
4855
4855
|
size: 10 * (n.length.toString().length + 1)
|
|
4856
4856
|
}), ...be];
|
|
4857
|
-
}, [f, m]), [I, D] =
|
|
4857
|
+
}, [f, m]), [I, D] = de([]), O = Io({
|
|
4858
4858
|
data: n,
|
|
4859
4859
|
state: {
|
|
4860
4860
|
sorting: I
|
|
@@ -4871,9 +4871,9 @@ function Tc({
|
|
|
4871
4871
|
estimateSize: Rt(() => 28, []),
|
|
4872
4872
|
overscan: 20
|
|
4873
4873
|
}), {
|
|
4874
|
-
virtualItems:
|
|
4874
|
+
virtualItems: oe,
|
|
4875
4875
|
totalSize: tt
|
|
4876
|
-
} = ge, We =
|
|
4876
|
+
} = ge, We = oe.length > 0 && ((rt = oe == null ? void 0 : oe[0]) == null ? void 0 : rt.start) || 0, nt = oe.length > 0 ? tt - (((vt = oe == null ? void 0 : oe[oe.length - 1]) == null ? void 0 : vt.end) || 0) : 0;
|
|
4877
4877
|
return /* @__PURE__ */ r("div", {
|
|
4878
4878
|
ref: W,
|
|
4879
4879
|
style: {
|
|
@@ -4891,8 +4891,8 @@ function Tc({
|
|
|
4891
4891
|
striped: o.striped,
|
|
4892
4892
|
children: [/* @__PURE__ */ r("thead", {
|
|
4893
4893
|
className: p.thead,
|
|
4894
|
-
children: O.getHeaderGroups().map((
|
|
4895
|
-
children:
|
|
4894
|
+
children: O.getHeaderGroups().map((se) => /* @__PURE__ */ r("tr", {
|
|
4895
|
+
children: se.headers.map((be) => /* @__PURE__ */ r("th", {
|
|
4896
4896
|
style: {
|
|
4897
4897
|
width: be.getSize()
|
|
4898
4898
|
},
|
|
@@ -4901,7 +4901,7 @@ function Tc({
|
|
|
4901
4901
|
cx: h
|
|
4902
4902
|
})
|
|
4903
4903
|
}, be.id))
|
|
4904
|
-
},
|
|
4904
|
+
}, se.id))
|
|
4905
4905
|
}), /* @__PURE__ */ c("tbody", {
|
|
4906
4906
|
children: [We > 0 && /* @__PURE__ */ r("tr", {
|
|
4907
4907
|
children: /* @__PURE__ */ r("td", {
|
|
@@ -4909,12 +4909,12 @@ function Tc({
|
|
|
4909
4909
|
height: `${We}px`
|
|
4910
4910
|
}
|
|
4911
4911
|
})
|
|
4912
|
-
}),
|
|
4913
|
-
const be = Q[
|
|
4912
|
+
}), oe.map((se) => {
|
|
4913
|
+
const be = Q[se.index];
|
|
4914
4914
|
return /* @__PURE__ */ r("tr", {
|
|
4915
|
-
children: be.getVisibleCells().map((
|
|
4916
|
-
children: Xr(
|
|
4917
|
-
},
|
|
4915
|
+
children: be.getVisibleCells().map((le) => /* @__PURE__ */ r("td", {
|
|
4916
|
+
children: Xr(le.column.columnDef.cell, le.getContext())
|
|
4917
|
+
}, le.id))
|
|
4918
4918
|
}, be.id);
|
|
4919
4919
|
}), nt > 0 && /* @__PURE__ */ r("tr", {
|
|
4920
4920
|
children: /* @__PURE__ */ r("td", {
|
|
@@ -5041,7 +5041,7 @@ function Oc(t) {
|
|
|
5041
5041
|
value: i
|
|
5042
5042
|
} = t, {
|
|
5043
5043
|
classes: o
|
|
5044
|
-
} = Qa(), [s, l] =
|
|
5044
|
+
} = Qa(), [s, l] = de(i), [u, {
|
|
5045
5045
|
setTrue: p,
|
|
5046
5046
|
setFalse: h
|
|
5047
5047
|
}] = mt(!1), f = a % 2 === 1, m = f && i != null, y = !f && i != null, I = `map ${i} to color ${a}`, D = () => {
|
|
@@ -5054,7 +5054,7 @@ function Oc(t) {
|
|
|
5054
5054
|
return /* @__PURE__ */ c("div", {
|
|
5055
5055
|
"data-testid": `palette-item-${a}`,
|
|
5056
5056
|
className: o.paletteItem,
|
|
5057
|
-
children: [/* @__PURE__ */ r(
|
|
5057
|
+
children: [/* @__PURE__ */ r(v, {
|
|
5058
5058
|
title: I,
|
|
5059
5059
|
style: {
|
|
5060
5060
|
opacity: m ? 1 : 0
|
|
@@ -5101,7 +5101,7 @@ function Oc(t) {
|
|
|
5101
5101
|
})]
|
|
5102
5102
|
})
|
|
5103
5103
|
})]
|
|
5104
|
-
}), /* @__PURE__ */ r(
|
|
5104
|
+
}), /* @__PURE__ */ r(v, {
|
|
5105
5105
|
title: I,
|
|
5106
5106
|
style: {
|
|
5107
5107
|
opacity: y ? 1 : 0
|
|
@@ -5129,7 +5129,7 @@ const Fc = R(({
|
|
|
5129
5129
|
}, a))
|
|
5130
5130
|
});
|
|
5131
5131
|
}), Mc = R(function(e) {
|
|
5132
|
-
const n =
|
|
5132
|
+
const n = Me(() => new Ec(), []);
|
|
5133
5133
|
return K(() => {
|
|
5134
5134
|
n.fromProps(e);
|
|
5135
5135
|
}), n.interpolation == null ? null : /* @__PURE__ */ r(Fc, {
|
|
@@ -5140,7 +5140,7 @@ const Fc = R(({
|
|
|
5140
5140
|
value: e,
|
|
5141
5141
|
onChange: n,
|
|
5142
5142
|
colorManager: a
|
|
5143
|
-
} = t, i = a.getColorInterpolations(), [o, s] =
|
|
5143
|
+
} = t, i = a.getColorInterpolations(), [o, s] = de(e), l = a.decodeInterpolation(o.interpolation) || i[0], [u, {
|
|
5144
5144
|
setTrue: p,
|
|
5145
5145
|
setFalse: h
|
|
5146
5146
|
}] = mt(), f = i.map((O) => ({
|
|
@@ -5166,7 +5166,7 @@ const Fc = R(({
|
|
|
5166
5166
|
const D = () => {
|
|
5167
5167
|
h(), s(e);
|
|
5168
5168
|
};
|
|
5169
|
-
return /* @__PURE__ */ c(
|
|
5169
|
+
return /* @__PURE__ */ c(U, {
|
|
5170
5170
|
children: [/* @__PURE__ */ r(F, {
|
|
5171
5171
|
variant: "outline",
|
|
5172
5172
|
onClick: p,
|
|
@@ -5224,7 +5224,7 @@ function $c(t, e) {
|
|
|
5224
5224
|
const Nc = (t) => {
|
|
5225
5225
|
const {
|
|
5226
5226
|
colorManager: e
|
|
5227
|
-
} =
|
|
5227
|
+
} = Pe(Te), [n, a] = de(Ya(t.value)), [i, o] = de(qc(e, t.value)), s = pr(i), [l, u] = de($c(e, t.value)), p = pr(l);
|
|
5228
5228
|
return /* @__PURE__ */ c(g, {
|
|
5229
5229
|
align: "end",
|
|
5230
5230
|
children: [/* @__PURE__ */ r(j, {
|
|
@@ -5299,7 +5299,7 @@ function Gc({
|
|
|
5299
5299
|
sx: {
|
|
5300
5300
|
position: "relative"
|
|
5301
5301
|
},
|
|
5302
|
-
children: [/* @__PURE__ */ r(
|
|
5302
|
+
children: [/* @__PURE__ */ r(v, {
|
|
5303
5303
|
children: "Table Config"
|
|
5304
5304
|
}), /* @__PURE__ */ r(z, {
|
|
5305
5305
|
type: "submit",
|
|
@@ -5370,17 +5370,17 @@ function Gc({
|
|
|
5370
5370
|
...a.getInputProps("fontSize")
|
|
5371
5371
|
})
|
|
5372
5372
|
}), /* @__PURE__ */ c(w, {
|
|
5373
|
-
children: [/* @__PURE__ */ r(
|
|
5373
|
+
children: [/* @__PURE__ */ r(v, {
|
|
5374
5374
|
children: "Other"
|
|
5375
5375
|
}), /* @__PURE__ */ c(g, {
|
|
5376
5376
|
position: "apart",
|
|
5377
5377
|
grow: !0,
|
|
5378
|
-
children: [/* @__PURE__ */ r(
|
|
5378
|
+
children: [/* @__PURE__ */ r(Fe, {
|
|
5379
5379
|
label: "Striped",
|
|
5380
5380
|
...a.getInputProps("striped", {
|
|
5381
5381
|
type: "checkbox"
|
|
5382
5382
|
})
|
|
5383
|
-
}), /* @__PURE__ */ r(
|
|
5383
|
+
}), /* @__PURE__ */ r(Fe, {
|
|
5384
5384
|
label: "Highlight on hover",
|
|
5385
5385
|
...a.getInputProps("highlightOnHover", {
|
|
5386
5386
|
type: "checkbox"
|
|
@@ -5397,13 +5397,13 @@ function Gc({
|
|
|
5397
5397
|
border: "1px solid #eee",
|
|
5398
5398
|
borderRadius: "5px"
|
|
5399
5399
|
},
|
|
5400
|
-
children: [/* @__PURE__ */ r(
|
|
5400
|
+
children: [/* @__PURE__ */ r(Fe, {
|
|
5401
5401
|
label: "Use Original Data Columns",
|
|
5402
5402
|
...a.getInputProps("use_raw_columns", {
|
|
5403
5403
|
type: "checkbox"
|
|
5404
5404
|
})
|
|
5405
5405
|
}), !a.values.use_raw_columns && /* @__PURE__ */ c(w, {
|
|
5406
|
-
children: [/* @__PURE__ */ r(
|
|
5406
|
+
children: [/* @__PURE__ */ r(v, {
|
|
5407
5407
|
mt: "xl",
|
|
5408
5408
|
mb: 0,
|
|
5409
5409
|
children: "Custom Columns"
|
|
@@ -5462,7 +5462,7 @@ function Gc({
|
|
|
5462
5462
|
})
|
|
5463
5463
|
})]
|
|
5464
5464
|
})]
|
|
5465
|
-
}), /* @__PURE__ */ r(
|
|
5465
|
+
}), /* @__PURE__ */ r(v, {
|
|
5466
5466
|
weight: 500,
|
|
5467
5467
|
mb: "md",
|
|
5468
5468
|
children: "Current Configuration:"
|
|
@@ -5504,7 +5504,7 @@ const cn = {
|
|
|
5504
5504
|
label_field: "",
|
|
5505
5505
|
value_field: ""
|
|
5506
5506
|
};
|
|
5507
|
-
ne.use([To,
|
|
5507
|
+
ne.use([To, qe]);
|
|
5508
5508
|
const Qc = {
|
|
5509
5509
|
tooltip: {
|
|
5510
5510
|
show: !0
|
|
@@ -5548,7 +5548,7 @@ function Yc({
|
|
|
5548
5548
|
data: l
|
|
5549
5549
|
}
|
|
5550
5550
|
});
|
|
5551
|
-
return /* @__PURE__ */ r(
|
|
5551
|
+
return /* @__PURE__ */ r(Le, {
|
|
5552
5552
|
echarts: ne,
|
|
5553
5553
|
option: h,
|
|
5554
5554
|
style: {
|
|
@@ -5588,7 +5588,7 @@ function Uc({
|
|
|
5588
5588
|
sx: {
|
|
5589
5589
|
position: "relative"
|
|
5590
5590
|
},
|
|
5591
|
-
children: [/* @__PURE__ */ r(
|
|
5591
|
+
children: [/* @__PURE__ */ r(v, {
|
|
5592
5592
|
children: "Sunburst Config"
|
|
5593
5593
|
}), /* @__PURE__ */ r(z, {
|
|
5594
5594
|
type: "submit",
|
|
@@ -5646,7 +5646,7 @@ const Xc = {
|
|
|
5646
5646
|
label_field: "",
|
|
5647
5647
|
value_field: ""
|
|
5648
5648
|
};
|
|
5649
|
-
ne.use([Vo,
|
|
5649
|
+
ne.use([Vo, qe]);
|
|
5650
5650
|
const Jc = {
|
|
5651
5651
|
tooltip: {
|
|
5652
5652
|
show: !0
|
|
@@ -5709,7 +5709,7 @@ function Kc({
|
|
|
5709
5709
|
data: l
|
|
5710
5710
|
}
|
|
5711
5711
|
});
|
|
5712
|
-
return /* @__PURE__ */ r(
|
|
5712
|
+
return /* @__PURE__ */ r(Le, {
|
|
5713
5713
|
echarts: ne,
|
|
5714
5714
|
option: p,
|
|
5715
5715
|
style: {
|
|
@@ -5749,7 +5749,7 @@ function Zc({
|
|
|
5749
5749
|
sx: {
|
|
5750
5750
|
position: "relative"
|
|
5751
5751
|
},
|
|
5752
|
-
children: [/* @__PURE__ */ r(
|
|
5752
|
+
children: [/* @__PURE__ */ r(v, {
|
|
5753
5753
|
children: "Pie Config"
|
|
5754
5754
|
}), /* @__PURE__ */ r(z, {
|
|
5755
5755
|
type: "submit",
|
|
@@ -5820,7 +5820,7 @@ const tu = {
|
|
|
5820
5820
|
name: "Z Axis Name"
|
|
5821
5821
|
}
|
|
5822
5822
|
};
|
|
5823
|
-
ne.use([Ke, Oo, Ze, et,
|
|
5823
|
+
ne.use([Ke, Oo, Ze, et, qe]);
|
|
5824
5824
|
function nu({
|
|
5825
5825
|
context: t
|
|
5826
5826
|
}) {
|
|
@@ -5876,7 +5876,7 @@ function nu({
|
|
|
5876
5876
|
data: n.map((I) => [I[o], I[s], I[l]])
|
|
5877
5877
|
}]
|
|
5878
5878
|
};
|
|
5879
|
-
return e ? /* @__PURE__ */ r(
|
|
5879
|
+
return e ? /* @__PURE__ */ r(Le, {
|
|
5880
5880
|
echarts: ne,
|
|
5881
5881
|
option: y,
|
|
5882
5882
|
style: {
|
|
@@ -5905,7 +5905,7 @@ function ru({
|
|
|
5905
5905
|
spacing: "xs",
|
|
5906
5906
|
children: /* @__PURE__ */ c("form", {
|
|
5907
5907
|
onSubmit: s(n),
|
|
5908
|
-
children: [/* @__PURE__ */ r(
|
|
5908
|
+
children: [/* @__PURE__ */ r(v, {
|
|
5909
5909
|
children: "X Axis"
|
|
5910
5910
|
}), /* @__PURE__ */ c(g, {
|
|
5911
5911
|
position: "apart",
|
|
@@ -5940,7 +5940,7 @@ function ru({
|
|
|
5940
5940
|
...u
|
|
5941
5941
|
})
|
|
5942
5942
|
})]
|
|
5943
|
-
}), /* @__PURE__ */ r(
|
|
5943
|
+
}), /* @__PURE__ */ r(v, {
|
|
5944
5944
|
mt: "lg",
|
|
5945
5945
|
children: "Y Axis"
|
|
5946
5946
|
}), /* @__PURE__ */ c(g, {
|
|
@@ -5976,7 +5976,7 @@ function ru({
|
|
|
5976
5976
|
...u
|
|
5977
5977
|
})
|
|
5978
5978
|
})]
|
|
5979
|
-
}), /* @__PURE__ */ r(
|
|
5979
|
+
}), /* @__PURE__ */ r(v, {
|
|
5980
5980
|
mt: "lg",
|
|
5981
5981
|
children: "Z Axis"
|
|
5982
5982
|
}), /* @__PURE__ */ c(g, {
|
|
@@ -6025,7 +6025,7 @@ function ru({
|
|
|
6025
6025
|
type: "submit",
|
|
6026
6026
|
children: [/* @__PURE__ */ r(Z, {
|
|
6027
6027
|
size: 20
|
|
6028
|
-
}), /* @__PURE__ */ r(
|
|
6028
|
+
}), /* @__PURE__ */ r(v, {
|
|
6029
6029
|
ml: "md",
|
|
6030
6030
|
children: "Save"
|
|
6031
6031
|
})]
|
|
@@ -6066,7 +6066,7 @@ const iu = {
|
|
|
6066
6066
|
variables: [],
|
|
6067
6067
|
reference_lines: []
|
|
6068
6068
|
};
|
|
6069
|
-
ne.use([Mt, zo, Fo, Ke, Ze, et,
|
|
6069
|
+
ne.use([Mt, zo, Fo, Ke, Ze, et, qe]);
|
|
6070
6070
|
function ou(t, e, n) {
|
|
6071
6071
|
const a = e.reduce((i, o) => {
|
|
6072
6072
|
const s = ja(o, n);
|
|
@@ -6157,7 +6157,7 @@ function su({
|
|
|
6157
6157
|
datasetIndex: 1
|
|
6158
6158
|
}, ...ou(p, u, n)]
|
|
6159
6159
|
};
|
|
6160
|
-
return !e || !a || !i ? null : /* @__PURE__ */ r(
|
|
6160
|
+
return !e || !a || !i ? null : /* @__PURE__ */ r(Le, {
|
|
6161
6161
|
echarts: ne,
|
|
6162
6162
|
option: m,
|
|
6163
6163
|
style: {
|
|
@@ -6383,7 +6383,7 @@ function hu({
|
|
|
6383
6383
|
borderBottom: "1px solid #eee",
|
|
6384
6384
|
background: "#efefef"
|
|
6385
6385
|
},
|
|
6386
|
-
children: [/* @__PURE__ */ r(
|
|
6386
|
+
children: [/* @__PURE__ */ r(v, {
|
|
6387
6387
|
children: "Chart Config"
|
|
6388
6388
|
}), /* @__PURE__ */ r(z, {
|
|
6389
6389
|
type: "submit",
|
|
@@ -6471,7 +6471,7 @@ function hu({
|
|
|
6471
6471
|
}), /* @__PURE__ */ r(P.Panel, {
|
|
6472
6472
|
children: /* @__PURE__ */ c(w, {
|
|
6473
6473
|
spacing: 4,
|
|
6474
|
-
children: [/* @__PURE__ */ r(
|
|
6474
|
+
children: [/* @__PURE__ */ r(v, {
|
|
6475
6475
|
size: "sm",
|
|
6476
6476
|
children: "Color"
|
|
6477
6477
|
}), /* @__PURE__ */ r(_, {
|
|
@@ -6490,7 +6490,7 @@ function hu({
|
|
|
6490
6490
|
children: [/* @__PURE__ */ r(P.Control, {
|
|
6491
6491
|
children: /* @__PURE__ */ c(g, {
|
|
6492
6492
|
position: "apart",
|
|
6493
|
-
children: ["Advanced", /* @__PURE__ */ r(
|
|
6493
|
+
children: ["Advanced", /* @__PURE__ */ r(v, {
|
|
6494
6494
|
align: "right",
|
|
6495
6495
|
size: 12,
|
|
6496
6496
|
color: "grey",
|
|
@@ -6771,7 +6771,7 @@ const Mn = {
|
|
|
6771
6771
|
variables: [],
|
|
6772
6772
|
reference_lines: []
|
|
6773
6773
|
};
|
|
6774
|
-
ne.use([Mt, Jr, Kr, Zr, Ke, Ze, et,
|
|
6774
|
+
ne.use([Mt, Jr, Kr, Zr, Ke, Ze, et, qe]);
|
|
6775
6775
|
ne.registerTransform(ea.regression);
|
|
6776
6776
|
function _r(t) {
|
|
6777
6777
|
return t.trim().length > 0;
|
|
@@ -6783,7 +6783,7 @@ function Ru({
|
|
|
6783
6783
|
height: a
|
|
6784
6784
|
}) {
|
|
6785
6785
|
const i = x.useMemo(() => Iu(t, e), [t, e]);
|
|
6786
|
-
return !n || !a ? null : /* @__PURE__ */ r(
|
|
6786
|
+
return !n || !a ? null : /* @__PURE__ */ r(Le, {
|
|
6787
6787
|
echarts: ne,
|
|
6788
6788
|
option: i,
|
|
6789
6789
|
style: {
|
|
@@ -6819,7 +6819,7 @@ function Du({
|
|
|
6819
6819
|
};
|
|
6820
6820
|
}, [n, a]), f = Math.max(0, o - l - p);
|
|
6821
6821
|
return /* @__PURE__ */ c(q, {
|
|
6822
|
-
children: [_r(n.stats.templates.top) && /* @__PURE__ */ r(
|
|
6822
|
+
children: [_r(n.stats.templates.top) && /* @__PURE__ */ r(v, {
|
|
6823
6823
|
ref: s,
|
|
6824
6824
|
align: "left",
|
|
6825
6825
|
size: "xs",
|
|
@@ -6830,7 +6830,7 @@ function Du({
|
|
|
6830
6830
|
height: f,
|
|
6831
6831
|
data: a,
|
|
6832
6832
|
conf: n
|
|
6833
|
-
}), _r(n.stats.templates.bottom) && /* @__PURE__ */ r(
|
|
6833
|
+
}), _r(n.stats.templates.bottom) && /* @__PURE__ */ r(v, {
|
|
6834
6834
|
ref: u,
|
|
6835
6835
|
align: "left",
|
|
6836
6836
|
size: "xs",
|
|
@@ -7062,7 +7062,7 @@ function zu({
|
|
|
7062
7062
|
})]
|
|
7063
7063
|
}), /* @__PURE__ */ c(w, {
|
|
7064
7064
|
spacing: 4,
|
|
7065
|
-
children: [/* @__PURE__ */ r(
|
|
7065
|
+
children: [/* @__PURE__ */ r(v, {
|
|
7066
7066
|
size: "sm",
|
|
7067
7067
|
children: "Color"
|
|
7068
7068
|
}), /* @__PURE__ */ r(_, {
|
|
@@ -7155,7 +7155,7 @@ function Fu({
|
|
|
7155
7155
|
control: t,
|
|
7156
7156
|
index: e
|
|
7157
7157
|
}) {
|
|
7158
|
-
return /* @__PURE__ */ c(
|
|
7158
|
+
return /* @__PURE__ */ c(U, {
|
|
7159
7159
|
children: [/* @__PURE__ */ c(g, {
|
|
7160
7160
|
grow: !0,
|
|
7161
7161
|
align: "top",
|
|
@@ -7249,7 +7249,7 @@ function Pu({
|
|
|
7249
7249
|
sx: {
|
|
7250
7250
|
flexGrow: 1
|
|
7251
7251
|
},
|
|
7252
|
-
children: /* @__PURE__ */ r(
|
|
7252
|
+
children: /* @__PURE__ */ r(Fe, {
|
|
7253
7253
|
label: "Smooth Line",
|
|
7254
7254
|
checked: n.value,
|
|
7255
7255
|
onChange: (a) => n.onChange(a.currentTarget.checked)
|
|
@@ -7280,7 +7280,7 @@ function Lu({
|
|
|
7280
7280
|
},
|
|
7281
7281
|
pb: 16,
|
|
7282
7282
|
spacing: 4,
|
|
7283
|
-
children: [/* @__PURE__ */ r(
|
|
7283
|
+
children: [/* @__PURE__ */ r(v, {
|
|
7284
7284
|
size: "sm",
|
|
7285
7285
|
children: "Size"
|
|
7286
7286
|
}), /* @__PURE__ */ r(zr, {
|
|
@@ -7479,7 +7479,7 @@ function $u({
|
|
|
7479
7479
|
})
|
|
7480
7480
|
}), /* @__PURE__ */ c(w, {
|
|
7481
7481
|
spacing: 4,
|
|
7482
|
-
children: [/* @__PURE__ */ r(
|
|
7482
|
+
children: [/* @__PURE__ */ r(v, {
|
|
7483
7483
|
size: "sm",
|
|
7484
7484
|
children: "Color"
|
|
7485
7485
|
}), /* @__PURE__ */ r(_, {
|
|
@@ -7925,7 +7925,7 @@ function Xu({
|
|
|
7925
7925
|
borderBottom: "1px solid #eee",
|
|
7926
7926
|
background: "#efefef"
|
|
7927
7927
|
},
|
|
7928
|
-
children: [/* @__PURE__ */ r(
|
|
7928
|
+
children: [/* @__PURE__ */ r(v, {
|
|
7929
7929
|
children: "Chart Config"
|
|
7930
7930
|
}), /* @__PURE__ */ r(z, {
|
|
7931
7931
|
type: "submit",
|
|
@@ -8025,7 +8025,7 @@ function Xu({
|
|
|
8025
8025
|
children: [/* @__PURE__ */ r(P.Control, {
|
|
8026
8026
|
children: /* @__PURE__ */ c(g, {
|
|
8027
8027
|
position: "apart",
|
|
8028
|
-
children: ["Advanced", /* @__PURE__ */ r(
|
|
8028
|
+
children: ["Advanced", /* @__PURE__ */ r(v, {
|
|
8029
8029
|
align: "right",
|
|
8030
8030
|
size: 12,
|
|
8031
8031
|
color: "grey",
|
|
@@ -8118,7 +8118,7 @@ const Pn = {
|
|
|
8118
8118
|
series_name_key: "name",
|
|
8119
8119
|
dimensions: []
|
|
8120
8120
|
};
|
|
8121
|
-
ne.use([Eo, Ke, Ze, et,
|
|
8121
|
+
ne.use([Eo, Ke, Ze, et, qe]);
|
|
8122
8122
|
function td({
|
|
8123
8123
|
context: t
|
|
8124
8124
|
}) {
|
|
@@ -8129,7 +8129,7 @@ function td({
|
|
|
8129
8129
|
height: a
|
|
8130
8130
|
} = t.viewport, i = t.data, o = A(() => ed(Ge({}, e, Pn), i), [e, i]);
|
|
8131
8131
|
return !n || !a || !e || Pr(e == null ? void 0 : e.dimensions) ? null : /* @__PURE__ */ r(q, {
|
|
8132
|
-
children: /* @__PURE__ */ r(
|
|
8132
|
+
children: /* @__PURE__ */ r(Le, {
|
|
8133
8133
|
echarts: ne,
|
|
8134
8134
|
option: o,
|
|
8135
8135
|
style: {
|
|
@@ -8199,7 +8199,7 @@ function nd({
|
|
|
8199
8199
|
})
|
|
8200
8200
|
})]
|
|
8201
8201
|
}), /* @__PURE__ */ c(q, {
|
|
8202
|
-
children: [/* @__PURE__ */ r(
|
|
8202
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8203
8203
|
size: "sm",
|
|
8204
8204
|
children: "Color"
|
|
8205
8205
|
}), /* @__PURE__ */ r(_, {
|
|
@@ -8322,7 +8322,7 @@ function id({
|
|
|
8322
8322
|
borderBottom: "1px solid #eee",
|
|
8323
8323
|
background: "#efefef"
|
|
8324
8324
|
},
|
|
8325
|
-
children: [/* @__PURE__ */ r(
|
|
8325
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8326
8326
|
children: "Chart Config"
|
|
8327
8327
|
}), /* @__PURE__ */ r(z, {
|
|
8328
8328
|
type: "submit",
|
|
@@ -8483,23 +8483,23 @@ function hd(t, e) {
|
|
|
8483
8483
|
position: "center",
|
|
8484
8484
|
noWrap: !0,
|
|
8485
8485
|
spacing: 10,
|
|
8486
|
-
children: [/* @__PURE__ */ r(
|
|
8486
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8487
8487
|
children: i.name
|
|
8488
|
-
}), /* @__PURE__ */ r(
|
|
8488
|
+
}), /* @__PURE__ */ r(v, {
|
|
8489
8489
|
children: "="
|
|
8490
|
-
}), /* @__PURE__ */ r(
|
|
8490
|
+
}), /* @__PURE__ */ r(v, {
|
|
8491
8491
|
weight: "bold",
|
|
8492
8492
|
color: "gray",
|
|
8493
8493
|
children: u
|
|
8494
|
-
}), /* @__PURE__ */ r(
|
|
8494
|
+
}), /* @__PURE__ */ r(v, {
|
|
8495
8495
|
children: "+"
|
|
8496
|
-
}), /* @__PURE__ */ r(
|
|
8496
|
+
}), /* @__PURE__ */ r(v, {
|
|
8497
8497
|
weight: "bold",
|
|
8498
8498
|
color: "gray",
|
|
8499
8499
|
children: l
|
|
8500
|
-
}), /* @__PURE__ */ r(
|
|
8500
|
+
}), /* @__PURE__ */ r(v, {
|
|
8501
8501
|
children: "\xD7"
|
|
8502
|
-
}), /* @__PURE__ */ r(
|
|
8502
|
+
}), /* @__PURE__ */ r(v, {
|
|
8503
8503
|
children: a.name
|
|
8504
8504
|
})]
|
|
8505
8505
|
}),
|
|
@@ -8518,31 +8518,31 @@ function hd(t, e) {
|
|
|
8518
8518
|
position: "center",
|
|
8519
8519
|
noWrap: !0,
|
|
8520
8520
|
spacing: 10,
|
|
8521
|
-
children: [/* @__PURE__ */ r(
|
|
8521
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8522
8522
|
children: i.name
|
|
8523
|
-
}), /* @__PURE__ */ r(
|
|
8523
|
+
}), /* @__PURE__ */ r(v, {
|
|
8524
8524
|
children: "="
|
|
8525
|
-
}), /* @__PURE__ */ r(
|
|
8525
|
+
}), /* @__PURE__ */ r(v, {
|
|
8526
8526
|
weight: "bold",
|
|
8527
8527
|
color: "gray",
|
|
8528
8528
|
children: s
|
|
8529
|
-
}), /* @__PURE__ */ r(
|
|
8529
|
+
}), /* @__PURE__ */ r(v, {
|
|
8530
8530
|
children: "\xD7"
|
|
8531
8531
|
}), /* @__PURE__ */ c(g, {
|
|
8532
8532
|
position: "left",
|
|
8533
8533
|
noWrap: !0,
|
|
8534
8534
|
spacing: 2,
|
|
8535
|
-
children: [/* @__PURE__ */ r(
|
|
8535
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8536
8536
|
children: "Math.exp("
|
|
8537
|
-
}), /* @__PURE__ */ r(
|
|
8537
|
+
}), /* @__PURE__ */ r(v, {
|
|
8538
8538
|
weight: "bold",
|
|
8539
8539
|
color: "gray",
|
|
8540
8540
|
children: l
|
|
8541
|
-
}), /* @__PURE__ */ r(
|
|
8541
|
+
}), /* @__PURE__ */ r(v, {
|
|
8542
8542
|
children: "\xD7"
|
|
8543
|
-
}), /* @__PURE__ */ r(
|
|
8543
|
+
}), /* @__PURE__ */ r(v, {
|
|
8544
8544
|
children: a.name
|
|
8545
|
-
}), /* @__PURE__ */ r(
|
|
8545
|
+
}), /* @__PURE__ */ r(v, {
|
|
8546
8546
|
children: ")"
|
|
8547
8547
|
})]
|
|
8548
8548
|
})]
|
|
@@ -8562,29 +8562,29 @@ function hd(t, e) {
|
|
|
8562
8562
|
position: "center",
|
|
8563
8563
|
noWrap: !0,
|
|
8564
8564
|
spacing: 10,
|
|
8565
|
-
children: [/* @__PURE__ */ r(
|
|
8565
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8566
8566
|
children: i.name
|
|
8567
|
-
}), /* @__PURE__ */ r(
|
|
8567
|
+
}), /* @__PURE__ */ r(v, {
|
|
8568
8568
|
children: "="
|
|
8569
|
-
}), /* @__PURE__ */ r(
|
|
8569
|
+
}), /* @__PURE__ */ r(v, {
|
|
8570
8570
|
weight: "bold",
|
|
8571
8571
|
color: "gray",
|
|
8572
8572
|
children: s
|
|
8573
|
-
}), /* @__PURE__ */ r(
|
|
8573
|
+
}), /* @__PURE__ */ r(v, {
|
|
8574
8574
|
children: "\xD7"
|
|
8575
8575
|
}), /* @__PURE__ */ c(g, {
|
|
8576
8576
|
position: "left",
|
|
8577
8577
|
noWrap: !0,
|
|
8578
8578
|
spacing: 2,
|
|
8579
|
-
children: [/* @__PURE__ */ r(
|
|
8579
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8580
8580
|
children: "Math.log("
|
|
8581
|
-
}), /* @__PURE__ */ r(
|
|
8581
|
+
}), /* @__PURE__ */ r(v, {
|
|
8582
8582
|
children: a.name
|
|
8583
|
-
}), /* @__PURE__ */ r(
|
|
8583
|
+
}), /* @__PURE__ */ r(v, {
|
|
8584
8584
|
children: ")"
|
|
8585
|
-
}), /* @__PURE__ */ r(
|
|
8585
|
+
}), /* @__PURE__ */ r(v, {
|
|
8586
8586
|
children: "+"
|
|
8587
|
-
}), /* @__PURE__ */ r(
|
|
8587
|
+
}), /* @__PURE__ */ r(v, {
|
|
8588
8588
|
weight: "bold",
|
|
8589
8589
|
color: "gray",
|
|
8590
8590
|
children: l
|
|
@@ -8636,7 +8636,7 @@ const An = {
|
|
|
8636
8636
|
y_axis_data_key: "value"
|
|
8637
8637
|
}
|
|
8638
8638
|
};
|
|
8639
|
-
ne.use([Mt, Zr, Ke, Ze, et,
|
|
8639
|
+
ne.use([Mt, Zr, Ke, Ze, et, qe]);
|
|
8640
8640
|
ne.registerTransform(ea.regression);
|
|
8641
8641
|
function pd({
|
|
8642
8642
|
context: t
|
|
@@ -8662,7 +8662,7 @@ function pd({
|
|
|
8662
8662
|
return null;
|
|
8663
8663
|
let p = a;
|
|
8664
8664
|
return s && (p -= 20), /* @__PURE__ */ c(q, {
|
|
8665
|
-
children: [s && /* @__PURE__ */ r(
|
|
8665
|
+
children: [s && /* @__PURE__ */ r(v, {
|
|
8666
8666
|
align: "center",
|
|
8667
8667
|
size: 12,
|
|
8668
8668
|
children: s
|
|
@@ -8676,7 +8676,7 @@ function pd({
|
|
|
8676
8676
|
flexShrink: 0
|
|
8677
8677
|
}
|
|
8678
8678
|
},
|
|
8679
|
-
children: [/* @__PURE__ */ r(
|
|
8679
|
+
children: [/* @__PURE__ */ r(Le, {
|
|
8680
8680
|
echarts: ne,
|
|
8681
8681
|
option: o,
|
|
8682
8682
|
style: {
|
|
@@ -8806,7 +8806,7 @@ function fd({
|
|
|
8806
8806
|
})]
|
|
8807
8807
|
}), /* @__PURE__ */ c(w, {
|
|
8808
8808
|
spacing: 4,
|
|
8809
|
-
children: [/* @__PURE__ */ r(
|
|
8809
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8810
8810
|
size: "sm",
|
|
8811
8811
|
children: "Color"
|
|
8812
8812
|
}), /* @__PURE__ */ r(_, {
|
|
@@ -8853,7 +8853,7 @@ function gd({
|
|
|
8853
8853
|
borderBottom: "1px solid #eee",
|
|
8854
8854
|
background: "#efefef"
|
|
8855
8855
|
},
|
|
8856
|
-
children: [/* @__PURE__ */ r(
|
|
8856
|
+
children: [/* @__PURE__ */ r(v, {
|
|
8857
8857
|
children: "Chart Config"
|
|
8858
8858
|
}), /* @__PURE__ */ r(z, {
|
|
8859
8859
|
type: "submit",
|
|
@@ -8995,7 +8995,7 @@ function xd(t) {
|
|
|
8995
8995
|
});
|
|
8996
8996
|
return n.unshift(`<strong>${e[0].name}</strong>`), n.join("<br />");
|
|
8997
8997
|
}
|
|
8998
|
-
ne.use([Jr, Kr, Mt, Ke, Ze, et,
|
|
8998
|
+
ne.use([Jr, Kr, Mt, Ke, Ze, et, qe]);
|
|
8999
8999
|
function Cd({
|
|
9000
9000
|
context: t
|
|
9001
9001
|
}) {
|
|
@@ -9085,7 +9085,7 @@ function Cd({
|
|
|
9085
9085
|
data: h
|
|
9086
9086
|
}]
|
|
9087
9087
|
};
|
|
9088
|
-
return !e || !a || !i ? null : /* @__PURE__ */ r(
|
|
9088
|
+
return !e || !a || !i ? null : /* @__PURE__ */ r(Le, {
|
|
9089
9089
|
echarts: ne,
|
|
9090
9090
|
option: f,
|
|
9091
9091
|
style: {
|
|
@@ -9126,7 +9126,7 @@ function wd({
|
|
|
9126
9126
|
borderBottom: "1px solid #eee",
|
|
9127
9127
|
background: "#efefef"
|
|
9128
9128
|
},
|
|
9129
|
-
children: [/* @__PURE__ */ r(
|
|
9129
|
+
children: [/* @__PURE__ */ r(v, {
|
|
9130
9130
|
children: "Chart Config"
|
|
9131
9131
|
}), /* @__PURE__ */ r(z, {
|
|
9132
9132
|
type: "submit",
|
|
@@ -9182,7 +9182,7 @@ function wd({
|
|
|
9182
9182
|
},
|
|
9183
9183
|
...m
|
|
9184
9184
|
})
|
|
9185
|
-
}), /* @__PURE__ */ r(
|
|
9185
|
+
}), /* @__PURE__ */ r(ie, {
|
|
9186
9186
|
my: "md",
|
|
9187
9187
|
label: "Bar",
|
|
9188
9188
|
labelPosition: "center"
|
|
@@ -9203,7 +9203,7 @@ function wd({
|
|
|
9203
9203
|
})
|
|
9204
9204
|
}), /* @__PURE__ */ c(w, {
|
|
9205
9205
|
spacing: 4,
|
|
9206
|
-
children: [/* @__PURE__ */ r(
|
|
9206
|
+
children: [/* @__PURE__ */ r(v, {
|
|
9207
9207
|
size: "sm",
|
|
9208
9208
|
children: "Bar's Color"
|
|
9209
9209
|
}), /* @__PURE__ */ r(_, {
|
|
@@ -9216,7 +9216,7 @@ function wd({
|
|
|
9216
9216
|
})
|
|
9217
9217
|
})]
|
|
9218
9218
|
})]
|
|
9219
|
-
}), /* @__PURE__ */ r(
|
|
9219
|
+
}), /* @__PURE__ */ r(ie, {
|
|
9220
9220
|
my: "md",
|
|
9221
9221
|
label: "Line",
|
|
9222
9222
|
labelPosition: "center"
|
|
@@ -9237,7 +9237,7 @@ function wd({
|
|
|
9237
9237
|
})
|
|
9238
9238
|
}), /* @__PURE__ */ c(w, {
|
|
9239
9239
|
spacing: 4,
|
|
9240
|
-
children: [/* @__PURE__ */ r(
|
|
9240
|
+
children: [/* @__PURE__ */ r(v, {
|
|
9241
9241
|
size: "sm",
|
|
9242
9242
|
children: "Line's Color"
|
|
9243
9243
|
}), /* @__PURE__ */ r(_, {
|
|
@@ -9347,7 +9347,7 @@ function Dd(t, e) {
|
|
|
9347
9347
|
const {
|
|
9348
9348
|
value: n,
|
|
9349
9349
|
set: a
|
|
9350
|
-
} = G(t.operation.operationData, "config"), [i, o] =
|
|
9350
|
+
} = G(t.operation.operationData, "config"), [i, o] = de(te({}, n, e)), s = async () => {
|
|
9351
9351
|
await a(i);
|
|
9352
9352
|
};
|
|
9353
9353
|
return K(() => {
|
|
@@ -9386,7 +9386,7 @@ function kd(t) {
|
|
|
9386
9386
|
value: e.urlTemplate,
|
|
9387
9387
|
onChange: s,
|
|
9388
9388
|
onBlur: i
|
|
9389
|
-
}), /* @__PURE__ */ r(
|
|
9389
|
+
}), /* @__PURE__ */ r(Fe, {
|
|
9390
9390
|
label: "Open in new Tab",
|
|
9391
9391
|
checked: e.openInNewTab,
|
|
9392
9392
|
onChange: (l) => o(l.currentTarget.checked)
|
|
@@ -9597,7 +9597,7 @@ class Xa {
|
|
|
9597
9597
|
}
|
|
9598
9598
|
}
|
|
9599
9599
|
function Ld(t, e) {
|
|
9600
|
-
const [n, a] =
|
|
9600
|
+
const [n, a] = de([]);
|
|
9601
9601
|
return ft(async () => {
|
|
9602
9602
|
const i = await t.getInteractionList();
|
|
9603
9603
|
a(i);
|
|
@@ -9638,7 +9638,7 @@ const qd = R(({
|
|
|
9638
9638
|
}
|
|
9639
9639
|
return null;
|
|
9640
9640
|
}), $d = (t) => {
|
|
9641
|
-
const [e, n] =
|
|
9641
|
+
const [e, n] = de(0), {
|
|
9642
9642
|
interactionManager: a,
|
|
9643
9643
|
instance: i,
|
|
9644
9644
|
sampleData: o,
|
|
@@ -9672,7 +9672,7 @@ const qd = R(({
|
|
|
9672
9672
|
data: e
|
|
9673
9673
|
} = he(), n = t.viz, {
|
|
9674
9674
|
vizManager: a
|
|
9675
|
-
} =
|
|
9675
|
+
} = Pe(Te), i = t.json, o = Me(() => a.getOrCreateInstance(i), [a, n.type]), s = Me(() => new Xa(o, a.resolveComponent(n.type), $n), [o, n.type]);
|
|
9676
9676
|
return K(() => o.instanceData.watchItem(
|
|
9677
9677
|
null,
|
|
9678
9678
|
ao((l) => {
|
|
@@ -9693,20 +9693,23 @@ const qd = R(({
|
|
|
9693
9693
|
return /* @__PURE__ */ r($d, {
|
|
9694
9694
|
...t
|
|
9695
9695
|
});
|
|
9696
|
-
}
|
|
9697
|
-
function Bd() {
|
|
9696
|
+
}, Bd = R(() => {
|
|
9698
9697
|
const {
|
|
9699
9698
|
panel: t
|
|
9700
9699
|
} = he(), [e, n] = x.useState(t.description), a = t.description !== e, i = x.useCallback(() => {
|
|
9701
9700
|
!a || t.setDescription(e);
|
|
9702
9701
|
}, [a, e]);
|
|
9703
9702
|
return /* @__PURE__ */ c(w, {
|
|
9703
|
+
spacing: 4,
|
|
9704
9704
|
sx: {
|
|
9705
9705
|
flexGrow: 1
|
|
9706
9706
|
},
|
|
9707
9707
|
children: [/* @__PURE__ */ c(g, {
|
|
9708
9708
|
align: "end",
|
|
9709
|
-
children: [/* @__PURE__ */ r(
|
|
9709
|
+
children: [/* @__PURE__ */ r(v, {
|
|
9710
|
+
sx: {
|
|
9711
|
+
flexGrow: 1
|
|
9712
|
+
},
|
|
9710
9713
|
children: "Description"
|
|
9711
9714
|
}), /* @__PURE__ */ r(z, {
|
|
9712
9715
|
variant: "subtle",
|
|
@@ -9727,11 +9730,26 @@ function Bd() {
|
|
|
9727
9730
|
p: "0"
|
|
9728
9731
|
})]
|
|
9729
9732
|
});
|
|
9730
|
-
}
|
|
9731
|
-
|
|
9733
|
+
}), Gd = R(() => {
|
|
9734
|
+
const {
|
|
9735
|
+
panel: t
|
|
9736
|
+
} = he(), {
|
|
9737
|
+
style: e
|
|
9738
|
+
} = t;
|
|
9739
|
+
return /* @__PURE__ */ r(U, {
|
|
9740
|
+
children: /* @__PURE__ */ r(Fe, {
|
|
9741
|
+
label: "Border",
|
|
9742
|
+
checked: e.border.enabled,
|
|
9743
|
+
onChange: (n) => e.border.setEnabled(n.currentTarget.checked)
|
|
9744
|
+
})
|
|
9745
|
+
});
|
|
9746
|
+
}), Wd = R(() => {
|
|
9732
9747
|
const {
|
|
9733
9748
|
panel: {
|
|
9734
|
-
title: t
|
|
9749
|
+
title: t,
|
|
9750
|
+
style: {
|
|
9751
|
+
border: e
|
|
9752
|
+
}
|
|
9735
9753
|
}
|
|
9736
9754
|
} = he();
|
|
9737
9755
|
return /* @__PURE__ */ r(Xe, {
|
|
@@ -9745,7 +9763,8 @@ function Gd() {
|
|
|
9745
9763
|
height: "450px",
|
|
9746
9764
|
background: "transparent",
|
|
9747
9765
|
borderRadius: "5px",
|
|
9748
|
-
|
|
9766
|
+
border: "1px solid #ced4da",
|
|
9767
|
+
borderWidth: e.enabled ? "1px" : "0px"
|
|
9749
9768
|
},
|
|
9750
9769
|
children: [/* @__PURE__ */ c(g, {
|
|
9751
9770
|
position: "apart",
|
|
@@ -9759,7 +9778,7 @@ function Gd() {
|
|
|
9759
9778
|
}), /* @__PURE__ */ r(g, {
|
|
9760
9779
|
grow: !0,
|
|
9761
9780
|
position: "center",
|
|
9762
|
-
children: /* @__PURE__ */ r(
|
|
9781
|
+
children: /* @__PURE__ */ r(v, {
|
|
9763
9782
|
lineClamp: 1,
|
|
9764
9783
|
weight: "bold",
|
|
9765
9784
|
children: t
|
|
@@ -9779,8 +9798,7 @@ function Gd() {
|
|
|
9779
9798
|
})]
|
|
9780
9799
|
})
|
|
9781
9800
|
});
|
|
9782
|
-
}
|
|
9783
|
-
function Wd() {
|
|
9801
|
+
}), Qd = R(() => {
|
|
9784
9802
|
const {
|
|
9785
9803
|
panel: t
|
|
9786
9804
|
} = he(), {
|
|
@@ -9793,8 +9811,11 @@ function Wd() {
|
|
|
9793
9811
|
value: a,
|
|
9794
9812
|
onChange: i,
|
|
9795
9813
|
label: /* @__PURE__ */ c(g, {
|
|
9796
|
-
align: "
|
|
9797
|
-
children: [/* @__PURE__ */ r(
|
|
9814
|
+
align: "apart",
|
|
9815
|
+
children: [/* @__PURE__ */ r(v, {
|
|
9816
|
+
sx: {
|
|
9817
|
+
flexGrow: 1
|
|
9818
|
+
},
|
|
9798
9819
|
children: "Panel Title"
|
|
9799
9820
|
}), /* @__PURE__ */ r(z, {
|
|
9800
9821
|
variant: "subtle",
|
|
@@ -9805,10 +9826,16 @@ function Wd() {
|
|
|
9805
9826
|
size: 20
|
|
9806
9827
|
})
|
|
9807
9828
|
})]
|
|
9808
|
-
})
|
|
9829
|
+
}),
|
|
9830
|
+
styles: {
|
|
9831
|
+
label: {
|
|
9832
|
+
display: "block",
|
|
9833
|
+
paddingBottom: "4px"
|
|
9834
|
+
}
|
|
9835
|
+
}
|
|
9809
9836
|
});
|
|
9810
|
-
}
|
|
9811
|
-
function
|
|
9837
|
+
});
|
|
9838
|
+
function Yd() {
|
|
9812
9839
|
return /* @__PURE__ */ c(g, {
|
|
9813
9840
|
grow: !0,
|
|
9814
9841
|
noWrap: !0,
|
|
@@ -9823,18 +9850,26 @@ function Qd() {
|
|
|
9823
9850
|
flexGrow: 0,
|
|
9824
9851
|
height: "100%"
|
|
9825
9852
|
},
|
|
9826
|
-
children: [/* @__PURE__ */ r(
|
|
9853
|
+
children: [/* @__PURE__ */ r(ie, {
|
|
9854
|
+
label: "Style",
|
|
9855
|
+
labelPosition: "center",
|
|
9856
|
+
variant: "dashed"
|
|
9857
|
+
}), /* @__PURE__ */ r(Gd, {}), /* @__PURE__ */ r(ie, {
|
|
9858
|
+
label: "Info",
|
|
9859
|
+
labelPosition: "center",
|
|
9860
|
+
variant: "dashed"
|
|
9861
|
+
}), /* @__PURE__ */ r(Qd, {}), /* @__PURE__ */ r(Bd, {})]
|
|
9827
9862
|
}), /* @__PURE__ */ r(q, {
|
|
9828
9863
|
sx: {
|
|
9829
9864
|
height: "100%",
|
|
9830
9865
|
flexGrow: 1,
|
|
9831
9866
|
maxWidth: "60%"
|
|
9832
9867
|
},
|
|
9833
|
-
children: /* @__PURE__ */ r(
|
|
9868
|
+
children: /* @__PURE__ */ r(Wd, {})
|
|
9834
9869
|
})]
|
|
9835
9870
|
});
|
|
9836
9871
|
}
|
|
9837
|
-
const
|
|
9872
|
+
const Ud = R(function() {
|
|
9838
9873
|
const e = ee(), {
|
|
9839
9874
|
panel: {
|
|
9840
9875
|
queryID: n,
|
|
@@ -9851,7 +9886,7 @@ const Yd = R(function() {
|
|
|
9851
9886
|
maxWidth: "600px",
|
|
9852
9887
|
alignItems: "baseline"
|
|
9853
9888
|
},
|
|
9854
|
-
children: [/* @__PURE__ */ r(
|
|
9889
|
+
children: [/* @__PURE__ */ r(v, {
|
|
9855
9890
|
children: "Select a Query"
|
|
9856
9891
|
}), /* @__PURE__ */ r(j, {
|
|
9857
9892
|
data: i,
|
|
@@ -9869,7 +9904,7 @@ const Yd = R(function() {
|
|
|
9869
9904
|
});
|
|
9870
9905
|
});
|
|
9871
9906
|
function Ja(t, e, n) {
|
|
9872
|
-
const a =
|
|
9907
|
+
const a = Me(() => /* @__PURE__ */ new Set(), []), i = t.resolveComponent(e.type), [o, s] = de(!1);
|
|
9873
9908
|
return ft(async () => {
|
|
9874
9909
|
if (await i.migrator.needMigration(e) && !a.has(e.id))
|
|
9875
9910
|
try {
|
|
@@ -9881,7 +9916,7 @@ function Ja(t, e, n) {
|
|
|
9881
9916
|
s(!0);
|
|
9882
9917
|
}, [e]), o;
|
|
9883
9918
|
}
|
|
9884
|
-
function
|
|
9919
|
+
function Hd({
|
|
9885
9920
|
setVizConf: t,
|
|
9886
9921
|
...e
|
|
9887
9922
|
}) {
|
|
@@ -9900,11 +9935,11 @@ function Ud({
|
|
|
9900
9935
|
t(s);
|
|
9901
9936
|
}), [t, a.viz.type]), o ? /* @__PURE__ */ r(Xs, {
|
|
9902
9937
|
...e
|
|
9903
|
-
}) : /* @__PURE__ */ r(
|
|
9938
|
+
}) : /* @__PURE__ */ r(v, {
|
|
9904
9939
|
children: "Checking update..."
|
|
9905
9940
|
});
|
|
9906
9941
|
}
|
|
9907
|
-
function
|
|
9942
|
+
function Xd(t) {
|
|
9908
9943
|
const {
|
|
9909
9944
|
vizManager: e,
|
|
9910
9945
|
panel: n
|
|
@@ -9916,37 +9951,39 @@ function Hd(t) {
|
|
|
9916
9951
|
});
|
|
9917
9952
|
}) ? /* @__PURE__ */ r(Hs, {
|
|
9918
9953
|
...t
|
|
9919
|
-
}) : /* @__PURE__ */ r(
|
|
9954
|
+
}) : /* @__PURE__ */ r(v, {
|
|
9920
9955
|
children: "Checking update"
|
|
9921
9956
|
});
|
|
9922
9957
|
}
|
|
9923
|
-
function
|
|
9958
|
+
function Jd(t, e) {
|
|
9924
9959
|
const {
|
|
9925
9960
|
vizManager: n
|
|
9926
|
-
} =
|
|
9961
|
+
} = Pe(Te), {
|
|
9927
9962
|
panel: {
|
|
9928
9963
|
viz: a,
|
|
9929
9964
|
title: i,
|
|
9930
9965
|
id: o,
|
|
9931
9966
|
description: s,
|
|
9932
|
-
queryID: l
|
|
9967
|
+
queryID: l,
|
|
9968
|
+
style: u
|
|
9933
9969
|
}
|
|
9934
|
-
} = he(),
|
|
9970
|
+
} = he(), p = {
|
|
9935
9971
|
title: i,
|
|
9936
9972
|
id: o,
|
|
9937
9973
|
description: s,
|
|
9938
9974
|
queryID: l,
|
|
9939
9975
|
viz: a,
|
|
9940
|
-
layout: e
|
|
9976
|
+
layout: e,
|
|
9977
|
+
style: u.json
|
|
9941
9978
|
};
|
|
9942
9979
|
try {
|
|
9943
|
-
return n.resolveComponent(a.type), /* @__PURE__ */ r(
|
|
9944
|
-
panel:
|
|
9980
|
+
return n.resolveComponent(a.type), /* @__PURE__ */ r(Xd, {
|
|
9981
|
+
panel: p,
|
|
9945
9982
|
data: t,
|
|
9946
9983
|
vizManager: n
|
|
9947
9984
|
});
|
|
9948
|
-
} catch (
|
|
9949
|
-
return console.info(re(
|
|
9985
|
+
} catch (h) {
|
|
9986
|
+
return console.info(re(h, "message")), null;
|
|
9950
9987
|
}
|
|
9951
9988
|
}
|
|
9952
9989
|
function Rr(t, e, n, a) {
|
|
@@ -9955,7 +9992,7 @@ function Rr(t, e, n, a) {
|
|
|
9955
9992
|
return null;
|
|
9956
9993
|
}
|
|
9957
9994
|
}
|
|
9958
|
-
const
|
|
9995
|
+
const Kd = ["rich-text"], Ka = R(function({
|
|
9959
9996
|
height: e,
|
|
9960
9997
|
viz: n,
|
|
9961
9998
|
data: a,
|
|
@@ -9965,11 +10002,11 @@ const Jd = ["rich-text"], Ka = R(function({
|
|
|
9965
10002
|
ref: o,
|
|
9966
10003
|
width: s,
|
|
9967
10004
|
height: l
|
|
9968
|
-
} = rn(), u = x.useMemo(() => !Array.isArray(a) || a.length === 0, [a]), p =
|
|
10005
|
+
} = rn(), u = x.useMemo(() => !Array.isArray(a) || a.length === 0, [a]), p = Jd(a, {
|
|
9969
10006
|
w: s,
|
|
9970
10007
|
h: l
|
|
9971
10008
|
});
|
|
9972
|
-
if (!(!
|
|
10009
|
+
if (!(!Kd.includes(n.type) || !!p))
|
|
9973
10010
|
return /* @__PURE__ */ r("div", {
|
|
9974
10011
|
className: "viz-root",
|
|
9975
10012
|
ref: o,
|
|
@@ -9994,7 +10031,7 @@ const Jd = ["rich-text"], Ka = R(function({
|
|
|
9994
10031
|
height: e
|
|
9995
10032
|
},
|
|
9996
10033
|
ref: o,
|
|
9997
|
-
children: [u && /* @__PURE__ */ r(
|
|
10034
|
+
children: [u && /* @__PURE__ */ r(v, {
|
|
9998
10035
|
color: "gray",
|
|
9999
10036
|
align: "center",
|
|
10000
10037
|
children: "nothing to show"
|
|
@@ -10003,7 +10040,7 @@ const Jd = ["rich-text"], Ka = R(function({
|
|
|
10003
10040
|
})]
|
|
10004
10041
|
});
|
|
10005
10042
|
});
|
|
10006
|
-
function
|
|
10043
|
+
function Zd() {
|
|
10007
10044
|
const {
|
|
10008
10045
|
data: t,
|
|
10009
10046
|
loading: e,
|
|
@@ -10019,23 +10056,23 @@ function Kd() {
|
|
|
10019
10056
|
});
|
|
10020
10057
|
}
|
|
10021
10058
|
const un = [];
|
|
10022
|
-
function
|
|
10059
|
+
function eh() {
|
|
10023
10060
|
const {
|
|
10024
10061
|
vizManager: t
|
|
10025
|
-
} =
|
|
10062
|
+
} = Pe(Te);
|
|
10026
10063
|
return A(() => t.availableVizList.map((e) => ({
|
|
10027
10064
|
value: e.name,
|
|
10028
10065
|
label: e.displayName
|
|
10029
10066
|
})).concat(un), [t]);
|
|
10030
10067
|
}
|
|
10031
|
-
function
|
|
10068
|
+
function th(t, e) {
|
|
10032
10069
|
try {
|
|
10033
10070
|
return t.resolveComponent(e).createConfig();
|
|
10034
10071
|
} catch {
|
|
10035
10072
|
return null;
|
|
10036
10073
|
}
|
|
10037
10074
|
}
|
|
10038
|
-
function
|
|
10075
|
+
function nh() {
|
|
10039
10076
|
const {
|
|
10040
10077
|
data: t,
|
|
10041
10078
|
panel: {
|
|
@@ -10046,34 +10083,36 @@ function th() {
|
|
|
10046
10083
|
setDescription: o,
|
|
10047
10084
|
setTitle: s,
|
|
10048
10085
|
setQueryID: l,
|
|
10049
|
-
id: u
|
|
10086
|
+
id: u,
|
|
10087
|
+
style: p
|
|
10050
10088
|
}
|
|
10051
10089
|
} = he(), {
|
|
10052
|
-
vizManager:
|
|
10053
|
-
} =
|
|
10090
|
+
vizManager: h
|
|
10091
|
+
} = Pe(Te), f = {
|
|
10054
10092
|
title: n,
|
|
10055
10093
|
description: i,
|
|
10056
10094
|
viz: e,
|
|
10057
10095
|
queryID: a,
|
|
10058
|
-
id: u
|
|
10059
|
-
|
|
10096
|
+
id: u,
|
|
10097
|
+
style: p.json
|
|
10098
|
+
}, m = {
|
|
10060
10099
|
setDescription: o,
|
|
10061
10100
|
setQueryID: l,
|
|
10062
10101
|
setTitle: s
|
|
10063
10102
|
};
|
|
10064
10103
|
try {
|
|
10065
|
-
return
|
|
10104
|
+
return h.resolveComponent(f.viz.type), /* @__PURE__ */ r(Hd, {
|
|
10066
10105
|
setVizConf: e.setConf,
|
|
10067
|
-
panel:
|
|
10068
|
-
panelInfoEditor:
|
|
10069
|
-
vizManager:
|
|
10106
|
+
panel: f,
|
|
10107
|
+
panelInfoEditor: m,
|
|
10108
|
+
vizManager: h,
|
|
10070
10109
|
data: t
|
|
10071
10110
|
});
|
|
10072
|
-
} catch (
|
|
10073
|
-
return console.info(re(
|
|
10111
|
+
} catch (y) {
|
|
10112
|
+
return console.info(re(y, "message")), null;
|
|
10074
10113
|
}
|
|
10075
10114
|
}
|
|
10076
|
-
function
|
|
10115
|
+
function rh() {
|
|
10077
10116
|
const {
|
|
10078
10117
|
data: t,
|
|
10079
10118
|
panel: {
|
|
@@ -10081,10 +10120,10 @@ function nh() {
|
|
|
10081
10120
|
}
|
|
10082
10121
|
} = he(), [n, a] = Qr(e.type), i = e.type !== n, {
|
|
10083
10122
|
vizManager: o
|
|
10084
|
-
} =
|
|
10123
|
+
} = Pe(Te), s = x.useCallback(() => {
|
|
10085
10124
|
if (!i)
|
|
10086
10125
|
return;
|
|
10087
|
-
const y =
|
|
10126
|
+
const y = th(o, n);
|
|
10088
10127
|
e.setType(n), e.setConf(y || {});
|
|
10089
10128
|
}, [e, i, n]), l = (y) => {
|
|
10090
10129
|
try {
|
|
@@ -10095,12 +10134,12 @@ function nh() {
|
|
|
10095
10134
|
}, u = x.useMemo(() => {
|
|
10096
10135
|
var y;
|
|
10097
10136
|
return (y = un.find((I) => I.value === n)) == null ? void 0 : y.Panel;
|
|
10098
|
-
}, [n, un]), p =
|
|
10137
|
+
}, [n, un]), p = nh(), h = u ? Et(u, {
|
|
10099
10138
|
data: t,
|
|
10100
10139
|
conf: e.conf,
|
|
10101
10140
|
setConf: e.setConf
|
|
10102
|
-
}) : null, f = p || h, m =
|
|
10103
|
-
return /* @__PURE__ */ c(
|
|
10141
|
+
}) : null, f = p || h, m = eh();
|
|
10142
|
+
return /* @__PURE__ */ c(U, {
|
|
10104
10143
|
children: [/* @__PURE__ */ r(j, {
|
|
10105
10144
|
label: "Visualization",
|
|
10106
10145
|
value: n,
|
|
@@ -10121,7 +10160,7 @@ function nh() {
|
|
|
10121
10160
|
})]
|
|
10122
10161
|
});
|
|
10123
10162
|
}
|
|
10124
|
-
function
|
|
10163
|
+
function ah() {
|
|
10125
10164
|
return /* @__PURE__ */ c(g, {
|
|
10126
10165
|
grow: !0,
|
|
10127
10166
|
noWrap: !0,
|
|
@@ -10138,28 +10177,29 @@ function rh() {
|
|
|
10138
10177
|
overflow: "scroll",
|
|
10139
10178
|
height: "100%"
|
|
10140
10179
|
},
|
|
10141
|
-
children: /* @__PURE__ */ r(
|
|
10180
|
+
children: /* @__PURE__ */ r(rh, {})
|
|
10142
10181
|
}), /* @__PURE__ */ r(q, {
|
|
10143
10182
|
sx: {
|
|
10144
10183
|
height: "100%",
|
|
10145
10184
|
flexGrow: 1,
|
|
10146
10185
|
maxWidth: "60%"
|
|
10147
10186
|
},
|
|
10148
|
-
children: /* @__PURE__ */ r(
|
|
10187
|
+
children: /* @__PURE__ */ r(Zd, {})
|
|
10149
10188
|
})]
|
|
10150
10189
|
});
|
|
10151
10190
|
}
|
|
10152
|
-
const
|
|
10191
|
+
const ih = R(function({
|
|
10153
10192
|
opened: e,
|
|
10154
10193
|
close: n
|
|
10155
10194
|
}) {
|
|
10156
10195
|
const {
|
|
10157
10196
|
freezeLayout: a
|
|
10158
|
-
} = x.useContext(Se), [i, o] =
|
|
10197
|
+
} = x.useContext(Se), [i, o] = de("Visualization"), {
|
|
10159
10198
|
panel: s,
|
|
10160
10199
|
loading: l
|
|
10161
10200
|
} = he(), {
|
|
10162
|
-
|
|
10201
|
+
id: u,
|
|
10202
|
+
title: p
|
|
10163
10203
|
} = s;
|
|
10164
10204
|
return x.useEffect(() => {
|
|
10165
10205
|
a(e);
|
|
@@ -10168,10 +10208,10 @@ const ah = R(function({
|
|
|
10168
10208
|
overflow: "inside",
|
|
10169
10209
|
opened: e,
|
|
10170
10210
|
onClose: n,
|
|
10171
|
-
title: u
|
|
10211
|
+
title: `Editing Panel - ${p.trim() ? p : u}`,
|
|
10172
10212
|
trapFocus: !0,
|
|
10173
|
-
onDragStart: (
|
|
10174
|
-
|
|
10213
|
+
onDragStart: (h) => {
|
|
10214
|
+
h.stopPropagation();
|
|
10175
10215
|
},
|
|
10176
10216
|
children: /* @__PURE__ */ r(pn, {
|
|
10177
10217
|
sx: {
|
|
@@ -10213,15 +10253,15 @@ const ah = R(function({
|
|
|
10213
10253
|
children: [/* @__PURE__ */ r(Tt, {
|
|
10214
10254
|
visible: l,
|
|
10215
10255
|
exitTransitionDuration: 0
|
|
10216
|
-
}), /* @__PURE__ */ r(
|
|
10256
|
+
}), /* @__PURE__ */ r(Ud, {})]
|
|
10217
10257
|
}), /* @__PURE__ */ r(V.Panel, {
|
|
10218
10258
|
value: "Panel",
|
|
10219
10259
|
pt: "sm",
|
|
10220
|
-
children: i === "Panel" && /* @__PURE__ */ r(
|
|
10260
|
+
children: i === "Panel" && /* @__PURE__ */ r(Yd, {})
|
|
10221
10261
|
}), /* @__PURE__ */ r(V.Panel, {
|
|
10222
10262
|
value: "Visualization",
|
|
10223
10263
|
pt: "sm",
|
|
10224
|
-
children: i === "Visualization" && /* @__PURE__ */ r(
|
|
10264
|
+
children: i === "Visualization" && /* @__PURE__ */ r(ah, {})
|
|
10225
10265
|
}), /* @__PURE__ */ r(V.Panel, {
|
|
10226
10266
|
value: "Interactions",
|
|
10227
10267
|
pt: "sm",
|
|
@@ -10232,7 +10272,7 @@ const ah = R(function({
|
|
|
10232
10272
|
})
|
|
10233
10273
|
})
|
|
10234
10274
|
});
|
|
10235
|
-
}),
|
|
10275
|
+
}), oh = R(({
|
|
10236
10276
|
view: t
|
|
10237
10277
|
}) => {
|
|
10238
10278
|
const e = ee(), n = Wi(), [a, i] = x.useState(!1), o = () => i(!0), s = () => i(!1), {
|
|
@@ -10258,7 +10298,7 @@ const ah = R(function({
|
|
|
10258
10298
|
}), O = x.useCallback(() => {
|
|
10259
10299
|
m(u);
|
|
10260
10300
|
}, [u, m]);
|
|
10261
|
-
return /* @__PURE__ */ c(
|
|
10301
|
+
return /* @__PURE__ */ c(U, {
|
|
10262
10302
|
children: [/* @__PURE__ */ r(q, {
|
|
10263
10303
|
sx: {
|
|
10264
10304
|
position: "absolute",
|
|
@@ -10267,8 +10307,8 @@ const ah = R(function({
|
|
|
10267
10307
|
right: 0,
|
|
10268
10308
|
zIndex: 300
|
|
10269
10309
|
},
|
|
10270
|
-
children: /* @__PURE__ */ c(
|
|
10271
|
-
children: [/* @__PURE__ */ r(
|
|
10310
|
+
children: /* @__PURE__ */ c(ue, {
|
|
10311
|
+
children: [/* @__PURE__ */ r(ue.Target, {
|
|
10272
10312
|
children: /* @__PURE__ */ r(q, {
|
|
10273
10313
|
className: "panel-dropdown-target",
|
|
10274
10314
|
sx: {
|
|
@@ -10276,42 +10316,42 @@ const ah = R(function({
|
|
|
10276
10316
|
height: "25px"
|
|
10277
10317
|
}
|
|
10278
10318
|
})
|
|
10279
|
-
}), /* @__PURE__ */ c(
|
|
10280
|
-
children: [/* @__PURE__ */ r(
|
|
10319
|
+
}), /* @__PURE__ */ c(ue.Dropdown, {
|
|
10320
|
+
children: [/* @__PURE__ */ r(ue.Item, {
|
|
10281
10321
|
onClick: f,
|
|
10282
10322
|
icon: /* @__PURE__ */ r(jr, {
|
|
10283
10323
|
size: 14
|
|
10284
10324
|
}),
|
|
10285
10325
|
children: "Refresh"
|
|
10286
|
-
}), /* @__PURE__ */ r(
|
|
10326
|
+
}), /* @__PURE__ */ r(ue.Item, {
|
|
10287
10327
|
onClick: () => e.queries.downloadDataByQueryID(p),
|
|
10288
10328
|
icon: /* @__PURE__ */ r(Wr, {
|
|
10289
10329
|
size: 14
|
|
10290
10330
|
}),
|
|
10291
10331
|
children: "Download Data"
|
|
10292
|
-
}), !y && /* @__PURE__ */ r(
|
|
10332
|
+
}), !y && /* @__PURE__ */ r(ue.Item, {
|
|
10293
10333
|
onClick: O,
|
|
10294
10334
|
icon: /* @__PURE__ */ r(po, {
|
|
10295
10335
|
size: 14
|
|
10296
10336
|
}),
|
|
10297
10337
|
children: "Full Screen"
|
|
10298
|
-
}), h && /* @__PURE__ */ c(
|
|
10299
|
-
children: [/* @__PURE__ */ r(
|
|
10338
|
+
}), h && /* @__PURE__ */ c(U, {
|
|
10339
|
+
children: [/* @__PURE__ */ r(ie, {
|
|
10300
10340
|
label: "Edit",
|
|
10301
10341
|
labelPosition: "center"
|
|
10302
|
-
}), /* @__PURE__ */ r(
|
|
10342
|
+
}), /* @__PURE__ */ r(ue.Item, {
|
|
10303
10343
|
onClick: o,
|
|
10304
10344
|
icon: /* @__PURE__ */ r(Gr, {
|
|
10305
10345
|
size: 14
|
|
10306
10346
|
}),
|
|
10307
10347
|
children: "Settings"
|
|
10308
|
-
}), /* @__PURE__ */ r(
|
|
10348
|
+
}), /* @__PURE__ */ r(ue.Item, {
|
|
10309
10349
|
onClick: I,
|
|
10310
10350
|
icon: /* @__PURE__ */ r(mo, {
|
|
10311
10351
|
size: 14
|
|
10312
10352
|
}),
|
|
10313
10353
|
children: "Duplicate"
|
|
10314
|
-
}), /* @__PURE__ */ r(
|
|
10354
|
+
}), /* @__PURE__ */ r(ue.Item, {
|
|
10315
10355
|
color: "red",
|
|
10316
10356
|
onClick: D,
|
|
10317
10357
|
icon: /* @__PURE__ */ r(J, {
|
|
@@ -10322,13 +10362,13 @@ const ah = R(function({
|
|
|
10322
10362
|
})]
|
|
10323
10363
|
})]
|
|
10324
10364
|
})
|
|
10325
|
-
}), h && /* @__PURE__ */ r(
|
|
10365
|
+
}), h && /* @__PURE__ */ r(ih, {
|
|
10326
10366
|
opened: a,
|
|
10327
10367
|
close: s
|
|
10328
10368
|
})]
|
|
10329
10369
|
});
|
|
10330
10370
|
});
|
|
10331
|
-
const
|
|
10371
|
+
const sh = R(function() {
|
|
10332
10372
|
const {
|
|
10333
10373
|
panel: e
|
|
10334
10374
|
} = he(), {
|
|
@@ -10342,7 +10382,7 @@ const oh = R(function() {
|
|
|
10342
10382
|
sx: {
|
|
10343
10383
|
flexGrow: 1
|
|
10344
10384
|
},
|
|
10345
|
-
children: /* @__PURE__ */ r(
|
|
10385
|
+
children: /* @__PURE__ */ r(v, {
|
|
10346
10386
|
align: "center",
|
|
10347
10387
|
lineClamp: 1,
|
|
10348
10388
|
weight: "bold",
|
|
@@ -10350,17 +10390,25 @@ const oh = R(function() {
|
|
|
10350
10390
|
})
|
|
10351
10391
|
}) : null;
|
|
10352
10392
|
});
|
|
10353
|
-
function
|
|
10393
|
+
function lh(t) {
|
|
10354
10394
|
return !["richText"].includes(t);
|
|
10355
10395
|
}
|
|
10356
|
-
const
|
|
10396
|
+
const ch = {
|
|
10397
|
+
border: "1px solid #ced4da"
|
|
10398
|
+
}, uh = {
|
|
10399
|
+
border: "1px dashed transparent",
|
|
10400
|
+
transition: "border-color 300ms ease",
|
|
10401
|
+
"&:hover": {
|
|
10402
|
+
borderColor: "#ced4da"
|
|
10403
|
+
}
|
|
10404
|
+
}, Nn = R(function({
|
|
10357
10405
|
panel: e,
|
|
10358
10406
|
view: n
|
|
10359
10407
|
}) {
|
|
10360
10408
|
const a = ee(), {
|
|
10361
10409
|
data: i,
|
|
10362
10410
|
state: o
|
|
10363
|
-
} = a.getDataStuffByID(e.queryID), s =
|
|
10411
|
+
} = a.getDataStuffByID(e.queryID), s = lh(e.viz.type) && o === "loading", l = e.title ? "calc(100% - 25px - 5px)" : "100%", u = e.style.border.enabled ? ch : uh;
|
|
10364
10412
|
return /* @__PURE__ */ r(Xo, {
|
|
10365
10413
|
value: {
|
|
10366
10414
|
panel: e,
|
|
@@ -10371,6 +10419,9 @@ const Nn = R(function({
|
|
|
10371
10419
|
className: "panel-root",
|
|
10372
10420
|
p: 5,
|
|
10373
10421
|
pt: 0,
|
|
10422
|
+
sx: {
|
|
10423
|
+
...u
|
|
10424
|
+
},
|
|
10374
10425
|
children: [/* @__PURE__ */ r(q, {
|
|
10375
10426
|
sx: {
|
|
10376
10427
|
position: "absolute",
|
|
@@ -10380,9 +10431,9 @@ const Nn = R(function({
|
|
|
10380
10431
|
zIndex: 310
|
|
10381
10432
|
},
|
|
10382
10433
|
children: /* @__PURE__ */ r(ya, {})
|
|
10383
|
-
}), /* @__PURE__ */ r(
|
|
10434
|
+
}), /* @__PURE__ */ r(oh, {
|
|
10384
10435
|
view: n
|
|
10385
|
-
}), /* @__PURE__ */ r(
|
|
10436
|
+
}), /* @__PURE__ */ r(sh, {}), /* @__PURE__ */ r(Ka, {
|
|
10386
10437
|
viz: e.viz,
|
|
10387
10438
|
data: i,
|
|
10388
10439
|
loading: s,
|
|
@@ -10455,7 +10506,7 @@ function ti() {
|
|
|
10455
10506
|
};
|
|
10456
10507
|
}, []);
|
|
10457
10508
|
}
|
|
10458
|
-
const
|
|
10509
|
+
const dh = x.forwardRef(({
|
|
10459
10510
|
handleAxis: t
|
|
10460
10511
|
}, e) => /* @__PURE__ */ r(z, {
|
|
10461
10512
|
ref: e,
|
|
@@ -10475,7 +10526,7 @@ const lh = x.forwardRef(({
|
|
|
10475
10526
|
children: /* @__PURE__ */ r(go, {
|
|
10476
10527
|
size: 16
|
|
10477
10528
|
})
|
|
10478
|
-
})),
|
|
10529
|
+
})), hh = x.forwardRef(({
|
|
10479
10530
|
handleAxis: t,
|
|
10480
10531
|
...e
|
|
10481
10532
|
}, n) => /* @__PURE__ */ r(z, {
|
|
@@ -10497,7 +10548,7 @@ const lh = x.forwardRef(({
|
|
|
10497
10548
|
children: /* @__PURE__ */ r(bo, {
|
|
10498
10549
|
size: 16
|
|
10499
10550
|
})
|
|
10500
|
-
})),
|
|
10551
|
+
})), ph = na(ta), mh = R(function({
|
|
10501
10552
|
view: e,
|
|
10502
10553
|
className: n = "layout",
|
|
10503
10554
|
rowHeight: a = 10,
|
|
@@ -10513,7 +10564,7 @@ const lh = x.forwardRef(({
|
|
|
10513
10564
|
!h || h.layout.set(p);
|
|
10514
10565
|
});
|
|
10515
10566
|
}, [e]);
|
|
10516
|
-
return /* @__PURE__ */ r(
|
|
10567
|
+
return /* @__PURE__ */ r(ph, {
|
|
10517
10568
|
onLayoutChange: s,
|
|
10518
10569
|
className: `dashboard-layout ${n}`,
|
|
10519
10570
|
rowHeight: a,
|
|
@@ -10521,7 +10572,7 @@ const lh = x.forwardRef(({
|
|
|
10521
10572
|
isDraggable: i,
|
|
10522
10573
|
isResizable: o,
|
|
10523
10574
|
draggableHandle: ".react-grid-customDragHandle",
|
|
10524
|
-
resizeHandle: /* @__PURE__ */ r(
|
|
10575
|
+
resizeHandle: /* @__PURE__ */ r(hh, {}),
|
|
10525
10576
|
children: e.panels.current.map((l, u) => /* @__PURE__ */ c("div", {
|
|
10526
10577
|
"data-grid": {
|
|
10527
10578
|
...l.layout
|
|
@@ -10529,18 +10580,18 @@ const lh = x.forwardRef(({
|
|
|
10529
10580
|
style: {
|
|
10530
10581
|
position: "relative"
|
|
10531
10582
|
},
|
|
10532
|
-
children: [i && /* @__PURE__ */ r(
|
|
10583
|
+
children: [i && /* @__PURE__ */ r(dh, {}), /* @__PURE__ */ r(Nn, {
|
|
10533
10584
|
view: e,
|
|
10534
10585
|
panel: l
|
|
10535
10586
|
})]
|
|
10536
10587
|
}, l.id))
|
|
10537
10588
|
});
|
|
10538
|
-
}),
|
|
10589
|
+
}), fh = na(ta), gh = R(function({
|
|
10539
10590
|
view: e,
|
|
10540
10591
|
className: n = "layout",
|
|
10541
10592
|
rowHeight: a = 10
|
|
10542
10593
|
}) {
|
|
10543
|
-
return /* @__PURE__ */ r(
|
|
10594
|
+
return /* @__PURE__ */ r(fh, {
|
|
10544
10595
|
className: `dashboard-layout ${n}`,
|
|
10545
10596
|
rowHeight: a,
|
|
10546
10597
|
isDraggable: !1,
|
|
@@ -10554,11 +10605,11 @@ const lh = x.forwardRef(({
|
|
|
10554
10605
|
})
|
|
10555
10606
|
}, i.id))
|
|
10556
10607
|
});
|
|
10557
|
-
}),
|
|
10608
|
+
}), bh = R(({
|
|
10558
10609
|
children: t
|
|
10559
10610
|
}) => /* @__PURE__ */ r(q, {
|
|
10560
10611
|
children: t
|
|
10561
|
-
})),
|
|
10612
|
+
})), vh = R(({
|
|
10562
10613
|
children: t,
|
|
10563
10614
|
view: e
|
|
10564
10615
|
}) => /* @__PURE__ */ r(Ce, {
|
|
@@ -10593,23 +10644,23 @@ const lh = x.forwardRef(({
|
|
|
10593
10644
|
withinPortal: !1,
|
|
10594
10645
|
transitionDuration: 0,
|
|
10595
10646
|
children: t
|
|
10596
|
-
})),
|
|
10647
|
+
})), yh = R(({
|
|
10597
10648
|
view: t,
|
|
10598
10649
|
children: e
|
|
10599
10650
|
}) => {
|
|
10600
10651
|
switch (t.type) {
|
|
10601
10652
|
case Re.Modal:
|
|
10602
|
-
return /* @__PURE__ */ r(
|
|
10653
|
+
return /* @__PURE__ */ r(vh, {
|
|
10603
10654
|
view: t,
|
|
10604
10655
|
children: e
|
|
10605
10656
|
});
|
|
10606
10657
|
case Re.Division:
|
|
10607
10658
|
default:
|
|
10608
|
-
return /* @__PURE__ */ r(
|
|
10659
|
+
return /* @__PURE__ */ r(bh, {
|
|
10609
10660
|
children: e
|
|
10610
10661
|
});
|
|
10611
10662
|
}
|
|
10612
|
-
}),
|
|
10663
|
+
}), xh = R(function({
|
|
10613
10664
|
view: e,
|
|
10614
10665
|
saveDashboardChanges: n
|
|
10615
10666
|
}) {
|
|
@@ -10637,7 +10688,7 @@ const lh = x.forwardRef(({
|
|
|
10637
10688
|
exitFullScreen: i
|
|
10638
10689
|
}), !o && /* @__PURE__ */ r(va, {
|
|
10639
10690
|
saveChanges: n
|
|
10640
|
-
}), /* @__PURE__ */ r(
|
|
10691
|
+
}), /* @__PURE__ */ r(yh, {
|
|
10641
10692
|
view: e,
|
|
10642
10693
|
children: /* @__PURE__ */ c(q, {
|
|
10643
10694
|
className: "dashboard-sticky-parent",
|
|
@@ -10650,7 +10701,7 @@ const lh = x.forwardRef(({
|
|
|
10650
10701
|
sx: {
|
|
10651
10702
|
display: o ? "none" : "block"
|
|
10652
10703
|
},
|
|
10653
|
-
children: /* @__PURE__ */ r(
|
|
10704
|
+
children: /* @__PURE__ */ r(mh, {
|
|
10654
10705
|
view: e,
|
|
10655
10706
|
isDraggable: !0,
|
|
10656
10707
|
isResizable: !0
|
|
@@ -10660,7 +10711,7 @@ const lh = x.forwardRef(({
|
|
|
10660
10711
|
})]
|
|
10661
10712
|
})
|
|
10662
10713
|
});
|
|
10663
|
-
}),
|
|
10714
|
+
}), Ch = R(function({
|
|
10664
10715
|
view: e
|
|
10665
10716
|
}) {
|
|
10666
10717
|
const {
|
|
@@ -10691,14 +10742,14 @@ const lh = x.forwardRef(({
|
|
|
10691
10742
|
}), /* @__PURE__ */ r(la, {
|
|
10692
10743
|
view: e
|
|
10693
10744
|
})]
|
|
10694
|
-
}), /* @__PURE__ */ r(
|
|
10745
|
+
}), /* @__PURE__ */ r(gh, {
|
|
10695
10746
|
view: e
|
|
10696
10747
|
})]
|
|
10697
10748
|
})
|
|
10698
10749
|
});
|
|
10699
|
-
}), ni =
|
|
10700
|
-
label:
|
|
10701
|
-
value:
|
|
10750
|
+
}), ni = b.model({
|
|
10751
|
+
label: b.string,
|
|
10752
|
+
value: b.string
|
|
10702
10753
|
}).actions((t) => ({
|
|
10703
10754
|
setLabel(e) {
|
|
10704
10755
|
t.label = e;
|
|
@@ -10706,10 +10757,10 @@ const lh = x.forwardRef(({
|
|
|
10706
10757
|
setValue(e) {
|
|
10707
10758
|
t.value = e;
|
|
10708
10759
|
}
|
|
10709
|
-
})), ri =
|
|
10710
|
-
required:
|
|
10711
|
-
default_value:
|
|
10712
|
-
static_options:
|
|
10760
|
+
})), ri = b.model("FilterConfigModel_Select", {
|
|
10761
|
+
required: b.boolean,
|
|
10762
|
+
default_value: b.string,
|
|
10763
|
+
static_options: b.optional(b.array(ni), []),
|
|
10713
10764
|
options_query: ma
|
|
10714
10765
|
}).actions((t) => ({
|
|
10715
10766
|
addStaticOption(e) {
|
|
@@ -10727,7 +10778,7 @@ const lh = x.forwardRef(({
|
|
|
10727
10778
|
setOptionsQuery(e) {
|
|
10728
10779
|
t.options_query = e;
|
|
10729
10780
|
}
|
|
10730
|
-
})),
|
|
10781
|
+
})), wh = () => ri.create({
|
|
10731
10782
|
required: !1,
|
|
10732
10783
|
default_value: "",
|
|
10733
10784
|
static_options: [],
|
|
@@ -10736,9 +10787,9 @@ const lh = x.forwardRef(({
|
|
|
10736
10787
|
key: "",
|
|
10737
10788
|
sql: ""
|
|
10738
10789
|
}
|
|
10739
|
-
}), ai =
|
|
10740
|
-
default_value:
|
|
10741
|
-
static_options:
|
|
10790
|
+
}), ai = b.model("FilterConfigModel_MultiSelect", {
|
|
10791
|
+
default_value: b.optional(b.array(b.string), []),
|
|
10792
|
+
static_options: b.optional(b.array(ni), []),
|
|
10742
10793
|
options_query: ma
|
|
10743
10794
|
}).actions((t) => ({
|
|
10744
10795
|
addStaticOption(e) {
|
|
@@ -10748,12 +10799,12 @@ const lh = x.forwardRef(({
|
|
|
10748
10799
|
t.static_options.splice(e, 1);
|
|
10749
10800
|
},
|
|
10750
10801
|
setDefaultValue(e) {
|
|
10751
|
-
t.default_value =
|
|
10802
|
+
t.default_value = Ae(e);
|
|
10752
10803
|
},
|
|
10753
10804
|
setOptionsQuery(e) {
|
|
10754
10805
|
t.options_query = e;
|
|
10755
10806
|
}
|
|
10756
|
-
})),
|
|
10807
|
+
})), Sh = () => ai.create({
|
|
10757
10808
|
default_value: [],
|
|
10758
10809
|
static_options: [],
|
|
10759
10810
|
options_query: {
|
|
@@ -10761,18 +10812,18 @@ const lh = x.forwardRef(({
|
|
|
10761
10812
|
key: "",
|
|
10762
10813
|
sql: ""
|
|
10763
10814
|
}
|
|
10764
|
-
}), ii =
|
|
10765
|
-
default_value:
|
|
10815
|
+
}), ii = b.model("FilterConfigModel_Checkbox", {
|
|
10816
|
+
default_value: b.boolean
|
|
10766
10817
|
}).actions((t) => ({
|
|
10767
10818
|
setDefaultValue(e) {
|
|
10768
10819
|
t.default_value = e;
|
|
10769
10820
|
}
|
|
10770
|
-
})),
|
|
10821
|
+
})), _h = () => ii.create({
|
|
10771
10822
|
default_value: !1
|
|
10772
|
-
}), oi =
|
|
10773
|
-
required:
|
|
10774
|
-
inputFormat:
|
|
10775
|
-
clearable:
|
|
10823
|
+
}), oi = b.model("FilterConfigModel_DateRange", {
|
|
10824
|
+
required: b.boolean,
|
|
10825
|
+
inputFormat: b.enumeration("DateRangeInputFormat", ["YYYY", "YYYY-MM", "YYYY-MM-DD"]),
|
|
10826
|
+
clearable: b.boolean
|
|
10776
10827
|
}).actions((t) => ({
|
|
10777
10828
|
setRequired(e) {
|
|
10778
10829
|
t.required = e;
|
|
@@ -10783,24 +10834,24 @@ const lh = x.forwardRef(({
|
|
|
10783
10834
|
setInputFormat(e) {
|
|
10784
10835
|
t.inputFormat = e;
|
|
10785
10836
|
}
|
|
10786
|
-
})),
|
|
10837
|
+
})), Ih = () => oi.create({
|
|
10787
10838
|
required: !1,
|
|
10788
10839
|
inputFormat: "YYYY-MM-DD",
|
|
10789
10840
|
clearable: !1
|
|
10790
|
-
}), Dr =
|
|
10791
|
-
id:
|
|
10792
|
-
key:
|
|
10793
|
-
label:
|
|
10794
|
-
order:
|
|
10795
|
-
visibleInViewsIDs:
|
|
10796
|
-
type:
|
|
10841
|
+
}), Dr = b.model("FilterModel", {
|
|
10842
|
+
id: b.identifier,
|
|
10843
|
+
key: b.string,
|
|
10844
|
+
label: b.string,
|
|
10845
|
+
order: b.number,
|
|
10846
|
+
visibleInViewsIDs: b.array(b.string),
|
|
10847
|
+
type: b.enumeration("DashboardFilterType", [
|
|
10797
10848
|
me.Select,
|
|
10798
10849
|
me.MultiSelect,
|
|
10799
10850
|
me.TextInput,
|
|
10800
10851
|
me.Checkbox,
|
|
10801
10852
|
me.DateRange
|
|
10802
10853
|
]),
|
|
10803
|
-
config:
|
|
10854
|
+
config: b.union(
|
|
10804
10855
|
ri,
|
|
10805
10856
|
ai,
|
|
10806
10857
|
fa,
|
|
@@ -10820,19 +10871,19 @@ const lh = x.forwardRef(({
|
|
|
10820
10871
|
setType(e) {
|
|
10821
10872
|
switch (e) {
|
|
10822
10873
|
case me.Select:
|
|
10823
|
-
t.config =
|
|
10874
|
+
t.config = wh();
|
|
10824
10875
|
break;
|
|
10825
10876
|
case me.MultiSelect:
|
|
10826
|
-
t.config =
|
|
10877
|
+
t.config = Sh();
|
|
10827
10878
|
break;
|
|
10828
10879
|
case me.TextInput:
|
|
10829
10880
|
t.config = ga();
|
|
10830
10881
|
break;
|
|
10831
10882
|
case me.Checkbox:
|
|
10832
|
-
t.config =
|
|
10883
|
+
t.config = _h();
|
|
10833
10884
|
break;
|
|
10834
10885
|
case me.DateRange:
|
|
10835
|
-
t.config =
|
|
10886
|
+
t.config = Ih();
|
|
10836
10887
|
break;
|
|
10837
10888
|
}
|
|
10838
10889
|
t.type = e;
|
|
@@ -10840,10 +10891,10 @@ const lh = x.forwardRef(({
|
|
|
10840
10891
|
setVisibleInViewsIDs(e) {
|
|
10841
10892
|
console.log(e), t.visibleInViewsIDs.length = 0, t.visibleInViewsIDs.push(...e);
|
|
10842
10893
|
}
|
|
10843
|
-
})),
|
|
10844
|
-
original:
|
|
10845
|
-
current:
|
|
10846
|
-
values:
|
|
10894
|
+
})), Rh = b.model("FiltersModel", {
|
|
10895
|
+
original: b.optional(b.array(Dr), []),
|
|
10896
|
+
current: b.optional(b.array(Dr), []),
|
|
10897
|
+
values: b.optional(b.frozen(), {})
|
|
10847
10898
|
}).views((t) => ({
|
|
10848
10899
|
get changed() {
|
|
10849
10900
|
return !$.isEqual(t.original, t.current);
|
|
@@ -10869,7 +10920,7 @@ const lh = x.forwardRef(({
|
|
|
10869
10920
|
t.current = $.cloneDeep(t.original);
|
|
10870
10921
|
},
|
|
10871
10922
|
replace(e) {
|
|
10872
|
-
t.current =
|
|
10923
|
+
t.current = Ae(e);
|
|
10873
10924
|
},
|
|
10874
10925
|
append(e) {
|
|
10875
10926
|
t.current.push(e);
|
|
@@ -10887,7 +10938,7 @@ const lh = x.forwardRef(({
|
|
|
10887
10938
|
return t.values[e];
|
|
10888
10939
|
}
|
|
10889
10940
|
}));
|
|
10890
|
-
function
|
|
10941
|
+
function Dh(t) {
|
|
10891
10942
|
const e = t.reduce((n, a) => {
|
|
10892
10943
|
var i;
|
|
10893
10944
|
return n[a.key] = (i = a.config.default_value) != null ? i : "", n;
|
|
@@ -10970,11 +11021,11 @@ var jn = { exports: {} };
|
|
|
10970
11021
|
s.saveAs = u.saveAs = u, t.exports = u;
|
|
10971
11022
|
});
|
|
10972
11023
|
})(jn);
|
|
10973
|
-
function
|
|
11024
|
+
function kh(t, e) {
|
|
10974
11025
|
const n = new Blob([e], { type: "text/csv" });
|
|
10975
11026
|
jn.exports.saveAs(n, `${t}.csv`);
|
|
10976
11027
|
}
|
|
10977
|
-
function
|
|
11028
|
+
function Th(t) {
|
|
10978
11029
|
const e = new Po();
|
|
10979
11030
|
t.forEach(({ id: n, data: a }) => {
|
|
10980
11031
|
e.file(`${n}.csv`, si(a));
|
|
@@ -10992,11 +11043,11 @@ function si(t) {
|
|
|
10992
11043
|
}), e.join(`
|
|
10993
11044
|
`);
|
|
10994
11045
|
}
|
|
10995
|
-
const li =
|
|
10996
|
-
id:
|
|
10997
|
-
type:
|
|
10998
|
-
key:
|
|
10999
|
-
sql:
|
|
11046
|
+
const li = b.model("QueryModel", {
|
|
11047
|
+
id: b.string,
|
|
11048
|
+
type: b.enumeration("DataSourceType", [xe.Postgresql, xe.MySQL, xe.HTTP]),
|
|
11049
|
+
key: b.string,
|
|
11050
|
+
sql: b.string
|
|
11000
11051
|
}).views((t) => ({
|
|
11001
11052
|
get valid() {
|
|
11002
11053
|
return t.id && t.type && t.key && t.sql;
|
|
@@ -11005,13 +11056,13 @@ const li = v.model("QueryModel", {
|
|
|
11005
11056
|
const { id: e, type: n, key: a, sql: i } = t;
|
|
11006
11057
|
return { id: e, type: n, key: a, sql: i };
|
|
11007
11058
|
}
|
|
11008
|
-
})),
|
|
11059
|
+
})), Vh = b.compose(
|
|
11009
11060
|
"QueryModel",
|
|
11010
11061
|
li,
|
|
11011
|
-
|
|
11012
|
-
state:
|
|
11013
|
-
data:
|
|
11014
|
-
error:
|
|
11062
|
+
b.model({
|
|
11063
|
+
state: b.optional(b.enumeration(["idle", "loading", "error"]), "idle"),
|
|
11064
|
+
data: b.optional(b.array(b.frozen()), []),
|
|
11065
|
+
error: b.frozen()
|
|
11015
11066
|
})
|
|
11016
11067
|
).views((t) => ({
|
|
11017
11068
|
get formattedSQL() {
|
|
@@ -11064,9 +11115,9 @@ const li = v.model("QueryModel", {
|
|
|
11064
11115
|
})
|
|
11065
11116
|
);
|
|
11066
11117
|
}
|
|
11067
|
-
})),
|
|
11068
|
-
original:
|
|
11069
|
-
current:
|
|
11118
|
+
})), zh = b.model("QueriesModel", {
|
|
11119
|
+
original: b.optional(b.array(li), []),
|
|
11120
|
+
current: b.optional(b.array(Vh), [])
|
|
11070
11121
|
}).views((t) => ({
|
|
11071
11122
|
get changed() {
|
|
11072
11123
|
return t.original.length !== t.current.length ? !0 : t.original.some((e, n) => !$.isEqual(e.configurations, t.current[n].configurations));
|
|
@@ -11095,7 +11146,7 @@ const li = v.model("QueryModel", {
|
|
|
11095
11146
|
t.current.length = 0, t.current.unshift(...e);
|
|
11096
11147
|
},
|
|
11097
11148
|
replace(e) {
|
|
11098
|
-
t.current =
|
|
11149
|
+
t.current = Ae(e);
|
|
11099
11150
|
},
|
|
11100
11151
|
append(e) {
|
|
11101
11152
|
t.current.push(e);
|
|
@@ -11111,7 +11162,7 @@ const li = v.model("QueryModel", {
|
|
|
11111
11162
|
id: n,
|
|
11112
11163
|
data: a.toJSON()
|
|
11113
11164
|
}));
|
|
11114
|
-
|
|
11165
|
+
Th(e);
|
|
11115
11166
|
},
|
|
11116
11167
|
downloadDataByQueryID(e) {
|
|
11117
11168
|
const n = t.findByID(e);
|
|
@@ -11120,7 +11171,7 @@ const li = v.model("QueryModel", {
|
|
|
11120
11171
|
return;
|
|
11121
11172
|
}
|
|
11122
11173
|
const { id: a, data: i } = n, o = si(i);
|
|
11123
|
-
|
|
11174
|
+
kh(a, o);
|
|
11124
11175
|
},
|
|
11125
11176
|
refetchDataByQueryID(e) {
|
|
11126
11177
|
const n = t.findByID(e);
|
|
@@ -11130,9 +11181,9 @@ const li = v.model("QueryModel", {
|
|
|
11130
11181
|
}
|
|
11131
11182
|
return n.fetchData();
|
|
11132
11183
|
}
|
|
11133
|
-
})), kr =
|
|
11134
|
-
key:
|
|
11135
|
-
value:
|
|
11184
|
+
})), kr = b.model("SQLSnippetModel", {
|
|
11185
|
+
key: b.string,
|
|
11186
|
+
value: b.string
|
|
11136
11187
|
}).actions((t) => ({
|
|
11137
11188
|
setKey(e) {
|
|
11138
11189
|
t.key = e;
|
|
@@ -11140,9 +11191,9 @@ const li = v.model("QueryModel", {
|
|
|
11140
11191
|
setValue(e) {
|
|
11141
11192
|
t.value = e;
|
|
11142
11193
|
}
|
|
11143
|
-
})),
|
|
11144
|
-
original:
|
|
11145
|
-
current:
|
|
11194
|
+
})), Eh = b.model("SQLSnippetsModel", {
|
|
11195
|
+
original: b.optional(b.array(kr), []),
|
|
11196
|
+
current: b.optional(b.array(kr), [])
|
|
11146
11197
|
}).views((t) => ({
|
|
11147
11198
|
get changed() {
|
|
11148
11199
|
return !$.isEqual(t.original, t.current);
|
|
@@ -11152,7 +11203,7 @@ const li = v.model("QueryModel", {
|
|
|
11152
11203
|
t.current = $.cloneDeep(t.original);
|
|
11153
11204
|
},
|
|
11154
11205
|
replace(e) {
|
|
11155
|
-
t.current =
|
|
11206
|
+
t.current = Ae(e);
|
|
11156
11207
|
},
|
|
11157
11208
|
append(e) {
|
|
11158
11209
|
t.current.push(e);
|
|
@@ -11163,8 +11214,8 @@ const li = v.model("QueryModel", {
|
|
|
11163
11214
|
replaceByIndex(e, n) {
|
|
11164
11215
|
t.current.splice(e, 1, n);
|
|
11165
11216
|
}
|
|
11166
|
-
})),
|
|
11167
|
-
current:
|
|
11217
|
+
})), Oh = b.model("ContextModel", {
|
|
11218
|
+
current: b.optional(b.frozen(), {})
|
|
11168
11219
|
}).views((t) => ({
|
|
11169
11220
|
get keys() {
|
|
11170
11221
|
return Object.keys(t.current);
|
|
@@ -11182,13 +11233,13 @@ const li = v.model("QueryModel", {
|
|
|
11182
11233
|
set(e, n) {
|
|
11183
11234
|
t.current[e] = n;
|
|
11184
11235
|
}
|
|
11185
|
-
})),
|
|
11186
|
-
x:
|
|
11187
|
-
y:
|
|
11188
|
-
w:
|
|
11189
|
-
h:
|
|
11190
|
-
moved:
|
|
11191
|
-
static:
|
|
11236
|
+
})), Fh = b.model("PanelLayoutModel", {
|
|
11237
|
+
x: b.number,
|
|
11238
|
+
y: b.number,
|
|
11239
|
+
w: b.number,
|
|
11240
|
+
h: b.number,
|
|
11241
|
+
moved: b.optional(b.boolean, !1),
|
|
11242
|
+
static: b.optional(b.boolean, !1)
|
|
11192
11243
|
}).views((t) => ({
|
|
11193
11244
|
get json() {
|
|
11194
11245
|
const { x: e, y: n, w: a, h: i, moved: o } = t;
|
|
@@ -11206,9 +11257,31 @@ const li = v.model("QueryModel", {
|
|
|
11206
11257
|
const { x: n, y: a, w: i, h: o, moved: s } = e;
|
|
11207
11258
|
t.x = n, t.y = a, t.w = i, t.h = o, t.moved = !!s, t.static = !!e.static;
|
|
11208
11259
|
}
|
|
11209
|
-
})),
|
|
11210
|
-
|
|
11211
|
-
|
|
11260
|
+
})), Mh = b.model("PanelStyleBorderModel", {
|
|
11261
|
+
enabled: b.boolean
|
|
11262
|
+
}).views((t) => ({
|
|
11263
|
+
get json() {
|
|
11264
|
+
const { enabled: e } = t;
|
|
11265
|
+
return {
|
|
11266
|
+
enabled: e
|
|
11267
|
+
};
|
|
11268
|
+
}
|
|
11269
|
+
})).actions((t) => ({
|
|
11270
|
+
setEnabled(e) {
|
|
11271
|
+
t.enabled = e;
|
|
11272
|
+
}
|
|
11273
|
+
})), Ph = b.model("PanelStyleModel", {
|
|
11274
|
+
border: Mh
|
|
11275
|
+
}).views((t) => ({
|
|
11276
|
+
get json() {
|
|
11277
|
+
const { border: e } = t;
|
|
11278
|
+
return {
|
|
11279
|
+
border: e.json
|
|
11280
|
+
};
|
|
11281
|
+
}
|
|
11282
|
+
})).actions((t) => ({})), Ah = b.model("PanelVizModel", {
|
|
11283
|
+
type: b.string,
|
|
11284
|
+
conf: b.frozen()
|
|
11212
11285
|
}).views((t) => ({
|
|
11213
11286
|
get json() {
|
|
11214
11287
|
return {
|
|
@@ -11223,13 +11296,14 @@ const li = v.model("QueryModel", {
|
|
|
11223
11296
|
setConf(e) {
|
|
11224
11297
|
t.conf = e;
|
|
11225
11298
|
}
|
|
11226
|
-
})), Tr =
|
|
11227
|
-
id:
|
|
11228
|
-
title:
|
|
11229
|
-
description:
|
|
11230
|
-
layout:
|
|
11231
|
-
queryID:
|
|
11232
|
-
viz:
|
|
11299
|
+
})), Tr = b.model({
|
|
11300
|
+
id: b.string,
|
|
11301
|
+
title: b.string,
|
|
11302
|
+
description: b.string,
|
|
11303
|
+
layout: Fh,
|
|
11304
|
+
queryID: b.string,
|
|
11305
|
+
viz: Ah,
|
|
11306
|
+
style: Ph
|
|
11233
11307
|
}).views((t) => ({
|
|
11234
11308
|
get json() {
|
|
11235
11309
|
const { id: e, title: n, description: a, queryID: i } = t;
|
|
@@ -11239,7 +11313,8 @@ const li = v.model("QueryModel", {
|
|
|
11239
11313
|
description: a,
|
|
11240
11314
|
layout: t.layout.json,
|
|
11241
11315
|
queryID: i,
|
|
11242
|
-
viz: t.viz.json
|
|
11316
|
+
viz: t.viz.json,
|
|
11317
|
+
style: t.style.json
|
|
11243
11318
|
};
|
|
11244
11319
|
}
|
|
11245
11320
|
})).actions((t) => ({
|
|
@@ -11255,9 +11330,9 @@ const li = v.model("QueryModel", {
|
|
|
11255
11330
|
setQueryID(e) {
|
|
11256
11331
|
t.queryID = e;
|
|
11257
11332
|
}
|
|
11258
|
-
})).actions((t) => ({})),
|
|
11259
|
-
original:
|
|
11260
|
-
current:
|
|
11333
|
+
})).actions((t) => ({})), Lh = b.model("PanelsModel", {
|
|
11334
|
+
original: b.optional(b.array(Tr), []),
|
|
11335
|
+
current: b.optional(b.array(Tr), [])
|
|
11261
11336
|
}).views((t) => ({
|
|
11262
11337
|
get changed() {
|
|
11263
11338
|
return t.original.length !== t.current.length ? !0 : t.original.some((e, n) => !$.isEqual(e.json, t.current[n].json));
|
|
@@ -11282,7 +11357,7 @@ const li = v.model("QueryModel", {
|
|
|
11282
11357
|
t.current.length = 0, t.current.unshift(...e);
|
|
11283
11358
|
},
|
|
11284
11359
|
replace(e) {
|
|
11285
|
-
t.current =
|
|
11360
|
+
t.current = Ae(e);
|
|
11286
11361
|
},
|
|
11287
11362
|
addANewPanel() {
|
|
11288
11363
|
const e = fe();
|
|
@@ -11300,6 +11375,11 @@ const li = v.model("QueryModel", {
|
|
|
11300
11375
|
viz: {
|
|
11301
11376
|
type: cn.name,
|
|
11302
11377
|
conf: cn.createConfig()
|
|
11378
|
+
},
|
|
11379
|
+
style: {
|
|
11380
|
+
border: {
|
|
11381
|
+
enabled: !0
|
|
11382
|
+
}
|
|
11303
11383
|
}
|
|
11304
11384
|
});
|
|
11305
11385
|
},
|
|
@@ -11333,12 +11413,12 @@ const li = v.model("QueryModel", {
|
|
|
11333
11413
|
replaceByIndex(e, n) {
|
|
11334
11414
|
t.current.splice(e, 1, n);
|
|
11335
11415
|
}
|
|
11336
|
-
})), Vr =
|
|
11337
|
-
id:
|
|
11338
|
-
name:
|
|
11339
|
-
type:
|
|
11340
|
-
config:
|
|
11341
|
-
panels:
|
|
11416
|
+
})), Vr = b.model({
|
|
11417
|
+
id: b.identifier,
|
|
11418
|
+
name: b.string,
|
|
11419
|
+
type: b.string,
|
|
11420
|
+
config: b.frozen(),
|
|
11421
|
+
panels: Lh
|
|
11342
11422
|
}).views((t) => ({
|
|
11343
11423
|
get json() {
|
|
11344
11424
|
const { id: e, name: n, type: a, config: i } = t;
|
|
@@ -11369,11 +11449,11 @@ const li = v.model("QueryModel", {
|
|
|
11369
11449
|
[e]: n
|
|
11370
11450
|
};
|
|
11371
11451
|
}
|
|
11372
|
-
})).actions((t) => ({})), ci =
|
|
11373
|
-
original:
|
|
11374
|
-
current:
|
|
11375
|
-
visibleViewIDs:
|
|
11376
|
-
idOfVIE:
|
|
11452
|
+
})).actions((t) => ({})), ci = b.model("ViewsModel", {
|
|
11453
|
+
original: b.optional(b.array(Vr), []),
|
|
11454
|
+
current: b.optional(b.array(Vr), []),
|
|
11455
|
+
visibleViewIDs: b.array(b.string),
|
|
11456
|
+
idOfVIE: b.string
|
|
11377
11457
|
}).views((t) => ({
|
|
11378
11458
|
get changed() {
|
|
11379
11459
|
return t.original.length !== t.current.length ? !0 : t.original.some((e, n) => !$.isEqual(e.json, t.current[n].json));
|
|
@@ -11413,7 +11493,7 @@ const li = v.model("QueryModel", {
|
|
|
11413
11493
|
t.current.length = 0, t.current.unshift(...e);
|
|
11414
11494
|
},
|
|
11415
11495
|
replace(e) {
|
|
11416
|
-
t.current =
|
|
11496
|
+
t.current = Ae(e);
|
|
11417
11497
|
},
|
|
11418
11498
|
addANewView(e, n, a) {
|
|
11419
11499
|
t.current.push({
|
|
@@ -11460,7 +11540,7 @@ const li = v.model("QueryModel", {
|
|
|
11460
11540
|
n !== -1 && t.visibleViewIDs.splice(n, 1);
|
|
11461
11541
|
}
|
|
11462
11542
|
}));
|
|
11463
|
-
function
|
|
11543
|
+
function qh(t) {
|
|
11464
11544
|
const e = t.length > 0 ? [t[0].id] : [], n = t.length > 0 ? t[0].id : "", a = t.map((i) => ({
|
|
11465
11545
|
...i,
|
|
11466
11546
|
panels: {
|
|
@@ -11475,14 +11555,14 @@ function Fh(t) {
|
|
|
11475
11555
|
idOfVIE: n
|
|
11476
11556
|
});
|
|
11477
11557
|
}
|
|
11478
|
-
const
|
|
11479
|
-
id:
|
|
11480
|
-
name:
|
|
11481
|
-
filters:
|
|
11482
|
-
queries:
|
|
11483
|
-
sqlSnippets:
|
|
11558
|
+
const $h = b.model({
|
|
11559
|
+
id: b.identifier,
|
|
11560
|
+
name: b.string,
|
|
11561
|
+
filters: Rh,
|
|
11562
|
+
queries: zh,
|
|
11563
|
+
sqlSnippets: Eh,
|
|
11484
11564
|
views: ci,
|
|
11485
|
-
context:
|
|
11565
|
+
context: Oh
|
|
11486
11566
|
}).views((t) => ({
|
|
11487
11567
|
get payloadForSQL() {
|
|
11488
11568
|
return {
|
|
@@ -11516,10 +11596,10 @@ const Mh = v.model({
|
|
|
11516
11596
|
}
|
|
11517
11597
|
}));
|
|
11518
11598
|
function ui({ id: t, name: e, filters: n, views: a, definition: { queries: i, sqlSnippets: o } }, s) {
|
|
11519
|
-
return
|
|
11599
|
+
return $h.create({
|
|
11520
11600
|
id: t,
|
|
11521
11601
|
name: e,
|
|
11522
|
-
filters:
|
|
11602
|
+
filters: Dh(n),
|
|
11523
11603
|
queries: {
|
|
11524
11604
|
original: i,
|
|
11525
11605
|
current: i
|
|
@@ -11529,10 +11609,10 @@ function ui({ id: t, name: e, filters: n, views: a, definition: { queries: i, sq
|
|
|
11529
11609
|
current: o
|
|
11530
11610
|
},
|
|
11531
11611
|
context: s,
|
|
11532
|
-
views:
|
|
11612
|
+
views: qh(a)
|
|
11533
11613
|
});
|
|
11534
11614
|
}
|
|
11535
|
-
const
|
|
11615
|
+
const xp = R(function({
|
|
11536
11616
|
context: e,
|
|
11537
11617
|
dashboard: n,
|
|
11538
11618
|
update: a,
|
|
@@ -11555,7 +11635,7 @@ const fp = R(function({
|
|
|
11555
11635
|
}
|
|
11556
11636
|
};
|
|
11557
11637
|
await a(I);
|
|
11558
|
-
}, h =
|
|
11638
|
+
}, h = Me(Ha, []);
|
|
11559
11639
|
return /* @__PURE__ */ r(Er, {
|
|
11560
11640
|
children: /* @__PURE__ */ r(aa, {
|
|
11561
11641
|
value: u,
|
|
@@ -11573,7 +11653,7 @@ const fp = R(function({
|
|
|
11573
11653
|
},
|
|
11574
11654
|
children: /* @__PURE__ */ r(Te.Provider, {
|
|
11575
11655
|
value: h,
|
|
11576
|
-
children: u.views.visibleViews.map((f) => /* @__PURE__ */ r(
|
|
11656
|
+
children: u.views.visibleViews.map((f) => /* @__PURE__ */ r(xh, {
|
|
11577
11657
|
view: f,
|
|
11578
11658
|
saveDashboardChanges: p
|
|
11579
11659
|
}, f.id))
|
|
@@ -11583,7 +11663,7 @@ const fp = R(function({
|
|
|
11583
11663
|
})
|
|
11584
11664
|
});
|
|
11585
11665
|
});
|
|
11586
|
-
function
|
|
11666
|
+
function Cp({
|
|
11587
11667
|
context: t,
|
|
11588
11668
|
dashboard: e,
|
|
11589
11669
|
className: n = "dashboard",
|
|
@@ -11605,7 +11685,7 @@ function gp({
|
|
|
11605
11685
|
},
|
|
11606
11686
|
children: /* @__PURE__ */ r(q, {
|
|
11607
11687
|
className: `${n} dashboard-root dashboard-sticky-parent`,
|
|
11608
|
-
children: i.views.visibleViews.map((o) => /* @__PURE__ */ r(
|
|
11688
|
+
children: i.views.visibleViews.map((o) => /* @__PURE__ */ r(Ch, {
|
|
11609
11689
|
view: o
|
|
11610
11690
|
}, o.id))
|
|
11611
11691
|
})
|
|
@@ -11614,29 +11694,29 @@ function gp({
|
|
|
11614
11694
|
});
|
|
11615
11695
|
}
|
|
11616
11696
|
export {
|
|
11617
|
-
|
|
11618
|
-
|
|
11697
|
+
Oh as ContextModel,
|
|
11698
|
+
xp as Dashboard,
|
|
11619
11699
|
Ss as DashboardFilterType,
|
|
11620
11700
|
ws as DashboardMode,
|
|
11621
11701
|
Re as EViewComponentType,
|
|
11622
11702
|
Dr as FilterModel,
|
|
11623
|
-
|
|
11703
|
+
Rh as FiltersModel,
|
|
11624
11704
|
Se as LayoutStateContext,
|
|
11625
|
-
|
|
11705
|
+
xh as MainDashboardView,
|
|
11626
11706
|
aa as ModelContextProvider,
|
|
11627
11707
|
Nn as Panel,
|
|
11628
11708
|
Xo as PanelContextProvider,
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11709
|
+
zh as QueriesModel,
|
|
11710
|
+
Vh as QueryModel,
|
|
11711
|
+
Cp as ReadOnlyDashboard,
|
|
11712
|
+
Ch as ReadOnlyDashboardView,
|
|
11633
11713
|
kr as SQLSnippetModel,
|
|
11634
|
-
|
|
11714
|
+
Eh as SQLSnippetsModel,
|
|
11635
11715
|
Vr as ViewModel,
|
|
11636
11716
|
ci as ViewsModel,
|
|
11637
11717
|
ui as createDashboardModel,
|
|
11638
|
-
|
|
11639
|
-
|
|
11718
|
+
qh as createDashboardViewsModel,
|
|
11719
|
+
Dh as getInitialFiltersPayload,
|
|
11640
11720
|
ee as useModelContext,
|
|
11641
11721
|
he as usePanelContext
|
|
11642
11722
|
};
|