@devtable/dashboard 14.60.11-0 → 14.60.11-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +246 -225
- package/dist/dashboard.umd.js +70 -70
- package/dist/index.d.ts +1 -2
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -9,7 +9,7 @@ import z, { unset as jh, get as le, isObject as Ql, set as Wa, omit as sn, isFun
|
|
|
9
9
|
import { observable as Yl, runInAction as ir, toJS as vt, reaction as Ne, makeAutoObservable as hr, computed as np, comparer as rp, autorun as ap } from "mobx";
|
|
10
10
|
import zo from "eventemitter2";
|
|
11
11
|
import { jsx as r, Fragment as N, jsxs as u } from "react/jsx-runtime";
|
|
12
|
-
import q, { useEffect as
|
|
12
|
+
import q, { useEffect as E, useId as Xl, useState as H, useMemo as T, useCallback as J, forwardRef as te, useRef as xt, createContext as Zl, createElement as pr, useContext as ft, memo as Gn } from "react";
|
|
13
13
|
import kn, { random as Gr } from "chroma-js";
|
|
14
14
|
import { Stack as D, TextInput as $, Switch as Ie, Select as F, Table as x, ActionIcon as ee, MultiSelect as Rt, Group as v, Text as k, Box as R, Button as L, Modal as xe, Divider as P, NumberInput as re, SimpleGrid as Me, Menu as K, UnstyledButton as Ya, Tooltip as oe, Flex as Fe, ColorInput as hn, Center as bt, Badge as Ot, CloseButton as pt, Overlay as pn, NativeSelect as mr, useMantineTheme as Wr, ColorSwatch as $r, Popover as Ze, ColorPicker as To, HoverCard as fe, Checkbox as ne, Paper as ip, Code as Do, Tabs as C, LoadingOverlay as mn, Alert as gr, Autocomplete as op, Combobox as Ke, Collapse as fr, CheckIcon as lp, SegmentedControl as Xa, Anchor as Nn, Pagination as Kr, Textarea as Za, RangeSlider as sp, Mark as Jl, Slider as cp, ThemeIcon as or, Pill as dp, List as Xe, getRadius as Ja, Affix as up, AppShell as st, FileInput as hp, Highlight as pp, rem as Io, JsonInput as es, Drawer as mp, Radio as Mo, Skeleton as Lo, NavLink as $a, useCombobox as ts, Loader as br, InputBase as ns, Input as rs } from "@mantine/core";
|
|
15
15
|
import { useBoolean as ke, useLatest as et, useCreation as Pt, usePrevious as gp, useAsyncEffect as Wn, useRequest as zn, useUpdate as fp, useWhyDidYouUpdate as as } from "ahooks";
|
|
@@ -2426,7 +2426,7 @@ const Fg = (e) => {
|
|
|
2426
2426
|
height: n.h
|
|
2427
2427
|
}
|
|
2428
2428
|
};
|
|
2429
|
-
|
|
2429
|
+
E(() => {
|
|
2430
2430
|
qg(s, i);
|
|
2431
2431
|
}, [i, s]);
|
|
2432
2432
|
const d = l.viewRender;
|
|
@@ -2564,7 +2564,7 @@ class bi {
|
|
|
2564
2564
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
2565
2565
|
}
|
|
2566
2566
|
}
|
|
2567
|
-
const Js = "14.60.11-
|
|
2567
|
+
const Js = "14.60.11-2", Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2568
2568
|
__proto__: null,
|
|
2569
2569
|
version: Js
|
|
2570
2570
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2616,7 +2616,7 @@ function ef(e, t) {
|
|
|
2616
2616
|
} = W(e.operation.operationData, "config"), [i, o] = H(ge({}, n, t)), l = async () => {
|
|
2617
2617
|
await a(i);
|
|
2618
2618
|
};
|
|
2619
|
-
return
|
|
2619
|
+
return E(() => {
|
|
2620
2620
|
o(ge({}, n, t));
|
|
2621
2621
|
}, [n]), {
|
|
2622
2622
|
config: i,
|
|
@@ -2644,7 +2644,7 @@ function tf(e) {
|
|
|
2644
2644
|
openInNewTab: c
|
|
2645
2645
|
});
|
|
2646
2646
|
}
|
|
2647
|
-
|
|
2647
|
+
E(() => {
|
|
2648
2648
|
i();
|
|
2649
2649
|
}, [n.openInNewTab]);
|
|
2650
2650
|
const s = (c) => a({
|
|
@@ -2844,7 +2844,7 @@ const wf = {
|
|
|
2844
2844
|
onChange: t
|
|
2845
2845
|
}) => {
|
|
2846
2846
|
const [n, a] = H(e);
|
|
2847
|
-
return
|
|
2847
|
+
return E(() => {
|
|
2848
2848
|
a(e);
|
|
2849
2849
|
}, [e]), /* @__PURE__ */ r($, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
|
|
2850
2850
|
flexGrow: 1
|
|
@@ -3119,11 +3119,16 @@ class we extends Nf {
|
|
|
3119
3119
|
return le(n, "version", 0) < this.VERSION;
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
|
+
function RR(e, t, n) {
|
|
3123
|
+
E(() => (e.on(t, n), () => {
|
|
3124
|
+
e.off(t, n);
|
|
3125
|
+
}), [e, t, n]);
|
|
3126
|
+
}
|
|
3122
3127
|
const W = (e, t) => {
|
|
3123
3128
|
const [n, {
|
|
3124
3129
|
setFalse: a
|
|
3125
3130
|
}] = ke(!0), [i, o] = H();
|
|
3126
|
-
|
|
3131
|
+
E(() => (e.getItem(t).then((s) => {
|
|
3127
3132
|
o(s), a();
|
|
3128
3133
|
}), e.watchItem(t, (s) => {
|
|
3129
3134
|
o(s);
|
|
@@ -4119,7 +4124,7 @@ const hb = ub(), pb = ({
|
|
|
4119
4124
|
handleSubmit: l,
|
|
4120
4125
|
reset: s
|
|
4121
4126
|
} = i;
|
|
4122
|
-
|
|
4127
|
+
E(() => {
|
|
4123
4128
|
s(e);
|
|
4124
4129
|
}, [e]);
|
|
4125
4130
|
const c = J(() => s(e), [s, e]);
|
|
@@ -4350,7 +4355,7 @@ const ar = "data-value", zb = ar, Ic = "dynamicColor", Mc = hi.create({
|
|
|
4350
4355
|
}
|
|
4351
4356
|
t(s);
|
|
4352
4357
|
};
|
|
4353
|
-
return
|
|
4358
|
+
return E(() => {
|
|
4354
4359
|
var c;
|
|
4355
4360
|
const s = (c = a.current) == null ? void 0 : c.getModel();
|
|
4356
4361
|
s && (s.getValue() || s.setValue(e));
|
|
@@ -4394,7 +4399,7 @@ const ar = "data-value", zb = ar, Ic = "dynamicColor", Mc = hi.create({
|
|
|
4394
4399
|
}, p = () => {
|
|
4395
4400
|
c(a);
|
|
4396
4401
|
};
|
|
4397
|
-
|
|
4402
|
+
E(() => {
|
|
4398
4403
|
c(e);
|
|
4399
4404
|
}, [e]);
|
|
4400
4405
|
const g = J((w, S) => {
|
|
@@ -4403,10 +4408,10 @@ const ar = "data-value", zb = ar, Ic = "dynamicColor", Mc = hi.create({
|
|
|
4403
4408
|
const M = $m(S), V = w.getModel();
|
|
4404
4409
|
if (M.initializeIn(w), M.addRestrictionsTo(V, i), !!V && !V._hasHighlight) {
|
|
4405
4410
|
M.toggleDevMode(), V.toggleHighlightOfEditableAreas({});
|
|
4406
|
-
const
|
|
4411
|
+
const O = V.getCurrentEditableRanges(), j = V.getValueInEditableRanges();
|
|
4407
4412
|
console.debug({
|
|
4408
4413
|
model: V,
|
|
4409
|
-
currentRanges:
|
|
4414
|
+
currentRanges: O,
|
|
4410
4415
|
currentValue: j
|
|
4411
4416
|
});
|
|
4412
4417
|
}
|
|
@@ -4712,7 +4717,7 @@ const Ab = (e) => {
|
|
|
4712
4717
|
content: e,
|
|
4713
4718
|
editable: !1
|
|
4714
4719
|
});
|
|
4715
|
-
|
|
4720
|
+
E(() => {
|
|
4716
4721
|
c == null || c.commands.setContent(e);
|
|
4717
4722
|
}, [e, c]);
|
|
4718
4723
|
const d = T(() => new DOMParser().parseFromString(e, "text/html"), [e]), h = T(() => kb(d, a, i), [d, a, i]), p = T(() => nb(d, i), [d, i]), g = T(() => z.defaultsDeep({}, {
|
|
@@ -4828,7 +4833,7 @@ function Qb({
|
|
|
4828
4833
|
}, c = () => {
|
|
4829
4834
|
o(""), t();
|
|
4830
4835
|
};
|
|
4831
|
-
return
|
|
4836
|
+
return E(() => {
|
|
4832
4837
|
if (e) {
|
|
4833
4838
|
const d = l();
|
|
4834
4839
|
o(d);
|
|
@@ -4951,7 +4956,7 @@ const ia = te(({
|
|
|
4951
4956
|
M.view.dom.setAttribute("spellcheck", "false"), M.view.dom.setAttribute("autocomplete", "off"), M.view.dom.setAttribute("autocapitalize", "off");
|
|
4952
4957
|
}
|
|
4953
4958
|
});
|
|
4954
|
-
|
|
4959
|
+
E(() => {
|
|
4955
4960
|
h(e), b == null || b.commands.setContent(e);
|
|
4956
4961
|
}, [e]);
|
|
4957
4962
|
const _ = e !== d, w = T(() => z.defaultsDeep({}, {
|
|
@@ -5082,7 +5087,7 @@ const qc = ({
|
|
|
5082
5087
|
const {
|
|
5083
5088
|
t: a
|
|
5084
5089
|
} = y(), [i, o] = H(e);
|
|
5085
|
-
|
|
5090
|
+
E(() => {
|
|
5086
5091
|
n && o(e);
|
|
5087
5092
|
}, [e, n]);
|
|
5088
5093
|
const l = J((s) => {
|
|
@@ -5130,8 +5135,8 @@ const qc = ({
|
|
|
5130
5135
|
}] = ke(), [h, p] = H(!1), g = T(() => {
|
|
5131
5136
|
const M = [];
|
|
5132
5137
|
return Jb.forEach((V) => {
|
|
5133
|
-
const
|
|
5134
|
-
|
|
5138
|
+
const O = o.colors[V];
|
|
5139
|
+
O && O.forEach((j) => {
|
|
5135
5140
|
M.push(j);
|
|
5136
5141
|
});
|
|
5137
5142
|
}), M;
|
|
@@ -5536,9 +5541,9 @@ function uy({
|
|
|
5536
5541
|
min: le(ie, w.columnKey),
|
|
5537
5542
|
max: le(se, w.columnKey)
|
|
5538
5543
|
};
|
|
5539
|
-
}, [g, w]), V = xt(),
|
|
5544
|
+
}, [g, w]), V = xt(), O = J((ie) => {
|
|
5540
5545
|
rt(t, ie);
|
|
5541
|
-
}, [t]), j = et(
|
|
5546
|
+
}, [t]), j = et(O), ae = {
|
|
5542
5547
|
...Dt(g.length),
|
|
5543
5548
|
tooltip: {},
|
|
5544
5549
|
backgroundColor: "#fff",
|
|
@@ -5575,7 +5580,7 @@ function uy({
|
|
|
5575
5580
|
data: g.map((ie) => [ie[b.columnKey], ie[_.columnKey], ie[w.columnKey]])
|
|
5576
5581
|
}]
|
|
5577
5582
|
};
|
|
5578
|
-
|
|
5583
|
+
E(() => {
|
|
5579
5584
|
setTimeout(() => {
|
|
5580
5585
|
var ie, se;
|
|
5581
5586
|
(se = j.current) == null || se.call(j, (ie = V.current) == null ? void 0 : ie.getOption());
|
|
@@ -5642,7 +5647,7 @@ function hy({
|
|
|
5642
5647
|
} = ye({
|
|
5643
5648
|
defaultValues: a
|
|
5644
5649
|
});
|
|
5645
|
-
return
|
|
5650
|
+
return E(() => {
|
|
5646
5651
|
l(a);
|
|
5647
5652
|
}, [t]), t ? /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
5648
5653
|
/* @__PURE__ */ r(k, { size: "sm", children: "X Axis" }),
|
|
@@ -5817,7 +5822,7 @@ const Xt = te(({
|
|
|
5817
5822
|
setTrue: l,
|
|
5818
5823
|
setFalse: s
|
|
5819
5824
|
}] = ke(), [c, d] = H(e);
|
|
5820
|
-
|
|
5825
|
+
E(() => {
|
|
5821
5826
|
d(e);
|
|
5822
5827
|
}, [e]);
|
|
5823
5828
|
const h = (S) => {
|
|
@@ -6113,7 +6118,7 @@ function Rn(e, t) {
|
|
|
6113
6118
|
}
|
|
6114
6119
|
const ot = (e, t) => {
|
|
6115
6120
|
const [n, a] = H([]);
|
|
6116
|
-
return
|
|
6121
|
+
return E(() => e.watchTriggerSnapshotList((i) => a(i.filter((o) => o.schemaRef === t))), []), n;
|
|
6117
6122
|
}, Aa = Zl(null);
|
|
6118
6123
|
function oa(e) {
|
|
6119
6124
|
const t = q.useContext(Aa), n = Pt(() => e.configure(t || new bi()), [e.configure]), a = gp(n);
|
|
@@ -6659,7 +6664,7 @@ const Ny = I(({
|
|
|
6659
6664
|
vizManager: a,
|
|
6660
6665
|
operationManager: i
|
|
6661
6666
|
} = ft(an), o = e.json, l = Pt(() => a.getOrCreateInstance(o), [a, o]), s = Pt(() => i.getAllOperations(), [i]), c = Pt(() => new Yc(l, a.resolveComponent(n.type), s), [l, n.type, s]);
|
|
6662
|
-
return
|
|
6667
|
+
return E(() => l.instanceData.watchItem(
|
|
6663
6668
|
null,
|
|
6664
6669
|
// avoid too many updates
|
|
6665
6670
|
Kh((d) => {
|
|
@@ -6930,10 +6935,10 @@ function n_(e, t, n) {
|
|
|
6930
6935
|
stroke: i,
|
|
6931
6936
|
lineWidth: o
|
|
6932
6937
|
};
|
|
6933
|
-
return M.forEach((
|
|
6938
|
+
return M.forEach((O) => {
|
|
6934
6939
|
S.children.push({
|
|
6935
6940
|
type: "line",
|
|
6936
|
-
shape:
|
|
6941
|
+
shape: O,
|
|
6937
6942
|
style: V
|
|
6938
6943
|
});
|
|
6939
6944
|
}), S.children.push({
|
|
@@ -7284,34 +7289,34 @@ function y_({
|
|
|
7284
7289
|
} = e.viewport, c = ge({}, a, Vi), d = lt({
|
|
7285
7290
|
vizManager: e.vizManager,
|
|
7286
7291
|
instance: t
|
|
7287
|
-
}), h = ot(d.triggerManager, Kc.id), p = Rn(o, c.x_axis.data_key), g = J((
|
|
7288
|
-
const j = z.get(p,
|
|
7292
|
+
}), h = ot(d.triggerManager, Kc.id), p = Rn(o, c.x_axis.data_key), g = J((O) => {
|
|
7293
|
+
const j = z.get(p, O.name, {
|
|
7289
7294
|
error: "rowData is not found"
|
|
7290
7295
|
});
|
|
7291
7296
|
h.forEach((U) => {
|
|
7292
7297
|
d.runInteraction(U.id, {
|
|
7293
|
-
...
|
|
7298
|
+
...O,
|
|
7294
7299
|
rowData: j
|
|
7295
7300
|
});
|
|
7296
7301
|
});
|
|
7297
|
-
}, [p, h, d]), b = J((
|
|
7298
|
-
rt(t,
|
|
7302
|
+
}, [p, h, d]), b = J((O) => {
|
|
7303
|
+
rt(t, O);
|
|
7299
7304
|
}, [t]), _ = T(() => b_({
|
|
7300
7305
|
config: c,
|
|
7301
7306
|
data: o,
|
|
7302
7307
|
variables: i,
|
|
7303
7308
|
t: n
|
|
7304
7309
|
}), [c, o, i, n]), w = xt(), S = et(b);
|
|
7305
|
-
|
|
7310
|
+
E(() => {
|
|
7306
7311
|
setTimeout(() => {
|
|
7307
|
-
var
|
|
7308
|
-
(j = S.current) == null || j.call(S, (
|
|
7312
|
+
var O, j;
|
|
7313
|
+
(j = S.current) == null || j.call(S, (O = w.current) == null ? void 0 : O.getOption());
|
|
7309
7314
|
}, 100);
|
|
7310
7315
|
}, [_]);
|
|
7311
7316
|
const M = T(() => ({
|
|
7312
7317
|
click: g
|
|
7313
|
-
}), [g]), V = (
|
|
7314
|
-
w.current =
|
|
7318
|
+
}), [g]), V = (O) => {
|
|
7319
|
+
w.current = O;
|
|
7315
7320
|
};
|
|
7316
7321
|
return !a || !l || !s ? null : /* @__PURE__ */ r(at, { width: l, height: s, children: /* @__PURE__ */ r(Ye, { echarts: Qe, option: _, onChartReady: V, style: wr(l, s), onEvents: M, notMerge: !0, theme: "merico-light" }) });
|
|
7317
7322
|
}
|
|
@@ -7471,7 +7476,7 @@ function x_(e) {
|
|
|
7471
7476
|
p(), n == null || n(Number(s));
|
|
7472
7477
|
}, V = () => {
|
|
7473
7478
|
p(), n == null || n(null);
|
|
7474
|
-
},
|
|
7479
|
+
}, O = me(o ?? null, {
|
|
7475
7480
|
output: "number",
|
|
7476
7481
|
mantissa: 10,
|
|
7477
7482
|
trimMantissa: !0,
|
|
@@ -7481,7 +7486,7 @@ function x_(e) {
|
|
|
7481
7486
|
return /* @__PURE__ */ u("div", { "data-testid": `palette-item-${i}`, className: l.paletteItem, children: [
|
|
7482
7487
|
/* @__PURE__ */ r(k, { title: w, style: {
|
|
7483
7488
|
opacity: b ? 1 : 0
|
|
7484
|
-
}, c: "dimmed", size: "sm", className: "palette-value--up palette-value", children:
|
|
7489
|
+
}, c: "dimmed", size: "sm", className: "palette-value--up palette-value", children: O }),
|
|
7485
7490
|
/* @__PURE__ */ u(Ze, { width: 240, trapFocus: !0, opened: d, onClose: p, zIndex: 340, withinPortal: !0, children: [
|
|
7486
7491
|
/* @__PURE__ */ r(Ze.Target, { children: /* @__PURE__ */ r("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: h, style: {
|
|
7487
7492
|
"--shadow-color": kn(a).alpha(0.5).hex(),
|
|
@@ -7507,7 +7512,7 @@ function x_(e) {
|
|
|
7507
7512
|
] }),
|
|
7508
7513
|
/* @__PURE__ */ r(k, { title: w, style: {
|
|
7509
7514
|
opacity: _ ? 1 : 0
|
|
7510
|
-
}, c: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children:
|
|
7515
|
+
}, c: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: O })
|
|
7511
7516
|
] });
|
|
7512
7517
|
}
|
|
7513
7518
|
const w_ = I(({
|
|
@@ -7519,7 +7524,7 @@ const w_ = I(({
|
|
|
7519
7524
|
return /* @__PURE__ */ r("div", { className: t.palette, children: n.map(([a, i], o) => /* @__PURE__ */ r(x_, { index: o, color: a, value: e.getStepFromValue(i), onChange: (l) => e.changeStep(l, i) }, a)) });
|
|
7520
7525
|
}), S_ = I(function(t) {
|
|
7521
7526
|
const n = Pt(() => new v_(), []);
|
|
7522
|
-
return
|
|
7527
|
+
return E(() => {
|
|
7523
7528
|
n.fromProps(t);
|
|
7524
7529
|
}), n.interpolation == null ? null : /* @__PURE__ */ r(w_, { model: n });
|
|
7525
7530
|
}), C_ = (e) => {
|
|
@@ -7535,8 +7540,8 @@ const w_ = I(({
|
|
|
7535
7540
|
setFalse: g
|
|
7536
7541
|
}] = ke(), b = T(() => {
|
|
7537
7542
|
const V = z.groupBy(l, "category");
|
|
7538
|
-
return Object.entries(V).map(([
|
|
7539
|
-
group: t(`style.color.interpolation.palette.category.${
|
|
7543
|
+
return Object.entries(V).map(([O, j]) => ({
|
|
7544
|
+
group: t(`style.color.interpolation.palette.category.${O}`),
|
|
7540
7545
|
items: j.map((U) => ({
|
|
7541
7546
|
label: t(U.displayName),
|
|
7542
7547
|
value: o.encodeColor(U)
|
|
@@ -7544,8 +7549,8 @@ const w_ = I(({
|
|
|
7544
7549
|
}));
|
|
7545
7550
|
}, [n.language]);
|
|
7546
7551
|
function _(V) {
|
|
7547
|
-
V && c((
|
|
7548
|
-
...
|
|
7552
|
+
V && c((O) => ({
|
|
7553
|
+
...O,
|
|
7549
7554
|
interpolation: V
|
|
7550
7555
|
}));
|
|
7551
7556
|
}
|
|
@@ -7553,8 +7558,8 @@ const w_ = I(({
|
|
|
7553
7558
|
g(), i == null || i(vt(s));
|
|
7554
7559
|
};
|
|
7555
7560
|
function S(V) {
|
|
7556
|
-
c((
|
|
7557
|
-
...
|
|
7561
|
+
c((O) => ({
|
|
7562
|
+
...O,
|
|
7558
7563
|
steps: V
|
|
7559
7564
|
}));
|
|
7560
7565
|
}
|
|
@@ -7714,7 +7719,7 @@ const w_ = I(({
|
|
|
7714
7719
|
})), w = ((j = z.last(_)) == null ? void 0 : j.id) ?? null, [S, M] = H(w), V = (U) => {
|
|
7715
7720
|
U !== "add" && M(U);
|
|
7716
7721
|
};
|
|
7717
|
-
return
|
|
7722
|
+
return E(() => {
|
|
7718
7723
|
M((U) => w === U ? U : w);
|
|
7719
7724
|
}, [w]), /* @__PURE__ */ u(C, { value: S, onChange: V, styles: M_, children: [
|
|
7720
7725
|
/* @__PURE__ */ r(I_, { fieldArray: d, add: () => {
|
|
@@ -8306,7 +8311,7 @@ function W_({
|
|
|
8306
8311
|
} = ye({
|
|
8307
8312
|
defaultValues: o
|
|
8308
8313
|
});
|
|
8309
|
-
return
|
|
8314
|
+
return E(() => {
|
|
8310
8315
|
h(o);
|
|
8311
8316
|
}, [o]), c(["x_axis", "y_axis", "reference_lines", "color", "dataZoom"]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
8312
8317
|
/* @__PURE__ */ r(Re, { canSubmit: d.isDirty }),
|
|
@@ -8757,7 +8762,7 @@ function gv({
|
|
|
8757
8762
|
value: t,
|
|
8758
8763
|
set: n
|
|
8759
8764
|
} = W(e.instanceData, "config"), a = T(() => Ue({}, t, Ai), [t]), i = a;
|
|
8760
|
-
|
|
8765
|
+
E(() => {
|
|
8761
8766
|
!qe(a, i) && (console.log("config malformed, resetting to defaults", a, i), n(i));
|
|
8762
8767
|
}, [a, i]);
|
|
8763
8768
|
const {
|
|
@@ -8769,7 +8774,7 @@ function gv({
|
|
|
8769
8774
|
} = ye({
|
|
8770
8775
|
defaultValues: i
|
|
8771
8776
|
});
|
|
8772
|
-
return
|
|
8777
|
+
return E(() => {
|
|
8773
8778
|
d(i);
|
|
8774
8779
|
}, [i]), s(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ u("form", { onSubmit: l(n), children: [
|
|
8775
8780
|
/* @__PURE__ */ r(Re, { canSubmit: c.isDirty }),
|
|
@@ -9526,15 +9531,15 @@ function Wv(e) {
|
|
|
9526
9531
|
};
|
|
9527
9532
|
}
|
|
9528
9533
|
function Kv(e, t, n) {
|
|
9529
|
-
const a = n.reduce((V,
|
|
9530
|
-
const j = Yt(
|
|
9531
|
-
return V[
|
|
9534
|
+
const a = n.reduce((V, O) => {
|
|
9535
|
+
const j = Yt(O, t);
|
|
9536
|
+
return V[O.name] = kt(O, j), V;
|
|
9532
9537
|
}, {}), i = aa(e.visualMap, a), {
|
|
9533
9538
|
min: o,
|
|
9534
9539
|
max: l
|
|
9535
9540
|
} = i, s = Fv(e), c = Q(e.calendar.data_key), d = Q(e.heat_block.data_key), h = t[c.queryID].map((V) => {
|
|
9536
|
-
const
|
|
9537
|
-
value: [
|
|
9541
|
+
const O = z.get(V, c.columnKey), j = z.get(V, d.columnKey), U = Gv(V[c.columnKey]), ae = {
|
|
9542
|
+
value: [O, j, U]
|
|
9538
9543
|
}, {
|
|
9539
9544
|
followVisualMap: Z,
|
|
9540
9545
|
color: ie
|
|
@@ -9583,19 +9588,19 @@ function Yv({
|
|
|
9583
9588
|
instance: l
|
|
9584
9589
|
}) {
|
|
9585
9590
|
const s = Rn(t, e.calendar.data_key), c = ot(i.triggerManager, od.id), d = J((S) => {
|
|
9586
|
-
const [M, V] = S.value,
|
|
9591
|
+
const [M, V] = S.value, O = z.get(s, M, {
|
|
9587
9592
|
error: "rowData is not found"
|
|
9588
9593
|
});
|
|
9589
9594
|
c.forEach((j) => {
|
|
9590
9595
|
i.runInteraction(j.id, {
|
|
9591
9596
|
...S,
|
|
9592
|
-
rowData:
|
|
9597
|
+
rowData: O
|
|
9593
9598
|
});
|
|
9594
9599
|
});
|
|
9595
9600
|
}, [s, c, i]), h = J((S) => {
|
|
9596
9601
|
rt(l, S);
|
|
9597
9602
|
}, [l]), p = q.useMemo(() => Kv(e, t, o), [e, t]), g = xt(), b = et(h);
|
|
9598
|
-
|
|
9603
|
+
E(() => {
|
|
9599
9604
|
setTimeout(() => {
|
|
9600
9605
|
var S, M;
|
|
9601
9606
|
(M = b.current) == null || M.call(b, (S = g.current) == null ? void 0 : S.getOption());
|
|
@@ -9756,7 +9761,7 @@ function ax({
|
|
|
9756
9761
|
value: n,
|
|
9757
9762
|
set: a
|
|
9758
9763
|
} = W(e.instanceData, "config"), i = T(() => n ? ge({}, n) : Oi, [n]), o = T(() => z.cloneDeep(i), [i]);
|
|
9759
|
-
|
|
9764
|
+
E(() => {
|
|
9760
9765
|
!qe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
9761
9766
|
}, [i, o]);
|
|
9762
9767
|
const l = ye({
|
|
@@ -9768,7 +9773,7 @@ function ax({
|
|
|
9768
9773
|
formState: h,
|
|
9769
9774
|
reset: p
|
|
9770
9775
|
} = l;
|
|
9771
|
-
return
|
|
9776
|
+
return E(() => {
|
|
9772
9777
|
p(o);
|
|
9773
9778
|
}, [o]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: c(a), children: [
|
|
9774
9779
|
/* @__PURE__ */ r(Re, { canSubmit: h.isDirty }),
|
|
@@ -10638,7 +10643,7 @@ const cd = {
|
|
|
10638
10643
|
variables: l,
|
|
10639
10644
|
data: s
|
|
10640
10645
|
} = t, c = T(() => un(e, l, i.payloadForViz, s), [e, l, s]), d = ((p = a.current) == null ? void 0 : p.textContent) === "";
|
|
10641
|
-
|
|
10646
|
+
E(() => {
|
|
10642
10647
|
if (!n || !a.current)
|
|
10643
10648
|
return;
|
|
10644
10649
|
const g = d ? 0 : a.current.offsetHeight;
|
|
@@ -10946,12 +10951,12 @@ function Jx({
|
|
|
10946
10951
|
hide_in_legend: b,
|
|
10947
10952
|
areaStyle: _,
|
|
10948
10953
|
...w
|
|
10949
|
-
}, S, M, V,
|
|
10954
|
+
}, S, M, V, O, j) {
|
|
10950
10955
|
const U = e.type !== "category", ae = {
|
|
10951
10956
|
label: {
|
|
10952
10957
|
show: !!a,
|
|
10953
10958
|
position: a,
|
|
10954
|
-
formatter:
|
|
10959
|
+
formatter: O[n ?? "default"]
|
|
10955
10960
|
},
|
|
10956
10961
|
name: i,
|
|
10957
10962
|
xAxisId: "main-x-axis",
|
|
@@ -11053,13 +11058,13 @@ function rw(e, t, n, a, i) {
|
|
|
11053
11058
|
}) => {
|
|
11054
11059
|
if (Array.isArray(S) && S.length === 2 && (S = S[1]), !_)
|
|
11055
11060
|
return S;
|
|
11056
|
-
const M = l[_] ?? "", V = o[_],
|
|
11061
|
+
const M = l[_] ?? "", V = o[_], O = i[V] ?? i.default;
|
|
11057
11062
|
return `
|
|
11058
11063
|
<tr>
|
|
11059
11064
|
<td>${w}</td>
|
|
11060
11065
|
<th style="text-align: right; padding: 0 1em;">${_}</th>
|
|
11061
11066
|
<td style="text-align: right; padding: 0 2px 0 1em;">
|
|
11062
|
-
${
|
|
11067
|
+
${O({
|
|
11063
11068
|
value: S
|
|
11064
11069
|
})}
|
|
11065
11070
|
</td>
|
|
@@ -11314,7 +11319,7 @@ function gw({
|
|
|
11314
11319
|
});
|
|
11315
11320
|
});
|
|
11316
11321
|
}, [c, d, i]), p = q.useMemo(() => dw(e, t, o, s), [e, t, s]), g = q.useRef(), b = et(l);
|
|
11317
|
-
|
|
11322
|
+
E(() => {
|
|
11318
11323
|
setTimeout(() => {
|
|
11319
11324
|
var S, M;
|
|
11320
11325
|
(M = b.current) == null || M.call(b, (S = g.current) == null ? void 0 : S.getOption());
|
|
@@ -11325,7 +11330,7 @@ function gw({
|
|
|
11325
11330
|
}), [h]), w = (S) => {
|
|
11326
11331
|
g.current = S, Yo(S);
|
|
11327
11332
|
};
|
|
11328
|
-
return
|
|
11333
|
+
return E(() => {
|
|
11329
11334
|
g.current && Yo(g.current);
|
|
11330
11335
|
}, [p]), !n || !a ? null : /* @__PURE__ */ r(Ye, { echarts: Qe, option: p, style: {
|
|
11331
11336
|
width: n,
|
|
@@ -11822,7 +11827,7 @@ function Tw({
|
|
|
11822
11827
|
t: l,
|
|
11823
11828
|
i18n: s
|
|
11824
11829
|
} = y();
|
|
11825
|
-
|
|
11830
|
+
E(() => {
|
|
11826
11831
|
typeof t == "string" && n({
|
|
11827
11832
|
type: t,
|
|
11828
11833
|
config: {},
|
|
@@ -12575,7 +12580,7 @@ function Nw({
|
|
|
12575
12580
|
} = ye({
|
|
12576
12581
|
defaultValues: o
|
|
12577
12582
|
});
|
|
12578
|
-
return
|
|
12583
|
+
return E(() => {
|
|
12579
12584
|
d(o);
|
|
12580
12585
|
}, [o]), c(["dataZoom"]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(t), children: [
|
|
12581
12586
|
/* @__PURE__ */ r(Re, { canSubmit: h.isDirty }),
|
|
@@ -12802,7 +12807,7 @@ function Jw({
|
|
|
12802
12807
|
const o = q.useMemo(() => Xw(e, t), [e, t]), l = J((h) => {
|
|
12803
12808
|
rt(i, h);
|
|
12804
12809
|
}, [i]), s = q.useRef(), c = et(l);
|
|
12805
|
-
return
|
|
12810
|
+
return E(() => {
|
|
12806
12811
|
setTimeout(() => {
|
|
12807
12812
|
var h, p;
|
|
12808
12813
|
(p = c.current) == null || p.call(c, (h = s.current) == null ? void 0 : h.getOption());
|
|
@@ -12963,7 +12968,7 @@ const t0 = ({
|
|
|
12963
12968
|
...h,
|
|
12964
12969
|
...o[p]
|
|
12965
12970
|
})), s = z.get(l, "0.id"), [c, d] = H(s ?? null);
|
|
12966
|
-
return
|
|
12971
|
+
return E(() => {
|
|
12967
12972
|
s && d((h) => h !== null ? h : s);
|
|
12968
12973
|
}, [s]), /* @__PURE__ */ u(C, { value: c, onChange: (h) => d(h), styles: {
|
|
12969
12974
|
panel: {
|
|
@@ -12993,7 +12998,7 @@ function r0({
|
|
|
12993
12998
|
} = ye({
|
|
12994
12999
|
defaultValues: a
|
|
12995
13000
|
});
|
|
12996
|
-
return
|
|
13001
|
+
return E(() => {
|
|
12997
13002
|
c(a);
|
|
12998
13003
|
}, [a]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
12999
13004
|
/* @__PURE__ */ r(Re, { canSubmit: s.isDirty }),
|
|
@@ -13614,7 +13619,7 @@ function I0({
|
|
|
13614
13619
|
totalPages: d,
|
|
13615
13620
|
groupedFullData: h
|
|
13616
13621
|
} = C0(l, o);
|
|
13617
|
-
|
|
13622
|
+
E(() => {
|
|
13618
13623
|
const _ = Ua(h).flat();
|
|
13619
13624
|
rt(t, ud(o, l, _, i, s, c));
|
|
13620
13625
|
}, [h]);
|
|
@@ -13843,7 +13848,7 @@ function E0({
|
|
|
13843
13848
|
value: n,
|
|
13844
13849
|
set: a
|
|
13845
13850
|
} = W(e.instanceData, "config"), i = T(() => n ? ge({}, n) : Gi, [n]), o = T(() => z.cloneDeep(i), [i]);
|
|
13846
|
-
|
|
13851
|
+
E(() => {
|
|
13847
13852
|
!qe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
13848
13853
|
}, [i, o]);
|
|
13849
13854
|
const l = ye({
|
|
@@ -13855,7 +13860,7 @@ function E0({
|
|
|
13855
13860
|
formState: h,
|
|
13856
13861
|
reset: p
|
|
13857
13862
|
} = l;
|
|
13858
|
-
return
|
|
13863
|
+
return E(() => {
|
|
13859
13864
|
p(o);
|
|
13860
13865
|
}, [o]), /* @__PURE__ */ r("form", { onSubmit: c(a), style: {
|
|
13861
13866
|
flexGrow: 1
|
|
@@ -14362,13 +14367,13 @@ function l1({
|
|
|
14362
14367
|
value_data_key: t,
|
|
14363
14368
|
valueTypedXAxis: _
|
|
14364
14369
|
}), V;
|
|
14365
|
-
const
|
|
14370
|
+
const O = o1({
|
|
14366
14371
|
group_by_key: o,
|
|
14367
14372
|
data: w,
|
|
14368
14373
|
name_data_key: e.data_key,
|
|
14369
14374
|
value_data_key: t
|
|
14370
14375
|
});
|
|
14371
|
-
return Object.entries(
|
|
14376
|
+
return Object.entries(O).map(([j, U]) => {
|
|
14372
14377
|
const ae = je(V);
|
|
14373
14378
|
return ae.name = j, ae.color = void 0, ae.data = U, ae;
|
|
14374
14379
|
});
|
|
@@ -14552,7 +14557,7 @@ function f1({
|
|
|
14552
14557
|
}), [d]), b = (w) => {
|
|
14553
14558
|
h.current = w;
|
|
14554
14559
|
}, _ = q.useMemo(() => g1(e, t, o), [e, t]);
|
|
14555
|
-
return
|
|
14560
|
+
return E(() => {
|
|
14556
14561
|
setTimeout(() => {
|
|
14557
14562
|
var w, S;
|
|
14558
14563
|
(S = p.current) == null || S.call(p, (w = h.current) == null ? void 0 : w.getOption());
|
|
@@ -14945,7 +14950,7 @@ function D1({
|
|
|
14945
14950
|
} = ye({
|
|
14946
14951
|
defaultValues: o
|
|
14947
14952
|
});
|
|
14948
|
-
return
|
|
14953
|
+
return E(() => {
|
|
14949
14954
|
h(o);
|
|
14950
14955
|
}, [o]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
14951
14956
|
/* @__PURE__ */ r(Re, { canSubmit: d.isDirty }),
|
|
@@ -15813,7 +15818,7 @@ function sS({
|
|
|
15813
15818
|
const l = q.useMemo(() => nS(e, i, t), [e, t, i]), s = J((p) => {
|
|
15814
15819
|
rt(o, p);
|
|
15815
15820
|
}, [o]), c = q.useRef(), d = et(s);
|
|
15816
|
-
return
|
|
15821
|
+
return E(() => {
|
|
15817
15822
|
setTimeout(() => {
|
|
15818
15823
|
var p, g;
|
|
15819
15824
|
(g = d.current) == null || g.call(d, (p = c.current) == null ? void 0 : p.getOption());
|
|
@@ -15841,7 +15846,7 @@ function cS({
|
|
|
15841
15846
|
estimated_value: d,
|
|
15842
15847
|
actual_value: h
|
|
15843
15848
|
} = c.data_keys, [p, g] = H(h);
|
|
15844
|
-
if (
|
|
15849
|
+
if (E(() => {
|
|
15845
15850
|
g((w) => w || h);
|
|
15846
15851
|
}, [h]), !s.data_key || !d || !h || !o || !l)
|
|
15847
15852
|
return null;
|
|
@@ -15973,7 +15978,7 @@ function mS({
|
|
|
15973
15978
|
} = ye({
|
|
15974
15979
|
defaultValues: a
|
|
15975
15980
|
});
|
|
15976
|
-
return
|
|
15981
|
+
return E(() => {
|
|
15977
15982
|
c(a);
|
|
15978
15983
|
}, [a]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
15979
15984
|
/* @__PURE__ */ r(Re, { canSubmit: s.isDirty }),
|
|
@@ -16325,7 +16330,7 @@ function DS({
|
|
|
16325
16330
|
value: n,
|
|
16326
16331
|
set: a
|
|
16327
16332
|
} = W(e.instanceData, "config"), i = T(() => n ? ge({}, n) : Ui, [n]), o = T(() => z.cloneDeep(i), [i]);
|
|
16328
|
-
|
|
16333
|
+
E(() => {
|
|
16329
16334
|
!qe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
16330
16335
|
}, [i, o]);
|
|
16331
16336
|
const l = ye({
|
|
@@ -16337,7 +16342,7 @@ function DS({
|
|
|
16337
16342
|
formState: h,
|
|
16338
16343
|
reset: p
|
|
16339
16344
|
} = l;
|
|
16340
|
-
return
|
|
16345
|
+
return E(() => {
|
|
16341
16346
|
p(o);
|
|
16342
16347
|
}, [o]), /* @__PURE__ */ r("form", { onSubmit: c(a), style: {
|
|
16343
16348
|
flexGrow: 1
|
|
@@ -16665,15 +16670,15 @@ function FS(e, t, n) {
|
|
|
16665
16670
|
min: s,
|
|
16666
16671
|
max: c
|
|
16667
16672
|
} = l, d = Q(e.x_axis.data_key), h = Q(e.y_axis.data_key), p = Q(e.heat_block.data_key), g = z.uniq(t[d.queryID].map((w) => w[d.columnKey])), b = t[d.queryID].map((w) => {
|
|
16668
|
-
const S = z.get(w, d.columnKey), M = z.get(w, h.columnKey), V = z.get(w, p.columnKey),
|
|
16673
|
+
const S = z.get(w, d.columnKey), M = z.get(w, h.columnKey), V = z.get(w, p.columnKey), O = {
|
|
16669
16674
|
value: [S, M, V]
|
|
16670
16675
|
}, {
|
|
16671
16676
|
followVisualMap: j,
|
|
16672
16677
|
color: U
|
|
16673
16678
|
} = Si(V, s, c, e.visualMap);
|
|
16674
|
-
return j || (
|
|
16679
|
+
return j || (O.visualMap = !1, O.itemStyle = {
|
|
16675
16680
|
color: U
|
|
16676
|
-
}),
|
|
16681
|
+
}), O;
|
|
16677
16682
|
});
|
|
16678
16683
|
return {
|
|
16679
16684
|
xAxis: OS(e, g, i.x_axis),
|
|
@@ -16697,19 +16702,19 @@ function NS({
|
|
|
16697
16702
|
const S = Q(e.x_axis.data_key), M = Q(e.y_axis.data_key);
|
|
16698
16703
|
return z.keyBy(t[S.queryID], (V) => `${V[S.columnKey]}---${V[M.columnKey]}`);
|
|
16699
16704
|
}, [t, e.x_axis.data_key, e.y_axis.data_key]), c = ot(i.triggerManager, gd.id), d = J((S) => {
|
|
16700
|
-
const [M, V] = S.value,
|
|
16705
|
+
const [M, V] = S.value, O = z.get(s, `${M}---${V}`, {
|
|
16701
16706
|
error: "rowData is not found"
|
|
16702
16707
|
});
|
|
16703
16708
|
c.forEach((j) => {
|
|
16704
16709
|
i.runInteraction(j.id, {
|
|
16705
16710
|
...S,
|
|
16706
|
-
rowData:
|
|
16711
|
+
rowData: O
|
|
16707
16712
|
});
|
|
16708
16713
|
});
|
|
16709
16714
|
}, [s, c, i]), h = J((S) => {
|
|
16710
16715
|
rt(l, S);
|
|
16711
16716
|
}, [l]), p = q.useMemo(() => FS(e, t, o), [e, t]), g = q.useRef(), b = et(h);
|
|
16712
|
-
|
|
16717
|
+
E(() => {
|
|
16713
16718
|
setTimeout(() => {
|
|
16714
16719
|
var S, M;
|
|
16715
16720
|
(M = b.current) == null || M.call(b, (S = g.current) == null ? void 0 : S.getOption());
|
|
@@ -17229,7 +17234,7 @@ function bC({
|
|
|
17229
17234
|
formState: c,
|
|
17230
17235
|
reset: d
|
|
17231
17236
|
} = l;
|
|
17232
|
-
|
|
17237
|
+
E(() => {
|
|
17233
17238
|
l.reset(o);
|
|
17234
17239
|
}, [o]);
|
|
17235
17240
|
const h = T(() => [{
|
|
@@ -17590,7 +17595,7 @@ function DC({
|
|
|
17590
17595
|
} = ye({
|
|
17591
17596
|
defaultValues: i
|
|
17592
17597
|
});
|
|
17593
|
-
return
|
|
17598
|
+
return E(() => {
|
|
17594
17599
|
d(i);
|
|
17595
17600
|
}, [i]), /* @__PURE__ */ r("form", { onSubmit: l(n), children: /* @__PURE__ */ u(D, { gap: "xs", children: [
|
|
17596
17601
|
/* @__PURE__ */ r(Re, { canSubmit: c.isDirty }),
|
|
@@ -18155,22 +18160,22 @@ function tk({
|
|
|
18155
18160
|
vizManager: e.vizManager,
|
|
18156
18161
|
instance: t
|
|
18157
18162
|
}), h = ot(d.triggerManager, yd.id), p = Rn(i, s.x_axis.data_key), g = J((V) => {
|
|
18158
|
-
const
|
|
18163
|
+
const O = z.get(p, V.name, {
|
|
18159
18164
|
error: "rowData is not found"
|
|
18160
18165
|
});
|
|
18161
18166
|
h.forEach((j) => {
|
|
18162
18167
|
d.runInteraction(j.id, {
|
|
18163
18168
|
...V,
|
|
18164
|
-
rowData:
|
|
18169
|
+
rowData: O
|
|
18165
18170
|
});
|
|
18166
18171
|
});
|
|
18167
18172
|
}, [p, h, d]), b = J((V) => {
|
|
18168
18173
|
rt(t, V);
|
|
18169
18174
|
}, [t]), _ = q.useRef(), w = et(b);
|
|
18170
|
-
|
|
18175
|
+
E(() => {
|
|
18171
18176
|
setTimeout(() => {
|
|
18172
|
-
var V,
|
|
18173
|
-
(
|
|
18177
|
+
var V, O;
|
|
18178
|
+
(O = w.current) == null || O.call(w, (V = _.current) == null ? void 0 : V.getOption());
|
|
18174
18179
|
}, 100);
|
|
18175
18180
|
}, [c]);
|
|
18176
18181
|
const S = T(() => ({
|
|
@@ -18470,7 +18475,7 @@ function uk({
|
|
|
18470
18475
|
} = ye({
|
|
18471
18476
|
defaultValues: o
|
|
18472
18477
|
});
|
|
18473
|
-
return
|
|
18478
|
+
return E(() => {
|
|
18474
18479
|
h(o);
|
|
18475
18480
|
}, [o]), c(["x_axis", "data_key", "bar", "line", "dataZoom"]), /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
18476
18481
|
/* @__PURE__ */ r(Re, { canSubmit: d.isDirty }),
|
|
@@ -18978,7 +18983,7 @@ function Rk({
|
|
|
18978
18983
|
}, [l, s, i]), d = J((w) => {
|
|
18979
18984
|
rt(o, w);
|
|
18980
18985
|
}, [o]), h = q.useMemo(() => Lk(e, t, n), [e, t, n]), p = q.useRef(), g = et(d);
|
|
18981
|
-
|
|
18986
|
+
E(() => {
|
|
18982
18987
|
setTimeout(() => {
|
|
18983
18988
|
var w, S;
|
|
18984
18989
|
(S = g.current) == null || S.call(g, (w = p.current) == null ? void 0 : w.getOption());
|
|
@@ -19045,7 +19050,7 @@ function qk({
|
|
|
19045
19050
|
} = ye({
|
|
19046
19051
|
defaultValues: i
|
|
19047
19052
|
});
|
|
19048
|
-
|
|
19053
|
+
E(() => {
|
|
19049
19054
|
c(i);
|
|
19050
19055
|
}, [i]);
|
|
19051
19056
|
const [d] = s(["label_field", "value_field", "color_field", "color"]), {
|
|
@@ -19605,7 +19610,7 @@ function u2({
|
|
|
19605
19610
|
const {
|
|
19606
19611
|
queryID: S,
|
|
19607
19612
|
columnKey: M
|
|
19608
|
-
} = Q(e.series_name_key), V = z.keyBy(t[S], M),
|
|
19613
|
+
} = Q(e.series_name_key), V = z.keyBy(t[S], M), O = e.additional_series.reduce((j, U) => {
|
|
19609
19614
|
const ae = Q(U.name_key), Z = z.keyBy(t[ae.queryID], ae.columnKey);
|
|
19610
19615
|
return {
|
|
19611
19616
|
...j,
|
|
@@ -19614,7 +19619,7 @@ function u2({
|
|
|
19614
19619
|
}, V);
|
|
19615
19620
|
return {
|
|
19616
19621
|
...V,
|
|
19617
|
-
...
|
|
19622
|
+
...O
|
|
19618
19623
|
};
|
|
19619
19624
|
}, [t, e.series_name_key, e.additional_series]), c = ot(i.triggerManager, Sd.id), d = J((S) => {
|
|
19620
19625
|
rt(l, S);
|
|
@@ -19629,7 +19634,7 @@ function u2({
|
|
|
19629
19634
|
});
|
|
19630
19635
|
});
|
|
19631
19636
|
}, [s, c, i]), p = T(() => d2(Ue({}, e, pa), t), [e, t]), g = q.useRef(), b = et(d);
|
|
19632
|
-
|
|
19637
|
+
E(() => {
|
|
19633
19638
|
setTimeout(() => {
|
|
19634
19639
|
var S, M;
|
|
19635
19640
|
(M = b.current) == null || M.call(b, (S = g.current) == null ? void 0 : S.getOption());
|
|
@@ -19857,7 +19862,7 @@ function _2({
|
|
|
19857
19862
|
defaultValues: i,
|
|
19858
19863
|
mode: "all"
|
|
19859
19864
|
});
|
|
19860
|
-
|
|
19865
|
+
E(() => {
|
|
19861
19866
|
c(i);
|
|
19862
19867
|
}, [i]);
|
|
19863
19868
|
const [d] = s(["series_name_key", "background", "label", "main_series_style", "color_field", "color"]), {
|
|
@@ -20843,7 +20848,7 @@ function oz({
|
|
|
20843
20848
|
} = ye({
|
|
20844
20849
|
defaultValues: a
|
|
20845
20850
|
});
|
|
20846
|
-
return
|
|
20851
|
+
return E(() => {
|
|
20847
20852
|
c(a);
|
|
20848
20853
|
}, [a]), l(["x_axis", "regression"]), t ? /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
20849
20854
|
/* @__PURE__ */ r(Re, { canSubmit: s.isDirty }),
|
|
@@ -21023,7 +21028,7 @@ const uz = I(({
|
|
|
21023
21028
|
} = ye({
|
|
21024
21029
|
defaultValues: o
|
|
21025
21030
|
});
|
|
21026
|
-
c("content"),
|
|
21031
|
+
c("content"), E(() => {
|
|
21027
21032
|
d(o);
|
|
21028
21033
|
}, [o]);
|
|
21029
21034
|
const h = xt(null), p = () => {
|
|
@@ -21755,17 +21760,17 @@ function Hz(e, t) {
|
|
|
21755
21760
|
const g = jz(p, e), b = St(e.scatter.label_overflow.tooltip), _ = p.map(
|
|
21756
21761
|
// @ts-expect-error type of value
|
|
21757
21762
|
({
|
|
21758
|
-
value:
|
|
21763
|
+
value: O
|
|
21759
21764
|
}) => `
|
|
21760
21765
|
<th style="text-align: right; padding-right: 1em">
|
|
21761
|
-
<div style="${b}">${Mr(
|
|
21766
|
+
<div style="${b}">${Mr(O, n.name_data_key)}</div>
|
|
21762
21767
|
</th>
|
|
21763
21768
|
`
|
|
21764
21769
|
);
|
|
21765
21770
|
_.unshift("<th></th>");
|
|
21766
21771
|
const w = St(e.x_axis.axisLabel.overflow.in_tooltip), S = [`<tr>
|
|
21767
21772
|
<th style="text-align: right; padding: 0 1em;">${e.x_axis.name}</th>
|
|
21768
|
-
${p.map((
|
|
21773
|
+
${p.map((O) => `
|
|
21769
21774
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
21770
21775
|
<div style="${w}">
|
|
21771
21776
|
${g}
|
|
@@ -21775,21 +21780,21 @@ function Hz(e, t) {
|
|
|
21775
21780
|
</tr>`, `<tr>
|
|
21776
21781
|
<th style="text-align: right; padding: 0 1em;">${e.y_axes[0].name}</th>
|
|
21777
21782
|
${p.map(({
|
|
21778
|
-
value:
|
|
21783
|
+
value: O
|
|
21779
21784
|
}) => `
|
|
21780
21785
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
21781
|
-
${h(Mr(
|
|
21786
|
+
${h(Mr(O, n.y_data_key))}
|
|
21782
21787
|
<strong>${s ?? ""}</strong>
|
|
21783
21788
|
</td>`).join("")}
|
|
21784
|
-
</tr>`], M = e.tooltip.metrics.map((
|
|
21789
|
+
</tr>`], M = e.tooltip.metrics.map((O) => `
|
|
21785
21790
|
<tr>
|
|
21786
|
-
<th style="text-align: right; padding: 0 1em;">${
|
|
21791
|
+
<th style="text-align: right; padding: 0 1em;">${O.name}</th>
|
|
21787
21792
|
${p.map(({
|
|
21788
21793
|
value: j
|
|
21789
21794
|
}) => `
|
|
21790
21795
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
21791
|
-
${Qz(Mr(j,
|
|
21792
|
-
<strong>${c[
|
|
21796
|
+
${Qz(Mr(j, O.data_key))}
|
|
21797
|
+
<strong>${c[O.name] ?? ""}</strong>
|
|
21793
21798
|
</td>`).join("")}
|
|
21794
21799
|
</tr>`);
|
|
21795
21800
|
return S.push(...M), `
|
|
@@ -21888,8 +21893,8 @@ function Uz(e, t, n) {
|
|
|
21888
21893
|
return V;
|
|
21889
21894
|
try {
|
|
21890
21895
|
return me(V, _);
|
|
21891
|
-
} catch (
|
|
21892
|
-
return console.error(
|
|
21896
|
+
} catch (O) {
|
|
21897
|
+
return console.error(O), V;
|
|
21893
21898
|
}
|
|
21894
21899
|
}, b), {
|
|
21895
21900
|
default: ({
|
|
@@ -21919,21 +21924,21 @@ function Yz({
|
|
|
21919
21924
|
}) {
|
|
21920
21925
|
const s = Rn(t, e.x_axis.data_key), c = ot(i.triggerManager, $d.id), d = J((M) => {
|
|
21921
21926
|
const V = M.data;
|
|
21922
|
-
c.forEach((
|
|
21923
|
-
i.runInteraction(
|
|
21927
|
+
c.forEach((O) => {
|
|
21928
|
+
i.runInteraction(O.id, {
|
|
21924
21929
|
...M,
|
|
21925
21930
|
rowData: V
|
|
21926
21931
|
});
|
|
21927
21932
|
});
|
|
21928
21933
|
}, [s, c, i]), h = ze(), p = J((M) => {
|
|
21929
|
-
const V = un(e.stats.top, o, h.payloadForViz, t),
|
|
21934
|
+
const V = un(e.stats.top, o, h.payloadForViz, t), O = un(e.stats.bottom, o, h.payloadForViz, t);
|
|
21930
21935
|
rt(l, {
|
|
21931
21936
|
...M,
|
|
21932
21937
|
statsAboveViz: V,
|
|
21933
|
-
statsBelowViz:
|
|
21938
|
+
statsBelowViz: O
|
|
21934
21939
|
});
|
|
21935
21940
|
}, [l, e.stats.top, e.stats.bottom, o, h.payloadForViz, t]), g = q.useMemo(() => Uz(e, t, o), [e, t]), b = q.useRef(), _ = et(p);
|
|
21936
|
-
|
|
21941
|
+
E(() => {
|
|
21937
21942
|
setTimeout(() => {
|
|
21938
21943
|
var M, V;
|
|
21939
21944
|
(V = _.current) == null || V.call(_, (M = b.current) == null ? void 0 : M.getOption());
|
|
@@ -22563,7 +22568,7 @@ function bT({
|
|
|
22563
22568
|
} = ye({
|
|
22564
22569
|
defaultValues: o
|
|
22565
22570
|
});
|
|
22566
|
-
return
|
|
22571
|
+
return E(() => {
|
|
22567
22572
|
d(o);
|
|
22568
22573
|
}, [o]), c(["dataZoom"]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(t), children: [
|
|
22569
22574
|
/* @__PURE__ */ r(Re, { canSubmit: h.isDirty }),
|
|
@@ -22816,7 +22821,7 @@ const $T = I(({
|
|
|
22816
22821
|
const _ = l.viz.conf.config;
|
|
22817
22822
|
return _.content ? un(_.content, d, o.payloadForViz, c) : "";
|
|
22818
22823
|
}, [c, l, d, o.payloadForViz]);
|
|
22819
|
-
|
|
22824
|
+
E(() => {
|
|
22820
22825
|
rt(t, {
|
|
22821
22826
|
content: g
|
|
22822
22827
|
});
|
|
@@ -22828,7 +22833,7 @@ const $T = I(({
|
|
|
22828
22833
|
});
|
|
22829
22834
|
});
|
|
22830
22835
|
}, [l.variableValueMap, i, a]);
|
|
22831
|
-
return
|
|
22836
|
+
return E(() => {
|
|
22832
22837
|
if (!n.current)
|
|
22833
22838
|
return;
|
|
22834
22839
|
const _ = n.current.querySelector(".ProseMirror");
|
|
@@ -22837,8 +22842,8 @@ const $T = I(({
|
|
|
22837
22842
|
const {
|
|
22838
22843
|
offsetWidth: w,
|
|
22839
22844
|
offsetHeight: S
|
|
22840
|
-
} = _, M = h / w, V = p / S,
|
|
22841
|
-
_.style.transform = `scale(${
|
|
22845
|
+
} = _, M = h / w, V = p / S, O = Math.min(M, V);
|
|
22846
|
+
_.style.transform = `scale(${O})`;
|
|
22842
22847
|
}, [n.current, h, p, g]), /* @__PURE__ */ r(Fe, { className: "viz-stats", sx: {
|
|
22843
22848
|
width: h,
|
|
22844
22849
|
height: p
|
|
@@ -23121,7 +23126,7 @@ function YT({
|
|
|
23121
23126
|
} = e.viewport, c = J((b) => {
|
|
23122
23127
|
rt(t, b);
|
|
23123
23128
|
}, [t]), d = T(() => UT(i, o, n), [i, o, n]), h = q.useRef(), p = et(c);
|
|
23124
|
-
|
|
23129
|
+
E(() => {
|
|
23125
23130
|
setTimeout(() => {
|
|
23126
23131
|
var b, _;
|
|
23127
23132
|
(_ = p.current) == null || _.call(p, (b = h.current) == null ? void 0 : b.getOption());
|
|
@@ -23253,7 +23258,7 @@ function e3({
|
|
|
23253
23258
|
} = ye({
|
|
23254
23259
|
defaultValues: o
|
|
23255
23260
|
});
|
|
23256
|
-
|
|
23261
|
+
E(() => {
|
|
23257
23262
|
h(o);
|
|
23258
23263
|
}, [o]), c(["label_key", "value_key", "group_key", "levels"]);
|
|
23259
23264
|
const [p, g] = H("Data");
|
|
@@ -24142,12 +24147,12 @@ function ll({
|
|
|
24142
24147
|
getPaginationRowModel: a.pagination.page_size > 0 ? Am() : void 0,
|
|
24143
24148
|
getExpandedRowModel: Em()
|
|
24144
24149
|
});
|
|
24145
|
-
|
|
24150
|
+
E(() => {
|
|
24146
24151
|
delete V._getCoreRowModel, h();
|
|
24147
|
-
}, [a.sub_rows_column_key]),
|
|
24152
|
+
}, [a.sub_rows_column_key]), E(() => {
|
|
24148
24153
|
a.pagination.page_size > 0 ? V.setPageSize(a.pagination.page_size) : V.resetPagination();
|
|
24149
24154
|
}, [a.pagination.page_size]);
|
|
24150
|
-
const
|
|
24155
|
+
const O = V.getRowModel().rows, j = q.useRef(null), U = O.length > 0, ae = U ? n - 22 : n, Z = U ? 22 : 0;
|
|
24151
24156
|
return /* @__PURE__ */ u("div", { ref: j, style: {
|
|
24152
24157
|
height: n,
|
|
24153
24158
|
width: t,
|
|
@@ -24168,7 +24173,7 @@ function ll({
|
|
|
24168
24173
|
/* @__PURE__ */ r(y3, { header: se, cx: g }),
|
|
24169
24174
|
/* @__PURE__ */ r(ee, { variant: "subtle", onMouseDown: se.getResizeHandler(), onTouchStart: se.getResizeHandler(), className: `resizer ${se.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(ai, {}) })
|
|
24170
24175
|
] }, se.id)) }, ie.id)) }),
|
|
24171
|
-
a.pagination.page_size > 0 ? /* @__PURE__ */ r(C3, { rows:
|
|
24176
|
+
a.pagination.page_size > 0 ? /* @__PURE__ */ r(C3, { rows: O }) : /* @__PURE__ */ r(S3, { tableContainerRef: j, rows: O })
|
|
24172
24177
|
] })
|
|
24173
24178
|
] });
|
|
24174
24179
|
}
|
|
@@ -24404,7 +24409,7 @@ const Y3 = te((e, t) => {
|
|
|
24404
24409
|
}, p = () => {
|
|
24405
24410
|
c(Ad);
|
|
24406
24411
|
};
|
|
24407
|
-
return
|
|
24412
|
+
return E(() => {
|
|
24408
24413
|
c(e);
|
|
24409
24414
|
}, [e]), /* @__PURE__ */ u(N, { children: [
|
|
24410
24415
|
/* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(nn, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
@@ -24604,7 +24609,7 @@ function i5({
|
|
|
24604
24609
|
value: n,
|
|
24605
24610
|
set: a
|
|
24606
24611
|
} = W(e.instanceData, "config"), i = T(() => Ue({}, n, Ed), [n]), o = T(() => a5(i), [i]);
|
|
24607
|
-
|
|
24612
|
+
E(() => {
|
|
24608
24613
|
!qe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
24609
24614
|
}, [i, o]);
|
|
24610
24615
|
const {
|
|
@@ -24616,7 +24621,7 @@ function i5({
|
|
|
24616
24621
|
} = ye({
|
|
24617
24622
|
defaultValues: o
|
|
24618
24623
|
});
|
|
24619
|
-
return
|
|
24624
|
+
return E(() => {
|
|
24620
24625
|
h(o);
|
|
24621
24626
|
}, [o]), c(["query_id"]), /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
24622
24627
|
/* @__PURE__ */ r(Re, { canSubmit: d.isDirty }),
|
|
@@ -24752,7 +24757,7 @@ const s5 = q.forwardRef(l5), c5 = ({
|
|
|
24752
24757
|
}, p = () => {
|
|
24753
24758
|
c(Qd);
|
|
24754
24759
|
};
|
|
24755
|
-
return
|
|
24760
|
+
return E(() => {
|
|
24756
24761
|
c(e);
|
|
24757
24762
|
}, [e]), /* @__PURE__ */ u(N, { children: [
|
|
24758
24763
|
/* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(nn, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
@@ -24792,7 +24797,7 @@ function u5({
|
|
|
24792
24797
|
font_weight: _
|
|
24793
24798
|
};
|
|
24794
24799
|
}, [i]);
|
|
24795
|
-
|
|
24800
|
+
E(() => {
|
|
24796
24801
|
!qe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
24797
24802
|
}, [i, o]);
|
|
24798
24803
|
const {
|
|
@@ -25131,7 +25136,7 @@ function F5({
|
|
|
25131
25136
|
formState: l,
|
|
25132
25137
|
reset: s
|
|
25133
25138
|
} = i;
|
|
25134
|
-
return
|
|
25139
|
+
return E(() => {
|
|
25135
25140
|
s(a);
|
|
25136
25141
|
}, [a]), /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
25137
25142
|
/* @__PURE__ */ r(Re, { canSubmit: l.isDirty }),
|
|
@@ -25311,7 +25316,7 @@ function X5({
|
|
|
25311
25316
|
} = ye({
|
|
25312
25317
|
defaultValues: a
|
|
25313
25318
|
});
|
|
25314
|
-
return
|
|
25319
|
+
return E(() => {
|
|
25315
25320
|
c(a);
|
|
25316
25321
|
}, [a]), l(["expertSystemURL", "goal", "path", "question"]), /* @__PURE__ */ r("form", { onSubmit: o(n), children: /* @__PURE__ */ u(D, { children: [
|
|
25317
25322
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -25549,7 +25554,7 @@ const uD = ({
|
|
|
25549
25554
|
setTrue: a,
|
|
25550
25555
|
setFalse: i
|
|
25551
25556
|
}] = ke(!1), [o, l] = H("");
|
|
25552
|
-
|
|
25557
|
+
E(() => {
|
|
25553
25558
|
l("");
|
|
25554
25559
|
}, [n]);
|
|
25555
25560
|
const s = () => {
|
|
@@ -25624,7 +25629,7 @@ function pD({
|
|
|
25624
25629
|
formState: s,
|
|
25625
25630
|
reset: c
|
|
25626
25631
|
} = o;
|
|
25627
|
-
return
|
|
25632
|
+
return E(() => {
|
|
25628
25633
|
o.reset(i);
|
|
25629
25634
|
}, [i]), /* @__PURE__ */ u("form", { onSubmit: l((h) => {
|
|
25630
25635
|
const p = h;
|
|
@@ -25762,7 +25767,7 @@ function Xd({
|
|
|
25762
25767
|
lang: e,
|
|
25763
25768
|
children: t
|
|
25764
25769
|
}) {
|
|
25765
|
-
return
|
|
25770
|
+
return E(() => {
|
|
25766
25771
|
Fr.changeLanguage(e);
|
|
25767
25772
|
}, [e]), /* @__PURE__ */ r(Nh, { i18n: Fr, children: t });
|
|
25768
25773
|
}
|
|
@@ -25883,7 +25888,7 @@ class yD {
|
|
|
25883
25888
|
};
|
|
25884
25889
|
}
|
|
25885
25890
|
}
|
|
25886
|
-
class
|
|
25891
|
+
class PR {
|
|
25887
25892
|
constructor(t) {
|
|
25888
25893
|
this.implementation = t;
|
|
25889
25894
|
}
|
|
@@ -27958,7 +27963,7 @@ const a6 = {
|
|
|
27958
27963
|
name: "FilterTreeSelectWidget"
|
|
27959
27964
|
}), [b, _] = H(!1), w = (Z) => {
|
|
27960
27965
|
_(Z);
|
|
27961
|
-
}, S = b && (i == null ? void 0 : i.length) > 0, M = XD(l, i, o, d), [V,
|
|
27966
|
+
}, S = b && (i == null ? void 0 : i.length) > 0, M = XD(l, i, o, d), [V, O] = H(""), j = r6(l, i), U = J((Z) => {
|
|
27962
27967
|
const ie = i.filter((se) => se.value !== Z);
|
|
27963
27968
|
o(ie);
|
|
27964
27969
|
}, [i, o]), ae = J(() => {
|
|
@@ -28007,7 +28012,7 @@ const a6 = {
|
|
|
28007
28012
|
count: i.length
|
|
28008
28013
|
}),
|
|
28009
28014
|
searchValue: V,
|
|
28010
|
-
onSearch:
|
|
28015
|
+
onSearch: O,
|
|
28011
28016
|
dropdownRender: (Z) => /* @__PURE__ */ u(Fe, { gap: 0, direction: "row", children: [
|
|
28012
28017
|
/* @__PURE__ */ u(D, { gap: 0, style: {
|
|
28013
28018
|
flex: "1 1 60%",
|
|
@@ -29280,7 +29285,7 @@ const ku = m.model("ViewDivisionConfig", {
|
|
|
29280
29285
|
const n = e.panelIDs.filter((a) => a !== t);
|
|
29281
29286
|
e.panelIDs.length = 0, e.panelIDs.push(...n);
|
|
29282
29287
|
}
|
|
29283
|
-
})), xn = "14.32.0",
|
|
29288
|
+
})), xn = "14.32.0", AR = {
|
|
29284
29289
|
definition: {
|
|
29285
29290
|
sqlSnippets: [],
|
|
29286
29291
|
queries: [],
|
|
@@ -31502,12 +31507,12 @@ const H6 = (e) => new Q6(e), G6 = ({
|
|
|
31502
31507
|
return ((Ve = se.description) == null ? void 0 : Ve.toLowerCase().includes(Z)) || se.label.toLowerCase().includes(Z);
|
|
31503
31508
|
};
|
|
31504
31509
|
return l.filter(ie);
|
|
31505
|
-
}, [S, l]),
|
|
31510
|
+
}, [S, l]), O = T(() => new Set(l.map((Z) => Z.value)), [l]), j = T(() => new Set(i), [i]), U = T(() => j.size !== O.size ? !1 : Array.from(O).every((Z) => j.has(Z)), [j, O]), ae = () => {
|
|
31506
31511
|
if (U) {
|
|
31507
31512
|
o([]);
|
|
31508
31513
|
return;
|
|
31509
31514
|
}
|
|
31510
|
-
const Z = Array.from(
|
|
31515
|
+
const Z = Array.from(O);
|
|
31511
31516
|
o(Z);
|
|
31512
31517
|
};
|
|
31513
31518
|
return /* @__PURE__ */ u(D, { gap: 3, children: [
|
|
@@ -31523,7 +31528,7 @@ const H6 = (e) => new Q6(e), G6 = ({
|
|
|
31523
31528
|
/* @__PURE__ */ r(zg, { disabled: e, allowClear: !0, className: p(h.root, "check-select"), dropdownClassName: p(h.dropdown, ""), onDropdownVisibleChange: _, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: n, clearIcon: () => /* @__PURE__ */ r(pt, { size: "sm" }), value: i, onChange: o, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r(lo, { errorMessage: s }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => d("filter.widget.common.x_selected", {
|
|
31524
31529
|
count: Z.length
|
|
31525
31530
|
}), searchValue: S, onSearch: M, filterOption: !1, dropdownRender: (Z) => /* @__PURE__ */ u(N, { children: [
|
|
31526
|
-
|
|
31531
|
+
O.size > 0 && !S && /* @__PURE__ */ r(v, { px: "xs", py: "xs", onClick: ae, styles: t4, children: /* @__PURE__ */ r(ne, { size: "xs", checked: U, onChange: z.noop, label: d("common.actions.select_all") }) }),
|
|
31527
31532
|
/* @__PURE__ */ r(P, {}),
|
|
31528
31533
|
Z
|
|
31529
31534
|
] }), children: V.map((Z) => /* @__PURE__ */ u(Tg, { title: Z.label, children: [
|
|
@@ -31714,9 +31719,9 @@ const p4 = (e, t, n) => {
|
|
|
31714
31719
|
const j = M.getTime() < w.getTime() ? [M, S] : [w, V];
|
|
31715
31720
|
s(j), t(j);
|
|
31716
31721
|
};
|
|
31717
|
-
|
|
31722
|
+
E(() => {
|
|
31718
31723
|
s(e.value);
|
|
31719
|
-
}, [e]),
|
|
31724
|
+
}, [e]), E(() => {
|
|
31720
31725
|
s([null, null]);
|
|
31721
31726
|
}, [n]);
|
|
31722
31727
|
const d = T(() => n ? null : l[0] ? A(l[0]) : null, [l, n]), h = T(() => n ? null : l[0] ? A(l[0]).add(365, "days") : null, [l, n]), p = J((b) => {
|
|
@@ -31746,8 +31751,8 @@ const p4 = (e, t, n) => {
|
|
|
31746
31751
|
};
|
|
31747
31752
|
const {
|
|
31748
31753
|
start: V,
|
|
31749
|
-
end:
|
|
31750
|
-
} = M, j = d4(_, V, l), U = u4(_,
|
|
31754
|
+
end: O
|
|
31755
|
+
} = M, j = d4(_, V, l), U = u4(_, O), ae = c4(b, S, l, a), Z = ae && j, ie = ae && U, se = _.isBefore(d) || _.isAfter(h);
|
|
31751
31756
|
return {
|
|
31752
31757
|
onMouseEnter: () => o(b),
|
|
31753
31758
|
onMouseLeave: () => o(null),
|
|
@@ -31755,7 +31760,7 @@ const p4 = (e, t, n) => {
|
|
|
31755
31760
|
firstInRange: Z,
|
|
31756
31761
|
lastInRange: ie,
|
|
31757
31762
|
selected: j || U,
|
|
31758
|
-
onClick: () => c(V,
|
|
31763
|
+
onClick: () => c(V, O),
|
|
31759
31764
|
disabled: se
|
|
31760
31765
|
};
|
|
31761
31766
|
}, [i, t, a, n, d, h, l]);
|
|
@@ -32035,15 +32040,15 @@ const p4 = (e, t, n) => {
|
|
|
32035
32040
|
};
|
|
32036
32041
|
function R4(e) {
|
|
32037
32042
|
const t = de();
|
|
32038
|
-
|
|
32043
|
+
E(() => {
|
|
32039
32044
|
var n, a;
|
|
32040
32045
|
(a = (n = t.filters).updatePreviewValues) == null || a.call(n, e);
|
|
32041
32046
|
}, [e]);
|
|
32042
32047
|
}
|
|
32043
32048
|
const go = "N/A";
|
|
32044
|
-
function
|
|
32049
|
+
function ER() {
|
|
32045
32050
|
const e = ra(), [t, n] = H([]);
|
|
32046
|
-
return
|
|
32051
|
+
return E(() => {
|
|
32047
32052
|
const a = np(() => e.content.views.visibleViews.map((c) => {
|
|
32048
32053
|
var d;
|
|
32049
32054
|
return c.type === Y.Tabs ? (d = c.tabView) == null ? void 0 : d.view_id : c.id;
|
|
@@ -32134,11 +32139,11 @@ const F4 = ({
|
|
|
32134
32139
|
}), d = pm({
|
|
32135
32140
|
control: o
|
|
32136
32141
|
});
|
|
32137
|
-
|
|
32142
|
+
E(() => {
|
|
32138
32143
|
s(i.filters.values);
|
|
32139
32144
|
}, [i.filters.values, s]), R4(d);
|
|
32140
|
-
const h = i.filters.visibleInView(t.id), p = T(() => h.every((S) => S.should_auto_submit), [h]), g = T(() => h.filter((S) => z.get(S, "config.required", !1)), [h]), b = T(() => g.length === 0 ? !1 : g.some((S) => !S.requiredAndPass(d[S.key])), [d, g]), _ = (S, M) => (V,
|
|
32141
|
-
M(V), (S.should_auto_submit ||
|
|
32145
|
+
const h = i.filters.visibleInView(t.id), p = T(() => h.every((S) => S.should_auto_submit), [h]), g = T(() => h.filter((S) => z.get(S, "config.required", !1)), [h]), b = T(() => g.length === 0 ? !1 : g.some((S) => !S.requiredAndPass(d[S.key])), [d, g]), _ = (S, M) => (V, O) => {
|
|
32146
|
+
M(V), (S.should_auto_submit || O) && i.filters.setValueByKey(S.key, V);
|
|
32142
32147
|
}, w = J((S) => {
|
|
32143
32148
|
const M = z.get(S, "force", !1);
|
|
32144
32149
|
l(i.filters.setValues)(), M && i.queries.forceReloadVisibleQueries();
|
|
@@ -32419,7 +32424,7 @@ function sh(e, t) {
|
|
|
32419
32424
|
const n = la().getRequired(Se.instanceScope.vizInstance);
|
|
32420
32425
|
return Wn(async () => {
|
|
32421
32426
|
qe(await n.instanceData.getItem(null), t.viz.conf) || await n.instanceData.setItem(null, t.viz.conf);
|
|
32422
|
-
}, [n, t.viz.conf]),
|
|
32427
|
+
}, [n, t.viz.conf]), E(() => n.instanceData.watchItem(null, (a) => {
|
|
32423
32428
|
e(a);
|
|
32424
32429
|
}), [e, t.viz.type]), n;
|
|
32425
32430
|
}
|
|
@@ -32508,7 +32513,7 @@ function tI(e) {
|
|
|
32508
32513
|
const {
|
|
32509
32514
|
setEchartsOptions: t
|
|
32510
32515
|
} = $e();
|
|
32511
|
-
|
|
32516
|
+
E(() => {
|
|
32512
32517
|
const n = (i) => {
|
|
32513
32518
|
t(i);
|
|
32514
32519
|
}, a = e.messageChannels.getChannel("viz");
|
|
@@ -32579,7 +32584,7 @@ function lI(e) {
|
|
|
32579
32584
|
const t = xt(null), n = J((a) => {
|
|
32580
32585
|
t.current = a;
|
|
32581
32586
|
}, []);
|
|
32582
|
-
return
|
|
32587
|
+
return E(() => {
|
|
32583
32588
|
t.current = null;
|
|
32584
32589
|
}, [e]), {
|
|
32585
32590
|
getEchartsOptions: () => t.current,
|
|
@@ -32922,7 +32927,7 @@ function II(e, t, n) {
|
|
|
32922
32927
|
fullScreenPanel: d
|
|
32923
32928
|
};
|
|
32924
32929
|
}
|
|
32925
|
-
function
|
|
32930
|
+
function OR(e) {
|
|
32926
32931
|
const t = ra(), n = T(() => t.content.panels.findByID(e.panelId), [e.panelId]);
|
|
32927
32932
|
return n ? /* @__PURE__ */ r(N4, { withAddon: !1, withPanelTitle: !1, withInteraction: !1, children: /* @__PURE__ */ r(bo, { panel: n, panelStyle: {} }) }) : null;
|
|
32928
32933
|
}
|
|
@@ -33122,7 +33127,7 @@ const AI = I(({
|
|
|
33122
33127
|
view: t
|
|
33123
33128
|
}) => {
|
|
33124
33129
|
const a = de().layouts, [i, o] = wp();
|
|
33125
|
-
return
|
|
33130
|
+
return E(() => {
|
|
33126
33131
|
a.setCurrentLayoutWrapperWidth(o.width);
|
|
33127
33132
|
}, [o.width]), /* @__PURE__ */ r(R, { sx: {
|
|
33128
33133
|
height: "100%"
|
|
@@ -33360,7 +33365,7 @@ const BI = I(({
|
|
|
33360
33365
|
] }) });
|
|
33361
33366
|
});
|
|
33362
33367
|
var KI = /* @__PURE__ */ ((e) => (e.Use = "use", e.Edit = "edit", e))(KI || {});
|
|
33363
|
-
const
|
|
33368
|
+
const qR = {
|
|
33364
33369
|
[Y.Division]: "Division",
|
|
33365
33370
|
[Y.Tabs]: "Tabs",
|
|
33366
33371
|
[Y.Modal]: "Modal"
|
|
@@ -33368,7 +33373,7 @@ const OR = {
|
|
|
33368
33373
|
[Y.Division]: "rgba(255, 0, 0, 0.2)",
|
|
33369
33374
|
[Y.Modal]: "rgba(0, 0, 0, 0.2)",
|
|
33370
33375
|
[Y.Tabs]: "rgba(255, 200, 100, 0.4)"
|
|
33371
|
-
},
|
|
33376
|
+
}, FR = {
|
|
33372
33377
|
[Y.Division]: "#ff4000",
|
|
33373
33378
|
[Y.Modal]: "#000",
|
|
33374
33379
|
[Y.Tabs]: "#ffad18"
|
|
@@ -35154,7 +35159,7 @@ const I8 = m.model({
|
|
|
35154
35159
|
}, e);
|
|
35155
35160
|
}
|
|
35156
35161
|
});
|
|
35157
|
-
function
|
|
35162
|
+
function NR(e, t) {
|
|
35158
35163
|
t.filters && We(e.filters.current, t.filters);
|
|
35159
35164
|
}
|
|
35160
35165
|
function M8({
|
|
@@ -35275,7 +35280,7 @@ function An(e) {
|
|
|
35275
35280
|
console.groupCollapsed("Running operation ", e.type), console.log(e), console.groupEnd();
|
|
35276
35281
|
}
|
|
35277
35282
|
function _h(e, t) {
|
|
35278
|
-
|
|
35283
|
+
E(() => {
|
|
35279
35284
|
const a = (i) => {
|
|
35280
35285
|
An(i);
|
|
35281
35286
|
const {
|
|
@@ -35292,7 +35297,7 @@ function _h(e, t) {
|
|
|
35292
35297
|
};
|
|
35293
35298
|
}, [e, t]);
|
|
35294
35299
|
const n = Ig();
|
|
35295
|
-
|
|
35300
|
+
E(() => {
|
|
35296
35301
|
const a = (i) => {
|
|
35297
35302
|
An(i);
|
|
35298
35303
|
const {
|
|
@@ -35312,7 +35317,7 @@ function _h(e, t) {
|
|
|
35312
35317
|
return window.addEventListener("scroll_to_panel", a), () => {
|
|
35313
35318
|
window.removeEventListener("scroll_to_panel", a);
|
|
35314
35319
|
};
|
|
35315
|
-
}, [n]),
|
|
35320
|
+
}, [n]), E(() => {
|
|
35316
35321
|
const a = (i) => {
|
|
35317
35322
|
An(i);
|
|
35318
35323
|
const {
|
|
@@ -35333,7 +35338,7 @@ function _h(e, t) {
|
|
|
35333
35338
|
return window.addEventListener("switch_tab", a), () => {
|
|
35334
35339
|
window.removeEventListener("switch_tab", a);
|
|
35335
35340
|
};
|
|
35336
|
-
}, [e, t]),
|
|
35341
|
+
}, [e, t]), E(() => {
|
|
35337
35342
|
const a = (i) => {
|
|
35338
35343
|
An(i);
|
|
35339
35344
|
const {
|
|
@@ -35353,7 +35358,7 @@ function _h(e, t) {
|
|
|
35353
35358
|
return window.addEventListener("set-filter-values", a), () => {
|
|
35354
35359
|
window.removeEventListener("set-filter-values", a);
|
|
35355
35360
|
};
|
|
35356
|
-
}, [e]),
|
|
35361
|
+
}, [e]), E(() => {
|
|
35357
35362
|
function a(o) {
|
|
35358
35363
|
return Array.isArray(o) ? [] : typeof o == "object" ? {} : typeof o == "boolean" ? !1 : typeof o == "string" ? "" : typeof o == "number" ? 0 : o;
|
|
35359
35364
|
}
|
|
@@ -35370,7 +35375,7 @@ function _h(e, t) {
|
|
|
35370
35375
|
return window.addEventListener("clear-filter-values", i), () => {
|
|
35371
35376
|
window.removeEventListener("clear-filter-values", i);
|
|
35372
35377
|
};
|
|
35373
|
-
}, [e]),
|
|
35378
|
+
}, [e]), E(() => {
|
|
35374
35379
|
const a = (i) => {
|
|
35375
35380
|
An(i);
|
|
35376
35381
|
const {
|
|
@@ -35537,7 +35542,7 @@ const $8 = I(({
|
|
|
35537
35542
|
}) => {
|
|
35538
35543
|
const ie = Z.filter((se) => Number.isFinite(se.breakpoint));
|
|
35539
35544
|
a.updateLayoutSetsInfo(ie), e();
|
|
35540
|
-
}, V = c(),
|
|
35545
|
+
}, V = c(), O = T(() => {
|
|
35541
35546
|
const Z = {
|
|
35542
35547
|
list: V.list.filter((ie) => !!ie.name && Number.isFinite(ie.breakpoint))
|
|
35543
35548
|
};
|
|
@@ -35592,8 +35597,8 @@ const $8 = I(({
|
|
|
35592
35597
|
] }),
|
|
35593
35598
|
/* @__PURE__ */ r(k, { mt: 6, ta: "right", size: "xs", c: "red", children: j ?? " " }),
|
|
35594
35599
|
/* @__PURE__ */ u(v, { mt: 6, justify: "space-between", children: [
|
|
35595
|
-
/* @__PURE__ */ r(L, { color: "orange", size: "xs", onClick: () => d(), leftSection: /* @__PURE__ */ r(Ct, { size: 18 }), disabled: !
|
|
35596
|
-
/* @__PURE__ */ r(L, { color: "green", size: "xs", type: "submit", leftSection: /* @__PURE__ */ r(_e, { size: 18 }), disabled: !
|
|
35600
|
+
/* @__PURE__ */ r(L, { color: "orange", size: "xs", onClick: () => d(), leftSection: /* @__PURE__ */ r(Ct, { size: 18 }), disabled: !O, children: t("common.actions.revert") }),
|
|
35601
|
+
/* @__PURE__ */ r(L, { color: "green", size: "xs", type: "submit", leftSection: /* @__PURE__ */ r(_e, { size: 18 }), disabled: !O, children: t("common.actions.save_changes") })
|
|
35597
35602
|
] })
|
|
35598
35603
|
] }) });
|
|
35599
35604
|
}), E8 = I(() => {
|
|
@@ -35821,12 +35826,12 @@ const W8 = I(({
|
|
|
35821
35826
|
content: null
|
|
35822
35827
|
}
|
|
35823
35828
|
}), p = ({
|
|
35824
|
-
content:
|
|
35829
|
+
content: O
|
|
35825
35830
|
}) => {
|
|
35826
35831
|
try {
|
|
35827
|
-
if (!
|
|
35832
|
+
if (!O)
|
|
35828
35833
|
throw new Error("please use a valid json file");
|
|
35829
|
-
i.applyJSONSchema(
|
|
35834
|
+
i.applyJSONSchema(O), cn({
|
|
35830
35835
|
title: "Successful",
|
|
35831
35836
|
message: "",
|
|
35832
35837
|
color: "green"
|
|
@@ -35839,11 +35844,11 @@ const W8 = I(({
|
|
|
35839
35844
|
});
|
|
35840
35845
|
}
|
|
35841
35846
|
}, [g, b] = H(null);
|
|
35842
|
-
|
|
35847
|
+
E(() => {
|
|
35843
35848
|
if (!g)
|
|
35844
35849
|
return;
|
|
35845
|
-
const
|
|
35846
|
-
|
|
35850
|
+
const O = new FileReader();
|
|
35851
|
+
O.readAsText(g, "UTF-8"), O.onload = (j) => {
|
|
35847
35852
|
try {
|
|
35848
35853
|
const U = G8(j);
|
|
35849
35854
|
s("content", U), h("content");
|
|
@@ -35853,15 +35858,15 @@ const W8 = I(({
|
|
|
35853
35858
|
message: U.message
|
|
35854
35859
|
});
|
|
35855
35860
|
}
|
|
35856
|
-
},
|
|
35857
|
-
|
|
35861
|
+
}, O.onabort = () => console.log("🟨 abort"), O.onerror = () => {
|
|
35862
|
+
O.error && (console.error(O.error), d("content", {
|
|
35858
35863
|
type: "custom",
|
|
35859
|
-
message:
|
|
35864
|
+
message: O.error.message
|
|
35860
35865
|
}));
|
|
35861
35866
|
};
|
|
35862
35867
|
}, [g]);
|
|
35863
35868
|
const [_] = c(["content"]), w = !_, S = (M = l == null ? void 0 : l.content) == null ? void 0 : M.message;
|
|
35864
|
-
return
|
|
35869
|
+
return E(() => {
|
|
35865
35870
|
!_ || S ? n() : t();
|
|
35866
35871
|
}, [_, S]), /* @__PURE__ */ r(R, { mx: "auto", sx: {
|
|
35867
35872
|
position: "relative"
|
|
@@ -37292,7 +37297,7 @@ const IM = I(() => {
|
|
|
37292
37297
|
} = t, [a, i] = ss(n), o = n !== a, l = q.useCallback(() => {
|
|
37293
37298
|
o && t.setName(a);
|
|
37294
37299
|
}, [o, a]);
|
|
37295
|
-
|
|
37300
|
+
E(() => {
|
|
37296
37301
|
i(n);
|
|
37297
37302
|
}, [n]);
|
|
37298
37303
|
const s = !a.trim();
|
|
@@ -37506,7 +37511,7 @@ const e9 = [{
|
|
|
37506
37511
|
}, [e, i]), d = () => {
|
|
37507
37512
|
i.queries.downloadDataByQueryID(null, e);
|
|
37508
37513
|
};
|
|
37509
|
-
|
|
37514
|
+
E(() => {
|
|
37510
37515
|
n && c();
|
|
37511
37516
|
}, [c, n]);
|
|
37512
37517
|
const h = !Array.isArray(o) || o.length === 0;
|
|
@@ -37601,7 +37606,7 @@ const c9 = I(({
|
|
|
37601
37606
|
const {
|
|
37602
37607
|
t: n
|
|
37603
37608
|
} = y(), [a, i] = ss(e);
|
|
37604
|
-
|
|
37609
|
+
E(() => {
|
|
37605
37610
|
i(e);
|
|
37606
37611
|
}, [e]);
|
|
37607
37612
|
const o = s9(), l = e !== a;
|
|
@@ -37694,7 +37699,7 @@ const h9 = I(() => {
|
|
|
37694
37699
|
const {
|
|
37695
37700
|
t: n
|
|
37696
37701
|
} = y(), a = de(), [i, o] = H(t);
|
|
37697
|
-
|
|
37702
|
+
E(() => {
|
|
37698
37703
|
o(t);
|
|
37699
37704
|
}, [t]);
|
|
37700
37705
|
const [l, {
|
|
@@ -37955,7 +37960,7 @@ const S9 = I(({
|
|
|
37955
37960
|
const {
|
|
37956
37961
|
t
|
|
37957
37962
|
} = y(), n = Ft(), a = ue(), i = de(), [o, l] = H(a.editor.panelTab), s = e.queries, d = w9(e.viz.type) && e.dataLoading, h = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || s.length === 0, p = a.editor.path[1];
|
|
37958
|
-
|
|
37963
|
+
E(() => {
|
|
37959
37964
|
l((w) => h && w === "Visualization" ? "Data" : w);
|
|
37960
37965
|
}, [e.id, h]);
|
|
37961
37966
|
const g = J((w) => {
|
|
@@ -38477,7 +38482,7 @@ const P9 = I(({
|
|
|
38477
38482
|
const {
|
|
38478
38483
|
t
|
|
38479
38484
|
} = y(), n = e.dbInfo;
|
|
38480
|
-
return
|
|
38485
|
+
return E(() => {
|
|
38481
38486
|
n.loadTablesIfEmpty();
|
|
38482
38487
|
}, [n]), n.tables.error ? /* @__PURE__ */ r(k, { c: "red", size: "md", ta: "center", ff: "monospace", children: n.tables.error }) : /* @__PURE__ */ u(Fe, { sx: {
|
|
38483
38488
|
height: "100%"
|
|
@@ -38639,7 +38644,7 @@ const P9 = I(({
|
|
|
38639
38644
|
const {
|
|
38640
38645
|
t
|
|
38641
38646
|
} = y(), [n, a] = H(e.name);
|
|
38642
|
-
|
|
38647
|
+
E(() => {
|
|
38643
38648
|
a(e.name);
|
|
38644
38649
|
}, [e.name]);
|
|
38645
38650
|
const i = T(() => e.conditionOptionsWithInvalidRunbys.optionGroups.map((l) => ({
|
|
@@ -38852,7 +38857,7 @@ WHERE
|
|
|
38852
38857
|
}, s = () => {
|
|
38853
38858
|
i(X9);
|
|
38854
38859
|
};
|
|
38855
|
-
|
|
38860
|
+
E(() => {
|
|
38856
38861
|
i(n.sql);
|
|
38857
38862
|
}, [n.sql]);
|
|
38858
38863
|
const c = a !== n.sql;
|
|
@@ -38963,7 +38968,7 @@ WHERE
|
|
|
38963
38968
|
const {
|
|
38964
38969
|
t
|
|
38965
38970
|
} = y(), n = de(), a = T(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [i, o] = H(a);
|
|
38966
|
-
|
|
38971
|
+
E(() => {
|
|
38967
38972
|
o((c) => c !== "Configurations" && a === "Configurations" ? "Configurations" : c);
|
|
38968
38973
|
}, [a]);
|
|
38969
38974
|
const s = n.findQueryUsage(e.id).length === 0;
|
|
@@ -39241,7 +39246,7 @@ const uL = [{
|
|
|
39241
39246
|
}, [e.fetchData]), o = () => {
|
|
39242
39247
|
Ru(e.name, e.data);
|
|
39243
39248
|
};
|
|
39244
|
-
|
|
39249
|
+
E(() => {
|
|
39245
39250
|
i();
|
|
39246
39251
|
}, [i]);
|
|
39247
39252
|
const l = !Array.isArray(t) || t.length === 0;
|
|
@@ -39545,7 +39550,7 @@ const uL = [{
|
|
|
39545
39550
|
queryModel: e
|
|
39546
39551
|
}) => {
|
|
39547
39552
|
const t = e.config, a = e.datasource.mericoMetricInfo;
|
|
39548
|
-
return
|
|
39553
|
+
return E(() => {
|
|
39549
39554
|
a.selectMetric(t.id);
|
|
39550
39555
|
}, [t.id, a]), /* @__PURE__ */ u(D, { gap: 7, children: [
|
|
39551
39556
|
/* @__PURE__ */ u(v, { justify: "flex-start", gap: 8, children: [
|
|
@@ -39684,7 +39689,7 @@ const uL = [{
|
|
|
39684
39689
|
queryModel: e
|
|
39685
39690
|
}) => {
|
|
39686
39691
|
const t = e.config, a = e.datasource.mericoMetricInfo;
|
|
39687
|
-
return
|
|
39692
|
+
return E(() => {
|
|
39688
39693
|
a.selectMetric(t.id);
|
|
39689
39694
|
}, [t.id, a]), a.metricDetail.metricType !== "sql" ? null : /* @__PURE__ */ u(D, { gap: 7, children: [
|
|
39690
39695
|
/* @__PURE__ */ u(v, { justify: "flex-start", gap: 8, children: [
|
|
@@ -39828,7 +39833,7 @@ const uL = [{
|
|
|
39828
39833
|
queryModel: e
|
|
39829
39834
|
}) => {
|
|
39830
39835
|
const t = e.config, a = e.datasource.mericoMetricInfo, i = a.metricDetail, o = a.metrics.loading || i.loading, l = i.error, s = xt(t.timeQuery.enabled);
|
|
39831
|
-
if (
|
|
39836
|
+
if (E(() => {
|
|
39832
39837
|
if (s.current && !t.timeQuery.enabled) {
|
|
39833
39838
|
const d = vt(t.extraCalculations) || [], h = Gu(d, !1);
|
|
39834
39839
|
h.length !== d.length && t.setExtraCalculations(h);
|
|
@@ -39865,7 +39870,7 @@ const uL = [{
|
|
|
39865
39870
|
queryModel: e
|
|
39866
39871
|
}) => {
|
|
39867
39872
|
const t = e.config, n = t.id;
|
|
39868
|
-
|
|
39873
|
+
E(() => {
|
|
39869
39874
|
if (e.run_by.length === 0)
|
|
39870
39875
|
return;
|
|
39871
39876
|
const s = [], c = t.usedFilterVariableSet, d = t.usedTimeQueryVariableSet;
|
|
@@ -39950,9 +39955,9 @@ const uL = [{
|
|
|
39950
39955
|
queryModel: e
|
|
39951
39956
|
}) => {
|
|
39952
39957
|
const t = e.config, a = e.datasource.mericoMetricInfo, i = a.metrics;
|
|
39953
|
-
|
|
39958
|
+
E(() => {
|
|
39954
39959
|
i.load();
|
|
39955
|
-
}, [i]),
|
|
39960
|
+
}, [i]), E(() => {
|
|
39956
39961
|
!a.metricID && t.id && a.selectMetric(t.id);
|
|
39957
39962
|
}, [t.id]);
|
|
39958
39963
|
const o = T(() => i.data.map((h) => ({
|
|
@@ -40056,7 +40061,7 @@ const uL = [{
|
|
|
40056
40061
|
}, d = l !== e.key, h = e.isADuplicatedKey(l), [p, g] = H(e.value), b = () => {
|
|
40057
40062
|
e.setValue(p);
|
|
40058
40063
|
};
|
|
40059
|
-
|
|
40064
|
+
E(() => {
|
|
40060
40065
|
s(e.key), g(e.value);
|
|
40061
40066
|
}, [e]);
|
|
40062
40067
|
const _ = p !== e.value, w = Ft(), S = () => {
|
|
@@ -40579,7 +40584,7 @@ const uL = [{
|
|
|
40579
40584
|
const {
|
|
40580
40585
|
t
|
|
40581
40586
|
} = y(), n = de(), a = ue().editor, i = a.isOptionActive, o = i(a.path, e), l = a.isOptionOpened, s = a.navigate, c = l(e), [d, h] = H(c);
|
|
40582
|
-
|
|
40587
|
+
E(() => {
|
|
40583
40588
|
h(c);
|
|
40584
40589
|
}, [c]);
|
|
40585
40590
|
const p = e._type === "query";
|
|
@@ -40667,7 +40672,7 @@ const uL = [{
|
|
|
40667
40672
|
] }) });
|
|
40668
40673
|
}), SV = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
40669
40674
|
function CV(e) {
|
|
40670
|
-
|
|
40675
|
+
E(() => {
|
|
40671
40676
|
if (va.__getMonacoInstance())
|
|
40672
40677
|
return;
|
|
40673
40678
|
console.log("loading monaco for @devtable/dashboard");
|
|
@@ -40684,7 +40689,7 @@ const kV = (e) => {
|
|
|
40684
40689
|
const a = n || window.event;
|
|
40685
40690
|
return a.preventDefault(), a && (a.returnValue = ""), "";
|
|
40686
40691
|
}, []);
|
|
40687
|
-
|
|
40692
|
+
E(() => {
|
|
40688
40693
|
if (e)
|
|
40689
40694
|
return window.addEventListener("beforeunload", t), () => {
|
|
40690
40695
|
window.removeEventListener("beforeunload", t);
|
|
@@ -40748,7 +40753,7 @@ const zV = {
|
|
|
40748
40753
|
}), [S]);
|
|
40749
40754
|
const M = async () => {
|
|
40750
40755
|
await a(S.json, S.content.json);
|
|
40751
|
-
}, V = Pt(ao, []),
|
|
40756
|
+
}, V = Pt(ao, []), O = vh(V);
|
|
40752
40757
|
return kV(S.content.changed), as("@devtable/dashboard editor", {
|
|
40753
40758
|
context: e,
|
|
40754
40759
|
dashboard: t,
|
|
@@ -40770,7 +40775,7 @@ const zV = {
|
|
|
40770
40775
|
inEditMode: !0
|
|
40771
40776
|
}, children: [
|
|
40772
40777
|
/* @__PURE__ */ r(J8, {}),
|
|
40773
|
-
/* @__PURE__ */ r(an.Provider, { value: V, children: /* @__PURE__ */ u(oa, { configure:
|
|
40778
|
+
/* @__PURE__ */ r(an.Provider, { value: V, children: /* @__PURE__ */ u(oa, { configure: O, children: [
|
|
40774
40779
|
/* @__PURE__ */ u(st, { padding: 0, navbar: {
|
|
40775
40780
|
width: {
|
|
40776
40781
|
base: 200,
|
|
@@ -40792,7 +40797,7 @@ const zV = {
|
|
|
40792
40797
|
/* @__PURE__ */ r(wV, {})
|
|
40793
40798
|
] }) })
|
|
40794
40799
|
] }) }) }) }) }) }) }) }) });
|
|
40795
|
-
},
|
|
40800
|
+
}, BR = I(te(TV));
|
|
40796
40801
|
const Ah = m.model({
|
|
40797
40802
|
id: m.string,
|
|
40798
40803
|
name: m.string,
|
|
@@ -41050,8 +41055,8 @@ const LV = ({
|
|
|
41050
41055
|
setFullScreenPanelID: l
|
|
41051
41056
|
}, children: /* @__PURE__ */ r(Xn.Provider, { value: {
|
|
41052
41057
|
inEditMode: !1
|
|
41053
|
-
}, children: /* @__PURE__ */ r(R, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(an.Provider, { value: M, children: /* @__PURE__ */ r(oa, { configure: V, children: S.content.views.visibleViews.map((
|
|
41054
|
-
},
|
|
41058
|
+
}, children: /* @__PURE__ */ r(R, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(an.Provider, { value: M, children: /* @__PURE__ */ r(oa, { configure: V, children: S.content.views.visibleViews.map((O) => /* @__PURE__ */ r(vo, { view: O }, O.id)) }) }) }) }) }) }) }) }) }) }) }) }) }) });
|
|
41059
|
+
}, jR = I(LV), QR = () => Promise.resolve().then(() => Xg).then(({
|
|
41055
41060
|
version: e
|
|
41056
41061
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
41057
41062
|
export {
|
|
@@ -41059,7 +41064,8 @@ export {
|
|
|
41059
41064
|
hc as AdditionalPanelMenuItemsContext,
|
|
41060
41065
|
pc as AdditionalPanelMenuItemsContextProvider,
|
|
41061
41066
|
xn as CURRENT_SCHEMA_VERSION,
|
|
41062
|
-
|
|
41067
|
+
OR as ClientPanelRender,
|
|
41068
|
+
Zg as ColorManager,
|
|
41063
41069
|
yh as ContentModel,
|
|
41064
41070
|
ac as ContentModelContext,
|
|
41065
41071
|
ic as ContentModelContextProvider,
|
|
@@ -41068,7 +41074,7 @@ export {
|
|
|
41068
41074
|
ja as DEFAULT_CUSTOM_MODAL_TITLE,
|
|
41069
41075
|
_D as DashboardApiClient,
|
|
41070
41076
|
vD as DashboardApiFacadeClient,
|
|
41071
|
-
|
|
41077
|
+
BR as DashboardEditor,
|
|
41072
41078
|
G as DashboardFilterType,
|
|
41073
41079
|
KI as DashboardMode,
|
|
41074
41080
|
L8 as DashboardModel,
|
|
@@ -41086,7 +41092,7 @@ export {
|
|
|
41086
41092
|
ah as DescriptionPopover,
|
|
41087
41093
|
Q6 as DraftModel,
|
|
41088
41094
|
Y as EViewComponentType,
|
|
41089
|
-
|
|
41095
|
+
PR as FacadeApiClient,
|
|
41090
41096
|
ou as FilterCheckboxConfigMeta,
|
|
41091
41097
|
du as FilterDateRangeConfigMeta,
|
|
41092
41098
|
Cu as FilterMericoDateRangeConfigMeta,
|
|
@@ -41110,6 +41116,7 @@ export {
|
|
|
41110
41116
|
au as MericoMetricQueryMeta,
|
|
41111
41117
|
Jd as MockContextMeta,
|
|
41112
41118
|
q6 as MuteQueryModel,
|
|
41119
|
+
Jg as OperationManager,
|
|
41113
41120
|
kI as Panel,
|
|
41114
41121
|
sc as PanelContextProvider,
|
|
41115
41122
|
rI as PanelErrorOrStateMessage,
|
|
@@ -41124,20 +41131,25 @@ export {
|
|
|
41124
41131
|
ch as PanelVizSection,
|
|
41125
41132
|
z8 as PanelsModel,
|
|
41126
41133
|
Au as PanelsRenderModel,
|
|
41134
|
+
an as PluginContext,
|
|
41135
|
+
Nf as PluginDataMigrator,
|
|
41127
41136
|
e8 as QueriesModel,
|
|
41128
41137
|
Ku as QueriesRenderModel,
|
|
41129
41138
|
VD as QueryMeta,
|
|
41130
41139
|
JI as QueryModel,
|
|
41131
41140
|
Wu as QueryRenderModel,
|
|
41132
|
-
|
|
41141
|
+
jR as ReadOnlyDashboard,
|
|
41133
41142
|
PD as SQLSnippetMeta,
|
|
41134
41143
|
B6 as SQLSnippetRenderModel,
|
|
41135
41144
|
t8 as SQLSnippetsModel,
|
|
41136
41145
|
Yu as SQLSnippetsRenderModel,
|
|
41146
|
+
bi as ServiceLocator,
|
|
41147
|
+
Yg as Token,
|
|
41137
41148
|
kD as VariableMeta,
|
|
41149
|
+
we as VersionBasedMigrator,
|
|
41138
41150
|
UI as ViewComponentTypeBackground,
|
|
41139
|
-
|
|
41140
|
-
|
|
41151
|
+
FR as ViewComponentTypeColor,
|
|
41152
|
+
qR as ViewComponentTypeName,
|
|
41141
41153
|
ku as ViewDivisionConfig,
|
|
41142
41154
|
k6 as ViewMeta,
|
|
41143
41155
|
zu as ViewModalConfig,
|
|
@@ -41146,7 +41158,10 @@ export {
|
|
|
41146
41158
|
D8 as ViewsModel,
|
|
41147
41159
|
Vu as ViewsRenderModel,
|
|
41148
41160
|
eI as Viz,
|
|
41149
|
-
|
|
41161
|
+
Ng as VizConfigComponent,
|
|
41162
|
+
Og as VizManager,
|
|
41163
|
+
Fg as VizViewComponent,
|
|
41164
|
+
NR as applyPartialDashboard,
|
|
41150
41165
|
Zd as configureAPIClient,
|
|
41151
41166
|
M8 as createContentModel,
|
|
41152
41167
|
DV as createContentRenderModel,
|
|
@@ -41163,6 +41178,7 @@ export {
|
|
|
41163
41178
|
p6 as createFilterTreeSelectConfig,
|
|
41164
41179
|
m6 as createFilterTreeSingleSelectConfig,
|
|
41165
41180
|
LD as createMericoMetricQueryMetaConfig,
|
|
41181
|
+
ao as createPluginContext,
|
|
41166
41182
|
v6 as createViewDivisionConfig,
|
|
41167
41183
|
w6 as createViewModalConfig,
|
|
41168
41184
|
C6 as createViewTabsConfig,
|
|
@@ -41177,13 +41193,14 @@ export {
|
|
|
41177
41193
|
M6 as getNewPanel,
|
|
41178
41194
|
ED as getStaticDateRangeDefaultValue,
|
|
41179
41195
|
b6 as getStaticMericoDateRangeDefaultValue,
|
|
41180
|
-
|
|
41181
|
-
|
|
41196
|
+
QR as getVersion,
|
|
41197
|
+
AR as initialDashboardContent,
|
|
41182
41198
|
rt as notifyVizRendered,
|
|
41183
41199
|
VR as onVizRendered,
|
|
41184
41200
|
Cn as pluginManager,
|
|
41185
|
-
Se as
|
|
41201
|
+
Se as tokens,
|
|
41186
41202
|
mc as useAdditionalPanelMenuItems,
|
|
41203
|
+
RR as useChannelEvent,
|
|
41187
41204
|
oc as useContentModelContext,
|
|
41188
41205
|
ra as useDashboardContext,
|
|
41189
41206
|
uf as useDashboardThemeContext,
|
|
@@ -41191,6 +41208,7 @@ export {
|
|
|
41191
41208
|
ue as useEditDashboardContext,
|
|
41192
41209
|
Le as useEditPanelContext,
|
|
41193
41210
|
bf as useFullScreenPanelContext,
|
|
41211
|
+
Gc as useHandleChartRenderFinished,
|
|
41194
41212
|
gf as useIsInEditPanelContext,
|
|
41195
41213
|
mf as useIsInRenderPanelContext,
|
|
41196
41214
|
pf as useLayoutStateContext,
|
|
@@ -41199,5 +41217,8 @@ export {
|
|
|
41199
41217
|
df as useRenderDashboardContext,
|
|
41200
41218
|
$e as useRenderPanelContext,
|
|
41201
41219
|
la as useServiceLocator,
|
|
41202
|
-
|
|
41220
|
+
W as useStorageData,
|
|
41221
|
+
ER as useVisibleFilters,
|
|
41222
|
+
ro as vizList,
|
|
41223
|
+
Ud as vizNameToKeys
|
|
41203
41224
|
};
|