@devtable/dashboard 14.56.2 → 14.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/filter/search-button/index.d.ts +1 -1
- package/dist/dashboard.es.js +196 -191
- package/dist/dashboard.umd.js +43 -43
- package/dist/index.d.ts +1 -0
- 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 C, { unset as Mh, get as de, isObject as ql, set as Ga, omit as dn, isFun
|
|
|
9
9
|
import { observable as Hl, runInAction as rr, toJS as xt, reaction as qe, makeAutoObservable as cr, computed as Nh, comparer as Bh, autorun as jh } from "mobx";
|
|
10
10
|
import wo from "eventemitter2";
|
|
11
11
|
import { jsx as r, Fragment as q, jsxs as u } from "react/jsx-runtime";
|
|
12
|
-
import E, { useId as Qh, useState as Q, useEffect as
|
|
12
|
+
import E, { useId as Qh, useState as Q, useEffect as N, useCallback as ne, useMemo as z, forwardRef as ee, useRef as wt, createContext as Wl, createElement as dr, useContext as ft, memo as Gh } from "react";
|
|
13
13
|
import Sn, { random as Fr } from "chroma-js";
|
|
14
14
|
import Ke from "echarts-for-react/lib/core";
|
|
15
15
|
import "echarts-gl";
|
|
@@ -2522,7 +2522,7 @@ class hi {
|
|
|
2522
2522
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
|
-
const Ks = "14.
|
|
2525
|
+
const Ks = "14.57.0", Mg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2526
2526
|
__proto__: null,
|
|
2527
2527
|
version: Ks
|
|
2528
2528
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2645,7 +2645,7 @@ const Y = (e, t) => {
|
|
|
2645
2645
|
const [n, {
|
|
2646
2646
|
setFalse: a
|
|
2647
2647
|
}] = we(!0), [i, o] = Q();
|
|
2648
|
-
|
|
2648
|
+
N(() => (e.getItem(t).then((s) => {
|
|
2649
2649
|
o(s), a();
|
|
2650
2650
|
}), e.watchItem(t, (s) => {
|
|
2651
2651
|
o(s);
|
|
@@ -3716,7 +3716,7 @@ const ff = gf(), bf = ({
|
|
|
3716
3716
|
handleSubmit: l,
|
|
3717
3717
|
reset: s
|
|
3718
3718
|
} = i;
|
|
3719
|
-
|
|
3719
|
+
N(() => {
|
|
3720
3720
|
s(e);
|
|
3721
3721
|
}, [e]);
|
|
3722
3722
|
const c = ne(() => s(e), [s, e]);
|
|
@@ -3947,7 +3947,7 @@ const nr = "data-value", Mf = nr, Cc = "dynamicColor", kc = Rs.create({
|
|
|
3947
3947
|
}
|
|
3948
3948
|
t(s);
|
|
3949
3949
|
};
|
|
3950
|
-
return
|
|
3950
|
+
return N(() => {
|
|
3951
3951
|
var c;
|
|
3952
3952
|
const s = (c = a.current) == null ? void 0 : c.getModel();
|
|
3953
3953
|
s && (s.getValue() || s.setValue(e));
|
|
@@ -3991,7 +3991,7 @@ const nr = "data-value", Mf = nr, Cc = "dynamicColor", kc = Rs.create({
|
|
|
3991
3991
|
}, p = () => {
|
|
3992
3992
|
c(a);
|
|
3993
3993
|
};
|
|
3994
|
-
|
|
3994
|
+
N(() => {
|
|
3995
3995
|
c(e);
|
|
3996
3996
|
}, [e]);
|
|
3997
3997
|
const g = ne((w, T) => {
|
|
@@ -4000,10 +4000,10 @@ const nr = "data-value", Mf = nr, Cc = "dynamicColor", kc = Rs.create({
|
|
|
4000
4000
|
const M = gm(T), $ = w.getModel();
|
|
4001
4001
|
if (M.initializeIn(w), M.addRestrictionsTo($, i), !!$ && !$._hasHighlight) {
|
|
4002
4002
|
M.toggleDevMode(), $.toggleHighlightOfEditableAreas();
|
|
4003
|
-
const
|
|
4003
|
+
const F = $.getCurrentEditableRanges(), H = $.getValueInEditableRanges();
|
|
4004
4004
|
console.debug({
|
|
4005
4005
|
model: $,
|
|
4006
|
-
currentRanges:
|
|
4006
|
+
currentRanges: F,
|
|
4007
4007
|
currentValue: H
|
|
4008
4008
|
});
|
|
4009
4009
|
}
|
|
@@ -4176,7 +4176,7 @@ const nr = "data-value", Mf = nr, Cc = "dynamicColor", kc = Rs.create({
|
|
|
4176
4176
|
content: e,
|
|
4177
4177
|
editable: !1
|
|
4178
4178
|
});
|
|
4179
|
-
|
|
4179
|
+
N(() => {
|
|
4180
4180
|
c == null || c.commands.setContent(e);
|
|
4181
4181
|
}, [e, c]);
|
|
4182
4182
|
const d = z(() => new DOMParser().parseFromString(e, "text/html"), [e]), h = z(() => If(d, a, i), [d, a, i]), p = z(() => of(d, i), [d, i]), g = z(() => C.defaultsDeep({}, {
|
|
@@ -4335,8 +4335,8 @@ const ra = ee(({
|
|
|
4335
4335
|
onUpdate: ({
|
|
4336
4336
|
editor: $
|
|
4337
4337
|
}) => {
|
|
4338
|
-
const
|
|
4339
|
-
p(
|
|
4338
|
+
const F = $.getHTML();
|
|
4339
|
+
p(F);
|
|
4340
4340
|
},
|
|
4341
4341
|
onCreate: ({
|
|
4342
4342
|
editor: $
|
|
@@ -4344,7 +4344,7 @@ const ra = ee(({
|
|
|
4344
4344
|
$.view.dom.setAttribute("spellcheck", "false"), $.view.dom.setAttribute("autocomplete", "off"), $.view.dom.setAttribute("autocapitalize", "off");
|
|
4345
4345
|
}
|
|
4346
4346
|
});
|
|
4347
|
-
|
|
4347
|
+
N(() => {
|
|
4348
4348
|
p(e), _ == null || _.commands.setContent(e);
|
|
4349
4349
|
}, [e]);
|
|
4350
4350
|
const w = e !== h, T = z(() => C.defaultsDeep({}, {
|
|
@@ -4464,7 +4464,7 @@ const Vc = ({
|
|
|
4464
4464
|
const {
|
|
4465
4465
|
t: a
|
|
4466
4466
|
} = y(), [i, o] = Q(e);
|
|
4467
|
-
|
|
4467
|
+
N(() => {
|
|
4468
4468
|
n && o(e);
|
|
4469
4469
|
}, [e, n]);
|
|
4470
4470
|
const l = ne((s) => {
|
|
@@ -4512,8 +4512,8 @@ const Vc = ({
|
|
|
4512
4512
|
}] = we(), [h, p] = Q(!1), g = z(() => {
|
|
4513
4513
|
const M = [];
|
|
4514
4514
|
return Hf.forEach(($) => {
|
|
4515
|
-
const
|
|
4516
|
-
|
|
4515
|
+
const F = o.colors[$];
|
|
4516
|
+
F && F.forEach((H) => {
|
|
4517
4517
|
M.push(H);
|
|
4518
4518
|
});
|
|
4519
4519
|
}), M;
|
|
@@ -4920,7 +4920,7 @@ function ab({
|
|
|
4920
4920
|
min: de(U, w.columnKey),
|
|
4921
4921
|
max: de(oe, w.columnKey)
|
|
4922
4922
|
};
|
|
4923
|
-
}, [g, w]), $ = wt(null),
|
|
4923
|
+
}, [g, w]), $ = wt(null), F = z(() => ({
|
|
4924
4924
|
finished: () => {
|
|
4925
4925
|
var oe;
|
|
4926
4926
|
const U = (oe = $.current) == null ? void 0 : oe.getEchartsInstance();
|
|
@@ -4962,7 +4962,7 @@ function ab({
|
|
|
4962
4962
|
data: g.map((U) => [U[b.columnKey], U[_.columnKey], U[w.columnKey]])
|
|
4963
4963
|
}]
|
|
4964
4964
|
};
|
|
4965
|
-
return n ? /* @__PURE__ */ r(rt, { width: i, height: o, children: /* @__PURE__ */ r(Ke, { echarts: Ne, ref: $, option: H, style: gr(i, o), notMerge: !0, onEvents:
|
|
4965
|
+
return n ? /* @__PURE__ */ r(rt, { width: i, height: o, children: /* @__PURE__ */ r(Ke, { echarts: Ne, ref: $, option: H, style: gr(i, o), notMerge: !0, onEvents: F, theme: "merico-light" }) }) : null;
|
|
4966
4966
|
}
|
|
4967
4967
|
const X = I(ee(({
|
|
4968
4968
|
label: e,
|
|
@@ -5020,7 +5020,7 @@ function ib({
|
|
|
5020
5020
|
} = fe({
|
|
5021
5021
|
defaultValues: a
|
|
5022
5022
|
});
|
|
5023
|
-
return
|
|
5023
|
+
return N(() => {
|
|
5024
5024
|
l(a);
|
|
5025
5025
|
}, [t]), t ? /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
5026
5026
|
/* @__PURE__ */ r(k, { size: "sm", children: "X Axis" }),
|
|
@@ -5195,7 +5195,7 @@ const Xt = ee(({
|
|
|
5195
5195
|
setTrue: l,
|
|
5196
5196
|
setFalse: s
|
|
5197
5197
|
}] = we(), [c, d] = Q(e);
|
|
5198
|
-
|
|
5198
|
+
N(() => {
|
|
5199
5199
|
d(e);
|
|
5200
5200
|
}, [e]);
|
|
5201
5201
|
const h = (T) => {
|
|
@@ -5491,7 +5491,7 @@ function Vn(e, t) {
|
|
|
5491
5491
|
}
|
|
5492
5492
|
const yt = (e, t) => {
|
|
5493
5493
|
const [n, a] = Q([]);
|
|
5494
|
-
return
|
|
5494
|
+
return N(() => e.watchTriggerSnapshotList((i) => a(i.filter((o) => o.schemaRef === t))), []), n;
|
|
5495
5495
|
}, Ra = Wl(null);
|
|
5496
5496
|
function aa(e) {
|
|
5497
5497
|
const t = E.useContext(Ra), n = Wt(() => e.configure(t || new hi()), [e.configure]), a = Wh(n);
|
|
@@ -5769,7 +5769,7 @@ function Vb(e, t) {
|
|
|
5769
5769
|
} = Y(e.operation.operationData, "config"), [i, o] = Q(me({}, n, t)), l = async () => {
|
|
5770
5770
|
await a(i);
|
|
5771
5771
|
};
|
|
5772
|
-
return
|
|
5772
|
+
return N(() => {
|
|
5773
5773
|
o(me({}, n, t));
|
|
5774
5774
|
}, [n]), {
|
|
5775
5775
|
config: i,
|
|
@@ -5906,7 +5906,7 @@ const Bb = {
|
|
|
5906
5906
|
onChange: t
|
|
5907
5907
|
}) => {
|
|
5908
5908
|
const [n, a] = Q(e);
|
|
5909
|
-
return
|
|
5909
|
+
return N(() => {
|
|
5910
5910
|
a(e);
|
|
5911
5911
|
}, [e]), /* @__PURE__ */ r(L, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
|
|
5912
5912
|
flexGrow: 1
|
|
@@ -6370,7 +6370,7 @@ const cy = I(({
|
|
|
6370
6370
|
} = Me(), n = e.viz, {
|
|
6371
6371
|
vizManager: a
|
|
6372
6372
|
} = ft(ln), i = e.json, o = Wt(() => a.getOrCreateInstance(i), [a, i]), l = Wt(() => new Nc(o, a.resolveComponent(n.type), Di), [o, n.type]);
|
|
6373
|
-
return
|
|
6373
|
+
return N(() => o.instanceData.watchItem(
|
|
6374
6374
|
null,
|
|
6375
6375
|
// avoid too many updates
|
|
6376
6376
|
Ph((s) => {
|
|
@@ -6641,10 +6641,10 @@ function Cy(e, t, n) {
|
|
|
6641
6641
|
stroke: i,
|
|
6642
6642
|
lineWidth: o
|
|
6643
6643
|
};
|
|
6644
|
-
return M.forEach((
|
|
6644
|
+
return M.forEach((F) => {
|
|
6645
6645
|
T.children.push({
|
|
6646
6646
|
type: "line",
|
|
6647
|
-
shape:
|
|
6647
|
+
shape: F,
|
|
6648
6648
|
style: $
|
|
6649
6649
|
});
|
|
6650
6650
|
}), T.children.push({
|
|
@@ -6997,8 +6997,8 @@ function Fy({
|
|
|
6997
6997
|
const $ = C.get(p, M.name, {
|
|
6998
6998
|
error: "rowData is not found"
|
|
6999
6999
|
});
|
|
7000
|
-
h.forEach((
|
|
7001
|
-
d.runInteraction(
|
|
7000
|
+
h.forEach((F) => {
|
|
7001
|
+
d.runInteraction(F.id, {
|
|
7002
7002
|
...M,
|
|
7003
7003
|
rowData: $
|
|
7004
7004
|
});
|
|
@@ -7163,7 +7163,7 @@ function jy(e) {
|
|
|
7163
7163
|
p(), n == null || n(Number(s));
|
|
7164
7164
|
}, $ = () => {
|
|
7165
7165
|
p(), n == null || n(null);
|
|
7166
|
-
},
|
|
7166
|
+
}, F = he(o ?? null, {
|
|
7167
7167
|
output: "number",
|
|
7168
7168
|
mantissa: 10,
|
|
7169
7169
|
trimMantissa: !0,
|
|
@@ -7173,7 +7173,7 @@ function jy(e) {
|
|
|
7173
7173
|
return /* @__PURE__ */ u("div", { "data-testid": `palette-item-${i}`, className: l.paletteItem, children: [
|
|
7174
7174
|
/* @__PURE__ */ r(k, { title: w, style: {
|
|
7175
7175
|
opacity: b ? 1 : 0
|
|
7176
|
-
}, c: "dimmed", size: "sm", className: "palette-value--up palette-value", children:
|
|
7176
|
+
}, c: "dimmed", size: "sm", className: "palette-value--up palette-value", children: F }),
|
|
7177
7177
|
/* @__PURE__ */ u(Xe, { width: 240, trapFocus: !0, opened: d, onClose: p, zIndex: 340, withinPortal: !0, children: [
|
|
7178
7178
|
/* @__PURE__ */ r(Xe.Target, { children: /* @__PURE__ */ r("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: h, style: {
|
|
7179
7179
|
"--shadow-color": Sn(a).alpha(0.5).hex(),
|
|
@@ -7199,7 +7199,7 @@ function jy(e) {
|
|
|
7199
7199
|
] }),
|
|
7200
7200
|
/* @__PURE__ */ r(k, { title: w, style: {
|
|
7201
7201
|
opacity: _ ? 1 : 0
|
|
7202
|
-
}, c: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children:
|
|
7202
|
+
}, c: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: F })
|
|
7203
7203
|
] });
|
|
7204
7204
|
}
|
|
7205
7205
|
const Qy = I(({
|
|
@@ -7211,7 +7211,7 @@ const Qy = I(({
|
|
|
7211
7211
|
return /* @__PURE__ */ r("div", { className: t.palette, children: n.map(([a, i], o) => /* @__PURE__ */ r(jy, { index: o, color: a, value: e.getStepFromValue(i), onChange: (l) => e.changeStep(l, i) }, a)) });
|
|
7212
7212
|
}), Gy = I(function(t) {
|
|
7213
7213
|
const n = Wt(() => new By(), []);
|
|
7214
|
-
return
|
|
7214
|
+
return N(() => {
|
|
7215
7215
|
n.fromProps(t);
|
|
7216
7216
|
}), n.interpolation == null ? null : /* @__PURE__ */ r(Qy, { model: n });
|
|
7217
7217
|
}), Hy = (e) => {
|
|
@@ -7227,8 +7227,8 @@ const Qy = I(({
|
|
|
7227
7227
|
setFalse: g
|
|
7228
7228
|
}] = we(), b = z(() => {
|
|
7229
7229
|
const $ = C.groupBy(l, "category");
|
|
7230
|
-
return Object.entries($).map(([
|
|
7231
|
-
group: t(`style.color.interpolation.palette.category.${
|
|
7230
|
+
return Object.entries($).map(([F, H]) => ({
|
|
7231
|
+
group: t(`style.color.interpolation.palette.category.${F}`),
|
|
7232
7232
|
items: H.map((U) => ({
|
|
7233
7233
|
label: t(U.displayName),
|
|
7234
7234
|
value: o.encodeColor(U)
|
|
@@ -7236,8 +7236,8 @@ const Qy = I(({
|
|
|
7236
7236
|
}));
|
|
7237
7237
|
}, [n.language]);
|
|
7238
7238
|
function _($) {
|
|
7239
|
-
$ && c((
|
|
7240
|
-
...
|
|
7239
|
+
$ && c((F) => ({
|
|
7240
|
+
...F,
|
|
7241
7241
|
interpolation: $
|
|
7242
7242
|
}));
|
|
7243
7243
|
}
|
|
@@ -7245,8 +7245,8 @@ const Qy = I(({
|
|
|
7245
7245
|
g(), i == null || i(xt(s));
|
|
7246
7246
|
};
|
|
7247
7247
|
function T($) {
|
|
7248
|
-
c((
|
|
7249
|
-
...
|
|
7248
|
+
c((F) => ({
|
|
7249
|
+
...F,
|
|
7250
7250
|
steps: $
|
|
7251
7251
|
}));
|
|
7252
7252
|
}
|
|
@@ -7406,7 +7406,7 @@ const Qy = I(({
|
|
|
7406
7406
|
})), w = ((H = C.last(_)) == null ? void 0 : H.id) ?? null, [T, M] = Q(w), $ = (U) => {
|
|
7407
7407
|
U !== "add" && M(U);
|
|
7408
7408
|
};
|
|
7409
|
-
return
|
|
7409
|
+
return N(() => {
|
|
7410
7410
|
M((U) => w === U ? U : w);
|
|
7411
7411
|
}, [w]), /* @__PURE__ */ u(S, { value: T, onChange: $, styles: Zy, children: [
|
|
7412
7412
|
/* @__PURE__ */ r(Xy, { fieldArray: d, add: () => {
|
|
@@ -7835,7 +7835,7 @@ function d_({
|
|
|
7835
7835
|
} = fe({
|
|
7836
7836
|
defaultValues: o
|
|
7837
7837
|
});
|
|
7838
|
-
return
|
|
7838
|
+
return N(() => {
|
|
7839
7839
|
h(o);
|
|
7840
7840
|
}, [o]), c(["x_axis", "y_axis", "reference_lines", "color", "dataZoom"]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
7841
7841
|
/* @__PURE__ */ r(Ie, { canSubmit: d.isDirty }),
|
|
@@ -8286,7 +8286,7 @@ function L_({
|
|
|
8286
8286
|
value: t,
|
|
8287
8287
|
set: n
|
|
8288
8288
|
} = Y(e.instanceData, "config"), a = z(() => Ue({}, t, Vi), [t]), i = a;
|
|
8289
|
-
|
|
8289
|
+
N(() => {
|
|
8290
8290
|
!Oe(a, i) && (console.log("config malformed, resetting to defaults", a, i), n(i));
|
|
8291
8291
|
}, [a, i]);
|
|
8292
8292
|
const {
|
|
@@ -8298,7 +8298,7 @@ function L_({
|
|
|
8298
8298
|
} = fe({
|
|
8299
8299
|
defaultValues: i
|
|
8300
8300
|
});
|
|
8301
|
-
return
|
|
8301
|
+
return N(() => {
|
|
8302
8302
|
d(i);
|
|
8303
8303
|
}, [i]), s(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ u("form", { onSubmit: l(n), children: [
|
|
8304
8304
|
/* @__PURE__ */ r(Ie, { canSubmit: c.isDirty }),
|
|
@@ -9056,18 +9056,18 @@ function dv(e) {
|
|
|
9056
9056
|
}
|
|
9057
9057
|
function uv(e, t, n) {
|
|
9058
9058
|
const a = n.reduce((M, $) => {
|
|
9059
|
-
const
|
|
9060
|
-
return M[$.name] = zt($,
|
|
9059
|
+
const F = Yt($, t);
|
|
9060
|
+
return M[$.name] = zt($, F), M;
|
|
9061
9061
|
}, {}), i = na(e.visualMap, a), {
|
|
9062
9062
|
min: o,
|
|
9063
9063
|
max: l
|
|
9064
9064
|
} = i, s = rv(e), c = G(e.calendar.data_key), d = G(e.heat_block.data_key), h = t[c.queryID].map((M) => {
|
|
9065
|
-
const $ = C.get(M, c.columnKey),
|
|
9066
|
-
value: [$,
|
|
9065
|
+
const $ = C.get(M, c.columnKey), F = C.get(M, d.columnKey), H = cv(M[c.columnKey]), U = {
|
|
9066
|
+
value: [$, F, H]
|
|
9067
9067
|
}, {
|
|
9068
9068
|
followVisualMap: oe,
|
|
9069
9069
|
color: te
|
|
9070
|
-
} = yi(
|
|
9070
|
+
} = yi(F, o, l, e.visualMap);
|
|
9071
9071
|
return oe || (U.visualMap = !1, U.itemStyle = {
|
|
9072
9072
|
color: te
|
|
9073
9073
|
}), U;
|
|
@@ -9278,7 +9278,7 @@ function xv({
|
|
|
9278
9278
|
value: n,
|
|
9279
9279
|
set: a
|
|
9280
9280
|
} = Y(e.instanceData, "config"), i = z(() => n ? me({}, n) : $i, [n]), o = z(() => C.cloneDeep(i), [i]);
|
|
9281
|
-
|
|
9281
|
+
N(() => {
|
|
9282
9282
|
!Oe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
9283
9283
|
}, [i, o]);
|
|
9284
9284
|
const l = fe({
|
|
@@ -9290,7 +9290,7 @@ function xv({
|
|
|
9290
9290
|
formState: h,
|
|
9291
9291
|
reset: p
|
|
9292
9292
|
} = l;
|
|
9293
|
-
return
|
|
9293
|
+
return N(() => {
|
|
9294
9294
|
p(o);
|
|
9295
9295
|
}, [o]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: c(a), children: [
|
|
9296
9296
|
/* @__PURE__ */ r(Ie, { canSubmit: h.isDirty }),
|
|
@@ -10160,7 +10160,7 @@ const Zc = {
|
|
|
10160
10160
|
variables: l,
|
|
10161
10161
|
data: s
|
|
10162
10162
|
} = t, c = z(() => pn(e, l, i.payloadForViz, s), [e, l, s]), d = ((p = a.current) == null ? void 0 : p.textContent) === "";
|
|
10163
|
-
|
|
10163
|
+
N(() => {
|
|
10164
10164
|
if (!n || !a.current)
|
|
10165
10165
|
return;
|
|
10166
10166
|
const g = d ? 0 : a.current.offsetHeight;
|
|
@@ -10470,7 +10470,7 @@ function fx({
|
|
|
10470
10470
|
hide_in_legend: _,
|
|
10471
10471
|
areaStyle: w,
|
|
10472
10472
|
...T
|
|
10473
|
-
}, M, $,
|
|
10473
|
+
}, M, $, F, H) {
|
|
10474
10474
|
const U = t.type !== "category", oe = {
|
|
10475
10475
|
label: {
|
|
10476
10476
|
show: !!i,
|
|
@@ -10482,7 +10482,7 @@ function fx({
|
|
|
10482
10482
|
yAxisIndex: a,
|
|
10483
10483
|
stack: h,
|
|
10484
10484
|
color: p,
|
|
10485
|
-
symbolSize: gx(b, $, e,
|
|
10485
|
+
symbolSize: gx(b, $, e, F),
|
|
10486
10486
|
hide_in_legend: _,
|
|
10487
10487
|
labelLayout: {
|
|
10488
10488
|
hideOverlap: !0
|
|
@@ -10799,7 +10799,7 @@ function Dx({
|
|
|
10799
10799
|
}), [d]), w = (T) => {
|
|
10800
10800
|
p.current = T, Go(T);
|
|
10801
10801
|
};
|
|
10802
|
-
return
|
|
10802
|
+
return N(() => {
|
|
10803
10803
|
p.current && Go(p.current);
|
|
10804
10804
|
}, [h]), !n || !a ? null : /* @__PURE__ */ r(Ke, { echarts: Ne, option: h, style: {
|
|
10805
10805
|
width: n,
|
|
@@ -11296,7 +11296,7 @@ function Fx({
|
|
|
11296
11296
|
t: l,
|
|
11297
11297
|
i18n: s
|
|
11298
11298
|
} = y();
|
|
11299
|
-
|
|
11299
|
+
N(() => {
|
|
11300
11300
|
typeof t == "string" && n({
|
|
11301
11301
|
type: t,
|
|
11302
11302
|
config: {},
|
|
@@ -12046,7 +12046,7 @@ function ew({
|
|
|
12046
12046
|
} = fe({
|
|
12047
12047
|
defaultValues: o
|
|
12048
12048
|
});
|
|
12049
|
-
return
|
|
12049
|
+
return N(() => {
|
|
12050
12050
|
d(o);
|
|
12051
12051
|
}, [o]), c(["dataZoom"]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(t), children: [
|
|
12052
12052
|
/* @__PURE__ */ r(Ie, { canSubmit: h.isDirty }),
|
|
@@ -12429,7 +12429,7 @@ const mw = ({
|
|
|
12429
12429
|
...h,
|
|
12430
12430
|
...o[p]
|
|
12431
12431
|
})), s = C.get(l, "0.id"), [c, d] = Q(s ?? null);
|
|
12432
|
-
return
|
|
12432
|
+
return N(() => {
|
|
12433
12433
|
s && d((h) => h !== null ? h : s);
|
|
12434
12434
|
}, [s]), /* @__PURE__ */ u(S, { value: c, onChange: (h) => d(h), styles: {
|
|
12435
12435
|
panel: {
|
|
@@ -12459,7 +12459,7 @@ function fw({
|
|
|
12459
12459
|
} = fe({
|
|
12460
12460
|
defaultValues: a
|
|
12461
12461
|
});
|
|
12462
|
-
return
|
|
12462
|
+
return N(() => {
|
|
12463
12463
|
c(a);
|
|
12464
12464
|
}, [a]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
12465
12465
|
/* @__PURE__ */ r(Ie, { canSubmit: s.isDirty }),
|
|
@@ -12891,14 +12891,14 @@ function Aw(e, t, n, a) {
|
|
|
12891
12891
|
function ed(e, t, n, a, i, o) {
|
|
12892
12892
|
if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
|
|
12893
12893
|
return {};
|
|
12894
|
-
const l = a.reduce((
|
|
12894
|
+
const l = a.reduce((F, H) => {
|
|
12895
12895
|
const U = Yt(H, t);
|
|
12896
|
-
return
|
|
12896
|
+
return F[H.name] = zt(H, U), F;
|
|
12897
12897
|
}, {}), s = na(e.visualMap, l), {
|
|
12898
12898
|
min: c,
|
|
12899
12899
|
max: d
|
|
12900
|
-
} = s, h = Tw(e), p = Dw(e), g = G(e.x_axis.data_key), b = G(e.y_axis.data_key), _ = C.uniq(t[g.queryID].map((
|
|
12901
|
-
const H = C.clone(
|
|
12900
|
+
} = s, h = Tw(e), p = Dw(e), g = G(e.x_axis.data_key), b = G(e.y_axis.data_key), _ = C.uniq(t[g.queryID].map((F) => F[g.columnKey])), w = C.uniq(t[g.queryID].map((F) => F[b.columnKey])), T = n.map((F) => {
|
|
12901
|
+
const H = C.clone(F), {
|
|
12902
12902
|
followVisualMap: U,
|
|
12903
12903
|
color: oe
|
|
12904
12904
|
} = yi(H.value[2], c, d, e.visualMap);
|
|
@@ -13079,7 +13079,7 @@ function Bw({
|
|
|
13079
13079
|
totalPages: d,
|
|
13080
13080
|
groupedFullData: h
|
|
13081
13081
|
} = Ew(l, o);
|
|
13082
|
-
|
|
13082
|
+
N(() => {
|
|
13083
13083
|
const _ = Ha(h).flat();
|
|
13084
13084
|
nt(t, ed(o, l, _, i, s, c));
|
|
13085
13085
|
}, [h]);
|
|
@@ -13308,7 +13308,7 @@ function Yw({
|
|
|
13308
13308
|
value: n,
|
|
13309
13309
|
set: a
|
|
13310
13310
|
} = Y(e.instanceData, "config"), i = z(() => n ? me({}, n) : Ni, [n]), o = z(() => C.cloneDeep(i), [i]);
|
|
13311
|
-
|
|
13311
|
+
N(() => {
|
|
13312
13312
|
!Oe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
13313
13313
|
}, [i, o]);
|
|
13314
13314
|
const l = fe({
|
|
@@ -13320,7 +13320,7 @@ function Yw({
|
|
|
13320
13320
|
formState: h,
|
|
13321
13321
|
reset: p
|
|
13322
13322
|
} = l;
|
|
13323
|
-
return
|
|
13323
|
+
return N(() => {
|
|
13324
13324
|
p(o);
|
|
13325
13325
|
}, [o]), /* @__PURE__ */ r("form", { onSubmit: c(a), style: {
|
|
13326
13326
|
flexGrow: 1
|
|
@@ -13827,13 +13827,13 @@ function v0({
|
|
|
13827
13827
|
value_data_key: t,
|
|
13828
13828
|
valueTypedXAxis: _
|
|
13829
13829
|
}), $;
|
|
13830
|
-
const
|
|
13830
|
+
const F = _0({
|
|
13831
13831
|
group_by_key: o,
|
|
13832
13832
|
data: w,
|
|
13833
13833
|
name_data_key: e.data_key,
|
|
13834
13834
|
value_data_key: t
|
|
13835
13835
|
});
|
|
13836
|
-
return Object.entries(
|
|
13836
|
+
return Object.entries(F).map(([H, U]) => {
|
|
13837
13837
|
const oe = Fe($);
|
|
13838
13838
|
return oe.name = H, oe.color = void 0, oe.data = U, oe;
|
|
13839
13839
|
});
|
|
@@ -14405,7 +14405,7 @@ function N0({
|
|
|
14405
14405
|
} = fe({
|
|
14406
14406
|
defaultValues: o
|
|
14407
14407
|
});
|
|
14408
|
-
return
|
|
14408
|
+
return N(() => {
|
|
14409
14409
|
h(o);
|
|
14410
14410
|
}, [o]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
14411
14411
|
/* @__PURE__ */ r(Ie, { canSubmit: d.isDirty }),
|
|
@@ -15294,7 +15294,7 @@ function w1({
|
|
|
15294
15294
|
estimated_value: d,
|
|
15295
15295
|
actual_value: h
|
|
15296
15296
|
} = c.data_keys, [p, g] = Q(h);
|
|
15297
|
-
if (
|
|
15297
|
+
if (N(() => {
|
|
15298
15298
|
g((w) => w || h);
|
|
15299
15299
|
}, [h]), !s.data_key || !d || !h || !o || !l)
|
|
15300
15300
|
return null;
|
|
@@ -15426,7 +15426,7 @@ function T1({
|
|
|
15426
15426
|
} = fe({
|
|
15427
15427
|
defaultValues: a
|
|
15428
15428
|
});
|
|
15429
|
-
return
|
|
15429
|
+
return N(() => {
|
|
15430
15430
|
c(a);
|
|
15431
15431
|
}, [a]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
15432
15432
|
/* @__PURE__ */ r(Ie, { canSubmit: s.isDirty }),
|
|
@@ -15778,7 +15778,7 @@ function N1({
|
|
|
15778
15778
|
value: n,
|
|
15779
15779
|
set: a
|
|
15780
15780
|
} = Y(e.instanceData, "config"), i = z(() => n ? me({}, n) : Qi, [n]), o = z(() => C.cloneDeep(i), [i]);
|
|
15781
|
-
|
|
15781
|
+
N(() => {
|
|
15782
15782
|
!Oe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
15783
15783
|
}, [i, o]);
|
|
15784
15784
|
const l = fe({
|
|
@@ -15790,7 +15790,7 @@ function N1({
|
|
|
15790
15790
|
formState: h,
|
|
15791
15791
|
reset: p
|
|
15792
15792
|
} = l;
|
|
15793
|
-
return
|
|
15793
|
+
return N(() => {
|
|
15794
15794
|
p(o);
|
|
15795
15795
|
}, [o]), /* @__PURE__ */ r("form", { onSubmit: c(a), style: {
|
|
15796
15796
|
flexGrow: 1
|
|
@@ -16118,15 +16118,15 @@ function J1(e, t, n) {
|
|
|
16118
16118
|
min: s,
|
|
16119
16119
|
max: c
|
|
16120
16120
|
} = l, d = G(e.x_axis.data_key), h = G(e.y_axis.data_key), p = G(e.heat_block.data_key), g = C.uniq(t[d.queryID].map((w) => w[d.columnKey])), b = t[d.queryID].map((w) => {
|
|
16121
|
-
const T = C.get(w, d.columnKey), M = C.get(w, h.columnKey), $ = C.get(w, p.columnKey),
|
|
16121
|
+
const T = C.get(w, d.columnKey), M = C.get(w, h.columnKey), $ = C.get(w, p.columnKey), F = {
|
|
16122
16122
|
value: [T, M, $]
|
|
16123
16123
|
}, {
|
|
16124
16124
|
followVisualMap: H,
|
|
16125
16125
|
color: U
|
|
16126
16126
|
} = yi($, s, c, e.visualMap);
|
|
16127
|
-
return H || (
|
|
16127
|
+
return H || (F.visualMap = !1, F.itemStyle = {
|
|
16128
16128
|
color: U
|
|
16129
|
-
}),
|
|
16129
|
+
}), F;
|
|
16130
16130
|
});
|
|
16131
16131
|
return {
|
|
16132
16132
|
xAxis: X1(e, g, i.x_axis),
|
|
@@ -16676,7 +16676,7 @@ function MS({
|
|
|
16676
16676
|
formState: c,
|
|
16677
16677
|
reset: d
|
|
16678
16678
|
} = l;
|
|
16679
|
-
|
|
16679
|
+
N(() => {
|
|
16680
16680
|
l.reset(o);
|
|
16681
16681
|
}, [o]);
|
|
16682
16682
|
const h = z(() => [{
|
|
@@ -16959,7 +16959,7 @@ function qS({
|
|
|
16959
16959
|
} = fe({
|
|
16960
16960
|
defaultValues: i
|
|
16961
16961
|
});
|
|
16962
|
-
return
|
|
16962
|
+
return N(() => {
|
|
16963
16963
|
d(i);
|
|
16964
16964
|
}, [i]), /* @__PURE__ */ r("form", { onSubmit: l(n), children: /* @__PURE__ */ u(D, { gap: "xs", children: [
|
|
16965
16965
|
/* @__PURE__ */ r(Ie, { canSubmit: c.isDirty }),
|
|
@@ -17790,7 +17790,7 @@ function xC({
|
|
|
17790
17790
|
} = fe({
|
|
17791
17791
|
defaultValues: o
|
|
17792
17792
|
});
|
|
17793
|
-
return
|
|
17793
|
+
return N(() => {
|
|
17794
17794
|
h(o);
|
|
17795
17795
|
}, [o]), c(["x_axis", "data_key", "bar", "line", "dataZoom"]), /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
17796
17796
|
/* @__PURE__ */ r(Ie, { canSubmit: d.isDirty }),
|
|
@@ -18524,7 +18524,7 @@ function tk({
|
|
|
18524
18524
|
} = fe({
|
|
18525
18525
|
defaultValues: i
|
|
18526
18526
|
});
|
|
18527
|
-
|
|
18527
|
+
N(() => {
|
|
18528
18528
|
d(i);
|
|
18529
18529
|
}, [i]);
|
|
18530
18530
|
const [h] = s(["label_field", "value_field", "color_field", "color"]), {
|
|
@@ -19033,8 +19033,8 @@ function kk({
|
|
|
19033
19033
|
const {
|
|
19034
19034
|
queryID: _,
|
|
19035
19035
|
columnKey: w
|
|
19036
|
-
} = G(e.series_name_key), T = C.keyBy(t[_], w), M = e.additional_series.reduce(($,
|
|
19037
|
-
const H = G(
|
|
19036
|
+
} = G(e.series_name_key), T = C.keyBy(t[_], w), M = e.additional_series.reduce(($, F) => {
|
|
19037
|
+
const H = G(F.name_key), U = C.keyBy(t[H.queryID], H.columnKey);
|
|
19038
19038
|
return {
|
|
19039
19039
|
...$,
|
|
19040
19040
|
...U
|
|
@@ -19217,7 +19217,7 @@ function Vk({
|
|
|
19217
19217
|
defaultValues: i,
|
|
19218
19218
|
mode: "all"
|
|
19219
19219
|
});
|
|
19220
|
-
return
|
|
19220
|
+
return N(() => {
|
|
19221
19221
|
c(i);
|
|
19222
19222
|
}, [i]), s(["series_name_key", "background", "label"]), /* @__PURE__ */ r("form", { onSubmit: l(a), children: /* @__PURE__ */ u(D, { gap: "xs", children: [
|
|
19223
19223
|
/* @__PURE__ */ r(Ie, { canSubmit: d.isDirty && d.isValid }),
|
|
@@ -20111,7 +20111,7 @@ function f2({
|
|
|
20111
20111
|
} = fe({
|
|
20112
20112
|
defaultValues: a
|
|
20113
20113
|
});
|
|
20114
|
-
return
|
|
20114
|
+
return N(() => {
|
|
20115
20115
|
c(a);
|
|
20116
20116
|
}, [a]), l(["x_axis", "regression"]), t ? /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
20117
20117
|
/* @__PURE__ */ r(Ie, { canSubmit: s.isDirty }),
|
|
@@ -20222,7 +20222,7 @@ const y2 = {
|
|
|
20222
20222
|
} = fe({
|
|
20223
20223
|
defaultValues: o
|
|
20224
20224
|
});
|
|
20225
|
-
c("content"),
|
|
20225
|
+
c("content"), N(() => {
|
|
20226
20226
|
d(o);
|
|
20227
20227
|
}, [o]);
|
|
20228
20228
|
const h = wt(null), p = () => {
|
|
@@ -20939,17 +20939,17 @@ function J2(e, t) {
|
|
|
20939
20939
|
const g = X2(p, e), b = Ct(e.scatter.label_overflow.tooltip), _ = p.map(
|
|
20940
20940
|
// @ts-expect-error type of value
|
|
20941
20941
|
({
|
|
20942
|
-
value:
|
|
20942
|
+
value: F
|
|
20943
20943
|
}) => `
|
|
20944
20944
|
<th style="text-align: right; padding-right: 1em">
|
|
20945
|
-
<div style="${b}">${Sr(
|
|
20945
|
+
<div style="${b}">${Sr(F, n.name_data_key)}</div>
|
|
20946
20946
|
</th>
|
|
20947
20947
|
`
|
|
20948
20948
|
);
|
|
20949
20949
|
_.unshift("<th></th>");
|
|
20950
20950
|
const w = Ct(e.x_axis.axisLabel.overflow.in_tooltip), T = [`<tr>
|
|
20951
20951
|
<th style="text-align: right; padding: 0 1em;">${e.x_axis.name}</th>
|
|
20952
|
-
${p.map((
|
|
20952
|
+
${p.map((F) => `
|
|
20953
20953
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20954
20954
|
<div style="${w}">
|
|
20955
20955
|
${g}
|
|
@@ -20959,21 +20959,21 @@ function J2(e, t) {
|
|
|
20959
20959
|
</tr>`, `<tr>
|
|
20960
20960
|
<th style="text-align: right; padding: 0 1em;">${e.y_axes[0].name}</th>
|
|
20961
20961
|
${p.map(({
|
|
20962
|
-
value:
|
|
20962
|
+
value: F
|
|
20963
20963
|
}) => `
|
|
20964
20964
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20965
|
-
${h(Sr(
|
|
20965
|
+
${h(Sr(F, n.y_data_key))}
|
|
20966
20966
|
<strong>${s ?? ""}</strong>
|
|
20967
20967
|
</td>`).join("")}
|
|
20968
|
-
</tr>`], M = e.tooltip.metrics.map((
|
|
20968
|
+
</tr>`], M = e.tooltip.metrics.map((F) => `
|
|
20969
20969
|
<tr>
|
|
20970
|
-
<th style="text-align: right; padding: 0 1em;">${
|
|
20970
|
+
<th style="text-align: right; padding: 0 1em;">${F.name}</th>
|
|
20971
20971
|
${p.map(({
|
|
20972
20972
|
value: H
|
|
20973
20973
|
}) => `
|
|
20974
20974
|
<td style="text-align: left; padding: 0 2px 0 1em;">
|
|
20975
|
-
${Z2(Sr(H,
|
|
20976
|
-
<strong>${c[
|
|
20975
|
+
${Z2(Sr(H, F.data_key))}
|
|
20976
|
+
<strong>${c[F.name] ?? ""}</strong>
|
|
20977
20977
|
</td>`).join("")}
|
|
20978
20978
|
</tr>`);
|
|
20979
20979
|
return T.push(...M), `
|
|
@@ -21741,7 +21741,7 @@ function kz({
|
|
|
21741
21741
|
} = fe({
|
|
21742
21742
|
defaultValues: o
|
|
21743
21743
|
});
|
|
21744
|
-
return
|
|
21744
|
+
return N(() => {
|
|
21745
21745
|
d(o);
|
|
21746
21746
|
}, [o]), c(["dataZoom"]), /* @__PURE__ */ r(D, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(t), children: [
|
|
21747
21747
|
/* @__PURE__ */ r(Ie, { canSubmit: h.isDirty }),
|
|
@@ -21994,7 +21994,7 @@ const Nz = I(({
|
|
|
21994
21994
|
const _ = l.viz.conf.config;
|
|
21995
21995
|
return _.content ? pn(_.content, d, o.payloadForViz, c) : "";
|
|
21996
21996
|
}, [c, l, d, o.payloadForViz]);
|
|
21997
|
-
|
|
21997
|
+
N(() => {
|
|
21998
21998
|
nt(t, {
|
|
21999
21999
|
content: g
|
|
22000
22000
|
});
|
|
@@ -22006,7 +22006,7 @@ const Nz = I(({
|
|
|
22006
22006
|
});
|
|
22007
22007
|
});
|
|
22008
22008
|
}, [l.variableValueMap, i, a]);
|
|
22009
|
-
return
|
|
22009
|
+
return N(() => {
|
|
22010
22010
|
if (!n.current)
|
|
22011
22011
|
return;
|
|
22012
22012
|
const _ = n.current.querySelector(".ProseMirror");
|
|
@@ -22015,8 +22015,8 @@ const Nz = I(({
|
|
|
22015
22015
|
const {
|
|
22016
22016
|
offsetWidth: w,
|
|
22017
22017
|
offsetHeight: T
|
|
22018
|
-
} = _, M = h / w, $ = p / T,
|
|
22019
|
-
_.style.transform = `scale(${
|
|
22018
|
+
} = _, M = h / w, $ = p / T, F = Math.min(M, $);
|
|
22019
|
+
_.style.transform = `scale(${F})`;
|
|
22020
22020
|
}, [n.current, h, p, g]), /* @__PURE__ */ r(Be, { className: "viz-stats", sx: {
|
|
22021
22021
|
width: h,
|
|
22022
22022
|
height: p
|
|
@@ -22426,7 +22426,7 @@ function s3({
|
|
|
22426
22426
|
} = fe({
|
|
22427
22427
|
defaultValues: o
|
|
22428
22428
|
});
|
|
22429
|
-
|
|
22429
|
+
N(() => {
|
|
22430
22430
|
h(o);
|
|
22431
22431
|
}, [o]), c(["label_key", "value_key", "group_key", "levels"]);
|
|
22432
22432
|
const [p, g] = Q("Data");
|
|
@@ -23283,14 +23283,14 @@ function nl({
|
|
|
23283
23283
|
}, [g, b]), [w, T] = Q([]), [M, $] = E.useState({
|
|
23284
23284
|
pageIndex: 0,
|
|
23285
23285
|
pageSize: a.pagination.page_size
|
|
23286
|
-
}),
|
|
23286
|
+
}), F = z(() => {
|
|
23287
23287
|
const {
|
|
23288
23288
|
pageIndex: ct,
|
|
23289
23289
|
pageSize: at
|
|
23290
23290
|
} = M;
|
|
23291
23291
|
return at === 0 ? e : e.slice(ct * at, (ct + 1) * at);
|
|
23292
23292
|
}, [e, M]), H = Math.ceil(e.length / M.pageSize), U = di({
|
|
23293
|
-
data:
|
|
23293
|
+
data: F,
|
|
23294
23294
|
state: {
|
|
23295
23295
|
sorting: w
|
|
23296
23296
|
},
|
|
@@ -23548,7 +23548,7 @@ const n5 = ee((e, t) => {
|
|
|
23548
23548
|
}, p = () => {
|
|
23549
23549
|
c(xd);
|
|
23550
23550
|
};
|
|
23551
|
-
return
|
|
23551
|
+
return N(() => {
|
|
23552
23552
|
c(e);
|
|
23553
23553
|
}, [e]), /* @__PURE__ */ u(q, { children: [
|
|
23554
23554
|
/* @__PURE__ */ r(V, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(an, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
@@ -23735,7 +23735,7 @@ function d5({
|
|
|
23735
23735
|
value: n,
|
|
23736
23736
|
set: a
|
|
23737
23737
|
} = Y(e.instanceData, "config"), i = z(() => Ue({}, n, wd), [n]), o = z(() => c5(i), [i]);
|
|
23738
|
-
|
|
23738
|
+
N(() => {
|
|
23739
23739
|
!Oe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
23740
23740
|
}, [i, o]);
|
|
23741
23741
|
const {
|
|
@@ -23747,7 +23747,7 @@ function d5({
|
|
|
23747
23747
|
} = fe({
|
|
23748
23748
|
defaultValues: o
|
|
23749
23749
|
});
|
|
23750
|
-
return
|
|
23750
|
+
return N(() => {
|
|
23751
23751
|
h(o);
|
|
23752
23752
|
}, [o]), c(["query_id"]), /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
|
|
23753
23753
|
/* @__PURE__ */ r(Ie, { canSubmit: d.isDirty }),
|
|
@@ -23881,7 +23881,7 @@ const p5 = E.forwardRef(h5), m5 = ({
|
|
|
23881
23881
|
}, p = () => {
|
|
23882
23882
|
c(Id);
|
|
23883
23883
|
};
|
|
23884
|
-
return
|
|
23884
|
+
return N(() => {
|
|
23885
23885
|
c(e);
|
|
23886
23886
|
}, [e]), /* @__PURE__ */ u(q, { children: [
|
|
23887
23887
|
/* @__PURE__ */ r(V, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(an, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
@@ -23921,7 +23921,7 @@ function f5({
|
|
|
23921
23921
|
font_weight: _
|
|
23922
23922
|
};
|
|
23923
23923
|
}, [i]);
|
|
23924
|
-
|
|
23924
|
+
N(() => {
|
|
23925
23925
|
!Oe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
|
|
23926
23926
|
}, [i, o]);
|
|
23927
23927
|
const {
|
|
@@ -24260,7 +24260,7 @@ function G5({
|
|
|
24260
24260
|
formState: l,
|
|
24261
24261
|
reset: s
|
|
24262
24262
|
} = i;
|
|
24263
|
-
return
|
|
24263
|
+
return N(() => {
|
|
24264
24264
|
s(a);
|
|
24265
24265
|
}, [a]), /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
|
|
24266
24266
|
/* @__PURE__ */ r(Ie, { canSubmit: l.isDirty }),
|
|
@@ -24440,7 +24440,7 @@ function nT({
|
|
|
24440
24440
|
} = fe({
|
|
24441
24441
|
defaultValues: a
|
|
24442
24442
|
});
|
|
24443
|
-
return
|
|
24443
|
+
return N(() => {
|
|
24444
24444
|
c(a);
|
|
24445
24445
|
}, [a]), l(["expertSystemURL", "goal", "path", "question"]), /* @__PURE__ */ r("form", { onSubmit: o(n), children: /* @__PURE__ */ u(D, { children: [
|
|
24446
24446
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -24678,7 +24678,7 @@ const fT = ({
|
|
|
24678
24678
|
setTrue: a,
|
|
24679
24679
|
setFalse: i
|
|
24680
24680
|
}] = we(!1), [o, l] = Q("");
|
|
24681
|
-
|
|
24681
|
+
N(() => {
|
|
24682
24682
|
l("");
|
|
24683
24683
|
}, [n]);
|
|
24684
24684
|
const s = () => {
|
|
@@ -24753,7 +24753,7 @@ function yT({
|
|
|
24753
24753
|
formState: s,
|
|
24754
24754
|
reset: c
|
|
24755
24755
|
} = o;
|
|
24756
|
-
return
|
|
24756
|
+
return N(() => {
|
|
24757
24757
|
o.reset(i);
|
|
24758
24758
|
}, [i]), /* @__PURE__ */ u("form", { onSubmit: l((h) => {
|
|
24759
24759
|
const p = h;
|
|
@@ -24888,7 +24888,7 @@ function Ad({
|
|
|
24888
24888
|
lang: e,
|
|
24889
24889
|
children: t
|
|
24890
24890
|
}) {
|
|
24891
|
-
return
|
|
24891
|
+
return N(() => {
|
|
24892
24892
|
Rr.changeLanguage(e);
|
|
24893
24893
|
}, [e]), /* @__PURE__ */ r(Dh, { i18n: Rr, children: t });
|
|
24894
24894
|
}
|
|
@@ -26970,7 +26970,7 @@ const jT = m.model("FilterDateRangeConfigMeta", {
|
|
|
26970
26970
|
name: "FilterTreeSelectWidget"
|
|
26971
26971
|
}), [b, _] = Q(!1), w = (H) => {
|
|
26972
26972
|
_(H);
|
|
26973
|
-
}, T = b && (i == null ? void 0 : i.length) > 0, M = tD(l, i, o, d), [$,
|
|
26973
|
+
}, T = b && (i == null ? void 0 : i.length) > 0, M = tD(l, i, o, d), [$, F] = Q("");
|
|
26974
26974
|
return /* @__PURE__ */ u(D, { gap: 3, children: [
|
|
26975
26975
|
/* @__PURE__ */ u(v, { justify: "space-between", children: [
|
|
26976
26976
|
/* @__PURE__ */ u(k, { className: p.label, size: "sm", children: [
|
|
@@ -27014,7 +27014,7 @@ const jT = m.model("FilterDateRangeConfigMeta", {
|
|
|
27014
27014
|
count: i.length
|
|
27015
27015
|
}),
|
|
27016
27016
|
searchValue: $,
|
|
27017
|
-
onSearch:
|
|
27017
|
+
onSearch: F,
|
|
27018
27018
|
dropdownRender: (H) => /* @__PURE__ */ u(q, { children: [
|
|
27019
27019
|
M.allValueSet.size > 0 && !$ && /* @__PURE__ */ r(v, { px: "xs", pt: 8, pb: 8, onClick: M.toggleSelectAll, styles: nD, children: /* @__PURE__ */ r(J, { size: "xs", checked: M.allSelected, onChange: C.noop, label: h("common.actions.select_all") }) }),
|
|
27020
27020
|
/* @__PURE__ */ r(A, {}),
|
|
@@ -30498,12 +30498,12 @@ const jD = (e) => new BD(e), QD = ({
|
|
|
30498
30498
|
return ((Jt = Ge.description) == null ? void 0 : Jt.toLowerCase().includes(te)) || Ge.label.toLowerCase().includes(te);
|
|
30499
30499
|
};
|
|
30500
30500
|
return l.filter(Le);
|
|
30501
|
-
}, [T, l]),
|
|
30501
|
+
}, [T, l]), F = z(() => new Set(l.map((te) => te.value)), [l]), H = z(() => new Set(i), [i]), U = z(() => H.size !== F.size ? !1 : Array.from(F).every((te) => H.has(te)), [H, F]), oe = () => {
|
|
30502
30502
|
if (U) {
|
|
30503
30503
|
o([]);
|
|
30504
30504
|
return;
|
|
30505
30505
|
}
|
|
30506
|
-
const te = Array.from(
|
|
30506
|
+
const te = Array.from(F);
|
|
30507
30507
|
o(te);
|
|
30508
30508
|
};
|
|
30509
30509
|
return /* @__PURE__ */ u(D, { gap: 3, children: [
|
|
@@ -30519,7 +30519,7 @@ const jD = (e) => new BD(e), QD = ({
|
|
|
30519
30519
|
/* @__PURE__ */ r(og, { 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(no, { errorMessage: s }), maxTagTextLength: 10, maxTagPlaceholder: (te) => d("filter.widget.common.x_selected", {
|
|
30520
30520
|
count: te.length
|
|
30521
30521
|
}), searchValue: T, onSearch: M, filterOption: !1, dropdownRender: (te) => /* @__PURE__ */ u(q, { children: [
|
|
30522
|
-
|
|
30522
|
+
F.size > 0 && !T && /* @__PURE__ */ r(v, { px: "xs", py: "xs", onClick: oe, styles: JD, children: /* @__PURE__ */ r(J, { size: "xs", checked: U, onChange: C.noop, label: d("common.actions.select_all") }) }),
|
|
30523
30523
|
/* @__PURE__ */ r(A, {}),
|
|
30524
30524
|
te
|
|
30525
30525
|
] }), children: $.map((te) => /* @__PURE__ */ u(lg, { title: te.label, children: [
|
|
@@ -30710,9 +30710,9 @@ const u6 = (e, t, n) => {
|
|
|
30710
30710
|
const H = M.getTime() < w.getTime() ? [M, T] : [w, $];
|
|
30711
30711
|
s(H), t(H);
|
|
30712
30712
|
};
|
|
30713
|
-
|
|
30713
|
+
N(() => {
|
|
30714
30714
|
s(e.value);
|
|
30715
|
-
}, [e]),
|
|
30715
|
+
}, [e]), N(() => {
|
|
30716
30716
|
s([null, null]);
|
|
30717
30717
|
}, [n]);
|
|
30718
30718
|
const d = z(() => n ? null : l[0] ? P(l[0]) : null, [l, n]), h = z(() => n ? null : l[0] ? P(l[0]).add(365, "days") : null, [l, n]), p = ne((b) => {
|
|
@@ -30742,8 +30742,8 @@ const u6 = (e, t, n) => {
|
|
|
30742
30742
|
};
|
|
30743
30743
|
const {
|
|
30744
30744
|
start: $,
|
|
30745
|
-
end:
|
|
30746
|
-
} = M, H = s6(_, $, l), U = c6(_,
|
|
30745
|
+
end: F
|
|
30746
|
+
} = M, H = s6(_, $, l), U = c6(_, F), oe = l6(b, T, l, a), te = oe && H, Le = oe && U, Ge = _.isBefore(d) || _.isAfter(h);
|
|
30747
30747
|
return {
|
|
30748
30748
|
onMouseEnter: () => o(b),
|
|
30749
30749
|
onMouseLeave: () => o(null),
|
|
@@ -30751,7 +30751,7 @@ const u6 = (e, t, n) => {
|
|
|
30751
30751
|
firstInRange: te,
|
|
30752
30752
|
lastInRange: Le,
|
|
30753
30753
|
selected: H || U,
|
|
30754
|
-
onClick: () => c($,
|
|
30754
|
+
onClick: () => c($, F),
|
|
30755
30755
|
disabled: Ge
|
|
30756
30756
|
};
|
|
30757
30757
|
}, [i, t, a, n, d, h, l]);
|
|
@@ -31005,31 +31005,33 @@ const u6 = (e, t, n) => {
|
|
|
31005
31005
|
...t
|
|
31006
31006
|
}, n) => /* @__PURE__ */ r("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(I6, { filter: e, formFieldProps: t }) }) }))), V6 = ({
|
|
31007
31007
|
disabled: e,
|
|
31008
|
-
onSubmit: t
|
|
31008
|
+
onSubmit: t,
|
|
31009
|
+
stale: n
|
|
31009
31010
|
}) => {
|
|
31010
31011
|
const {
|
|
31011
|
-
t:
|
|
31012
|
+
t: a
|
|
31012
31013
|
} = y(), {
|
|
31013
|
-
renderSearchButton:
|
|
31014
|
+
renderSearchButton: i
|
|
31014
31015
|
} = Pg();
|
|
31015
|
-
return
|
|
31016
|
+
return i ? i({
|
|
31016
31017
|
disabled: e,
|
|
31017
|
-
onSubmit: t
|
|
31018
|
+
onSubmit: t,
|
|
31019
|
+
stale: n
|
|
31018
31020
|
}) : /* @__PURE__ */ u(V.Group, { children: [
|
|
31019
|
-
/* @__PURE__ */ r(V, { color: "blue", size: "sm", onClick: () => t(), disabled: e, children:
|
|
31021
|
+
/* @__PURE__ */ r(V, { color: "blue", size: "sm", onClick: () => t(), disabled: e, "data-stale": n || void 0, children: a("common.actions.search") }),
|
|
31020
31022
|
/* @__PURE__ */ u(W, { trigger: "hover", disabled: e, position: "bottom-end", children: [
|
|
31021
|
-
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(V, { disabled: e, color: "blue", px: "xs", style: {
|
|
31023
|
+
/* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(V, { disabled: e, color: "blue", px: "xs", "data-stale": n || void 0, style: {
|
|
31022
31024
|
borderLeft: `1px solid ${e ? "white" : "var(--mantine-color-gray-4)"}`
|
|
31023
31025
|
}, children: /* @__PURE__ */ r(ls, { size: 16 }) }) }),
|
|
31024
31026
|
/* @__PURE__ */ r(W.Dropdown, { children: /* @__PURE__ */ r(W.Item, { leftSection: /* @__PURE__ */ r(ni, { size: 14 }), disabled: e, onClick: () => t({
|
|
31025
31027
|
force: !0
|
|
31026
|
-
}), children:
|
|
31028
|
+
}), children: a("common.actions.reload") }) })
|
|
31027
31029
|
] })
|
|
31028
31030
|
] });
|
|
31029
31031
|
};
|
|
31030
31032
|
function L6(e) {
|
|
31031
31033
|
const t = ie();
|
|
31032
|
-
|
|
31034
|
+
N(() => {
|
|
31033
31035
|
var n, a;
|
|
31034
31036
|
(a = (n = t.filters).updatePreviewValues) == null || a.call(n, e);
|
|
31035
31037
|
}, [e]);
|
|
@@ -31037,7 +31039,7 @@ function L6(e) {
|
|
|
31037
31039
|
const co = "N/A";
|
|
31038
31040
|
function L$() {
|
|
31039
31041
|
const e = ea(), [t, n] = Q([]);
|
|
31040
|
-
return
|
|
31042
|
+
return N(() => {
|
|
31041
31043
|
const a = Nh(() => e.content.views.visibleViews.map((c) => {
|
|
31042
31044
|
var d;
|
|
31043
31045
|
return c.type === K.Tabs ? (d = c.tabView) == null ? void 0 : d.view_id : c.id;
|
|
@@ -31117,36 +31119,39 @@ const O6 = ({
|
|
|
31117
31119
|
}] = rn(!0), i = Se(), {
|
|
31118
31120
|
control: o,
|
|
31119
31121
|
handleSubmit: l,
|
|
31120
|
-
reset: s
|
|
31122
|
+
reset: s,
|
|
31123
|
+
formState: {
|
|
31124
|
+
isDirty: c
|
|
31125
|
+
}
|
|
31121
31126
|
} = fe({
|
|
31122
31127
|
defaultValues: i.filters.values,
|
|
31123
31128
|
// make sure the preview value is updated when filters are changed
|
|
31124
31129
|
reValidateMode: "onBlur"
|
|
31125
|
-
}),
|
|
31130
|
+
}), d = Kp({
|
|
31126
31131
|
control: o
|
|
31127
31132
|
});
|
|
31128
|
-
|
|
31133
|
+
N(() => {
|
|
31129
31134
|
s(i.filters.values);
|
|
31130
|
-
}, [i.filters.values, s]), L6(
|
|
31131
|
-
const
|
|
31132
|
-
|
|
31133
|
-
},
|
|
31134
|
-
const
|
|
31135
|
-
l(i.filters.setValues)(),
|
|
31135
|
+
}, [i.filters.values, s]), L6(d);
|
|
31136
|
+
const h = i.filters.visibleInView(t.id), p = z(() => h.every((T) => T.should_auto_submit), [h]), g = z(() => h.filter((T) => C.get(T, "config.required", !1)), [h]), b = z(() => g.length === 0 ? !1 : g.some((T) => !T.requiredAndPass(d[T.key])), [d, g]), _ = (T, M) => ($, F) => {
|
|
31137
|
+
M($), (T.should_auto_submit || F) && i.filters.setValueByKey(T.key, $);
|
|
31138
|
+
}, w = ne((T) => {
|
|
31139
|
+
const M = C.get(T, "force", !1);
|
|
31140
|
+
l(i.filters.setValues)(), M && i.queries.forceReloadVisibleQueries();
|
|
31136
31141
|
}, [l, i.filters.setValues]);
|
|
31137
|
-
return
|
|
31142
|
+
return h.length === 0 ? null : /* @__PURE__ */ u("form", { children: [
|
|
31138
31143
|
/* @__PURE__ */ r(O6, { opened: n, toggle: a }),
|
|
31139
|
-
/* @__PURE__ */ r(hr, { in: n, children: /* @__PURE__ */ u(v, { className: "dashboard-filters", justify: "space-between", wrap: "nowrap", sx:
|
|
31144
|
+
/* @__PURE__ */ r(hr, { in: n, children: /* @__PURE__ */ u(v, { className: "dashboard-filters", justify: "space-between", wrap: "nowrap", sx: p ? {} : {
|
|
31140
31145
|
border: "1px solid #e9ecef",
|
|
31141
31146
|
borderRadius: "4px",
|
|
31142
31147
|
padding: "16px"
|
|
31143
31148
|
}, children: [
|
|
31144
|
-
/* @__PURE__ */ r(v, { align: "flex-start", children:
|
|
31145
|
-
field:
|
|
31146
|
-
}) => /* @__PURE__ */ r(M6, { filter:
|
|
31147
|
-
!
|
|
31149
|
+
/* @__PURE__ */ r(v, { align: "flex-start", children: h.map((T) => /* @__PURE__ */ r(f, { name: T.key, control: o, render: ({
|
|
31150
|
+
field: M
|
|
31151
|
+
}) => /* @__PURE__ */ r(M6, { filter: T, value: M.value, onChange: _(T, M.onChange) }) }, T.id)) }),
|
|
31152
|
+
!p && /* @__PURE__ */ r(v, { sx: {
|
|
31148
31153
|
alignSelf: "flex-end"
|
|
31149
|
-
}, children: /* @__PURE__ */ r(V6, { disabled:
|
|
31154
|
+
}, children: /* @__PURE__ */ r(V6, { disabled: b, onSubmit: w, stale: c }) })
|
|
31150
31155
|
] }) })
|
|
31151
31156
|
] });
|
|
31152
31157
|
}), Bu = {
|
|
@@ -31406,7 +31411,7 @@ function Uu(e, t) {
|
|
|
31406
31411
|
const n = ia().getRequired(ke.instanceScope.vizInstance);
|
|
31407
31412
|
return Qn(async () => {
|
|
31408
31413
|
Oe(await n.instanceData.getItem(null), t.viz.conf) || await n.instanceData.setItem(null, t.viz.conf);
|
|
31409
|
-
}, [n, t.viz.conf]),
|
|
31414
|
+
}, [n, t.viz.conf]), N(() => n.instanceData.watchItem(null, (a) => {
|
|
31410
31415
|
e(a);
|
|
31411
31416
|
}), [e, t.viz.type]), n;
|
|
31412
31417
|
}
|
|
@@ -31495,7 +31500,7 @@ function J6(e) {
|
|
|
31495
31500
|
const {
|
|
31496
31501
|
setEchartsOptions: t
|
|
31497
31502
|
} = Me();
|
|
31498
|
-
|
|
31503
|
+
N(() => {
|
|
31499
31504
|
const n = (i) => {
|
|
31500
31505
|
t(i);
|
|
31501
31506
|
}, a = e.messageChannels.getChannel("viz");
|
|
@@ -31551,7 +31556,7 @@ function a4(e) {
|
|
|
31551
31556
|
const t = wt(null), n = ne((a) => {
|
|
31552
31557
|
t.current = a;
|
|
31553
31558
|
}, []);
|
|
31554
|
-
return
|
|
31559
|
+
return N(() => {
|
|
31555
31560
|
t.current = null;
|
|
31556
31561
|
}, [e]), {
|
|
31557
31562
|
getEchartsOptions: () => t.current,
|
|
@@ -32094,7 +32099,7 @@ const $4 = I(({
|
|
|
32094
32099
|
view: t
|
|
32095
32100
|
}) => {
|
|
32096
32101
|
const a = ie().layouts, [i, o] = cp();
|
|
32097
|
-
return
|
|
32102
|
+
return N(() => {
|
|
32098
32103
|
a.setCurrentLayoutWrapperWidth(o.width);
|
|
32099
32104
|
}, [o.width]), /* @__PURE__ */ r(R, { sx: {
|
|
32100
32105
|
height: "100%"
|
|
@@ -34247,7 +34252,7 @@ function $n(e) {
|
|
|
34247
34252
|
console.groupCollapsed("Running operation ", e.type), console.log(e), console.groupEnd();
|
|
34248
34253
|
}
|
|
34249
34254
|
function ih(e, t) {
|
|
34250
|
-
|
|
34255
|
+
N(() => {
|
|
34251
34256
|
const a = (i) => {
|
|
34252
34257
|
$n(i);
|
|
34253
34258
|
const {
|
|
@@ -34264,7 +34269,7 @@ function ih(e, t) {
|
|
|
34264
34269
|
};
|
|
34265
34270
|
}, [e, t]);
|
|
34266
34271
|
const n = cg();
|
|
34267
|
-
|
|
34272
|
+
N(() => {
|
|
34268
34273
|
const a = (i) => {
|
|
34269
34274
|
$n(i);
|
|
34270
34275
|
const {
|
|
@@ -34284,7 +34289,7 @@ function ih(e, t) {
|
|
|
34284
34289
|
return window.addEventListener("scroll_to_panel", a), () => {
|
|
34285
34290
|
window.removeEventListener("scroll_to_panel", a);
|
|
34286
34291
|
};
|
|
34287
|
-
}, [n]),
|
|
34292
|
+
}, [n]), N(() => {
|
|
34288
34293
|
const a = (i) => {
|
|
34289
34294
|
$n(i);
|
|
34290
34295
|
const {
|
|
@@ -34305,7 +34310,7 @@ function ih(e, t) {
|
|
|
34305
34310
|
return window.addEventListener("switch_tab", a), () => {
|
|
34306
34311
|
window.removeEventListener("switch_tab", a);
|
|
34307
34312
|
};
|
|
34308
|
-
}, [e, t]),
|
|
34313
|
+
}, [e, t]), N(() => {
|
|
34309
34314
|
const a = (i) => {
|
|
34310
34315
|
$n(i);
|
|
34311
34316
|
const {
|
|
@@ -34325,7 +34330,7 @@ function ih(e, t) {
|
|
|
34325
34330
|
return window.addEventListener("set-filter-values", a), () => {
|
|
34326
34331
|
window.removeEventListener("set-filter-values", a);
|
|
34327
34332
|
};
|
|
34328
|
-
}, [e]),
|
|
34333
|
+
}, [e]), N(() => {
|
|
34329
34334
|
function a(o) {
|
|
34330
34335
|
return Array.isArray(o) ? [] : typeof o == "object" ? {} : typeof o == "boolean" ? !1 : typeof o == "string" ? "" : typeof o == "number" ? 0 : o;
|
|
34331
34336
|
}
|
|
@@ -34342,7 +34347,7 @@ function ih(e, t) {
|
|
|
34342
34347
|
return window.addEventListener("clear-filter-values", i), () => {
|
|
34343
34348
|
window.removeEventListener("clear-filter-values", i);
|
|
34344
34349
|
};
|
|
34345
|
-
}, [e]),
|
|
34350
|
+
}, [e]), N(() => {
|
|
34346
34351
|
const a = (i) => {
|
|
34347
34352
|
$n(i);
|
|
34348
34353
|
const {
|
|
@@ -34509,7 +34514,7 @@ const MI = I(({
|
|
|
34509
34514
|
}) => {
|
|
34510
34515
|
const Le = te.filter((Ge) => Number.isFinite(Ge.breakpoint));
|
|
34511
34516
|
a.updateLayoutSetsInfo(Le), e();
|
|
34512
|
-
}, $ = c(),
|
|
34517
|
+
}, $ = c(), F = z(() => {
|
|
34513
34518
|
const te = {
|
|
34514
34519
|
list: $.list.filter((Le) => !!Le.name && Number.isFinite(Le.breakpoint))
|
|
34515
34520
|
};
|
|
@@ -34564,8 +34569,8 @@ const MI = I(({
|
|
|
34564
34569
|
] }),
|
|
34565
34570
|
/* @__PURE__ */ r(k, { mt: 6, ta: "right", size: "xs", c: "red", children: H ?? " " }),
|
|
34566
34571
|
/* @__PURE__ */ u(v, { mt: 6, justify: "space-between", children: [
|
|
34567
|
-
/* @__PURE__ */ r(V, { color: "orange", size: "xs", onClick: () => d(), leftSection: /* @__PURE__ */ r(kt, { size: 18 }), disabled: !
|
|
34568
|
-
/* @__PURE__ */ r(V, { color: "green", size: "xs", type: "submit", leftSection: /* @__PURE__ */ r(be, { size: 18 }), disabled: !
|
|
34572
|
+
/* @__PURE__ */ r(V, { color: "orange", size: "xs", onClick: () => d(), leftSection: /* @__PURE__ */ r(kt, { size: 18 }), disabled: !F, children: t("common.actions.revert") }),
|
|
34573
|
+
/* @__PURE__ */ r(V, { color: "green", size: "xs", type: "submit", leftSection: /* @__PURE__ */ r(be, { size: 18 }), disabled: !F, children: t("common.actions.save_changes") })
|
|
34569
34574
|
] })
|
|
34570
34575
|
] }) });
|
|
34571
34576
|
}), RI = I(() => {
|
|
@@ -34793,12 +34798,12 @@ const QI = I(({
|
|
|
34793
34798
|
content: null
|
|
34794
34799
|
}
|
|
34795
34800
|
}), p = ({
|
|
34796
|
-
content:
|
|
34801
|
+
content: F
|
|
34797
34802
|
}) => {
|
|
34798
34803
|
try {
|
|
34799
|
-
if (!
|
|
34804
|
+
if (!F)
|
|
34800
34805
|
throw new Error("please use a valid json file");
|
|
34801
|
-
i.applyJSONSchema(
|
|
34806
|
+
i.applyJSONSchema(F), un({
|
|
34802
34807
|
title: "Successful",
|
|
34803
34808
|
message: "",
|
|
34804
34809
|
color: "green"
|
|
@@ -34811,11 +34816,11 @@ const QI = I(({
|
|
|
34811
34816
|
});
|
|
34812
34817
|
}
|
|
34813
34818
|
}, [g, b] = Q(null);
|
|
34814
|
-
|
|
34819
|
+
N(() => {
|
|
34815
34820
|
if (!g)
|
|
34816
34821
|
return;
|
|
34817
|
-
const
|
|
34818
|
-
|
|
34822
|
+
const F = new FileReader();
|
|
34823
|
+
F.readAsText(g, "UTF-8"), F.onload = (H) => {
|
|
34819
34824
|
try {
|
|
34820
34825
|
const U = jI(H);
|
|
34821
34826
|
s("content", U), h("content");
|
|
@@ -34825,15 +34830,15 @@ const QI = I(({
|
|
|
34825
34830
|
message: U.message
|
|
34826
34831
|
});
|
|
34827
34832
|
}
|
|
34828
|
-
},
|
|
34829
|
-
|
|
34833
|
+
}, F.onabort = () => console.log("🟨 abort"), F.onerror = () => {
|
|
34834
|
+
F.error && (console.error(F.error), d("content", {
|
|
34830
34835
|
type: "custom",
|
|
34831
|
-
message:
|
|
34836
|
+
message: F.error.message
|
|
34832
34837
|
}));
|
|
34833
34838
|
};
|
|
34834
34839
|
}, [g]);
|
|
34835
34840
|
const [_] = c(["content"]), w = !_, T = (M = l == null ? void 0 : l.content) == null ? void 0 : M.message;
|
|
34836
|
-
return
|
|
34841
|
+
return N(() => {
|
|
34837
34842
|
!_ || T ? n() : t();
|
|
34838
34843
|
}, [_, T]), /* @__PURE__ */ r(R, { mx: "auto", sx: {
|
|
34839
34844
|
position: "relative"
|
|
@@ -36264,7 +36269,7 @@ const z8 = I(() => {
|
|
|
36264
36269
|
} = t, [a, i] = rs(n), o = n !== a, l = E.useCallback(() => {
|
|
36265
36270
|
o && t.setName(a);
|
|
36266
36271
|
}, [o, a]);
|
|
36267
|
-
|
|
36272
|
+
N(() => {
|
|
36268
36273
|
i(n);
|
|
36269
36274
|
}, [n]);
|
|
36270
36275
|
const s = !a.trim();
|
|
@@ -36481,7 +36486,7 @@ const X8 = [{
|
|
|
36481
36486
|
}, [e, i]), d = () => {
|
|
36482
36487
|
i.queries.downloadDataByQueryID(null, e);
|
|
36483
36488
|
};
|
|
36484
|
-
|
|
36489
|
+
N(() => {
|
|
36485
36490
|
n && c();
|
|
36486
36491
|
}, [c, n]);
|
|
36487
36492
|
const h = !Array.isArray(o) || o.length === 0;
|
|
@@ -36576,7 +36581,7 @@ const oM = I(({
|
|
|
36576
36581
|
const {
|
|
36577
36582
|
t: n
|
|
36578
36583
|
} = y(), [a, i] = rs(e);
|
|
36579
|
-
|
|
36584
|
+
N(() => {
|
|
36580
36585
|
i(e);
|
|
36581
36586
|
}, [e]);
|
|
36582
36587
|
const o = iM(), l = e !== a;
|
|
@@ -36669,7 +36674,7 @@ const cM = I(() => {
|
|
|
36669
36674
|
const {
|
|
36670
36675
|
t: n
|
|
36671
36676
|
} = y(), a = ie(), [i, o] = Q(t);
|
|
36672
|
-
|
|
36677
|
+
N(() => {
|
|
36673
36678
|
o(t);
|
|
36674
36679
|
}, [t]);
|
|
36675
36680
|
const [l, {
|
|
@@ -36930,7 +36935,7 @@ const vM = I(({
|
|
|
36930
36935
|
const {
|
|
36931
36936
|
t
|
|
36932
36937
|
} = y(), n = Ot(), a = le(), i = ie(), [o, l] = Q(a.editor.panelTab), s = e.queries, d = _M(e.viz.type) && e.dataLoading, h = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || s.length === 0, p = a.editor.path[1];
|
|
36933
|
-
|
|
36938
|
+
N(() => {
|
|
36934
36939
|
l((w) => h && w === "Visualization" ? "Data" : w);
|
|
36935
36940
|
}, [e.id, h]);
|
|
36936
36941
|
const g = ne((w) => {
|
|
@@ -37452,7 +37457,7 @@ const LM = I(({
|
|
|
37452
37457
|
const {
|
|
37453
37458
|
t
|
|
37454
37459
|
} = y(), n = e.dbInfo;
|
|
37455
|
-
return
|
|
37460
|
+
return N(() => {
|
|
37456
37461
|
n.loadTablesIfEmpty();
|
|
37457
37462
|
}, [n]), n.tables.error ? /* @__PURE__ */ r(k, { c: "red", size: "md", ta: "center", ff: "monospace", children: n.tables.error }) : /* @__PURE__ */ u(Be, { sx: {
|
|
37458
37463
|
height: "100%"
|
|
@@ -37614,7 +37619,7 @@ const LM = I(({
|
|
|
37614
37619
|
const {
|
|
37615
37620
|
t
|
|
37616
37621
|
} = y(), [n, a] = Q(e.name);
|
|
37617
|
-
|
|
37622
|
+
N(() => {
|
|
37618
37623
|
a(e.name);
|
|
37619
37624
|
}, [e.name]);
|
|
37620
37625
|
const i = z(() => e.conditionOptionsWithInvalidRunbys.optionGroups.map((l) => ({
|
|
@@ -37827,7 +37832,7 @@ WHERE
|
|
|
37827
37832
|
}, s = () => {
|
|
37828
37833
|
i(UM);
|
|
37829
37834
|
};
|
|
37830
|
-
|
|
37835
|
+
N(() => {
|
|
37831
37836
|
i(n.sql);
|
|
37832
37837
|
}, [n.sql]);
|
|
37833
37838
|
const c = a !== n.sql;
|
|
@@ -37938,7 +37943,7 @@ WHERE
|
|
|
37938
37943
|
const {
|
|
37939
37944
|
t
|
|
37940
37945
|
} = y(), n = ie(), a = z(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [i, o] = Q(a);
|
|
37941
|
-
|
|
37946
|
+
N(() => {
|
|
37942
37947
|
o((c) => c !== "Configurations" && a === "Configurations" ? "Configurations" : c);
|
|
37943
37948
|
}, [a]);
|
|
37944
37949
|
const s = n.findQueryUsage(e.id).length === 0;
|
|
@@ -38216,7 +38221,7 @@ const s9 = [{
|
|
|
38216
38221
|
}, [e.fetchData]), o = () => {
|
|
38217
38222
|
vu(e.name, e.data);
|
|
38218
38223
|
};
|
|
38219
|
-
|
|
38224
|
+
N(() => {
|
|
38220
38225
|
i();
|
|
38221
38226
|
}, [i]);
|
|
38222
38227
|
const l = !Array.isArray(t) || t.length === 0;
|
|
@@ -38520,7 +38525,7 @@ const s9 = [{
|
|
|
38520
38525
|
queryModel: e
|
|
38521
38526
|
}) => {
|
|
38522
38527
|
const t = e.config, a = e.datasource.mericoMetricInfo;
|
|
38523
|
-
return
|
|
38528
|
+
return N(() => {
|
|
38524
38529
|
a.selectMetric(t.id);
|
|
38525
38530
|
}, [t.id, a]), /* @__PURE__ */ u(D, { gap: 7, children: [
|
|
38526
38531
|
/* @__PURE__ */ u(v, { justify: "flex-start", gap: 8, children: [
|
|
@@ -38659,7 +38664,7 @@ const s9 = [{
|
|
|
38659
38664
|
queryModel: e
|
|
38660
38665
|
}) => {
|
|
38661
38666
|
const t = e.config, a = e.datasource.mericoMetricInfo;
|
|
38662
|
-
return
|
|
38667
|
+
return N(() => {
|
|
38663
38668
|
a.selectMetric(t.id);
|
|
38664
38669
|
}, [t.id, a]), a.metricDetail.metricType !== "sql" ? null : /* @__PURE__ */ u(D, { gap: 7, children: [
|
|
38665
38670
|
/* @__PURE__ */ u(v, { justify: "flex-start", gap: 8, children: [
|
|
@@ -38803,7 +38808,7 @@ const s9 = [{
|
|
|
38803
38808
|
queryModel: e
|
|
38804
38809
|
}) => {
|
|
38805
38810
|
const t = e.config, a = e.datasource.mericoMetricInfo, i = a.metricDetail, o = a.metrics.loading || i.loading, l = i.error, s = wt(t.timeQuery.enabled);
|
|
38806
|
-
if (
|
|
38811
|
+
if (N(() => {
|
|
38807
38812
|
if (s.current && !t.timeQuery.enabled) {
|
|
38808
38813
|
const d = xt(t.extraCalculations) || [], h = Lu(d, !1);
|
|
38809
38814
|
h.length !== d.length && t.setExtraCalculations(h);
|
|
@@ -38840,7 +38845,7 @@ const s9 = [{
|
|
|
38840
38845
|
queryModel: e
|
|
38841
38846
|
}) => {
|
|
38842
38847
|
const t = e.config, n = t.id;
|
|
38843
|
-
|
|
38848
|
+
N(() => {
|
|
38844
38849
|
if (e.run_by.length === 0)
|
|
38845
38850
|
return;
|
|
38846
38851
|
const s = [], c = t.usedFilterVariableSet, d = t.usedTimeQueryVariableSet;
|
|
@@ -38925,9 +38930,9 @@ const s9 = [{
|
|
|
38925
38930
|
queryModel: e
|
|
38926
38931
|
}) => {
|
|
38927
38932
|
const t = e.config, a = e.datasource.mericoMetricInfo, i = a.metrics;
|
|
38928
|
-
|
|
38933
|
+
N(() => {
|
|
38929
38934
|
i.load();
|
|
38930
|
-
}, [i]),
|
|
38935
|
+
}, [i]), N(() => {
|
|
38931
38936
|
!a.metricID && t.id && a.selectMetric(t.id);
|
|
38932
38937
|
}, [t.id]);
|
|
38933
38938
|
const o = z(() => i.data.map((h) => ({
|
|
@@ -39029,7 +39034,7 @@ const s9 = [{
|
|
|
39029
39034
|
}, d = l !== e.key, h = e.isADuplicatedKey(l), [p, g] = Q(e.value), b = () => {
|
|
39030
39035
|
e.setValue(p);
|
|
39031
39036
|
};
|
|
39032
|
-
|
|
39037
|
+
N(() => {
|
|
39033
39038
|
s(e.key), g(e.value);
|
|
39034
39039
|
}, [e]);
|
|
39035
39040
|
const _ = p !== e.value, w = Ot(), T = () => {
|
|
@@ -39552,7 +39557,7 @@ const s9 = [{
|
|
|
39552
39557
|
const {
|
|
39553
39558
|
t
|
|
39554
39559
|
} = y(), n = ie(), a = le().editor, i = a.isOptionActive, o = i(a.path, e), l = a.isOptionOpened, s = a.navigate, c = l(e), [d, h] = Q(c);
|
|
39555
|
-
|
|
39560
|
+
N(() => {
|
|
39556
39561
|
h(c);
|
|
39557
39562
|
}, [c]);
|
|
39558
39563
|
const p = e._type === "query";
|
|
@@ -39640,7 +39645,7 @@ const s9 = [{
|
|
|
39640
39645
|
] }) });
|
|
39641
39646
|
}), vV = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
39642
39647
|
function xV(e) {
|
|
39643
|
-
|
|
39648
|
+
N(() => {
|
|
39644
39649
|
if (ya.__getMonacoInstance())
|
|
39645
39650
|
return;
|
|
39646
39651
|
console.log("loading monaco for @devtable/dashboard");
|
|
@@ -39657,7 +39662,7 @@ const wV = (e) => {
|
|
|
39657
39662
|
const a = n || window.event;
|
|
39658
39663
|
return a.preventDefault(), a && (a.returnValue = ""), "";
|
|
39659
39664
|
}, []);
|
|
39660
|
-
|
|
39665
|
+
N(() => {
|
|
39661
39666
|
if (e)
|
|
39662
39667
|
return window.addEventListener("beforeunload", t), () => {
|
|
39663
39668
|
window.removeEventListener("beforeunload", t);
|
|
@@ -39721,7 +39726,7 @@ const SV = {
|
|
|
39721
39726
|
}), [T]);
|
|
39722
39727
|
const M = async () => {
|
|
39723
39728
|
await a(T.json, T.content.json);
|
|
39724
|
-
}, $ = Wt(Ji, []),
|
|
39729
|
+
}, $ = Wt(Ji, []), F = oh($);
|
|
39725
39730
|
return wV(T.content.changed), Ul("@devtable/dashboard editor", {
|
|
39726
39731
|
context: e,
|
|
39727
39732
|
dashboard: t,
|
|
@@ -39743,7 +39748,7 @@ const SV = {
|
|
|
39743
39748
|
inEditMode: !0
|
|
39744
39749
|
}, children: [
|
|
39745
39750
|
/* @__PURE__ */ r(YI, {}),
|
|
39746
|
-
/* @__PURE__ */ r(ln.Provider, { value: $, children: /* @__PURE__ */ u(aa, { configure:
|
|
39751
|
+
/* @__PURE__ */ r(ln.Provider, { value: $, children: /* @__PURE__ */ u(aa, { configure: F, children: [
|
|
39747
39752
|
/* @__PURE__ */ u(ot, { padding: 0, navbar: {
|
|
39748
39753
|
width: {
|
|
39749
39754
|
base: 200,
|
|
@@ -40023,7 +40028,7 @@ const DV = ({
|
|
|
40023
40028
|
setFullScreenPanelID: l
|
|
40024
40029
|
}, children: /* @__PURE__ */ r(Un.Provider, { value: {
|
|
40025
40030
|
inEditMode: !1
|
|
40026
|
-
}, children: /* @__PURE__ */ r(R, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(ln.Provider, { value: M, children: /* @__PURE__ */ r(aa, { configure: $, children: T.content.views.visibleViews.map((
|
|
40031
|
+
}, children: /* @__PURE__ */ r(R, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(ln.Provider, { value: M, children: /* @__PURE__ */ r(aa, { configure: $, children: T.content.views.visibleViews.map((F) => /* @__PURE__ */ r(fo, { view: F }, F.id)) }) }) }) }) }) }) }) }) }) }) }) }) }) });
|
|
40027
40032
|
}, O$ = I(DV), q$ = () => Promise.resolve().then(() => Mg).then(({
|
|
40028
40033
|
version: e
|
|
40029
40034
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|