@devtable/dashboard 5.1.0 → 5.2.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 +392 -354
- package/dist/dashboard.umd.js +14 -14
- package/dist/plugins/viz-components/cartesian/type.d.ts +1 -0
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var Va = Object.defineProperty;
|
|
2
2
|
var Fa = (e, t, n) => t in e ? Va(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var z = (e, t, n) => (Fa(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { Box as
|
|
4
|
+
import { Box as B, Text as C, Button as T, Checkbox as st, MultiSelect as On, Select as j, TextInput as E, Group as y, Stack as R, ActionIcon as P, LoadingOverlay as Gt, Table as Bt, Tabs as k, Textarea as Pn, AppShell as zn, Modal as Fe, Divider as Z, SimpleGrid as $a, NumberInput as ke, Menu as ve, Tooltip as Ea, Paper as Ma, Code as Tr, Switch as ze, useMantineTheme as ka, ColorInput as Aa, ColorSwatch as Lr, Slider as so, createStyles as Tn, Popover as pn, Accordion as q, SegmentedControl as Oa, JsonInput as Pa } from "@mantine/core";
|
|
5
5
|
import { useModals as za, ModalsProvider as uo } from "@mantine/modals";
|
|
6
6
|
import { useRequest as jt, useBoolean as _t, useCreation as We, useAsyncEffect as Rt, useLatest as Nr } from "ahooks";
|
|
7
7
|
import { observer as V } from "mobx-react-lite";
|
|
8
8
|
import * as qr from "react";
|
|
9
|
-
import
|
|
10
|
-
import U, { omit as Ut, get as de, values as co, unset as Na, isObject as go, set as po, orderBy as qa, last as Ga, noop as Ba, defaults as ue, isEqual as
|
|
11
|
-
import { useForm as
|
|
9
|
+
import w, { useEffect as ne, forwardRef as Ln, useMemo as G, useState as be, createElement as Ht, useCallback as Tt, useRef as Ta, useContext as Le, createContext as La } from "react";
|
|
10
|
+
import U, { omit as Ut, get as de, values as co, unset as Na, isObject as go, set as po, orderBy as qa, last as Ga, noop as Ba, defaults as ue, isEqual as Te, defaultsDeep as ot, findLastIndex as ja, isEmpty as fo, isNumber as Ha, isString as ho, range as Ua, cloneDeep as mo, maxBy as vo, merge as bo, minBy as Wa, groupBy as Ya, template as yo, cloneDeepWith as Qa, throttle as Xa } from "lodash";
|
|
11
|
+
import { useForm as Ne, Controller as D, useFieldArray as Ae } from "react-hook-form";
|
|
12
12
|
import { DateRangePicker as Ja } from "@mantine/dates";
|
|
13
13
|
import Ye from "dayjs";
|
|
14
14
|
import { Calendar as Ka, Refresh as xo, DeviceFloppy as ae, Trash as oe, PlaylistAdd as ct, Recycle as Co, Settings as wo, Filter as Za, Database as el, Share as tl, Download as So, Code as nl, InfoCircle as rl, ArrowRight as fn, ArrowsMaximize as ol, Copy as il, ArrowLeft as al, ArrowsMove as ll, ChevronDownRight as sl } from "tabler-icons-react";
|
|
@@ -32,7 +32,7 @@ import { CanvasRenderer as Ze } from "echarts/renderers";
|
|
|
32
32
|
import "echarts-gl";
|
|
33
33
|
import { GridComponent as dt, VisualMapComponent as yl, LegendComponent as gt, TooltipComponent as pt, DataZoomComponent as Qt, MarkLineComponent as xl } from "echarts/components";
|
|
34
34
|
import { transform as Mo } from "echarts-stat";
|
|
35
|
-
import * as
|
|
35
|
+
import * as Be from "d3-regression";
|
|
36
36
|
import Cl from "stickybits";
|
|
37
37
|
import ko, { WidthProvider as Ao } from "react-grid-layout";
|
|
38
38
|
import wl from "jszip";
|
|
@@ -70,9 +70,9 @@ function Oo(e, t) {
|
|
|
70
70
|
const Sl = {
|
|
71
71
|
viewPanelInFullScreen: U.noop,
|
|
72
72
|
inFullScreen: !1
|
|
73
|
-
}, Bn =
|
|
73
|
+
}, Bn = w.createContext(Sl), Po = w.createContext(null), zo = Po.Provider;
|
|
74
74
|
function ee() {
|
|
75
|
-
const e =
|
|
75
|
+
const e = w.useContext(Po);
|
|
76
76
|
if (!e)
|
|
77
77
|
throw new Error("Please use ModelContextProvider");
|
|
78
78
|
return e;
|
|
@@ -92,7 +92,7 @@ function _l() {
|
|
|
92
92
|
if (jr)
|
|
93
93
|
return ht;
|
|
94
94
|
jr = 1;
|
|
95
|
-
var e =
|
|
95
|
+
var e = w, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
96
96
|
function l(s, u, g) {
|
|
97
97
|
var c, f = {}, p = null, m = null;
|
|
98
98
|
g !== void 0 && (p = "" + g), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (m = u.ref);
|
|
@@ -118,8 +118,8 @@ var mt = {};
|
|
|
118
118
|
var Hr;
|
|
119
119
|
function Rl() {
|
|
120
120
|
return Hr || (Hr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
121
|
-
var e =
|
|
122
|
-
function
|
|
121
|
+
var e = w, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), b = Symbol.iterator, v = "@@iterator";
|
|
122
|
+
function S(h) {
|
|
123
123
|
if (h === null || typeof h != "object")
|
|
124
124
|
return null;
|
|
125
125
|
var _ = b && h[b] || h[v];
|
|
@@ -137,8 +137,8 @@ function Rl() {
|
|
|
137
137
|
{
|
|
138
138
|
var M = F.ReactDebugCurrentFrame, W = M.getStackAddendum();
|
|
139
139
|
W !== "" && (_ += "%s", I = I.concat([W]));
|
|
140
|
-
var X = I.map(function(
|
|
141
|
-
return String(
|
|
140
|
+
var X = I.map(function(H) {
|
|
141
|
+
return String(H);
|
|
142
142
|
});
|
|
143
143
|
X.unshift("Warning: " + _), Function.prototype.apply.call(console[h], console, X);
|
|
144
144
|
}
|
|
@@ -193,9 +193,9 @@ function Rl() {
|
|
|
193
193
|
var M = h.displayName || null;
|
|
194
194
|
return M !== null ? M : he(h.type) || "Memo";
|
|
195
195
|
case p: {
|
|
196
|
-
var W = h, X = W._payload,
|
|
196
|
+
var W = h, X = W._payload, H = W._init;
|
|
197
197
|
try {
|
|
198
|
-
return he(
|
|
198
|
+
return he(H(X));
|
|
199
199
|
} catch {
|
|
200
200
|
return null;
|
|
201
201
|
}
|
|
@@ -203,13 +203,13 @@ function Rl() {
|
|
|
203
203
|
}
|
|
204
204
|
return null;
|
|
205
205
|
}
|
|
206
|
-
var me = Object.assign,
|
|
206
|
+
var me = Object.assign, Ge = 0, mr, vr, br, yr, xr, Cr, wr;
|
|
207
207
|
function Sr() {
|
|
208
208
|
}
|
|
209
209
|
Sr.__reactDisabledLog = !0;
|
|
210
210
|
function ra() {
|
|
211
211
|
{
|
|
212
|
-
if (
|
|
212
|
+
if (Ge === 0) {
|
|
213
213
|
mr = console.log, vr = console.info, br = console.warn, yr = console.error, xr = console.group, Cr = console.groupCollapsed, wr = console.groupEnd;
|
|
214
214
|
var h = {
|
|
215
215
|
configurable: !0,
|
|
@@ -227,12 +227,12 @@ function Rl() {
|
|
|
227
227
|
groupEnd: h
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
Ge++;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
function oa() {
|
|
234
234
|
{
|
|
235
|
-
if (
|
|
235
|
+
if (Ge--, Ge === 0) {
|
|
236
236
|
var h = {
|
|
237
237
|
configurable: !0,
|
|
238
238
|
enumerable: !0,
|
|
@@ -262,7 +262,7 @@ function Rl() {
|
|
|
262
262
|
})
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
Ge < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
var on = F.ReactCurrentDispatcher, an;
|
|
@@ -300,27 +300,27 @@ function Rl() {
|
|
|
300
300
|
X = on.current, on.current = null, ra();
|
|
301
301
|
try {
|
|
302
302
|
if (_) {
|
|
303
|
-
var
|
|
303
|
+
var H = function() {
|
|
304
304
|
throw Error();
|
|
305
305
|
};
|
|
306
|
-
if (Object.defineProperty(
|
|
306
|
+
if (Object.defineProperty(H.prototype, "props", {
|
|
307
307
|
set: function() {
|
|
308
308
|
throw Error();
|
|
309
309
|
}
|
|
310
310
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
311
311
|
try {
|
|
312
|
-
Reflect.construct(
|
|
312
|
+
Reflect.construct(H, []);
|
|
313
313
|
} catch (Oe) {
|
|
314
314
|
M = Oe;
|
|
315
315
|
}
|
|
316
|
-
Reflect.construct(h, [],
|
|
316
|
+
Reflect.construct(h, [], H);
|
|
317
317
|
} else {
|
|
318
318
|
try {
|
|
319
|
-
|
|
319
|
+
H.call();
|
|
320
320
|
} catch (Oe) {
|
|
321
321
|
M = Oe;
|
|
322
322
|
}
|
|
323
|
-
h.call(
|
|
323
|
+
h.call(H.prototype);
|
|
324
324
|
}
|
|
325
325
|
} else {
|
|
326
326
|
try {
|
|
@@ -402,19 +402,19 @@ function Rl() {
|
|
|
402
402
|
function sa(h, _, I, M, W) {
|
|
403
403
|
{
|
|
404
404
|
var X = Function.call.bind(Et);
|
|
405
|
-
for (var
|
|
406
|
-
if (X(h,
|
|
405
|
+
for (var H in h)
|
|
406
|
+
if (X(h, H)) {
|
|
407
407
|
var N = void 0;
|
|
408
408
|
try {
|
|
409
|
-
if (typeof h[
|
|
410
|
-
var ge = Error((M || "React class") + ": " + I + " type `" +
|
|
409
|
+
if (typeof h[H] != "function") {
|
|
410
|
+
var ge = Error((M || "React class") + ": " + I + " type `" + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[H] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
411
411
|
throw ge.name = "Invariant Violation", ge;
|
|
412
412
|
}
|
|
413
|
-
N = h[
|
|
413
|
+
N = h[H](_, H, M, I, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
414
414
|
} catch (te) {
|
|
415
415
|
N = te;
|
|
416
416
|
}
|
|
417
|
-
N && !(N instanceof Error) && (Mt(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).", M || "React class", I,
|
|
417
|
+
N && !(N instanceof Error) && (Mt(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).", M || "React class", I, H, typeof N), Mt(null)), N instanceof Error && !(N.message in Rr) && (Rr[N.message] = !0, Mt(W), $("Failed %s type: %s", I, N.message), Mt(null));
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
}
|
|
@@ -493,13 +493,13 @@ function Rl() {
|
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
var ba = function(h, _, I, M, W, X,
|
|
496
|
+
var ba = function(h, _, I, M, W, X, H) {
|
|
497
497
|
var N = {
|
|
498
498
|
$$typeof: t,
|
|
499
499
|
type: h,
|
|
500
500
|
key: _,
|
|
501
501
|
ref: I,
|
|
502
|
-
props:
|
|
502
|
+
props: H,
|
|
503
503
|
_owner: X
|
|
504
504
|
};
|
|
505
505
|
return N._store = {}, Object.defineProperty(N._store, "validated", {
|
|
@@ -521,20 +521,20 @@ function Rl() {
|
|
|
521
521
|
};
|
|
522
522
|
function ya(h, _, I, M, W) {
|
|
523
523
|
{
|
|
524
|
-
var X,
|
|
524
|
+
var X, H = {}, N = null, ge = null;
|
|
525
525
|
I !== void 0 && (Vr(I), N = "" + I), fa(_) && (Vr(_.key), N = "" + _.key), pa(_) && (ge = _.ref, ha(_, W));
|
|
526
526
|
for (X in _)
|
|
527
|
-
Et.call(_, X) && !ga.hasOwnProperty(X) && (
|
|
527
|
+
Et.call(_, X) && !ga.hasOwnProperty(X) && (H[X] = _[X]);
|
|
528
528
|
if (h && h.defaultProps) {
|
|
529
529
|
var te = h.defaultProps;
|
|
530
530
|
for (X in te)
|
|
531
|
-
|
|
531
|
+
H[X] === void 0 && (H[X] = te[X]);
|
|
532
532
|
}
|
|
533
533
|
if (N || ge) {
|
|
534
534
|
var re = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
535
|
-
N && ma(
|
|
535
|
+
N && ma(H, re), ge && va(H, re);
|
|
536
536
|
}
|
|
537
|
-
return ba(h, N, ge, W, M, ft.current,
|
|
537
|
+
return ba(h, N, ge, W, M, ft.current, H);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
var cn = F.ReactCurrentOwner, Er = F.ReactDebugCurrentFrame;
|
|
@@ -611,10 +611,10 @@ Check the top-level render call using <` + I + ">.");
|
|
|
611
611
|
else if (gn(h))
|
|
612
612
|
h._store && (h._store.validated = !0);
|
|
613
613
|
else if (h) {
|
|
614
|
-
var W =
|
|
614
|
+
var W = S(h);
|
|
615
615
|
if (typeof W == "function" && W !== h.entries)
|
|
616
|
-
for (var X = W.call(h),
|
|
617
|
-
gn(
|
|
616
|
+
for (var X = W.call(h), H; !(H = X.next()).done; )
|
|
617
|
+
gn(H.value) && Ar(H.value, _);
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
}
|
|
@@ -655,8 +655,8 @@ Check the top-level render call using <` + I + ">.");
|
|
|
655
655
|
}
|
|
656
656
|
function Pr(h, _, I, M, W, X) {
|
|
657
657
|
{
|
|
658
|
-
var
|
|
659
|
-
if (!
|
|
658
|
+
var H = Re(h);
|
|
659
|
+
if (!H) {
|
|
660
660
|
var N = "";
|
|
661
661
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
662
662
|
var ge = xa(W);
|
|
@@ -667,7 +667,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
667
667
|
var re = ya(h, _, I, W, X);
|
|
668
668
|
if (re == null)
|
|
669
669
|
return re;
|
|
670
|
-
if (
|
|
670
|
+
if (H) {
|
|
671
671
|
var xe = _.children;
|
|
672
672
|
if (xe !== void 0)
|
|
673
673
|
if (M)
|
|
@@ -697,7 +697,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
697
697
|
process.env.NODE_ENV === "production" ? e.exports = _l() : e.exports = Rl();
|
|
698
698
|
})(Xt);
|
|
699
699
|
const K = Xt.exports.Fragment, i = Xt.exports.jsx, d = Xt.exports.jsxs;
|
|
700
|
-
class ut extends
|
|
700
|
+
class ut extends w.Component {
|
|
701
701
|
constructor(t) {
|
|
702
702
|
super(t), this.state = {
|
|
703
703
|
error: null
|
|
@@ -716,7 +716,7 @@ class ut extends S.Component {
|
|
|
716
716
|
error: null
|
|
717
717
|
});
|
|
718
718
|
};
|
|
719
|
-
return /* @__PURE__ */ d(
|
|
719
|
+
return /* @__PURE__ */ d(B, {
|
|
720
720
|
children: [/* @__PURE__ */ i(C, {
|
|
721
721
|
size: "xs",
|
|
722
722
|
children: (t = this.state.error) == null ? void 0 : t.message
|
|
@@ -745,7 +745,7 @@ function Dl({
|
|
|
745
745
|
value: r,
|
|
746
746
|
onChange: o
|
|
747
747
|
}) {
|
|
748
|
-
return /* @__PURE__ */ d(
|
|
748
|
+
return /* @__PURE__ */ d(B, {
|
|
749
749
|
children: [/* @__PURE__ */ i(C, {
|
|
750
750
|
children: "\xA0"
|
|
751
751
|
}), /* @__PURE__ */ i(st, {
|
|
@@ -897,7 +897,7 @@ function El({
|
|
|
897
897
|
} = jt(Un(t.options_query), {
|
|
898
898
|
refreshDeps: [t.options_query, o]
|
|
899
899
|
});
|
|
900
|
-
return /* @__PURE__ */ i(
|
|
900
|
+
return /* @__PURE__ */ i(j, {
|
|
901
901
|
label: e,
|
|
902
902
|
data: o ? a : t.static_options,
|
|
903
903
|
disabled: o ? l : !1,
|
|
@@ -961,7 +961,7 @@ const kl = V(({
|
|
|
961
961
|
default:
|
|
962
962
|
return null;
|
|
963
963
|
}
|
|
964
|
-
}), No = V(
|
|
964
|
+
}), No = V(w.forwardRef(({
|
|
965
965
|
filter: e,
|
|
966
966
|
...t
|
|
967
967
|
}, n) => /* @__PURE__ */ i("div", {
|
|
@@ -979,7 +979,7 @@ const kl = V(({
|
|
|
979
979
|
const n = ee(), {
|
|
980
980
|
control: r,
|
|
981
981
|
handleSubmit: o
|
|
982
|
-
} =
|
|
982
|
+
} = Ne({
|
|
983
983
|
defaultValues: n.filters.values
|
|
984
984
|
}), a = n.filters.visibleInView(t.id);
|
|
985
985
|
return a.length === 0 ? null : /* @__PURE__ */ i("form", {
|
|
@@ -1023,13 +1023,13 @@ const kl = V(({
|
|
|
1023
1023
|
freezeLayout: U.noop,
|
|
1024
1024
|
inEditMode: !1,
|
|
1025
1025
|
inUseMode: !0
|
|
1026
|
-
}, $e =
|
|
1026
|
+
}, $e = w.createContext(Al), Go = w.createContext({
|
|
1027
1027
|
panel: null,
|
|
1028
1028
|
data: [],
|
|
1029
1029
|
loading: !1
|
|
1030
1030
|
}), Ol = Go.Provider;
|
|
1031
1031
|
function pe() {
|
|
1032
|
-
const e =
|
|
1032
|
+
const e = w.useContext(Go);
|
|
1033
1033
|
if (!e.panel)
|
|
1034
1034
|
throw new Error("Please use PanelContextProvider");
|
|
1035
1035
|
return e;
|
|
@@ -1050,7 +1050,7 @@ WHERE
|
|
|
1050
1050
|
showSQLSnippets: t = !0,
|
|
1051
1051
|
sx: n = {}
|
|
1052
1052
|
}) {
|
|
1053
|
-
const r = ee(), o = r.context.current, a =
|
|
1053
|
+
const r = ee(), o = r.context.current, a = w.useMemo(() => {
|
|
1054
1054
|
const l = {
|
|
1055
1055
|
context: o,
|
|
1056
1056
|
filters: r.filters.values
|
|
@@ -1116,7 +1116,7 @@ WHERE
|
|
|
1116
1116
|
function zl({
|
|
1117
1117
|
data: e
|
|
1118
1118
|
}) {
|
|
1119
|
-
return e.length === 0 ? /* @__PURE__ */ i(
|
|
1119
|
+
return e.length === 0 ? /* @__PURE__ */ i(B, {
|
|
1120
1120
|
sx: {
|
|
1121
1121
|
height: "5em"
|
|
1122
1122
|
}
|
|
@@ -1191,7 +1191,7 @@ const jo = V(function({
|
|
|
1191
1191
|
size: 15
|
|
1192
1192
|
})
|
|
1193
1193
|
})]
|
|
1194
|
-
}), /* @__PURE__ */ d(
|
|
1194
|
+
}), /* @__PURE__ */ d(B, {
|
|
1195
1195
|
sx: {
|
|
1196
1196
|
position: "relative"
|
|
1197
1197
|
},
|
|
@@ -1229,7 +1229,7 @@ const jo = V(function({
|
|
|
1229
1229
|
value: s.key,
|
|
1230
1230
|
type: s.type
|
|
1231
1231
|
})), [r]), l = G(() => a.reduce((s, u) => (s[u.value] = u.type, s), {}), [a]);
|
|
1232
|
-
return /* @__PURE__ */ i(
|
|
1232
|
+
return /* @__PURE__ */ i(j, {
|
|
1233
1233
|
label: "Data Source",
|
|
1234
1234
|
data: a,
|
|
1235
1235
|
itemComponent: Tl,
|
|
@@ -1248,7 +1248,7 @@ const jo = V(function({
|
|
|
1248
1248
|
}), Uo = V(({
|
|
1249
1249
|
value: e
|
|
1250
1250
|
}) => {
|
|
1251
|
-
const t = ee(), n = t.context.current, r =
|
|
1251
|
+
const t = ee(), n = t.context.current, r = w.useMemo(() => Lo(e, n, t.sqlSnippets.current, t.filters.values), [e, n, t.sqlSnippets.current, t.filters.values]);
|
|
1252
1252
|
return /* @__PURE__ */ i(nt, {
|
|
1253
1253
|
language: "sql",
|
|
1254
1254
|
colorScheme: "light",
|
|
@@ -1258,12 +1258,12 @@ const jo = V(function({
|
|
|
1258
1258
|
queryModel: t,
|
|
1259
1259
|
setCurrentID: n
|
|
1260
1260
|
}) {
|
|
1261
|
-
const r =
|
|
1262
|
-
|
|
1261
|
+
const r = w.useRef(t.id), [o, a] = w.useState(r.current);
|
|
1262
|
+
w.useEffect(() => {
|
|
1263
1263
|
r.current !== t.id && (a(t.id), r.current = t.id);
|
|
1264
1264
|
}, [r, t.id]);
|
|
1265
|
-
const [l, s] =
|
|
1266
|
-
|
|
1265
|
+
const [l, s] = w.useState(t.sql);
|
|
1266
|
+
w.useEffect(() => {
|
|
1267
1267
|
s((f) => f !== t.sql ? t.sql : f);
|
|
1268
1268
|
}, [t.sql]);
|
|
1269
1269
|
const u = l !== t.sql, g = () => {
|
|
@@ -1340,7 +1340,7 @@ const jo = V(function({
|
|
|
1340
1340
|
}), /* @__PURE__ */ i(k.Panel, {
|
|
1341
1341
|
value: "SQL",
|
|
1342
1342
|
pt: "sm",
|
|
1343
|
-
children: /* @__PURE__ */ d(
|
|
1343
|
+
children: /* @__PURE__ */ d(B, {
|
|
1344
1344
|
sx: {
|
|
1345
1345
|
position: "relative"
|
|
1346
1346
|
},
|
|
@@ -1383,7 +1383,7 @@ const jo = V(function({
|
|
|
1383
1383
|
id: t,
|
|
1384
1384
|
setID: n
|
|
1385
1385
|
}) {
|
|
1386
|
-
const r = ee(), o =
|
|
1386
|
+
const r = ee(), o = w.useMemo(() => r.queries.findByID(t), [r.queries, t]);
|
|
1387
1387
|
return t ? o ? /* @__PURE__ */ i(Ll, {
|
|
1388
1388
|
queryModel: o,
|
|
1389
1389
|
setCurrentID: n
|
|
@@ -1400,7 +1400,7 @@ const ql = V(function({
|
|
|
1400
1400
|
var l;
|
|
1401
1401
|
n((l = r.queries.firstID) != null ? l : "");
|
|
1402
1402
|
};
|
|
1403
|
-
|
|
1403
|
+
w.useEffect(() => {
|
|
1404
1404
|
if (!t) {
|
|
1405
1405
|
o();
|
|
1406
1406
|
return;
|
|
@@ -1426,7 +1426,7 @@ const ql = V(function({
|
|
|
1426
1426
|
},
|
|
1427
1427
|
children: [/* @__PURE__ */ i(C, {
|
|
1428
1428
|
children: "Select a Query"
|
|
1429
|
-
}), /* @__PURE__ */ i(
|
|
1429
|
+
}), /* @__PURE__ */ i(j, {
|
|
1430
1430
|
data: r.queries.options,
|
|
1431
1431
|
value: t,
|
|
1432
1432
|
onChange: n,
|
|
@@ -1448,7 +1448,7 @@ const ql = V(function({
|
|
|
1448
1448
|
})
|
|
1449
1449
|
});
|
|
1450
1450
|
}), Gl = V(function() {
|
|
1451
|
-
const [t, n] =
|
|
1451
|
+
const [t, n] = w.useState("");
|
|
1452
1452
|
return /* @__PURE__ */ d(zn, {
|
|
1453
1453
|
sx: {
|
|
1454
1454
|
height: "90vh",
|
|
@@ -1489,7 +1489,7 @@ const ql = V(function({
|
|
|
1489
1489
|
}), Bl = V(({
|
|
1490
1490
|
value: e
|
|
1491
1491
|
}) => {
|
|
1492
|
-
const t = ee(), n = t.context.current, r =
|
|
1492
|
+
const t = ee(), n = t.context.current, r = w.useMemo(() => Il(e, n, t.filters.values), [e, n]);
|
|
1493
1493
|
return /* @__PURE__ */ d(R, {
|
|
1494
1494
|
children: [/* @__PURE__ */ i(C, {
|
|
1495
1495
|
children: "Preview"
|
|
@@ -1622,8 +1622,8 @@ const Ul = V(function({
|
|
|
1622
1622
|
}) {
|
|
1623
1623
|
const {
|
|
1624
1624
|
freezeLayout: r
|
|
1625
|
-
} =
|
|
1626
|
-
return
|
|
1625
|
+
} = w.useContext($e);
|
|
1626
|
+
return w.useEffect(() => {
|
|
1627
1627
|
r(t);
|
|
1628
1628
|
}, [t]), /* @__PURE__ */ i(Fe, {
|
|
1629
1629
|
size: "96vw",
|
|
@@ -1714,7 +1714,7 @@ const Wo = x.model({
|
|
|
1714
1714
|
onChange: (n) => t.setClearable(n.currentTarget.checked),
|
|
1715
1715
|
label: "Clearable"
|
|
1716
1716
|
})]
|
|
1717
|
-
}), /* @__PURE__ */ i(
|
|
1717
|
+
}), /* @__PURE__ */ i(j, {
|
|
1718
1718
|
data: Yl,
|
|
1719
1719
|
label: "Display Format",
|
|
1720
1720
|
value: t.inputFormat,
|
|
@@ -1730,7 +1730,7 @@ const Wo = x.model({
|
|
|
1730
1730
|
function Xl({
|
|
1731
1731
|
data: e
|
|
1732
1732
|
}) {
|
|
1733
|
-
return e.length === 0 ? /* @__PURE__ */ i(
|
|
1733
|
+
return e.length === 0 ? /* @__PURE__ */ i(B, {
|
|
1734
1734
|
sx: {
|
|
1735
1735
|
height: "5em"
|
|
1736
1736
|
}
|
|
@@ -1798,7 +1798,7 @@ const Jl = V(function({
|
|
|
1798
1798
|
disabled: !t.sql || !t.key,
|
|
1799
1799
|
children: "Retry"
|
|
1800
1800
|
})]
|
|
1801
|
-
}), /* @__PURE__ */ d(
|
|
1801
|
+
}), /* @__PURE__ */ d(B, {
|
|
1802
1802
|
sx: {
|
|
1803
1803
|
position: "relative"
|
|
1804
1804
|
},
|
|
@@ -1969,7 +1969,7 @@ const Jl = V(function({
|
|
|
1969
1969
|
}), /* @__PURE__ */ i(Z, {
|
|
1970
1970
|
label: "Configure options",
|
|
1971
1971
|
labelPosition: "center"
|
|
1972
|
-
}), r.length > 0 && /* @__PURE__ */ i(
|
|
1972
|
+
}), r.length > 0 && /* @__PURE__ */ i(j, {
|
|
1973
1973
|
label: "Default Selection",
|
|
1974
1974
|
data: o,
|
|
1975
1975
|
value: t.default_value,
|
|
@@ -2051,10 +2051,10 @@ const Jl = V(function({
|
|
|
2051
2051
|
}), ts = V(function({
|
|
2052
2052
|
filter: t
|
|
2053
2053
|
}) {
|
|
2054
|
-
const n = t.plainDefaultValue, [r, o] =
|
|
2055
|
-
return
|
|
2054
|
+
const n = t.plainDefaultValue, [r, o] = w.useState(n);
|
|
2055
|
+
return w.useEffect(() => {
|
|
2056
2056
|
o(n);
|
|
2057
|
-
}, [n]), /* @__PURE__ */ d(
|
|
2057
|
+
}, [n]), /* @__PURE__ */ d(B, {
|
|
2058
2058
|
sx: {
|
|
2059
2059
|
maxWidth: "30em"
|
|
2060
2060
|
},
|
|
@@ -2103,10 +2103,10 @@ const Jl = V(function({
|
|
|
2103
2103
|
filter: t,
|
|
2104
2104
|
index: n
|
|
2105
2105
|
}) {
|
|
2106
|
-
const r = ee(), o =
|
|
2106
|
+
const r = ee(), o = w.useMemo(() => ns[t.type], [t.type]);
|
|
2107
2107
|
return /* @__PURE__ */ d($a, {
|
|
2108
2108
|
cols: 2,
|
|
2109
|
-
children: [/* @__PURE__ */ d(
|
|
2109
|
+
children: [/* @__PURE__ */ d(B, {
|
|
2110
2110
|
pl: "md",
|
|
2111
2111
|
children: [/* @__PURE__ */ i(C, {
|
|
2112
2112
|
pb: "md",
|
|
@@ -2143,7 +2143,7 @@ const Jl = V(function({
|
|
|
2143
2143
|
onChange: (a) => {
|
|
2144
2144
|
t.setLabel(a.currentTarget.value);
|
|
2145
2145
|
}
|
|
2146
|
-
}), /* @__PURE__ */ i(
|
|
2146
|
+
}), /* @__PURE__ */ i(j, {
|
|
2147
2147
|
label: "Widget",
|
|
2148
2148
|
data: rs,
|
|
2149
2149
|
required: !0,
|
|
@@ -2172,7 +2172,7 @@ const is = V(function() {
|
|
|
2172
2172
|
};
|
|
2173
2173
|
t.filters.append(a);
|
|
2174
2174
|
};
|
|
2175
|
-
return /* @__PURE__ */ d(
|
|
2175
|
+
return /* @__PURE__ */ d(B, {
|
|
2176
2176
|
sx: {
|
|
2177
2177
|
height: "90vh",
|
|
2178
2178
|
maxHeight: "calc(100vh - 185px)"
|
|
@@ -2230,7 +2230,7 @@ const is = V(function() {
|
|
|
2230
2230
|
onClick: r,
|
|
2231
2231
|
children: "Add a Filter"
|
|
2232
2232
|
})]
|
|
2233
|
-
}), /* @__PURE__ */ i(
|
|
2233
|
+
}), /* @__PURE__ */ i(B, {
|
|
2234
2234
|
sx: {
|
|
2235
2235
|
flexGrow: 1,
|
|
2236
2236
|
height: "100%"
|
|
@@ -2245,7 +2245,7 @@ const is = V(function() {
|
|
|
2245
2245
|
height: "100%"
|
|
2246
2246
|
},
|
|
2247
2247
|
spacing: "sm",
|
|
2248
|
-
children: [/* @__PURE__ */ i(
|
|
2248
|
+
children: [/* @__PURE__ */ i(B, {
|
|
2249
2249
|
sx: {
|
|
2250
2250
|
flexGrow: 1,
|
|
2251
2251
|
maxHeight: "calc(100% - 52px)",
|
|
@@ -2280,8 +2280,8 @@ const is = V(function() {
|
|
|
2280
2280
|
}) {
|
|
2281
2281
|
const {
|
|
2282
2282
|
freezeLayout: r
|
|
2283
|
-
} =
|
|
2284
|
-
return
|
|
2283
|
+
} = w.useContext($e);
|
|
2284
|
+
return w.useEffect(() => {
|
|
2285
2285
|
r(t);
|
|
2286
2286
|
}, [t]), /* @__PURE__ */ i(Fe, {
|
|
2287
2287
|
size: "96vw",
|
|
@@ -2355,7 +2355,7 @@ const us = V(() => {
|
|
|
2355
2355
|
onChange: (n) => {
|
|
2356
2356
|
t.setName(n.currentTarget.value);
|
|
2357
2357
|
}
|
|
2358
|
-
}), /* @__PURE__ */ i(
|
|
2358
|
+
}), /* @__PURE__ */ i(j, {
|
|
2359
2359
|
label: "Type",
|
|
2360
2360
|
value: t.type,
|
|
2361
2361
|
onChange: t.setType,
|
|
@@ -2369,8 +2369,8 @@ const us = V(() => {
|
|
|
2369
2369
|
var o;
|
|
2370
2370
|
const n = ee(), {
|
|
2371
2371
|
freezeLayout: r
|
|
2372
|
-
} =
|
|
2373
|
-
return
|
|
2372
|
+
} = w.useContext($e);
|
|
2373
|
+
return w.useEffect(() => {
|
|
2374
2374
|
r(e);
|
|
2375
2375
|
}, [e]), /* @__PURE__ */ i(Fe, {
|
|
2376
2376
|
size: "500px",
|
|
@@ -2459,7 +2459,7 @@ const us = V(() => {
|
|
|
2459
2459
|
sx: {
|
|
2460
2460
|
minWidth: "260px"
|
|
2461
2461
|
},
|
|
2462
|
-
children: [/* @__PURE__ */ i(
|
|
2462
|
+
children: [/* @__PURE__ */ i(j, {
|
|
2463
2463
|
value: e,
|
|
2464
2464
|
onChange: (s) => {
|
|
2465
2465
|
s !== Ur ? t(s) : n();
|
|
@@ -2523,11 +2523,11 @@ function bs({
|
|
|
2523
2523
|
}) {
|
|
2524
2524
|
const {
|
|
2525
2525
|
freezeLayout: r
|
|
2526
|
-
} =
|
|
2527
|
-
|
|
2526
|
+
} = w.useContext($e);
|
|
2527
|
+
w.useEffect(() => {
|
|
2528
2528
|
r(e);
|
|
2529
2529
|
}, [e]);
|
|
2530
|
-
const o =
|
|
2530
|
+
const o = w.useMemo(() => JSON.stringify(n(), null, 2), [e]);
|
|
2531
2531
|
return /* @__PURE__ */ i(Fe, {
|
|
2532
2532
|
size: "96vw",
|
|
2533
2533
|
overflow: "inside",
|
|
@@ -2551,7 +2551,7 @@ function bs({
|
|
|
2551
2551
|
const Jo = V(function({
|
|
2552
2552
|
saveChanges: t
|
|
2553
2553
|
}) {
|
|
2554
|
-
const n = ee(), r =
|
|
2554
|
+
const n = ee(), r = w.useCallback(() => {
|
|
2555
2555
|
const L = n.queries.current, Y = n.views.current, le = n.sqlSnippets.current;
|
|
2556
2556
|
return {
|
|
2557
2557
|
filters: n.filters.current,
|
|
@@ -2566,7 +2566,7 @@ const Jo = V(function({
|
|
|
2566
2566
|
}, a = n.views.changed || n.sqlSnippets.changed || n.queries.changed || n.filters.changed, {
|
|
2567
2567
|
inEditMode: l,
|
|
2568
2568
|
inUseMode: s
|
|
2569
|
-
} =
|
|
2569
|
+
} = w.useContext($e), [u, g] = w.useState(!1), c = () => g(!0), f = () => g(!1), [p, m] = w.useState(!1), b = () => m(!0), v = () => m(!1), [S, F] = w.useState(!1), $ = () => F(!0), A = () => F(!1);
|
|
2570
2570
|
return /* @__PURE__ */ d(y, {
|
|
2571
2571
|
position: "apart",
|
|
2572
2572
|
pt: 0,
|
|
@@ -2654,7 +2654,7 @@ const Jo = V(function({
|
|
|
2654
2654
|
opened: u,
|
|
2655
2655
|
close: f
|
|
2656
2656
|
}), /* @__PURE__ */ i(bs, {
|
|
2657
|
-
opened:
|
|
2657
|
+
opened: S,
|
|
2658
2658
|
close: A,
|
|
2659
2659
|
getCurrentSchema: r
|
|
2660
2660
|
})]
|
|
@@ -2663,10 +2663,10 @@ const Jo = V(function({
|
|
|
2663
2663
|
const Ko = V(() => {
|
|
2664
2664
|
const {
|
|
2665
2665
|
freezeLayout: e
|
|
2666
|
-
} =
|
|
2666
|
+
} = w.useContext($e), [t, n] = w.useState(!1), {
|
|
2667
2667
|
panel: r
|
|
2668
2668
|
} = pe();
|
|
2669
|
-
return
|
|
2669
|
+
return w.useEffect(() => {
|
|
2670
2670
|
e(t);
|
|
2671
2671
|
}, [t]), !r.description || r.description === "<p><br></p>" ? null : /* @__PURE__ */ d(K, {
|
|
2672
2672
|
children: [/* @__PURE__ */ i(Fe, {
|
|
@@ -2793,7 +2793,7 @@ function Ss({
|
|
|
2793
2793
|
async function r(o) {
|
|
2794
2794
|
await e.changeSchema(t.find((a) => a.id === o));
|
|
2795
2795
|
}
|
|
2796
|
-
return /* @__PURE__ */ i(
|
|
2796
|
+
return /* @__PURE__ */ i(j, {
|
|
2797
2797
|
label: "Operation",
|
|
2798
2798
|
data: n,
|
|
2799
2799
|
onChange: r,
|
|
@@ -2888,7 +2888,7 @@ const Vs = V(({
|
|
|
2888
2888
|
async function r(o) {
|
|
2889
2889
|
await e.changeSchema(t.find((a) => a.id === o));
|
|
2890
2890
|
}
|
|
2891
|
-
return /* @__PURE__ */ i(
|
|
2891
|
+
return /* @__PURE__ */ i(j, {
|
|
2892
2892
|
label: "Trigger",
|
|
2893
2893
|
data: n,
|
|
2894
2894
|
value: e.triggerSchema.id,
|
|
@@ -3168,7 +3168,7 @@ const As = (e) => {
|
|
|
3168
3168
|
getColor: Jt(["#fff7f1", "darkorange", "#b60000"]),
|
|
3169
3169
|
name: "orange",
|
|
3170
3170
|
category: "sequential"
|
|
3171
|
-
}, Gs = "5.
|
|
3171
|
+
}, Gs = "5.2.0";
|
|
3172
3172
|
class Bs {
|
|
3173
3173
|
constructor(t) {
|
|
3174
3174
|
z(this, "staticColors", /* @__PURE__ */ new Map());
|
|
@@ -3334,11 +3334,11 @@ function Ws({
|
|
|
3334
3334
|
handleSubmit: a,
|
|
3335
3335
|
watch: l,
|
|
3336
3336
|
getValues: s
|
|
3337
|
-
} =
|
|
3337
|
+
} = Ne({
|
|
3338
3338
|
defaultValues: r
|
|
3339
3339
|
});
|
|
3340
3340
|
l("content");
|
|
3341
|
-
const u = s(), g = G(() => !
|
|
3341
|
+
const u = s(), g = G(() => !Te(u, t), [u, t]), c = ri(t == null ? void 0 : t.content);
|
|
3342
3342
|
return /* @__PURE__ */ i(R, {
|
|
3343
3343
|
mt: "md",
|
|
3344
3344
|
spacing: "xs",
|
|
@@ -3514,7 +3514,7 @@ function Ks({
|
|
|
3514
3514
|
ref: n,
|
|
3515
3515
|
children: [/* @__PURE__ */ d(y, {
|
|
3516
3516
|
grow: !0,
|
|
3517
|
-
children: [/* @__PURE__ */ i(
|
|
3517
|
+
children: [/* @__PURE__ */ i(j, {
|
|
3518
3518
|
label: "Format",
|
|
3519
3519
|
data: [{
|
|
3520
3520
|
label: "1234",
|
|
@@ -3528,7 +3528,7 @@ function Ks({
|
|
|
3528
3528
|
sx: {
|
|
3529
3529
|
flexGrow: 1
|
|
3530
3530
|
}
|
|
3531
|
-
}), /* @__PURE__ */ i(
|
|
3531
|
+
}), /* @__PURE__ */ i(ze, {
|
|
3532
3532
|
label: /* @__PURE__ */ d(R, {
|
|
3533
3533
|
spacing: 0,
|
|
3534
3534
|
children: [/* @__PURE__ */ i(C, {
|
|
@@ -3567,7 +3567,7 @@ function Ks({
|
|
|
3567
3567
|
max: 4,
|
|
3568
3568
|
value: e.mantissa,
|
|
3569
3569
|
onChange: o
|
|
3570
|
-
}), /* @__PURE__ */ i(
|
|
3570
|
+
}), /* @__PURE__ */ i(ze, {
|
|
3571
3571
|
label: "Trim mantissa",
|
|
3572
3572
|
checked: e.trimMantissa,
|
|
3573
3573
|
onChange: a,
|
|
@@ -3613,7 +3613,7 @@ function Ks({
|
|
|
3613
3613
|
})]
|
|
3614
3614
|
});
|
|
3615
3615
|
}
|
|
3616
|
-
const Xn =
|
|
3616
|
+
const Xn = w.forwardRef(Ks);
|
|
3617
3617
|
function Kt() {
|
|
3618
3618
|
return {
|
|
3619
3619
|
name: Se(),
|
|
@@ -3683,7 +3683,7 @@ function eu({
|
|
|
3683
3683
|
grow: !0,
|
|
3684
3684
|
noWrap: !0,
|
|
3685
3685
|
pt: "sm",
|
|
3686
|
-
children: [/* @__PURE__ */ i(
|
|
3686
|
+
children: [/* @__PURE__ */ i(j, {
|
|
3687
3687
|
ref: r,
|
|
3688
3688
|
label: e,
|
|
3689
3689
|
data: Zs,
|
|
@@ -3700,7 +3700,7 @@ function eu({
|
|
|
3700
3700
|
})]
|
|
3701
3701
|
});
|
|
3702
3702
|
}
|
|
3703
|
-
const tu =
|
|
3703
|
+
const tu = w.forwardRef(eu);
|
|
3704
3704
|
function nu({
|
|
3705
3705
|
label: e,
|
|
3706
3706
|
required: t,
|
|
@@ -3711,7 +3711,7 @@ function nu({
|
|
|
3711
3711
|
sx: l,
|
|
3712
3712
|
...s
|
|
3713
3713
|
}, u) {
|
|
3714
|
-
const g =
|
|
3714
|
+
const g = w.useMemo(() => {
|
|
3715
3715
|
if (!Array.isArray(o) || o.length === 0)
|
|
3716
3716
|
return [];
|
|
3717
3717
|
const f = Object.keys(o[0]).map((p) => ({
|
|
@@ -3723,7 +3723,7 @@ function nu({
|
|
|
3723
3723
|
value: ""
|
|
3724
3724
|
}]) : f;
|
|
3725
3725
|
}, [o]);
|
|
3726
|
-
return /* @__PURE__ */ i(
|
|
3726
|
+
return /* @__PURE__ */ i(j, {
|
|
3727
3727
|
ref: u,
|
|
3728
3728
|
label: e,
|
|
3729
3729
|
data: g,
|
|
@@ -3734,19 +3734,19 @@ function nu({
|
|
|
3734
3734
|
...s
|
|
3735
3735
|
});
|
|
3736
3736
|
}
|
|
3737
|
-
const J =
|
|
3737
|
+
const J = w.forwardRef(nu);
|
|
3738
3738
|
function ru({
|
|
3739
3739
|
label: e,
|
|
3740
3740
|
value: t,
|
|
3741
3741
|
onChange: n
|
|
3742
3742
|
}, r) {
|
|
3743
|
-
const [o, a] =
|
|
3743
|
+
const [o, a] = w.useState(Array.isArray(t) ? [...t] : []), l = w.useCallback(() => {
|
|
3744
3744
|
a((p) => [...p, ""]);
|
|
3745
|
-
}, [a]), s =
|
|
3745
|
+
}, [a]), s = w.useCallback((p) => {
|
|
3746
3746
|
a((m) => (m.splice(p, 1), [...m]));
|
|
3747
|
-
}, [a]), u =
|
|
3747
|
+
}, [a]), u = w.useMemo(() => !U.isEqual(o, t), [o, t]), g = () => {
|
|
3748
3748
|
n(o.map((p) => p.toString()));
|
|
3749
|
-
}, c = ka(), f =
|
|
3749
|
+
}, c = ka(), f = w.useMemo(() => Object.entries(c.colors).map(([p, m]) => m[6]), [c]);
|
|
3750
3750
|
return /* @__PURE__ */ d(K, {
|
|
3751
3751
|
children: [/* @__PURE__ */ d(y, {
|
|
3752
3752
|
position: "left",
|
|
@@ -3791,18 +3791,18 @@ function ru({
|
|
|
3791
3791
|
})]
|
|
3792
3792
|
});
|
|
3793
3793
|
}
|
|
3794
|
-
const ou =
|
|
3794
|
+
const ou = w.forwardRef(ru);
|
|
3795
3795
|
function iu({
|
|
3796
3796
|
value: e,
|
|
3797
3797
|
onChange: t
|
|
3798
3798
|
}, n) {
|
|
3799
3799
|
const {
|
|
3800
3800
|
colorManager: r
|
|
3801
|
-
} =
|
|
3801
|
+
} = Le(qe), o = w.useMemo(() => r.getStaticColors().map((s) => ({
|
|
3802
3802
|
label: s.name,
|
|
3803
3803
|
group: s.category,
|
|
3804
3804
|
value: s.value
|
|
3805
|
-
})), [r]), a =
|
|
3805
|
+
})), [r]), a = w.useMemo(() => o.some((l) => l.value === e), [e, o]);
|
|
3806
3806
|
return /* @__PURE__ */ d(y, {
|
|
3807
3807
|
position: "apart",
|
|
3808
3808
|
spacing: 4,
|
|
@@ -3825,7 +3825,7 @@ function iu({
|
|
|
3825
3825
|
flexGrow: 0
|
|
3826
3826
|
},
|
|
3827
3827
|
children: "or"
|
|
3828
|
-
}), /* @__PURE__ */ i(
|
|
3828
|
+
}), /* @__PURE__ */ i(j, {
|
|
3829
3829
|
data: o,
|
|
3830
3830
|
value: e,
|
|
3831
3831
|
onChange: t,
|
|
@@ -3842,7 +3842,7 @@ function iu({
|
|
|
3842
3842
|
})]
|
|
3843
3843
|
});
|
|
3844
3844
|
}
|
|
3845
|
-
const Qe =
|
|
3845
|
+
const Qe = w.forwardRef(iu), kt = [{
|
|
3846
3846
|
label: "initial",
|
|
3847
3847
|
value: 0
|
|
3848
3848
|
}, {
|
|
@@ -3864,8 +3864,8 @@ function au({
|
|
|
3864
3864
|
onChange: n
|
|
3865
3865
|
}, r) {
|
|
3866
3866
|
var l, s;
|
|
3867
|
-
const [o, a] =
|
|
3868
|
-
return
|
|
3867
|
+
const [o, a] = w.useState((s = (l = kt.find((u) => u.label === t)) == null ? void 0 : l.value) != null ? s : kt[0].value);
|
|
3868
|
+
return w.useEffect(() => {
|
|
3869
3869
|
const u = kt.find((g) => g.value === o);
|
|
3870
3870
|
u && n(u.label);
|
|
3871
3871
|
}, [o]), /* @__PURE__ */ d(R, {
|
|
@@ -3886,17 +3886,17 @@ function au({
|
|
|
3886
3886
|
})]
|
|
3887
3887
|
});
|
|
3888
3888
|
}
|
|
3889
|
-
const lu =
|
|
3889
|
+
const lu = w.forwardRef(au);
|
|
3890
3890
|
function su({
|
|
3891
3891
|
label: e,
|
|
3892
3892
|
value: t,
|
|
3893
3893
|
onChange: n
|
|
3894
3894
|
}, r) {
|
|
3895
|
-
const [o, a] =
|
|
3895
|
+
const [o, a] = w.useState(Array.isArray(t) ? [...t] : []), l = w.useCallback(() => {
|
|
3896
3896
|
a((c) => [...c, ""]);
|
|
3897
|
-
}, [a]), s =
|
|
3897
|
+
}, [a]), s = w.useCallback((c) => {
|
|
3898
3898
|
a((f) => (f.splice(c, 1), [...f]));
|
|
3899
|
-
}, [a]), u =
|
|
3899
|
+
}, [a]), u = w.useMemo(() => !U.isEqual(o, t), [o, t]);
|
|
3900
3900
|
return /* @__PURE__ */ d(K, {
|
|
3901
3901
|
children: [/* @__PURE__ */ d(y, {
|
|
3902
3902
|
position: "left",
|
|
@@ -3943,7 +3943,7 @@ function su({
|
|
|
3943
3943
|
})]
|
|
3944
3944
|
});
|
|
3945
3945
|
}
|
|
3946
|
-
const uu =
|
|
3946
|
+
const uu = w.forwardRef(su), cu = w.forwardRef(function({
|
|
3947
3947
|
value: t,
|
|
3948
3948
|
onChange: n
|
|
3949
3949
|
}, r) {
|
|
@@ -3985,7 +3985,7 @@ const uu = S.forwardRef(su), cu = S.forwardRef(function({
|
|
|
3985
3985
|
label: "Style",
|
|
3986
3986
|
labelPosition: "center"
|
|
3987
3987
|
}), /* @__PURE__ */ d(R, {
|
|
3988
|
-
children: [/* @__PURE__ */ i(
|
|
3988
|
+
children: [/* @__PURE__ */ i(j, {
|
|
3989
3989
|
label: "Color Type",
|
|
3990
3990
|
data: [{
|
|
3991
3991
|
label: "Static Color",
|
|
@@ -4012,7 +4012,7 @@ const uu = S.forwardRef(su), cu = S.forwardRef(function({
|
|
|
4012
4012
|
})]
|
|
4013
4013
|
})]
|
|
4014
4014
|
});
|
|
4015
|
-
}), Zt =
|
|
4015
|
+
}), Zt = w.forwardRef(function({
|
|
4016
4016
|
value: t,
|
|
4017
4017
|
onChange: n,
|
|
4018
4018
|
data: r,
|
|
@@ -4022,7 +4022,7 @@ const uu = S.forwardRef(su), cu = S.forwardRef(function({
|
|
|
4022
4022
|
const g = U.cloneDeep(t);
|
|
4023
4023
|
U.set(g, s, u), n(g);
|
|
4024
4024
|
};
|
|
4025
|
-
return /* @__PURE__ */ d(
|
|
4025
|
+
return /* @__PURE__ */ d(B, {
|
|
4026
4026
|
px: "sm",
|
|
4027
4027
|
py: "md",
|
|
4028
4028
|
ref: a,
|
|
@@ -4132,7 +4132,7 @@ const Zn = (e, t) => (n) => Boolean(It(n) && pu.test(n) && n.startsWith(e) || t
|
|
|
4132
4132
|
test: Zn("hsl", "hue"),
|
|
4133
4133
|
parse: si("hue", "saturation", "lightness"),
|
|
4134
4134
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Ct.transform(xt(t)) + ", " + Ct.transform(xt(n)) + ", " + xt(li.transform(r)) + ")"
|
|
4135
|
-
}, hu = ai(0, 255), hn = Object.assign(Object.assign({}, en), { transform: (e) => Math.round(hu(e)) }),
|
|
4135
|
+
}, hu = ai(0, 255), hn = Object.assign(Object.assign({}, en), { transform: (e) => Math.round(hu(e)) }), je = {
|
|
4136
4136
|
test: Zn("rgb", "red"),
|
|
4137
4137
|
parse: si("red", "green", "blue"),
|
|
4138
4138
|
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + hn.transform(e) + ", " + hn.transform(t) + ", " + hn.transform(n) + ", " + xt(li.transform(r)) + ")"
|
|
@@ -4149,11 +4149,11 @@ function mu(e) {
|
|
|
4149
4149
|
const In = {
|
|
4150
4150
|
test: Zn("#"),
|
|
4151
4151
|
parse: mu,
|
|
4152
|
-
transform:
|
|
4152
|
+
transform: je.transform
|
|
4153
4153
|
}, tn = {
|
|
4154
|
-
test: (e) =>
|
|
4155
|
-
parse: (e) =>
|
|
4156
|
-
transform: (e) => It(e) ? e : e.hasOwnProperty("red") ?
|
|
4154
|
+
test: (e) => je.test(e) || In.test(e) || tt.test(e),
|
|
4155
|
+
parse: (e) => je.test(e) ? je.parse(e) : tt.test(e) ? tt.parse(e) : In.parse(e),
|
|
4156
|
+
transform: (e) => It(e) ? e : e.hasOwnProperty("red") ? je.transform(e) : tt.transform(e)
|
|
4157
4157
|
}, ui = "${c}", ci = "${n}";
|
|
4158
4158
|
function vu(e) {
|
|
4159
4159
|
var t, n, r, o;
|
|
@@ -4208,11 +4208,11 @@ function Wr({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
4208
4208
|
const xu = (e, t, n) => {
|
|
4209
4209
|
const r = e * e, o = t * t;
|
|
4210
4210
|
return Math.sqrt(Math.max(0, n * (o - r) + r));
|
|
4211
|
-
}, Cu = [In,
|
|
4211
|
+
}, Cu = [In, je, tt], Yr = (e) => Cu.find((t) => t.test(e)), Qr = (e) => `'${e}' is not an animatable color. Use the equivalent color code instead.`, hi = (e, t) => {
|
|
4212
4212
|
let n = Yr(e), r = Yr(t);
|
|
4213
4213
|
St(!!n, Qr(e)), St(!!r, Qr(t));
|
|
4214
4214
|
let o = n.parse(e), a = r.parse(t);
|
|
4215
|
-
n === tt && (o = Wr(o), n =
|
|
4215
|
+
n === tt && (o = Wr(o), n = je), r === tt && (a = Wr(a), r = je);
|
|
4216
4216
|
const l = Object.assign({}, o);
|
|
4217
4217
|
return (s) => {
|
|
4218
4218
|
for (const u in l)
|
|
@@ -4484,7 +4484,7 @@ function qu({
|
|
|
4484
4484
|
const t = e.data || [], {
|
|
4485
4485
|
value: n,
|
|
4486
4486
|
set: r
|
|
4487
|
-
} = Q(e.instanceData, "config"), o =
|
|
4487
|
+
} = Q(e.instanceData, "config"), o = w.useMemo(() => {
|
|
4488
4488
|
const {
|
|
4489
4489
|
align: p,
|
|
4490
4490
|
template: m = "",
|
|
@@ -4501,13 +4501,13 @@ function qu({
|
|
|
4501
4501
|
watch: s,
|
|
4502
4502
|
getValues: u,
|
|
4503
4503
|
reset: g
|
|
4504
|
-
} =
|
|
4504
|
+
} = Ne({
|
|
4505
4505
|
defaultValues: o
|
|
4506
4506
|
});
|
|
4507
|
-
|
|
4507
|
+
w.useEffect(() => {
|
|
4508
4508
|
g(o);
|
|
4509
4509
|
}, [o]), s(["variables", "template"]);
|
|
4510
|
-
const c = u(), f =
|
|
4510
|
+
const c = u(), f = w.useMemo(() => !U.isEqual(c, n), [c, n]);
|
|
4511
4511
|
return /* @__PURE__ */ i(R, {
|
|
4512
4512
|
mt: "md",
|
|
4513
4513
|
spacing: "xs",
|
|
@@ -4573,7 +4573,7 @@ const Gu = {
|
|
|
4573
4573
|
viewRender: Tu,
|
|
4574
4574
|
configRender: qu
|
|
4575
4575
|
};
|
|
4576
|
-
var
|
|
4576
|
+
var He = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e))(He || {});
|
|
4577
4577
|
const Nt = {
|
|
4578
4578
|
columns: [],
|
|
4579
4579
|
fontSize: "1rem",
|
|
@@ -4594,14 +4594,14 @@ const Nt = {
|
|
|
4594
4594
|
*
|
|
4595
4595
|
* @license MIT
|
|
4596
4596
|
*/
|
|
4597
|
-
function
|
|
4597
|
+
function Ue(e, t) {
|
|
4598
4598
|
return typeof e == "function" ? e(t) : e;
|
|
4599
4599
|
}
|
|
4600
4600
|
function _e(e, t) {
|
|
4601
4601
|
return (n) => {
|
|
4602
4602
|
t.setState((r) => ({
|
|
4603
4603
|
...r,
|
|
4604
|
-
[e]:
|
|
4604
|
+
[e]: Ue(n, r[e])
|
|
4605
4605
|
}));
|
|
4606
4606
|
};
|
|
4607
4607
|
}
|
|
@@ -4876,22 +4876,22 @@ function At(e, t, n, r) {
|
|
|
4876
4876
|
id: [r, "" + m].filter(Boolean).join("_"),
|
|
4877
4877
|
headers: []
|
|
4878
4878
|
}, v = [];
|
|
4879
|
-
p.forEach((
|
|
4880
|
-
const F = [...v].reverse()[0], $ =
|
|
4879
|
+
p.forEach((S) => {
|
|
4880
|
+
const F = [...v].reverse()[0], $ = S.column.depth === b.depth;
|
|
4881
4881
|
let A, L = !1;
|
|
4882
|
-
if ($ &&
|
|
4883
|
-
F.subHeaders.push(
|
|
4882
|
+
if ($ && S.column.parent ? A = S.column.parent : (A = S.column, L = !0), F && (F == null ? void 0 : F.column) === A)
|
|
4883
|
+
F.subHeaders.push(S);
|
|
4884
4884
|
else {
|
|
4885
4885
|
const Y = Jr(n, A, {
|
|
4886
|
-
id: [r, m, A.id,
|
|
4886
|
+
id: [r, m, A.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
|
|
4887
4887
|
isPlaceholder: L,
|
|
4888
4888
|
placeholderId: L ? "" + v.filter((le) => le.column === A).length : void 0,
|
|
4889
4889
|
depth: m,
|
|
4890
4890
|
index: v.length
|
|
4891
4891
|
});
|
|
4892
|
-
Y.subHeaders.push(
|
|
4892
|
+
Y.subHeaders.push(S), v.push(Y);
|
|
4893
4893
|
}
|
|
4894
|
-
b.headers.push(
|
|
4894
|
+
b.headers.push(S), S.headerGroup = b;
|
|
4895
4895
|
}), u.push(b), m > 0 && g(v, m - 1);
|
|
4896
4896
|
}, c = t.map((p, m) => Jr(n, p, {
|
|
4897
4897
|
depth: l,
|
|
@@ -4899,7 +4899,7 @@ function At(e, t, n, r) {
|
|
|
4899
4899
|
}));
|
|
4900
4900
|
g(c, l - 1), u.reverse();
|
|
4901
4901
|
const f = (p) => p.filter((b) => b.column.getIsVisible()).map((b) => {
|
|
4902
|
-
let v = 0,
|
|
4902
|
+
let v = 0, S = 0, F = [0];
|
|
4903
4903
|
b.subHeaders && b.subHeaders.length ? (F = [], f(b.subHeaders).forEach((A) => {
|
|
4904
4904
|
let {
|
|
4905
4905
|
colSpan: L,
|
|
@@ -4908,9 +4908,9 @@ function At(e, t, n, r) {
|
|
|
4908
4908
|
v += L, F.push(Y);
|
|
4909
4909
|
})) : v = 1;
|
|
4910
4910
|
const $ = Math.min(...F);
|
|
4911
|
-
return
|
|
4911
|
+
return S = S + $, b.colSpan = v, b.rowSpan = S, {
|
|
4912
4912
|
colSpan: v,
|
|
4913
|
-
rowSpan:
|
|
4913
|
+
rowSpan: S
|
|
4914
4914
|
};
|
|
4915
4915
|
});
|
|
4916
4916
|
return f((o = (a = u[0]) == null ? void 0 : a.headers) != null ? o : []), u;
|
|
@@ -4996,19 +4996,19 @@ const Ot = {
|
|
|
4996
4996
|
if (typeof b != "number")
|
|
4997
4997
|
return;
|
|
4998
4998
|
let v = {};
|
|
4999
|
-
t.setColumnSizingInfo((
|
|
4999
|
+
t.setColumnSizingInfo((S) => {
|
|
5000
5000
|
var F, $;
|
|
5001
|
-
const A = b - ((F =
|
|
5002
|
-
return
|
|
5001
|
+
const A = b - ((F = S == null ? void 0 : S.startOffset) != null ? F : 0), L = Math.max(A / (($ = S == null ? void 0 : S.startSize) != null ? $ : 0), -0.999999);
|
|
5002
|
+
return S.columnSizingStart.forEach((Y) => {
|
|
5003
5003
|
let [le, ie] = Y;
|
|
5004
5004
|
v[le] = Math.round(Math.max(ie + ie * L, 0) * 100) / 100;
|
|
5005
5005
|
}), {
|
|
5006
|
-
...
|
|
5006
|
+
...S,
|
|
5007
5007
|
deltaOffset: A,
|
|
5008
5008
|
deltaPercentage: L
|
|
5009
5009
|
};
|
|
5010
|
-
}), (t.options.columnResizeMode === "onChange" || m === "end") && t.setColumnSizing((
|
|
5011
|
-
...
|
|
5010
|
+
}), (t.options.columnResizeMode === "onChange" || m === "end") && t.setColumnSizing((S) => ({
|
|
5011
|
+
...S,
|
|
5012
5012
|
...v
|
|
5013
5013
|
}));
|
|
5014
5014
|
}, g = (m) => u("move", m), c = (m) => {
|
|
@@ -5300,7 +5300,7 @@ const Qu = {
|
|
|
5300
5300
|
},
|
|
5301
5301
|
setFilterValue: (n) => {
|
|
5302
5302
|
t.setColumnFilters((r) => {
|
|
5303
|
-
const o = e.getFilterFn(), a = r == null ? void 0 : r.find((c) => c.id === e.id), l =
|
|
5303
|
+
const o = e.getFilterFn(), a = r == null ? void 0 : r.find((c) => c.id === e.id), l = Ue(n, a ? a.value : void 0);
|
|
5304
5304
|
if (Kr(o, l, e)) {
|
|
5305
5305
|
var s;
|
|
5306
5306
|
return (s = r == null ? void 0 : r.filter((c) => c.id !== e.id)) != null ? s : [];
|
|
@@ -5342,7 +5342,7 @@ const Qu = {
|
|
|
5342
5342
|
setColumnFilters: (t) => {
|
|
5343
5343
|
const n = e.getAllLeafColumns(), r = (o) => {
|
|
5344
5344
|
var a;
|
|
5345
|
-
return (a =
|
|
5345
|
+
return (a = Ue(t, o)) == null ? void 0 : a.filter((l) => {
|
|
5346
5346
|
const s = n.find((u) => u.id === l.id);
|
|
5347
5347
|
if (s) {
|
|
5348
5348
|
const u = s.getFilterFn();
|
|
@@ -5571,7 +5571,7 @@ const lc = {
|
|
|
5571
5571
|
}
|
|
5572
5572
|
},
|
|
5573
5573
|
setPagination: (r) => {
|
|
5574
|
-
const o = (a) =>
|
|
5574
|
+
const o = (a) => Ue(r, a);
|
|
5575
5575
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
|
|
5576
5576
|
},
|
|
5577
5577
|
resetPagination: (r) => {
|
|
@@ -5580,7 +5580,7 @@ const lc = {
|
|
|
5580
5580
|
},
|
|
5581
5581
|
setPageIndex: (r) => {
|
|
5582
5582
|
e.setPagination((o) => {
|
|
5583
|
-
let a =
|
|
5583
|
+
let a = Ue(r, o.pageIndex);
|
|
5584
5584
|
const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
5585
5585
|
return a = Math.min(Math.max(0, a), l), {
|
|
5586
5586
|
...o,
|
|
@@ -5598,7 +5598,7 @@ const lc = {
|
|
|
5598
5598
|
},
|
|
5599
5599
|
setPageSize: (r) => {
|
|
5600
5600
|
e.setPagination((o) => {
|
|
5601
|
-
const a = Math.max(1,
|
|
5601
|
+
const a = Math.max(1, Ue(r, o.pageSize)), l = o.pageSize * o.pageIndex, s = Math.floor(l / a);
|
|
5602
5602
|
return {
|
|
5603
5603
|
...o,
|
|
5604
5604
|
pageIndex: s,
|
|
@@ -5608,7 +5608,7 @@ const lc = {
|
|
|
5608
5608
|
},
|
|
5609
5609
|
setPageCount: (r) => e.setPagination((o) => {
|
|
5610
5610
|
var a;
|
|
5611
|
-
let l =
|
|
5611
|
+
let l = Ue(r, (a = e.options.pageCount) != null ? a : -1);
|
|
5612
5612
|
return typeof l == "number" && (l = Math.max(-1, l)), {
|
|
5613
5613
|
...o,
|
|
5614
5614
|
pageCount: l
|
|
@@ -6211,7 +6211,7 @@ function yc(e) {
|
|
|
6211
6211
|
n.setState(n.initialState);
|
|
6212
6212
|
},
|
|
6213
6213
|
setOptions: (c) => {
|
|
6214
|
-
const f =
|
|
6214
|
+
const f = Ue(c, n.options);
|
|
6215
6215
|
n.options = o(f);
|
|
6216
6216
|
},
|
|
6217
6217
|
getState: () => n.options.state,
|
|
@@ -6255,8 +6255,8 @@ function yc(e) {
|
|
|
6255
6255
|
getAllColumns: O(() => [n._getColumnDefs()], (c) => {
|
|
6256
6256
|
const f = function(p, m, b) {
|
|
6257
6257
|
return b === void 0 && (b = 0), p.map((v) => {
|
|
6258
|
-
const
|
|
6259
|
-
return
|
|
6258
|
+
const S = ju(n, v, b, m), F = v;
|
|
6259
|
+
return S.columns = F.columns ? f(F.columns, S, b + 1) : [], S;
|
|
6260
6260
|
});
|
|
6261
6261
|
};
|
|
6262
6262
|
return f(c);
|
|
@@ -6428,7 +6428,7 @@ function _c() {
|
|
|
6428
6428
|
return g.sort((c, f) => {
|
|
6429
6429
|
for (let m = 0; m < a.length; m += 1) {
|
|
6430
6430
|
var p;
|
|
6431
|
-
const b = a[m], v = l[b.id],
|
|
6431
|
+
const b = a[m], v = l[b.id], S = (p = b == null ? void 0 : b.desc) != null ? p : !1;
|
|
6432
6432
|
if (v.sortUndefined) {
|
|
6433
6433
|
const $ = c.getValue(b.id), A = f.getValue(b.id), L = typeof $ > "u", Y = typeof A > "u";
|
|
6434
6434
|
if (L || Y)
|
|
@@ -6436,7 +6436,7 @@ function _c() {
|
|
|
6436
6436
|
}
|
|
6437
6437
|
let F = v.sortingFn(c, f, b.id);
|
|
6438
6438
|
if (F !== 0)
|
|
6439
|
-
return
|
|
6439
|
+
return S && (F *= -1), v.invertSorting && (F *= -1), F;
|
|
6440
6440
|
}
|
|
6441
6441
|
return c.index - f.index;
|
|
6442
6442
|
}), g.forEach((c) => {
|
|
@@ -6639,7 +6639,7 @@ function qc(e) {
|
|
|
6639
6639
|
column: +u
|
|
6640
6640
|
});
|
|
6641
6641
|
};
|
|
6642
|
-
return /* @__PURE__ */ i(
|
|
6642
|
+
return /* @__PURE__ */ i(j, {
|
|
6643
6643
|
clearable: !1,
|
|
6644
6644
|
data: r,
|
|
6645
6645
|
label: "Choose a column",
|
|
@@ -6757,19 +6757,19 @@ function Jc(e) {
|
|
|
6757
6757
|
}
|
|
6758
6758
|
function Kc(e) {
|
|
6759
6759
|
switch (e.type) {
|
|
6760
|
-
case
|
|
6760
|
+
case He.string:
|
|
6761
6761
|
return /* @__PURE__ */ i(Yc, {
|
|
6762
6762
|
...e
|
|
6763
6763
|
});
|
|
6764
|
-
case
|
|
6764
|
+
case He.eloc:
|
|
6765
6765
|
return /* @__PURE__ */ i(Qc, {
|
|
6766
6766
|
...e
|
|
6767
6767
|
});
|
|
6768
|
-
case
|
|
6768
|
+
case He.number:
|
|
6769
6769
|
return /* @__PURE__ */ i(Xc, {
|
|
6770
6770
|
...e
|
|
6771
6771
|
});
|
|
6772
|
-
case
|
|
6772
|
+
case He.percentage:
|
|
6773
6773
|
return /* @__PURE__ */ i(Jc, {
|
|
6774
6774
|
...e
|
|
6775
6775
|
});
|
|
@@ -6778,7 +6778,7 @@ function Kc(e) {
|
|
|
6778
6778
|
const Zc = (e) => {
|
|
6779
6779
|
const t = Fc(e), n = $c(t.triggerManager, rr.id), {
|
|
6780
6780
|
colorManager: r
|
|
6781
|
-
} =
|
|
6781
|
+
} = Le(qe);
|
|
6782
6782
|
return Tt((o) => new td(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
|
|
6783
6783
|
};
|
|
6784
6784
|
function ed({
|
|
@@ -6798,19 +6798,19 @@ function ed({
|
|
|
6798
6798
|
} = a, {
|
|
6799
6799
|
classes: g,
|
|
6800
6800
|
cx: c
|
|
6801
|
-
} = jc(), f =
|
|
6801
|
+
} = jc(), f = w.useMemo(() => l ? Object.keys(n[0]).map((se) => ({
|
|
6802
6802
|
label: se,
|
|
6803
6803
|
value_field: se,
|
|
6804
|
-
value_type:
|
|
6804
|
+
value_type: He.string
|
|
6805
6805
|
})) : s, [l, s, n]), p = Zc({
|
|
6806
6806
|
getColIndex: Tt((se) => f.indexOf(se.column.columnDef.meta), [f]),
|
|
6807
6807
|
vizManager: e.vizManager,
|
|
6808
6808
|
instance: t
|
|
6809
6809
|
}), m = G(() => {
|
|
6810
6810
|
const se = wc(), De = f.map((me) => se.accessor(me.value_field, {
|
|
6811
|
-
cell: (
|
|
6812
|
-
tableCellContext: p(
|
|
6813
|
-
value:
|
|
6811
|
+
cell: (Ge) => /* @__PURE__ */ i(Kc, {
|
|
6812
|
+
tableCellContext: p(Ge.cell),
|
|
6813
|
+
value: Ge.getValue(),
|
|
6814
6814
|
type: me.value_type
|
|
6815
6815
|
}),
|
|
6816
6816
|
header: me.label,
|
|
@@ -6823,7 +6823,7 @@ function ed({
|
|
|
6823
6823
|
header: "#",
|
|
6824
6824
|
size: 10 * (n.length.toString().length + 1)
|
|
6825
6825
|
}), ...De];
|
|
6826
|
-
}, [f, p]), [b, v] = be([]),
|
|
6826
|
+
}, [f, p]), [b, v] = be([]), S = Vc({
|
|
6827
6827
|
data: n,
|
|
6828
6828
|
state: {
|
|
6829
6829
|
sorting: b
|
|
@@ -6834,7 +6834,7 @@ function ed({
|
|
|
6834
6834
|
getSortedRowModel: _c()
|
|
6835
6835
|
}), {
|
|
6836
6836
|
rows: F
|
|
6837
|
-
} =
|
|
6837
|
+
} = S.getRowModel(), $ = w.useRef(null), A = fl({
|
|
6838
6838
|
parentRef: $,
|
|
6839
6839
|
size: F.length,
|
|
6840
6840
|
estimateSize: Tt(() => 28, []),
|
|
@@ -6860,7 +6860,7 @@ function ed({
|
|
|
6860
6860
|
striped: a.striped,
|
|
6861
6861
|
children: [/* @__PURE__ */ i("thead", {
|
|
6862
6862
|
className: g.thead,
|
|
6863
|
-
children:
|
|
6863
|
+
children: S.getHeaderGroups().map((se) => /* @__PURE__ */ i("tr", {
|
|
6864
6864
|
children: se.headers.map((De) => /* @__PURE__ */ i("th", {
|
|
6865
6865
|
style: {
|
|
6866
6866
|
width: De.getSize()
|
|
@@ -7015,7 +7015,7 @@ function od(e) {
|
|
|
7015
7015
|
setFalse: c
|
|
7016
7016
|
}] = _t(!1), f = r % 2 === 1, p = f && o != null, m = !f && o != null, b = `map ${o} to color ${r}`, v = () => {
|
|
7017
7017
|
s(o), c();
|
|
7018
|
-
},
|
|
7018
|
+
}, S = () => {
|
|
7019
7019
|
c(), t == null || t(l);
|
|
7020
7020
|
}, F = we(o).format({
|
|
7021
7021
|
average: !0
|
|
@@ -7064,7 +7064,7 @@ function od(e) {
|
|
|
7064
7064
|
}), /* @__PURE__ */ i(T, {
|
|
7065
7065
|
"data-testid": "palette-item-ok",
|
|
7066
7066
|
size: "xs",
|
|
7067
|
-
onClick:
|
|
7067
|
+
onClick: S,
|
|
7068
7068
|
children: "OK"
|
|
7069
7069
|
})]
|
|
7070
7070
|
})]
|
|
@@ -7112,24 +7112,24 @@ const id = V(({
|
|
|
7112
7112
|
} = e, o = r.getColorInterpolations(), [a, l] = be(t), s = r.decodeInterpolation(a.interpolation) || o[0], [u, {
|
|
7113
7113
|
setTrue: g,
|
|
7114
7114
|
setFalse: c
|
|
7115
|
-
}] = _t(), f = o.map((
|
|
7116
|
-
label:
|
|
7117
|
-
value: r.encodeColor(
|
|
7118
|
-
group:
|
|
7115
|
+
}] = _t(), f = o.map((S) => ({
|
|
7116
|
+
label: S.displayName,
|
|
7117
|
+
value: r.encodeColor(S),
|
|
7118
|
+
group: S.category
|
|
7119
7119
|
}));
|
|
7120
|
-
function p(
|
|
7121
|
-
|
|
7120
|
+
function p(S) {
|
|
7121
|
+
S && l((F) => ({
|
|
7122
7122
|
...F,
|
|
7123
|
-
interpolation:
|
|
7123
|
+
interpolation: S
|
|
7124
7124
|
}));
|
|
7125
7125
|
}
|
|
7126
7126
|
const m = () => {
|
|
7127
7127
|
c(), n == null || n(Wt(a));
|
|
7128
7128
|
};
|
|
7129
|
-
function b(
|
|
7129
|
+
function b(S) {
|
|
7130
7130
|
l((F) => ({
|
|
7131
7131
|
...F,
|
|
7132
|
-
steps:
|
|
7132
|
+
steps: S
|
|
7133
7133
|
}));
|
|
7134
7134
|
}
|
|
7135
7135
|
const v = () => {
|
|
@@ -7147,7 +7147,7 @@ const id = V(({
|
|
|
7147
7147
|
onClose: c,
|
|
7148
7148
|
children: u && /* @__PURE__ */ d(R, {
|
|
7149
7149
|
"data-testid": "color-interpolation-modal",
|
|
7150
|
-
children: [/* @__PURE__ */ i(
|
|
7150
|
+
children: [/* @__PURE__ */ i(j, {
|
|
7151
7151
|
label: "Color style",
|
|
7152
7152
|
value: a.interpolation,
|
|
7153
7153
|
data: f,
|
|
@@ -7193,15 +7193,15 @@ function dd(e, t) {
|
|
|
7193
7193
|
const gd = (e) => {
|
|
7194
7194
|
const {
|
|
7195
7195
|
colorManager: t
|
|
7196
|
-
} =
|
|
7196
|
+
} = Le(qe), [n, r] = be(Oi(e.value)), [o, a] = be(cd(t, e.value)), l = Nr(o), [s, u] = be(dd(t, e.value)), g = Nr(s);
|
|
7197
7197
|
return /* @__PURE__ */ d(y, {
|
|
7198
7198
|
align: "end",
|
|
7199
|
-
children: [/* @__PURE__ */ i(
|
|
7199
|
+
children: [/* @__PURE__ */ i(j, {
|
|
7200
7200
|
label: "Cell background",
|
|
7201
7201
|
value: n || "none",
|
|
7202
7202
|
onChange: (m) => {
|
|
7203
|
-
var b, v,
|
|
7204
|
-
r(m || "none"), m === "static" ? (b = e.onChange) == null || b.call(e, l.current) : m === "none" || !m ? (v = e.onChange) == null || v.call(e, "none") : (
|
|
7203
|
+
var b, v, S;
|
|
7204
|
+
r(m || "none"), m === "static" ? (b = e.onChange) == null || b.call(e, l.current) : m === "none" || !m ? (v = e.onChange) == null || v.call(e, "none") : (S = e.onChange) == null || S.call(e, g.current);
|
|
7205
7205
|
},
|
|
7206
7206
|
data: sd
|
|
7207
7207
|
}), n === "static" && /* @__PURE__ */ i(Qe, {
|
|
@@ -7219,7 +7219,7 @@ const gd = (e) => {
|
|
|
7219
7219
|
}
|
|
7220
7220
|
})]
|
|
7221
7221
|
});
|
|
7222
|
-
}, pd = Object.values(
|
|
7222
|
+
}, pd = Object.values(He).map((e) => ({
|
|
7223
7223
|
label: e,
|
|
7224
7224
|
value: e
|
|
7225
7225
|
}));
|
|
@@ -7229,7 +7229,7 @@ function fd({
|
|
|
7229
7229
|
onChange: n,
|
|
7230
7230
|
sx: r
|
|
7231
7231
|
}) {
|
|
7232
|
-
return /* @__PURE__ */ i(
|
|
7232
|
+
return /* @__PURE__ */ i(j, {
|
|
7233
7233
|
label: e,
|
|
7234
7234
|
data: pd,
|
|
7235
7235
|
value: t,
|
|
@@ -7253,7 +7253,7 @@ function hd({
|
|
|
7253
7253
|
const o = e.data || [], a = () => r.insertListItem("columns", {
|
|
7254
7254
|
label: Se(),
|
|
7255
7255
|
value_field: "value",
|
|
7256
|
-
value_type:
|
|
7256
|
+
value_type: He.string
|
|
7257
7257
|
});
|
|
7258
7258
|
return /* @__PURE__ */ i(R, {
|
|
7259
7259
|
mt: "md",
|
|
@@ -7344,12 +7344,12 @@ function hd({
|
|
|
7344
7344
|
}), /* @__PURE__ */ d(y, {
|
|
7345
7345
|
position: "apart",
|
|
7346
7346
|
grow: !0,
|
|
7347
|
-
children: [/* @__PURE__ */ i(
|
|
7347
|
+
children: [/* @__PURE__ */ i(ze, {
|
|
7348
7348
|
label: "Striped",
|
|
7349
7349
|
...r.getInputProps("striped", {
|
|
7350
7350
|
type: "checkbox"
|
|
7351
7351
|
})
|
|
7352
|
-
}), /* @__PURE__ */ i(
|
|
7352
|
+
}), /* @__PURE__ */ i(ze, {
|
|
7353
7353
|
label: "Highlight on hover",
|
|
7354
7354
|
...r.getInputProps("highlightOnHover", {
|
|
7355
7355
|
type: "checkbox"
|
|
@@ -7366,7 +7366,7 @@ function hd({
|
|
|
7366
7366
|
border: "1px solid #eee",
|
|
7367
7367
|
borderRadius: "5px"
|
|
7368
7368
|
},
|
|
7369
|
-
children: [/* @__PURE__ */ i(
|
|
7369
|
+
children: [/* @__PURE__ */ i(ze, {
|
|
7370
7370
|
label: "Use Original Data Columns",
|
|
7371
7371
|
...r.getInputProps("use_raw_columns", {
|
|
7372
7372
|
type: "checkbox"
|
|
@@ -7864,7 +7864,7 @@ function Vd({
|
|
|
7864
7864
|
control: a,
|
|
7865
7865
|
handleSubmit: l,
|
|
7866
7866
|
reset: s
|
|
7867
|
-
} =
|
|
7867
|
+
} = Ne({
|
|
7868
7868
|
defaultValues: o
|
|
7869
7869
|
});
|
|
7870
7870
|
return ne(() => {
|
|
@@ -8171,7 +8171,7 @@ function kd({
|
|
|
8171
8171
|
control: e,
|
|
8172
8172
|
render: ({
|
|
8173
8173
|
field: o
|
|
8174
|
-
}) => /* @__PURE__ */ i(
|
|
8174
|
+
}) => /* @__PURE__ */ i(j, {
|
|
8175
8175
|
label: "Value",
|
|
8176
8176
|
required: !0,
|
|
8177
8177
|
data: r,
|
|
@@ -8332,13 +8332,13 @@ function zd({
|
|
|
8332
8332
|
watch: s,
|
|
8333
8333
|
getValues: u,
|
|
8334
8334
|
reset: g
|
|
8335
|
-
} =
|
|
8335
|
+
} = Ne({
|
|
8336
8336
|
defaultValues: o
|
|
8337
8337
|
});
|
|
8338
8338
|
ne(() => {
|
|
8339
8339
|
g(o);
|
|
8340
8340
|
}, [o]), s(["x_axis", "y_axis", "reference_lines", "color"]);
|
|
8341
|
-
const c = u(), f = G(() => !
|
|
8341
|
+
const c = u(), f = G(() => !Te(c, t), [c, t]);
|
|
8342
8342
|
return /* @__PURE__ */ i(R, {
|
|
8343
8343
|
mt: "md",
|
|
8344
8344
|
spacing: "xs",
|
|
@@ -8586,26 +8586,41 @@ function Bd(e, t, n) {
|
|
|
8586
8586
|
}
|
|
8587
8587
|
}));
|
|
8588
8588
|
}
|
|
8589
|
-
function jd({ x_axis_data_key: e }, {
|
|
8590
|
-
|
|
8589
|
+
function jd({ x_axis_data_key: e }, {
|
|
8590
|
+
y_axis_data_key: t,
|
|
8591
|
+
yAxisIndex: n,
|
|
8592
|
+
label_position: r,
|
|
8593
|
+
name: o,
|
|
8594
|
+
group_by_key: a,
|
|
8595
|
+
stack: l,
|
|
8596
|
+
color: s,
|
|
8597
|
+
display_name_on_line: u,
|
|
8598
|
+
...g
|
|
8599
|
+
}, c, f, p) {
|
|
8600
|
+
const m = {
|
|
8591
8601
|
label: {
|
|
8592
8602
|
show: !!r,
|
|
8593
8603
|
position: r,
|
|
8594
|
-
formatter:
|
|
8604
|
+
formatter: p[n != null ? n : "default"]
|
|
8595
8605
|
},
|
|
8596
8606
|
name: o,
|
|
8597
8607
|
xAxisId: "main-x-axis",
|
|
8598
8608
|
yAxisIndex: n,
|
|
8599
8609
|
stack: l,
|
|
8600
8610
|
color: s,
|
|
8601
|
-
...
|
|
8611
|
+
...g
|
|
8602
8612
|
};
|
|
8603
|
-
if (
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8613
|
+
if (u && (m.endLabel = {
|
|
8614
|
+
show: !0,
|
|
8615
|
+
formatter: o,
|
|
8616
|
+
offset: [-12, 12],
|
|
8617
|
+
align: "right"
|
|
8618
|
+
}), !a)
|
|
8619
|
+
return m.data = f.map((v) => v[t]), m;
|
|
8620
|
+
const b = Ya(f, a);
|
|
8621
|
+
return Object.entries(b).map(([v, S]) => {
|
|
8622
|
+
const F = mo(m);
|
|
8623
|
+
return F.data = Gd(c, S, e, t), F.name = v, F.color = void 0, F;
|
|
8609
8624
|
});
|
|
8610
8625
|
}
|
|
8611
8626
|
function Hd(e, t, n, r) {
|
|
@@ -8761,7 +8776,7 @@ function Jd({
|
|
|
8761
8776
|
width: n,
|
|
8762
8777
|
height: r
|
|
8763
8778
|
}) {
|
|
8764
|
-
const o =
|
|
8779
|
+
const o = w.useMemo(() => Xd(e, t), [e, t]);
|
|
8765
8780
|
return !n || !r ? null : /* @__PURE__ */ i(Ke, {
|
|
8766
8781
|
echarts: ce,
|
|
8767
8782
|
option: o,
|
|
@@ -8785,7 +8800,7 @@ function Kd({
|
|
|
8785
8800
|
} = _n(), {
|
|
8786
8801
|
ref: u,
|
|
8787
8802
|
height: g
|
|
8788
|
-
} = _n(), c =
|
|
8803
|
+
} = _n(), c = w.useMemo(() => {
|
|
8789
8804
|
const {
|
|
8790
8805
|
stats: {
|
|
8791
8806
|
templates: p,
|
|
@@ -8797,7 +8812,7 @@ function Kd({
|
|
|
8797
8812
|
bottom: Vn(p.bottom, m, r)
|
|
8798
8813
|
};
|
|
8799
8814
|
}, [n, r]), f = Math.max(0, a - s - g);
|
|
8800
|
-
return /* @__PURE__ */ d(
|
|
8815
|
+
return /* @__PURE__ */ d(B, {
|
|
8801
8816
|
children: [no(n.stats.templates.top) && /* @__PURE__ */ i(C, {
|
|
8802
8817
|
ref: l,
|
|
8803
8818
|
align: "left",
|
|
@@ -8854,7 +8869,7 @@ function Zd({
|
|
|
8854
8869
|
control: e,
|
|
8855
8870
|
render: ({
|
|
8856
8871
|
field: o
|
|
8857
|
-
}) => /* @__PURE__ */ i(
|
|
8872
|
+
}) => /* @__PURE__ */ i(j, {
|
|
8858
8873
|
label: "Value",
|
|
8859
8874
|
required: !0,
|
|
8860
8875
|
data: r,
|
|
@@ -9011,7 +9026,7 @@ function rg({
|
|
|
9011
9026
|
}
|
|
9012
9027
|
}) => {
|
|
9013
9028
|
var c;
|
|
9014
|
-
return /* @__PURE__ */ i(
|
|
9029
|
+
return /* @__PURE__ */ i(j, {
|
|
9015
9030
|
label: "Y Axis",
|
|
9016
9031
|
data: o,
|
|
9017
9032
|
disabled: o.length === 0,
|
|
@@ -9038,7 +9053,7 @@ function rg({
|
|
|
9038
9053
|
control: e,
|
|
9039
9054
|
render: ({
|
|
9040
9055
|
field: s
|
|
9041
|
-
}) => /* @__PURE__ */ i(
|
|
9056
|
+
}) => /* @__PURE__ */ i(j, {
|
|
9042
9057
|
label: "Method",
|
|
9043
9058
|
data: tg,
|
|
9044
9059
|
sx: {
|
|
@@ -9071,7 +9086,7 @@ function rg({
|
|
|
9071
9086
|
control: e,
|
|
9072
9087
|
render: ({
|
|
9073
9088
|
field: s
|
|
9074
|
-
}) => /* @__PURE__ */ i(
|
|
9089
|
+
}) => /* @__PURE__ */ i(j, {
|
|
9075
9090
|
label: "Line Type",
|
|
9076
9091
|
data: ng,
|
|
9077
9092
|
sx: {
|
|
@@ -9138,7 +9153,7 @@ function og({
|
|
|
9138
9153
|
}), l = t("regressions"), s = r.map((f, p) => ({
|
|
9139
9154
|
...f,
|
|
9140
9155
|
...l[p]
|
|
9141
|
-
})), u = t("y_axes"), g =
|
|
9156
|
+
})), u = t("y_axes"), g = w.useMemo(() => u.map(({
|
|
9142
9157
|
name: f
|
|
9143
9158
|
}, p) => ({
|
|
9144
9159
|
label: f,
|
|
@@ -9228,7 +9243,7 @@ function ag({
|
|
|
9228
9243
|
control: e,
|
|
9229
9244
|
render: ({
|
|
9230
9245
|
field: n
|
|
9231
|
-
}) => /* @__PURE__ */ i(
|
|
9246
|
+
}) => /* @__PURE__ */ i(j, {
|
|
9232
9247
|
label: "Bar Gap",
|
|
9233
9248
|
data: ig,
|
|
9234
9249
|
sx: {
|
|
@@ -9278,7 +9293,7 @@ function ug({
|
|
|
9278
9293
|
control: e,
|
|
9279
9294
|
render: ({
|
|
9280
9295
|
field: n
|
|
9281
|
-
}) => /* @__PURE__ */ i(
|
|
9296
|
+
}) => /* @__PURE__ */ i(j, {
|
|
9282
9297
|
label: "Line Type",
|
|
9283
9298
|
data: sg,
|
|
9284
9299
|
sx: {
|
|
@@ -9309,7 +9324,7 @@ function ug({
|
|
|
9309
9324
|
control: e,
|
|
9310
9325
|
render: ({
|
|
9311
9326
|
field: n
|
|
9312
|
-
}) => /* @__PURE__ */ i(
|
|
9327
|
+
}) => /* @__PURE__ */ i(j, {
|
|
9313
9328
|
label: "Step",
|
|
9314
9329
|
data: lg,
|
|
9315
9330
|
sx: {
|
|
@@ -9323,21 +9338,41 @@ function ug({
|
|
|
9323
9338
|
n.onChange(o);
|
|
9324
9339
|
}
|
|
9325
9340
|
})
|
|
9326
|
-
}), /* @__PURE__ */
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9341
|
+
}), /* @__PURE__ */ d(R, {
|
|
9342
|
+
children: [/* @__PURE__ */ i(D, {
|
|
9343
|
+
name: `series.${t}.smooth`,
|
|
9344
|
+
control: e,
|
|
9345
|
+
render: ({
|
|
9346
|
+
field: n
|
|
9347
|
+
}) => /* @__PURE__ */ i(B, {
|
|
9348
|
+
sx: {
|
|
9349
|
+
flexGrow: 1
|
|
9350
|
+
},
|
|
9351
|
+
children: /* @__PURE__ */ i(ze, {
|
|
9352
|
+
label: "Smooth Line",
|
|
9353
|
+
checked: n.value,
|
|
9354
|
+
onChange: (r) => n.onChange(r.currentTarget.checked)
|
|
9355
|
+
})
|
|
9339
9356
|
})
|
|
9340
|
-
})
|
|
9357
|
+
}), /* @__PURE__ */ i(D, {
|
|
9358
|
+
name: `series.${t}.display_name_on_line`,
|
|
9359
|
+
control: e,
|
|
9360
|
+
render: ({
|
|
9361
|
+
field: n
|
|
9362
|
+
}) => {
|
|
9363
|
+
var r;
|
|
9364
|
+
return /* @__PURE__ */ i(B, {
|
|
9365
|
+
sx: {
|
|
9366
|
+
flexGrow: 1
|
|
9367
|
+
},
|
|
9368
|
+
children: /* @__PURE__ */ i(ze, {
|
|
9369
|
+
label: "Display Name on Line",
|
|
9370
|
+
checked: (r = n.value) != null ? r : !1,
|
|
9371
|
+
onChange: (o) => n.onChange(o.currentTarget.checked)
|
|
9372
|
+
})
|
|
9373
|
+
});
|
|
9374
|
+
}
|
|
9375
|
+
})]
|
|
9341
9376
|
})]
|
|
9342
9377
|
})]
|
|
9343
9378
|
});
|
|
@@ -9509,7 +9544,7 @@ function pg({
|
|
|
9509
9544
|
}
|
|
9510
9545
|
}) => {
|
|
9511
9546
|
var c;
|
|
9512
|
-
return /* @__PURE__ */ i(
|
|
9547
|
+
return /* @__PURE__ */ i(j, {
|
|
9513
9548
|
label: "Y Axis",
|
|
9514
9549
|
data: o,
|
|
9515
9550
|
disabled: o.length === 0,
|
|
@@ -9556,7 +9591,7 @@ function pg({
|
|
|
9556
9591
|
control: e,
|
|
9557
9592
|
render: ({
|
|
9558
9593
|
field: s
|
|
9559
|
-
}) => /* @__PURE__ */ i(
|
|
9594
|
+
}) => /* @__PURE__ */ i(j, {
|
|
9560
9595
|
label: "Label Position",
|
|
9561
9596
|
data: gg,
|
|
9562
9597
|
...s
|
|
@@ -9613,6 +9648,7 @@ function fg({
|
|
|
9613
9648
|
y_axis_data_key: "value",
|
|
9614
9649
|
yAxisIndex: 0,
|
|
9615
9650
|
label_position: "top",
|
|
9651
|
+
display_name_on_line: !1,
|
|
9616
9652
|
stack: "",
|
|
9617
9653
|
color: "#000",
|
|
9618
9654
|
step: !1,
|
|
@@ -9623,7 +9659,7 @@ function fg({
|
|
|
9623
9659
|
type: "solid",
|
|
9624
9660
|
width: 1
|
|
9625
9661
|
}
|
|
9626
|
-
}), g = t("y_axes"), c =
|
|
9662
|
+
}), g = t("y_axes"), c = w.useMemo(() => g.map(({
|
|
9627
9663
|
name: f
|
|
9628
9664
|
}, p) => ({
|
|
9629
9665
|
label: f,
|
|
@@ -9947,7 +9983,7 @@ function wg({
|
|
|
9947
9983
|
control: e,
|
|
9948
9984
|
render: ({
|
|
9949
9985
|
field: r
|
|
9950
|
-
}) => /* @__PURE__ */ i(
|
|
9986
|
+
}) => /* @__PURE__ */ i(j, {
|
|
9951
9987
|
label: "Align",
|
|
9952
9988
|
required: !0,
|
|
9953
9989
|
data: xg,
|
|
@@ -9970,7 +10006,7 @@ function wg({
|
|
|
9970
10006
|
control: e,
|
|
9971
10007
|
render: ({
|
|
9972
10008
|
field: r
|
|
9973
|
-
}) => /* @__PURE__ */ i(
|
|
10009
|
+
}) => /* @__PURE__ */ i(j, {
|
|
9974
10010
|
label: "Position",
|
|
9975
10011
|
required: !0,
|
|
9976
10012
|
data: Cg,
|
|
@@ -10060,7 +10096,8 @@ function _g(e) {
|
|
|
10060
10096
|
smooth: m = !1,
|
|
10061
10097
|
step: b = !1,
|
|
10062
10098
|
group_by_key: v = "",
|
|
10063
|
-
|
|
10099
|
+
display_name_on_line: S = !1,
|
|
10100
|
+
lineStyle: F = {
|
|
10064
10101
|
type: "solid",
|
|
10065
10102
|
width: 1
|
|
10066
10103
|
}
|
|
@@ -10080,7 +10117,8 @@ function _g(e) {
|
|
|
10080
10117
|
smooth: m,
|
|
10081
10118
|
step: b,
|
|
10082
10119
|
group_by_key: v,
|
|
10083
|
-
|
|
10120
|
+
display_name_on_line: S,
|
|
10121
|
+
lineStyle: F
|
|
10084
10122
|
};
|
|
10085
10123
|
}
|
|
10086
10124
|
return e.map(t);
|
|
@@ -10113,7 +10151,7 @@ function Ig({
|
|
|
10113
10151
|
set: n
|
|
10114
10152
|
} = Q(e.instanceData, "config"), r = e.data, o = G(() => ot({}, t, sr), [t]), a = G(() => Dg(o), [o]);
|
|
10115
10153
|
ne(() => {
|
|
10116
|
-
!
|
|
10154
|
+
!Te(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
|
|
10117
10155
|
}, [o, a]);
|
|
10118
10156
|
const {
|
|
10119
10157
|
control: l,
|
|
@@ -10121,13 +10159,13 @@ function Ig({
|
|
|
10121
10159
|
watch: u,
|
|
10122
10160
|
getValues: g,
|
|
10123
10161
|
reset: c
|
|
10124
|
-
} =
|
|
10162
|
+
} = Ne({
|
|
10125
10163
|
defaultValues: a
|
|
10126
10164
|
});
|
|
10127
10165
|
ne(() => {
|
|
10128
10166
|
c(a);
|
|
10129
10167
|
}, [a]);
|
|
10130
|
-
const f = g(), p = G(() => !
|
|
10168
|
+
const f = g(), p = G(() => !Te(f, o), [f, o]);
|
|
10131
10169
|
return /* @__PURE__ */ i(R, {
|
|
10132
10170
|
mt: "md",
|
|
10133
10171
|
spacing: "xs",
|
|
@@ -10412,7 +10450,7 @@ function Ag({
|
|
|
10412
10450
|
width: n,
|
|
10413
10451
|
height: r
|
|
10414
10452
|
} = e.viewport, o = e.data, a = G(() => kg(ot({}, t, ur), o), [t, o]);
|
|
10415
|
-
return !n || !r || !t || fo(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ i(
|
|
10453
|
+
return !n || !r || !t || fo(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ i(B, {
|
|
10416
10454
|
children: /* @__PURE__ */ i(Ke, {
|
|
10417
10455
|
echarts: ce,
|
|
10418
10456
|
option: a,
|
|
@@ -10580,7 +10618,7 @@ function Tg({
|
|
|
10580
10618
|
series_name_key: l
|
|
10581
10619
|
}), [a, l]);
|
|
10582
10620
|
ne(() => {
|
|
10583
|
-
!
|
|
10621
|
+
!Te(o, s) && r(s);
|
|
10584
10622
|
}, [o, s]);
|
|
10585
10623
|
const {
|
|
10586
10624
|
control: u,
|
|
@@ -10588,13 +10626,13 @@ function Tg({
|
|
|
10588
10626
|
watch: c,
|
|
10589
10627
|
getValues: f,
|
|
10590
10628
|
reset: p
|
|
10591
|
-
} =
|
|
10629
|
+
} = Ne({
|
|
10592
10630
|
defaultValues: s
|
|
10593
10631
|
});
|
|
10594
10632
|
ne(() => {
|
|
10595
|
-
|
|
10633
|
+
Te(f(), s) || p(s);
|
|
10596
10634
|
}, [o]), c(["series_name_key"]);
|
|
10597
|
-
const m = f(), b = G(() => !
|
|
10635
|
+
const m = f(), b = G(() => !Te(m, o), [m, o]);
|
|
10598
10636
|
return /* @__PURE__ */ i(R, {
|
|
10599
10637
|
mt: "md",
|
|
10600
10638
|
spacing: "xs",
|
|
@@ -10620,7 +10658,7 @@ function Tg({
|
|
|
10620
10658
|
size: 20
|
|
10621
10659
|
})
|
|
10622
10660
|
})]
|
|
10623
|
-
}), /* @__PURE__ */ i(
|
|
10661
|
+
}), /* @__PURE__ */ i(B, {
|
|
10624
10662
|
py: "sm",
|
|
10625
10663
|
children: /* @__PURE__ */ i(D, {
|
|
10626
10664
|
name: "series_name_key",
|
|
@@ -10668,13 +10706,13 @@ const Ng = {
|
|
|
10668
10706
|
function qg(e, t) {
|
|
10669
10707
|
switch (e.config.method) {
|
|
10670
10708
|
case "linear":
|
|
10671
|
-
return [...
|
|
10709
|
+
return [...Be.regressionLinear()(t)];
|
|
10672
10710
|
case "exponential":
|
|
10673
|
-
return [...
|
|
10711
|
+
return [...Be.regressionExp()(t)];
|
|
10674
10712
|
case "logarithmic":
|
|
10675
|
-
return [...
|
|
10713
|
+
return [...Be.regressionLog()(t)];
|
|
10676
10714
|
case "polynomial":
|
|
10677
|
-
return [...
|
|
10715
|
+
return [...Be.regressionPoly().order(e.config.order)(t)];
|
|
10678
10716
|
default:
|
|
10679
10717
|
return [];
|
|
10680
10718
|
}
|
|
@@ -10759,7 +10797,7 @@ function Hg(e, t) {
|
|
|
10759
10797
|
y_axis: o
|
|
10760
10798
|
} = t, a = e.map((l) => [l[r.data_key], l[n.y_axis_data_key]]);
|
|
10761
10799
|
if (n.transform.config.method === "linear") {
|
|
10762
|
-
const l =
|
|
10800
|
+
const l = Be.regressionLinear()(a), {
|
|
10763
10801
|
a: s,
|
|
10764
10802
|
b: u,
|
|
10765
10803
|
rSquared: g
|
|
@@ -10798,7 +10836,7 @@ function Hg(e, t) {
|
|
|
10798
10836
|
a: l,
|
|
10799
10837
|
b: s,
|
|
10800
10838
|
rSquared: u
|
|
10801
|
-
} =
|
|
10839
|
+
} = Be.regressionExp()(a);
|
|
10802
10840
|
return {
|
|
10803
10841
|
expression: /* @__PURE__ */ d(y, {
|
|
10804
10842
|
position: "center",
|
|
@@ -10842,7 +10880,7 @@ function Hg(e, t) {
|
|
|
10842
10880
|
a: l,
|
|
10843
10881
|
b: s,
|
|
10844
10882
|
rSquared: u
|
|
10845
|
-
} =
|
|
10883
|
+
} = Be.regressionLog()(a);
|
|
10846
10884
|
return {
|
|
10847
10885
|
expression: /* @__PURE__ */ d(y, {
|
|
10848
10886
|
position: "center",
|
|
@@ -10882,7 +10920,7 @@ function Hg(e, t) {
|
|
|
10882
10920
|
};
|
|
10883
10921
|
}
|
|
10884
10922
|
if (n.transform.config.method === "polynomial") {
|
|
10885
|
-
const l =
|
|
10923
|
+
const l = Be.regressionPoly().order(n.transform.config.order)(a), {
|
|
10886
10924
|
rSquared: s
|
|
10887
10925
|
} = l;
|
|
10888
10926
|
return console.log(l), {
|
|
@@ -10951,7 +10989,7 @@ function Ug({
|
|
|
10951
10989
|
if (!n || !r || !t)
|
|
10952
10990
|
return null;
|
|
10953
10991
|
let g = r;
|
|
10954
|
-
return l && (g -= 20), /* @__PURE__ */ d(
|
|
10992
|
+
return l && (g -= 20), /* @__PURE__ */ d(B, {
|
|
10955
10993
|
children: [l && /* @__PURE__ */ i(C, {
|
|
10956
10994
|
align: "center",
|
|
10957
10995
|
size: 12,
|
|
@@ -11073,7 +11111,7 @@ function Yg({
|
|
|
11073
11111
|
control: e,
|
|
11074
11112
|
render: ({
|
|
11075
11113
|
field: o
|
|
11076
|
-
}) => /* @__PURE__ */ i(
|
|
11114
|
+
}) => /* @__PURE__ */ i(j, {
|
|
11077
11115
|
label: "Method",
|
|
11078
11116
|
data: Wg,
|
|
11079
11117
|
sx: {
|
|
@@ -11123,13 +11161,13 @@ function Qg({
|
|
|
11123
11161
|
watch: s,
|
|
11124
11162
|
getValues: u,
|
|
11125
11163
|
reset: g
|
|
11126
|
-
} =
|
|
11164
|
+
} = Ne({
|
|
11127
11165
|
defaultValues: o
|
|
11128
11166
|
});
|
|
11129
11167
|
ne(() => {
|
|
11130
11168
|
g(o);
|
|
11131
11169
|
}, [o]), s(["x_axis", "y_axis", "regression"]);
|
|
11132
|
-
const c = u(), f = G(() => !
|
|
11170
|
+
const c = u(), f = G(() => !Te(c, t), [c, t]);
|
|
11133
11171
|
return /* @__PURE__ */ i(R, {
|
|
11134
11172
|
mt: "md",
|
|
11135
11173
|
spacing: "xs",
|
|
@@ -11303,9 +11341,9 @@ function ep({
|
|
|
11303
11341
|
barData: g,
|
|
11304
11342
|
lineData: c
|
|
11305
11343
|
} = G(() => {
|
|
11306
|
-
const p = n.map((v) => [v[a.data_key], Number(v[l])]).sort((v,
|
|
11344
|
+
const p = n.map((v) => [v[a.data_key], Number(v[l])]).sort((v, S) => S[1] - v[1]), m = p.reduce((v, S) => v + S[1], 0), b = p.reduce((v, S, F) => {
|
|
11307
11345
|
const $ = F === 0 ? 0 : v[F - 1][1];
|
|
11308
|
-
return v.push([
|
|
11346
|
+
return v.push([S[0], $ + S[1]]), v;
|
|
11309
11347
|
}, []).map((v) => [v[0], v[1] / m]);
|
|
11310
11348
|
return {
|
|
11311
11349
|
barData: p,
|
|
@@ -11400,13 +11438,13 @@ function tp({
|
|
|
11400
11438
|
watch: s,
|
|
11401
11439
|
getValues: u,
|
|
11402
11440
|
reset: g
|
|
11403
|
-
} =
|
|
11441
|
+
} = Ne({
|
|
11404
11442
|
defaultValues: o
|
|
11405
11443
|
});
|
|
11406
11444
|
ne(() => {
|
|
11407
11445
|
g(o);
|
|
11408
11446
|
}, [o]), s(["x_axis", "data_key", "bar", "line"]);
|
|
11409
|
-
const c = u(), f = G(() => !
|
|
11447
|
+
const c = u(), f = G(() => !Te(c, t), [c, t]);
|
|
11410
11448
|
return /* @__PURE__ */ i(R, {
|
|
11411
11449
|
mt: "md",
|
|
11412
11450
|
spacing: "xs",
|
|
@@ -11632,7 +11670,7 @@ const rp = {
|
|
|
11632
11670
|
vizManager: e,
|
|
11633
11671
|
colorManager: t
|
|
11634
11672
|
};
|
|
11635
|
-
},
|
|
11673
|
+
}, qe = La(Ti());
|
|
11636
11674
|
try {
|
|
11637
11675
|
bt.install(zi);
|
|
11638
11676
|
} catch {
|
|
@@ -11680,7 +11718,7 @@ function lp(e) {
|
|
|
11680
11718
|
value: t.urlTemplate,
|
|
11681
11719
|
onChange: l,
|
|
11682
11720
|
onBlur: o
|
|
11683
|
-
}), /* @__PURE__ */ i(
|
|
11721
|
+
}), /* @__PURE__ */ i(ze, {
|
|
11684
11722
|
label: "Open in new Tab",
|
|
11685
11723
|
checked: t.openInNewTab,
|
|
11686
11724
|
onChange: (s) => a(s.currentTarget.checked)
|
|
@@ -11742,7 +11780,7 @@ const fp = {
|
|
|
11742
11780
|
viewID: n == null ? void 0 : n.viewID
|
|
11743
11781
|
});
|
|
11744
11782
|
const o = (n == null ? void 0 : n.viewID) || "";
|
|
11745
|
-
return /* @__PURE__ */ i(
|
|
11783
|
+
return /* @__PURE__ */ i(j, {
|
|
11746
11784
|
defaultValue: o,
|
|
11747
11785
|
value: o,
|
|
11748
11786
|
onChange: (l) => void r({
|
|
@@ -12058,7 +12096,7 @@ const Rp = V(({
|
|
|
12058
12096
|
data: t
|
|
12059
12097
|
} = pe(), n = e.viz, {
|
|
12060
12098
|
vizManager: r
|
|
12061
|
-
} =
|
|
12099
|
+
} = Le(qe), o = e.json, a = We(() => r.getOrCreateInstance(o), [r, n.type]), l = We(() => new Li(a, r.resolveComponent(n.type), pr), [a, n.type]);
|
|
12062
12100
|
return ne(() => a.instanceData.watchItem(
|
|
12063
12101
|
null,
|
|
12064
12102
|
Xa((s) => {
|
|
@@ -12082,7 +12120,7 @@ const Rp = V(({
|
|
|
12082
12120
|
}, Fp = V(() => {
|
|
12083
12121
|
const {
|
|
12084
12122
|
panel: e
|
|
12085
|
-
} = pe(), [t, n] =
|
|
12123
|
+
} = pe(), [t, n] = w.useState(e.description), r = e.description !== t, o = w.useCallback(() => {
|
|
12086
12124
|
!r || e.setDescription(t);
|
|
12087
12125
|
}, [r, t]);
|
|
12088
12126
|
return /* @__PURE__ */ d(R, {
|
|
@@ -12123,7 +12161,7 @@ const Rp = V(({
|
|
|
12123
12161
|
style: t
|
|
12124
12162
|
} = e;
|
|
12125
12163
|
return /* @__PURE__ */ i(K, {
|
|
12126
|
-
children: /* @__PURE__ */ i(
|
|
12164
|
+
children: /* @__PURE__ */ i(ze, {
|
|
12127
12165
|
label: "Border",
|
|
12128
12166
|
checked: t.border.enabled,
|
|
12129
12167
|
onChange: (n) => t.border.setEnabled(n.currentTarget.checked)
|
|
@@ -12190,7 +12228,7 @@ const Rp = V(({
|
|
|
12190
12228
|
} = pe(), {
|
|
12191
12229
|
title: t,
|
|
12192
12230
|
setTitle: n
|
|
12193
|
-
} = e, [r, o] = Ro(t), a = t !== r, l =
|
|
12231
|
+
} = e, [r, o] = Ro(t), a = t !== r, l = w.useCallback(() => {
|
|
12194
12232
|
!a || n(r);
|
|
12195
12233
|
}, [a, r]);
|
|
12196
12234
|
return /* @__PURE__ */ i(E, {
|
|
@@ -12245,7 +12283,7 @@ function kp() {
|
|
|
12245
12283
|
labelPosition: "center",
|
|
12246
12284
|
variant: "dashed"
|
|
12247
12285
|
}), /* @__PURE__ */ i(Mp, {}), /* @__PURE__ */ i(Fp, {})]
|
|
12248
|
-
}), /* @__PURE__ */ i(
|
|
12286
|
+
}), /* @__PURE__ */ i(B, {
|
|
12249
12287
|
sx: {
|
|
12250
12288
|
height: "100%",
|
|
12251
12289
|
flexGrow: 1,
|
|
@@ -12261,7 +12299,7 @@ const Ap = V(function() {
|
|
|
12261
12299
|
queryID: n,
|
|
12262
12300
|
setQueryID: r
|
|
12263
12301
|
}
|
|
12264
|
-
} = pe(), o =
|
|
12302
|
+
} = pe(), o = w.useMemo(() => t.queries.current.map((a) => ({
|
|
12265
12303
|
value: a.id,
|
|
12266
12304
|
label: a.id
|
|
12267
12305
|
})), [t.queries.current]);
|
|
@@ -12274,7 +12312,7 @@ const Ap = V(function() {
|
|
|
12274
12312
|
},
|
|
12275
12313
|
children: [/* @__PURE__ */ i(C, {
|
|
12276
12314
|
children: "Select a Query"
|
|
12277
|
-
}), /* @__PURE__ */ i(
|
|
12315
|
+
}), /* @__PURE__ */ i(j, {
|
|
12278
12316
|
data: o,
|
|
12279
12317
|
value: n,
|
|
12280
12318
|
onChange: r,
|
|
@@ -12344,7 +12382,7 @@ function Pp(e) {
|
|
|
12344
12382
|
function zp(e, t) {
|
|
12345
12383
|
const {
|
|
12346
12384
|
vizManager: n
|
|
12347
|
-
} =
|
|
12385
|
+
} = Le(qe), {
|
|
12348
12386
|
panel: {
|
|
12349
12387
|
viz: r,
|
|
12350
12388
|
title: o,
|
|
@@ -12382,7 +12420,7 @@ const Tp = ["richText"], qi = V(function({
|
|
|
12382
12420
|
ref: a,
|
|
12383
12421
|
width: l,
|
|
12384
12422
|
height: s
|
|
12385
|
-
} = _n(), u =
|
|
12423
|
+
} = _n(), u = w.useMemo(() => !Array.isArray(r) || r.length === 0, [r]), g = zp(r, {
|
|
12386
12424
|
w: l,
|
|
12387
12425
|
h: s
|
|
12388
12426
|
});
|
|
@@ -12437,7 +12475,7 @@ const Tp = ["richText"], qi = V(function({
|
|
|
12437
12475
|
function Np() {
|
|
12438
12476
|
const {
|
|
12439
12477
|
vizManager: e
|
|
12440
|
-
} =
|
|
12478
|
+
} = Le(qe);
|
|
12441
12479
|
return G(() => e.availableVizList.map((t) => ({
|
|
12442
12480
|
value: t.name,
|
|
12443
12481
|
label: t.displayName
|
|
@@ -12466,7 +12504,7 @@ function Gp() {
|
|
|
12466
12504
|
}
|
|
12467
12505
|
} = pe(), {
|
|
12468
12506
|
vizManager: c
|
|
12469
|
-
} =
|
|
12507
|
+
} = Le(qe), f = {
|
|
12470
12508
|
title: n,
|
|
12471
12509
|
description: o,
|
|
12472
12510
|
viz: t,
|
|
@@ -12498,7 +12536,7 @@ const Bp = V(() => {
|
|
|
12498
12536
|
}
|
|
12499
12537
|
} = pe(), [n, r] = Ro(t.type), o = t.type !== n, {
|
|
12500
12538
|
vizManager: a
|
|
12501
|
-
} =
|
|
12539
|
+
} = Le(qe), l = w.useCallback(() => {
|
|
12502
12540
|
if (!o)
|
|
12503
12541
|
return;
|
|
12504
12542
|
const m = qp(a, n);
|
|
@@ -12509,7 +12547,7 @@ const Bp = V(() => {
|
|
|
12509
12547
|
} catch (b) {
|
|
12510
12548
|
console.error(b);
|
|
12511
12549
|
}
|
|
12512
|
-
}, u =
|
|
12550
|
+
}, u = w.useMemo(() => {
|
|
12513
12551
|
var m;
|
|
12514
12552
|
return (m = An.find((b) => b.value === n)) == null ? void 0 : m.Panel;
|
|
12515
12553
|
}, [n, An]), g = Gp(), c = u ? Ht(u, {
|
|
@@ -12518,7 +12556,7 @@ const Bp = V(() => {
|
|
|
12518
12556
|
setConf: t.setConf
|
|
12519
12557
|
}) : null, f = g || c, p = Np();
|
|
12520
12558
|
return /* @__PURE__ */ d(K, {
|
|
12521
|
-
children: [/* @__PURE__ */ i(
|
|
12559
|
+
children: [/* @__PURE__ */ i(j, {
|
|
12522
12560
|
label: "Visualization",
|
|
12523
12561
|
value: n,
|
|
12524
12562
|
onChange: r,
|
|
@@ -12556,7 +12594,7 @@ function jp() {
|
|
|
12556
12594
|
height: "100%"
|
|
12557
12595
|
},
|
|
12558
12596
|
children: /* @__PURE__ */ i(Bp, {})
|
|
12559
|
-
}), /* @__PURE__ */ i(
|
|
12597
|
+
}), /* @__PURE__ */ i(B, {
|
|
12560
12598
|
sx: {
|
|
12561
12599
|
height: "100%",
|
|
12562
12600
|
flexGrow: 1,
|
|
@@ -12572,14 +12610,14 @@ const Hp = V(function({
|
|
|
12572
12610
|
}) {
|
|
12573
12611
|
const {
|
|
12574
12612
|
freezeLayout: r
|
|
12575
|
-
} =
|
|
12613
|
+
} = w.useContext($e), [o, a] = be("Visualization"), {
|
|
12576
12614
|
panel: l,
|
|
12577
12615
|
loading: s
|
|
12578
12616
|
} = pe(), {
|
|
12579
12617
|
id: u,
|
|
12580
12618
|
title: g
|
|
12581
12619
|
} = l;
|
|
12582
|
-
return
|
|
12620
|
+
return w.useEffect(() => {
|
|
12583
12621
|
r(t);
|
|
12584
12622
|
}, [t]), /* @__PURE__ */ i(Fe, {
|
|
12585
12623
|
size: "96vw",
|
|
@@ -12653,17 +12691,17 @@ const Hp = V(function({
|
|
|
12653
12691
|
}), Up = V(({
|
|
12654
12692
|
view: e
|
|
12655
12693
|
}) => {
|
|
12656
|
-
const t = ee(), n = za(), [r, o] =
|
|
12694
|
+
const t = ee(), n = za(), [r, o] = w.useState(!1), a = () => o(!0), l = () => o(!1), {
|
|
12657
12695
|
panel: s
|
|
12658
12696
|
} = pe(), {
|
|
12659
12697
|
id: u,
|
|
12660
12698
|
queryID: g
|
|
12661
12699
|
} = s, {
|
|
12662
12700
|
inEditMode: c
|
|
12663
|
-
} =
|
|
12701
|
+
} = w.useContext($e), f = () => t.queries.refetchDataByQueryID(g), {
|
|
12664
12702
|
viewPanelInFullScreen: p,
|
|
12665
12703
|
inFullScreen: m
|
|
12666
|
-
} =
|
|
12704
|
+
} = w.useContext(Bn), b = () => {
|
|
12667
12705
|
e.panels.duplicateByID(u);
|
|
12668
12706
|
}, v = () => n.openConfirmModal({
|
|
12669
12707
|
title: "Delete this panel?",
|
|
@@ -12673,11 +12711,11 @@ const Hp = V(function({
|
|
|
12673
12711
|
},
|
|
12674
12712
|
onCancel: () => console.log("Cancel"),
|
|
12675
12713
|
onConfirm: () => e.panels.removeByID(u)
|
|
12676
|
-
}),
|
|
12714
|
+
}), S = w.useCallback(() => {
|
|
12677
12715
|
p(u);
|
|
12678
12716
|
}, [u, p]);
|
|
12679
12717
|
return /* @__PURE__ */ d(K, {
|
|
12680
|
-
children: [/* @__PURE__ */ i(
|
|
12718
|
+
children: [/* @__PURE__ */ i(B, {
|
|
12681
12719
|
sx: {
|
|
12682
12720
|
position: "absolute",
|
|
12683
12721
|
top: 0,
|
|
@@ -12688,7 +12726,7 @@ const Hp = V(function({
|
|
|
12688
12726
|
children: /* @__PURE__ */ d(ve, {
|
|
12689
12727
|
withinPortal: !0,
|
|
12690
12728
|
children: [/* @__PURE__ */ i(ve.Target, {
|
|
12691
|
-
children: /* @__PURE__ */ i(
|
|
12729
|
+
children: /* @__PURE__ */ i(B, {
|
|
12692
12730
|
className: "panel-dropdown-target",
|
|
12693
12731
|
sx: {
|
|
12694
12732
|
width: "100%",
|
|
@@ -12709,7 +12747,7 @@ const Hp = V(function({
|
|
|
12709
12747
|
}),
|
|
12710
12748
|
children: "Download Data"
|
|
12711
12749
|
}), !m && /* @__PURE__ */ i(ve.Item, {
|
|
12712
|
-
onClick:
|
|
12750
|
+
onClick: S,
|
|
12713
12751
|
icon: /* @__PURE__ */ i(ol, {
|
|
12714
12752
|
size: 14
|
|
12715
12753
|
}),
|
|
@@ -12792,7 +12830,7 @@ const fr = V(function({
|
|
|
12792
12830
|
}) {
|
|
12793
12831
|
const r = ee(), {
|
|
12794
12832
|
inEditMode: o
|
|
12795
|
-
} =
|
|
12833
|
+
} = Le($e), {
|
|
12796
12834
|
data: a,
|
|
12797
12835
|
state: l
|
|
12798
12836
|
} = r.getDataStuffByID(t.queryID), s = Yp(t.viz.type), u = s && l === "loading", g = t.title ? "calc(100% - 25px - 5px)" : "100%", c = Xp(t, s, o), f = s || o;
|
|
@@ -12802,14 +12840,14 @@ const fr = V(function({
|
|
|
12802
12840
|
data: a,
|
|
12803
12841
|
loading: u
|
|
12804
12842
|
},
|
|
12805
|
-
children: /* @__PURE__ */ d(
|
|
12843
|
+
children: /* @__PURE__ */ d(B, {
|
|
12806
12844
|
className: "panel-root",
|
|
12807
12845
|
p: 5,
|
|
12808
12846
|
pt: 0,
|
|
12809
12847
|
sx: {
|
|
12810
12848
|
...c
|
|
12811
12849
|
},
|
|
12812
|
-
children: [/* @__PURE__ */ i(
|
|
12850
|
+
children: [/* @__PURE__ */ i(B, {
|
|
12813
12851
|
sx: {
|
|
12814
12852
|
position: "absolute",
|
|
12815
12853
|
left: 0,
|
|
@@ -12870,9 +12908,9 @@ const fr = V(function({
|
|
|
12870
12908
|
});
|
|
12871
12909
|
});
|
|
12872
12910
|
function Bi(e, t, n) {
|
|
12873
|
-
const r = e.id === "Main", [o, a] =
|
|
12911
|
+
const r = e.id === "Main", [o, a] = w.useState(() => r && e.panels.findByID(t) ? t : null), l = w.useCallback((c) => {
|
|
12874
12912
|
a(c), r && n(c);
|
|
12875
|
-
}, [r, n]), s =
|
|
12913
|
+
}, [r, n]), s = w.useCallback(() => {
|
|
12876
12914
|
a(null), r && n("");
|
|
12877
12915
|
}, [r, n]), u = o ? e.panels.findByID(o) : null;
|
|
12878
12916
|
return {
|
|
@@ -12883,7 +12921,7 @@ function Bi(e, t, n) {
|
|
|
12883
12921
|
};
|
|
12884
12922
|
}
|
|
12885
12923
|
function ji() {
|
|
12886
|
-
|
|
12924
|
+
w.useEffect(() => {
|
|
12887
12925
|
const e = Cl(".dashboard-sticky-area", {
|
|
12888
12926
|
useStickyClasses: !0,
|
|
12889
12927
|
parentClass: "dashboard-sticky-parent"
|
|
@@ -12893,7 +12931,7 @@ function ji() {
|
|
|
12893
12931
|
};
|
|
12894
12932
|
}, []);
|
|
12895
12933
|
}
|
|
12896
|
-
const Jp =
|
|
12934
|
+
const Jp = w.forwardRef(({
|
|
12897
12935
|
handleAxis: e
|
|
12898
12936
|
}, t) => /* @__PURE__ */ i(P, {
|
|
12899
12937
|
ref: t,
|
|
@@ -12913,7 +12951,7 @@ const Jp = S.forwardRef(({
|
|
|
12913
12951
|
children: /* @__PURE__ */ i(ll, {
|
|
12914
12952
|
size: 16
|
|
12915
12953
|
})
|
|
12916
|
-
})), Kp =
|
|
12954
|
+
})), Kp = w.forwardRef(({
|
|
12917
12955
|
handleAxis: e,
|
|
12918
12956
|
...t
|
|
12919
12957
|
}, n) => /* @__PURE__ */ i(P, {
|
|
@@ -12942,7 +12980,7 @@ const Jp = S.forwardRef(({
|
|
|
12942
12980
|
isDraggable: o,
|
|
12943
12981
|
isResizable: a
|
|
12944
12982
|
}) {
|
|
12945
|
-
const l =
|
|
12983
|
+
const l = w.useCallback((s) => {
|
|
12946
12984
|
s.forEach(({
|
|
12947
12985
|
i: u,
|
|
12948
12986
|
...g
|
|
@@ -12994,7 +13032,7 @@ const Jp = S.forwardRef(({
|
|
|
12994
13032
|
});
|
|
12995
13033
|
}), rf = V(({
|
|
12996
13034
|
children: e
|
|
12997
|
-
}) => /* @__PURE__ */ i(
|
|
13035
|
+
}) => /* @__PURE__ */ i(B, {
|
|
12998
13036
|
children: e
|
|
12999
13037
|
})), of = V(({
|
|
13000
13038
|
children: e,
|
|
@@ -13064,7 +13102,7 @@ const Jp = S.forwardRef(({
|
|
|
13064
13102
|
viewPanelInFullScreen: a,
|
|
13065
13103
|
inFullScreen: s
|
|
13066
13104
|
},
|
|
13067
|
-
children: /* @__PURE__ */ d(
|
|
13105
|
+
children: /* @__PURE__ */ d(B, {
|
|
13068
13106
|
className: "dashboard-view",
|
|
13069
13107
|
mx: -10,
|
|
13070
13108
|
sx: {
|
|
@@ -13079,9 +13117,9 @@ const Jp = S.forwardRef(({
|
|
|
13079
13117
|
saveChanges: n
|
|
13080
13118
|
}), /* @__PURE__ */ i(af, {
|
|
13081
13119
|
view: t,
|
|
13082
|
-
children: /* @__PURE__ */ d(
|
|
13120
|
+
children: /* @__PURE__ */ d(B, {
|
|
13083
13121
|
className: "dashboard-sticky-parent",
|
|
13084
|
-
children: [/* @__PURE__ */ i(
|
|
13122
|
+
children: [/* @__PURE__ */ i(B, {
|
|
13085
13123
|
className: "dashboard-sticky-area",
|
|
13086
13124
|
children: /* @__PURE__ */ i(qo, {
|
|
13087
13125
|
view: t
|
|
@@ -13097,7 +13135,7 @@ const Jp = S.forwardRef(({
|
|
|
13097
13135
|
});
|
|
13098
13136
|
}), sf = V(({
|
|
13099
13137
|
children: e
|
|
13100
|
-
}) => /* @__PURE__ */ i(
|
|
13138
|
+
}) => /* @__PURE__ */ i(B, {
|
|
13101
13139
|
children: e
|
|
13102
13140
|
})), uf = V(({
|
|
13103
13141
|
children: e,
|
|
@@ -13160,7 +13198,7 @@ const Jp = S.forwardRef(({
|
|
|
13160
13198
|
viewPanelInFullScreen: o,
|
|
13161
13199
|
inFullScreen: l
|
|
13162
13200
|
},
|
|
13163
|
-
children: /* @__PURE__ */ d(
|
|
13201
|
+
children: /* @__PURE__ */ d(B, {
|
|
13164
13202
|
className: "dashboard-view",
|
|
13165
13203
|
mx: -10,
|
|
13166
13204
|
sx: {
|
|
@@ -13175,9 +13213,9 @@ const Jp = S.forwardRef(({
|
|
|
13175
13213
|
saveChanges: U.noop
|
|
13176
13214
|
}), /* @__PURE__ */ i(cf, {
|
|
13177
13215
|
view: t,
|
|
13178
|
-
children: /* @__PURE__ */ d(
|
|
13216
|
+
children: /* @__PURE__ */ d(B, {
|
|
13179
13217
|
className: "dashboard-sticky-parent",
|
|
13180
|
-
children: [/* @__PURE__ */ i(
|
|
13218
|
+
children: [/* @__PURE__ */ i(B, {
|
|
13181
13219
|
className: "dashboard-sticky-area",
|
|
13182
13220
|
children: /* @__PURE__ */ i(qo, {
|
|
13183
13221
|
view: t
|
|
@@ -13519,11 +13557,11 @@ var hr = { exports: {} };
|
|
|
13519
13557
|
return r(g, c, f);
|
|
13520
13558
|
var m = g.type === "application/octet-stream", b = /constructor/i.test(l.HTMLElement) || l.safari, v = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
13521
13559
|
if ((v || m && b || s) && typeof FileReader < "u") {
|
|
13522
|
-
var
|
|
13523
|
-
|
|
13524
|
-
var A =
|
|
13560
|
+
var S = new FileReader();
|
|
13561
|
+
S.onloadend = function() {
|
|
13562
|
+
var A = S.result;
|
|
13525
13563
|
A = v ? A : A.replace(/^data:[^;]*;/, "data:attachment/file;"), p ? p.location.href = A : location = A, p = null;
|
|
13526
|
-
},
|
|
13564
|
+
}, S.readAsDataURL(g);
|
|
13527
13565
|
} else {
|
|
13528
13566
|
var F = l.URL || l.webkitURL, $ = F.createObjectURL(g);
|
|
13529
13567
|
p ? p.location = $ : location.href = $, p = null, setTimeout(function() {
|
|
@@ -14154,12 +14192,12 @@ const hh = V(function({
|
|
|
14154
14192
|
setFullScreenPanelID: s
|
|
14155
14193
|
}) {
|
|
14156
14194
|
rt.baseURL !== a.apiBaseURL && (rt.baseURL = a.apiBaseURL);
|
|
14157
|
-
const [u, g] =
|
|
14158
|
-
Oo(c, !0),
|
|
14195
|
+
const [u, g] = w.useState(!1), c = w.useMemo(() => ea(n, t), [n]);
|
|
14196
|
+
Oo(c, !0), w.useEffect(() => {
|
|
14159
14197
|
c.context.replace(t);
|
|
14160
14198
|
}, [t]);
|
|
14161
14199
|
const f = async () => {
|
|
14162
|
-
const m = [...c.queries.json], b = [...c.sqlSnippets.json], v = [...c.views.json],
|
|
14200
|
+
const m = [...c.queries.json], b = [...c.sqlSnippets.json], v = [...c.views.json], S = {
|
|
14163
14201
|
...n,
|
|
14164
14202
|
filters: [...c.filters.current],
|
|
14165
14203
|
views: v,
|
|
@@ -14168,7 +14206,7 @@ const hh = V(function({
|
|
|
14168
14206
|
queries: m
|
|
14169
14207
|
}
|
|
14170
14208
|
};
|
|
14171
|
-
await r(
|
|
14209
|
+
await r(S);
|
|
14172
14210
|
}, p = We(Ti, []);
|
|
14173
14211
|
return /* @__PURE__ */ i(uo, {
|
|
14174
14212
|
children: /* @__PURE__ */ i(zo, {
|
|
@@ -14180,12 +14218,12 @@ const hh = V(function({
|
|
|
14180
14218
|
inEditMode: !0,
|
|
14181
14219
|
inUseMode: !1
|
|
14182
14220
|
},
|
|
14183
|
-
children: /* @__PURE__ */ i(
|
|
14221
|
+
children: /* @__PURE__ */ i(B, {
|
|
14184
14222
|
className: `${o} dashboard-root`,
|
|
14185
14223
|
sx: {
|
|
14186
14224
|
position: "relative"
|
|
14187
14225
|
},
|
|
14188
|
-
children: /* @__PURE__ */ i(
|
|
14226
|
+
children: /* @__PURE__ */ i(qe.Provider, {
|
|
14189
14227
|
value: p,
|
|
14190
14228
|
children: c.views.visibleViews.map((m) => /* @__PURE__ */ i(lf, {
|
|
14191
14229
|
view: m,
|
|
@@ -14207,8 +14245,8 @@ const hh = V(function({
|
|
|
14207
14245
|
setFullScreenPanelID: a
|
|
14208
14246
|
}) => {
|
|
14209
14247
|
rt.baseURL !== r.apiBaseURL && (rt.baseURL = r.apiBaseURL);
|
|
14210
|
-
const l =
|
|
14211
|
-
return Oo(l, !1),
|
|
14248
|
+
const l = w.useMemo(() => ea(t, e), [t]);
|
|
14249
|
+
return Oo(l, !1), w.useEffect(() => {
|
|
14212
14250
|
l.context.replace(e);
|
|
14213
14251
|
}, [e]), /* @__PURE__ */ i(uo, {
|
|
14214
14252
|
children: /* @__PURE__ */ i(zo, {
|
|
@@ -14220,7 +14258,7 @@ const hh = V(function({
|
|
|
14220
14258
|
inEditMode: !1,
|
|
14221
14259
|
inUseMode: !0
|
|
14222
14260
|
},
|
|
14223
|
-
children: /* @__PURE__ */ i(
|
|
14261
|
+
children: /* @__PURE__ */ i(B, {
|
|
14224
14262
|
className: `${n} dashboard-root dashboard-sticky-parent`,
|
|
14225
14263
|
children: l.views.visibleViews.map((s) => /* @__PURE__ */ i(df, {
|
|
14226
14264
|
view: s,
|
|
@@ -14241,15 +14279,15 @@ var ta = { exports: {} };
|
|
|
14241
14279
|
return function(o, a, l) {
|
|
14242
14280
|
var s, u = function(p, m, b) {
|
|
14243
14281
|
b === void 0 && (b = {});
|
|
14244
|
-
var v = new Date(p),
|
|
14282
|
+
var v = new Date(p), S = function(F, $) {
|
|
14245
14283
|
$ === void 0 && ($ = {});
|
|
14246
14284
|
var A = $.timeZoneName || "short", L = F + "|" + A, Y = r[L];
|
|
14247
14285
|
return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: F, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: A }), r[L] = Y), Y;
|
|
14248
14286
|
}(m, b);
|
|
14249
|
-
return
|
|
14287
|
+
return S.formatToParts(v);
|
|
14250
14288
|
}, g = function(p, m) {
|
|
14251
|
-
for (var b = u(p, m), v = [],
|
|
14252
|
-
var F = b[
|
|
14289
|
+
for (var b = u(p, m), v = [], S = 0; S < b.length; S += 1) {
|
|
14290
|
+
var F = b[S], $ = F.type, A = F.value, L = n[$];
|
|
14253
14291
|
L >= 0 && (v[L] = parseInt(A, 10));
|
|
14254
14292
|
}
|
|
14255
14293
|
var Y = v[3], le = Y === 24 ? 0 : Y, ie = v[0] + "-" + v[1] + "-" + v[2] + " " + le + ":" + v[4] + ":" + v[5] + ":000", ye = +p;
|
|
@@ -14257,7 +14295,7 @@ var ta = { exports: {} };
|
|
|
14257
14295
|
}, c = a.prototype;
|
|
14258
14296
|
c.tz = function(p, m) {
|
|
14259
14297
|
p === void 0 && (p = s);
|
|
14260
|
-
var b = this.utcOffset(), v = this.toDate(),
|
|
14298
|
+
var b = this.utcOffset(), v = this.toDate(), S = v.toLocaleString("en-US", { timeZone: p }), F = Math.round((v - new Date(S)) / 1e3 / 60), $ = l(S).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - F, !0);
|
|
14261
14299
|
if (m) {
|
|
14262
14300
|
var A = $.utcOffset();
|
|
14263
14301
|
$ = $.add(b - A, "minute");
|
|
@@ -14276,17 +14314,17 @@ var ta = { exports: {} };
|
|
|
14276
14314
|
var b = l(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
|
|
14277
14315
|
return f.call(b, p, m).tz(this.$x.$timezone, !0);
|
|
14278
14316
|
}, l.tz = function(p, m, b) {
|
|
14279
|
-
var v = b && m,
|
|
14317
|
+
var v = b && m, S = b || m || s, F = g(+l(), S);
|
|
14280
14318
|
if (typeof p != "string")
|
|
14281
|
-
return l(p).tz(
|
|
14319
|
+
return l(p).tz(S);
|
|
14282
14320
|
var $ = function(le, ie, ye) {
|
|
14283
14321
|
var fe = le - 60 * ie * 1e3, Re = g(fe, ye);
|
|
14284
14322
|
if (ie === Re)
|
|
14285
14323
|
return [fe, ie];
|
|
14286
14324
|
var se = g(fe -= 60 * (Re - ie) * 1e3, ye);
|
|
14287
14325
|
return Re === se ? [fe, Re] : [le - 60 * Math.min(Re, se) * 1e3, Math.max(Re, se)];
|
|
14288
|
-
}(l.utc(p, v).valueOf(), F,
|
|
14289
|
-
return Y.$x.$timezone =
|
|
14326
|
+
}(l.utc(p, v).valueOf(), F, S), A = $[0], L = $[1], Y = l(A).utcOffset(L);
|
|
14327
|
+
return Y.$x.$timezone = S, Y;
|
|
14290
14328
|
}, l.tz.guess = function() {
|
|
14291
14329
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
14292
14330
|
}, l.tz.setDefault = function(p) {
|
|
@@ -14305,11 +14343,11 @@ var na = { exports: {} };
|
|
|
14305
14343
|
return function(a, l, s) {
|
|
14306
14344
|
var u = l.prototype;
|
|
14307
14345
|
s.utc = function(v) {
|
|
14308
|
-
var
|
|
14309
|
-
return new l(
|
|
14346
|
+
var S = { date: v, utc: !0, args: arguments };
|
|
14347
|
+
return new l(S);
|
|
14310
14348
|
}, u.utc = function(v) {
|
|
14311
|
-
var
|
|
14312
|
-
return v ?
|
|
14349
|
+
var S = s(this.toDate(), { locale: this.$L, utc: !0 });
|
|
14350
|
+
return v ? S.add(this.utcOffset(), n) : S;
|
|
14313
14351
|
}, u.local = function() {
|
|
14314
14352
|
return s(this.toDate(), { locale: this.$L, utc: !1 });
|
|
14315
14353
|
};
|
|
@@ -14326,7 +14364,7 @@ var na = { exports: {} };
|
|
|
14326
14364
|
c.call(this);
|
|
14327
14365
|
};
|
|
14328
14366
|
var f = u.utcOffset;
|
|
14329
|
-
u.utcOffset = function(v,
|
|
14367
|
+
u.utcOffset = function(v, S) {
|
|
14330
14368
|
var F = this.$utils().u;
|
|
14331
14369
|
if (F(v))
|
|
14332
14370
|
return this.$u ? 0 : F(this.$offset) ? f.call(this) : this.$offset;
|
|
@@ -14340,7 +14378,7 @@ var na = { exports: {} };
|
|
|
14340
14378
|
}(v), v === null))
|
|
14341
14379
|
return this;
|
|
14342
14380
|
var $ = Math.abs(v) <= 16 ? 60 * v : v, A = this;
|
|
14343
|
-
if (
|
|
14381
|
+
if (S)
|
|
14344
14382
|
return A.$offset = $, A.$u = v === 0, A;
|
|
14345
14383
|
if (v !== 0) {
|
|
14346
14384
|
var L = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
@@ -14351,8 +14389,8 @@ var na = { exports: {} };
|
|
|
14351
14389
|
};
|
|
14352
14390
|
var p = u.format;
|
|
14353
14391
|
u.format = function(v) {
|
|
14354
|
-
var
|
|
14355
|
-
return p.call(this,
|
|
14392
|
+
var S = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
14393
|
+
return p.call(this, S);
|
|
14356
14394
|
}, u.valueOf = function() {
|
|
14357
14395
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
14358
14396
|
return this.$d.valueOf() - 6e4 * v;
|
|
@@ -14368,11 +14406,11 @@ var na = { exports: {} };
|
|
|
14368
14406
|
return v === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : m.call(this);
|
|
14369
14407
|
};
|
|
14370
14408
|
var b = u.diff;
|
|
14371
|
-
u.diff = function(v,
|
|
14409
|
+
u.diff = function(v, S, F) {
|
|
14372
14410
|
if (v && this.$u === v.$u)
|
|
14373
|
-
return b.call(this, v,
|
|
14411
|
+
return b.call(this, v, S, F);
|
|
14374
14412
|
var $ = this.local(), A = s(v).local();
|
|
14375
|
-
return b.call($, A,
|
|
14413
|
+
return b.call($, A, S, F);
|
|
14376
14414
|
};
|
|
14377
14415
|
};
|
|
14378
14416
|
});
|