@devtable/dashboard 9.11.0 → 9.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +283 -273
- package/dist/dashboard.umd.js +11 -11
- package/dist/model/filters/filter/tree-select.d.ts +6 -0
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -3,11 +3,11 @@ var Ic = (e, t, r) => t in e ? Lc(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var W = (e, t, r) => (Ic(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import $, { useEffect as q, createContext as To, useMemo as L, useState as U, forwardRef as ke, useCallback as He, useContext as bt, useRef as Do, createElement as lr, memo as $c } from "react";
|
|
5
5
|
import { Box as V, Text as C, Button as I, Checkbox as ve, Group as v, Tooltip as Oe, createStyles as un, Stack as S, Badge as In, CloseButton as Lo, Select as O, TextInput as z, Modal as Te, ActionIcon as Q, Menu as Fe, Divider as R, Switch as Ye, NumberInput as re, useMantineTheme as Io, ColorInput as Ai, ColorSwatch as jr, Slider as zc, Overlay as Vt, Tabs as b, Center as Ut, CheckIcon as Mc, MANTINE_SIZES as Ac, SimpleGrid as Yt, SegmentedControl as Rc, Textarea as Ec, Collapse as Ri, HoverCard as Tt, Table as Ft, Popover as Or, LoadingOverlay as Xt, NativeSelect as Oc, Flex as On, MultiSelect as $n, Paper as Ei, Code as Ya, Alert as Vc, Header as Fc, ThemeIcon as Vr, List as Ha, UnstyledButton as Pc, Navbar as kt, JsonInput as $o, Radio as Qa, Skeleton as Ua, NavLink as Gr, Pagination as Nc, Anchor as Xa, AppShell as zo } from "@mantine/core";
|
|
6
|
-
import { useModals as
|
|
7
|
-
import { useCreation as
|
|
6
|
+
import { useModals as Lt, ModalsProvider as Mo } from "@mantine/modals";
|
|
7
|
+
import { useCreation as ut, usePrevious as Bc, useBoolean as Xe, useLatest as Za, useRequest as Vn, useAsyncEffect as Fn } from "ahooks";
|
|
8
8
|
import { observer as D } from "mobx-react-lite";
|
|
9
|
-
import k, { template as Oi, cloneDeepWith as Ao, get as se, isFunction as qc, omit as Ht, values as Ro, unset as Wc, isObject as Eo, set as Vi, orderBy as jc, last as Oo, defaults as
|
|
10
|
-
import { useForm as
|
|
9
|
+
import k, { template as Oi, cloneDeepWith as Ao, get as se, isFunction as qc, omit as Ht, values as Ro, unset as Wc, isObject as Eo, set as Vi, orderBy as jc, last as Oo, defaults as ze, minBy as Gc, maxBy as Yc, cloneDeep as Pe, isEqual as we, defaultsDeep as _e, keyBy as Vo, isEmpty as Fi, isNumber as Hc, findLastIndex as Qc, isString as Fo, range as Uc, throttle as Xc, pick as Po } from "lodash";
|
|
10
|
+
import { useForm as Me, useWatch as Zc, Controller as x, useFieldArray as Ve } from "react-hook-form";
|
|
11
11
|
import { IconInfoCircle as Pn, IconPlus as Pt, IconDeviceFloppy as Nn, IconBorderAll as Kc, IconTrash as ln, IconArrowDown as Jc, IconArrowUp as ed, IconArrowsLeftRight as td, IconVariable as nd, IconCodeDots as rd, IconFilter as No, IconCopy as id, IconDatabase as cr, IconBoxMultiple as Bo, IconMenu2 as ad, IconDownload as od, IconCode as sd, IconCaretDown as ld, IconRecycle as qo, IconAlertTriangle as Wo, IconArrowLeft as cd, IconPlaylistAdd as dd, IconCircleDashed as ud, IconCircleDot as hd, IconCircleOff as pd, IconAdjustments as md, IconLink as gd, IconSettings as fd, IconArrowCurveRight as bd, IconX as jo, IconEye as xd, IconTable as yd, IconColumns as vd, IconPlayerSkipBack as wd } from "@tabler/icons";
|
|
12
12
|
import { Link as Go, RichTextEditor as ie, useRichTextEditorContext as _d } from "@mantine/tiptap";
|
|
13
13
|
import { Color as Yo } from "@tiptap/extension-color";
|
|
@@ -30,12 +30,12 @@ import { Calendar as Sd, InfoCircle as hn, Refresh as os, Download as ss, Arrows
|
|
|
30
30
|
import Ad, { Option as Rd } from "rc-select";
|
|
31
31
|
import Ed, { SHOW_PARENT as Od } from "rc-tree-select";
|
|
32
32
|
import cs, { WidthProvider as ds } from "react-grid-layout";
|
|
33
|
-
import { observable as us, runInAction as Dn, toJS as Nt, reaction as
|
|
33
|
+
import { observable as us, runInAction as Dn, toJS as Nt, reaction as dt, makeAutoObservable as Bn } from "mobx";
|
|
34
34
|
import Ka from "eventemitter2";
|
|
35
35
|
import zn, { random as ur } from "chroma-js";
|
|
36
36
|
import "echarts-gl";
|
|
37
37
|
import * as fe from "echarts/core";
|
|
38
|
-
import { GridComponent as at, VisualMapComponent as hr, LegendComponent as ot, TooltipComponent as st, DataZoomComponent as
|
|
38
|
+
import { GridComponent as at, VisualMapComponent as hr, LegendComponent as ot, TooltipComponent as st, DataZoomComponent as It, MarkLineComponent as pr, MarkAreaComponent as Pi, CalendarComponent as Vd } from "echarts/components";
|
|
39
39
|
import { CanvasRenderer as Je } from "echarts/renderers";
|
|
40
40
|
import et from "echarts-for-react/lib/core";
|
|
41
41
|
import he from "numbro";
|
|
@@ -46,13 +46,13 @@ import * as jd from "d3-array";
|
|
|
46
46
|
import { quantile as Kn } from "d3-array";
|
|
47
47
|
import * as Jn from "mathjs";
|
|
48
48
|
import { interpolate as pn } from "popmotion";
|
|
49
|
-
import
|
|
50
|
-
import * as
|
|
49
|
+
import rt, { loader as Pr } from "@monaco-editor/react";
|
|
50
|
+
import * as Rt from "d3-regression";
|
|
51
51
|
import { Prism as cn } from "@mantine/prism";
|
|
52
52
|
import { flexRender as nr, createColumnHelper as ms, useReactTable as gs, getCoreRowModel as fs, getSortedRowModel as Gd } from "@tanstack/react-table";
|
|
53
53
|
import { useVirtual as Yd } from "react-virtual";
|
|
54
|
-
import
|
|
55
|
-
import { types as f, getParent as
|
|
54
|
+
import Et from "axios";
|
|
55
|
+
import { types as f, getParent as nt, getRoot as $e, cast as mn, addDisposer as Dt, addMiddleware as Hd, getType as Qd, isAlive as Ja, flow as on, toGenerator as Gt, detach as Ud, clone as Xd, getSnapshot as gt, applySnapshot as Ke, getParentOfType as eo, castToSnapshot as bs } from "mobx-state-tree";
|
|
56
56
|
import { arrayToTree as Zd } from "performant-array-to-tree";
|
|
57
57
|
import Kd from "jszip";
|
|
58
58
|
import { saveAs as Bi } from "file-saver";
|
|
@@ -197,14 +197,14 @@ function su() {
|
|
|
197
197
|
}
|
|
198
198
|
return null;
|
|
199
199
|
}
|
|
200
|
-
var ue = Object.assign, Ce = 0, Le, qe,
|
|
200
|
+
var ue = Object.assign, Ce = 0, Le, qe, mt, Ze, _t, Wt, Gn;
|
|
201
201
|
function Yn() {
|
|
202
202
|
}
|
|
203
203
|
Yn.__reactDisabledLog = !0;
|
|
204
204
|
function Ir() {
|
|
205
205
|
{
|
|
206
206
|
if (Ce === 0) {
|
|
207
|
-
Le = console.log, qe = console.info,
|
|
207
|
+
Le = console.log, qe = console.info, mt = console.warn, Ze = console.error, _t = console.group, Wt = console.groupCollapsed, Gn = console.groupEnd;
|
|
208
208
|
var _ = {
|
|
209
209
|
configurable: !0,
|
|
210
210
|
enumerable: !0,
|
|
@@ -240,7 +240,7 @@ function su() {
|
|
|
240
240
|
value: qe
|
|
241
241
|
}),
|
|
242
242
|
warn: ue({}, _, {
|
|
243
|
-
value:
|
|
243
|
+
value: mt
|
|
244
244
|
}),
|
|
245
245
|
error: ue({}, _, {
|
|
246
246
|
value: Ze
|
|
@@ -260,7 +260,7 @@ function su() {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
var yn = M.ReactCurrentDispatcher, en;
|
|
263
|
-
function
|
|
263
|
+
function zt(_, A, N) {
|
|
264
264
|
{
|
|
265
265
|
if (en === void 0)
|
|
266
266
|
try {
|
|
@@ -273,16 +273,16 @@ function su() {
|
|
|
273
273
|
` + en + _;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
var jt = !1,
|
|
276
|
+
var jt = !1, Mt;
|
|
277
277
|
{
|
|
278
278
|
var tn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
279
|
-
|
|
279
|
+
Mt = new tn();
|
|
280
280
|
}
|
|
281
281
|
function nn(_, A) {
|
|
282
282
|
if (!_ || jt)
|
|
283
283
|
return "";
|
|
284
284
|
{
|
|
285
|
-
var N =
|
|
285
|
+
var N = Mt.get(_);
|
|
286
286
|
if (N !== void 0)
|
|
287
287
|
return N;
|
|
288
288
|
}
|
|
@@ -328,26 +328,26 @@ function su() {
|
|
|
328
328
|
if (Ct && J && typeof Ct.stack == "string") {
|
|
329
329
|
for (var ae = Ct.stack.split(`
|
|
330
330
|
`), Ge = J.stack.split(`
|
|
331
|
-
`), Ie = ae.length - 1,
|
|
332
|
-
|
|
333
|
-
for (; Ie >= 1 &&
|
|
334
|
-
if (ae[Ie] !== Ge[
|
|
335
|
-
if (Ie !== 1 ||
|
|
331
|
+
`), Ie = ae.length - 1, Re = Ge.length - 1; Ie >= 1 && Re >= 0 && ae[Ie] !== Ge[Re]; )
|
|
332
|
+
Re--;
|
|
333
|
+
for (; Ie >= 1 && Re >= 0; Ie--, Re--)
|
|
334
|
+
if (ae[Ie] !== Ge[Re]) {
|
|
335
|
+
if (Ie !== 1 || Re !== 1)
|
|
336
336
|
do
|
|
337
|
-
if (Ie--,
|
|
338
|
-
var
|
|
337
|
+
if (Ie--, Re--, Re < 0 || ae[Ie] !== Ge[Re]) {
|
|
338
|
+
var it = `
|
|
339
339
|
` + ae[Ie].replace(" at new ", " at ");
|
|
340
|
-
return _.displayName &&
|
|
340
|
+
return _.displayName && it.includes("<anonymous>") && (it = it.replace("<anonymous>", _.displayName)), typeof _ == "function" && Mt.set(_, it), it;
|
|
341
341
|
}
|
|
342
|
-
while (Ie >= 1 &&
|
|
342
|
+
while (Ie >= 1 && Re >= 0);
|
|
343
343
|
break;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
} finally {
|
|
347
347
|
jt = !1, yn.current = ye, $r(), Error.prepareStackTrace = me;
|
|
348
348
|
}
|
|
349
|
-
var an = _ ? _.displayName || _.name : "", Ga = an ?
|
|
350
|
-
return typeof _ == "function" &&
|
|
349
|
+
var an = _ ? _.displayName || _.name : "", Ga = an ? zt(an) : "";
|
|
350
|
+
return typeof _ == "function" && Mt.set(_, Ga), Ga;
|
|
351
351
|
}
|
|
352
352
|
function vn(_, A, N) {
|
|
353
353
|
return nn(_, !1);
|
|
@@ -356,29 +356,29 @@ function su() {
|
|
|
356
356
|
var A = _.prototype;
|
|
357
357
|
return !!(A && A.isReactComponent);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function At(_, A, N) {
|
|
360
360
|
if (_ == null)
|
|
361
361
|
return "";
|
|
362
362
|
if (typeof _ == "function")
|
|
363
363
|
return nn(_, wn(_));
|
|
364
364
|
if (typeof _ == "string")
|
|
365
|
-
return
|
|
365
|
+
return zt(_);
|
|
366
366
|
switch (_) {
|
|
367
367
|
case d:
|
|
368
|
-
return
|
|
368
|
+
return zt("Suspense");
|
|
369
369
|
case p:
|
|
370
|
-
return
|
|
370
|
+
return zt("SuspenseList");
|
|
371
371
|
}
|
|
372
372
|
if (typeof _ == "object")
|
|
373
373
|
switch (_.$$typeof) {
|
|
374
374
|
case c:
|
|
375
375
|
return vn(_.render);
|
|
376
376
|
case m:
|
|
377
|
-
return
|
|
377
|
+
return At(_.type, A, N);
|
|
378
378
|
case h: {
|
|
379
379
|
var J = _, me = J._payload, ye = J._init;
|
|
380
380
|
try {
|
|
381
|
-
return
|
|
381
|
+
return At(ye(me), A, N);
|
|
382
382
|
} catch {
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -388,7 +388,7 @@ function su() {
|
|
|
388
388
|
var _n = Object.prototype.hasOwnProperty, Aa = {}, Ra = M.ReactDebugCurrentFrame;
|
|
389
389
|
function Hn(_) {
|
|
390
390
|
if (_) {
|
|
391
|
-
var A = _._owner, N =
|
|
391
|
+
var A = _._owner, N = At(_.type, _._source, A ? A.type : null);
|
|
392
392
|
Ra.setExtraStackFrame(N);
|
|
393
393
|
} else
|
|
394
394
|
Ra.setExtraStackFrame(null);
|
|
@@ -528,8 +528,8 @@ function su() {
|
|
|
528
528
|
le[ye] === void 0 && (le[ye] = Ie[ye]);
|
|
529
529
|
}
|
|
530
530
|
if (ae || Ge) {
|
|
531
|
-
var
|
|
532
|
-
ae && fc(le,
|
|
531
|
+
var Re = typeof _ == "function" ? _.displayName || _.name || "Unknown" : _;
|
|
532
|
+
ae && fc(le, Re), Ge && bc(le, Re);
|
|
533
533
|
}
|
|
534
534
|
return xc(_, ae, Ge, me, J, Cn.current, le);
|
|
535
535
|
}
|
|
@@ -537,7 +537,7 @@ function su() {
|
|
|
537
537
|
var Ar = M.ReactCurrentOwner, Pa = M.ReactDebugCurrentFrame;
|
|
538
538
|
function rn(_) {
|
|
539
539
|
if (_) {
|
|
540
|
-
var A = _._owner, N =
|
|
540
|
+
var A = _._owner, N = At(_.type, _._source, A ? A.type : null);
|
|
541
541
|
Pa.setExtraStackFrame(N);
|
|
542
542
|
} else
|
|
543
543
|
Pa.setExtraStackFrame(null);
|
|
@@ -663,23 +663,23 @@ Check the top-level render call using <` + N + ">.");
|
|
|
663
663
|
var Ie;
|
|
664
664
|
_ === null ? Ie = "null" : zr(_) ? Ie = "array" : _ !== void 0 && _.$$typeof === t ? (Ie = "<" + (ge(_.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof _, F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, ae);
|
|
665
665
|
}
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
668
|
-
return
|
|
666
|
+
var Re = yc(_, A, N, me, ye);
|
|
667
|
+
if (Re == null)
|
|
668
|
+
return Re;
|
|
669
669
|
if (le) {
|
|
670
|
-
var
|
|
671
|
-
if (
|
|
670
|
+
var it = A.children;
|
|
671
|
+
if (it !== void 0)
|
|
672
672
|
if (J)
|
|
673
|
-
if (zr(
|
|
674
|
-
for (var an = 0; an <
|
|
675
|
-
Wa(
|
|
676
|
-
Object.freeze && Object.freeze(
|
|
673
|
+
if (zr(it)) {
|
|
674
|
+
for (var an = 0; an < it.length; an++)
|
|
675
|
+
Wa(it[an], _);
|
|
676
|
+
Object.freeze && Object.freeze(it);
|
|
677
677
|
} else
|
|
678
678
|
F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
679
679
|
else
|
|
680
|
-
Wa(
|
|
680
|
+
Wa(it, _);
|
|
681
681
|
}
|
|
682
|
-
return _ === i ? Cc(
|
|
682
|
+
return _ === i ? Cc(Re) : _c(Re), Re;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
function Sc(_, A, N) {
|
|
@@ -826,7 +826,7 @@ class qi {
|
|
|
826
826
|
}
|
|
827
827
|
const Yr = To(null);
|
|
828
828
|
function fr(e) {
|
|
829
|
-
const t = $.useContext(Yr), r =
|
|
829
|
+
const t = $.useContext(Yr), r = ut(() => e.configure(t || new qi()), [e.configure]), i = Bc(r);
|
|
830
830
|
return i && i !== r && i.dispose(), /* @__PURE__ */ n(Yr.Provider, { value: r, children: e.children });
|
|
831
831
|
}
|
|
832
832
|
function vs() {
|
|
@@ -1291,13 +1291,13 @@ const ji = {
|
|
|
1291
1291
|
const a = te(), o = !!t.options_query_id, {
|
|
1292
1292
|
state: l,
|
|
1293
1293
|
error: s
|
|
1294
|
-
} = a.getDataStuffByID(t.options_query_id), c = l === "loading", d = t.min_width ? t.min_width : "200px", p = o ? c : !1;
|
|
1294
|
+
} = a.getDataStuffByID(t.options_query_id), c = l === "loading", d = t.min_width ? t.min_width : "200px", p = o ? c : !1, m = (h) => i(h, !1);
|
|
1295
1295
|
return /* @__PURE__ */ n(fu, { label: e, options: t.options, style: {
|
|
1296
1296
|
minWidth: "160px",
|
|
1297
1297
|
width: d,
|
|
1298
1298
|
maxWidth: p ? d : "unset",
|
|
1299
1299
|
borderColor: "#e9ecef"
|
|
1300
|
-
}, disabled: p, value: r, onChange:
|
|
1300
|
+
}, disabled: p, value: r, onChange: m, errorMessage: s });
|
|
1301
1301
|
}), xu = ke(({
|
|
1302
1302
|
label: e,
|
|
1303
1303
|
description: t,
|
|
@@ -1736,7 +1736,7 @@ const wu = ({
|
|
|
1736
1736
|
control: i,
|
|
1737
1737
|
handleSubmit: a,
|
|
1738
1738
|
reset: o
|
|
1739
|
-
} =
|
|
1739
|
+
} = Me({
|
|
1740
1740
|
defaultValues: r.filters.values,
|
|
1741
1741
|
// make sure the preview value is updated when filters are changed
|
|
1742
1742
|
reValidateMode: "onBlur"
|
|
@@ -1795,7 +1795,7 @@ const Ms = D(() => {
|
|
|
1795
1795
|
}), $u = D(({
|
|
1796
1796
|
view: e
|
|
1797
1797
|
}) => {
|
|
1798
|
-
const t = De(), r = te(), i =
|
|
1798
|
+
const t = De(), r = te(), i = Lt(), {
|
|
1799
1799
|
panel: a
|
|
1800
1800
|
} = We(), {
|
|
1801
1801
|
id: o,
|
|
@@ -1949,7 +1949,7 @@ class As {
|
|
|
1949
1949
|
return Promise.resolve(this.getItem(t));
|
|
1950
1950
|
}
|
|
1951
1951
|
watchItem(t, r, i) {
|
|
1952
|
-
return
|
|
1952
|
+
return dt(() => this.getValueFromRoot(t), (a, o) => {
|
|
1953
1953
|
r(a, o);
|
|
1954
1954
|
}, {
|
|
1955
1955
|
requiresObservable: !0,
|
|
@@ -2093,7 +2093,7 @@ const Ru = (e) => {
|
|
|
2093
2093
|
getColor: xr(["#fff7f1", "darkorange", "#b60000"]),
|
|
2094
2094
|
name: "orange",
|
|
2095
2095
|
category: "sequential"
|
|
2096
|
-
}, Os = "@devtable/dashboard", Yi = "9.11.
|
|
2096
|
+
}, Os = "@devtable/dashboard", Yi = "9.11.2", Vs = "Apache-2.0", Fs = {
|
|
2097
2097
|
access: "public",
|
|
2098
2098
|
registry: "https://registry.npmjs.org/"
|
|
2099
2099
|
}, Ps = [
|
|
@@ -2369,7 +2369,7 @@ class Yu {
|
|
|
2369
2369
|
return o.reduce((s, c) => c.handler(s, i), r);
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
2372
|
-
class
|
|
2372
|
+
class Ae extends Yu {
|
|
2373
2373
|
constructor() {
|
|
2374
2374
|
super(), this.configVersions();
|
|
2375
2375
|
}
|
|
@@ -2448,7 +2448,7 @@ function Hu({
|
|
|
2448
2448
|
xAxis3D: c,
|
|
2449
2449
|
yAxis3D: d,
|
|
2450
2450
|
zAxis3D: p
|
|
2451
|
-
} =
|
|
2451
|
+
} = ze({}, t, Hi), m = L(() => {
|
|
2452
2452
|
const w = Gc(r, (y) => y[s]);
|
|
2453
2453
|
return se(w, s);
|
|
2454
2454
|
}, [r, s]), h = L(() => {
|
|
@@ -2526,11 +2526,11 @@ function Uu({
|
|
|
2526
2526
|
const {
|
|
2527
2527
|
value: t,
|
|
2528
2528
|
set: r
|
|
2529
|
-
} = Z(e.instanceData, "config"), i = e.data, a =
|
|
2529
|
+
} = Z(e.instanceData, "config"), i = e.data, a = ze({}, t, Hi), {
|
|
2530
2530
|
control: o,
|
|
2531
2531
|
handleSubmit: l,
|
|
2532
2532
|
reset: s
|
|
2533
|
-
} =
|
|
2533
|
+
} = Me({
|
|
2534
2534
|
defaultValues: a
|
|
2535
2535
|
});
|
|
2536
2536
|
return q(() => {
|
|
@@ -2586,7 +2586,7 @@ function Uu({
|
|
|
2586
2586
|
] }) })
|
|
2587
2587
|
] }) }) : null;
|
|
2588
2588
|
}
|
|
2589
|
-
class Xu extends
|
|
2589
|
+
class Xu extends Ae {
|
|
2590
2590
|
constructor() {
|
|
2591
2591
|
super(...arguments);
|
|
2592
2592
|
W(this, "VERSION", 1);
|
|
@@ -2708,7 +2708,7 @@ function Ku({
|
|
|
2708
2708
|
] })
|
|
2709
2709
|
] });
|
|
2710
2710
|
}
|
|
2711
|
-
const
|
|
2711
|
+
const pt = $.forwardRef(Ku), ft = {
|
|
2712
2712
|
enabled: !1,
|
|
2713
2713
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
2714
2714
|
`)
|
|
@@ -2804,7 +2804,7 @@ const th = [{
|
|
|
2804
2804
|
/* @__PURE__ */ n(rr, { sectionTitle: "Overflow on Axis", value: e.on_axis, onChange: i }),
|
|
2805
2805
|
/* @__PURE__ */ n(rr, { sectionTitle: "Overflow in Tooltip", value: e.in_tooltip, onChange: a })
|
|
2806
2806
|
] });
|
|
2807
|
-
}),
|
|
2807
|
+
}), ht = {
|
|
2808
2808
|
on_axis: {
|
|
2809
2809
|
width: 80,
|
|
2810
2810
|
overflow: "truncate",
|
|
@@ -2837,7 +2837,7 @@ function Ot({
|
|
|
2837
2837
|
text-overflow: ${a};
|
|
2838
2838
|
`;
|
|
2839
2839
|
}
|
|
2840
|
-
function
|
|
2840
|
+
function $t(e) {
|
|
2841
2841
|
return {
|
|
2842
2842
|
width: e.width,
|
|
2843
2843
|
overflow: e.overflow,
|
|
@@ -2853,7 +2853,7 @@ const Qi = {
|
|
|
2853
2853
|
formatter: {
|
|
2854
2854
|
...ft
|
|
2855
2855
|
},
|
|
2856
|
-
overflow:
|
|
2856
|
+
overflow: ht
|
|
2857
2857
|
}
|
|
2858
2858
|
},
|
|
2859
2859
|
y_axis: {
|
|
@@ -3291,7 +3291,7 @@ $.forwardRef(function({
|
|
|
3291
3291
|
] }),
|
|
3292
3292
|
/* @__PURE__ */ n(yr, { label: "Aggregation", value: t.aggregation, onChange: (s) => l("aggregation", s) }),
|
|
3293
3293
|
/* @__PURE__ */ n(R, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
3294
|
-
/* @__PURE__ */ n(
|
|
3294
|
+
/* @__PURE__ */ n(pt, { value: t.formatter, onChange: (s) => l("formatter", s) }),
|
|
3295
3295
|
a && /* @__PURE__ */ n(Xs, { value: t, onChange: r })
|
|
3296
3296
|
] });
|
|
3297
3297
|
});
|
|
@@ -3491,7 +3491,7 @@ function Lh({
|
|
|
3491
3491
|
x_axis: i,
|
|
3492
3492
|
y_axis: a,
|
|
3493
3493
|
reference_lines: o
|
|
3494
|
-
} = e, l = rh(e, t), s =
|
|
3494
|
+
} = e, l = rh(e, t), s = $t(i.axisLabel.overflow.on_axis), c = ah(e);
|
|
3495
3495
|
return {
|
|
3496
3496
|
grid: {
|
|
3497
3497
|
top: 30,
|
|
@@ -3543,7 +3543,7 @@ function Lh({
|
|
|
3543
3543
|
series: [...c, ...Dh(o, r, t)]
|
|
3544
3544
|
};
|
|
3545
3545
|
}
|
|
3546
|
-
fe.use([
|
|
3546
|
+
fe.use([It, Fd, pr, at, ot, st, Je]);
|
|
3547
3547
|
function Ih({
|
|
3548
3548
|
context: e,
|
|
3549
3549
|
instance: t
|
|
@@ -3555,7 +3555,7 @@ function Ih({
|
|
|
3555
3555
|
} = e, a = e.data, {
|
|
3556
3556
|
width: o,
|
|
3557
3557
|
height: l
|
|
3558
|
-
} = e.viewport, s =
|
|
3558
|
+
} = e.viewport, s = ze({}, r, Qi), c = wt({
|
|
3559
3559
|
vizManager: e.vizManager,
|
|
3560
3560
|
instance: t
|
|
3561
3561
|
}), d = yt(c.triggerManager, Qs.id), p = L(() => k.keyBy(a, s.x_axis.data_key), [a, s.x_axis.data_key]), m = He((w) => {
|
|
@@ -3650,7 +3650,7 @@ const Mh = ({
|
|
|
3650
3650
|
position: "relative"
|
|
3651
3651
|
}, children: [
|
|
3652
3652
|
e && /* @__PURE__ */ n(Vt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
3653
|
-
/* @__PURE__ */ n(
|
|
3653
|
+
/* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
3654
3654
|
a && r(a);
|
|
3655
3655
|
}, theme: "vs-dark", options: {
|
|
3656
3656
|
minimap: {
|
|
@@ -3768,7 +3768,7 @@ const Mh = ({
|
|
|
3768
3768
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
3769
3769
|
/* @__PURE__ */ n(x, { name: "y_axis.label_formatter", control: e, render: ({
|
|
3770
3770
|
field: i
|
|
3771
|
-
}) => /* @__PURE__ */ n(
|
|
3771
|
+
}) => /* @__PURE__ */ n(pt, { ...i }) })
|
|
3772
3772
|
] })
|
|
3773
3773
|
] }));
|
|
3774
3774
|
function Eh({
|
|
@@ -3779,13 +3779,13 @@ function Eh({
|
|
|
3779
3779
|
set: r
|
|
3780
3780
|
} = Z(e.instanceData, "config"), i = e.data, {
|
|
3781
3781
|
variables: a
|
|
3782
|
-
} = e, o = L(() =>
|
|
3782
|
+
} = e, o = L(() => ze({}, t, Qi), [t]), {
|
|
3783
3783
|
control: l,
|
|
3784
3784
|
handleSubmit: s,
|
|
3785
3785
|
watch: c,
|
|
3786
3786
|
getValues: d,
|
|
3787
3787
|
reset: p
|
|
3788
|
-
} =
|
|
3788
|
+
} = Me({
|
|
3789
3789
|
defaultValues: o
|
|
3790
3790
|
});
|
|
3791
3791
|
q(() => {
|
|
@@ -3900,7 +3900,7 @@ function Nh(e) {
|
|
|
3900
3900
|
};
|
|
3901
3901
|
return k.defaultsDeep(i, e);
|
|
3902
3902
|
}
|
|
3903
|
-
class Bh extends
|
|
3903
|
+
class Bh extends Ae {
|
|
3904
3904
|
constructor() {
|
|
3905
3905
|
super(...arguments);
|
|
3906
3906
|
W(this, "VERSION", 6);
|
|
@@ -4118,7 +4118,7 @@ function ep({
|
|
|
4118
4118
|
watch: s,
|
|
4119
4119
|
getValues: c,
|
|
4120
4120
|
reset: d
|
|
4121
|
-
} =
|
|
4121
|
+
} = Me({
|
|
4122
4122
|
defaultValues: a
|
|
4123
4123
|
});
|
|
4124
4124
|
q(() => {
|
|
@@ -4165,7 +4165,7 @@ function ep({
|
|
|
4165
4165
|
] })
|
|
4166
4166
|
] });
|
|
4167
4167
|
}
|
|
4168
|
-
class tp extends
|
|
4168
|
+
class tp extends Ae {
|
|
4169
4169
|
constructor() {
|
|
4170
4170
|
super(...arguments);
|
|
4171
4171
|
W(this, "VERSION", 2);
|
|
@@ -4263,7 +4263,7 @@ const bn = {
|
|
|
4263
4263
|
formatter: {
|
|
4264
4264
|
...ft
|
|
4265
4265
|
},
|
|
4266
|
-
overflow:
|
|
4266
|
+
overflow: ht
|
|
4267
4267
|
}
|
|
4268
4268
|
},
|
|
4269
4269
|
x_axis_data_key: "",
|
|
@@ -4351,13 +4351,13 @@ function lp(e) {
|
|
|
4351
4351
|
function _r(e, t) {
|
|
4352
4352
|
switch (e.config.method) {
|
|
4353
4353
|
case "linear":
|
|
4354
|
-
return [...
|
|
4354
|
+
return [...Rt.regressionLinear()(t)];
|
|
4355
4355
|
case "exponential":
|
|
4356
|
-
return [...
|
|
4356
|
+
return [...Rt.regressionExp()(t)];
|
|
4357
4357
|
case "logarithmic":
|
|
4358
|
-
return [...
|
|
4358
|
+
return [...Rt.regressionLog()(t)];
|
|
4359
4359
|
case "polynomial":
|
|
4360
|
-
return [...
|
|
4360
|
+
return [...Rt.regressionPoly().order(e.config.order)(t)];
|
|
4361
4361
|
default:
|
|
4362
4362
|
return [];
|
|
4363
4363
|
}
|
|
@@ -4681,7 +4681,7 @@ function Sp(e, t) {
|
|
|
4681
4681
|
const r = t.every((l) => !Number.isNaN(Number(l))), {
|
|
4682
4682
|
overflow: i,
|
|
4683
4683
|
...a
|
|
4684
|
-
} = e.x_axis.axisLabel, o =
|
|
4684
|
+
} = e.x_axis.axisLabel, o = $t(i.on_axis);
|
|
4685
4685
|
return [{
|
|
4686
4686
|
data: t,
|
|
4687
4687
|
name: e.x_axis_name ?? "",
|
|
@@ -4782,7 +4782,7 @@ function io(e) {
|
|
|
4782
4782
|
series: r
|
|
4783
4783
|
});
|
|
4784
4784
|
}
|
|
4785
|
-
fe.use([
|
|
4785
|
+
fe.use([It, Zt, Kt, mr, at, ot, st, Je, pr, Pi]);
|
|
4786
4786
|
function ao(e) {
|
|
4787
4787
|
return e.trim().length > 0;
|
|
4788
4788
|
}
|
|
@@ -4827,7 +4827,7 @@ function Ip({
|
|
|
4827
4827
|
value: i
|
|
4828
4828
|
} = Z(e.instanceData, "config"), {
|
|
4829
4829
|
variables: a
|
|
4830
|
-
} = e, o = L(() =>
|
|
4830
|
+
} = e, o = L(() => ze({}, i, Zi), [i]), l = e.data, {
|
|
4831
4831
|
width: s,
|
|
4832
4832
|
height: c
|
|
4833
4833
|
} = e.viewport, {
|
|
@@ -5363,7 +5363,7 @@ function Wp({
|
|
|
5363
5363
|
const jp = ({
|
|
5364
5364
|
value: e,
|
|
5365
5365
|
onChange: t
|
|
5366
|
-
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(
|
|
5366
|
+
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
5367
5367
|
i && t(i);
|
|
5368
5368
|
}, theme: "vs-dark", options: {
|
|
5369
5369
|
minimap: {
|
|
@@ -5839,7 +5839,7 @@ function om({
|
|
|
5839
5839
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
5840
5840
|
/* @__PURE__ */ n(x, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
5841
5841
|
field: i
|
|
5842
|
-
}) => /* @__PURE__ */ n(
|
|
5842
|
+
}) => /* @__PURE__ */ n(pt, { ...i }) })
|
|
5843
5843
|
] }),
|
|
5844
5844
|
/* @__PURE__ */ u(S, { children: [
|
|
5845
5845
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -5907,7 +5907,7 @@ function lm({
|
|
|
5907
5907
|
watch: c,
|
|
5908
5908
|
getValues: d,
|
|
5909
5909
|
reset: p
|
|
5910
|
-
} =
|
|
5910
|
+
} = Me({
|
|
5911
5911
|
defaultValues: o
|
|
5912
5912
|
});
|
|
5913
5913
|
q(() => {
|
|
@@ -6190,7 +6190,7 @@ function _m(e) {
|
|
|
6190
6190
|
})
|
|
6191
6191
|
};
|
|
6192
6192
|
}
|
|
6193
|
-
class Cm extends
|
|
6193
|
+
class Cm extends Ae {
|
|
6194
6194
|
constructor() {
|
|
6195
6195
|
super(...arguments);
|
|
6196
6196
|
W(this, "VERSION", 15);
|
|
@@ -6315,7 +6315,7 @@ function Lm(e, t) {
|
|
|
6315
6315
|
} = r, m = t.map((g) => ({
|
|
6316
6316
|
name: g[i],
|
|
6317
6317
|
value: g[a]
|
|
6318
|
-
})), h =
|
|
6318
|
+
})), h = $t(o.overflow.on_axis);
|
|
6319
6319
|
return {
|
|
6320
6320
|
type: "funnel",
|
|
6321
6321
|
...Dm(r),
|
|
@@ -6423,7 +6423,7 @@ function Am(e) {
|
|
|
6423
6423
|
axisLabel: {
|
|
6424
6424
|
show: !0,
|
|
6425
6425
|
position: "inside",
|
|
6426
|
-
overflow:
|
|
6426
|
+
overflow: ht
|
|
6427
6427
|
},
|
|
6428
6428
|
sort: "descending",
|
|
6429
6429
|
orient: "vertical",
|
|
@@ -6433,7 +6433,7 @@ function Am(e) {
|
|
|
6433
6433
|
const na = {
|
|
6434
6434
|
series: [Am("Funnel")]
|
|
6435
6435
|
};
|
|
6436
|
-
fe.use([Pd,
|
|
6436
|
+
fe.use([Pd, It, at, ot, st, Je]);
|
|
6437
6437
|
function Rm({
|
|
6438
6438
|
conf: e,
|
|
6439
6439
|
data: t,
|
|
@@ -6451,7 +6451,7 @@ function Em({
|
|
|
6451
6451
|
}) {
|
|
6452
6452
|
const {
|
|
6453
6453
|
value: t
|
|
6454
|
-
} = Z(e.instanceData, "config"), r = L(() =>
|
|
6454
|
+
} = Z(e.instanceData, "config"), r = L(() => ze({}, t, na), [t]), i = e.data, {
|
|
6455
6455
|
width: a,
|
|
6456
6456
|
height: o
|
|
6457
6457
|
} = e.viewport;
|
|
@@ -6682,7 +6682,7 @@ function Wm({
|
|
|
6682
6682
|
watch: s,
|
|
6683
6683
|
getValues: c,
|
|
6684
6684
|
reset: d
|
|
6685
|
-
} =
|
|
6685
|
+
} = Me({
|
|
6686
6686
|
defaultValues: a
|
|
6687
6687
|
});
|
|
6688
6688
|
q(() => {
|
|
@@ -6726,7 +6726,7 @@ function jm(e) {
|
|
|
6726
6726
|
})
|
|
6727
6727
|
};
|
|
6728
6728
|
}
|
|
6729
|
-
class Gm extends
|
|
6729
|
+
class Gm extends Ae {
|
|
6730
6730
|
constructor() {
|
|
6731
6731
|
super(...arguments);
|
|
6732
6732
|
W(this, "VERSION", 2);
|
|
@@ -6926,7 +6926,7 @@ function tg(e, t, r) {
|
|
|
6926
6926
|
const {
|
|
6927
6927
|
overflow: i,
|
|
6928
6928
|
rotate: a
|
|
6929
|
-
} = e.x_axis.axisLabel, o =
|
|
6929
|
+
} = e.x_axis.axisLabel, o = $t(i.on_axis);
|
|
6930
6930
|
return {
|
|
6931
6931
|
id: "main-x-axis",
|
|
6932
6932
|
type: "category",
|
|
@@ -6962,7 +6962,7 @@ function ng(e, t, r) {
|
|
|
6962
6962
|
} = e.y_axis, {
|
|
6963
6963
|
overflow: l,
|
|
6964
6964
|
rotate: s
|
|
6965
|
-
} = e.y_axis.axisLabel, c =
|
|
6965
|
+
} = e.y_axis.axisLabel, c = $t(l.on_axis);
|
|
6966
6966
|
return {
|
|
6967
6967
|
...o,
|
|
6968
6968
|
type: "category",
|
|
@@ -7056,7 +7056,7 @@ const el = {
|
|
|
7056
7056
|
data_key: "",
|
|
7057
7057
|
axisLabel: {
|
|
7058
7058
|
rotate: 0,
|
|
7059
|
-
overflow:
|
|
7059
|
+
overflow: ht,
|
|
7060
7060
|
formatter: {
|
|
7061
7061
|
...ft
|
|
7062
7062
|
}
|
|
@@ -7068,7 +7068,7 @@ const el = {
|
|
|
7068
7068
|
nameAlignment: "center",
|
|
7069
7069
|
axisLabel: {
|
|
7070
7070
|
rotate: 0,
|
|
7071
|
-
overflow:
|
|
7071
|
+
overflow: ht,
|
|
7072
7072
|
formatter: {
|
|
7073
7073
|
...ft
|
|
7074
7074
|
}
|
|
@@ -7085,7 +7085,7 @@ const el = {
|
|
|
7085
7085
|
metrics: []
|
|
7086
7086
|
}
|
|
7087
7087
|
};
|
|
7088
|
-
fe.use([
|
|
7088
|
+
fe.use([It, Zt, Kt, Ni, at, ot, st, hr, Je]);
|
|
7089
7089
|
function sg({
|
|
7090
7090
|
conf: e,
|
|
7091
7091
|
data: t,
|
|
@@ -7126,7 +7126,7 @@ function lg({
|
|
|
7126
7126
|
value: i
|
|
7127
7127
|
} = Z(e.instanceData, "config"), {
|
|
7128
7128
|
variables: a
|
|
7129
|
-
} = e, o = L(() =>
|
|
7129
|
+
} = e, o = L(() => ze({}, i, ia), [i]), l = e.data, {
|
|
7130
7130
|
width: s,
|
|
7131
7131
|
height: c
|
|
7132
7132
|
} = e.viewport;
|
|
@@ -7161,7 +7161,7 @@ function cg({
|
|
|
7161
7161
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
7162
7162
|
/* @__PURE__ */ n(x, { name: "heat_block.value_formatter", control: t, render: ({
|
|
7163
7163
|
field: i
|
|
7164
|
-
}) => /* @__PURE__ */ n(
|
|
7164
|
+
}) => /* @__PURE__ */ n(pt, { ...i }) })
|
|
7165
7165
|
] });
|
|
7166
7166
|
}
|
|
7167
7167
|
const dg = ({
|
|
@@ -7251,7 +7251,7 @@ const pg = ({
|
|
|
7251
7251
|
position: "relative"
|
|
7252
7252
|
}, children: [
|
|
7253
7253
|
e && /* @__PURE__ */ n(Vt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
7254
|
-
/* @__PURE__ */ n(
|
|
7254
|
+
/* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
7255
7255
|
a && r(a);
|
|
7256
7256
|
}, theme: "vs-dark", options: {
|
|
7257
7257
|
minimap: {
|
|
@@ -7429,7 +7429,7 @@ function xg({
|
|
|
7429
7429
|
watch: c,
|
|
7430
7430
|
getValues: d,
|
|
7431
7431
|
reset: p
|
|
7432
|
-
} =
|
|
7432
|
+
} = Me({
|
|
7433
7433
|
defaultValues: o
|
|
7434
7434
|
});
|
|
7435
7435
|
q(() => {
|
|
@@ -7467,7 +7467,7 @@ function xg({
|
|
|
7467
7467
|
] })
|
|
7468
7468
|
] }) });
|
|
7469
7469
|
}
|
|
7470
|
-
class yg extends
|
|
7470
|
+
class yg extends Ae {
|
|
7471
7471
|
constructor() {
|
|
7472
7472
|
super(...arguments);
|
|
7473
7473
|
W(this, "VERSION", 1);
|
|
@@ -7537,7 +7537,7 @@ const rl = {
|
|
|
7537
7537
|
formatter: {
|
|
7538
7538
|
...ft
|
|
7539
7539
|
},
|
|
7540
|
-
overflow:
|
|
7540
|
+
overflow: ht
|
|
7541
7541
|
}
|
|
7542
7542
|
},
|
|
7543
7543
|
data_key: "value",
|
|
@@ -7707,7 +7707,7 @@ function $g(e) {
|
|
|
7707
7707
|
const {
|
|
7708
7708
|
name: t,
|
|
7709
7709
|
axisLabel: r
|
|
7710
|
-
} = e.x_axis, i =
|
|
7710
|
+
} = e.x_axis, i = $t(r.overflow.on_axis);
|
|
7711
7711
|
return [{
|
|
7712
7712
|
type: "category",
|
|
7713
7713
|
name: t,
|
|
@@ -7787,7 +7787,7 @@ function Mg(e, t, r) {
|
|
|
7787
7787
|
}
|
|
7788
7788
|
};
|
|
7789
7789
|
}
|
|
7790
|
-
fe.use([Zt, Kt,
|
|
7790
|
+
fe.use([Zt, Kt, It, at, ot, st, Je]);
|
|
7791
7791
|
function Ag({
|
|
7792
7792
|
context: e,
|
|
7793
7793
|
instance: t
|
|
@@ -7797,7 +7797,7 @@ function Ag({
|
|
|
7797
7797
|
} = Z(e.instanceData, "config"), i = e.data, {
|
|
7798
7798
|
width: a,
|
|
7799
7799
|
height: o
|
|
7800
|
-
} = e.viewport, l =
|
|
7800
|
+
} = e.viewport, l = ze({}, r, aa), s = Mg(l, i), c = wt({
|
|
7801
7801
|
vizManager: e.vizManager,
|
|
7802
7802
|
instance: t
|
|
7803
7803
|
}), d = yt(c.triggerManager, nl.id), p = L(() => k.keyBy(i, l.x_axis.data_key), [i, l.x_axis.data_key]), m = He((g) => {
|
|
@@ -7856,7 +7856,7 @@ function Eg({
|
|
|
7856
7856
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
7857
7857
|
/* @__PURE__ */ n(x, { name: "bar.label_formatter", control: t, render: ({
|
|
7858
7858
|
field: i
|
|
7859
|
-
}) => /* @__PURE__ */ n(
|
|
7859
|
+
}) => /* @__PURE__ */ n(pt, { ...i }) })
|
|
7860
7860
|
] })
|
|
7861
7861
|
] });
|
|
7862
7862
|
}
|
|
@@ -8005,13 +8005,13 @@ function Wg({
|
|
|
8005
8005
|
const {
|
|
8006
8006
|
value: t,
|
|
8007
8007
|
set: r
|
|
8008
|
-
} = Z(e.instanceData, "config"), i = e.data, a = L(() =>
|
|
8008
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => ze({}, t, aa), [t]), {
|
|
8009
8009
|
control: o,
|
|
8010
8010
|
handleSubmit: l,
|
|
8011
8011
|
watch: s,
|
|
8012
8012
|
getValues: c,
|
|
8013
8013
|
reset: d
|
|
8014
|
-
} =
|
|
8014
|
+
} = Me({
|
|
8015
8015
|
defaultValues: a
|
|
8016
8016
|
});
|
|
8017
8017
|
q(() => {
|
|
@@ -8151,7 +8151,7 @@ function Xg(e) {
|
|
|
8151
8151
|
};
|
|
8152
8152
|
return k.defaultsDeep(i, e);
|
|
8153
8153
|
}
|
|
8154
|
-
class Zg extends
|
|
8154
|
+
class Zg extends Ae {
|
|
8155
8155
|
constructor() {
|
|
8156
8156
|
super(...arguments);
|
|
8157
8157
|
W(this, "VERSION", 8);
|
|
@@ -8380,7 +8380,7 @@ function af({
|
|
|
8380
8380
|
watch: c,
|
|
8381
8381
|
getValues: d,
|
|
8382
8382
|
reset: p
|
|
8383
|
-
} =
|
|
8383
|
+
} = Me({
|
|
8384
8384
|
defaultValues: o
|
|
8385
8385
|
});
|
|
8386
8386
|
q(() => {
|
|
@@ -8421,7 +8421,7 @@ function of(e) {
|
|
|
8421
8421
|
color_field: t
|
|
8422
8422
|
};
|
|
8423
8423
|
}
|
|
8424
|
-
class sf extends
|
|
8424
|
+
class sf extends Ae {
|
|
8425
8425
|
constructor() {
|
|
8426
8426
|
super(...arguments);
|
|
8427
8427
|
W(this, "VERSION", 2);
|
|
@@ -8694,7 +8694,7 @@ function bf({
|
|
|
8694
8694
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Value Formatter", labelPosition: "center" }),
|
|
8695
8695
|
/* @__PURE__ */ n(x, { name: `dimensions.${t}.formatter`, control: e, render: ({
|
|
8696
8696
|
field: a
|
|
8697
|
-
}) => /* @__PURE__ */ n(
|
|
8697
|
+
}) => /* @__PURE__ */ n(pt, { ...a }) })
|
|
8698
8698
|
] }),
|
|
8699
8699
|
/* @__PURE__ */ n(Q, { color: "red", variant: "subtle", onClick: () => r(t), sx: {
|
|
8700
8700
|
position: "absolute",
|
|
@@ -8767,7 +8767,7 @@ function yf({
|
|
|
8767
8767
|
watch: s,
|
|
8768
8768
|
getValues: c,
|
|
8769
8769
|
reset: d
|
|
8770
|
-
} =
|
|
8770
|
+
} = Me({
|
|
8771
8771
|
defaultValues: a
|
|
8772
8772
|
});
|
|
8773
8773
|
q(() => {
|
|
@@ -8846,7 +8846,7 @@ function _f(e) {
|
|
|
8846
8846
|
};
|
|
8847
8847
|
return k.defaultsDeep(t, e);
|
|
8848
8848
|
}
|
|
8849
|
-
class Cf extends
|
|
8849
|
+
class Cf extends Ae {
|
|
8850
8850
|
constructor() {
|
|
8851
8851
|
super(...arguments);
|
|
8852
8852
|
W(this, "VERSION", 4);
|
|
@@ -9039,7 +9039,7 @@ function zf(e) {
|
|
|
9039
9039
|
format: r,
|
|
9040
9040
|
formatter: i,
|
|
9041
9041
|
...a
|
|
9042
|
-
} = e.x_axis.axisLabel, o =
|
|
9042
|
+
} = e.x_axis.axisLabel, o = $t(t.on_axis);
|
|
9043
9043
|
return {
|
|
9044
9044
|
type: "value",
|
|
9045
9045
|
name: e.x_axis.name ?? "",
|
|
@@ -9120,7 +9120,7 @@ function Rf(e, t, r, i) {
|
|
|
9120
9120
|
const {
|
|
9121
9121
|
x_axis: a,
|
|
9122
9122
|
y_axis: o
|
|
9123
|
-
} = i, l =
|
|
9123
|
+
} = i, l = Rt.regressionLinear()(r), {
|
|
9124
9124
|
a: s,
|
|
9125
9125
|
b: c,
|
|
9126
9126
|
rSquared: d
|
|
@@ -9154,7 +9154,7 @@ function Ef(e, t, r, i) {
|
|
|
9154
9154
|
a: l,
|
|
9155
9155
|
b: s,
|
|
9156
9156
|
rSquared: c
|
|
9157
|
-
} =
|
|
9157
|
+
} = Rt.regressionExp()(r);
|
|
9158
9158
|
return {
|
|
9159
9159
|
name: e,
|
|
9160
9160
|
expression: /* @__PURE__ */ u(v, { position: "center", noWrap: !0, spacing: 10, children: [
|
|
@@ -9182,7 +9182,7 @@ function Of(e, t, r, i) {
|
|
|
9182
9182
|
a: l,
|
|
9183
9183
|
b: s,
|
|
9184
9184
|
rSquared: c
|
|
9185
|
-
} =
|
|
9185
|
+
} = Rt.regressionLog()(r);
|
|
9186
9186
|
return {
|
|
9187
9187
|
name: e,
|
|
9188
9188
|
expression: /* @__PURE__ */ u(v, { position: "center", noWrap: !0, spacing: 10, children: [
|
|
@@ -9207,7 +9207,7 @@ function Vf(e, t, r, i) {
|
|
|
9207
9207
|
x_axis: a,
|
|
9208
9208
|
y_axis: o,
|
|
9209
9209
|
regression: l
|
|
9210
|
-
} = i, s =
|
|
9210
|
+
} = i, s = Rt.regressionPoly().order(l.transform.config.order)(r), {
|
|
9211
9211
|
rSquared: c
|
|
9212
9212
|
} = s;
|
|
9213
9213
|
return console.log(s), {
|
|
@@ -9321,7 +9321,7 @@ const kr = {
|
|
|
9321
9321
|
axisLabel: {
|
|
9322
9322
|
rotate: 0,
|
|
9323
9323
|
format: je,
|
|
9324
|
-
overflow:
|
|
9324
|
+
overflow: ht,
|
|
9325
9325
|
formatter: {
|
|
9326
9326
|
...kr
|
|
9327
9327
|
}
|
|
@@ -9353,7 +9353,7 @@ const kr = {
|
|
|
9353
9353
|
y_axis_data_key: "value"
|
|
9354
9354
|
}
|
|
9355
9355
|
};
|
|
9356
|
-
fe.use([
|
|
9356
|
+
fe.use([It, mr, at, ot, st, Je]);
|
|
9357
9357
|
function Wf({
|
|
9358
9358
|
context: e
|
|
9359
9359
|
}) {
|
|
@@ -9441,7 +9441,7 @@ const Yf = ({
|
|
|
9441
9441
|
position: "relative"
|
|
9442
9442
|
}, children: [
|
|
9443
9443
|
e && /* @__PURE__ */ n(Vt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
9444
|
-
/* @__PURE__ */ n(
|
|
9444
|
+
/* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
9445
9445
|
a && r(a);
|
|
9446
9446
|
}, theme: "vs-dark", options: {
|
|
9447
9447
|
minimap: {
|
|
@@ -9524,7 +9524,7 @@ function Hf({
|
|
|
9524
9524
|
/* @__PURE__ */ n(R, { variant: "dashed", labelPosition: "center", label: "格式化数据" }),
|
|
9525
9525
|
/* @__PURE__ */ n(S, { children: /* @__PURE__ */ n(x, { name: "x_axis.axisLabel.format", control: t, render: ({
|
|
9526
9526
|
field: i
|
|
9527
|
-
}) => /* @__PURE__ */ n(
|
|
9527
|
+
}) => /* @__PURE__ */ n(pt, { ...i }) }) }),
|
|
9528
9528
|
/* @__PURE__ */ n(R, { variant: "dashed", labelPosition: "center", label: "标签文案样式" }),
|
|
9529
9529
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
9530
9530
|
/* @__PURE__ */ n(x, { name: "x_axis.axisLabel.rotate", control: t, render: ({
|
|
@@ -9571,13 +9571,13 @@ function Uf({
|
|
|
9571
9571
|
const {
|
|
9572
9572
|
value: t,
|
|
9573
9573
|
set: r
|
|
9574
|
-
} = Z(e.instanceData, "config"), i = e.data, a = L(() =>
|
|
9574
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => ze({}, t, sa), [t]), {
|
|
9575
9575
|
control: o,
|
|
9576
9576
|
handleSubmit: l,
|
|
9577
9577
|
watch: s,
|
|
9578
9578
|
getValues: c,
|
|
9579
9579
|
reset: d
|
|
9580
|
-
} =
|
|
9580
|
+
} = Me({
|
|
9581
9581
|
defaultValues: a
|
|
9582
9582
|
});
|
|
9583
9583
|
q(() => {
|
|
@@ -9615,7 +9615,7 @@ function Xf(e) {
|
|
|
9615
9615
|
axisLabel: {
|
|
9616
9616
|
rotate: 0,
|
|
9617
9617
|
format: je,
|
|
9618
|
-
overflow:
|
|
9618
|
+
overflow: ht,
|
|
9619
9619
|
formatter: kr
|
|
9620
9620
|
}
|
|
9621
9621
|
},
|
|
@@ -9625,7 +9625,7 @@ function Xf(e) {
|
|
|
9625
9625
|
};
|
|
9626
9626
|
return k.defaultsDeep(t, e);
|
|
9627
9627
|
}
|
|
9628
|
-
class Zf extends
|
|
9628
|
+
class Zf extends Ae {
|
|
9629
9629
|
constructor() {
|
|
9630
9630
|
super(...arguments);
|
|
9631
9631
|
W(this, "VERSION", 2);
|
|
@@ -9662,7 +9662,7 @@ function Jf({
|
|
|
9662
9662
|
}) {
|
|
9663
9663
|
const {
|
|
9664
9664
|
value: t
|
|
9665
|
-
} = Z(e.instanceData, "config"), r = L(() =>
|
|
9665
|
+
} = Z(e.instanceData, "config"), r = L(() => ze({}, t, Tr), [t]);
|
|
9666
9666
|
return r != null && r.content ? /* @__PURE__ */ n(br, { value: r.content, styles: {
|
|
9667
9667
|
root: {
|
|
9668
9668
|
border: "none",
|
|
@@ -9773,12 +9773,12 @@ function tb({
|
|
|
9773
9773
|
const {
|
|
9774
9774
|
value: t,
|
|
9775
9775
|
set: r
|
|
9776
|
-
} = Z(e.instanceData, "config"), i = L(() =>
|
|
9776
|
+
} = Z(e.instanceData, "config"), i = L(() => ze({}, t, Tr), [t]), {
|
|
9777
9777
|
control: a,
|
|
9778
9778
|
handleSubmit: o,
|
|
9779
9779
|
watch: l,
|
|
9780
9780
|
reset: s
|
|
9781
|
-
} =
|
|
9781
|
+
} = Me({
|
|
9782
9782
|
defaultValues: i
|
|
9783
9783
|
});
|
|
9784
9784
|
l("content"), q(() => {
|
|
@@ -9812,13 +9812,13 @@ function tb({
|
|
|
9812
9812
|
}, label: "Content", onSubmit: d }) })
|
|
9813
9813
|
] }) });
|
|
9814
9814
|
}
|
|
9815
|
-
class nb extends
|
|
9815
|
+
class nb extends Ae {
|
|
9816
9816
|
constructor() {
|
|
9817
9817
|
super(...arguments);
|
|
9818
9818
|
W(this, "VERSION", 1);
|
|
9819
9819
|
}
|
|
9820
9820
|
fixMalformedConfig(r) {
|
|
9821
|
-
return
|
|
9821
|
+
return ze({}, r, Tr);
|
|
9822
9822
|
}
|
|
9823
9823
|
configVersions() {
|
|
9824
9824
|
this.version(1, (r) => ({
|
|
@@ -9892,8 +9892,8 @@ const ul = {
|
|
|
9892
9892
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
9893
9893
|
`)
|
|
9894
9894
|
}, hl = {
|
|
9895
|
-
label:
|
|
9896
|
-
tooltip:
|
|
9895
|
+
label: ht.on_axis,
|
|
9896
|
+
tooltip: ht.in_tooltip
|
|
9897
9897
|
}, ca = {
|
|
9898
9898
|
scatter: {
|
|
9899
9899
|
y_data_key: "",
|
|
@@ -10077,7 +10077,7 @@ function ub({
|
|
|
10077
10077
|
label: {
|
|
10078
10078
|
show: !!t.label_position,
|
|
10079
10079
|
position: t.label_position,
|
|
10080
|
-
|
|
10080
|
+
...$t(t.label_overflow.label),
|
|
10081
10081
|
formatter: ({
|
|
10082
10082
|
value: o
|
|
10083
10083
|
}) => o[t.name_data_key]
|
|
@@ -10316,7 +10316,7 @@ function vb(e, t, r) {
|
|
|
10316
10316
|
};
|
|
10317
10317
|
return _e({}, c, yb);
|
|
10318
10318
|
}
|
|
10319
|
-
fe.use([
|
|
10319
|
+
fe.use([It, Zt, Kt, mr, at, ot, st, Je, pr, Pi]);
|
|
10320
10320
|
function uo(e) {
|
|
10321
10321
|
return e.trim().length > 0;
|
|
10322
10322
|
}
|
|
@@ -10357,7 +10357,7 @@ function _b({
|
|
|
10357
10357
|
value: i
|
|
10358
10358
|
} = Z(e.instanceData, "config"), {
|
|
10359
10359
|
variables: a
|
|
10360
|
-
} = e, o = L(() =>
|
|
10360
|
+
} = e, o = L(() => ze({}, i, ca), [i]), l = e.data, {
|
|
10361
10361
|
width: s,
|
|
10362
10362
|
height: c
|
|
10363
10363
|
} = e.viewport, {
|
|
@@ -10662,7 +10662,7 @@ function Ib({
|
|
|
10662
10662
|
const $b = ({
|
|
10663
10663
|
value: e,
|
|
10664
10664
|
onChange: t
|
|
10665
|
-
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(
|
|
10665
|
+
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
10666
10666
|
i && t(i);
|
|
10667
10667
|
}, theme: "vs-dark", options: {
|
|
10668
10668
|
minimap: {
|
|
@@ -10777,7 +10777,7 @@ const $b = ({
|
|
|
10777
10777
|
}), Vb = ({
|
|
10778
10778
|
value: e,
|
|
10779
10779
|
onChange: t
|
|
10780
|
-
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(
|
|
10780
|
+
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
10781
10781
|
i && t(i);
|
|
10782
10782
|
}, theme: "vs-dark", options: {
|
|
10783
10783
|
minimap: {
|
|
@@ -11074,7 +11074,7 @@ const Xb = ({
|
|
|
11074
11074
|
position: "relative"
|
|
11075
11075
|
}, children: [
|
|
11076
11076
|
e && /* @__PURE__ */ n(Vt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
11077
|
-
/* @__PURE__ */ n(
|
|
11077
|
+
/* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
11078
11078
|
a && r(a);
|
|
11079
11079
|
}, theme: "vs-dark", options: {
|
|
11080
11080
|
minimap: {
|
|
@@ -11219,7 +11219,7 @@ function tx({
|
|
|
11219
11219
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
11220
11220
|
/* @__PURE__ */ n(x, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
11221
11221
|
field: i
|
|
11222
|
-
}) => /* @__PURE__ */ n(
|
|
11222
|
+
}) => /* @__PURE__ */ n(pt, { ...i }) })
|
|
11223
11223
|
] }),
|
|
11224
11224
|
/* @__PURE__ */ u(S, { children: [
|
|
11225
11225
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -11306,7 +11306,7 @@ function ax({
|
|
|
11306
11306
|
watch: d,
|
|
11307
11307
|
getValues: p,
|
|
11308
11308
|
reset: m
|
|
11309
|
-
} =
|
|
11309
|
+
} = Me({
|
|
11310
11310
|
defaultValues: l
|
|
11311
11311
|
});
|
|
11312
11312
|
q(() => {
|
|
@@ -11418,7 +11418,7 @@ function dx(e) {
|
|
|
11418
11418
|
};
|
|
11419
11419
|
return k.defaultsDeep({}, e, t);
|
|
11420
11420
|
}
|
|
11421
|
-
class ux extends
|
|
11421
|
+
class ux extends Ae {
|
|
11422
11422
|
constructor() {
|
|
11423
11423
|
super(...arguments);
|
|
11424
11424
|
W(this, "VERSION", 8);
|
|
@@ -11557,7 +11557,7 @@ function fx(e) {
|
|
|
11557
11557
|
const t = Pe(e), r = se(t, "color.valueRange");
|
|
11558
11558
|
return r !== void 0 && Vi(t, "color.valueRange", r.map((i) => Number(i))), t;
|
|
11559
11559
|
}
|
|
11560
|
-
class bx extends
|
|
11560
|
+
class bx extends Ae {
|
|
11561
11561
|
constructor() {
|
|
11562
11562
|
super(...arguments);
|
|
11563
11563
|
W(this, "VERSION", 2);
|
|
@@ -11661,7 +11661,7 @@ function Cx({
|
|
|
11661
11661
|
watch: l,
|
|
11662
11662
|
getValues: s,
|
|
11663
11663
|
reset: c
|
|
11664
|
-
} =
|
|
11664
|
+
} = Me({
|
|
11665
11665
|
defaultValues: i
|
|
11666
11666
|
});
|
|
11667
11667
|
$.useEffect(() => {
|
|
@@ -11862,7 +11862,7 @@ function Rx({
|
|
|
11862
11862
|
variables: t
|
|
11863
11863
|
} = e, {
|
|
11864
11864
|
value: r
|
|
11865
|
-
} = Z(e.instanceData, "config"), i = L(() =>
|
|
11865
|
+
} = Z(e.instanceData, "config"), i = L(() => ze({}, r, ua), [r]), a = e.data, {
|
|
11866
11866
|
width: o,
|
|
11867
11867
|
height: l
|
|
11868
11868
|
} = e.viewport, s = L(() => Ax(i, a, t), [i, a, t]);
|
|
@@ -12013,7 +12013,7 @@ function Nx({
|
|
|
12013
12013
|
watch: c,
|
|
12014
12014
|
getValues: d,
|
|
12015
12015
|
reset: p
|
|
12016
|
-
} =
|
|
12016
|
+
} = Me({
|
|
12017
12017
|
defaultValues: o
|
|
12018
12018
|
});
|
|
12019
12019
|
q(() => {
|
|
@@ -12081,7 +12081,7 @@ function Wx(e) {
|
|
|
12081
12081
|
levels: t
|
|
12082
12082
|
};
|
|
12083
12083
|
}
|
|
12084
|
-
class jx extends
|
|
12084
|
+
class jx extends Ae {
|
|
12085
12085
|
constructor() {
|
|
12086
12086
|
super(...arguments);
|
|
12087
12087
|
W(this, "VERSION", 4);
|
|
@@ -12200,7 +12200,7 @@ function Xx(e) {
|
|
|
12200
12200
|
set: o
|
|
12201
12201
|
} = Z(e.trigger.triggerData, "config"), {
|
|
12202
12202
|
column: l
|
|
12203
|
-
} =
|
|
12203
|
+
} = ze({}, a, Qx), s = (c) => {
|
|
12204
12204
|
isNaN(+c) ? o({
|
|
12205
12205
|
column: c
|
|
12206
12206
|
}) : o({
|
|
@@ -12566,7 +12566,7 @@ class gy {
|
|
|
12566
12566
|
steps: us
|
|
12567
12567
|
}, {
|
|
12568
12568
|
deep: !1
|
|
12569
|
-
}),
|
|
12569
|
+
}), dt(() => Nt(this.steps), () => {
|
|
12570
12570
|
this.notifyStepChange();
|
|
12571
12571
|
});
|
|
12572
12572
|
}
|
|
@@ -12639,7 +12639,7 @@ const by = D(({
|
|
|
12639
12639
|
} = xl(), r = Uc(0, 13, 1).map((i) => 100 / 12 * i).map((i) => [e.interpolation.getColor(i), i]);
|
|
12640
12640
|
return /* @__PURE__ */ n("div", { className: t.palette, children: r.map(([i, a], o) => /* @__PURE__ */ n(fy, { index: o, color: i, value: e.getStepFromValue(a), onChange: (l) => e.changeStep(l, a) }, i)) });
|
|
12641
12641
|
}), xy = D(function(t) {
|
|
12642
|
-
const r =
|
|
12642
|
+
const r = ut(() => new gy(), []);
|
|
12643
12643
|
return q(() => {
|
|
12644
12644
|
r.fromProps(t);
|
|
12645
12645
|
}), r.interpolation == null ? null : /* @__PURE__ */ n(by, { model: r });
|
|
@@ -12759,7 +12759,7 @@ const Sy = ke((e, t) => {
|
|
|
12759
12759
|
/* @__PURE__ */ n(Te, { size: 800, title: "Custom cell content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(S, { children: [
|
|
12760
12760
|
/* @__PURE__ */ n(V, { sx: {
|
|
12761
12761
|
position: "relative"
|
|
12762
|
-
}, children: /* @__PURE__ */ n(
|
|
12762
|
+
}, children: /* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: l, onChange: (m) => s(m ?? ""), theme: "vs-dark", options: {
|
|
12763
12763
|
minimap: {
|
|
12764
12764
|
enabled: !1
|
|
12765
12765
|
}
|
|
@@ -12953,7 +12953,7 @@ function Ry({
|
|
|
12953
12953
|
watch: c,
|
|
12954
12954
|
getValues: d,
|
|
12955
12955
|
reset: p
|
|
12956
|
-
} =
|
|
12956
|
+
} = Me({
|
|
12957
12957
|
defaultValues: o
|
|
12958
12958
|
});
|
|
12959
12959
|
q(() => {
|
|
@@ -13004,7 +13004,7 @@ function Ey(e) {
|
|
|
13004
13004
|
}))
|
|
13005
13005
|
};
|
|
13006
13006
|
}
|
|
13007
|
-
class Oy extends
|
|
13007
|
+
class Oy extends Ae {
|
|
13008
13008
|
constructor() {
|
|
13009
13009
|
super(...arguments);
|
|
13010
13010
|
W(this, "VERSION", 3);
|
|
@@ -13088,7 +13088,7 @@ const Ur = {
|
|
|
13088
13088
|
onChange: t
|
|
13089
13089
|
}) => /* @__PURE__ */ n(V, { sx: {
|
|
13090
13090
|
position: "relative"
|
|
13091
|
-
}, children: /* @__PURE__ */ n(
|
|
13091
|
+
}, children: /* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
13092
13092
|
i && t(i);
|
|
13093
13093
|
}, theme: "vs-dark", options: {
|
|
13094
13094
|
minimap: {
|
|
@@ -13164,7 +13164,7 @@ function By({
|
|
|
13164
13164
|
watch: s,
|
|
13165
13165
|
getValues: c,
|
|
13166
13166
|
reset: d
|
|
13167
|
-
} =
|
|
13167
|
+
} = Me({
|
|
13168
13168
|
defaultValues: a
|
|
13169
13169
|
});
|
|
13170
13170
|
$.useEffect(() => {
|
|
@@ -13203,7 +13203,7 @@ function By({
|
|
|
13203
13203
|
] })
|
|
13204
13204
|
] }) });
|
|
13205
13205
|
}
|
|
13206
|
-
class qy extends
|
|
13206
|
+
class qy extends Ae {
|
|
13207
13207
|
constructor() {
|
|
13208
13208
|
super(...arguments);
|
|
13209
13209
|
W(this, "VERSION", 1);
|
|
@@ -13250,7 +13250,7 @@ async function Gy(e, t, r, i = {}) {
|
|
|
13250
13250
|
params: i.params,
|
|
13251
13251
|
headers: a
|
|
13252
13252
|
};
|
|
13253
|
-
return o.data = i.string ? JSON.stringify(r) : r,
|
|
13253
|
+
return o.data = i.string ? JSON.stringify(r) : r, Et(o).then((l) => l.data).catch((l) => Promise.reject(l));
|
|
13254
13254
|
}
|
|
13255
13255
|
const Yy = ({
|
|
13256
13256
|
conf: e,
|
|
@@ -13346,7 +13346,7 @@ function Uy({
|
|
|
13346
13346
|
watch: l,
|
|
13347
13347
|
getValues: s,
|
|
13348
13348
|
reset: c
|
|
13349
|
-
} =
|
|
13349
|
+
} = Me({
|
|
13350
13350
|
defaultValues: i
|
|
13351
13351
|
});
|
|
13352
13352
|
q(() => {
|
|
@@ -13376,7 +13376,7 @@ function Uy({
|
|
|
13376
13376
|
}, children: "Submit Changes" })
|
|
13377
13377
|
] }) });
|
|
13378
13378
|
}
|
|
13379
|
-
class Xy extends
|
|
13379
|
+
class Xy extends Ae {
|
|
13380
13380
|
constructor() {
|
|
13381
13381
|
super(...arguments);
|
|
13382
13382
|
W(this, "VERSION", 1);
|
|
@@ -13654,7 +13654,7 @@ const wl = {
|
|
|
13654
13654
|
metrics: []
|
|
13655
13655
|
}
|
|
13656
13656
|
};
|
|
13657
|
-
fe.use([
|
|
13657
|
+
fe.use([It, Zt, Kt, Ni, Vd, at, ot, st, hr, Je]);
|
|
13658
13658
|
function pv({
|
|
13659
13659
|
name: e
|
|
13660
13660
|
}, t) {
|
|
@@ -13741,7 +13741,7 @@ function fv({
|
|
|
13741
13741
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
13742
13742
|
/* @__PURE__ */ n(x, { name: "heat_block.value_formatter", control: t, render: ({
|
|
13743
13743
|
field: i
|
|
13744
|
-
}) => /* @__PURE__ */ n(
|
|
13744
|
+
}) => /* @__PURE__ */ n(pt, { ...i }) })
|
|
13745
13745
|
] });
|
|
13746
13746
|
}
|
|
13747
13747
|
const bv = ({
|
|
@@ -13864,7 +13864,7 @@ function _v({
|
|
|
13864
13864
|
watch: c,
|
|
13865
13865
|
getValues: d,
|
|
13866
13866
|
reset: p
|
|
13867
|
-
} =
|
|
13867
|
+
} = Me({
|
|
13868
13868
|
defaultValues: o
|
|
13869
13869
|
});
|
|
13870
13870
|
q(() => {
|
|
@@ -13900,7 +13900,7 @@ function _v({
|
|
|
13900
13900
|
] })
|
|
13901
13901
|
] }) });
|
|
13902
13902
|
}
|
|
13903
|
-
class Cv extends
|
|
13903
|
+
class Cv extends Ae {
|
|
13904
13904
|
constructor() {
|
|
13905
13905
|
super(...arguments);
|
|
13906
13906
|
W(this, "VERSION", 1);
|
|
@@ -14220,7 +14220,7 @@ function Nv(e, t) {
|
|
|
14220
14220
|
const r = t.every((l) => !Number.isNaN(Number(l))), {
|
|
14221
14221
|
overflow: i,
|
|
14222
14222
|
...a
|
|
14223
|
-
} = e.y_axis.axisLabel, o =
|
|
14223
|
+
} = e.y_axis.axisLabel, o = $t(i.on_axis);
|
|
14224
14224
|
return [{
|
|
14225
14225
|
data: t,
|
|
14226
14226
|
name: e.y_axis.name ?? "",
|
|
@@ -14273,7 +14273,7 @@ const xa = {
|
|
|
14273
14273
|
formatter: {
|
|
14274
14274
|
...ft
|
|
14275
14275
|
},
|
|
14276
|
-
overflow:
|
|
14276
|
+
overflow: ht
|
|
14277
14277
|
},
|
|
14278
14278
|
nameAlignment: "center"
|
|
14279
14279
|
},
|
|
@@ -14334,7 +14334,7 @@ function jv() {
|
|
|
14334
14334
|
xAxisIndex: "0"
|
|
14335
14335
|
};
|
|
14336
14336
|
}
|
|
14337
|
-
fe.use([
|
|
14337
|
+
fe.use([It, Zt, Kt, mr, at, ot, st, Je, pr, Pi]);
|
|
14338
14338
|
function Gv({
|
|
14339
14339
|
conf: e,
|
|
14340
14340
|
data: t,
|
|
@@ -14372,7 +14372,7 @@ function Yv({
|
|
|
14372
14372
|
value: i
|
|
14373
14373
|
} = Z(e.instanceData, "config"), {
|
|
14374
14374
|
variables: a
|
|
14375
|
-
} = e, o = L(() =>
|
|
14375
|
+
} = e, o = L(() => ze({}, i, xa), [i]), l = e.data, {
|
|
14376
14376
|
width: s,
|
|
14377
14377
|
height: c
|
|
14378
14378
|
} = e.viewport;
|
|
@@ -14746,7 +14746,7 @@ function i0({
|
|
|
14746
14746
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
14747
14747
|
/* @__PURE__ */ n(x, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
|
|
14748
14748
|
field: i
|
|
14749
|
-
}) => /* @__PURE__ */ n(
|
|
14749
|
+
}) => /* @__PURE__ */ n(pt, { ...i }) })
|
|
14750
14750
|
] }),
|
|
14751
14751
|
/* @__PURE__ */ u(S, { children: [
|
|
14752
14752
|
/* @__PURE__ */ n(R, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -14841,7 +14841,7 @@ function s0({
|
|
|
14841
14841
|
watch: c,
|
|
14842
14842
|
getValues: d,
|
|
14843
14843
|
reset: p
|
|
14844
|
-
} =
|
|
14844
|
+
} = Me({
|
|
14845
14845
|
defaultValues: o
|
|
14846
14846
|
});
|
|
14847
14847
|
q(() => {
|
|
@@ -14879,7 +14879,7 @@ function s0({
|
|
|
14879
14879
|
] })
|
|
14880
14880
|
] }) });
|
|
14881
14881
|
}
|
|
14882
|
-
class l0 extends
|
|
14882
|
+
class l0 extends Ae {
|
|
14883
14883
|
constructor() {
|
|
14884
14884
|
super(...arguments);
|
|
14885
14885
|
W(this, "VERSION", 1);
|
|
@@ -15571,7 +15571,7 @@ function A0({
|
|
|
15571
15571
|
}) {
|
|
15572
15572
|
const {
|
|
15573
15573
|
value: t
|
|
15574
|
-
} = Z(e.instanceData, "config"), r = L(() =>
|
|
15574
|
+
} = Z(e.instanceData, "config"), r = L(() => ze({}, t, ya), [t]), i = e.data, {
|
|
15575
15575
|
width: a,
|
|
15576
15576
|
height: o
|
|
15577
15577
|
} = e.viewport, {
|
|
@@ -15741,7 +15741,7 @@ function F0({
|
|
|
15741
15741
|
watch: s,
|
|
15742
15742
|
getValues: c,
|
|
15743
15743
|
reset: d
|
|
15744
|
-
} =
|
|
15744
|
+
} = Me({
|
|
15745
15745
|
defaultValues: a
|
|
15746
15746
|
});
|
|
15747
15747
|
q(() => {
|
|
@@ -15777,7 +15777,7 @@ function F0({
|
|
|
15777
15777
|
] })
|
|
15778
15778
|
] }) });
|
|
15779
15779
|
}
|
|
15780
|
-
class P0 extends
|
|
15780
|
+
class P0 extends Ae {
|
|
15781
15781
|
constructor() {
|
|
15782
15782
|
super(...arguments);
|
|
15783
15783
|
W(this, "VERSION", 1);
|
|
@@ -15854,7 +15854,7 @@ const N0 = {
|
|
|
15854
15854
|
viz: [Ur, Sx, Wy, rb, Gx, lf, c0, Zu, qh, Ym, vg, Sv, Kg, Sm, hx, Sf, Kf, Zy, N0, np],
|
|
15855
15855
|
color: [...B0, ...q0]
|
|
15856
15856
|
}
|
|
15857
|
-
}), Tn = new Gu(),
|
|
15857
|
+
}), Tn = new Gu(), Ee = {
|
|
15858
15858
|
pluginManager: St("pluginManager"),
|
|
15859
15859
|
vizManager: St("vizManager"),
|
|
15860
15860
|
colorManager: St("colorManager"),
|
|
@@ -15886,11 +15886,11 @@ function W0(e, t) {
|
|
|
15886
15886
|
const {
|
|
15887
15887
|
value: r,
|
|
15888
15888
|
set: i
|
|
15889
|
-
} = Z(e.operation.operationData, "config"), [a, o] = U(
|
|
15889
|
+
} = Z(e.operation.operationData, "config"), [a, o] = U(ze({}, r, t)), l = async () => {
|
|
15890
15890
|
await i(a);
|
|
15891
15891
|
};
|
|
15892
15892
|
return q(() => {
|
|
15893
|
-
o(
|
|
15893
|
+
o(ze({}, r, t));
|
|
15894
15894
|
}, [r]), {
|
|
15895
15895
|
config: a,
|
|
15896
15896
|
setConfig: o,
|
|
@@ -15937,7 +15937,7 @@ async function G0(e, t) {
|
|
|
15937
15937
|
}
|
|
15938
15938
|
}));
|
|
15939
15939
|
}
|
|
15940
|
-
class Y0 extends
|
|
15940
|
+
class Y0 extends Ae {
|
|
15941
15941
|
constructor() {
|
|
15942
15942
|
super(...arguments);
|
|
15943
15943
|
W(this, "VERSION", 1);
|
|
@@ -16313,7 +16313,7 @@ class wa {
|
|
|
16313
16313
|
const wt = ({
|
|
16314
16314
|
vizManager: e,
|
|
16315
16315
|
instance: t
|
|
16316
|
-
}) =>
|
|
16316
|
+
}) => ut(() => new wa(t, e.resolveComponent(t.type), Dr), [t, e]), Sl = (e) => {
|
|
16317
16317
|
const {
|
|
16318
16318
|
title: t = "Variables",
|
|
16319
16319
|
variables: r
|
|
@@ -16405,7 +16405,7 @@ const fw = D((e) => {
|
|
|
16405
16405
|
operationId: o,
|
|
16406
16406
|
instance: l,
|
|
16407
16407
|
variables: s
|
|
16408
|
-
} = e, c =
|
|
16408
|
+
} = e, c = ut(() => new uw(a, l), [a, l]);
|
|
16409
16409
|
return Fn(async () => {
|
|
16410
16410
|
await c.configOperation(o, s);
|
|
16411
16411
|
}, [o, c]), hw(c) ? /* @__PURE__ */ u(G, { children: [
|
|
@@ -16445,7 +16445,7 @@ function xw(e) {
|
|
|
16445
16445
|
return !!e.triggerId && !!e.triggerSchema;
|
|
16446
16446
|
}
|
|
16447
16447
|
function yw(e, t) {
|
|
16448
|
-
return
|
|
16448
|
+
return ut(() => new bw(e, t), [e, t]);
|
|
16449
16449
|
}
|
|
16450
16450
|
const vw = D(({
|
|
16451
16451
|
model: e,
|
|
@@ -16558,7 +16558,7 @@ const kw = D(({
|
|
|
16558
16558
|
data: t
|
|
16559
16559
|
} = We(), r = e.viz, {
|
|
16560
16560
|
vizManager: i
|
|
16561
|
-
} = bt(vt), a = e.json, o =
|
|
16561
|
+
} = bt(vt), a = e.json, o = ut(() => i.getOrCreateInstance(a), [i, a]), l = ut(() => new wa(o, i.resolveComponent(r.type), Dr), [o, r.type]);
|
|
16562
16562
|
return q(() => o.instanceData.watchItem(
|
|
16563
16563
|
null,
|
|
16564
16564
|
// avoid too many updates
|
|
@@ -16589,7 +16589,7 @@ class Iw {
|
|
|
16589
16589
|
W(this, "runningMigration");
|
|
16590
16590
|
W(this, "panelModel");
|
|
16591
16591
|
W(this, "status", "notStarted");
|
|
16592
|
-
this.panelModel = t.getRequired(
|
|
16592
|
+
this.panelModel = t.getRequired(Ee.instanceScope.panelModel), this.vizInstance = t.getRequired(Ee.instanceScope.vizInstance), this.operationManager = t.getRequired(Ee.instanceScope.operationManager), this.triggerManager = t.getRequired(Ee.instanceScope.triggerManager), this.vizManager = t.getRequired(Ee.vizManager);
|
|
16593
16593
|
}
|
|
16594
16594
|
async createMigrationTask() {
|
|
16595
16595
|
const t = [];
|
|
@@ -16634,15 +16634,15 @@ function Tl(e) {
|
|
|
16634
16634
|
panel: t
|
|
16635
16635
|
} = We();
|
|
16636
16636
|
return He((r) => {
|
|
16637
|
-
const i = r.getRequired(
|
|
16638
|
-
return r.createScoped().provideFactory(
|
|
16639
|
-
const l = o.getRequired(
|
|
16637
|
+
const i = r.getRequired(Ee.vizManager), a = i.resolveComponent(e.viz.type);
|
|
16638
|
+
return r.createScoped().provideFactory(Ee.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(Ee.instanceScope.interactionManager, (o) => {
|
|
16639
|
+
const l = o.getRequired(Ee.instanceScope.vizInstance);
|
|
16640
16640
|
return new wa(l, a, Dr);
|
|
16641
|
-
}).provideFactory(
|
|
16641
|
+
}).provideFactory(Ee.instanceScope.operationManager, (o) => o.getRequired(Ee.instanceScope.interactionManager).operationManager).provideFactory(Ee.instanceScope.triggerManager, (o) => o.getRequired(Ee.instanceScope.interactionManager).triggerManager).provideValue(Ee.instanceScope.panelModel, t).provideFactory(Ee.instanceScope.migrator, (o) => new Iw(o));
|
|
16642
16642
|
}, [e.viz.type, e.viz.conf]);
|
|
16643
16643
|
}
|
|
16644
16644
|
function Dl(e) {
|
|
16645
|
-
const [t, r] = U(!1), i = vs().getRequired(
|
|
16645
|
+
const [t, r] = U(!1), i = vs().getRequired(Ee.instanceScope.migrator);
|
|
16646
16646
|
return Fn(async () => {
|
|
16647
16647
|
const a = i.status === er.notStarted;
|
|
16648
16648
|
r(i.status === er.done), i.status === er.notStarted && i.runMigration().then((o) => {
|
|
@@ -16653,7 +16653,7 @@ function Dl(e) {
|
|
|
16653
16653
|
}, [i]), t;
|
|
16654
16654
|
}
|
|
16655
16655
|
function Ll(e, t) {
|
|
16656
|
-
const r = vs().getRequired(
|
|
16656
|
+
const r = vs().getRequired(Ee.instanceScope.vizInstance);
|
|
16657
16657
|
return q(() => (r.instanceData.setItem(null, t.viz.conf), r.instanceData.watchItem(null, (i) => {
|
|
16658
16658
|
e(i);
|
|
16659
16659
|
})), [e, t.viz.type]), r;
|
|
@@ -16941,7 +16941,7 @@ const Gw = D(({
|
|
|
16941
16941
|
children: e,
|
|
16942
16942
|
view: t
|
|
16943
16943
|
}) => {
|
|
16944
|
-
const r =
|
|
16944
|
+
const r = Lt(), i = te(), a = L(() => i.views.options.filter((c) => c.type === oe.Division), [t.id, i.views.options]), o = t.config, l = (c) => r.openConfirmModal({
|
|
16945
16945
|
title: "Delete this tab?",
|
|
16946
16946
|
labels: {
|
|
16947
16947
|
confirm: "Confirm",
|
|
@@ -17199,7 +17199,7 @@ const tt = {
|
|
|
17199
17199
|
headers: l,
|
|
17200
17200
|
signal: t
|
|
17201
17201
|
};
|
|
17202
|
-
return ["POST", "PUT"].includes(e) && (s.data = a.string ? JSON.stringify(i) : i, s.data.authentication = this.getAuthentication(s.data)),
|
|
17202
|
+
return ["POST", "PUT"].includes(e) && (s.data = a.string ? JSON.stringify(i) : i, s.data.authentication = this.getAuthentication(s.data)), Et(s).then((c) => c.data).catch((c) => Promise.reject(c));
|
|
17203
17203
|
};
|
|
17204
17204
|
},
|
|
17205
17205
|
makeQueryENV: null,
|
|
@@ -17315,8 +17315,8 @@ const c_ = f.model("FilterConfigModel_DateRange", {
|
|
|
17315
17315
|
})).actions((e) => ({
|
|
17316
17316
|
setFilterValue(t) {
|
|
17317
17317
|
try {
|
|
17318
|
-
const r =
|
|
17319
|
-
|
|
17318
|
+
const r = nt(e);
|
|
17319
|
+
$e(e).filters.setValueByKey(r.key, t);
|
|
17320
17320
|
} catch (r) {
|
|
17321
17321
|
console.error(r);
|
|
17322
17322
|
}
|
|
@@ -17392,7 +17392,7 @@ const c_ = f.model("FilterConfigModel_DateRange", {
|
|
|
17392
17392
|
data: t,
|
|
17393
17393
|
state: r,
|
|
17394
17394
|
error: i
|
|
17395
|
-
} =
|
|
17395
|
+
} = $e(e).content.getDataStuffByID(e.options_query_id);
|
|
17396
17396
|
return r === "idle" ? t : [];
|
|
17397
17397
|
}
|
|
17398
17398
|
})).actions((e) => ({
|
|
@@ -17445,12 +17445,12 @@ const c_ = f.model("FilterConfigModel_DateRange", {
|
|
|
17445
17445
|
e.min_width = t;
|
|
17446
17446
|
},
|
|
17447
17447
|
setDefaultSelection() {
|
|
17448
|
-
const t =
|
|
17448
|
+
const t = $e(e).content.filters, r = nt(e).key;
|
|
17449
17449
|
t.setValueByKey(r, e.default_selection);
|
|
17450
17450
|
}
|
|
17451
17451
|
})).actions((e) => ({
|
|
17452
17452
|
afterCreate() {
|
|
17453
|
-
|
|
17453
|
+
Dt(e, dt(() => Nt(e.default_selection), e.setDefaultSelection, {
|
|
17454
17454
|
fireImmediately: !0,
|
|
17455
17455
|
delay: 0
|
|
17456
17456
|
}));
|
|
@@ -17519,19 +17519,19 @@ const Ol = f.compose("FilterConfigModel_TreeSelect", f.model({
|
|
|
17519
17519
|
get treeData() {
|
|
17520
17520
|
const {
|
|
17521
17521
|
data: t
|
|
17522
|
-
} =
|
|
17522
|
+
} = $e(e).content.getDataStuffByID(e.options_query_id), r = m_(t);
|
|
17523
17523
|
return p_(r);
|
|
17524
17524
|
},
|
|
17525
17525
|
get errorMessage() {
|
|
17526
17526
|
const {
|
|
17527
17527
|
error: t
|
|
17528
|
-
} =
|
|
17528
|
+
} = $e(e).content.getDataStuffByID(e.options_query_id);
|
|
17529
17529
|
return t;
|
|
17530
17530
|
},
|
|
17531
17531
|
get treeDataLoading() {
|
|
17532
17532
|
const {
|
|
17533
17533
|
state: t
|
|
17534
|
-
} =
|
|
17534
|
+
} = $e(e).content.getDataStuffByID(e.options_query_id);
|
|
17535
17535
|
return t === "loading";
|
|
17536
17536
|
},
|
|
17537
17537
|
get defaultSelection() {
|
|
@@ -17546,6 +17546,16 @@ const Ol = f.compose("FilterConfigModel_TreeSelect", f.model({
|
|
|
17546
17546
|
},
|
|
17547
17547
|
setMinWidth(t) {
|
|
17548
17548
|
e.min_width = t;
|
|
17549
|
+
},
|
|
17550
|
+
applyDefaultSelection() {
|
|
17551
|
+
const t = nt(e, 1).key;
|
|
17552
|
+
$e(e).content.filters.setValueByKey(t, e.defaultSelection);
|
|
17553
|
+
},
|
|
17554
|
+
afterCreate() {
|
|
17555
|
+
Dt(e, dt(() => JSON.stringify(e.defaultSelection), this.applyDefaultSelection, {
|
|
17556
|
+
fireImmediately: !0,
|
|
17557
|
+
delay: 0
|
|
17558
|
+
}));
|
|
17549
17559
|
}
|
|
17550
17560
|
})), g_ = () => Ol.create({
|
|
17551
17561
|
_name: "tree-select",
|
|
@@ -17736,7 +17746,7 @@ function b_(e) {
|
|
|
17736
17746
|
return e.reduce((t, r) => (t[r.key] = Nl(r.config.default_value, r.config), t), {});
|
|
17737
17747
|
}
|
|
17738
17748
|
function x_(e, t, r) {
|
|
17739
|
-
|
|
17749
|
+
Dt(e, Hd(e, (i, a) => {
|
|
17740
17750
|
a(i, () => {
|
|
17741
17751
|
Qd(i.context) === t && i.type === "action" && r(i.name, i.context);
|
|
17742
17752
|
});
|
|
@@ -18098,7 +18108,7 @@ const M_ = f.model("QueryModel", {
|
|
|
18098
18108
|
context: t,
|
|
18099
18109
|
mock_context: r,
|
|
18100
18110
|
filterValues: i
|
|
18101
|
-
} =
|
|
18111
|
+
} = $e(e).content.payloadForSQL, a = Object.keys({
|
|
18102
18112
|
...r,
|
|
18103
18113
|
...t
|
|
18104
18114
|
}).map((s) => `context.${s}`), o = Object.keys(i).map((s) => `filters.${s}`);
|
|
@@ -18120,7 +18130,7 @@ const M_ = f.model("QueryModel", {
|
|
|
18120
18130
|
context: r,
|
|
18121
18131
|
mock_context: i,
|
|
18122
18132
|
filterValues: a
|
|
18123
|
-
} =
|
|
18133
|
+
} = $e(e).content.payloadForSQL, o = {
|
|
18124
18134
|
context: {
|
|
18125
18135
|
...i,
|
|
18126
18136
|
...r
|
|
@@ -18143,7 +18153,7 @@ const M_ = f.model("QueryModel", {
|
|
|
18143
18153
|
context: r,
|
|
18144
18154
|
mock_context: i,
|
|
18145
18155
|
filterValues: a
|
|
18146
|
-
} =
|
|
18156
|
+
} = $e(e).content.payloadForSQL, o = {
|
|
18147
18157
|
context: {
|
|
18148
18158
|
...r,
|
|
18149
18159
|
...i
|
|
@@ -18163,7 +18173,7 @@ const M_ = f.model("QueryModel", {
|
|
|
18163
18173
|
};
|
|
18164
18174
|
const {
|
|
18165
18175
|
keyLabelMap: t
|
|
18166
|
-
} =
|
|
18176
|
+
} = $e(e).content.filters, r = e.unmetRunByConditions.filter((a) => a.startsWith("context.")).map((a) => a.split("context.")[0]), i = e.unmetRunByConditions.filter((a) => a.startsWith("filters.")).map((a) => k.get({
|
|
18167
18177
|
filters: t
|
|
18168
18178
|
}, a)).filter((a) => !!a);
|
|
18169
18179
|
return {
|
|
@@ -18237,7 +18247,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18237
18247
|
mock_context: r,
|
|
18238
18248
|
sqlSnippets: i,
|
|
18239
18249
|
filterValues: a
|
|
18240
|
-
} =
|
|
18250
|
+
} = $e(e).content.payloadForSQL;
|
|
18241
18251
|
return Wl(e.sql, t, r, i, a);
|
|
18242
18252
|
},
|
|
18243
18253
|
get typedAsSQL() {
|
|
@@ -18251,7 +18261,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18251
18261
|
key: t,
|
|
18252
18262
|
type: r
|
|
18253
18263
|
} = e;
|
|
18254
|
-
return
|
|
18264
|
+
return $e(e).datasources.find({
|
|
18255
18265
|
type: r,
|
|
18256
18266
|
key: t
|
|
18257
18267
|
});
|
|
@@ -18261,7 +18271,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18261
18271
|
context: t,
|
|
18262
18272
|
mock_context: r,
|
|
18263
18273
|
filterValues: i
|
|
18264
|
-
} =
|
|
18274
|
+
} = $e(e).content.payloadForSQL, {
|
|
18265
18275
|
name: a,
|
|
18266
18276
|
pre_process: o
|
|
18267
18277
|
} = e.json, l = E_(o, t, r, i);
|
|
@@ -18296,7 +18306,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18296
18306
|
mock_context: i,
|
|
18297
18307
|
sqlSnippets: a,
|
|
18298
18308
|
filterValues: o
|
|
18299
|
-
} =
|
|
18309
|
+
} = $e(e).content.payloadForSQL;
|
|
18300
18310
|
e.data = yield* Gt($_({
|
|
18301
18311
|
context: r,
|
|
18302
18312
|
mock_context: i,
|
|
@@ -18306,7 +18316,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18306
18316
|
filterValues: o
|
|
18307
18317
|
}, e.controller.signal)), e.state = "idle", e.error = null;
|
|
18308
18318
|
} catch (r) {
|
|
18309
|
-
if (!
|
|
18319
|
+
if (!Et.isCancel(r)) {
|
|
18310
18320
|
e.data.length = 0;
|
|
18311
18321
|
const i = se(r, "message", "unkown error");
|
|
18312
18322
|
e.error = se(r, "response.data.detail.message", i), e.state = "error";
|
|
@@ -18334,7 +18344,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18334
18344
|
let s = V_(e.datasource, l);
|
|
18335
18345
|
s = F_(a, s), e.data = s, e.state = "idle", e.error = null;
|
|
18336
18346
|
} catch (r) {
|
|
18337
|
-
if (console.error(r), !
|
|
18347
|
+
if (console.error(r), !Et.isCancel(r)) {
|
|
18338
18348
|
e.data.length = 0;
|
|
18339
18349
|
const i = se(r, "message", "unkown error");
|
|
18340
18350
|
e.error = se(r, "response.data.detail.message", i), e.state = "error";
|
|
@@ -18350,7 +18360,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18350
18360
|
}
|
|
18351
18361
|
})).actions((e) => ({
|
|
18352
18362
|
afterCreate() {
|
|
18353
|
-
|
|
18363
|
+
Dt(e, dt(() => {
|
|
18354
18364
|
var t, r;
|
|
18355
18365
|
return e.typedAsHTTP ? `${e.id}--${e.key}--${e.reQueryKey}--${(t = e.datasource) == null ? void 0 : t.id}` : `${e.id}--${e.key}--${e.formattedSQL}--${e.pre_process}--${e.post_process}--${(r = e.datasource) == null ? void 0 : r.id}`;
|
|
18356
18366
|
}, e.fetchData, {
|
|
@@ -18442,7 +18452,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18442
18452
|
};
|
|
18443
18453
|
},
|
|
18444
18454
|
isADuplicatedKey(t) {
|
|
18445
|
-
return !t || t === e.key ? !1 : !!
|
|
18455
|
+
return !t || t === e.key ? !1 : !!nt(e, 2).findByKey(t);
|
|
18446
18456
|
}
|
|
18447
18457
|
})).actions((e) => ({
|
|
18448
18458
|
setKey(t) {
|
|
@@ -18523,7 +18533,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18523
18533
|
return e.data.length === 0;
|
|
18524
18534
|
},
|
|
18525
18535
|
get sql() {
|
|
18526
|
-
const t =
|
|
18536
|
+
const t = nt(e, 1), {
|
|
18527
18537
|
type: r,
|
|
18528
18538
|
table_name: i,
|
|
18529
18539
|
table_schema: a
|
|
@@ -18569,7 +18579,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18569
18579
|
return e.data.length === 0;
|
|
18570
18580
|
},
|
|
18571
18581
|
get sql() {
|
|
18572
|
-
const t =
|
|
18582
|
+
const t = nt(e, 1), {
|
|
18573
18583
|
type: r,
|
|
18574
18584
|
table_name: i,
|
|
18575
18585
|
table_schema: a
|
|
@@ -18623,7 +18633,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18623
18633
|
return Object.keys(e.data).length === 0;
|
|
18624
18634
|
},
|
|
18625
18635
|
get sql() {
|
|
18626
|
-
const t =
|
|
18636
|
+
const t = nt(e, 1).type;
|
|
18627
18637
|
return t === Se.MySQL || t === Se.Postgresql ? "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name" : "";
|
|
18628
18638
|
}
|
|
18629
18639
|
})), H_ = f.model({
|
|
@@ -18635,13 +18645,13 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18635
18645
|
error: f.frozen()
|
|
18636
18646
|
}).views((e) => ({
|
|
18637
18647
|
get keywords() {
|
|
18638
|
-
return
|
|
18648
|
+
return nt(e, 1);
|
|
18639
18649
|
},
|
|
18640
18650
|
get keywordString() {
|
|
18641
18651
|
const {
|
|
18642
18652
|
table_name: t,
|
|
18643
18653
|
table_schema: r
|
|
18644
|
-
} =
|
|
18654
|
+
} = nt(e, 1);
|
|
18645
18655
|
return `${r}||${t}`;
|
|
18646
18656
|
}
|
|
18647
18657
|
})).views((e) => ({
|
|
@@ -18655,7 +18665,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18655
18665
|
return Math.ceil(e.total / e.limit);
|
|
18656
18666
|
},
|
|
18657
18667
|
get sql() {
|
|
18658
|
-
const t =
|
|
18668
|
+
const t = nt(e, 1), {
|
|
18659
18669
|
table_name: r,
|
|
18660
18670
|
table_schema: i
|
|
18661
18671
|
} = t;
|
|
@@ -18687,10 +18697,10 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18687
18697
|
}
|
|
18688
18698
|
})).actions((e) => ({
|
|
18689
18699
|
afterCreate() {
|
|
18690
|
-
|
|
18700
|
+
Dt(e, dt(() => e.keywordString, e.resetPage, {
|
|
18691
18701
|
fireImmediately: !1,
|
|
18692
18702
|
delay: 0
|
|
18693
|
-
})),
|
|
18703
|
+
})), Dt(e, dt(() => e.limit, e.resetPage, {
|
|
18694
18704
|
fireImmediately: !1,
|
|
18695
18705
|
delay: 0
|
|
18696
18706
|
}));
|
|
@@ -18736,7 +18746,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18736
18746
|
}, {}));
|
|
18737
18747
|
e.tables.data = k.groupBy(i, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
|
|
18738
18748
|
} catch (i) {
|
|
18739
|
-
if (!
|
|
18749
|
+
if (!Et.isCancel(i)) {
|
|
18740
18750
|
e.tables.data = {};
|
|
18741
18751
|
const a = k.get(i, "message", "unkown error");
|
|
18742
18752
|
e.tables.error = k.get(i, "response.data.detail.message", a), e.tables.state = "error";
|
|
@@ -18758,7 +18768,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18758
18768
|
query: e.columns.sql
|
|
18759
18769
|
}, {})), e.columns.state = "idle", e.columns.error = null;
|
|
18760
18770
|
} catch (i) {
|
|
18761
|
-
if (
|
|
18771
|
+
if (Et.isCancel(i))
|
|
18762
18772
|
e.columns.state = "idle", e.columns.error = null;
|
|
18763
18773
|
else {
|
|
18764
18774
|
e.columns.data = [];
|
|
@@ -18777,7 +18787,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18777
18787
|
query: e.indexes.sql
|
|
18778
18788
|
}, {})), e.indexes.state = "idle", e.indexes.error = null;
|
|
18779
18789
|
} catch (i) {
|
|
18780
|
-
if (
|
|
18790
|
+
if (Et.isCancel(i))
|
|
18781
18791
|
e.indexes.state = "idle", e.indexes.error = null;
|
|
18782
18792
|
else {
|
|
18783
18793
|
e.indexes.data = [];
|
|
@@ -18806,7 +18816,7 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18806
18816
|
}, {}));
|
|
18807
18817
|
r.total = Number(a), r.state = "idle", r.error = null;
|
|
18808
18818
|
} catch (a) {
|
|
18809
|
-
if (
|
|
18819
|
+
if (Et.isCancel(a))
|
|
18810
18820
|
r.state = "idle", r.error = null;
|
|
18811
18821
|
else {
|
|
18812
18822
|
r.data = [];
|
|
@@ -18818,17 +18828,17 @@ const P_ = f.compose("QueryModel", M_, f.model({
|
|
|
18818
18828
|
};
|
|
18819
18829
|
}).actions((e) => ({
|
|
18820
18830
|
afterCreate() {
|
|
18821
|
-
|
|
18831
|
+
Dt(e, dt(() => e.columns.sql, e.loadColumns, {
|
|
18822
18832
|
fireImmediately: !1,
|
|
18823
18833
|
delay: 500
|
|
18824
18834
|
}));
|
|
18825
18835
|
}
|
|
18826
18836
|
})).actions((e) => ({
|
|
18827
18837
|
afterCreate() {
|
|
18828
|
-
|
|
18838
|
+
Dt(e, dt(() => e.indexes.sql, e.loadIndexes, {
|
|
18829
18839
|
fireImmediately: !1,
|
|
18830
18840
|
delay: 500
|
|
18831
|
-
})),
|
|
18841
|
+
})), Dt(e, dt(() => e.tableData.sql, e.loadTableData, {
|
|
18832
18842
|
fireImmediately: !1,
|
|
18833
18843
|
delay: 0
|
|
18834
18844
|
}));
|
|
@@ -18891,7 +18901,7 @@ const Z_ = f.model("EditorModel", {
|
|
|
18891
18901
|
get navOptions() {
|
|
18892
18902
|
const {
|
|
18893
18903
|
content: t
|
|
18894
|
-
} =
|
|
18904
|
+
} = $e(e), {
|
|
18895
18905
|
filters: r,
|
|
18896
18906
|
views: i,
|
|
18897
18907
|
sqlSnippets: a,
|
|
@@ -19042,10 +19052,10 @@ class e1 {
|
|
|
19042
19052
|
});
|
|
19043
19053
|
}
|
|
19044
19054
|
get changed() {
|
|
19045
|
-
return !we(
|
|
19055
|
+
return !we(gt(this.origin), gt(this.copy));
|
|
19046
19056
|
}
|
|
19047
19057
|
commit() {
|
|
19048
|
-
Ke(this.origin,
|
|
19058
|
+
Ke(this.origin, gt(this.copy));
|
|
19049
19059
|
}
|
|
19050
19060
|
update(t) {
|
|
19051
19061
|
Ke(this.copy, t);
|
|
@@ -19185,11 +19195,11 @@ const t1 = (e) => new e1(e), n1 = f.model("PanelLayoutModel", {
|
|
|
19185
19195
|
e.variables.remove(t);
|
|
19186
19196
|
},
|
|
19187
19197
|
removeSelf() {
|
|
19188
|
-
|
|
19198
|
+
nt(e, 2).removeByID(e.id);
|
|
19189
19199
|
}
|
|
19190
19200
|
})).actions((e) => ({
|
|
19191
19201
|
moveToView(t, r) {
|
|
19192
|
-
|
|
19202
|
+
$e(e).content.views.findByID(t).removePanelID(e.id), $e(e).content.views.findByID(r).appendPanelID(e.id), $e(e).editor.setPath(["_VIEWS_", r, "_PANELS_", e.id]);
|
|
19193
19203
|
}
|
|
19194
19204
|
}));
|
|
19195
19205
|
function s1(e) {
|
|
@@ -19338,7 +19348,7 @@ const l1 = f.model("PanelsModel", {
|
|
|
19338
19348
|
const {
|
|
19339
19349
|
enabled: t,
|
|
19340
19350
|
func_content: r
|
|
19341
|
-
} = e, i =
|
|
19351
|
+
} = e, i = nt(e, 2), a = $e(e);
|
|
19342
19352
|
if (!t)
|
|
19343
19353
|
return i.name;
|
|
19344
19354
|
try {
|
|
@@ -19570,7 +19580,7 @@ const l1 = f.model("PanelsModel", {
|
|
|
19570
19580
|
}));
|
|
19571
19581
|
},
|
|
19572
19582
|
get editorOptions() {
|
|
19573
|
-
const t =
|
|
19583
|
+
const t = $e(e).content.panels;
|
|
19574
19584
|
return e.current.map((r) => ({
|
|
19575
19585
|
label: r.name,
|
|
19576
19586
|
value: r.id,
|
|
@@ -19686,23 +19696,23 @@ const f1 = f.model({
|
|
|
19686
19696
|
},
|
|
19687
19697
|
get filtersChanged() {
|
|
19688
19698
|
const t = "filters.current";
|
|
19689
|
-
return !we(
|
|
19699
|
+
return !we(gt(se(e, t)), se(e.origin, t));
|
|
19690
19700
|
},
|
|
19691
19701
|
get queriesChanged() {
|
|
19692
|
-
const t = "queries.current", r =
|
|
19702
|
+
const t = "queries.current", r = gt(se(e, t)).map((i) => Po(i, ["id", "name", "key", "type", "sql", "run_by", "react_to", "pre_process", "post_process"]));
|
|
19693
19703
|
return !we(r, se(e.origin, t));
|
|
19694
19704
|
},
|
|
19695
19705
|
get sqlSnippetsChanged() {
|
|
19696
19706
|
const t = "sqlSnippets.current";
|
|
19697
|
-
return !we(
|
|
19707
|
+
return !we(gt(se(e, t)), se(e.origin, t));
|
|
19698
19708
|
},
|
|
19699
19709
|
get viewsChanged() {
|
|
19700
19710
|
const t = "views.current";
|
|
19701
|
-
return !we(
|
|
19711
|
+
return !we(gt(se(e, t)), se(e.origin, t));
|
|
19702
19712
|
},
|
|
19703
19713
|
get panelsChanged() {
|
|
19704
19714
|
const t = "panels.list";
|
|
19705
|
-
return !we(
|
|
19715
|
+
return !we(gt(se(e, t)), se(e.origin, t));
|
|
19706
19716
|
},
|
|
19707
19717
|
get mockContextChanged() {
|
|
19708
19718
|
const t = "mock_context.current";
|
|
@@ -19710,7 +19720,7 @@ const f1 = f.model({
|
|
|
19710
19720
|
},
|
|
19711
19721
|
get payloadForSQL() {
|
|
19712
19722
|
return {
|
|
19713
|
-
context:
|
|
19723
|
+
context: nt(e).context.current,
|
|
19714
19724
|
mock_context: e.mock_context.current,
|
|
19715
19725
|
sqlSnippets: e.sqlSnippets.current,
|
|
19716
19726
|
filterValues: e.filters.values
|
|
@@ -19833,7 +19843,7 @@ const f1 = f.model({
|
|
|
19833
19843
|
postProcessor(e) {
|
|
19834
19844
|
delete e.origin;
|
|
19835
19845
|
const t = bs(e.queries.current.map((r) => Po(r, ["id", "key", "type", "sql"])));
|
|
19836
|
-
return
|
|
19846
|
+
return ze({}, {
|
|
19837
19847
|
queries: {
|
|
19838
19848
|
current: t
|
|
19839
19849
|
}
|
|
@@ -19941,7 +19951,7 @@ function Ql({
|
|
|
19941
19951
|
});
|
|
19942
19952
|
}
|
|
19943
19953
|
function Ul(e) {
|
|
19944
|
-
return $.useCallback((t) => t.provideValue(
|
|
19954
|
+
return $.useCallback((t) => t.provideValue(Ee.pluginManager, e.pluginManager).provideValue(Ee.vizManager, e.vizManager).provideValue(Ee.colorManager, e.colorManager), []);
|
|
19945
19955
|
}
|
|
19946
19956
|
const y1 = D(({
|
|
19947
19957
|
headerMenuItems: e = null
|
|
@@ -19961,7 +19971,7 @@ const y1 = D(({
|
|
|
19961
19971
|
}), v1 = D(({
|
|
19962
19972
|
saveDashboardChanges: e
|
|
19963
19973
|
}) => {
|
|
19964
|
-
const t =
|
|
19974
|
+
const t = Lt(), r = te(), i = () => {
|
|
19965
19975
|
t.openConfirmModal({
|
|
19966
19976
|
title: /* @__PURE__ */ u(v, { position: "left", children: [
|
|
19967
19977
|
/* @__PURE__ */ n(Wo, { size: 18, color: "red" }),
|
|
@@ -20005,7 +20015,7 @@ const y1 = D(({
|
|
|
20005
20015
|
}) => {
|
|
20006
20016
|
const i = eu(), a = De(), o = () => {
|
|
20007
20017
|
i(`/dashboard/${a.id}`);
|
|
20008
|
-
}, l =
|
|
20018
|
+
}, l = Lt(), s = () => {
|
|
20009
20019
|
l.openConfirmModal({
|
|
20010
20020
|
title: /* @__PURE__ */ u(v, { position: "left", children: [
|
|
20011
20021
|
/* @__PURE__ */ n(Wo, { size: 18, color: "red" }),
|
|
@@ -20902,7 +20912,7 @@ const X1 = D(() => {
|
|
|
20902
20912
|
}), hC = D(({
|
|
20903
20913
|
id: e
|
|
20904
20914
|
}) => {
|
|
20905
|
-
const t =
|
|
20915
|
+
const t = Lt(), r = De(), i = te();
|
|
20906
20916
|
if (e === "")
|
|
20907
20917
|
return null;
|
|
20908
20918
|
const a = i.filters.findByID(e);
|
|
@@ -21288,7 +21298,7 @@ function SC() {
|
|
|
21288
21298
|
const {
|
|
21289
21299
|
panel: e
|
|
21290
21300
|
} = We();
|
|
21291
|
-
return
|
|
21301
|
+
return ut(() => new CC(e), [e]);
|
|
21292
21302
|
}
|
|
21293
21303
|
const kC = $.forwardRef(function({
|
|
21294
21304
|
value: t,
|
|
@@ -21307,7 +21317,7 @@ const kC = $.forwardRef(function({
|
|
|
21307
21317
|
] }),
|
|
21308
21318
|
/* @__PURE__ */ n(yr, { label: "Aggregation", value: t.aggregation, onChange: (s) => l("aggregation", s) }),
|
|
21309
21319
|
/* @__PURE__ */ n(R, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
21310
|
-
/* @__PURE__ */ n(
|
|
21320
|
+
/* @__PURE__ */ n(pt, { value: t.formatter, onChange: (s) => l("formatter", s) }),
|
|
21311
21321
|
a && /* @__PURE__ */ n(Xs, { value: t, onChange: r })
|
|
21312
21322
|
] });
|
|
21313
21323
|
}), rc = un((e) => ({
|
|
@@ -21352,7 +21362,7 @@ const kC = $.forwardRef(function({
|
|
|
21352
21362
|
minHeight: 0,
|
|
21353
21363
|
height: "calc(100% - 68px)"
|
|
21354
21364
|
}, children: /* @__PURE__ */ n(Ei, { withBorder: !0, p: "md", children: Zs(e, t) }) }), IC = D(LC), $C = (e) => {
|
|
21355
|
-
const t =
|
|
21365
|
+
const t = ut(() => t1(e.variable), [e.variable]), {
|
|
21356
21366
|
classes: r
|
|
21357
21367
|
} = rc(), {
|
|
21358
21368
|
data: i
|
|
@@ -21365,9 +21375,9 @@ const kC = $.forwardRef(function({
|
|
|
21365
21375
|
/* @__PURE__ */ n(Q, { variant: "filled", disabled: !t.changed, color: "primary", onClick: t.commit, children: /* @__PURE__ */ n(Nn, { size: 18 }) }),
|
|
21366
21376
|
/* @__PURE__ */ n(Q, { color: "red", onClick: () => e.uiModel.remove(e.variable), children: /* @__PURE__ */ n(ln, { size: 18 }) })
|
|
21367
21377
|
] }),
|
|
21368
|
-
/* @__PURE__ */ n(kC, { value:
|
|
21378
|
+
/* @__PURE__ */ n(kC, { value: gt(t.copy), onChange: t.update, data: i })
|
|
21369
21379
|
] }),
|
|
21370
|
-
/* @__PURE__ */ n(IC, { variable:
|
|
21380
|
+
/* @__PURE__ */ n(IC, { variable: gt(t.copy), data: i })
|
|
21371
21381
|
] });
|
|
21372
21382
|
}, zC = D($C), MC = () => {
|
|
21373
21383
|
const e = SC(), {
|
|
@@ -21551,7 +21561,7 @@ function BC(e) {
|
|
|
21551
21561
|
const qC = D(({
|
|
21552
21562
|
panel: e
|
|
21553
21563
|
}) => {
|
|
21554
|
-
const t =
|
|
21564
|
+
const t = Lt(), r = De(), i = te(), [a, o] = U("Data"), {
|
|
21555
21565
|
data: l,
|
|
21556
21566
|
state: s,
|
|
21557
21567
|
error: c
|
|
@@ -22061,7 +22071,7 @@ const ZC = D(({
|
|
|
22061
22071
|
}), lS = (e) => {
|
|
22062
22072
|
const {
|
|
22063
22073
|
queryModel: t
|
|
22064
|
-
} = e, r = De(), i = te(), o = i.findQueryUsage(t.id).length > 0, l =
|
|
22074
|
+
} = e, r = De(), i = te(), o = i.findQueryUsage(t.id).length > 0, l = Lt(), s = () => {
|
|
22065
22075
|
l.openConfirmModal({
|
|
22066
22076
|
title: "Delete this query?",
|
|
22067
22077
|
labels: {
|
|
@@ -22141,7 +22151,7 @@ const hS = ({
|
|
|
22141
22151
|
}) => /* @__PURE__ */ n(V, { sx: {
|
|
22142
22152
|
position: "relative",
|
|
22143
22153
|
flexGrow: 1
|
|
22144
|
-
}, children: /* @__PURE__ */ n(
|
|
22154
|
+
}, children: /* @__PURE__ */ n(rt, { className: "function-editor", height: "100%", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
22145
22155
|
i && t(i);
|
|
22146
22156
|
}, theme: "vs-dark", options: {
|
|
22147
22157
|
lineNumbers: "off",
|
|
@@ -22307,7 +22317,7 @@ WHERE
|
|
|
22307
22317
|
const a = (l) => {
|
|
22308
22318
|
console.log("changing"), t == null || t(l ?? "");
|
|
22309
22319
|
}, o = !t;
|
|
22310
|
-
return /* @__PURE__ */ n(
|
|
22320
|
+
return /* @__PURE__ */ n(rt, { className: "minimal-monaco-editor", height: r, defaultLanguage: i, value: e, onChange: o ? void 0 : a, theme: "vs-dark", options: {
|
|
22311
22321
|
lineNumbers: "off",
|
|
22312
22322
|
folding: !1,
|
|
22313
22323
|
lineDecorationsWidth: 20,
|
|
@@ -22322,7 +22332,7 @@ WHERE
|
|
|
22322
22332
|
value: e,
|
|
22323
22333
|
height: t = "200px",
|
|
22324
22334
|
defaultLanguage: r = "sql"
|
|
22325
|
-
}) => /* @__PURE__ */ n(
|
|
22335
|
+
}) => /* @__PURE__ */ n(rt, { className: "preview-sql-in-monaco-editor", height: t, defaultLanguage: r, value: e, onChange: void 0, theme: "vs-light", options: {
|
|
22326
22336
|
lineNumbers: "on",
|
|
22327
22337
|
folding: !0,
|
|
22328
22338
|
lineDecorationsWidth: 20,
|
|
@@ -22457,7 +22467,7 @@ WHERE
|
|
|
22457
22467
|
q(() => {
|
|
22458
22468
|
l(e.key), m(e.value);
|
|
22459
22469
|
}, [e]);
|
|
22460
|
-
const g = p !== e.value, w =
|
|
22470
|
+
const g = p !== e.value, w = Lt();
|
|
22461
22471
|
return /* @__PURE__ */ u(S, { p: 20, sx: {
|
|
22462
22472
|
maxWidth: "1100px",
|
|
22463
22473
|
height: "100vh"
|
|
@@ -22579,7 +22589,7 @@ WHERE
|
|
|
22579
22589
|
position: "relative"
|
|
22580
22590
|
}, children: [
|
|
22581
22591
|
e && /* @__PURE__ */ n(Vt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
22582
|
-
/* @__PURE__ */ n(
|
|
22592
|
+
/* @__PURE__ */ n(rt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
22583
22593
|
a && r(a);
|
|
22584
22594
|
}, theme: "vs-dark", options: {
|
|
22585
22595
|
minimap: {
|
|
@@ -22682,7 +22692,7 @@ WHERE
|
|
|
22682
22692
|
] }) : null), RS = D(({
|
|
22683
22693
|
id: e
|
|
22684
22694
|
}) => {
|
|
22685
|
-
const t =
|
|
22695
|
+
const t = Lt(), r = De(), i = te();
|
|
22686
22696
|
if (e === "")
|
|
22687
22697
|
return null;
|
|
22688
22698
|
const a = i.views.findByID(e);
|
|
@@ -22949,12 +22959,12 @@ const rk = {
|
|
|
22949
22959
|
g.context.replace(e);
|
|
22950
22960
|
}, [e]), $.useEffect(() => {
|
|
22951
22961
|
g.datasources.replace(p);
|
|
22952
|
-
}, [p]), $.useEffect(() =>
|
|
22962
|
+
}, [p]), $.useEffect(() => dt(() => Nt(g.json), (M) => {
|
|
22953
22963
|
l == null || l(M);
|
|
22954
22964
|
}), [g]);
|
|
22955
22965
|
const w = async () => {
|
|
22956
22966
|
await i(g.json, g.content.json);
|
|
22957
|
-
}, y =
|
|
22967
|
+
}, y = ut(va, []), T = Ul(y);
|
|
22958
22968
|
return /* @__PURE__ */ n(Mo, { children: /* @__PURE__ */ n(_s, { value: g, children: /* @__PURE__ */ n(Ss, { value: g.content, children: /* @__PURE__ */ n(Jt.Provider, { value: {
|
|
22959
22969
|
layoutFrozen: m,
|
|
22960
22970
|
freezeLayout: h,
|
|
@@ -22985,7 +22995,7 @@ const TD = D(({
|
|
|
22985
22995
|
}, [e]), $.useEffect(() => {
|
|
22986
22996
|
c.datasources.replace(s);
|
|
22987
22997
|
}, [s]);
|
|
22988
|
-
const d =
|
|
22998
|
+
const d = ut(va, []), p = Ul(d);
|
|
22989
22999
|
return /* @__PURE__ */ n(Mo, { children: /* @__PURE__ */ n(_s, { value: c, children: /* @__PURE__ */ n(Ss, { value: c.content, children: /* @__PURE__ */ n(Ds.Provider, { value: {
|
|
22990
23000
|
fullScreenPanelID: o,
|
|
22991
23001
|
setFullScreenPanelID: l
|
|
@@ -23268,11 +23278,11 @@ var ii = {}, gk = {
|
|
|
23268
23278
|
Ce.call(ee, qe), ne = ne.replace(qe, "");
|
|
23269
23279
|
}
|
|
23270
23280
|
}
|
|
23271
|
-
return function(
|
|
23272
|
-
var Ze =
|
|
23281
|
+
return function(mt) {
|
|
23282
|
+
var Ze = mt.afternoon;
|
|
23273
23283
|
if (Ze !== void 0) {
|
|
23274
|
-
var _t =
|
|
23275
|
-
Ze ? _t < 12 && (
|
|
23284
|
+
var _t = mt.hours;
|
|
23285
|
+
Ze ? _t < 12 && (mt.hours += 12) : _t === 12 && (mt.hours = 0), delete mt.afternoon;
|
|
23276
23286
|
}
|
|
23277
23287
|
}(ee), ee;
|
|
23278
23288
|
};
|
|
@@ -23286,14 +23296,14 @@ var ii = {}, gk = {
|
|
|
23286
23296
|
var H = E[1];
|
|
23287
23297
|
if (typeof H == "string") {
|
|
23288
23298
|
var ne = E[2] === !0, ee = E[3] === !0, de = ne || ee, pe = E[2];
|
|
23289
|
-
ee && (pe = E[2]), s = this.$locale(), !ne && pe && (s = M.Ls[pe]), this.$d = function(Le, qe,
|
|
23299
|
+
ee && (pe = E[2]), s = this.$locale(), !ne && pe && (s = M.Ls[pe]), this.$d = function(Le, qe, mt) {
|
|
23290
23300
|
try {
|
|
23291
23301
|
if (["x", "X"].indexOf(qe) > -1)
|
|
23292
23302
|
return new Date((qe === "X" ? 1e3 : 1) * Le);
|
|
23293
|
-
var Ze = w(qe)(Le), _t = Ze.year, Wt = Ze.month, Gn = Ze.day, Yn = Ze.hours, Ir = Ze.minutes, $r = Ze.seconds, yn = Ze.milliseconds, en = Ze.zone,
|
|
23294
|
-
_t && !Wt || (tn = Wt > 0 ? Wt - 1 :
|
|
23295
|
-
var nn = Yn || 0, vn = Ir || 0, wn = $r || 0,
|
|
23296
|
-
return en ? new Date(Date.UTC(
|
|
23303
|
+
var Ze = w(qe)(Le), _t = Ze.year, Wt = Ze.month, Gn = Ze.day, Yn = Ze.hours, Ir = Ze.minutes, $r = Ze.seconds, yn = Ze.milliseconds, en = Ze.zone, zt = /* @__PURE__ */ new Date(), jt = Gn || (_t || Wt ? 1 : zt.getDate()), Mt = _t || zt.getFullYear(), tn = 0;
|
|
23304
|
+
_t && !Wt || (tn = Wt > 0 ? Wt - 1 : zt.getMonth());
|
|
23305
|
+
var nn = Yn || 0, vn = Ir || 0, wn = $r || 0, At = yn || 0;
|
|
23306
|
+
return en ? new Date(Date.UTC(Mt, tn, jt, nn, vn, wn, At + 60 * en.offset * 1e3)) : mt ? new Date(Date.UTC(Mt, tn, jt, nn, vn, wn, At)) : new Date(Mt, tn, jt, nn, vn, wn, At);
|
|
23297
23307
|
} catch {
|
|
23298
23308
|
return /* @__PURE__ */ new Date("");
|
|
23299
23309
|
}
|