@devtable/dashboard 4.15.0 → 4.16.1
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 +226 -187
- package/dist/dashboard.umd.js +10 -10
- package/dist/panel/panel-description.d.ts +3 -1
- package/dist/panel/settings/viz-config/preview-viz.d.ts +3 -1
- package/dist/panel/settings/viz-config/viz-conf.d.ts +3 -1
- package/dist/plugins/viz-components/cartesian/type.d.ts +2 -0
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Ai = Object.defineProperty;
|
|
2
2
|
var Mi = (t, e, n) => e in t ? Ai(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var O = (t, e, n) => (Mi(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { Box as $, Text as v, Button as F, Checkbox as He, MultiSelect as hn, Select as q, TextInput as k, Group as g, Stack as w, ActionIcon as z, LoadingOverlay as Vt, Table as zt, Tabs as V, Textarea as pn, AppShell as mn, Modal as
|
|
4
|
+
import { Box as $, Text as v, Button as F, Checkbox as He, MultiSelect as hn, Select as q, TextInput as k, Group as g, Stack as w, ActionIcon as z, LoadingOverlay as Vt, Table as zt, Tabs as V, Textarea as pn, AppShell as mn, Modal as we, Divider as U, SimpleGrid as Li, NumberInput as Ce, Menu as ue, Tooltip as qi, Paper as $i, Code as hr, Switch as Fe, useMantineTheme as Ni, ColorInput as Bi, ColorSwatch as pr, Slider as Vr, createStyles as fn, Popover as Zt, Accordion as A, SegmentedControl as ji, JsonInput as Gi } from "@mantine/core";
|
|
5
5
|
import { useModals as Wi, ModalsProvider as zr } from "@mantine/modals";
|
|
6
|
-
import { useRequest as Et, useBoolean as mt, useCreation as
|
|
6
|
+
import { useRequest as Et, useBoolean as mt, useCreation as Pe, useAsyncEffect as ft, useLatest as mr } from "ahooks";
|
|
7
7
|
import { observer as D } from "mobx-react-lite";
|
|
8
8
|
import x, { forwardRef as gn, useMemo as M, useState as de, createElement as Ot, useEffect as Z, useCallback as Rt, useRef as Qi, useContext as Me, createContext as Yi } from "react";
|
|
9
|
-
import B, { omit as Ft, get as ae, values as Er, unset as Ui, isObject as Or, set as Fr, orderBy as Hi, last as Xi, noop as Ji, defaults as ne, isEqual as
|
|
10
|
-
import { useForm as
|
|
9
|
+
import B, { omit as Ft, get as ae, values as Er, unset as Ui, isObject as Or, set as Fr, orderBy as Hi, last as Xi, noop as Ji, defaults as ne, isEqual as De, defaultsDeep as Ge, findLastIndex as Ki, isEmpty as Pr, isNumber as Zi, isString as Ar, range as eo, cloneDeep as Mr, maxBy as Lr, merge as qr, minBy as to, groupBy as no, template as $r, cloneDeepWith as ro, throttle as ao } from "lodash";
|
|
10
|
+
import { useForm as ke, Controller as S, useFieldArray as Se } from "react-hook-form";
|
|
11
11
|
import { DateRangePicker as io } from "@mantine/dates";
|
|
12
12
|
import { Calendar as oo, Refresh as Nr, DeviceFloppy as ee, Trash as K, PlaylistAdd as Je, Recycle as Br, Settings as jr, Filter as so, Database as lo, Share as co, Download as Gr, Code as uo, InfoCircle as ho, ArrowRight as en, ArrowsMaximize as po, Copy as mo, ArrowLeft as fo, ArrowsMove as go, ChevronDownRight as bo } from "tabler-icons-react";
|
|
13
13
|
import vo from "axios";
|
|
@@ -31,7 +31,7 @@ import { CanvasRenderer as $e } from "echarts/renderers";
|
|
|
31
31
|
import "echarts-gl";
|
|
32
32
|
import { GridComponent as Ke, VisualMapComponent as Oo, LegendComponent as Ze, TooltipComponent as et, DataZoomComponent as At, MarkLineComponent as Fo } from "echarts/components";
|
|
33
33
|
import { transform as Zr } from "echarts-stat";
|
|
34
|
-
import * as
|
|
34
|
+
import * as ze from "d3-regression";
|
|
35
35
|
import Po from "stickybits";
|
|
36
36
|
import ea, { WidthProvider as ta } from "react-grid-layout";
|
|
37
37
|
import Ao from "jszip";
|
|
@@ -171,13 +171,13 @@ function qo() {
|
|
|
171
171
|
}
|
|
172
172
|
return null;
|
|
173
173
|
}
|
|
174
|
-
var ce = Object.assign,
|
|
174
|
+
var ce = Object.assign, Ve = 0, Gn, Wn, Qn, Yn, Un, Hn, Xn;
|
|
175
175
|
function Jn() {
|
|
176
176
|
}
|
|
177
177
|
Jn.__reactDisabledLog = !0;
|
|
178
178
|
function di() {
|
|
179
179
|
{
|
|
180
|
-
if (
|
|
180
|
+
if (Ve === 0) {
|
|
181
181
|
Gn = console.log, Wn = console.info, Qn = console.warn, Yn = console.error, Un = console.group, Hn = console.groupCollapsed, Xn = console.groupEnd;
|
|
182
182
|
var d = {
|
|
183
183
|
configurable: !0,
|
|
@@ -195,12 +195,12 @@ function qo() {
|
|
|
195
195
|
groupEnd: d
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
Ve++;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
function hi() {
|
|
202
202
|
{
|
|
203
|
-
if (
|
|
203
|
+
if (Ve--, Ve === 0) {
|
|
204
204
|
var d = {
|
|
205
205
|
configurable: !0,
|
|
206
206
|
enumerable: !0,
|
|
@@ -230,7 +230,7 @@ function qo() {
|
|
|
230
230
|
})
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
Ve < 0 && W("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
var Wt = Q.ReactCurrentDispatcher, Qt;
|
|
@@ -278,29 +278,29 @@ function qo() {
|
|
|
278
278
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
279
279
|
try {
|
|
280
280
|
Reflect.construct(L, []);
|
|
281
|
-
} catch (
|
|
282
|
-
T =
|
|
281
|
+
} catch (Ie) {
|
|
282
|
+
T = Ie;
|
|
283
283
|
}
|
|
284
284
|
Reflect.construct(d, [], L);
|
|
285
285
|
} else {
|
|
286
286
|
try {
|
|
287
287
|
L.call();
|
|
288
|
-
} catch (
|
|
289
|
-
T =
|
|
288
|
+
} catch (Ie) {
|
|
289
|
+
T = Ie;
|
|
290
290
|
}
|
|
291
291
|
d.call(L.prototype);
|
|
292
292
|
}
|
|
293
293
|
} else {
|
|
294
294
|
try {
|
|
295
295
|
throw Error();
|
|
296
|
-
} catch (
|
|
297
|
-
T =
|
|
296
|
+
} catch (Ie) {
|
|
297
|
+
T = Ie;
|
|
298
298
|
}
|
|
299
299
|
d();
|
|
300
300
|
}
|
|
301
|
-
} catch (
|
|
302
|
-
if (
|
|
303
|
-
for (var P =
|
|
301
|
+
} catch (Ie) {
|
|
302
|
+
if (Ie && T && typeof Ie.stack == "string") {
|
|
303
|
+
for (var P = Ie.stack.split(`
|
|
304
304
|
`), ie = T.stack.split(`
|
|
305
305
|
`), X = P.length - 1, J = ie.length - 1; X >= 1 && J >= 0 && P[X] !== ie[J]; )
|
|
306
306
|
J--;
|
|
@@ -940,7 +940,7 @@ const sa = x.forwardRef(function({
|
|
|
940
940
|
const n = te(), {
|
|
941
941
|
control: a,
|
|
942
942
|
handleSubmit: i
|
|
943
|
-
} =
|
|
943
|
+
} = ke({
|
|
944
944
|
defaultValues: n.filters.values
|
|
945
945
|
}), o = n.filters.visibleInView(e.id);
|
|
946
946
|
return o.length === 0 ? null : /* @__PURE__ */ r("form", {
|
|
@@ -984,7 +984,7 @@ const sa = x.forwardRef(function({
|
|
|
984
984
|
freezeLayout: B.noop,
|
|
985
985
|
inEditMode: !1,
|
|
986
986
|
inUseMode: !0
|
|
987
|
-
},
|
|
987
|
+
}, _e = x.createContext(Uo), ca = x.createContext({
|
|
988
988
|
panel: null,
|
|
989
989
|
data: [],
|
|
990
990
|
loading: !1
|
|
@@ -1587,10 +1587,10 @@ const os = D(function({
|
|
|
1587
1587
|
}) {
|
|
1588
1588
|
const {
|
|
1589
1589
|
freezeLayout: a
|
|
1590
|
-
} = x.useContext(
|
|
1590
|
+
} = x.useContext(_e);
|
|
1591
1591
|
return x.useEffect(() => {
|
|
1592
1592
|
a(e);
|
|
1593
|
-
}, [e]), /* @__PURE__ */ r(
|
|
1593
|
+
}, [e]), /* @__PURE__ */ r(we, {
|
|
1594
1594
|
size: "96vw",
|
|
1595
1595
|
overflow: "inside",
|
|
1596
1596
|
opened: e,
|
|
@@ -2075,7 +2075,7 @@ const ds = D(function({
|
|
|
2075
2075
|
sx: {
|
|
2076
2076
|
maxWidth: "30em"
|
|
2077
2077
|
},
|
|
2078
|
-
children: [/* @__PURE__ */ r(
|
|
2078
|
+
children: [/* @__PURE__ */ r(Ce, {
|
|
2079
2079
|
label: "Placement Order",
|
|
2080
2080
|
required: !0,
|
|
2081
2081
|
value: e.order,
|
|
@@ -2239,10 +2239,10 @@ const ys = D(function() {
|
|
|
2239
2239
|
}) {
|
|
2240
2240
|
const {
|
|
2241
2241
|
freezeLayout: a
|
|
2242
|
-
} = x.useContext(
|
|
2242
|
+
} = x.useContext(_e);
|
|
2243
2243
|
return x.useEffect(() => {
|
|
2244
2244
|
a(e);
|
|
2245
|
-
}, [e]), /* @__PURE__ */ r(
|
|
2245
|
+
}, [e]), /* @__PURE__ */ r(we, {
|
|
2246
2246
|
size: "96vw",
|
|
2247
2247
|
overflow: "inside",
|
|
2248
2248
|
opened: e,
|
|
@@ -2256,10 +2256,10 @@ const ys = D(function() {
|
|
|
2256
2256
|
children: /* @__PURE__ */ r(ys, {})
|
|
2257
2257
|
});
|
|
2258
2258
|
});
|
|
2259
|
-
var Cs = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(Cs || {}),
|
|
2259
|
+
var Cs = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(Cs || {}), Re = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t))(Re || {}), ws = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(ws || {});
|
|
2260
2260
|
const Ss = D(() => {
|
|
2261
2261
|
const e = te().views.VIE;
|
|
2262
|
-
return !e || e.type !==
|
|
2262
|
+
return !e || e.type !== Re.Division ? null : /* @__PURE__ */ c(w, {
|
|
2263
2263
|
children: [/* @__PURE__ */ r(U, {
|
|
2264
2264
|
mt: 8,
|
|
2265
2265
|
mb: 0,
|
|
@@ -2274,7 +2274,7 @@ const Ss = D(() => {
|
|
|
2274
2274
|
});
|
|
2275
2275
|
}), _s = D(() => {
|
|
2276
2276
|
const e = te().views.VIE;
|
|
2277
|
-
return !e || e.type !==
|
|
2277
|
+
return !e || e.type !== Re.Modal ? null : /* @__PURE__ */ c(w, {
|
|
2278
2278
|
children: [/* @__PURE__ */ r(U, {
|
|
2279
2279
|
mt: 8,
|
|
2280
2280
|
label: "Modal settings",
|
|
@@ -2298,10 +2298,10 @@ const Ss = D(() => {
|
|
|
2298
2298
|
children: [/* @__PURE__ */ r(Ss, {}), /* @__PURE__ */ r(_s, {})]
|
|
2299
2299
|
})), Ds = [{
|
|
2300
2300
|
label: "Division",
|
|
2301
|
-
value:
|
|
2301
|
+
value: Re.Division
|
|
2302
2302
|
}, {
|
|
2303
2303
|
label: "Modal",
|
|
2304
|
-
value:
|
|
2304
|
+
value: Re.Modal
|
|
2305
2305
|
}], Rs = D(() => {
|
|
2306
2306
|
const e = te().views.VIE;
|
|
2307
2307
|
return e ? /* @__PURE__ */ c(w, {
|
|
@@ -2328,10 +2328,10 @@ const Ss = D(() => {
|
|
|
2328
2328
|
var i;
|
|
2329
2329
|
const n = te(), {
|
|
2330
2330
|
freezeLayout: a
|
|
2331
|
-
} = x.useContext(
|
|
2331
|
+
} = x.useContext(_e);
|
|
2332
2332
|
return x.useEffect(() => {
|
|
2333
2333
|
a(t);
|
|
2334
|
-
}, [t]), /* @__PURE__ */ r(
|
|
2334
|
+
}, [t]), /* @__PURE__ */ r(we, {
|
|
2335
2335
|
size: "500px",
|
|
2336
2336
|
overflow: "inside",
|
|
2337
2337
|
opened: t,
|
|
@@ -2482,12 +2482,12 @@ function Es({
|
|
|
2482
2482
|
}) {
|
|
2483
2483
|
const {
|
|
2484
2484
|
freezeLayout: a
|
|
2485
|
-
} = x.useContext(
|
|
2485
|
+
} = x.useContext(_e);
|
|
2486
2486
|
x.useEffect(() => {
|
|
2487
2487
|
a(t);
|
|
2488
2488
|
}, [t]);
|
|
2489
2489
|
const i = x.useMemo(() => JSON.stringify(n(), null, 2), [t]);
|
|
2490
|
-
return /* @__PURE__ */ r(
|
|
2490
|
+
return /* @__PURE__ */ r(we, {
|
|
2491
2491
|
size: "96vw",
|
|
2492
2492
|
overflow: "inside",
|
|
2493
2493
|
opened: t,
|
|
@@ -2525,7 +2525,7 @@ const va = D(function({
|
|
|
2525
2525
|
}, o = n.views.changed || n.sqlSnippets.changed || n.queries.changed || n.filters.changed, {
|
|
2526
2526
|
inEditMode: s,
|
|
2527
2527
|
inUseMode: l
|
|
2528
|
-
} = x.useContext(
|
|
2528
|
+
} = x.useContext(_e), [u, p] = x.useState(!1), h = () => p(!0), f = () => p(!1), [m, y] = x.useState(!1), I = () => y(!0), R = () => y(!1), [E, Q] = x.useState(!1), W = () => Q(!0), be = () => Q(!1);
|
|
2529
2529
|
return /* @__PURE__ */ c(g, {
|
|
2530
2530
|
position: "apart",
|
|
2531
2531
|
pt: 0,
|
|
@@ -2619,16 +2619,16 @@ const va = D(function({
|
|
|
2619
2619
|
})]
|
|
2620
2620
|
});
|
|
2621
2621
|
});
|
|
2622
|
-
|
|
2622
|
+
const ya = D(() => {
|
|
2623
2623
|
const {
|
|
2624
2624
|
freezeLayout: t
|
|
2625
|
-
} = x.useContext(
|
|
2625
|
+
} = x.useContext(_e), [e, n] = x.useState(!1), {
|
|
2626
2626
|
panel: a
|
|
2627
2627
|
} = he();
|
|
2628
2628
|
return x.useEffect(() => {
|
|
2629
2629
|
t(e);
|
|
2630
2630
|
}, [e]), !a.description || a.description === "<p><br></p>" ? null : /* @__PURE__ */ c(Y, {
|
|
2631
|
-
children: [/* @__PURE__ */ r(
|
|
2631
|
+
children: [/* @__PURE__ */ r(we, {
|
|
2632
2632
|
opened: e,
|
|
2633
2633
|
onClose: () => n(!1),
|
|
2634
2634
|
title: a.title,
|
|
@@ -2658,8 +2658,7 @@ function ya() {
|
|
|
2658
2658
|
})
|
|
2659
2659
|
})]
|
|
2660
2660
|
});
|
|
2661
|
-
}
|
|
2662
|
-
const xa = (t) => {
|
|
2661
|
+
}), xa = (t) => {
|
|
2663
2662
|
const {
|
|
2664
2663
|
title: e = "Variables",
|
|
2665
2664
|
variables: n
|
|
@@ -2768,14 +2767,14 @@ const Ls = D((t) => {
|
|
|
2768
2767
|
operationId: o,
|
|
2769
2768
|
instance: s,
|
|
2770
2769
|
variables: l
|
|
2771
|
-
} = t, u =
|
|
2770
|
+
} = t, u = Pe(() => new Os(i, s), [i, s]);
|
|
2772
2771
|
return ft(async () => {
|
|
2773
2772
|
await u.configOperation(o, l);
|
|
2774
2773
|
}, [o, u]), Fs(u) ? /* @__PURE__ */ c(Y, {
|
|
2775
2774
|
children: [/* @__PURE__ */ r(Ps, {
|
|
2776
2775
|
model: u,
|
|
2777
2776
|
onClick: n
|
|
2778
|
-
}), /* @__PURE__ */ r(
|
|
2777
|
+
}), /* @__PURE__ */ r(we, {
|
|
2779
2778
|
opened: e,
|
|
2780
2779
|
onClose: a,
|
|
2781
2780
|
title: "Operation Settings",
|
|
@@ -2821,7 +2820,7 @@ function $s(t) {
|
|
|
2821
2820
|
return !!t.triggerId && !!t.triggerSchema;
|
|
2822
2821
|
}
|
|
2823
2822
|
function Ns(t, e) {
|
|
2824
|
-
return
|
|
2823
|
+
return Pe(() => new qs(t, e), [t, e]);
|
|
2825
2824
|
}
|
|
2826
2825
|
const Bs = D(({
|
|
2827
2826
|
model: t,
|
|
@@ -2868,7 +2867,7 @@ const Bs = D(({
|
|
|
2868
2867
|
setFalse: a
|
|
2869
2868
|
}] = mt(!1), i = t.model;
|
|
2870
2869
|
return /* @__PURE__ */ c(Y, {
|
|
2871
|
-
children: [/* @__PURE__ */ r(
|
|
2870
|
+
children: [/* @__PURE__ */ r(we, {
|
|
2872
2871
|
opened: e,
|
|
2873
2872
|
onClose: a,
|
|
2874
2873
|
title: "Setup Trigger",
|
|
@@ -3127,7 +3126,7 @@ const Us = (t) => {
|
|
|
3127
3126
|
getColor: Lt(["#fff7f1", "darkorange", "#b60000"]),
|
|
3128
3127
|
name: "orange",
|
|
3129
3128
|
category: "sequential"
|
|
3130
|
-
}, nl = "4.
|
|
3129
|
+
}, nl = "4.16.1";
|
|
3131
3130
|
class rl {
|
|
3132
3131
|
constructor(e) {
|
|
3133
3132
|
O(this, "staticColors", /* @__PURE__ */ new Map());
|
|
@@ -3285,11 +3284,11 @@ function sl({
|
|
|
3285
3284
|
handleSubmit: o,
|
|
3286
3285
|
watch: s,
|
|
3287
3286
|
getValues: l
|
|
3288
|
-
} =
|
|
3287
|
+
} = ke({
|
|
3289
3288
|
defaultValues: a
|
|
3290
3289
|
});
|
|
3291
3290
|
s("content");
|
|
3292
|
-
const u = l(), p = M(() => !
|
|
3291
|
+
const u = l(), p = M(() => !De(u, e), [u, e]), h = _a(e == null ? void 0 : e.content);
|
|
3293
3292
|
return /* @__PURE__ */ r(w, {
|
|
3294
3293
|
mt: "md",
|
|
3295
3294
|
spacing: "xs",
|
|
@@ -3479,7 +3478,7 @@ function hl({
|
|
|
3479
3478
|
sx: {
|
|
3480
3479
|
flexGrow: 1
|
|
3481
3480
|
}
|
|
3482
|
-
}), /* @__PURE__ */ r(
|
|
3481
|
+
}), /* @__PURE__ */ r(Fe, {
|
|
3483
3482
|
label: /* @__PURE__ */ c(w, {
|
|
3484
3483
|
spacing: 0,
|
|
3485
3484
|
children: [/* @__PURE__ */ r(v, {
|
|
@@ -3510,7 +3509,7 @@ function hl({
|
|
|
3510
3509
|
})]
|
|
3511
3510
|
}), /* @__PURE__ */ c(g, {
|
|
3512
3511
|
grow: !0,
|
|
3513
|
-
children: [/* @__PURE__ */ r(
|
|
3512
|
+
children: [/* @__PURE__ */ r(Ce, {
|
|
3514
3513
|
label: "Mantissa",
|
|
3515
3514
|
defaultValue: 0,
|
|
3516
3515
|
min: 0,
|
|
@@ -3518,7 +3517,7 @@ function hl({
|
|
|
3518
3517
|
max: 4,
|
|
3519
3518
|
value: t.mantissa,
|
|
3520
3519
|
onChange: i
|
|
3521
|
-
}), /* @__PURE__ */ r(
|
|
3520
|
+
}), /* @__PURE__ */ r(Fe, {
|
|
3522
3521
|
label: "Trim mantissa",
|
|
3523
3522
|
checked: t.trimMantissa,
|
|
3524
3523
|
onChange: o,
|
|
@@ -3640,7 +3639,7 @@ function ml({
|
|
|
3640
3639
|
data: pl,
|
|
3641
3640
|
value: e.type,
|
|
3642
3641
|
onChange: i
|
|
3643
|
-
}), e.type === "quantile" && /* @__PURE__ */ r(
|
|
3642
|
+
}), e.type === "quantile" && /* @__PURE__ */ r(Ce, {
|
|
3644
3643
|
label: "p",
|
|
3645
3644
|
value: e.config.p,
|
|
3646
3645
|
onChange: o,
|
|
@@ -3749,7 +3748,7 @@ function yl({
|
|
|
3749
3748
|
}, n) {
|
|
3750
3749
|
const {
|
|
3751
3750
|
colorManager: a
|
|
3752
|
-
} = Me(
|
|
3751
|
+
} = Me(Te), i = x.useMemo(() => a.getStaticColors().map((l) => ({
|
|
3753
3752
|
label: l.name,
|
|
3754
3753
|
group: l.category,
|
|
3755
3754
|
value: l.value
|
|
@@ -3793,7 +3792,7 @@ function yl({
|
|
|
3793
3792
|
})]
|
|
3794
3793
|
});
|
|
3795
3794
|
}
|
|
3796
|
-
const
|
|
3795
|
+
const Ae = x.forwardRef(yl), It = [{
|
|
3797
3796
|
label: "initial",
|
|
3798
3797
|
value: 0
|
|
3799
3798
|
}, {
|
|
@@ -3947,7 +3946,7 @@ const Sl = x.forwardRef(wl), _l = x.forwardRef(function({
|
|
|
3947
3946
|
}],
|
|
3948
3947
|
value: e.color.type,
|
|
3949
3948
|
onChange: (s) => o("color.type", s)
|
|
3950
|
-
}), i === "static" && /* @__PURE__ */ r(
|
|
3949
|
+
}), i === "static" && /* @__PURE__ */ r(Ae, {
|
|
3951
3950
|
value: e.color.staticColor,
|
|
3952
3951
|
onChange: (s) => o("color.staticColor", s)
|
|
3953
3952
|
}), i === "continuous" && /* @__PURE__ */ c(Y, {
|
|
@@ -4083,7 +4082,7 @@ const Vn = (t, e) => (n) => Boolean(bt(n) && Rl.test(n) && n.startsWith(t) || e
|
|
|
4083
4082
|
test: Vn("hsl", "hue"),
|
|
4084
4083
|
parse: Ta("hue", "saturation", "lightness"),
|
|
4085
4084
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: a = 1 }) => "hsla(" + Math.round(t) + ", " + dt.transform(ut(e)) + ", " + dt.transform(ut(n)) + ", " + ut(ka.transform(a)) + ")"
|
|
4086
|
-
}, Tl = Ra(0, 255), tn = Object.assign(Object.assign({}, Nt), { transform: (t) => Math.round(Tl(t)) }),
|
|
4085
|
+
}, Tl = Ra(0, 255), tn = Object.assign(Object.assign({}, Nt), { transform: (t) => Math.round(Tl(t)) }), Ee = {
|
|
4087
4086
|
test: Vn("rgb", "red"),
|
|
4088
4087
|
parse: Ta("red", "green", "blue"),
|
|
4089
4088
|
transform: ({ red: t, green: e, blue: n, alpha: a = 1 }) => "rgba(" + tn.transform(t) + ", " + tn.transform(e) + ", " + tn.transform(n) + ", " + ut(ka.transform(a)) + ")"
|
|
@@ -4100,11 +4099,11 @@ function Vl(t) {
|
|
|
4100
4099
|
const ln = {
|
|
4101
4100
|
test: Vn("#"),
|
|
4102
4101
|
parse: Vl,
|
|
4103
|
-
transform:
|
|
4102
|
+
transform: Ee.transform
|
|
4104
4103
|
}, Bt = {
|
|
4105
|
-
test: (t) =>
|
|
4106
|
-
parse: (t) =>
|
|
4107
|
-
transform: (t) => bt(t) ? t : t.hasOwnProperty("red") ?
|
|
4104
|
+
test: (t) => Ee.test(t) || ln.test(t) || Ne.test(t),
|
|
4105
|
+
parse: (t) => Ee.test(t) ? Ee.parse(t) : Ne.test(t) ? Ne.parse(t) : ln.parse(t),
|
|
4106
|
+
transform: (t) => bt(t) ? t : t.hasOwnProperty("red") ? Ee.transform(t) : Ne.transform(t)
|
|
4108
4107
|
}, Va = "${c}", za = "${n}";
|
|
4109
4108
|
function zl(t) {
|
|
4110
4109
|
var e, n, a, i;
|
|
@@ -4159,11 +4158,11 @@ function xr({ hue: t, saturation: e, lightness: n, alpha: a }) {
|
|
|
4159
4158
|
const Fl = (t, e, n) => {
|
|
4160
4159
|
const a = t * t, i = e * e;
|
|
4161
4160
|
return Math.sqrt(Math.max(0, n * (i - a) + a));
|
|
4162
|
-
}, Pl = [ln,
|
|
4161
|
+
}, Pl = [ln, Ee, Ne], Cr = (t) => Pl.find((e) => e.test(t)), wr = (t) => `'${t}' is not an animatable color. Use the equivalent color code instead.`, Aa = (t, e) => {
|
|
4163
4162
|
let n = Cr(t), a = Cr(e);
|
|
4164
4163
|
pt(!!n, wr(t)), pt(!!a, wr(e));
|
|
4165
4164
|
let i = n.parse(t), o = a.parse(e);
|
|
4166
|
-
n === Ne && (i = xr(i), n =
|
|
4165
|
+
n === Ne && (i = xr(i), n = Ee), a === Ne && (o = xr(o), a = Ee);
|
|
4167
4166
|
const s = Object.assign({}, i);
|
|
4168
4167
|
return (l) => {
|
|
4169
4168
|
for (const u in s)
|
|
@@ -4406,7 +4405,7 @@ function ec({
|
|
|
4406
4405
|
fields: a,
|
|
4407
4406
|
append: i,
|
|
4408
4407
|
remove: o
|
|
4409
|
-
} =
|
|
4408
|
+
} = Se({
|
|
4410
4409
|
control: t,
|
|
4411
4410
|
name: "variables"
|
|
4412
4411
|
}), s = e("variables"), l = a.map((p, h) => ({
|
|
@@ -4452,7 +4451,7 @@ function tc({
|
|
|
4452
4451
|
watch: l,
|
|
4453
4452
|
getValues: u,
|
|
4454
4453
|
reset: p
|
|
4455
|
-
} =
|
|
4454
|
+
} = ke({
|
|
4456
4455
|
defaultValues: i
|
|
4457
4456
|
});
|
|
4458
4457
|
x.useEffect(() => {
|
|
@@ -4524,7 +4523,7 @@ const nc = {
|
|
|
4524
4523
|
viewRender: Kl,
|
|
4525
4524
|
configRender: tc
|
|
4526
4525
|
};
|
|
4527
|
-
var
|
|
4526
|
+
var Oe = /* @__PURE__ */ ((t) => (t.string = "string", t.number = "number", t.eloc = "eloc", t.percentage = "percentage", t))(Oe || {});
|
|
4528
4527
|
const Tt = {
|
|
4529
4528
|
columns: [],
|
|
4530
4529
|
fontSize: "1rem",
|
|
@@ -4537,7 +4536,7 @@ const Tt = {
|
|
|
4537
4536
|
}, rc = ({
|
|
4538
4537
|
vizManager: t,
|
|
4539
4538
|
instance: e
|
|
4540
|
-
}) =>
|
|
4539
|
+
}) => Pe(
|
|
4541
4540
|
() => new Xa(e, t.resolveComponent(e.type), Nn),
|
|
4542
4541
|
[e, t]
|
|
4543
4542
|
), ac = (t, e) => {
|
|
@@ -4793,19 +4792,19 @@ function Ic(t) {
|
|
|
4793
4792
|
}
|
|
4794
4793
|
function Dc(t) {
|
|
4795
4794
|
switch (t.type) {
|
|
4796
|
-
case
|
|
4795
|
+
case Oe.string:
|
|
4797
4796
|
return /* @__PURE__ */ r(wc, {
|
|
4798
4797
|
...t
|
|
4799
4798
|
});
|
|
4800
|
-
case
|
|
4799
|
+
case Oe.eloc:
|
|
4801
4800
|
return /* @__PURE__ */ r(Sc, {
|
|
4802
4801
|
...t
|
|
4803
4802
|
});
|
|
4804
|
-
case
|
|
4803
|
+
case Oe.number:
|
|
4805
4804
|
return /* @__PURE__ */ r(_c, {
|
|
4806
4805
|
...t
|
|
4807
4806
|
});
|
|
4808
|
-
case
|
|
4807
|
+
case Oe.percentage:
|
|
4809
4808
|
return /* @__PURE__ */ r(Ic, {
|
|
4810
4809
|
...t
|
|
4811
4810
|
});
|
|
@@ -4814,7 +4813,7 @@ function Dc(t) {
|
|
|
4814
4813
|
const Rc = (t) => {
|
|
4815
4814
|
const e = rc(t), n = ac(e.triggerManager, zn.id), {
|
|
4816
4815
|
colorManager: a
|
|
4817
|
-
} = Me(
|
|
4816
|
+
} = Me(Te);
|
|
4818
4817
|
return Rt((i) => new Tc(t.getColIndex, i, n, e, a), [n, e, t.getColIndex]);
|
|
4819
4818
|
};
|
|
4820
4819
|
function kc({
|
|
@@ -4837,16 +4836,16 @@ function kc({
|
|
|
4837
4836
|
} = vc(), f = x.useMemo(() => s ? Object.keys(n[0]).map((se) => ({
|
|
4838
4837
|
label: se,
|
|
4839
4838
|
value_field: se,
|
|
4840
|
-
value_type:
|
|
4839
|
+
value_type: Oe.string
|
|
4841
4840
|
})) : l, [s, l, n]), m = Rc({
|
|
4842
4841
|
getColIndex: Rt((se) => f.indexOf(se.column.columnDef.meta), [f]),
|
|
4843
4842
|
vizManager: t.vizManager,
|
|
4844
4843
|
instance: e
|
|
4845
4844
|
}), y = M(() => {
|
|
4846
4845
|
const se = _o(), ve = f.map((ce) => se.accessor(ce.value_field, {
|
|
4847
|
-
cell: (
|
|
4848
|
-
tableCellContext: m(
|
|
4849
|
-
value:
|
|
4846
|
+
cell: (Ve) => /* @__PURE__ */ r(Dc, {
|
|
4847
|
+
tableCellContext: m(Ve.cell),
|
|
4848
|
+
value: Ve.getValue(),
|
|
4850
4849
|
type: ce.value_type
|
|
4851
4850
|
}),
|
|
4852
4851
|
header: ce.label,
|
|
@@ -5085,7 +5084,7 @@ function Ec(t) {
|
|
|
5085
5084
|
})
|
|
5086
5085
|
}), /* @__PURE__ */ r(Zt.Dropdown, {
|
|
5087
5086
|
children: /* @__PURE__ */ c(w, {
|
|
5088
|
-
children: [/* @__PURE__ */ r(
|
|
5087
|
+
children: [/* @__PURE__ */ r(Ce, {
|
|
5089
5088
|
size: "xs",
|
|
5090
5089
|
label: "Map a value to this color",
|
|
5091
5090
|
value: s,
|
|
@@ -5134,7 +5133,7 @@ const Oc = D(({
|
|
|
5134
5133
|
}, a))
|
|
5135
5134
|
});
|
|
5136
5135
|
}), Fc = D(function(e) {
|
|
5137
|
-
const n =
|
|
5136
|
+
const n = Pe(() => new zc(), []);
|
|
5138
5137
|
return Z(() => {
|
|
5139
5138
|
n.fromProps(e);
|
|
5140
5139
|
}), n.interpolation == null ? null : /* @__PURE__ */ r(Oc, {
|
|
@@ -5176,7 +5175,7 @@ const Oc = D(({
|
|
|
5176
5175
|
variant: "outline",
|
|
5177
5176
|
onClick: p,
|
|
5178
5177
|
children: l == null ? void 0 : l.displayName
|
|
5179
|
-
}), /* @__PURE__ */ r(
|
|
5178
|
+
}), /* @__PURE__ */ r(we, {
|
|
5180
5179
|
size: 508,
|
|
5181
5180
|
title: "Setup color interpolation",
|
|
5182
5181
|
opened: u,
|
|
@@ -5229,7 +5228,7 @@ function qc(t, e) {
|
|
|
5229
5228
|
const $c = (t) => {
|
|
5230
5229
|
const {
|
|
5231
5230
|
colorManager: e
|
|
5232
|
-
} = Me(
|
|
5231
|
+
} = Me(Te), [n, a] = de(Qa(t.value)), [i, o] = de(Lc(e, t.value)), s = mr(i), [l, u] = de(qc(e, t.value)), p = mr(l);
|
|
5233
5232
|
return /* @__PURE__ */ c(g, {
|
|
5234
5233
|
align: "end",
|
|
5235
5234
|
children: [/* @__PURE__ */ r(q, {
|
|
@@ -5240,7 +5239,7 @@ const $c = (t) => {
|
|
|
5240
5239
|
a(y || "none"), y === "static" ? (I = t.onChange) == null || I.call(t, s.current) : y === "none" || !y ? (R = t.onChange) == null || R.call(t, "none") : (E = t.onChange) == null || E.call(t, p.current);
|
|
5241
5240
|
},
|
|
5242
5241
|
data: Ac
|
|
5243
|
-
}), n === "static" && /* @__PURE__ */ r(
|
|
5242
|
+
}), n === "static" && /* @__PURE__ */ r(Ae, {
|
|
5244
5243
|
value: i,
|
|
5245
5244
|
onChange: (y) => {
|
|
5246
5245
|
var I;
|
|
@@ -5255,7 +5254,7 @@ const $c = (t) => {
|
|
|
5255
5254
|
}
|
|
5256
5255
|
})]
|
|
5257
5256
|
});
|
|
5258
|
-
}, Nc = Object.values(
|
|
5257
|
+
}, Nc = Object.values(Oe).map((t) => ({
|
|
5259
5258
|
label: t,
|
|
5260
5259
|
value: t
|
|
5261
5260
|
}));
|
|
@@ -5289,7 +5288,7 @@ function jc({
|
|
|
5289
5288
|
const i = t.data || [], o = () => a.insertListItem("columns", {
|
|
5290
5289
|
label: ge(),
|
|
5291
5290
|
value_field: "value",
|
|
5292
|
-
value_type:
|
|
5291
|
+
value_type: Oe.string
|
|
5293
5292
|
});
|
|
5294
5293
|
return /* @__PURE__ */ r(w, {
|
|
5295
5294
|
mt: "md",
|
|
@@ -5380,12 +5379,12 @@ function jc({
|
|
|
5380
5379
|
}), /* @__PURE__ */ c(g, {
|
|
5381
5380
|
position: "apart",
|
|
5382
5381
|
grow: !0,
|
|
5383
|
-
children: [/* @__PURE__ */ r(
|
|
5382
|
+
children: [/* @__PURE__ */ r(Fe, {
|
|
5384
5383
|
label: "Striped",
|
|
5385
5384
|
...a.getInputProps("striped", {
|
|
5386
5385
|
type: "checkbox"
|
|
5387
5386
|
})
|
|
5388
|
-
}), /* @__PURE__ */ r(
|
|
5387
|
+
}), /* @__PURE__ */ r(Fe, {
|
|
5389
5388
|
label: "Highlight on hover",
|
|
5390
5389
|
...a.getInputProps("highlightOnHover", {
|
|
5391
5390
|
type: "checkbox"
|
|
@@ -5402,7 +5401,7 @@ function jc({
|
|
|
5402
5401
|
border: "1px solid #eee",
|
|
5403
5402
|
borderRadius: "5px"
|
|
5404
5403
|
},
|
|
5405
|
-
children: [/* @__PURE__ */ r(
|
|
5404
|
+
children: [/* @__PURE__ */ r(Fe, {
|
|
5406
5405
|
label: "Use Original Data Columns",
|
|
5407
5406
|
...a.getInputProps("use_raw_columns", {
|
|
5408
5407
|
type: "checkbox"
|
|
@@ -5900,7 +5899,7 @@ function nu({
|
|
|
5900
5899
|
control: o,
|
|
5901
5900
|
handleSubmit: s,
|
|
5902
5901
|
reset: l
|
|
5903
|
-
} =
|
|
5902
|
+
} = ke({
|
|
5904
5903
|
defaultValues: i
|
|
5905
5904
|
});
|
|
5906
5905
|
return Z(() => {
|
|
@@ -6254,7 +6253,7 @@ function lu({
|
|
|
6254
6253
|
fields: n,
|
|
6255
6254
|
append: a,
|
|
6256
6255
|
remove: i
|
|
6257
|
-
} =
|
|
6256
|
+
} = Se({
|
|
6258
6257
|
control: t,
|
|
6259
6258
|
name: "reference_lines"
|
|
6260
6259
|
}), o = e("reference_lines"), s = n.map((h, f) => ({
|
|
@@ -6333,7 +6332,7 @@ function uu({
|
|
|
6333
6332
|
fields: a,
|
|
6334
6333
|
append: i,
|
|
6335
6334
|
remove: o
|
|
6336
|
-
} =
|
|
6335
|
+
} = Se({
|
|
6337
6336
|
control: t,
|
|
6338
6337
|
name: "variables"
|
|
6339
6338
|
}), s = e("variables"), l = a.map((p, h) => ({
|
|
@@ -6368,13 +6367,13 @@ function du({
|
|
|
6368
6367
|
watch: l,
|
|
6369
6368
|
getValues: u,
|
|
6370
6369
|
reset: p
|
|
6371
|
-
} =
|
|
6370
|
+
} = ke({
|
|
6372
6371
|
defaultValues: i
|
|
6373
6372
|
});
|
|
6374
6373
|
Z(() => {
|
|
6375
6374
|
p(i);
|
|
6376
6375
|
}, [i]), l(["x_axis", "y_axis", "reference_lines", "color"]);
|
|
6377
|
-
const h = u(), f = M(() => !
|
|
6376
|
+
const h = u(), f = M(() => !De(h, e), [h, e]);
|
|
6378
6377
|
return /* @__PURE__ */ r(w, {
|
|
6379
6378
|
mt: "md",
|
|
6380
6379
|
spacing: "xs",
|
|
@@ -6484,7 +6483,7 @@ function du({
|
|
|
6484
6483
|
control: o,
|
|
6485
6484
|
render: ({
|
|
6486
6485
|
field: m
|
|
6487
|
-
}) => /* @__PURE__ */ r(
|
|
6486
|
+
}) => /* @__PURE__ */ r(Ae, {
|
|
6488
6487
|
...m
|
|
6489
6488
|
})
|
|
6490
6489
|
})]
|
|
@@ -6937,7 +6936,7 @@ function ku({
|
|
|
6937
6936
|
fields: n,
|
|
6938
6937
|
append: a,
|
|
6939
6938
|
remove: i
|
|
6940
|
-
} =
|
|
6939
|
+
} = Se({
|
|
6941
6940
|
control: t,
|
|
6942
6941
|
name: "reference_lines"
|
|
6943
6942
|
}), o = e("reference_lines"), s = n.map((h, f) => ({
|
|
@@ -7087,7 +7086,7 @@ function zu({
|
|
|
7087
7086
|
control: t,
|
|
7088
7087
|
render: ({
|
|
7089
7088
|
field: l
|
|
7090
|
-
}) => /* @__PURE__ */ r(
|
|
7089
|
+
}) => /* @__PURE__ */ r(Ce, {
|
|
7091
7090
|
label: "Order",
|
|
7092
7091
|
sx: {
|
|
7093
7092
|
flex: 1
|
|
@@ -7100,19 +7099,36 @@ function zu({
|
|
|
7100
7099
|
variant: "dashed",
|
|
7101
7100
|
label: "Line Style",
|
|
7102
7101
|
labelPosition: "center"
|
|
7103
|
-
}), /* @__PURE__ */
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7102
|
+
}), /* @__PURE__ */ c(g, {
|
|
7103
|
+
grow: !0,
|
|
7104
|
+
children: [/* @__PURE__ */ r(S, {
|
|
7105
|
+
name: `regressions.${n}.plot.lineStyle.type`,
|
|
7106
|
+
control: t,
|
|
7107
|
+
render: ({
|
|
7108
|
+
field: l
|
|
7109
|
+
}) => /* @__PURE__ */ r(q, {
|
|
7110
|
+
label: "Line Type",
|
|
7111
|
+
data: Vu,
|
|
7112
|
+
sx: {
|
|
7113
|
+
flexGrow: 1
|
|
7114
|
+
},
|
|
7115
|
+
...l
|
|
7116
|
+
})
|
|
7117
|
+
}), /* @__PURE__ */ r(S, {
|
|
7118
|
+
name: `regressions.${n}.plot.lineStyle.width`,
|
|
7119
|
+
control: t,
|
|
7120
|
+
render: ({
|
|
7121
|
+
field: l
|
|
7122
|
+
}) => /* @__PURE__ */ r(Ce, {
|
|
7123
|
+
label: "Line Width",
|
|
7124
|
+
min: 1,
|
|
7125
|
+
max: 10,
|
|
7126
|
+
sx: {
|
|
7127
|
+
flexGrow: 1
|
|
7128
|
+
},
|
|
7129
|
+
...l
|
|
7130
|
+
})
|
|
7131
|
+
})]
|
|
7116
7132
|
}), /* @__PURE__ */ c(w, {
|
|
7117
7133
|
spacing: 4,
|
|
7118
7134
|
children: [/* @__PURE__ */ r(v, {
|
|
@@ -7123,7 +7139,7 @@ function zu({
|
|
|
7123
7139
|
control: t,
|
|
7124
7140
|
render: ({
|
|
7125
7141
|
field: l
|
|
7126
|
-
}) => /* @__PURE__ */ r(
|
|
7142
|
+
}) => /* @__PURE__ */ r(Ae, {
|
|
7127
7143
|
...l
|
|
7128
7144
|
})
|
|
7129
7145
|
})]
|
|
@@ -7151,7 +7167,7 @@ function Eu({
|
|
|
7151
7167
|
fields: a,
|
|
7152
7168
|
append: i,
|
|
7153
7169
|
remove: o
|
|
7154
|
-
} =
|
|
7170
|
+
} = Se({
|
|
7155
7171
|
control: t,
|
|
7156
7172
|
name: "regressions"
|
|
7157
7173
|
}), s = e("regressions"), l = a.map((f, m) => ({
|
|
@@ -7178,7 +7194,8 @@ function Eu({
|
|
|
7178
7194
|
yAxisIndex: 0,
|
|
7179
7195
|
color: "#666666",
|
|
7180
7196
|
lineStyle: {
|
|
7181
|
-
type: "solid"
|
|
7197
|
+
type: "solid",
|
|
7198
|
+
width: 1
|
|
7182
7199
|
}
|
|
7183
7200
|
}
|
|
7184
7201
|
});
|
|
@@ -7190,7 +7207,7 @@ function Eu({
|
|
|
7190
7207
|
remove: o,
|
|
7191
7208
|
yAxisOptions: p,
|
|
7192
7209
|
data: n
|
|
7193
|
-
})), /* @__PURE__ */ r(g, {
|
|
7210
|
+
}, m)), /* @__PURE__ */ r(g, {
|
|
7194
7211
|
position: "center",
|
|
7195
7212
|
mt: "xs",
|
|
7196
7213
|
children: /* @__PURE__ */ r(F, {
|
|
@@ -7289,19 +7306,36 @@ function Mu({
|
|
|
7289
7306
|
variant: "dashed",
|
|
7290
7307
|
label: "Line Settings",
|
|
7291
7308
|
labelPosition: "center"
|
|
7292
|
-
}), /* @__PURE__ */
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7309
|
+
}), /* @__PURE__ */ c(g, {
|
|
7310
|
+
grow: !0,
|
|
7311
|
+
children: [/* @__PURE__ */ r(S, {
|
|
7312
|
+
name: `series.${e}.lineStyle.type`,
|
|
7313
|
+
control: t,
|
|
7314
|
+
render: ({
|
|
7315
|
+
field: n
|
|
7316
|
+
}) => /* @__PURE__ */ r(q, {
|
|
7317
|
+
label: "Line Type",
|
|
7318
|
+
data: Au,
|
|
7319
|
+
sx: {
|
|
7320
|
+
flexGrow: 1
|
|
7321
|
+
},
|
|
7322
|
+
...n
|
|
7323
|
+
})
|
|
7324
|
+
}), /* @__PURE__ */ r(S, {
|
|
7325
|
+
name: `series.${e}.lineStyle.width`,
|
|
7326
|
+
control: t,
|
|
7327
|
+
render: ({
|
|
7328
|
+
field: n
|
|
7329
|
+
}) => /* @__PURE__ */ r(Ce, {
|
|
7330
|
+
label: "Line Width",
|
|
7331
|
+
min: 1,
|
|
7332
|
+
max: 10,
|
|
7333
|
+
sx: {
|
|
7334
|
+
flexGrow: 1
|
|
7335
|
+
},
|
|
7336
|
+
...n
|
|
7337
|
+
})
|
|
7338
|
+
})]
|
|
7305
7339
|
}), /* @__PURE__ */ c(g, {
|
|
7306
7340
|
grow: !0,
|
|
7307
7341
|
align: "center",
|
|
@@ -7333,7 +7367,7 @@ function Mu({
|
|
|
7333
7367
|
sx: {
|
|
7334
7368
|
flexGrow: 1
|
|
7335
7369
|
},
|
|
7336
|
-
children: /* @__PURE__ */ r(
|
|
7370
|
+
children: /* @__PURE__ */ r(Fe, {
|
|
7337
7371
|
label: "Smooth Line",
|
|
7338
7372
|
checked: n.value,
|
|
7339
7373
|
onChange: (a) => n.onChange(a.currentTarget.checked)
|
|
@@ -7572,7 +7606,7 @@ function Nu({
|
|
|
7572
7606
|
control: t,
|
|
7573
7607
|
render: ({
|
|
7574
7608
|
field: l
|
|
7575
|
-
}) => /* @__PURE__ */ r(
|
|
7609
|
+
}) => /* @__PURE__ */ r(Ae, {
|
|
7576
7610
|
...l
|
|
7577
7611
|
})
|
|
7578
7612
|
})]
|
|
@@ -7600,7 +7634,7 @@ function Bu({
|
|
|
7600
7634
|
fields: a,
|
|
7601
7635
|
append: i,
|
|
7602
7636
|
remove: o
|
|
7603
|
-
} =
|
|
7637
|
+
} = Se({
|
|
7604
7638
|
control: t,
|
|
7605
7639
|
name: "series"
|
|
7606
7640
|
}), s = e("series"), l = a.map((f, m) => ({
|
|
@@ -7621,7 +7655,8 @@ function Bu({
|
|
|
7621
7655
|
barWidth: "10",
|
|
7622
7656
|
barGap: "0%",
|
|
7623
7657
|
lineStyle: {
|
|
7624
|
-
type: "solid"
|
|
7658
|
+
type: "solid",
|
|
7659
|
+
width: 1
|
|
7625
7660
|
}
|
|
7626
7661
|
}), p = e("y_axes"), h = x.useMemo(() => p.map(({
|
|
7627
7662
|
name: f
|
|
@@ -7695,7 +7730,7 @@ function Gu({
|
|
|
7695
7730
|
fields: a,
|
|
7696
7731
|
append: i,
|
|
7697
7732
|
remove: o
|
|
7698
|
-
} =
|
|
7733
|
+
} = Se({
|
|
7699
7734
|
control: t,
|
|
7700
7735
|
name: "stats.variables"
|
|
7701
7736
|
});
|
|
@@ -7798,7 +7833,7 @@ function Qu({
|
|
|
7798
7833
|
fields: a,
|
|
7799
7834
|
append: i,
|
|
7800
7835
|
remove: o
|
|
7801
|
-
} =
|
|
7836
|
+
} = Se({
|
|
7802
7837
|
control: t,
|
|
7803
7838
|
name: "variables"
|
|
7804
7839
|
}), s = e("variables"), l = a.map((p, h) => ({
|
|
@@ -7867,7 +7902,7 @@ function Yu({
|
|
|
7867
7902
|
control: e,
|
|
7868
7903
|
render: ({
|
|
7869
7904
|
field: a
|
|
7870
|
-
}) => /* @__PURE__ */ r(
|
|
7905
|
+
}) => /* @__PURE__ */ r(Ce, {
|
|
7871
7906
|
label: "Rotate",
|
|
7872
7907
|
hideControls: !0,
|
|
7873
7908
|
min: -90,
|
|
@@ -8019,7 +8054,7 @@ function Ju({
|
|
|
8019
8054
|
fields: n,
|
|
8020
8055
|
append: a,
|
|
8021
8056
|
remove: i
|
|
8022
|
-
} =
|
|
8057
|
+
} = Se({
|
|
8023
8058
|
control: t,
|
|
8024
8059
|
name: "y_axes"
|
|
8025
8060
|
}), o = e("y_axes"), s = n.map((u, p) => ({
|
|
@@ -8061,7 +8096,8 @@ function Ku(t) {
|
|
|
8061
8096
|
step: I = !1,
|
|
8062
8097
|
group_by_key: R = "",
|
|
8063
8098
|
lineStyle: E = {
|
|
8064
|
-
type: "solid"
|
|
8099
|
+
type: "solid",
|
|
8100
|
+
width: 1
|
|
8065
8101
|
}
|
|
8066
8102
|
}) {
|
|
8067
8103
|
return {
|
|
@@ -8112,7 +8148,7 @@ function td({
|
|
|
8112
8148
|
set: n
|
|
8113
8149
|
} = G(t.instanceData, "config"), a = t.data, i = M(() => Ge({}, e, An), [e]), o = M(() => ed(i), [i]);
|
|
8114
8150
|
Z(() => {
|
|
8115
|
-
!
|
|
8151
|
+
!De(i, o) && (console.log("config malformed, resetting to defaults", i, o), n(o));
|
|
8116
8152
|
}, [i, o]);
|
|
8117
8153
|
const {
|
|
8118
8154
|
control: s,
|
|
@@ -8120,13 +8156,13 @@ function td({
|
|
|
8120
8156
|
watch: u,
|
|
8121
8157
|
getValues: p,
|
|
8122
8158
|
reset: h
|
|
8123
|
-
} =
|
|
8159
|
+
} = ke({
|
|
8124
8160
|
defaultValues: o
|
|
8125
8161
|
});
|
|
8126
8162
|
Z(() => {
|
|
8127
8163
|
h(o);
|
|
8128
8164
|
}, [o]);
|
|
8129
|
-
const f = p(), m = M(() => !
|
|
8165
|
+
const f = p(), m = M(() => !De(f, i), [f, i]);
|
|
8130
8166
|
return /* @__PURE__ */ r(w, {
|
|
8131
8167
|
mt: "md",
|
|
8132
8168
|
spacing: "xs",
|
|
@@ -8471,7 +8507,7 @@ function cd({
|
|
|
8471
8507
|
control: t,
|
|
8472
8508
|
render: ({
|
|
8473
8509
|
field: i
|
|
8474
|
-
}) => /* @__PURE__ */ r(
|
|
8510
|
+
}) => /* @__PURE__ */ r(Ce, {
|
|
8475
8511
|
label: "Max",
|
|
8476
8512
|
hideControls: !0,
|
|
8477
8513
|
required: !0,
|
|
@@ -8521,7 +8557,7 @@ function ud({
|
|
|
8521
8557
|
fields: a,
|
|
8522
8558
|
append: i,
|
|
8523
8559
|
remove: o
|
|
8524
|
-
} =
|
|
8560
|
+
} = Se({
|
|
8525
8561
|
control: t,
|
|
8526
8562
|
name: "dimensions"
|
|
8527
8563
|
}), s = e("dimensions"), l = a.map((p, h) => ({
|
|
@@ -8579,7 +8615,7 @@ function hd({
|
|
|
8579
8615
|
series_name_key: s
|
|
8580
8616
|
}), [o, s]);
|
|
8581
8617
|
Z(() => {
|
|
8582
|
-
!
|
|
8618
|
+
!De(i, l) && a(l);
|
|
8583
8619
|
}, [i, l]);
|
|
8584
8620
|
const {
|
|
8585
8621
|
control: u,
|
|
@@ -8587,13 +8623,13 @@ function hd({
|
|
|
8587
8623
|
watch: h,
|
|
8588
8624
|
getValues: f,
|
|
8589
8625
|
reset: m
|
|
8590
|
-
} =
|
|
8626
|
+
} = ke({
|
|
8591
8627
|
defaultValues: l
|
|
8592
8628
|
});
|
|
8593
8629
|
Z(() => {
|
|
8594
|
-
|
|
8630
|
+
De(f(), l) || m(l);
|
|
8595
8631
|
}, [i]), h(["series_name_key"]);
|
|
8596
|
-
const y = f(), I = M(() => !
|
|
8632
|
+
const y = f(), I = M(() => !De(y, i), [y, i]);
|
|
8597
8633
|
return /* @__PURE__ */ r(w, {
|
|
8598
8634
|
mt: "md",
|
|
8599
8635
|
spacing: "xs",
|
|
@@ -8667,13 +8703,13 @@ const md = {
|
|
|
8667
8703
|
function fd(t, e) {
|
|
8668
8704
|
switch (t.config.method) {
|
|
8669
8705
|
case "linear":
|
|
8670
|
-
return [...
|
|
8706
|
+
return [...ze.regressionLinear()(e)];
|
|
8671
8707
|
case "exponential":
|
|
8672
|
-
return [...
|
|
8708
|
+
return [...ze.regressionExp()(e)];
|
|
8673
8709
|
case "logarithmic":
|
|
8674
|
-
return [...
|
|
8710
|
+
return [...ze.regressionLog()(e)];
|
|
8675
8711
|
case "polynomial":
|
|
8676
|
-
return [...
|
|
8712
|
+
return [...ze.regressionPoly().order(t.config.order)(e)];
|
|
8677
8713
|
default:
|
|
8678
8714
|
return [];
|
|
8679
8715
|
}
|
|
@@ -8758,7 +8794,7 @@ function yd(t, e) {
|
|
|
8758
8794
|
y_axis: i
|
|
8759
8795
|
} = e, o = t.map((s) => [s[a.data_key], s[n.y_axis_data_key]]);
|
|
8760
8796
|
if (n.transform.config.method === "linear") {
|
|
8761
|
-
const s =
|
|
8797
|
+
const s = ze.regressionLinear()(o), {
|
|
8762
8798
|
a: l,
|
|
8763
8799
|
b: u,
|
|
8764
8800
|
rSquared: p
|
|
@@ -8797,7 +8833,7 @@ function yd(t, e) {
|
|
|
8797
8833
|
a: s,
|
|
8798
8834
|
b: l,
|
|
8799
8835
|
rSquared: u
|
|
8800
|
-
} =
|
|
8836
|
+
} = ze.regressionExp()(o);
|
|
8801
8837
|
return {
|
|
8802
8838
|
expression: /* @__PURE__ */ c(g, {
|
|
8803
8839
|
position: "center",
|
|
@@ -8841,7 +8877,7 @@ function yd(t, e) {
|
|
|
8841
8877
|
a: s,
|
|
8842
8878
|
b: l,
|
|
8843
8879
|
rSquared: u
|
|
8844
|
-
} =
|
|
8880
|
+
} = ze.regressionLog()(o);
|
|
8845
8881
|
return {
|
|
8846
8882
|
expression: /* @__PURE__ */ c(g, {
|
|
8847
8883
|
position: "center",
|
|
@@ -8881,7 +8917,7 @@ function yd(t, e) {
|
|
|
8881
8917
|
};
|
|
8882
8918
|
}
|
|
8883
8919
|
if (n.transform.config.method === "polynomial") {
|
|
8884
|
-
const s =
|
|
8920
|
+
const s = ze.regressionPoly().order(n.transform.config.order)(o), {
|
|
8885
8921
|
rSquared: l
|
|
8886
8922
|
} = s;
|
|
8887
8923
|
return console.log(s), {
|
|
@@ -8917,7 +8953,8 @@ const Ln = {
|
|
|
8917
8953
|
yAxisIndex: 0,
|
|
8918
8954
|
color: "#228be6",
|
|
8919
8955
|
lineStyle: {
|
|
8920
|
-
type: "solid"
|
|
8956
|
+
type: "solid",
|
|
8957
|
+
width: 1
|
|
8921
8958
|
}
|
|
8922
8959
|
},
|
|
8923
8960
|
name: "regression",
|
|
@@ -9084,7 +9121,7 @@ function wd({
|
|
|
9084
9121
|
control: t,
|
|
9085
9122
|
render: ({
|
|
9086
9123
|
field: i
|
|
9087
|
-
}) => /* @__PURE__ */ r(
|
|
9124
|
+
}) => /* @__PURE__ */ r(Ce, {
|
|
9088
9125
|
label: "Order",
|
|
9089
9126
|
sx: {
|
|
9090
9127
|
flex: 1
|
|
@@ -9102,7 +9139,7 @@ function wd({
|
|
|
9102
9139
|
control: t,
|
|
9103
9140
|
render: ({
|
|
9104
9141
|
field: i
|
|
9105
|
-
}) => /* @__PURE__ */ r(
|
|
9142
|
+
}) => /* @__PURE__ */ r(Ae, {
|
|
9106
9143
|
...i
|
|
9107
9144
|
})
|
|
9108
9145
|
})]
|
|
@@ -9121,13 +9158,13 @@ function Sd({
|
|
|
9121
9158
|
watch: l,
|
|
9122
9159
|
getValues: u,
|
|
9123
9160
|
reset: p
|
|
9124
|
-
} =
|
|
9161
|
+
} = ke({
|
|
9125
9162
|
defaultValues: i
|
|
9126
9163
|
});
|
|
9127
9164
|
Z(() => {
|
|
9128
9165
|
p(i);
|
|
9129
9166
|
}, [i]), l(["x_axis", "y_axis", "regression"]);
|
|
9130
|
-
const h = u(), f = M(() => !
|
|
9167
|
+
const h = u(), f = M(() => !De(h, e), [h, e]);
|
|
9131
9168
|
return /* @__PURE__ */ r(w, {
|
|
9132
9169
|
mt: "md",
|
|
9133
9170
|
spacing: "xs",
|
|
@@ -9364,6 +9401,10 @@ function kd({
|
|
|
9364
9401
|
itemStyle: {
|
|
9365
9402
|
color: u.color
|
|
9366
9403
|
},
|
|
9404
|
+
symbolSize: 2,
|
|
9405
|
+
lineStyle: {
|
|
9406
|
+
width: 1
|
|
9407
|
+
},
|
|
9367
9408
|
label: {
|
|
9368
9409
|
show: !0,
|
|
9369
9410
|
position: "top",
|
|
@@ -9394,13 +9435,13 @@ function Td({
|
|
|
9394
9435
|
watch: l,
|
|
9395
9436
|
getValues: u,
|
|
9396
9437
|
reset: p
|
|
9397
|
-
} =
|
|
9438
|
+
} = ke({
|
|
9398
9439
|
defaultValues: i
|
|
9399
9440
|
});
|
|
9400
9441
|
Z(() => {
|
|
9401
9442
|
p(i);
|
|
9402
9443
|
}, [i]), l(["x_axis", "data_key", "bar", "line"]);
|
|
9403
|
-
const h = u(), f = M(() => !
|
|
9444
|
+
const h = u(), f = M(() => !De(h, e), [h, e]);
|
|
9404
9445
|
return /* @__PURE__ */ r(w, {
|
|
9405
9446
|
mt: "md",
|
|
9406
9447
|
spacing: "xs",
|
|
@@ -9499,7 +9540,7 @@ function Td({
|
|
|
9499
9540
|
control: o,
|
|
9500
9541
|
render: ({
|
|
9501
9542
|
field: m
|
|
9502
|
-
}) => /* @__PURE__ */ r(
|
|
9543
|
+
}) => /* @__PURE__ */ r(Ae, {
|
|
9503
9544
|
...m
|
|
9504
9545
|
})
|
|
9505
9546
|
})]
|
|
@@ -9533,7 +9574,7 @@ function Td({
|
|
|
9533
9574
|
control: o,
|
|
9534
9575
|
render: ({
|
|
9535
9576
|
field: m
|
|
9536
|
-
}) => /* @__PURE__ */ r(
|
|
9577
|
+
}) => /* @__PURE__ */ r(Ae, {
|
|
9537
9578
|
...m
|
|
9538
9579
|
})
|
|
9539
9580
|
})]
|
|
@@ -9626,7 +9667,7 @@ const zd = {
|
|
|
9626
9667
|
vizManager: t,
|
|
9627
9668
|
colorManager: e
|
|
9628
9669
|
};
|
|
9629
|
-
},
|
|
9670
|
+
}, Te = Yi(Ha());
|
|
9630
9671
|
try {
|
|
9631
9672
|
lt.install(Ua);
|
|
9632
9673
|
} catch {
|
|
@@ -9674,7 +9715,7 @@ function Pd(t) {
|
|
|
9674
9715
|
value: e.urlTemplate,
|
|
9675
9716
|
onChange: s,
|
|
9676
9717
|
onBlur: i
|
|
9677
|
-
}), /* @__PURE__ */ r(
|
|
9718
|
+
}), /* @__PURE__ */ r(Fe, {
|
|
9678
9719
|
label: "Open in new Tab",
|
|
9679
9720
|
checked: e.openInNewTab,
|
|
9680
9721
|
onChange: (l) => o(l.currentTarget.checked)
|
|
@@ -9960,7 +10001,7 @@ const Qd = D(({
|
|
|
9960
10001
|
data: e
|
|
9961
10002
|
} = he(), n = t.viz, {
|
|
9962
10003
|
vizManager: a
|
|
9963
|
-
} = Me(
|
|
10004
|
+
} = Me(Te), i = t.json, o = Pe(() => a.getOrCreateInstance(i), [a, n.type]), s = Pe(() => new Xa(o, a.resolveComponent(n.type), Nn), [o, n.type]);
|
|
9964
10005
|
return Z(() => o.instanceData.watchItem(
|
|
9965
10006
|
null,
|
|
9966
10007
|
ao((l) => {
|
|
@@ -10025,7 +10066,7 @@ const Qd = D(({
|
|
|
10025
10066
|
style: e
|
|
10026
10067
|
} = t;
|
|
10027
10068
|
return /* @__PURE__ */ r(Y, {
|
|
10028
|
-
children: /* @__PURE__ */ r(
|
|
10069
|
+
children: /* @__PURE__ */ r(Fe, {
|
|
10029
10070
|
label: "Border",
|
|
10030
10071
|
checked: e.border.enabled,
|
|
10031
10072
|
onChange: (n) => e.border.setEnabled(n.currentTarget.checked)
|
|
@@ -10192,7 +10233,7 @@ const th = D(function() {
|
|
|
10192
10233
|
});
|
|
10193
10234
|
});
|
|
10194
10235
|
function Ja(t, e, n) {
|
|
10195
|
-
const a =
|
|
10236
|
+
const a = Pe(() => /* @__PURE__ */ new Set(), []), i = t.resolveComponent(e.type), [o, s] = de(!1);
|
|
10196
10237
|
return ft(async () => {
|
|
10197
10238
|
if (await i.migrator.needMigration(e) && !a.has(e.id))
|
|
10198
10239
|
try {
|
|
@@ -10246,7 +10287,7 @@ function rh(t) {
|
|
|
10246
10287
|
function ah(t, e) {
|
|
10247
10288
|
const {
|
|
10248
10289
|
vizManager: n
|
|
10249
|
-
} = Me(
|
|
10290
|
+
} = Me(Te), {
|
|
10250
10291
|
panel: {
|
|
10251
10292
|
viz: a,
|
|
10252
10293
|
title: i,
|
|
@@ -10318,8 +10359,7 @@ const ih = ["richText"], Ka = D(function({
|
|
|
10318
10359
|
children: p
|
|
10319
10360
|
})]
|
|
10320
10361
|
});
|
|
10321
|
-
})
|
|
10322
|
-
function oh() {
|
|
10362
|
+
}), oh = D(() => {
|
|
10323
10363
|
const {
|
|
10324
10364
|
data: t,
|
|
10325
10365
|
loading: e,
|
|
@@ -10333,12 +10373,11 @@ function oh() {
|
|
|
10333
10373
|
loading: e,
|
|
10334
10374
|
height: "100%"
|
|
10335
10375
|
});
|
|
10336
|
-
}
|
|
10337
|
-
const dn = [];
|
|
10376
|
+
}), dn = [];
|
|
10338
10377
|
function sh() {
|
|
10339
10378
|
const {
|
|
10340
10379
|
vizManager: t
|
|
10341
|
-
} = Me(
|
|
10380
|
+
} = Me(Te);
|
|
10342
10381
|
return M(() => t.availableVizList.map((e) => ({
|
|
10343
10382
|
value: e.name,
|
|
10344
10383
|
label: e.displayName
|
|
@@ -10367,7 +10406,7 @@ function ch() {
|
|
|
10367
10406
|
}
|
|
10368
10407
|
} = he(), {
|
|
10369
10408
|
vizManager: h
|
|
10370
|
-
} = Me(
|
|
10409
|
+
} = Me(Te), f = {
|
|
10371
10410
|
title: n,
|
|
10372
10411
|
description: i,
|
|
10373
10412
|
viz: e,
|
|
@@ -10391,7 +10430,7 @@ function ch() {
|
|
|
10391
10430
|
return console.info(ae(y, "message")), null;
|
|
10392
10431
|
}
|
|
10393
10432
|
}
|
|
10394
|
-
|
|
10433
|
+
const uh = D(() => {
|
|
10395
10434
|
const {
|
|
10396
10435
|
data: t,
|
|
10397
10436
|
panel: {
|
|
@@ -10399,7 +10438,7 @@ function uh() {
|
|
|
10399
10438
|
}
|
|
10400
10439
|
} = he(), [n, a] = Wr(e.type), i = e.type !== n, {
|
|
10401
10440
|
vizManager: o
|
|
10402
|
-
} = Me(
|
|
10441
|
+
} = Me(Te), s = x.useCallback(() => {
|
|
10403
10442
|
if (!i)
|
|
10404
10443
|
return;
|
|
10405
10444
|
const y = lh(o, n);
|
|
@@ -10438,7 +10477,7 @@ function uh() {
|
|
|
10438
10477
|
onChange: l
|
|
10439
10478
|
})]
|
|
10440
10479
|
});
|
|
10441
|
-
}
|
|
10480
|
+
});
|
|
10442
10481
|
function dh() {
|
|
10443
10482
|
return /* @__PURE__ */ c(g, {
|
|
10444
10483
|
grow: !0,
|
|
@@ -10473,7 +10512,7 @@ const hh = D(function({
|
|
|
10473
10512
|
}) {
|
|
10474
10513
|
const {
|
|
10475
10514
|
freezeLayout: a
|
|
10476
|
-
} = x.useContext(
|
|
10515
|
+
} = x.useContext(_e), [i, o] = de("Visualization"), {
|
|
10477
10516
|
panel: s,
|
|
10478
10517
|
loading: l
|
|
10479
10518
|
} = he(), {
|
|
@@ -10482,7 +10521,7 @@ const hh = D(function({
|
|
|
10482
10521
|
} = s;
|
|
10483
10522
|
return x.useEffect(() => {
|
|
10484
10523
|
a(e);
|
|
10485
|
-
}, [e]), /* @__PURE__ */ r(
|
|
10524
|
+
}, [e]), /* @__PURE__ */ r(we, {
|
|
10486
10525
|
size: "96vw",
|
|
10487
10526
|
overflow: "inside",
|
|
10488
10527
|
opened: e,
|
|
@@ -10561,7 +10600,7 @@ const hh = D(function({
|
|
|
10561
10600
|
queryID: p
|
|
10562
10601
|
} = l, {
|
|
10563
10602
|
inEditMode: h
|
|
10564
|
-
} = x.useContext(
|
|
10603
|
+
} = x.useContext(_e), f = () => e.queries.refetchDataByQueryID(p), {
|
|
10565
10604
|
viewPanelInFullScreen: m,
|
|
10566
10605
|
inFullScreen: y
|
|
10567
10606
|
} = x.useContext(Cn), I = () => {
|
|
@@ -10892,7 +10931,7 @@ const vh = x.forwardRef(({
|
|
|
10892
10931
|
})), Ih = D(({
|
|
10893
10932
|
children: t,
|
|
10894
10933
|
view: e
|
|
10895
|
-
}) => /* @__PURE__ */ r(
|
|
10934
|
+
}) => /* @__PURE__ */ r(we, {
|
|
10896
10935
|
size: e.config.width,
|
|
10897
10936
|
overflow: "inside",
|
|
10898
10937
|
opened: !0,
|
|
@@ -10929,12 +10968,12 @@ const vh = x.forwardRef(({
|
|
|
10929
10968
|
children: e
|
|
10930
10969
|
}) => {
|
|
10931
10970
|
switch (t.type) {
|
|
10932
|
-
case
|
|
10971
|
+
case Re.Modal:
|
|
10933
10972
|
return /* @__PURE__ */ r(Ih, {
|
|
10934
10973
|
view: t,
|
|
10935
10974
|
children: e
|
|
10936
10975
|
});
|
|
10937
|
-
case
|
|
10976
|
+
case Re.Division:
|
|
10938
10977
|
default:
|
|
10939
10978
|
return /* @__PURE__ */ r(_h, {
|
|
10940
10979
|
children: e
|
|
@@ -11726,7 +11765,7 @@ const li = b.model("QueryModel", {
|
|
|
11726
11765
|
t.name = e;
|
|
11727
11766
|
},
|
|
11728
11767
|
setType(e) {
|
|
11729
|
-
t.type !== e && (e ===
|
|
11768
|
+
t.type !== e && (e === Re.Modal ? t.config = {
|
|
11730
11769
|
width: "600px",
|
|
11731
11770
|
height: "400px"
|
|
11732
11771
|
} : t.config = {}, t.type = e);
|
|
@@ -11823,7 +11862,7 @@ const li = b.model("QueryModel", {
|
|
|
11823
11862
|
})).actions((t) => ({
|
|
11824
11863
|
addARandomNewView() {
|
|
11825
11864
|
const e = ge();
|
|
11826
|
-
t.addANewView(e,
|
|
11865
|
+
t.addANewView(e, Re.Division, {}), t.setIDOfVIE(e);
|
|
11827
11866
|
},
|
|
11828
11867
|
removeVIE() {
|
|
11829
11868
|
t.current.length !== 1 && (t.removeByID(t.idOfVIE), t.setIDOfVIE(t.current[0].id));
|
|
@@ -11927,11 +11966,11 @@ const Vp = D(function({
|
|
|
11927
11966
|
}
|
|
11928
11967
|
};
|
|
11929
11968
|
await a(I);
|
|
11930
|
-
}, h =
|
|
11969
|
+
}, h = Pe(Ha, []);
|
|
11931
11970
|
return /* @__PURE__ */ r(zr, {
|
|
11932
11971
|
children: /* @__PURE__ */ r(ra, {
|
|
11933
11972
|
value: u,
|
|
11934
|
-
children: /* @__PURE__ */ r(
|
|
11973
|
+
children: /* @__PURE__ */ r(_e.Provider, {
|
|
11935
11974
|
value: {
|
|
11936
11975
|
layoutFrozen: s,
|
|
11937
11976
|
freezeLayout: l,
|
|
@@ -11943,7 +11982,7 @@ const Vp = D(function({
|
|
|
11943
11982
|
sx: {
|
|
11944
11983
|
position: "relative"
|
|
11945
11984
|
},
|
|
11946
|
-
children: /* @__PURE__ */ r(
|
|
11985
|
+
children: /* @__PURE__ */ r(Te.Provider, {
|
|
11947
11986
|
value: h,
|
|
11948
11987
|
children: u.views.visibleViews.map((f) => /* @__PURE__ */ r(Rh, {
|
|
11949
11988
|
view: f,
|
|
@@ -11968,7 +12007,7 @@ function zp({
|
|
|
11968
12007
|
}, [t]), /* @__PURE__ */ r(zr, {
|
|
11969
12008
|
children: /* @__PURE__ */ r(ra, {
|
|
11970
12009
|
value: i,
|
|
11971
|
-
children: /* @__PURE__ */ r(
|
|
12010
|
+
children: /* @__PURE__ */ r(_e.Provider, {
|
|
11972
12011
|
value: {
|
|
11973
12012
|
layoutFrozen: !0,
|
|
11974
12013
|
freezeLayout: B.noop,
|
|
@@ -11990,10 +12029,10 @@ export {
|
|
|
11990
12029
|
Vp as Dashboard,
|
|
11991
12030
|
ws as DashboardFilterType,
|
|
11992
12031
|
Cs as DashboardMode,
|
|
11993
|
-
|
|
12032
|
+
Re as EViewComponentType,
|
|
11994
12033
|
Rr as FilterModel,
|
|
11995
12034
|
Fh as FiltersModel,
|
|
11996
|
-
|
|
12035
|
+
_e as LayoutStateContext,
|
|
11997
12036
|
Rh as MainDashboardView,
|
|
11998
12037
|
ra as ModelContextProvider,
|
|
11999
12038
|
Bn as Panel,
|