@devtable/dashboard 10.18.0 → 10.18.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
CHANGED
|
@@ -2,10 +2,10 @@ var Uu = Object.defineProperty;
|
|
|
2
2
|
var Xu = (e, t, n) => t in e ? Uu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var H = (e, t, n) => (Xu(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import R, { useState as U, useEffect as W, useCallback as ot, useMemo as z, forwardRef as Se, createElement as Zr, useContext as Yt, useRef as ei, createContext as al, memo as Ju } from "react";
|
|
5
|
-
import { Select as P, Stack as S, Text as C, Group as v, TextInput as $, Button as M, Box as F, Switch as Je, NumberInput as se, Divider as E, Table as
|
|
5
|
+
import { Select as P, Stack as S, Text as C, Group as v, TextInput as $, Button as M, Box as F, Switch as Je, NumberInput as se, Divider as E, Table as Ft, ActionIcon as Q, MultiSelect as lr, Paper as jo, Code as us, Modal as ze, Tabs as g, LoadingOverlay as Sn, Alert as Go, useMantineTheme as sl, ColorInput as Yo, ColorSwatch as Ki, Slider as Zu, Overlay as sn, Checkbox as ve, Center as kn, CheckIcon as eh, MANTINE_SIZES as th, SimpleGrid as rn, Tooltip as Ve, SegmentedControl as nh, HoverCard as it, Anchor as Ui, Textarea as rh, Collapse as Ho, Mark as ih, NativeSelect as ll, createStyles as qn, Popover as Ei, Flex as Wn, Badge as cr, CloseButton as cl, Menu as he, Affix as oh, Header as ah, ThemeIcon as Ri, List as hs, UnstyledButton as sh, Navbar as Wt, JsonInput as dl, Drawer as lh, Radio as ps, Skeleton as fs, NavLink as Xi, Pagination as ch, AppShell as ul } from "@mantine/core";
|
|
6
6
|
import { useModals as Ht, ModalsProvider as hl } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as Ze, useCreation as Tt, useAsyncEffect as br, useRequest as vn, useLatest as ms, usePrevious as dh } from "ahooks";
|
|
8
|
-
import { observable as pl, runInAction as ir, toJS as
|
|
8
|
+
import { observable as pl, runInAction as ir, toJS as Qt, reaction as xt, makeAutoObservable as yr } from "mobx";
|
|
9
9
|
import { observer as D } from "mobx-react-lite";
|
|
10
10
|
import fl from "crypto-js";
|
|
11
11
|
import ee from "dayjs";
|
|
@@ -15,23 +15,23 @@ import * as wh from "d3-array";
|
|
|
15
15
|
import { quantile as Lr } from "d3-array";
|
|
16
16
|
import * as Ar from "mathjs";
|
|
17
17
|
import { faker as _h } from "@faker-js/faker";
|
|
18
|
-
import
|
|
18
|
+
import tn from "axios";
|
|
19
19
|
import gs from "eventemitter2";
|
|
20
20
|
import dr, { random as ti } from "chroma-js";
|
|
21
21
|
import "echarts-gl";
|
|
22
22
|
import * as ye from "echarts/core";
|
|
23
|
-
import { GridComponent as
|
|
23
|
+
import { GridComponent as vt, VisualMapComponent as ni, LegendComponent as wt, TooltipComponent as _t, DataZoomComponent as Kt, MarkLineComponent as ri, MarkAreaComponent as Uo, CalendarComponent as Ch } from "echarts/components";
|
|
24
24
|
import { CanvasRenderer as dt } from "echarts/renderers";
|
|
25
25
|
import ut from "echarts-for-react/lib/core";
|
|
26
26
|
import { useForm as Ee, Controller as y, useFieldArray as Ae, useWatch as Sh } from "react-hook-form";
|
|
27
|
-
import { DeviceFloppy as we, ArrowRight as Oi, Trash as ge, AlertCircle as kh, PlaylistAdd as ii, Recycle as It, InfoCircle as Tn, Plus as
|
|
27
|
+
import { DeviceFloppy as we, ArrowRight as Oi, Trash as ge, AlertCircle as kh, PlaylistAdd as ii, Recycle as It, InfoCircle as Tn, Plus as Qe, Calendar as Th, Refresh as Xo, Download as Jo, ArrowsMaximize as _l, Settings as Cl, Copy as Dh, ArrowLeft as Ih, ArrowsMove as Mh, ChevronDownRight as zh, ChevronsUpRight as $h, ArrowBarToRight as Lh } from "tabler-icons-react";
|
|
28
28
|
import { BoxplotChart as Ah, BarChart as jn, LineChart as Gn, ScatterChart as oi, FunnelChart as Eh, HeatmapChart as Zo, PieChart as Rh, RadarChart as Oh, SunburstChart as Fh } from "echarts/charts";
|
|
29
|
-
import { IconDeviceFloppy as ln, IconInfoCircle as Dn, IconPlus as
|
|
29
|
+
import { IconDeviceFloppy as ln, IconInfoCircle as Dn, IconPlus as Pt, IconTextSize as Sl, IconBorderAll as Ph, IconTrash as Nn, IconArrowDown as Vh, IconArrowUp as Nh, IconCamera as ai, IconShare3 as Bh, IconDownload as kl, IconCode as Tl, IconArrowsLeftRight as qh, IconVariable as Dl, IconCodeDots as Wh, IconFilter as Il, IconCopy as jh, IconDatabase as si, IconBoxMultiple as Ml, IconMenu2 as Gh, IconCaretDown as Yh, IconRecycle as ea, IconAlertTriangle as zl, IconArrowLeft as Hh, IconPlaylistAdd as Qh, IconCircleDashed as Kh, IconCircleDot as Uh, IconCircleOff as Xh, IconAdjustments as Jh, IconLink as Zh, IconSettings as ep, IconLine as tp, IconArrowCurveRight as bs, IconX as $l, IconEye as Ll, IconTable as np, IconColumns as rp, IconPlayerSkipBack as Al, IconAlertCircle as ys, IconVariablePlus as ip } from "@tabler/icons-react";
|
|
30
30
|
import { useClipboard as op, randomId as _n, useElementSize as ur, useInputState as El, useDisclosure as Rl } from "@mantine/hooks";
|
|
31
31
|
import { showNotification as li } from "@mantine/notifications";
|
|
32
32
|
import { interpolate as In } from "popmotion";
|
|
33
33
|
import ht, { loader as Fi } from "@monaco-editor/react";
|
|
34
|
-
import * as
|
|
34
|
+
import * as nn from "d3-regression";
|
|
35
35
|
import { Prism as Cn } from "@mantine/prism";
|
|
36
36
|
import { RichTextEditor as oe, Link as Ol, useRichTextEditorContext as ap } from "@mantine/tiptap";
|
|
37
37
|
import { Color as Fl } from "@tiptap/extension-color";
|
|
@@ -57,13 +57,13 @@ import { DatePickerInput as Ip } from "@mantine/dates";
|
|
|
57
57
|
import Mp, { Option as zp } from "rc-select";
|
|
58
58
|
import $p, { SHOW_PARENT as Lp } from "rc-tree-select";
|
|
59
59
|
import ec, { WidthProvider as tc } from "react-grid-layout";
|
|
60
|
-
import { types as b, cast as
|
|
60
|
+
import { types as b, cast as on, getParent as He, getRoot as Te, addDisposer as Et, isAlive as vs, flow as Pn, toGenerator as fn, clone as Ap, getSnapshot as At, applySnapshot as st, addMiddleware as Ep, getType as Rp, detach as Op, castToSnapshot as nc } from "mobx-state-tree";
|
|
61
61
|
import { arrayToTree as Fp } from "performant-array-to-tree";
|
|
62
62
|
import Pp from "jszip";
|
|
63
63
|
import { saveAs as ta } from "file-saver";
|
|
64
64
|
import rc from "dom-to-image-more";
|
|
65
65
|
import { useNavigate as Vp } from "react-router-dom";
|
|
66
|
-
import Np, { Position as
|
|
66
|
+
import Np, { Position as kt, Handle as ws, MiniMap as Bp, Controls as qp, Background as Wp } from "reactflow";
|
|
67
67
|
var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, hr = {}, jp = {
|
|
68
68
|
get exports() {
|
|
69
69
|
return hr;
|
|
@@ -201,14 +201,14 @@ function Yp() {
|
|
|
201
201
|
}
|
|
202
202
|
return null;
|
|
203
203
|
}
|
|
204
|
-
var Le = Object.assign,
|
|
204
|
+
var Le = Object.assign, Ue = 0, De, Fe, Ie, tt, gt, hn, _r;
|
|
205
205
|
function Cr() {
|
|
206
206
|
}
|
|
207
207
|
Cr.__reactDisabledLog = !0;
|
|
208
208
|
function Di() {
|
|
209
209
|
{
|
|
210
|
-
if (
|
|
211
|
-
|
|
210
|
+
if (Ue === 0) {
|
|
211
|
+
De = console.log, Fe = console.info, Ie = console.warn, tt = console.error, gt = console.group, hn = console.groupCollapsed, _r = console.groupEnd;
|
|
212
212
|
var _ = {
|
|
213
213
|
configurable: !0,
|
|
214
214
|
enumerable: !0,
|
|
@@ -225,12 +225,12 @@ function Yp() {
|
|
|
225
225
|
groupEnd: _
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
Ue++;
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
function Ii() {
|
|
232
232
|
{
|
|
233
|
-
if (
|
|
233
|
+
if (Ue--, Ue === 0) {
|
|
234
234
|
var _ = {
|
|
235
235
|
configurable: !0,
|
|
236
236
|
enumerable: !0,
|
|
@@ -238,13 +238,13 @@ function Yp() {
|
|
|
238
238
|
};
|
|
239
239
|
Object.defineProperties(console, {
|
|
240
240
|
log: Le({}, _, {
|
|
241
|
-
value:
|
|
241
|
+
value: De
|
|
242
242
|
}),
|
|
243
243
|
info: Le({}, _, {
|
|
244
244
|
value: Fe
|
|
245
245
|
}),
|
|
246
246
|
warn: Le({}, _, {
|
|
247
|
-
value:
|
|
247
|
+
value: Ie
|
|
248
248
|
}),
|
|
249
249
|
error: Le({}, _, {
|
|
250
250
|
value: tt
|
|
@@ -260,11 +260,11 @@ function Yp() {
|
|
|
260
260
|
})
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
Ue < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
var Un = I.ReactCurrentDispatcher, $n;
|
|
267
|
-
function
|
|
267
|
+
function Xt(_, V, q) {
|
|
268
268
|
{
|
|
269
269
|
if ($n === void 0)
|
|
270
270
|
try {
|
|
@@ -277,16 +277,16 @@ function Yp() {
|
|
|
277
277
|
` + $n + _;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
var pn = !1,
|
|
280
|
+
var pn = !1, Jt;
|
|
281
281
|
{
|
|
282
282
|
var Ln = typeof WeakMap == "function" ? WeakMap : Map;
|
|
283
|
-
|
|
283
|
+
Jt = new Ln();
|
|
284
284
|
}
|
|
285
285
|
function An(_, V) {
|
|
286
286
|
if (!_ || pn)
|
|
287
287
|
return "";
|
|
288
288
|
{
|
|
289
|
-
var q =
|
|
289
|
+
var q = Jt.get(_);
|
|
290
290
|
if (q !== void 0)
|
|
291
291
|
return q;
|
|
292
292
|
}
|
|
@@ -308,29 +308,29 @@ function Yp() {
|
|
|
308
308
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
309
309
|
try {
|
|
310
310
|
Reflect.construct(de, []);
|
|
311
|
-
} catch (
|
|
312
|
-
ne =
|
|
311
|
+
} catch (Bt) {
|
|
312
|
+
ne = Bt;
|
|
313
313
|
}
|
|
314
314
|
Reflect.construct(_, [], de);
|
|
315
315
|
} else {
|
|
316
316
|
try {
|
|
317
317
|
de.call();
|
|
318
|
-
} catch (
|
|
319
|
-
ne =
|
|
318
|
+
} catch (Bt) {
|
|
319
|
+
ne = Bt;
|
|
320
320
|
}
|
|
321
321
|
_.call(de.prototype);
|
|
322
322
|
}
|
|
323
323
|
} else {
|
|
324
324
|
try {
|
|
325
325
|
throw Error();
|
|
326
|
-
} catch (
|
|
327
|
-
ne =
|
|
326
|
+
} catch (Bt) {
|
|
327
|
+
ne = Bt;
|
|
328
328
|
}
|
|
329
329
|
_();
|
|
330
330
|
}
|
|
331
|
-
} catch (
|
|
332
|
-
if (
|
|
333
|
-
for (var ae =
|
|
331
|
+
} catch (Bt) {
|
|
332
|
+
if (Bt && ne && typeof Bt.stack == "string") {
|
|
333
|
+
for (var ae = Bt.stack.split(`
|
|
334
334
|
`), rt = ne.stack.split(`
|
|
335
335
|
`), Pe = ae.length - 1, Be = rt.length - 1; Pe >= 1 && Be >= 0 && ae[Pe] !== rt[Be]; )
|
|
336
336
|
Be--;
|
|
@@ -341,7 +341,7 @@ function Yp() {
|
|
|
341
341
|
if (Pe--, Be--, Be < 0 || ae[Pe] !== rt[Be]) {
|
|
342
342
|
var bt = `
|
|
343
343
|
` + ae[Pe].replace(" at new ", " at ");
|
|
344
|
-
return _.displayName && bt.includes("<anonymous>") && (bt = bt.replace("<anonymous>", _.displayName)), typeof _ == "function" &&
|
|
344
|
+
return _.displayName && bt.includes("<anonymous>") && (bt = bt.replace("<anonymous>", _.displayName)), typeof _ == "function" && Jt.set(_, bt), bt;
|
|
345
345
|
}
|
|
346
346
|
while (Pe >= 1 && Be >= 0);
|
|
347
347
|
break;
|
|
@@ -350,8 +350,8 @@ function Yp() {
|
|
|
350
350
|
} finally {
|
|
351
351
|
pn = !1, Un.current = Ce, Ii(), Error.prepareStackTrace = pe;
|
|
352
352
|
}
|
|
353
|
-
var Rn = _ ? _.displayName || _.name : "", ds = Rn ?
|
|
354
|
-
return typeof _ == "function" &&
|
|
353
|
+
var Rn = _ ? _.displayName || _.name : "", ds = Rn ? Xt(Rn) : "";
|
|
354
|
+
return typeof _ == "function" && Jt.set(_, ds), ds;
|
|
355
355
|
}
|
|
356
356
|
function Xn(_, V, q) {
|
|
357
357
|
return An(_, !1);
|
|
@@ -360,29 +360,29 @@ function Yp() {
|
|
|
360
360
|
var V = _.prototype;
|
|
361
361
|
return !!(V && V.isReactComponent);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Zt(_, V, q) {
|
|
364
364
|
if (_ == null)
|
|
365
365
|
return "";
|
|
366
366
|
if (typeof _ == "function")
|
|
367
367
|
return An(_, Jn(_));
|
|
368
368
|
if (typeof _ == "string")
|
|
369
|
-
return
|
|
369
|
+
return Xt(_);
|
|
370
370
|
switch (_) {
|
|
371
371
|
case d:
|
|
372
|
-
return
|
|
372
|
+
return Xt("Suspense");
|
|
373
373
|
case p:
|
|
374
|
-
return
|
|
374
|
+
return Xt("SuspenseList");
|
|
375
375
|
}
|
|
376
376
|
if (typeof _ == "object")
|
|
377
377
|
switch (_.$$typeof) {
|
|
378
378
|
case c:
|
|
379
379
|
return Xn(_.render);
|
|
380
380
|
case h:
|
|
381
|
-
return
|
|
381
|
+
return Zt(_.type, V, q);
|
|
382
382
|
case f: {
|
|
383
383
|
var ne = _, pe = ne._payload, Ce = ne._init;
|
|
384
384
|
try {
|
|
385
|
-
return
|
|
385
|
+
return Zt(Ce(pe), V, q);
|
|
386
386
|
} catch {
|
|
387
387
|
}
|
|
388
388
|
}
|
|
@@ -392,7 +392,7 @@ function Yp() {
|
|
|
392
392
|
var Zn = Object.prototype.hasOwnProperty, Ja = {}, Za = I.ReactDebugCurrentFrame;
|
|
393
393
|
function Sr(_) {
|
|
394
394
|
if (_) {
|
|
395
|
-
var V = _._owner, q =
|
|
395
|
+
var V = _._owner, q = Zt(_.type, _._source, V ? V.type : null);
|
|
396
396
|
Za.setExtraStackFrame(q);
|
|
397
397
|
} else
|
|
398
398
|
Za.setExtraStackFrame(null);
|
|
@@ -541,7 +541,7 @@ function Yp() {
|
|
|
541
541
|
var $i = I.ReactCurrentOwner, is = I.ReactDebugCurrentFrame;
|
|
542
542
|
function En(_) {
|
|
543
543
|
if (_) {
|
|
544
|
-
var V = _._owner, q =
|
|
544
|
+
var V = _._owner, q = Zt(_.type, _._source, V ? V.type : null);
|
|
545
545
|
is.setExtraStackFrame(q);
|
|
546
546
|
} else
|
|
547
547
|
is.setExtraStackFrame(null);
|
|
@@ -855,7 +855,7 @@ const lt = {
|
|
|
855
855
|
headers: s,
|
|
856
856
|
signal: t
|
|
857
857
|
};
|
|
858
|
-
return ["POST", "PUT"].includes(e) && (l.data = o.string ? JSON.stringify(r) : r, l.data.authentication = this.getAuthentication(l.data)),
|
|
858
|
+
return ["POST", "PUT"].includes(e) && (l.data = o.string ? JSON.stringify(r) : r, l.data.authentication = this.getAuthentication(l.data)), tn(l).then((c) => c.data).catch((c) => Promise.reject(c));
|
|
859
859
|
};
|
|
860
860
|
},
|
|
861
861
|
makeQueryENV: null,
|
|
@@ -956,7 +956,7 @@ class ac {
|
|
|
956
956
|
return Promise.resolve(n);
|
|
957
957
|
}
|
|
958
958
|
getValueFromRoot(t) {
|
|
959
|
-
return t === null ?
|
|
959
|
+
return t === null ? Qt(this.rootRef.current) : ce(this.rootRef.current, [t]);
|
|
960
960
|
}
|
|
961
961
|
setItem(t, n) {
|
|
962
962
|
if (t === null)
|
|
@@ -973,7 +973,7 @@ class ac {
|
|
|
973
973
|
return Promise.resolve(this.getItem(t));
|
|
974
974
|
}
|
|
975
975
|
watchItem(t, n, r) {
|
|
976
|
-
return
|
|
976
|
+
return xt(() => this.getValueFromRoot(t), (o, a) => {
|
|
977
977
|
n(o, a);
|
|
978
978
|
}, {
|
|
979
979
|
requiresObservable: !0,
|
|
@@ -1124,7 +1124,7 @@ class pf {
|
|
|
1124
1124
|
this.symbol = Symbol(t);
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function qt(e) {
|
|
1128
1128
|
return new pf(e);
|
|
1129
1129
|
}
|
|
1130
1130
|
class oa {
|
|
@@ -1164,7 +1164,7 @@ class oa {
|
|
|
1164
1164
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
|
-
const cc = "10.18.
|
|
1167
|
+
const cc = "10.18.1", ff = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1168
1168
|
__proto__: null,
|
|
1169
1169
|
version: cc
|
|
1170
1170
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1354,7 +1354,7 @@ function Er(e, t) {
|
|
|
1354
1354
|
} = G(t);
|
|
1355
1355
|
return e[r];
|
|
1356
1356
|
}
|
|
1357
|
-
ye.use([
|
|
1357
|
+
ye.use([vt, ni, wt, _t, dt]);
|
|
1358
1358
|
function vf({
|
|
1359
1359
|
context: e
|
|
1360
1360
|
}) {
|
|
@@ -1442,7 +1442,7 @@ function gc() {
|
|
|
1442
1442
|
throw new Error("Please use ContentModelContextProvider");
|
|
1443
1443
|
return e;
|
|
1444
1444
|
}
|
|
1445
|
-
const _e = () => gc(),
|
|
1445
|
+
const _e = () => gc(), Ke = () => gc(), wf = {
|
|
1446
1446
|
inEditMode: !1
|
|
1447
1447
|
}, sa = R.createContext(wf), bc = R.createContext({
|
|
1448
1448
|
panel: null,
|
|
@@ -1458,7 +1458,7 @@ function xc() {
|
|
|
1458
1458
|
throw new Error("Please use PanelContextProvider");
|
|
1459
1459
|
return e;
|
|
1460
1460
|
}
|
|
1461
|
-
const Mn = () => xc(),
|
|
1461
|
+
const Mn = () => xc(), Vt = () => xc(), _f = {
|
|
1462
1462
|
fullScreenPanelID: "",
|
|
1463
1463
|
setFullScreenPanelID: k.noop
|
|
1464
1464
|
}, vc = R.createContext(_f);
|
|
@@ -1479,7 +1479,7 @@ const X = D(Se(({
|
|
|
1479
1479
|
}, l) => {
|
|
1480
1480
|
const {
|
|
1481
1481
|
panel: c
|
|
1482
|
-
} =
|
|
1482
|
+
} = Vt(), d = R.useMemo(() => {
|
|
1483
1483
|
const p = [...c.dataFieldOptions];
|
|
1484
1484
|
return o && p.unshift({
|
|
1485
1485
|
label: "unset",
|
|
@@ -1739,7 +1739,7 @@ function If({
|
|
|
1739
1739
|
] })
|
|
1740
1740
|
] });
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const Ct = R.forwardRef(If), Rt = {
|
|
1743
1743
|
enabled: !1,
|
|
1744
1744
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
1745
1745
|
`)
|
|
@@ -1847,7 +1847,7 @@ const $f = [{
|
|
|
1847
1847
|
ellipsis: "..."
|
|
1848
1848
|
}
|
|
1849
1849
|
};
|
|
1850
|
-
function
|
|
1850
|
+
function an({
|
|
1851
1851
|
overflow: e,
|
|
1852
1852
|
width: t
|
|
1853
1853
|
}) {
|
|
@@ -1868,7 +1868,7 @@ function on({
|
|
|
1868
1868
|
text-overflow: ${o};
|
|
1869
1869
|
`;
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function Ut(e) {
|
|
1872
1872
|
return {
|
|
1873
1873
|
width: e.width,
|
|
1874
1874
|
overflow: e.overflow,
|
|
@@ -1882,7 +1882,7 @@ const la = {
|
|
|
1882
1882
|
axisLabel: {
|
|
1883
1883
|
rotate: 0,
|
|
1884
1884
|
formatter: {
|
|
1885
|
-
...
|
|
1885
|
+
...Rt
|
|
1886
1886
|
},
|
|
1887
1887
|
overflow: Dt
|
|
1888
1888
|
}
|
|
@@ -2156,7 +2156,7 @@ const Wf = {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
});
|
|
2158
2158
|
};
|
|
2159
|
-
return /* @__PURE__ */ u(
|
|
2159
|
+
return /* @__PURE__ */ u(Ft, { sx: jf, children: [
|
|
2160
2160
|
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
2161
2161
|
/* @__PURE__ */ i("th", { children: "Set filter" }),
|
|
2162
2162
|
/* @__PURE__ */ i("th", { children: "with" })
|
|
@@ -2315,7 +2315,7 @@ class tm {
|
|
|
2315
2315
|
const r = bl(n).map((o) => ({
|
|
2316
2316
|
id: ce(o, "id"),
|
|
2317
2317
|
schemaRef: ce(o, "schemaRef"),
|
|
2318
|
-
config:
|
|
2318
|
+
config: Qt(ce(o, "data.config"))
|
|
2319
2319
|
}));
|
|
2320
2320
|
t(r);
|
|
2321
2321
|
}, {
|
|
@@ -2676,7 +2676,7 @@ const gm = D(({
|
|
|
2676
2676
|
data: t
|
|
2677
2677
|
} = Mn(), n = e.viz, {
|
|
2678
2678
|
vizManager: r
|
|
2679
|
-
} = Yt(
|
|
2679
|
+
} = Yt(Nt), o = e.json, a = Tt(() => r.getOrCreateInstance(o), [r, o]), s = Tt(() => new da(a, r.resolveComponent(n.type), ui), [a, n.type]);
|
|
2680
2680
|
return W(() => a.instanceData.watchItem(
|
|
2681
2681
|
null,
|
|
2682
2682
|
// avoid too many updates
|
|
@@ -2830,7 +2830,7 @@ const km = (e, t) => {
|
|
|
2830
2830
|
</tr>`), r = Sm(t);
|
|
2831
2831
|
return n.unshift(r.greater), n.push(r.less), `
|
|
2832
2832
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
2833
|
-
<div style="${
|
|
2833
|
+
<div style="${an(e.x_axis.axisLabel.overflow.in_tooltip)}">${t.name}</div>
|
|
2834
2834
|
</div>
|
|
2835
2835
|
<table style="width: auto">
|
|
2836
2836
|
<tbody>
|
|
@@ -2849,7 +2849,7 @@ const km = (e, t) => {
|
|
|
2849
2849
|
}
|
|
2850
2850
|
};
|
|
2851
2851
|
function Dm(e, t) {
|
|
2852
|
-
const n =
|
|
2852
|
+
const n = an(e.x_axis.axisLabel.overflow.in_tooltip), r = [`<tr>
|
|
2853
2853
|
<th style="text-align: right; padding: 0 1em;">Outlier</th>
|
|
2854
2854
|
<td style="text-align: left; padding: 0 1em;">${t[1]}</td>
|
|
2855
2855
|
</tr>
|
|
@@ -2992,7 +2992,7 @@ function Em({
|
|
|
2992
2992
|
}, n) {
|
|
2993
2993
|
const {
|
|
2994
2994
|
colorManager: r
|
|
2995
|
-
} = Yt(
|
|
2995
|
+
} = Yt(Nt), o = R.useMemo(() => r.getStaticColors().map((l) => ({
|
|
2996
2996
|
label: l.name,
|
|
2997
2997
|
group: l.category,
|
|
2998
2998
|
// todo: select color by reference instead of value, e.g. $category.name
|
|
@@ -3148,7 +3148,7 @@ R.forwardRef(function({
|
|
|
3148
3148
|
] }),
|
|
3149
3149
|
/* @__PURE__ */ i(hi, { label: "Aggregation", value: t.aggregation, onChange: (s) => a("aggregation", s) }),
|
|
3150
3150
|
/* @__PURE__ */ i(E, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
3151
|
-
/* @__PURE__ */ i(
|
|
3151
|
+
/* @__PURE__ */ i(Ct, { value: t.formatter, onChange: (s) => a("formatter", s) }),
|
|
3152
3152
|
r && /* @__PURE__ */ i(Sc, { value: t, onChange: n })
|
|
3153
3153
|
] });
|
|
3154
3154
|
});
|
|
@@ -3364,7 +3364,7 @@ function Um({
|
|
|
3364
3364
|
x_axis: r,
|
|
3365
3365
|
y_axis: o,
|
|
3366
3366
|
reference_lines: a
|
|
3367
|
-
} = e, s = wm(e, t), l =
|
|
3367
|
+
} = e, s = wm(e, t), l = Ut(r.axisLabel.overflow.on_axis), c = Cm(e);
|
|
3368
3368
|
return {
|
|
3369
3369
|
grid: Km(e),
|
|
3370
3370
|
dataset: s,
|
|
@@ -3411,7 +3411,7 @@ function Um({
|
|
|
3411
3411
|
series: [...c, ...Qm(a, n, t)]
|
|
3412
3412
|
};
|
|
3413
3413
|
}
|
|
3414
|
-
ye.use([
|
|
3414
|
+
ye.use([Kt, Ah, ri, vt, wt, _t, dt]);
|
|
3415
3415
|
function Xm({
|
|
3416
3416
|
context: e,
|
|
3417
3417
|
instance: t
|
|
@@ -3528,7 +3528,7 @@ const eg = ({
|
|
|
3528
3528
|
}) => /* @__PURE__ */ u(F, { sx: {
|
|
3529
3529
|
position: "relative"
|
|
3530
3530
|
}, children: [
|
|
3531
|
-
e && /* @__PURE__ */ i(
|
|
3531
|
+
e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
3532
3532
|
/* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
3533
3533
|
o && n(o);
|
|
3534
3534
|
}, theme: "vs-dark", options: {
|
|
@@ -3571,7 +3571,7 @@ const eg = ({
|
|
|
3571
3571
|
func_content: m
|
|
3572
3572
|
}));
|
|
3573
3573
|
}, f = () => {
|
|
3574
|
-
h(
|
|
3574
|
+
h(Rt.func_content);
|
|
3575
3575
|
};
|
|
3576
3576
|
return /* @__PURE__ */ u(Y, { children: [
|
|
3577
3577
|
/* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
@@ -3648,7 +3648,7 @@ const eg = ({
|
|
|
3648
3648
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
3649
3649
|
/* @__PURE__ */ i(y, { name: "y_axis.label_formatter", control: e, render: ({
|
|
3650
3650
|
field: n
|
|
3651
|
-
}) => /* @__PURE__ */ i(
|
|
3651
|
+
}) => /* @__PURE__ */ i(Ct, { ...n }) })
|
|
3652
3652
|
] })
|
|
3653
3653
|
] })), rg = ({
|
|
3654
3654
|
control: e,
|
|
@@ -3713,7 +3713,7 @@ const eg = ({
|
|
|
3713
3713
|
}, children: [
|
|
3714
3714
|
/* @__PURE__ */ u(g.List, { children: [
|
|
3715
3715
|
s.map((h, f) => /* @__PURE__ */ i(g.Tab, { value: h.id, children: h.name ? h.name : f }, h.id)),
|
|
3716
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
3716
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
3717
3717
|
] }),
|
|
3718
3718
|
s.map((h, f) => /* @__PURE__ */ i(g.Panel, { value: h.id, children: /* @__PURE__ */ i(rg, { control: e, index: f, remove: o }, h.id) }, h.id))
|
|
3719
3719
|
] })
|
|
@@ -3838,7 +3838,7 @@ function ug(e) {
|
|
|
3838
3838
|
const t = {
|
|
3839
3839
|
rotate: 0,
|
|
3840
3840
|
formatter: {
|
|
3841
|
-
...
|
|
3841
|
+
...Rt
|
|
3842
3842
|
}
|
|
3843
3843
|
}, {
|
|
3844
3844
|
axisLabel: n = t,
|
|
@@ -4085,7 +4085,7 @@ const ha = {
|
|
|
4085
4085
|
const n = zt({
|
|
4086
4086
|
vizManager: e.vizManager,
|
|
4087
4087
|
instance: t
|
|
4088
|
-
}), r = Mt(n.triggerManager, Tc.id), o =
|
|
4088
|
+
}), r = Mt(n.triggerManager, Tc.id), o = Ke(), {
|
|
4089
4089
|
value: a
|
|
4090
4090
|
} = J(e.instanceData, "config"), s = z(() => $e({}, a, ha), [a]), {
|
|
4091
4091
|
content: l,
|
|
@@ -4207,7 +4207,7 @@ function zg({
|
|
|
4207
4207
|
field: f
|
|
4208
4208
|
}) => /* @__PURE__ */ i($, { label: "Content Template", description: "Filter values & context entries are supported", ...f, required: !0 }) }),
|
|
4209
4209
|
/* @__PURE__ */ i(E, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
4210
|
-
/* @__PURE__ */ u(
|
|
4210
|
+
/* @__PURE__ */ u(rn, { cols: 2, children: [
|
|
4211
4211
|
/* @__PURE__ */ i(
|
|
4212
4212
|
y,
|
|
4213
4213
|
{
|
|
@@ -4222,7 +4222,7 @@ function zg({
|
|
|
4222
4222
|
field: f
|
|
4223
4223
|
}) => /* @__PURE__ */ i(Sg, { label: "Theme", ...f }) })
|
|
4224
4224
|
] }),
|
|
4225
|
-
/* @__PURE__ */ u(
|
|
4225
|
+
/* @__PURE__ */ u(rn, { cols: 2, children: [
|
|
4226
4226
|
/* @__PURE__ */ i(y, { control: a, name: "size", render: ({
|
|
4227
4227
|
field: f
|
|
4228
4228
|
}) => /* @__PURE__ */ i(Tg, { label: "Size", ...f }) }),
|
|
@@ -4230,7 +4230,7 @@ function zg({
|
|
|
4230
4230
|
field: f
|
|
4231
4231
|
}) => /* @__PURE__ */ i(ve, { label: "Compact", checked: f.value, onChange: (m) => f.onChange(m.currentTarget.checked), mt: 26 }) })
|
|
4232
4232
|
] }),
|
|
4233
|
-
/* @__PURE__ */ u(
|
|
4233
|
+
/* @__PURE__ */ u(rn, { cols: 2, children: [
|
|
4234
4234
|
/* @__PURE__ */ i(
|
|
4235
4235
|
y,
|
|
4236
4236
|
{
|
|
@@ -4352,7 +4352,7 @@ const Kn = {
|
|
|
4352
4352
|
axisLabel: {
|
|
4353
4353
|
rotate: 0,
|
|
4354
4354
|
formatter: {
|
|
4355
|
-
...
|
|
4355
|
+
...Rt
|
|
4356
4356
|
},
|
|
4357
4357
|
overflow: Dt
|
|
4358
4358
|
}
|
|
@@ -4445,13 +4445,13 @@ function Pg(e) {
|
|
|
4445
4445
|
function gi(e, t) {
|
|
4446
4446
|
switch (e.config.method) {
|
|
4447
4447
|
case "linear":
|
|
4448
|
-
return [...
|
|
4448
|
+
return [...nn.regressionLinear()(t)];
|
|
4449
4449
|
case "exponential":
|
|
4450
|
-
return [...
|
|
4450
|
+
return [...nn.regressionExp()(t)];
|
|
4451
4451
|
case "logarithmic":
|
|
4452
|
-
return [...
|
|
4452
|
+
return [...nn.regressionLog()(t)];
|
|
4453
4453
|
case "polynomial":
|
|
4454
|
-
return [...
|
|
4454
|
+
return [...nn.regressionPoly().order(e.config.order)(t)];
|
|
4455
4455
|
default:
|
|
4456
4456
|
return [];
|
|
4457
4457
|
}
|
|
@@ -4746,7 +4746,7 @@ function Xg(e, t, n) {
|
|
|
4746
4746
|
})}</td>
|
|
4747
4747
|
</tr>
|
|
4748
4748
|
`;
|
|
4749
|
-
}), l =
|
|
4749
|
+
}), l = an(e.x_axis.axisLabel.overflow.in_tooltip), c = Ug(a, e);
|
|
4750
4750
|
return `
|
|
4751
4751
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
4752
4752
|
<div style="${l}">${c}</div>
|
|
@@ -4789,7 +4789,7 @@ function Zg(e, t) {
|
|
|
4789
4789
|
const {
|
|
4790
4790
|
overflow: n,
|
|
4791
4791
|
...r
|
|
4792
|
-
} = e.x_axis.axisLabel, o =
|
|
4792
|
+
} = e.x_axis.axisLabel, o = Ut(n.on_axis);
|
|
4793
4793
|
return [{
|
|
4794
4794
|
data: t,
|
|
4795
4795
|
name: e.x_axis_name ?? "",
|
|
@@ -4882,7 +4882,7 @@ function ks(e) {
|
|
|
4882
4882
|
series: n
|
|
4883
4883
|
});
|
|
4884
4884
|
}
|
|
4885
|
-
ye.use([
|
|
4885
|
+
ye.use([Kt, jn, Gn, oi, vt, wt, _t, dt, ri, Uo]);
|
|
4886
4886
|
function Ts(e) {
|
|
4887
4887
|
return e.trim().length > 0;
|
|
4888
4888
|
}
|
|
@@ -5101,7 +5101,7 @@ function lb({
|
|
|
5101
5101
|
}, children: [
|
|
5102
5102
|
/* @__PURE__ */ u(g.List, { children: [
|
|
5103
5103
|
l.map((p, h) => /* @__PURE__ */ i(g.Tab, { value: h.toString(), children: h + 1 }, h)),
|
|
5104
|
-
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(
|
|
5104
|
+
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
5105
5105
|
] }),
|
|
5106
5106
|
l.map((p, h) => /* @__PURE__ */ i(g.Panel, { value: h.toString(), children: /* @__PURE__ */ i(sb, { control: e, index: h, remove: a, variableOptions: d }) }, h))
|
|
5107
5107
|
] });
|
|
@@ -5278,7 +5278,7 @@ function hb({
|
|
|
5278
5278
|
}, children: [
|
|
5279
5279
|
/* @__PURE__ */ u(g.List, { children: [
|
|
5280
5280
|
l.map((f, m) => /* @__PURE__ */ i(g.Tab, { value: m.toString(), children: m + 1 }, m)),
|
|
5281
|
-
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(
|
|
5281
|
+
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
5282
5282
|
] }),
|
|
5283
5283
|
l.map((f, m) => /* @__PURE__ */ i(g.Panel, { value: m.toString(), children: /* @__PURE__ */ i(ub, { control: e, index: m, remove: a, watch: t, variableOptions: d, yAxisOptions: h }) }, m))
|
|
5284
5284
|
] });
|
|
@@ -5468,7 +5468,7 @@ function gb({
|
|
|
5468
5468
|
}, children: [
|
|
5469
5469
|
/* @__PURE__ */ u(g.List, { children: [
|
|
5470
5470
|
s.map((p, h) => /* @__PURE__ */ i(g.Tab, { value: h.toString(), children: h + 1 }, h)),
|
|
5471
|
-
/* @__PURE__ */ i(g.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ i(
|
|
5471
|
+
/* @__PURE__ */ i(g.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
5472
5472
|
] }),
|
|
5473
5473
|
s.map((p, h) => /* @__PURE__ */ i(g.Panel, { value: h.toString(), children: /* @__PURE__ */ i(mb, { regressionItem: p, control: e, index: h, remove: o, yAxisOptions: c }, h) }, h))
|
|
5474
5474
|
] });
|
|
@@ -5621,7 +5621,7 @@ const xb = ({
|
|
|
5621
5621
|
...ya[a]
|
|
5622
5622
|
});
|
|
5623
5623
|
};
|
|
5624
|
-
return /* @__PURE__ */ u(
|
|
5624
|
+
return /* @__PURE__ */ u(rn, { cols: 2, children: [
|
|
5625
5625
|
/* @__PURE__ */ i(P, { ref: r, label: e, data: Cb, value: t.type, onChange: o, sx: {
|
|
5626
5626
|
flexGrow: 1
|
|
5627
5627
|
} }),
|
|
@@ -5922,7 +5922,7 @@ function zb({
|
|
|
5922
5922
|
}, children: [
|
|
5923
5923
|
/* @__PURE__ */ u(g.List, { children: [
|
|
5924
5924
|
s.map((p, h) => /* @__PURE__ */ i(g.Tab, { value: h.toString(), children: h + 1 }, p.id)),
|
|
5925
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
5925
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
5926
5926
|
] }),
|
|
5927
5927
|
s.map((p, h) => /* @__PURE__ */ i(g.Panel, { value: h.toString(), children: /* @__PURE__ */ i(Mb, { control: e, index: h, remove: o, seriesItem: p, yAxisOptions: d }, p.id) }, p.id))
|
|
5928
5928
|
] });
|
|
@@ -6074,7 +6074,7 @@ function Fb({
|
|
|
6074
6074
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
6075
6075
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
6076
6076
|
field: r
|
|
6077
|
-
}) => /* @__PURE__ */ i(
|
|
6077
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) })
|
|
6078
6078
|
] }),
|
|
6079
6079
|
/* @__PURE__ */ u(S, { children: [
|
|
6080
6080
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -6128,7 +6128,7 @@ function Pb({
|
|
|
6128
6128
|
}, children: [
|
|
6129
6129
|
/* @__PURE__ */ u(g.List, { children: [
|
|
6130
6130
|
s.map((c, d) => /* @__PURE__ */ i(g.Tab, { value: d.toString(), children: d + 1 }, d)),
|
|
6131
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
6131
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
6132
6132
|
] }),
|
|
6133
6133
|
s.map((c, d) => /* @__PURE__ */ i(g.Panel, { value: d.toString(), children: /* @__PURE__ */ i(Fb, { control: e, index: d, remove: o }) }, d))
|
|
6134
6134
|
] });
|
|
@@ -6202,7 +6202,7 @@ function Nb(e) {
|
|
|
6202
6202
|
function Bb(e) {
|
|
6203
6203
|
const {
|
|
6204
6204
|
rotate: t,
|
|
6205
|
-
formatter: n =
|
|
6205
|
+
formatter: n = Rt
|
|
6206
6206
|
} = e.x_axis.axisLabel;
|
|
6207
6207
|
return {
|
|
6208
6208
|
...e,
|
|
@@ -6648,7 +6648,7 @@ function ly(e, t) {
|
|
|
6648
6648
|
const h = G(r), f = G(o), m = t[h.queryID].map((x) => ({
|
|
6649
6649
|
name: x[h.columnKey],
|
|
6650
6650
|
value: x[f.columnKey]
|
|
6651
|
-
})), w =
|
|
6651
|
+
})), w = Ut(a.overflow.on_axis);
|
|
6652
6652
|
return {
|
|
6653
6653
|
type: "funnel",
|
|
6654
6654
|
...sy(n),
|
|
@@ -6767,7 +6767,7 @@ function py(e) {
|
|
|
6767
6767
|
const xa = {
|
|
6768
6768
|
series: [py("Funnel")]
|
|
6769
6769
|
};
|
|
6770
|
-
ye.use([Eh,
|
|
6770
|
+
ye.use([Eh, Kt, vt, wt, _t, dt]);
|
|
6771
6771
|
function fy({
|
|
6772
6772
|
conf: e,
|
|
6773
6773
|
data: t,
|
|
@@ -7027,7 +7027,7 @@ const gy = [{
|
|
|
7027
7027
|
}, children: [
|
|
7028
7028
|
/* @__PURE__ */ u(g.List, { children: [
|
|
7029
7029
|
s.map((p, h) => /* @__PURE__ */ i(g.Tab, { value: p.id, children: p.name }, p.id)),
|
|
7030
|
-
/* @__PURE__ */ i(g.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ i(Ve, { label: "TODO", children: /* @__PURE__ */ i(kn, { children: /* @__PURE__ */ i(
|
|
7030
|
+
/* @__PURE__ */ i(g.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ i(Ve, { label: "TODO", children: /* @__PURE__ */ i(kn, { children: /* @__PURE__ */ i(Pt, { size: 18, color: "#228be6" }) }) }) })
|
|
7031
7031
|
] }),
|
|
7032
7032
|
s.map((p, h) => /* @__PURE__ */ i(g.Panel, { value: p.id, children: /* @__PURE__ */ i(wy, { item: p, control: e, index: h, remove: o }) }, p.id))
|
|
7033
7033
|
] });
|
|
@@ -7245,14 +7245,14 @@ function Ay({
|
|
|
7245
7245
|
value: t.x_axis(l, s),
|
|
7246
7246
|
style: {
|
|
7247
7247
|
label: "",
|
|
7248
|
-
value:
|
|
7248
|
+
value: an(e.x_axis.axisLabel.overflow.in_tooltip)
|
|
7249
7249
|
}
|
|
7250
7250
|
}, h = {
|
|
7251
7251
|
label: e.y_axis.name ? e.y_axis.name : "Y Axis",
|
|
7252
7252
|
value: t.y_axis(c, s),
|
|
7253
7253
|
style: {
|
|
7254
7254
|
label: "",
|
|
7255
|
-
value:
|
|
7255
|
+
value: an(e.y_axis.axisLabel.overflow.in_tooltip)
|
|
7256
7256
|
}
|
|
7257
7257
|
}, f = {
|
|
7258
7258
|
label: e.heat_block.name,
|
|
@@ -7413,7 +7413,7 @@ const Ry = ({
|
|
|
7413
7413
|
...Mc[a]
|
|
7414
7414
|
});
|
|
7415
7415
|
};
|
|
7416
|
-
return /* @__PURE__ */ u(
|
|
7416
|
+
return /* @__PURE__ */ u(rn, { cols: 2, children: [
|
|
7417
7417
|
/* @__PURE__ */ i(P, { ref: r, label: e, data: Vy, value: t.type, onChange: o, sx: {
|
|
7418
7418
|
flexGrow: 1
|
|
7419
7419
|
} }),
|
|
@@ -7460,7 +7460,7 @@ function By(e, t, n) {
|
|
|
7460
7460
|
const r = G(e.x_axis.data_key), o = k.uniq(t[r.queryID].map((c) => c[r.columnKey])), {
|
|
7461
7461
|
overflow: a,
|
|
7462
7462
|
rotate: s
|
|
7463
|
-
} = e.x_axis.axisLabel, l =
|
|
7463
|
+
} = e.x_axis.axisLabel, l = Ut(a.on_axis);
|
|
7464
7464
|
return {
|
|
7465
7465
|
id: "main-x-axis",
|
|
7466
7466
|
type: "category",
|
|
@@ -7496,7 +7496,7 @@ function qy(e, t, n) {
|
|
|
7496
7496
|
} = e.y_axis, c = k.uniq(t[r.queryID].map((f) => f[o.columnKey])), {
|
|
7497
7497
|
overflow: d,
|
|
7498
7498
|
rotate: p
|
|
7499
|
-
} = e.y_axis.axisLabel, h =
|
|
7499
|
+
} = e.y_axis.axisLabel, h = Ut(d.on_axis);
|
|
7500
7500
|
return {
|
|
7501
7501
|
...l,
|
|
7502
7502
|
type: "category",
|
|
@@ -7591,7 +7591,7 @@ const zc = {
|
|
|
7591
7591
|
rotate: 0,
|
|
7592
7592
|
overflow: Dt,
|
|
7593
7593
|
formatter: {
|
|
7594
|
-
...
|
|
7594
|
+
...Rt
|
|
7595
7595
|
}
|
|
7596
7596
|
}
|
|
7597
7597
|
},
|
|
@@ -7603,7 +7603,7 @@ const zc = {
|
|
|
7603
7603
|
rotate: 0,
|
|
7604
7604
|
overflow: Dt,
|
|
7605
7605
|
formatter: {
|
|
7606
|
-
...
|
|
7606
|
+
...Rt
|
|
7607
7607
|
}
|
|
7608
7608
|
}
|
|
7609
7609
|
},
|
|
@@ -7628,7 +7628,7 @@ const zc = {
|
|
|
7628
7628
|
metrics: []
|
|
7629
7629
|
}
|
|
7630
7630
|
};
|
|
7631
|
-
ye.use([
|
|
7631
|
+
ye.use([Kt, Zo, vt, wt, _t, ni, dt]);
|
|
7632
7632
|
function Hy({
|
|
7633
7633
|
conf: e,
|
|
7634
7634
|
data: t,
|
|
@@ -7705,7 +7705,7 @@ function Ky({
|
|
|
7705
7705
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
7706
7706
|
/* @__PURE__ */ i(y, { name: "heat_block.value_formatter", control: e, render: ({
|
|
7707
7707
|
field: r
|
|
7708
|
-
}) => /* @__PURE__ */ i(
|
|
7708
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) }),
|
|
7709
7709
|
/* @__PURE__ */ i(E, { mb: -5, variant: "dashed", label: "Label", labelPosition: "center" }),
|
|
7710
7710
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
7711
7711
|
/* @__PURE__ */ i(y, { name: "heat_block.label.show", control: e, render: ({
|
|
@@ -7786,7 +7786,7 @@ const Uy = ({
|
|
|
7786
7786
|
}, children: [
|
|
7787
7787
|
/* @__PURE__ */ u(g.List, { children: [
|
|
7788
7788
|
s.map((h, f) => /* @__PURE__ */ i(g.Tab, { value: h.id, children: h.name ? h.name : f }, h.id)),
|
|
7789
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
7789
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
7790
7790
|
] }),
|
|
7791
7791
|
s.map((h, f) => /* @__PURE__ */ i(g.Panel, { value: h.id, children: /* @__PURE__ */ i(Uy, { control: e, index: f, remove: o }, h.id) }, h.id))
|
|
7792
7792
|
] })
|
|
@@ -7805,7 +7805,7 @@ const Zy = ({
|
|
|
7805
7805
|
}) => /* @__PURE__ */ u(F, { sx: {
|
|
7806
7806
|
position: "relative"
|
|
7807
7807
|
}, children: [
|
|
7808
|
-
e && /* @__PURE__ */ i(
|
|
7808
|
+
e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
7809
7809
|
/* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
7810
7810
|
o && n(o);
|
|
7811
7811
|
}, theme: "vs-dark", options: {
|
|
@@ -8190,7 +8190,7 @@ const Ac = {
|
|
|
8190
8190
|
axisLabel: {
|
|
8191
8191
|
rotate: 0,
|
|
8192
8192
|
formatter: {
|
|
8193
|
-
...
|
|
8193
|
+
...Rt
|
|
8194
8194
|
},
|
|
8195
8195
|
overflow: Dt
|
|
8196
8196
|
}
|
|
@@ -8349,7 +8349,7 @@ const bx = (e, t) => (n) => {
|
|
|
8349
8349
|
<td style="text-align: left; padding: 0 1em;">${f(h)}</td>
|
|
8350
8350
|
</tr>
|
|
8351
8351
|
`;
|
|
8352
|
-
}), a =
|
|
8352
|
+
}), a = an(e.x_axis.axisLabel.overflow.in_tooltip), s = r[0].name;
|
|
8353
8353
|
return `
|
|
8354
8354
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
8355
8355
|
<div style="${a}">${s}</div>
|
|
@@ -8371,7 +8371,7 @@ function xx(e) {
|
|
|
8371
8371
|
const {
|
|
8372
8372
|
name: t,
|
|
8373
8373
|
axisLabel: n
|
|
8374
|
-
} = e.x_axis, r =
|
|
8374
|
+
} = e.x_axis, r = Ut(n.overflow.on_axis);
|
|
8375
8375
|
return [{
|
|
8376
8376
|
type: "category",
|
|
8377
8377
|
name: t,
|
|
@@ -8452,7 +8452,7 @@ function wx(e, t, n) {
|
|
|
8452
8452
|
}
|
|
8453
8453
|
};
|
|
8454
8454
|
}
|
|
8455
|
-
ye.use([jn, Gn,
|
|
8455
|
+
ye.use([jn, Gn, Kt, vt, wt, _t, dt]);
|
|
8456
8456
|
function _x({
|
|
8457
8457
|
context: e,
|
|
8458
8458
|
instance: t
|
|
@@ -8523,7 +8523,7 @@ function Sx({
|
|
|
8523
8523
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
8524
8524
|
/* @__PURE__ */ i(y, { name: "bar.label_formatter", control: e, render: ({
|
|
8525
8525
|
field: n
|
|
8526
|
-
}) => /* @__PURE__ */ i(
|
|
8526
|
+
}) => /* @__PURE__ */ i(Ct, { ...n }) })
|
|
8527
8527
|
] })
|
|
8528
8528
|
] });
|
|
8529
8529
|
}
|
|
@@ -8748,7 +8748,7 @@ function Rx(e) {
|
|
|
8748
8748
|
const t = k.defaultsDeep({}, e.x_axis.axisLabel, {
|
|
8749
8749
|
rotate: 0,
|
|
8750
8750
|
formatter: {
|
|
8751
|
-
...
|
|
8751
|
+
...Rt
|
|
8752
8752
|
}
|
|
8753
8753
|
});
|
|
8754
8754
|
return {
|
|
@@ -9476,7 +9476,7 @@ function uv(e, t) {
|
|
|
9476
9476
|
};
|
|
9477
9477
|
return k.merge({}, cv, s);
|
|
9478
9478
|
}
|
|
9479
|
-
ye.use([Oh,
|
|
9479
|
+
ye.use([Oh, vt, wt, _t, dt]);
|
|
9480
9480
|
function hv({
|
|
9481
9481
|
conf: e,
|
|
9482
9482
|
data: t,
|
|
@@ -9603,7 +9603,7 @@ function mv({
|
|
|
9603
9603
|
}, children: [
|
|
9604
9604
|
/* @__PURE__ */ u(g.List, { children: [
|
|
9605
9605
|
s.map((f, m) => /* @__PURE__ */ i(g.Tab, { value: f.id, children: m + 1 }, f.id)),
|
|
9606
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
9606
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Pt, { size: 18, color: "#228be6" }) })
|
|
9607
9607
|
] }),
|
|
9608
9608
|
s.map((f, m) => /* @__PURE__ */ i(g.Panel, { value: f.id, children: /* @__PURE__ */ i(fv, { control: e, index: m, remove: h }) }, m))
|
|
9609
9609
|
] })
|
|
@@ -9646,7 +9646,7 @@ function gv({
|
|
|
9646
9646
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Value Formatter", labelPosition: "center" }),
|
|
9647
9647
|
/* @__PURE__ */ i(y, { name: `dimensions.${t}.formatter`, control: e, render: ({
|
|
9648
9648
|
field: r
|
|
9649
|
-
}) => /* @__PURE__ */ i(
|
|
9649
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) })
|
|
9650
9650
|
] }),
|
|
9651
9651
|
/* @__PURE__ */ i(M, { mt: 20, leftIcon: /* @__PURE__ */ i(ge, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this Metric" })
|
|
9652
9652
|
] }, t);
|
|
@@ -9694,7 +9694,7 @@ function bv({
|
|
|
9694
9694
|
}, children: [
|
|
9695
9695
|
/* @__PURE__ */ u(g.List, { children: [
|
|
9696
9696
|
s.map((f, m) => /* @__PURE__ */ i(g.Tab, { value: f.id, children: f.name ? f.name : m + 1 }, m)),
|
|
9697
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
9697
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Pt, { size: 18, color: "#228be6" }) })
|
|
9698
9698
|
] }),
|
|
9699
9699
|
s.map((f, m) => /* @__PURE__ */ i(g.Panel, { value: f.id, children: /* @__PURE__ */ i(gv, { control: e, index: m, remove: h }) }, m))
|
|
9700
9700
|
] }) });
|
|
@@ -10040,7 +10040,7 @@ function Lv(e) {
|
|
|
10040
10040
|
format: n,
|
|
10041
10041
|
formatter: r,
|
|
10042
10042
|
...o
|
|
10043
|
-
} = e.x_axis.axisLabel, a =
|
|
10043
|
+
} = e.x_axis.axisLabel, a = Ut(t.on_axis);
|
|
10044
10044
|
return {
|
|
10045
10045
|
type: "value",
|
|
10046
10046
|
name: e.x_axis.name ?? "",
|
|
@@ -10121,7 +10121,7 @@ function Rv(e, t, n, r) {
|
|
|
10121
10121
|
const {
|
|
10122
10122
|
x_axis: o,
|
|
10123
10123
|
y_axis: a
|
|
10124
|
-
} = r, s =
|
|
10124
|
+
} = r, s = nn.regressionLinear()(n), {
|
|
10125
10125
|
a: l,
|
|
10126
10126
|
b: c,
|
|
10127
10127
|
rSquared: d
|
|
@@ -10155,7 +10155,7 @@ function Ov(e, t, n, r) {
|
|
|
10155
10155
|
a: s,
|
|
10156
10156
|
b: l,
|
|
10157
10157
|
rSquared: c
|
|
10158
|
-
} =
|
|
10158
|
+
} = nn.regressionExp()(n);
|
|
10159
10159
|
return {
|
|
10160
10160
|
name: e,
|
|
10161
10161
|
expression: /* @__PURE__ */ u(v, { position: "center", noWrap: !0, spacing: 10, children: [
|
|
@@ -10183,7 +10183,7 @@ function Fv(e, t, n, r) {
|
|
|
10183
10183
|
a: s,
|
|
10184
10184
|
b: l,
|
|
10185
10185
|
rSquared: c
|
|
10186
|
-
} =
|
|
10186
|
+
} = nn.regressionLog()(n);
|
|
10187
10187
|
return {
|
|
10188
10188
|
name: e,
|
|
10189
10189
|
expression: /* @__PURE__ */ u(v, { position: "center", noWrap: !0, spacing: 10, children: [
|
|
@@ -10208,7 +10208,7 @@ function Pv(e, t, n, r) {
|
|
|
10208
10208
|
x_axis: o,
|
|
10209
10209
|
y_axis: a,
|
|
10210
10210
|
regression: s
|
|
10211
|
-
} = r, l =
|
|
10211
|
+
} = r, l = nn.regressionPoly().order(s.transform.config.order)(n), {
|
|
10212
10212
|
rSquared: c
|
|
10213
10213
|
} = l;
|
|
10214
10214
|
return console.log(l), {
|
|
@@ -10260,7 +10260,7 @@ function Ms({
|
|
|
10260
10260
|
rSquared: n,
|
|
10261
10261
|
adjustedRSquared: r
|
|
10262
10262
|
} = e;
|
|
10263
|
-
return t ? /* @__PURE__ */ i(
|
|
10263
|
+
return t ? /* @__PURE__ */ i(Ft, { fontSize: 14, sx: Nv, children: /* @__PURE__ */ u("tbody", { children: [
|
|
10264
10264
|
/* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { colSpan: 2, children: /* @__PURE__ */ i(C, { align: "center", children: t }) }) }),
|
|
10265
10265
|
/* @__PURE__ */ u("tr", { children: [
|
|
10266
10266
|
/* @__PURE__ */ i("td", { children: "R-Sq" }),
|
|
@@ -10354,7 +10354,7 @@ const xi = {
|
|
|
10354
10354
|
y_axis_data_key: "value"
|
|
10355
10355
|
}
|
|
10356
10356
|
};
|
|
10357
|
-
ye.use([
|
|
10357
|
+
ye.use([Kt, oi, vt, wt, _t, dt]);
|
|
10358
10358
|
function jv({
|
|
10359
10359
|
context: e
|
|
10360
10360
|
}) {
|
|
@@ -10457,7 +10457,7 @@ const Hv = ({
|
|
|
10457
10457
|
}) => /* @__PURE__ */ u(F, { sx: {
|
|
10458
10458
|
position: "relative"
|
|
10459
10459
|
}, children: [
|
|
10460
|
-
e && /* @__PURE__ */ i(
|
|
10460
|
+
e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
10461
10461
|
/* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
10462
10462
|
o && n(o);
|
|
10463
10463
|
}, theme: "vs-dark", options: {
|
|
@@ -10540,7 +10540,7 @@ function Qv({
|
|
|
10540
10540
|
/* @__PURE__ */ i(E, { variant: "dashed", labelPosition: "center", label: "格式化数据" }),
|
|
10541
10541
|
/* @__PURE__ */ i(S, { children: /* @__PURE__ */ i(y, { name: "x_axis.axisLabel.format", control: e, render: ({
|
|
10542
10542
|
field: n
|
|
10543
|
-
}) => /* @__PURE__ */ i(
|
|
10543
|
+
}) => /* @__PURE__ */ i(Ct, { ...n }) }) }),
|
|
10544
10544
|
/* @__PURE__ */ i(E, { variant: "dashed", labelPosition: "center", label: "标签文案样式" }),
|
|
10545
10545
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
10546
10546
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
@@ -12444,7 +12444,7 @@ gr.prototype = Object.create(Error.prototype);
|
|
|
12444
12444
|
gr.prototype.constructor = gr;
|
|
12445
12445
|
gr.prototype.name = "TransformError";
|
|
12446
12446
|
const Bi = /* @__PURE__ */ Object.create(null);
|
|
12447
|
-
class
|
|
12447
|
+
class Me {
|
|
12448
12448
|
/**
|
|
12449
12449
|
Initialize a selection with the head and anchor and ranges. If no
|
|
12450
12450
|
ranges are given, constructs a single range across `$anchor` and
|
|
@@ -12608,7 +12608,7 @@ class Ie {
|
|
|
12608
12608
|
return Ye.between(this.$anchor, this.$head).getBookmark();
|
|
12609
12609
|
}
|
|
12610
12610
|
}
|
|
12611
|
-
|
|
12611
|
+
Me.prototype.visible = !0;
|
|
12612
12612
|
class p0 {
|
|
12613
12613
|
/**
|
|
12614
12614
|
Create a range.
|
|
@@ -12621,7 +12621,7 @@ let Rs = !1;
|
|
|
12621
12621
|
function Os(e) {
|
|
12622
12622
|
!Rs && !e.parent.inlineContent && (Rs = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
|
|
12623
12623
|
}
|
|
12624
|
-
class Ye extends
|
|
12624
|
+
class Ye extends Me {
|
|
12625
12625
|
/**
|
|
12626
12626
|
Construct a text selection between the given points.
|
|
12627
12627
|
*/
|
|
@@ -12638,7 +12638,7 @@ class Ye extends Ie {
|
|
|
12638
12638
|
map(t, n) {
|
|
12639
12639
|
let r = t.resolve(n.map(this.head));
|
|
12640
12640
|
if (!r.parent.inlineContent)
|
|
12641
|
-
return
|
|
12641
|
+
return Me.near(r);
|
|
12642
12642
|
let o = t.resolve(n.map(this.anchor));
|
|
12643
12643
|
return new Ye(o.parent.inlineContent ? o : r, r);
|
|
12644
12644
|
}
|
|
@@ -12683,16 +12683,16 @@ class Ye extends Ie {
|
|
|
12683
12683
|
static between(t, n, r) {
|
|
12684
12684
|
let o = t.pos - n.pos;
|
|
12685
12685
|
if ((!r || o) && (r = o >= 0 ? 1 : -1), !n.parent.inlineContent) {
|
|
12686
|
-
let a =
|
|
12686
|
+
let a = Me.findFrom(n, r, !0) || Me.findFrom(n, -r, !0);
|
|
12687
12687
|
if (a)
|
|
12688
12688
|
n = a.$head;
|
|
12689
12689
|
else
|
|
12690
|
-
return
|
|
12690
|
+
return Me.near(n, r);
|
|
12691
12691
|
}
|
|
12692
|
-
return t.parent.inlineContent || (o == 0 ? t = n : (t = (
|
|
12692
|
+
return t.parent.inlineContent || (o == 0 ? t = n : (t = (Me.findFrom(t, -r, !0) || Me.findFrom(t, r, !0)).$anchor, t.pos < n.pos != o < 0 && (t = n))), new Ye(t, n);
|
|
12693
12693
|
}
|
|
12694
12694
|
}
|
|
12695
|
-
|
|
12695
|
+
Me.jsonID("text", Ye);
|
|
12696
12696
|
class wi {
|
|
12697
12697
|
constructor(t, n) {
|
|
12698
12698
|
this.anchor = t, this.head = n;
|
|
@@ -12704,7 +12704,7 @@ class wi {
|
|
|
12704
12704
|
return Ye.between(t.resolve(this.anchor), t.resolve(this.head));
|
|
12705
12705
|
}
|
|
12706
12706
|
}
|
|
12707
|
-
class mt extends
|
|
12707
|
+
class mt extends Me {
|
|
12708
12708
|
/**
|
|
12709
12709
|
Create a node selection. Does not verify the validity of its
|
|
12710
12710
|
argument.
|
|
@@ -12715,7 +12715,7 @@ class mt extends Ie {
|
|
|
12715
12715
|
}
|
|
12716
12716
|
map(t, n) {
|
|
12717
12717
|
let { deleted: r, pos: o } = n.mapResult(this.anchor), a = t.resolve(o);
|
|
12718
|
-
return r ?
|
|
12718
|
+
return r ? Me.near(a) : new mt(a);
|
|
12719
12719
|
}
|
|
12720
12720
|
content() {
|
|
12721
12721
|
return new xe(fe.from(this.node), 0, 0);
|
|
@@ -12752,7 +12752,7 @@ class mt extends Ie {
|
|
|
12752
12752
|
}
|
|
12753
12753
|
}
|
|
12754
12754
|
mt.prototype.visible = !1;
|
|
12755
|
-
|
|
12755
|
+
Me.jsonID("node", mt);
|
|
12756
12756
|
class Da {
|
|
12757
12757
|
constructor(t) {
|
|
12758
12758
|
this.anchor = t;
|
|
@@ -12763,10 +12763,10 @@ class Da {
|
|
|
12763
12763
|
}
|
|
12764
12764
|
resolve(t) {
|
|
12765
12765
|
let n = t.resolve(this.anchor), r = n.nodeAfter;
|
|
12766
|
-
return r && mt.isSelectable(r) ? new mt(n) :
|
|
12766
|
+
return r && mt.isSelectable(r) ? new mt(n) : Me.near(n);
|
|
12767
12767
|
}
|
|
12768
12768
|
}
|
|
12769
|
-
class jt extends
|
|
12769
|
+
class jt extends Me {
|
|
12770
12770
|
/**
|
|
12771
12771
|
Create an all-selection over the given document.
|
|
12772
12772
|
*/
|
|
@@ -12776,7 +12776,7 @@ class jt extends Ie {
|
|
|
12776
12776
|
replace(t, n = xe.empty) {
|
|
12777
12777
|
if (n == xe.empty) {
|
|
12778
12778
|
t.delete(0, t.doc.content.size);
|
|
12779
|
-
let r =
|
|
12779
|
+
let r = Me.atStart(t.doc);
|
|
12780
12780
|
r.eq(t.selection) || t.setSelection(r);
|
|
12781
12781
|
} else
|
|
12782
12782
|
super.replace(t, n);
|
|
@@ -12800,7 +12800,7 @@ class jt extends Ie {
|
|
|
12800
12800
|
return f0;
|
|
12801
12801
|
}
|
|
12802
12802
|
}
|
|
12803
|
-
|
|
12803
|
+
Me.jsonID("all", jt);
|
|
12804
12804
|
const f0 = {
|
|
12805
12805
|
map() {
|
|
12806
12806
|
return this;
|
|
@@ -12836,7 +12836,7 @@ function Fs(e, t, n) {
|
|
|
12836
12836
|
let a = e.mapping.maps[r], s;
|
|
12837
12837
|
a.forEach((l, c, d, p) => {
|
|
12838
12838
|
s == null && (s = p);
|
|
12839
|
-
}), e.setSelection(
|
|
12839
|
+
}), e.setSelection(Me.near(e.doc.resolve(s), n));
|
|
12840
12840
|
}
|
|
12841
12841
|
function Ps(e, t) {
|
|
12842
12842
|
return !t || !e ? e : e.bind(t);
|
|
@@ -12855,7 +12855,7 @@ new Ir("doc", {
|
|
|
12855
12855
|
}
|
|
12856
12856
|
}), new Ir("selection", {
|
|
12857
12857
|
init(e, t) {
|
|
12858
|
-
return e.selection ||
|
|
12858
|
+
return e.selection || Me.atStart(t.doc);
|
|
12859
12859
|
},
|
|
12860
12860
|
apply(e) {
|
|
12861
12861
|
return e.selection;
|
|
@@ -13009,10 +13009,10 @@ class m0 {
|
|
|
13009
13009
|
return l;
|
|
13010
13010
|
}
|
|
13011
13011
|
}
|
|
13012
|
-
function
|
|
13013
|
-
return e.config[t] === void 0 && e.parent ?
|
|
13012
|
+
function en(e, t, n) {
|
|
13013
|
+
return e.config[t] === void 0 && e.parent ? en(e.parent, t, n) : typeof e.config[t] == "function" ? e.config[t].bind({
|
|
13014
13014
|
...n,
|
|
13015
|
-
parent: e.parent ?
|
|
13015
|
+
parent: e.parent ? en(e.parent, t, n) : null
|
|
13016
13016
|
}) : e.config[t];
|
|
13017
13017
|
}
|
|
13018
13018
|
function g0(e) {
|
|
@@ -13052,7 +13052,7 @@ function id(e, t) {
|
|
|
13052
13052
|
Wi(t[r]) ? r in e ? n[r] = id(e[r], t[r]) : Object.assign(n, { [r]: t[r] }) : Object.assign(n, { [r]: t[r] });
|
|
13053
13053
|
}), n;
|
|
13054
13054
|
}
|
|
13055
|
-
class
|
|
13055
|
+
class Ot {
|
|
13056
13056
|
constructor(t = {}) {
|
|
13057
13057
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
|
13058
13058
|
name: this.name,
|
|
@@ -13060,28 +13060,28 @@ class Rt {
|
|
|
13060
13060
|
}, this.config = {
|
|
13061
13061
|
...this.config,
|
|
13062
13062
|
...t
|
|
13063
|
-
}, this.name = this.config.name, t.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Fn(
|
|
13063
|
+
}, this.name = this.config.name, t.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Fn(en(this, "addOptions", {
|
|
13064
13064
|
name: this.name
|
|
13065
|
-
}))), this.storage = Fn(
|
|
13065
|
+
}))), this.storage = Fn(en(this, "addStorage", {
|
|
13066
13066
|
name: this.name,
|
|
13067
13067
|
options: this.options
|
|
13068
13068
|
})) || {};
|
|
13069
13069
|
}
|
|
13070
13070
|
static create(t = {}) {
|
|
13071
|
-
return new
|
|
13071
|
+
return new Ot(t);
|
|
13072
13072
|
}
|
|
13073
13073
|
configure(t = {}) {
|
|
13074
13074
|
const n = this.extend();
|
|
13075
|
-
return n.options = id(this.options, t), n.storage = Fn(
|
|
13075
|
+
return n.options = id(this.options, t), n.storage = Fn(en(n, "addStorage", {
|
|
13076
13076
|
name: n.name,
|
|
13077
13077
|
options: n.options
|
|
13078
13078
|
})), n;
|
|
13079
13079
|
}
|
|
13080
13080
|
extend(t = {}) {
|
|
13081
|
-
const n = new
|
|
13082
|
-
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Fn(
|
|
13081
|
+
const n = new Ot(t);
|
|
13082
|
+
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Fn(en(n, "addOptions", {
|
|
13083
13083
|
name: n.name
|
|
13084
|
-
})), n.storage = Fn(
|
|
13084
|
+
})), n.storage = Fn(en(n, "addStorage", {
|
|
13085
13085
|
name: n.name,
|
|
13086
13086
|
options: n.options
|
|
13087
13087
|
})), n;
|
|
@@ -13107,7 +13107,7 @@ function v0(e, t, n) {
|
|
|
13107
13107
|
function w0(e) {
|
|
13108
13108
|
return Object.fromEntries(Object.entries(e.nodes).filter(([, t]) => t.spec.toText).map(([t, n]) => [t, n.spec.toText]));
|
|
13109
13109
|
}
|
|
13110
|
-
|
|
13110
|
+
Ot.create({
|
|
13111
13111
|
name: "clipboardTextSerializer",
|
|
13112
13112
|
addProseMirrorPlugins() {
|
|
13113
13113
|
return [
|
|
@@ -13237,7 +13237,7 @@ function yn(e = 0, t = 0, n = 0) {
|
|
|
13237
13237
|
function O0(e, t = null) {
|
|
13238
13238
|
if (!t)
|
|
13239
13239
|
return null;
|
|
13240
|
-
const n =
|
|
13240
|
+
const n = Me.atStart(e), r = Me.atEnd(e);
|
|
13241
13241
|
if (t === "start" || t === !0)
|
|
13242
13242
|
return n;
|
|
13243
13243
|
if (t === "end")
|
|
@@ -13304,7 +13304,7 @@ function N0(e, t, n) {
|
|
|
13304
13304
|
let s = 0;
|
|
13305
13305
|
a.forEach((l, c, d, p) => {
|
|
13306
13306
|
s === 0 && (s = p);
|
|
13307
|
-
}), e.setSelection(
|
|
13307
|
+
}), e.setSelection(Me.near(e.doc.resolve(s), n));
|
|
13308
13308
|
}
|
|
13309
13309
|
const B0 = (e) => e.toString().startsWith("<"), q0 = (e, t, n) => ({ tr: r, dispatch: o, editor: a }) => {
|
|
13310
13310
|
if (o) {
|
|
@@ -13492,7 +13492,7 @@ function Bs(e, t) {
|
|
|
13492
13492
|
name: r.name,
|
|
13493
13493
|
options: r.options,
|
|
13494
13494
|
storage: r.storage
|
|
13495
|
-
}, a = Fn(
|
|
13495
|
+
}, a = Fn(en(r, "group", o));
|
|
13496
13496
|
return typeof a != "string" ? !1 : a.split(" ").includes("list");
|
|
13497
13497
|
}
|
|
13498
13498
|
function pw(e, t, n) {
|
|
@@ -13804,7 +13804,7 @@ var Lw = /* @__PURE__ */ Object.freeze({
|
|
|
13804
13804
|
wrapIn: zw,
|
|
13805
13805
|
wrapInList: $w
|
|
13806
13806
|
});
|
|
13807
|
-
|
|
13807
|
+
Ot.create({
|
|
13808
13808
|
name: "commands",
|
|
13809
13809
|
addCommands() {
|
|
13810
13810
|
return {
|
|
@@ -13812,7 +13812,7 @@ Rt.create({
|
|
|
13812
13812
|
};
|
|
13813
13813
|
}
|
|
13814
13814
|
});
|
|
13815
|
-
|
|
13815
|
+
Ot.create({
|
|
13816
13816
|
name: "editable",
|
|
13817
13817
|
addProseMirrorPlugins() {
|
|
13818
13818
|
return [
|
|
@@ -13825,7 +13825,7 @@ Rt.create({
|
|
|
13825
13825
|
];
|
|
13826
13826
|
}
|
|
13827
13827
|
});
|
|
13828
|
-
|
|
13828
|
+
Ot.create({
|
|
13829
13829
|
name: "focusEvents",
|
|
13830
13830
|
addProseMirrorPlugins() {
|
|
13831
13831
|
const { editor: e } = this;
|
|
@@ -13850,14 +13850,14 @@ Rt.create({
|
|
|
13850
13850
|
];
|
|
13851
13851
|
}
|
|
13852
13852
|
});
|
|
13853
|
-
|
|
13853
|
+
Ot.create({
|
|
13854
13854
|
name: "keymap",
|
|
13855
13855
|
addKeyboardShortcuts() {
|
|
13856
13856
|
const e = () => this.editor.commands.first(({ commands: s }) => [
|
|
13857
13857
|
() => s.undoInputRule(),
|
|
13858
13858
|
// maybe convert first text block node to default node
|
|
13859
13859
|
() => s.command(({ tr: l }) => {
|
|
13860
|
-
const { selection: c, doc: d } = l, { empty: p, $anchor: h } = c, { pos: f, parent: m } = h, w =
|
|
13860
|
+
const { selection: c, doc: d } = l, { empty: p, $anchor: h } = c, { pos: f, parent: m } = h, w = Me.atStart(d).from === f;
|
|
13861
13861
|
return !p || !w || !m.type.isTextblock || m.textContent.length ? !1 : s.clearNodes();
|
|
13862
13862
|
}),
|
|
13863
13863
|
() => s.deleteSelection(),
|
|
@@ -13909,7 +13909,7 @@ Rt.create({
|
|
|
13909
13909
|
appendTransaction: (e, t, n) => {
|
|
13910
13910
|
if (!(e.some((w) => w.docChanged) && !t.doc.eq(n.doc)))
|
|
13911
13911
|
return;
|
|
13912
|
-
const { empty: o, from: a, to: s } = t.selection, l =
|
|
13912
|
+
const { empty: o, from: a, to: s } = t.selection, l = Me.atStart(t.doc).from, c = Me.atEnd(t.doc).to;
|
|
13913
13913
|
if (o || !(a === l && s === c) || !(n.doc.textBetween(0, n.doc.content.size, " ", " ").length === 0))
|
|
13914
13914
|
return;
|
|
13915
13915
|
const h = n.tr, f = rd({
|
|
@@ -13926,7 +13926,7 @@ Rt.create({
|
|
|
13926
13926
|
];
|
|
13927
13927
|
}
|
|
13928
13928
|
});
|
|
13929
|
-
|
|
13929
|
+
Ot.create({
|
|
13930
13930
|
name: "tabindex",
|
|
13931
13931
|
addProseMirrorPlugins() {
|
|
13932
13932
|
return [
|
|
@@ -13939,7 +13939,7 @@ Rt.create({
|
|
|
13939
13939
|
];
|
|
13940
13940
|
}
|
|
13941
13941
|
});
|
|
13942
|
-
const cd =
|
|
13942
|
+
const cd = Ot.create({
|
|
13943
13943
|
name: "fontSize",
|
|
13944
13944
|
addOptions() {
|
|
13945
13945
|
return {
|
|
@@ -14068,7 +14068,7 @@ function Nw(e, t, n, r) {
|
|
|
14068
14068
|
const Bw = D(({
|
|
14069
14069
|
context: e
|
|
14070
14070
|
}) => {
|
|
14071
|
-
const t =
|
|
14071
|
+
const t = Ke(), {
|
|
14072
14072
|
value: n
|
|
14073
14073
|
} = J(e.instanceData, "config"), {
|
|
14074
14074
|
variables: r,
|
|
@@ -14512,7 +14512,7 @@ function t_({
|
|
|
14512
14512
|
label: {
|
|
14513
14513
|
show: !!t.label_position,
|
|
14514
14514
|
position: t.label_position,
|
|
14515
|
-
...
|
|
14515
|
+
...Ut(t.label_overflow.label),
|
|
14516
14516
|
formatter: ({
|
|
14517
14517
|
value: s
|
|
14518
14518
|
}) => s[a.columnKey]
|
|
@@ -14598,7 +14598,7 @@ function o_(e, t) {
|
|
|
14598
14598
|
const a = t[0] ?? t.default, s = Array.isArray(o) ? o : [o];
|
|
14599
14599
|
if (s.length === 0)
|
|
14600
14600
|
return "";
|
|
14601
|
-
const l = r_(s, e), c =
|
|
14601
|
+
const l = r_(s, e), c = an(e.scatter.label_overflow.tooltip), d = s.map(
|
|
14602
14602
|
// @ts-expect-error type of value
|
|
14603
14603
|
({
|
|
14604
14604
|
value: m
|
|
@@ -14742,7 +14742,7 @@ function c_(e, t, n) {
|
|
|
14742
14742
|
};
|
|
14743
14743
|
return $e({}, l, l_);
|
|
14744
14744
|
}
|
|
14745
|
-
ye.use([
|
|
14745
|
+
ye.use([Kt, jn, Gn, oi, vt, wt, _t, dt, ri, Uo]);
|
|
14746
14746
|
function js(e) {
|
|
14747
14747
|
return e.trim().length > 0;
|
|
14748
14748
|
}
|
|
@@ -14922,7 +14922,7 @@ function f_({
|
|
|
14922
14922
|
}, children: [
|
|
14923
14923
|
/* @__PURE__ */ u(g.List, { children: [
|
|
14924
14924
|
l.map((f, m) => /* @__PURE__ */ i(g.Tab, { value: m.toString(), children: m + 1 }, m)),
|
|
14925
|
-
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(
|
|
14925
|
+
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
14926
14926
|
] }),
|
|
14927
14927
|
l.map((f, m) => /* @__PURE__ */ i(g.Panel, { value: m.toString(), children: /* @__PURE__ */ i(y, { name: `reference_areas.${m}`, control: e, render: ({
|
|
14928
14928
|
field: w
|
|
@@ -15102,7 +15102,7 @@ function y_({
|
|
|
15102
15102
|
}, children: [
|
|
15103
15103
|
/* @__PURE__ */ u(g.List, { children: [
|
|
15104
15104
|
l.map((f, m) => /* @__PURE__ */ i(g.Tab, { value: m.toString(), children: m + 1 }, m)),
|
|
15105
|
-
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(
|
|
15105
|
+
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
15106
15106
|
] }),
|
|
15107
15107
|
l.map((f, m) => /* @__PURE__ */ i(g.Panel, { value: m.toString(), children: /* @__PURE__ */ i(b_, { control: e, index: m, remove: a, watch: t, variableOptions: d, yAxisOptions: h }) }, m))
|
|
15108
15108
|
] });
|
|
@@ -15193,7 +15193,7 @@ const x_ = ({
|
|
|
15193
15193
|
...wr[a]
|
|
15194
15194
|
});
|
|
15195
15195
|
};
|
|
15196
|
-
return /* @__PURE__ */ u(
|
|
15196
|
+
return /* @__PURE__ */ u(rn, { cols: 2, children: [
|
|
15197
15197
|
/* @__PURE__ */ i(P, { ref: r, label: e, data: C_, value: t.type, onChange: o, sx: {
|
|
15198
15198
|
flexGrow: 1
|
|
15199
15199
|
} }),
|
|
@@ -15315,7 +15315,7 @@ const x_ = ({
|
|
|
15315
15315
|
...fd[a]
|
|
15316
15316
|
});
|
|
15317
15317
|
};
|
|
15318
|
-
return /* @__PURE__ */ u(
|
|
15318
|
+
return /* @__PURE__ */ u(rn, { cols: 2, children: [
|
|
15319
15319
|
/* @__PURE__ */ i(P, { ref: r, label: e, data: z_, value: t.type, onChange: o, sx: {
|
|
15320
15320
|
flexGrow: 1
|
|
15321
15321
|
} }),
|
|
@@ -15485,7 +15485,7 @@ const R_ = ({
|
|
|
15485
15485
|
}, children: [
|
|
15486
15486
|
/* @__PURE__ */ u(g.List, { children: [
|
|
15487
15487
|
s.map((h, f) => /* @__PURE__ */ i(g.Tab, { value: h.id, children: h.name ? h.name : f }, h.id)),
|
|
15488
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
15488
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
15489
15489
|
] }),
|
|
15490
15490
|
s.map((h, f) => /* @__PURE__ */ i(g.Panel, { value: h.id, children: /* @__PURE__ */ i(R_, { control: e, index: f, remove: o }, h.id) }, h.id))
|
|
15491
15491
|
] })
|
|
@@ -15525,7 +15525,7 @@ const V_ = ({
|
|
|
15525
15525
|
}) => /* @__PURE__ */ u(F, { sx: {
|
|
15526
15526
|
position: "relative"
|
|
15527
15527
|
}, children: [
|
|
15528
|
-
e && /* @__PURE__ */ i(
|
|
15528
|
+
e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
15529
15529
|
/* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
15530
15530
|
o && n(o);
|
|
15531
15531
|
}, theme: "vs-dark", options: {
|
|
@@ -15679,7 +15679,7 @@ function j_({
|
|
|
15679
15679
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
15680
15680
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
15681
15681
|
field: r
|
|
15682
|
-
}) => /* @__PURE__ */ i(
|
|
15682
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) })
|
|
15683
15683
|
] }),
|
|
15684
15684
|
/* @__PURE__ */ u(S, { children: [
|
|
15685
15685
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -15729,7 +15729,7 @@ function G_({
|
|
|
15729
15729
|
}, children: [
|
|
15730
15730
|
/* @__PURE__ */ u(g.List, { children: [
|
|
15731
15731
|
s.map((c, d) => /* @__PURE__ */ i(g.Tab, { value: d.toString(), children: d + 1 }, d)),
|
|
15732
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
15732
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
15733
15733
|
] }),
|
|
15734
15734
|
s.map((c, d) => /* @__PURE__ */ i(g.Panel, { value: d.toString(), children: /* @__PURE__ */ i(j_, { control: e, index: d, remove: o }) }, d))
|
|
15735
15735
|
] });
|
|
@@ -16112,7 +16112,7 @@ const lC = {
|
|
|
16112
16112
|
}, dC = D(({
|
|
16113
16113
|
context: e
|
|
16114
16114
|
}) => {
|
|
16115
|
-
const t =
|
|
16115
|
+
const t = Ke(), {
|
|
16116
16116
|
value: n = Aa
|
|
16117
16117
|
} = J(e.instanceData, "config"), {
|
|
16118
16118
|
variables: r
|
|
@@ -16187,7 +16187,7 @@ function pC({
|
|
|
16187
16187
|
}) => /* @__PURE__ */ i(pr, { label: "Template", py: "md", sx: {
|
|
16188
16188
|
flexGrow: 1
|
|
16189
16189
|
}, ...h }) }),
|
|
16190
|
-
/* @__PURE__ */ u(
|
|
16190
|
+
/* @__PURE__ */ u(rn, { cols: 2, children: [
|
|
16191
16191
|
/* @__PURE__ */ i(
|
|
16192
16192
|
y,
|
|
16193
16193
|
{
|
|
@@ -16539,7 +16539,7 @@ const TC = [{
|
|
|
16539
16539
|
}, children: [
|
|
16540
16540
|
/* @__PURE__ */ u(g.List, { children: [
|
|
16541
16541
|
s.map((h, f) => /* @__PURE__ */ i(g.Tab, { value: h.id, children: f }, h.id)),
|
|
16542
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
16542
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
16543
16543
|
] }),
|
|
16544
16544
|
s.map((h, f) => /* @__PURE__ */ i(g.Panel, { value: h.id, children: /* @__PURE__ */ i(IC, { control: e, index: f, remove: o }, h.id) }, h.id))
|
|
16545
16545
|
] })
|
|
@@ -16690,7 +16690,7 @@ const OC = {
|
|
|
16690
16690
|
};
|
|
16691
16691
|
}
|
|
16692
16692
|
};
|
|
16693
|
-
var
|
|
16693
|
+
var St = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e.custom = "custom", e))(St || {});
|
|
16694
16694
|
const md = ["function text({ value }) {", " // your code goes here", " return value", "}"].join(`
|
|
16695
16695
|
`), gd = {
|
|
16696
16696
|
columns: [],
|
|
@@ -16988,22 +16988,22 @@ function e1(e) {
|
|
|
16988
16988
|
}
|
|
16989
16989
|
function t1(e) {
|
|
16990
16990
|
switch (e.type) {
|
|
16991
|
-
case
|
|
16991
|
+
case St.string:
|
|
16992
16992
|
return /* @__PURE__ */ i(UC, { ...e });
|
|
16993
|
-
case
|
|
16993
|
+
case St.eloc:
|
|
16994
16994
|
return /* @__PURE__ */ i(XC, { ...e });
|
|
16995
|
-
case
|
|
16995
|
+
case St.number:
|
|
16996
16996
|
return /* @__PURE__ */ i(JC, { ...e });
|
|
16997
|
-
case
|
|
16997
|
+
case St.percentage:
|
|
16998
16998
|
return /* @__PURE__ */ i(ZC, { ...e });
|
|
16999
|
-
case
|
|
16999
|
+
case St.custom:
|
|
17000
17000
|
return /* @__PURE__ */ i(e1, { ...e });
|
|
17001
17001
|
}
|
|
17002
17002
|
}
|
|
17003
17003
|
const n1 = (e) => {
|
|
17004
17004
|
const t = zt(e), n = Mt(t.triggerManager, Ra.id), {
|
|
17005
17005
|
colorManager: r
|
|
17006
|
-
} = Yt(
|
|
17006
|
+
} = Yt(Nt);
|
|
17007
17007
|
return ot((o) => new YC(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
|
|
17008
17008
|
};
|
|
17009
17009
|
function r1({
|
|
@@ -17014,7 +17014,7 @@ function r1({
|
|
|
17014
17014
|
context: o,
|
|
17015
17015
|
instance: a
|
|
17016
17016
|
}) {
|
|
17017
|
-
var Le,
|
|
17017
|
+
var Le, Ue;
|
|
17018
17018
|
const {
|
|
17019
17019
|
id_field: s,
|
|
17020
17020
|
use_raw_columns: l,
|
|
@@ -17026,31 +17026,31 @@ function r1({
|
|
|
17026
17026
|
} = WC(), f = z(() => {
|
|
17027
17027
|
if (!s)
|
|
17028
17028
|
return [];
|
|
17029
|
-
const
|
|
17030
|
-
return e[
|
|
17031
|
-
}, [e, s]), m = R.useMemo(() => l ? !Array.isArray(f) || f.length === 0 ? [] : Object.keys(f[0]).map((
|
|
17032
|
-
id:
|
|
17033
|
-
label:
|
|
17034
|
-
value_field:
|
|
17035
|
-
value_type:
|
|
17029
|
+
const De = G(s);
|
|
17030
|
+
return e[De.queryID];
|
|
17031
|
+
}, [e, s]), m = R.useMemo(() => l ? !Array.isArray(f) || f.length === 0 ? [] : Object.keys(f[0]).map((De) => ({
|
|
17032
|
+
id: De,
|
|
17033
|
+
label: De,
|
|
17034
|
+
value_field: De,
|
|
17035
|
+
value_type: St.string,
|
|
17036
17036
|
align: "left",
|
|
17037
17037
|
width: "",
|
|
17038
17038
|
cellBackgroundColor: ""
|
|
17039
17039
|
})) : c, [l, c, f]), w = n1({
|
|
17040
|
-
getColIndex: ot((
|
|
17040
|
+
getColIndex: ot((De) => m.indexOf(De.column.columnDef.meta), [m]),
|
|
17041
17041
|
vizManager: o.vizManager,
|
|
17042
17042
|
instance: a
|
|
17043
17043
|
}), x = z(() => {
|
|
17044
|
-
const
|
|
17045
|
-
return m.map((
|
|
17046
|
-
const tt = yf(
|
|
17047
|
-
return
|
|
17048
|
-
cell: (gt) => /* @__PURE__ */ i(t1, { tableCellContext: w(gt.cell), value: gt.getValue(), type:
|
|
17049
|
-
header:
|
|
17044
|
+
const De = Xl();
|
|
17045
|
+
return m.map((Ie) => {
|
|
17046
|
+
const tt = yf(Ie.value_field);
|
|
17047
|
+
return De.accessor(tt.columnKey, {
|
|
17048
|
+
cell: (gt) => /* @__PURE__ */ i(t1, { tableCellContext: w(gt.cell), value: gt.getValue(), type: Ie.value_type, ...Ie }),
|
|
17049
|
+
header: Ie.label,
|
|
17050
17050
|
enableSorting: !0,
|
|
17051
|
-
meta:
|
|
17052
|
-
size: typeof
|
|
17053
|
-
minSize: typeof
|
|
17051
|
+
meta: Ie,
|
|
17052
|
+
size: typeof Ie.width == "number" ? Ie.width : void 0,
|
|
17053
|
+
minSize: typeof Ie.width == "number" ? Ie.width : void 0
|
|
17054
17054
|
});
|
|
17055
17055
|
});
|
|
17056
17056
|
}, [m, w]), [T, I] = U([]), L = Jl({
|
|
@@ -17072,7 +17072,7 @@ function r1({
|
|
|
17072
17072
|
}), {
|
|
17073
17073
|
virtualItems: O,
|
|
17074
17074
|
totalSize: A
|
|
17075
|
-
} = N, K = O.length > 0 && ((Le = O == null ? void 0 : O[0]) == null ? void 0 : Le.start) || 0, re = O.length > 0 ? A - (((
|
|
17075
|
+
} = N, K = O.length > 0 && ((Le = O == null ? void 0 : O[0]) == null ? void 0 : Le.start) || 0, re = O.length > 0 ? A - (((Ue = O == null ? void 0 : O[O.length - 1]) == null ? void 0 : Ue.end) || 0) : 0, te = B.length, ie = te > 0, me = ie ? n - 22 : n, be = ie ? 22 : 0;
|
|
17076
17076
|
return !Array.isArray(f) || f.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: j, style: {
|
|
17077
17077
|
height: n,
|
|
17078
17078
|
width: t
|
|
@@ -17085,22 +17085,22 @@ function r1({
|
|
|
17085
17085
|
"Total: ",
|
|
17086
17086
|
te
|
|
17087
17087
|
] }) }),
|
|
17088
|
-
/* @__PURE__ */ u(
|
|
17088
|
+
/* @__PURE__ */ u(Ft, { sx: {
|
|
17089
17089
|
...jC,
|
|
17090
17090
|
maxHeight: me
|
|
17091
17091
|
}, ...d, striped: r.striped, children: [
|
|
17092
17092
|
/* @__PURE__ */ i("thead", { className: p.thead, style: {
|
|
17093
17093
|
top: be
|
|
17094
|
-
}, children: L.getHeaderGroups().map((
|
|
17094
|
+
}, children: L.getHeaderGroups().map((De) => /* @__PURE__ */ i("tr", { children: De.headers.map((Fe) => /* @__PURE__ */ i("th", { style: {
|
|
17095
17095
|
width: Fe.getSize()
|
|
17096
|
-
}, children: /* @__PURE__ */ i(FC, { header: Fe, cx: h }) }, Fe.id)) },
|
|
17096
|
+
}, children: /* @__PURE__ */ i(FC, { header: Fe, cx: h }) }, Fe.id)) }, De.id)) }),
|
|
17097
17097
|
/* @__PURE__ */ u("tbody", { children: [
|
|
17098
17098
|
K > 0 && /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { style: {
|
|
17099
17099
|
height: `${K}px`
|
|
17100
17100
|
} }) }),
|
|
17101
|
-
O.map((
|
|
17102
|
-
const Fe = B[
|
|
17103
|
-
return /* @__PURE__ */ i("tr", { children: Fe.getVisibleCells().map((
|
|
17101
|
+
O.map((De) => {
|
|
17102
|
+
const Fe = B[De.index];
|
|
17103
|
+
return /* @__PURE__ */ i("tr", { children: Fe.getVisibleCells().map((Ie) => /* @__PURE__ */ i("td", { children: Nr(Ie.column.columnDef.cell, Ie.getContext()) }, Ie.id)) }, Fe.id);
|
|
17104
17104
|
}),
|
|
17105
17105
|
re > 0 && /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { style: {
|
|
17106
17106
|
height: `${re}px`
|
|
@@ -17163,7 +17163,7 @@ class a1 {
|
|
|
17163
17163
|
steps: pl
|
|
17164
17164
|
}, {
|
|
17165
17165
|
deep: !1
|
|
17166
|
-
}),
|
|
17166
|
+
}), xt(() => Qt(this.steps), () => {
|
|
17167
17167
|
this.notifyStepChange();
|
|
17168
17168
|
});
|
|
17169
17169
|
}
|
|
@@ -17260,7 +17260,7 @@ const l1 = D(({
|
|
|
17260
17260
|
}));
|
|
17261
17261
|
}
|
|
17262
17262
|
const m = () => {
|
|
17263
|
-
p(), n == null || n(
|
|
17263
|
+
p(), n == null || n(Qt(a));
|
|
17264
17264
|
};
|
|
17265
17265
|
function w(T) {
|
|
17266
17266
|
s((I) => ({
|
|
@@ -17308,7 +17308,7 @@ function f1(e, t) {
|
|
|
17308
17308
|
const m1 = Se((e, t) => {
|
|
17309
17309
|
const {
|
|
17310
17310
|
colorManager: n
|
|
17311
|
-
} = Yt(
|
|
17311
|
+
} = Yt(Nt), [r, o] = U(vd(e.value)), [a, s] = U(p1(n, e.value)), l = ms(a), [c, d] = U(f1(n, e.value)), p = ms(c);
|
|
17312
17312
|
return /* @__PURE__ */ u(S, { align: "stretch", children: [
|
|
17313
17313
|
/* @__PURE__ */ i(P, { label: "Cell background", value: r || "none", onChange: (w) => {
|
|
17314
17314
|
var x, T, I;
|
|
@@ -17324,8 +17324,8 @@ const m1 = Se((e, t) => {
|
|
|
17324
17324
|
} })
|
|
17325
17325
|
] });
|
|
17326
17326
|
}), g1 = {
|
|
17327
|
-
[
|
|
17328
|
-
}, b1 = Object.values(
|
|
17327
|
+
[St.eloc]: "ELOC"
|
|
17328
|
+
}, b1 = Object.values(St).map((e) => ({
|
|
17329
17329
|
label: k.get(g1, e, k.capitalize(e)),
|
|
17330
17330
|
value: e
|
|
17331
17331
|
})), y1 = Se(({
|
|
@@ -17406,7 +17406,7 @@ const m1 = Se((e, t) => {
|
|
|
17406
17406
|
}) => /* @__PURE__ */ i(y1, { label: "Value Type", sx: {
|
|
17407
17407
|
flex: 1
|
|
17408
17408
|
}, ...s }) }),
|
|
17409
|
-
a ===
|
|
17409
|
+
a === St.custom && /* @__PURE__ */ i(y, { name: `columns.${t}.func_content`, control: e, render: ({
|
|
17410
17410
|
field: s
|
|
17411
17411
|
}) => /* @__PURE__ */ i(x1, { value: s.value ?? md, onChange: (l) => s.onChange(l ?? "") }) })
|
|
17412
17412
|
] }),
|
|
@@ -17453,7 +17453,7 @@ const m1 = Se((e, t) => {
|
|
|
17453
17453
|
label: c,
|
|
17454
17454
|
align: "center",
|
|
17455
17455
|
value_field: "",
|
|
17456
|
-
value_type:
|
|
17456
|
+
value_type: St.string,
|
|
17457
17457
|
width: ""
|
|
17458
17458
|
});
|
|
17459
17459
|
};
|
|
@@ -17475,7 +17475,7 @@ const m1 = Se((e, t) => {
|
|
|
17475
17475
|
}, children: [
|
|
17476
17476
|
/* @__PURE__ */ u(g.List, { children: [
|
|
17477
17477
|
n.map((c, d) => /* @__PURE__ */ i(g.Tab, { value: d.toString(), children: d + 1 }, c.id)),
|
|
17478
|
-
/* @__PURE__ */ i(g.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ i(
|
|
17478
|
+
/* @__PURE__ */ i(g.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
17479
17479
|
] }),
|
|
17480
17480
|
n.map((c, d) => /* @__PURE__ */ i(g.Panel, { value: d.toString(), children: /* @__PURE__ */ i(w1, { control: e, watch: t, index: d, column: c, remove: o }, d) }, c.id))
|
|
17481
17481
|
] }) })
|
|
@@ -17710,7 +17710,7 @@ const ro = {
|
|
|
17710
17710
|
}, z1 = D(({
|
|
17711
17711
|
context: e
|
|
17712
17712
|
}) => {
|
|
17713
|
-
const t =
|
|
17713
|
+
const t = Ke(), {
|
|
17714
17714
|
value: n = Oa
|
|
17715
17715
|
} = J(e.instanceData, "config"), {
|
|
17716
17716
|
variables: r
|
|
@@ -17905,7 +17905,7 @@ async function P1(e, t, n, r = {}) {
|
|
|
17905
17905
|
params: r.params,
|
|
17906
17906
|
headers: o
|
|
17907
17907
|
};
|
|
17908
|
-
return a.data = r.string ? JSON.stringify(n) : n,
|
|
17908
|
+
return a.data = r.string ? JSON.stringify(n) : n, tn(a).then((s) => s.data).catch((s) => Promise.reject(s));
|
|
17909
17909
|
}
|
|
17910
17910
|
const V1 = ({
|
|
17911
17911
|
conf: e,
|
|
@@ -18323,7 +18323,7 @@ const _d = {
|
|
|
18323
18323
|
metrics: []
|
|
18324
18324
|
}
|
|
18325
18325
|
};
|
|
18326
|
-
ye.use([
|
|
18326
|
+
ye.use([Kt, jn, Gn, Zo, Ch, vt, wt, _t, ni, dt]);
|
|
18327
18327
|
function aS({
|
|
18328
18328
|
name: e
|
|
18329
18329
|
}, t) {
|
|
@@ -18406,7 +18406,7 @@ function cS({
|
|
|
18406
18406
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
18407
18407
|
/* @__PURE__ */ i(y, { name: "heat_block.value_formatter", control: e, render: ({
|
|
18408
18408
|
field: n
|
|
18409
|
-
}) => /* @__PURE__ */ i(
|
|
18409
|
+
}) => /* @__PURE__ */ i(Ct, { ...n }) })
|
|
18410
18410
|
] });
|
|
18411
18411
|
}
|
|
18412
18412
|
const dS = ({
|
|
@@ -18473,7 +18473,7 @@ const dS = ({
|
|
|
18473
18473
|
}, children: [
|
|
18474
18474
|
/* @__PURE__ */ u(g.List, { children: [
|
|
18475
18475
|
s.map((h, f) => /* @__PURE__ */ i(g.Tab, { value: h.id, children: h.name ? h.name : f }, h.id)),
|
|
18476
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
18476
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
18477
18477
|
] }),
|
|
18478
18478
|
s.map((h, f) => /* @__PURE__ */ i(g.Panel, { value: h.id, children: /* @__PURE__ */ i(dS, { control: e, index: f, remove: o }, h.id) }, h.id))
|
|
18479
18479
|
] })
|
|
@@ -18674,7 +18674,7 @@ const xS = {
|
|
|
18674
18674
|
data_key: "",
|
|
18675
18675
|
axisLabel: {
|
|
18676
18676
|
formatter: {
|
|
18677
|
-
...
|
|
18677
|
+
...Rt
|
|
18678
18678
|
},
|
|
18679
18679
|
overflow: Dt
|
|
18680
18680
|
},
|
|
@@ -18960,7 +18960,7 @@ function ES(e, t, n) {
|
|
|
18960
18960
|
})}</td>
|
|
18961
18961
|
</tr>
|
|
18962
18962
|
`;
|
|
18963
|
-
}), l =
|
|
18963
|
+
}), l = an(e.y_axis.axisLabel.overflow.in_tooltip), c = AS(a, e);
|
|
18964
18964
|
return `
|
|
18965
18965
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
18966
18966
|
<div style="${l}">${c}</div>
|
|
@@ -19038,7 +19038,7 @@ function PS(e, t) {
|
|
|
19038
19038
|
const n = t.every((s) => !Number.isNaN(Number(s))), {
|
|
19039
19039
|
overflow: r,
|
|
19040
19040
|
...o
|
|
19041
|
-
} = e.y_axis.axisLabel, a =
|
|
19041
|
+
} = e.y_axis.axisLabel, a = Ut(r.on_axis);
|
|
19042
19042
|
return [{
|
|
19043
19043
|
data: t,
|
|
19044
19044
|
name: e.y_axis.name ?? "",
|
|
@@ -19075,7 +19075,7 @@ function VS(e, t, n) {
|
|
|
19075
19075
|
legend: kS(c)
|
|
19076
19076
|
};
|
|
19077
19077
|
}
|
|
19078
|
-
ye.use([
|
|
19078
|
+
ye.use([Kt, jn, Gn, oi, vt, wt, _t, dt, ri, Uo]);
|
|
19079
19079
|
function NS({
|
|
19080
19080
|
conf: e,
|
|
19081
19081
|
data: t,
|
|
@@ -19273,7 +19273,7 @@ function GS({
|
|
|
19273
19273
|
}, children: [
|
|
19274
19274
|
/* @__PURE__ */ u(g.List, { children: [
|
|
19275
19275
|
l.map((m, w) => /* @__PURE__ */ i(g.Tab, { value: m.id, children: m.name }, w)),
|
|
19276
|
-
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(
|
|
19276
|
+
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
19277
19277
|
] }),
|
|
19278
19278
|
l.map((m, w) => /* @__PURE__ */ i(g.Panel, { value: m.id, children: /* @__PURE__ */ i(jS, { control: e, index: w, remove: a, watch: t, variableOptions: d, xAxisOptions: h }) }, w))
|
|
19279
19279
|
] });
|
|
@@ -19493,7 +19493,7 @@ function XS({
|
|
|
19493
19493
|
}, children: [
|
|
19494
19494
|
/* @__PURE__ */ u(g.List, { children: [
|
|
19495
19495
|
s.map((m) => /* @__PURE__ */ i(g.Tab, { value: m.id, children: m.name }, m.id)),
|
|
19496
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
19496
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
19497
19497
|
] }),
|
|
19498
19498
|
s.map((m, w) => /* @__PURE__ */ i(g.Panel, { value: m.id, children: /* @__PURE__ */ i(US, { control: e, index: w, remove: o, seriesItem: m, xAxisOptions: d }, m.id) }, m.id))
|
|
19499
19499
|
] });
|
|
@@ -19532,7 +19532,7 @@ function ZS({
|
|
|
19532
19532
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
19533
19533
|
/* @__PURE__ */ i(y, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
|
|
19534
19534
|
field: r
|
|
19535
|
-
}) => /* @__PURE__ */ i(
|
|
19535
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) })
|
|
19536
19536
|
] }),
|
|
19537
19537
|
/* @__PURE__ */ u(S, { children: [
|
|
19538
19538
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -19581,7 +19581,7 @@ function ek({
|
|
|
19581
19581
|
}, children: [
|
|
19582
19582
|
/* @__PURE__ */ u(g.List, { children: [
|
|
19583
19583
|
s.map((d) => /* @__PURE__ */ i(g.Tab, { value: d.id, children: d.name }, d.id)),
|
|
19584
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
19584
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
19585
19585
|
] }),
|
|
19586
19586
|
s.map((d, p) => /* @__PURE__ */ i(g.Panel, { value: d.id, children: /* @__PURE__ */ i(ZS, { control: e, index: p, remove: o }) }, d.id))
|
|
19587
19587
|
] });
|
|
@@ -20361,7 +20361,7 @@ const Ck = {
|
|
|
20361
20361
|
function Tk() {
|
|
20362
20362
|
return /* @__PURE__ */ u(it, { width: 400, shadow: "md", children: [
|
|
20363
20363
|
/* @__PURE__ */ i(it.Target, { children: /* @__PURE__ */ i(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ i(Dn, { size: 14 }), children: "指标说明" }) }),
|
|
20364
|
-
/* @__PURE__ */ i(it.Dropdown, { children: /* @__PURE__ */ i(
|
|
20364
|
+
/* @__PURE__ */ i(it.Dropdown, { children: /* @__PURE__ */ i(Ft, { fontSize: 14, sx: kk, children: /* @__PURE__ */ u("tbody", { children: [
|
|
20365
20365
|
/* @__PURE__ */ u("tr", { children: [
|
|
20366
20366
|
/* @__PURE__ */ i("th", { children: "估算偏差" }),
|
|
20367
20367
|
/* @__PURE__ */ i("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
|
|
@@ -20379,7 +20379,7 @@ function Dk(e) {
|
|
|
20379
20379
|
/* @__PURE__ */ i(Sk, { ...e })
|
|
20380
20380
|
] });
|
|
20381
20381
|
}
|
|
20382
|
-
ye.use([jn, Gn, Zo,
|
|
20382
|
+
ye.use([jn, Gn, Zo, vt, wt, _t, dt, ni]);
|
|
20383
20383
|
function Ik({
|
|
20384
20384
|
conf: e,
|
|
20385
20385
|
data: t,
|
|
@@ -20510,7 +20510,7 @@ const $k = ({
|
|
|
20510
20510
|
}, children: [
|
|
20511
20511
|
/* @__PURE__ */ u(g.List, { children: [
|
|
20512
20512
|
s.map((h, f) => /* @__PURE__ */ i(g.Tab, { value: h.id, children: h.name ? h.name : f }, h.id)),
|
|
20513
|
-
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(
|
|
20513
|
+
/* @__PURE__ */ i(g.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
20514
20514
|
] }),
|
|
20515
20515
|
s.map((h, f) => /* @__PURE__ */ i(g.Panel, { value: h.id, children: /* @__PURE__ */ i($k, { control: e, index: f, remove: o }, h.id) }, h.id))
|
|
20516
20516
|
] })
|
|
@@ -20713,7 +20713,7 @@ const Us = ({
|
|
|
20713
20713
|
data_keys: r,
|
|
20714
20714
|
formatter: o,
|
|
20715
20715
|
postfix: a
|
|
20716
|
-
} = e, s =
|
|
20716
|
+
} = e, s = Ke(), l = z(() => {
|
|
20717
20717
|
if (a.type === "text" && a.value)
|
|
20718
20718
|
return a.value;
|
|
20719
20719
|
if (a.type === "filter-option-label" && a.value) {
|
|
@@ -20830,7 +20830,7 @@ function Wk({
|
|
|
20830
20830
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Format", labelPosition: "center" }),
|
|
20831
20831
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.formatter`, control: e, render: ({
|
|
20832
20832
|
field: a
|
|
20833
|
-
}) => /* @__PURE__ */ i(
|
|
20833
|
+
}) => /* @__PURE__ */ i(Ct, { ...a }) }),
|
|
20834
20834
|
/* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Others", labelPosition: "center" }),
|
|
20835
20835
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.postfix`, control: e, render: ({
|
|
20836
20836
|
field: a
|
|
@@ -20884,7 +20884,7 @@ const jk = ({
|
|
|
20884
20884
|
}, children: [
|
|
20885
20885
|
/* @__PURE__ */ u(g.List, { children: [
|
|
20886
20886
|
l.map((w, x) => /* @__PURE__ */ i(g.Tab, { value: w.id, children: w.names.value ? w.names.value : x + 1 }, x)),
|
|
20887
|
-
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(
|
|
20887
|
+
/* @__PURE__ */ i(g.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ i(Pt, { size: 18, color: "#228be6" }) })
|
|
20888
20888
|
] }),
|
|
20889
20889
|
l.map((w, x) => /* @__PURE__ */ i(g.Panel, { value: w.id, children: /* @__PURE__ */ i(Wk, { control: e, index: x, remove: m, variableOptions: d, watch: t }) }, x))
|
|
20890
20890
|
] })
|
|
@@ -21086,16 +21086,16 @@ const Xk = {
|
|
|
21086
21086
|
color: [...Jk, ...Zk]
|
|
21087
21087
|
}
|
|
21088
21088
|
}), rr = new gf(), qe = {
|
|
21089
|
-
pluginManager:
|
|
21090
|
-
vizManager:
|
|
21091
|
-
colorManager:
|
|
21089
|
+
pluginManager: qt("pluginManager"),
|
|
21090
|
+
vizManager: qt("vizManager"),
|
|
21091
|
+
colorManager: qt("colorManager"),
|
|
21092
21092
|
instanceScope: {
|
|
21093
|
-
panelModel:
|
|
21094
|
-
vizInstance:
|
|
21095
|
-
interactionManager:
|
|
21096
|
-
migrator:
|
|
21097
|
-
operationManager:
|
|
21098
|
-
triggerManager:
|
|
21093
|
+
panelModel: qt("panelModel"),
|
|
21094
|
+
vizInstance: qt("vizInstance"),
|
|
21095
|
+
interactionManager: qt("interactionManager"),
|
|
21096
|
+
migrator: qt("migrator"),
|
|
21097
|
+
operationManager: qt("operationManager"),
|
|
21098
|
+
triggerManager: qt("triggerManager")
|
|
21099
21099
|
}
|
|
21100
21100
|
}, qa = () => {
|
|
21101
21101
|
try {
|
|
@@ -21108,7 +21108,7 @@ const Xk = {
|
|
|
21108
21108
|
vizManager: e,
|
|
21109
21109
|
colorManager: t
|
|
21110
21110
|
};
|
|
21111
|
-
},
|
|
21111
|
+
}, Nt = al(qa());
|
|
21112
21112
|
try {
|
|
21113
21113
|
rr.install(Sd());
|
|
21114
21114
|
} catch {
|
|
@@ -21424,7 +21424,7 @@ const eT = {
|
|
|
21424
21424
|
value: n,
|
|
21425
21425
|
onChange: r
|
|
21426
21426
|
}) => {
|
|
21427
|
-
const o =
|
|
21427
|
+
const o = Ke(), a = !!t.options_query_id, {
|
|
21428
21428
|
state: s,
|
|
21429
21429
|
error: l
|
|
21430
21430
|
} = o.getDataStuffByID(t.options_query_id), c = s === "loading", d = t.min_width ? t.min_width : "200px", p = a ? c : !1, h = (f) => r(f, !1);
|
|
@@ -21447,20 +21447,11 @@ const eT = {
|
|
|
21447
21447
|
value: n,
|
|
21448
21448
|
onChange: r
|
|
21449
21449
|
}) => {
|
|
21450
|
-
const o =
|
|
21450
|
+
const o = Ke(), a = !!t.options_query_id, {
|
|
21451
21451
|
state: s,
|
|
21452
21452
|
error: l
|
|
21453
21453
|
} = o.getDataStuffByID(t.options_query_id), c = s === "loading";
|
|
21454
|
-
return
|
|
21455
|
-
var h;
|
|
21456
|
-
const {
|
|
21457
|
-
default_selection_count: d
|
|
21458
|
-
} = t;
|
|
21459
|
-
if (!d)
|
|
21460
|
-
return;
|
|
21461
|
-
const p = ((h = t.options[0]) == null ? void 0 : h.value) ?? "";
|
|
21462
|
-
console.log("Selecting the first option by default. New value: ", p), r(p, !0);
|
|
21463
|
-
}, [t.default_selection_count, t.options]), /* @__PURE__ */ i(P, { label: e, data: t.options, disabled: a ? c : !1, value: n, onChange: r, error: !!l, placeholder: l, maxDropdownHeight: 500, styles: {
|
|
21454
|
+
return /* @__PURE__ */ i(P, { label: e, data: t.options, disabled: a ? c : !1, value: n, onChange: r, error: !!l, placeholder: l, maxDropdownHeight: 500, styles: {
|
|
21464
21455
|
root: {
|
|
21465
21456
|
width: t.width ? t.width : "200px"
|
|
21466
21457
|
},
|
|
@@ -21876,7 +21867,7 @@ function bT(e) {
|
|
|
21876
21867
|
const Md = D(function({
|
|
21877
21868
|
view: t
|
|
21878
21869
|
}) {
|
|
21879
|
-
const n =
|
|
21870
|
+
const n = Ke(), {
|
|
21880
21871
|
control: r,
|
|
21881
21872
|
handleSubmit: o,
|
|
21882
21873
|
reset: a
|
|
@@ -22112,10 +22103,10 @@ const yT = b.model("PanelLayoutMeta", {
|
|
|
22112
22103
|
if (!e.queryIDSet.has(t))
|
|
22113
22104
|
return;
|
|
22114
22105
|
const n = new Set(e.queryIDSet);
|
|
22115
|
-
n.delete(t), e.queryIDs =
|
|
22106
|
+
n.delete(t), e.queryIDs = on(Array.from(n));
|
|
22116
22107
|
},
|
|
22117
22108
|
setQueryIDs(t) {
|
|
22118
|
-
e.queryIDs =
|
|
22109
|
+
e.queryIDs = on(t);
|
|
22119
22110
|
},
|
|
22120
22111
|
addVariable(t) {
|
|
22121
22112
|
e.variables.push(t);
|
|
@@ -22125,7 +22116,7 @@ const yT = b.model("PanelLayoutMeta", {
|
|
|
22125
22116
|
}
|
|
22126
22117
|
})), Ti = (e) => vl(e, (t, n) => {
|
|
22127
22118
|
if (n !== void 0 && t)
|
|
22128
|
-
return
|
|
22119
|
+
return Qt(t);
|
|
22129
22120
|
});
|
|
22130
22121
|
var We = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(We || {});
|
|
22131
22122
|
const ST = b.model("QueryMeta", {
|
|
@@ -22308,8 +22299,8 @@ const DT = b.model("FilterDateRangeConfigMeta", {
|
|
|
22308
22299
|
})).actions((e) => ({
|
|
22309
22300
|
setFilterValue(t) {
|
|
22310
22301
|
try {
|
|
22311
|
-
const n =
|
|
22312
|
-
|
|
22302
|
+
const n = He(e);
|
|
22303
|
+
Te(e).filters.setValueByKey(n.key, t);
|
|
22313
22304
|
} catch (n) {
|
|
22314
22305
|
console.error(n);
|
|
22315
22306
|
}
|
|
@@ -22385,7 +22376,7 @@ const DT = b.model("FilterDateRangeConfigMeta", {
|
|
|
22385
22376
|
data: t,
|
|
22386
22377
|
state: n,
|
|
22387
22378
|
error: r
|
|
22388
|
-
} =
|
|
22379
|
+
} = Te(e).content.getDataStuffByID(e.options_query_id);
|
|
22389
22380
|
return n === "idle" ? t : [];
|
|
22390
22381
|
}
|
|
22391
22382
|
})).actions((e) => ({
|
|
@@ -22429,18 +22420,18 @@ const DT = b.model("FilterDateRangeConfigMeta", {
|
|
|
22429
22420
|
}
|
|
22430
22421
|
})).actions((e) => ({
|
|
22431
22422
|
setDefaultValue(t) {
|
|
22432
|
-
e.default_value =
|
|
22423
|
+
e.default_value = on(t);
|
|
22433
22424
|
},
|
|
22434
22425
|
setMinWidth(t) {
|
|
22435
22426
|
e.min_width = t;
|
|
22436
22427
|
},
|
|
22437
22428
|
setDefaultSelection() {
|
|
22438
|
-
const t =
|
|
22429
|
+
const t = Te(e).content.filters, n = He(e).key;
|
|
22439
22430
|
t.setValueByKey(n, e.default_selection);
|
|
22440
22431
|
}
|
|
22441
22432
|
})).actions((e) => ({
|
|
22442
22433
|
afterCreate() {
|
|
22443
|
-
|
|
22434
|
+
Et(e, xt(() => Qt(e.default_selection), e.setDefaultSelection, {
|
|
22444
22435
|
fireImmediately: !0,
|
|
22445
22436
|
delay: 0
|
|
22446
22437
|
}));
|
|
@@ -22482,6 +22473,9 @@ const DT = b.model("FilterDateRangeConfigMeta", {
|
|
|
22482
22473
|
},
|
|
22483
22474
|
getSelectOption(t) {
|
|
22484
22475
|
return e.options.find((n) => n.value === t);
|
|
22476
|
+
},
|
|
22477
|
+
get default_selection() {
|
|
22478
|
+
return e.usingQuery ? e.default_selection_count > 0 && e.options.length > 0 ? e.options[0].value : "" : e.default_value;
|
|
22485
22479
|
}
|
|
22486
22480
|
})).actions((e) => ({
|
|
22487
22481
|
setRequired(t) {
|
|
@@ -22492,6 +22486,17 @@ const DT = b.model("FilterDateRangeConfigMeta", {
|
|
|
22492
22486
|
},
|
|
22493
22487
|
setWidth(t) {
|
|
22494
22488
|
e.width = t;
|
|
22489
|
+
},
|
|
22490
|
+
setDefaultSelection() {
|
|
22491
|
+
const t = Te(e).content.filters, n = He(e).key;
|
|
22492
|
+
t.setValueByKey(n, e.default_selection);
|
|
22493
|
+
}
|
|
22494
|
+
})).actions((e) => ({
|
|
22495
|
+
afterCreate() {
|
|
22496
|
+
Et(e, xt(() => Qt(e.default_selection), e.setDefaultSelection, {
|
|
22497
|
+
fireImmediately: !0,
|
|
22498
|
+
delay: 0
|
|
22499
|
+
}));
|
|
22495
22500
|
}
|
|
22496
22501
|
})), $T = () => Od.create({
|
|
22497
22502
|
_name: "select",
|
|
@@ -22589,19 +22594,19 @@ const Vd = b.compose("FilterTreeSelectConfigMeta", b.model({
|
|
|
22589
22594
|
get treeData() {
|
|
22590
22595
|
const {
|
|
22591
22596
|
data: t
|
|
22592
|
-
} =
|
|
22597
|
+
} = Te(e).content.getDataStuffByID(e.options_query_id), n = AT(t);
|
|
22593
22598
|
return LT(n);
|
|
22594
22599
|
},
|
|
22595
22600
|
get errorMessage() {
|
|
22596
22601
|
const {
|
|
22597
22602
|
error: t
|
|
22598
|
-
} =
|
|
22603
|
+
} = Te(e).content.getDataStuffByID(e.options_query_id);
|
|
22599
22604
|
return t;
|
|
22600
22605
|
},
|
|
22601
22606
|
get treeDataLoading() {
|
|
22602
22607
|
const {
|
|
22603
22608
|
state: t
|
|
22604
|
-
} =
|
|
22609
|
+
} = Te(e).content.getDataStuffByID(e.options_query_id);
|
|
22605
22610
|
return t === "loading";
|
|
22606
22611
|
},
|
|
22607
22612
|
get defaultSelection() {
|
|
@@ -22612,17 +22617,17 @@ const Vd = b.compose("FilterTreeSelectConfigMeta", b.model({
|
|
|
22612
22617
|
}
|
|
22613
22618
|
})).actions((e) => ({
|
|
22614
22619
|
setDefaultValue(t) {
|
|
22615
|
-
e.default_value =
|
|
22620
|
+
e.default_value = on(t);
|
|
22616
22621
|
},
|
|
22617
22622
|
setMinWidth(t) {
|
|
22618
22623
|
e.min_width = t;
|
|
22619
22624
|
},
|
|
22620
22625
|
applyDefaultSelection() {
|
|
22621
|
-
const t =
|
|
22622
|
-
|
|
22626
|
+
const t = He(e, 1).key;
|
|
22627
|
+
Te(e).content.filters.setValueByKey(t, e.defaultSelection);
|
|
22623
22628
|
},
|
|
22624
22629
|
afterCreate() {
|
|
22625
|
-
|
|
22630
|
+
Et(e, xt(() => JSON.stringify(e.defaultSelection), this.applyDefaultSelection, {
|
|
22626
22631
|
fireImmediately: !0,
|
|
22627
22632
|
delay: 0
|
|
22628
22633
|
}));
|
|
@@ -22673,7 +22678,7 @@ const Vd = b.compose("FilterTreeSelectConfigMeta", b.model({
|
|
|
22673
22678
|
order: o,
|
|
22674
22679
|
config: c.json,
|
|
22675
22680
|
auto_submit: s,
|
|
22676
|
-
visibleInViewsIDs:
|
|
22681
|
+
visibleInViewsIDs: Qt(a)
|
|
22677
22682
|
};
|
|
22678
22683
|
},
|
|
22679
22684
|
// FIXME: this is a temp workaround. auto_submit should be moved into config
|
|
@@ -22755,7 +22760,7 @@ const Bd = b.model("ViewDivisionConfig", {
|
|
|
22755
22760
|
const {
|
|
22756
22761
|
enabled: t,
|
|
22757
22762
|
func_content: n
|
|
22758
|
-
} = e, r =
|
|
22763
|
+
} = e, r = He(e, 2), o = Te(e);
|
|
22759
22764
|
if (!t)
|
|
22760
22765
|
return r.name;
|
|
22761
22766
|
try {
|
|
@@ -22880,7 +22885,7 @@ const Bd = b.model("ViewDivisionConfig", {
|
|
|
22880
22885
|
e.grow = t;
|
|
22881
22886
|
},
|
|
22882
22887
|
setTabs(t) {
|
|
22883
|
-
e.tabs.length = 0, e.tabs =
|
|
22888
|
+
e.tabs.length = 0, e.tabs = on(t);
|
|
22884
22889
|
},
|
|
22885
22890
|
addTab() {
|
|
22886
22891
|
const t = _n(), n = {
|
|
@@ -23074,7 +23079,7 @@ function WT(e) {
|
|
|
23074
23079
|
}
|
|
23075
23080
|
const Qd = CT.views((e) => ({
|
|
23076
23081
|
get contentModel() {
|
|
23077
|
-
return
|
|
23082
|
+
return Te(e).content;
|
|
23078
23083
|
}
|
|
23079
23084
|
})).views((e) => ({
|
|
23080
23085
|
get queries() {
|
|
@@ -23100,7 +23105,7 @@ const Qd = CT.views((e) => ({
|
|
|
23100
23105
|
e.queries.forEach((t) => t.fetchData());
|
|
23101
23106
|
},
|
|
23102
23107
|
downloadData() {
|
|
23103
|
-
|
|
23108
|
+
Te(e).content.queries.downloadDataByQueryIDs(e.queryIDs);
|
|
23104
23109
|
}
|
|
23105
23110
|
}));
|
|
23106
23111
|
function jT(e) {
|
|
@@ -23234,7 +23239,7 @@ const YT = ST.views((e) => ({
|
|
|
23234
23239
|
get conditionOptions() {
|
|
23235
23240
|
if (!vs(e))
|
|
23236
23241
|
return [];
|
|
23237
|
-
const t =
|
|
23242
|
+
const t = Te(e).content, {
|
|
23238
23243
|
context: n
|
|
23239
23244
|
} = t.payloadForSQL, r = Object.keys(n).map((a) => ({
|
|
23240
23245
|
group: "Context",
|
|
@@ -23257,7 +23262,7 @@ const YT = ST.views((e) => ({
|
|
|
23257
23262
|
} = e;
|
|
23258
23263
|
if (t.length === 0)
|
|
23259
23264
|
return [];
|
|
23260
|
-
const n =
|
|
23265
|
+
const n = Te(e).content.payloadForSQL;
|
|
23261
23266
|
return t.filter((r) => {
|
|
23262
23267
|
const o = k.get(n, r);
|
|
23263
23268
|
return Array.isArray(o) ? o.length === 0 : typeof o == "number" ? Number.isNaN(o) : !o;
|
|
@@ -23270,7 +23275,7 @@ const YT = ST.views((e) => ({
|
|
|
23270
23275
|
} = e;
|
|
23271
23276
|
if (t.length === 0)
|
|
23272
23277
|
return "";
|
|
23273
|
-
const n =
|
|
23278
|
+
const n = Te(e).content.payloadForSQL, r = [...t].reduce((o, a) => (o[a] = k.get(n, a), o), {});
|
|
23274
23279
|
return JSON.stringify(r);
|
|
23275
23280
|
},
|
|
23276
23281
|
get runByConditionsMet() {
|
|
@@ -23284,7 +23289,7 @@ const YT = ST.views((e) => ({
|
|
|
23284
23289
|
};
|
|
23285
23290
|
const {
|
|
23286
23291
|
keyLabelMap: t
|
|
23287
|
-
} =
|
|
23292
|
+
} = Te(e).content.filters, n = e.unmetRunByConditions.filter((o) => o.startsWith("context.")).map((o) => o.split("context.")[0]), r = e.unmetRunByConditions.filter((o) => o.startsWith("filters.")).map((o) => k.get({
|
|
23288
23293
|
filters: t
|
|
23289
23294
|
}, o)).filter((o) => !!o);
|
|
23290
23295
|
return {
|
|
@@ -23321,7 +23326,7 @@ const JT = b.compose("QueryRenderModel", YT, b.model({
|
|
|
23321
23326
|
error: b.frozen()
|
|
23322
23327
|
})).views((e) => ({
|
|
23323
23328
|
get formattedSQL() {
|
|
23324
|
-
const t =
|
|
23329
|
+
const t = Te(e).content.payloadForSQL;
|
|
23325
23330
|
return ra(e.sql, t);
|
|
23326
23331
|
},
|
|
23327
23332
|
get typedAsSQL() {
|
|
@@ -23335,7 +23340,7 @@ const JT = b.compose("QueryRenderModel", YT, b.model({
|
|
|
23335
23340
|
key: t,
|
|
23336
23341
|
type: n
|
|
23337
23342
|
} = e;
|
|
23338
|
-
return
|
|
23343
|
+
return Te(e).datasources.find({
|
|
23339
23344
|
type: n,
|
|
23340
23345
|
key: t
|
|
23341
23346
|
});
|
|
@@ -23344,7 +23349,7 @@ const JT = b.compose("QueryRenderModel", YT, b.model({
|
|
|
23344
23349
|
const {
|
|
23345
23350
|
context: t,
|
|
23346
23351
|
filters: n
|
|
23347
|
-
} =
|
|
23352
|
+
} = Te(e).content.payloadForSQL, {
|
|
23348
23353
|
name: r,
|
|
23349
23354
|
pre_process: o
|
|
23350
23355
|
} = e.json, a = QT(o, t, n);
|
|
@@ -23374,14 +23379,14 @@ const JT = b.compose("QueryRenderModel", YT, b.model({
|
|
|
23374
23379
|
if (e.valid && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
23375
23380
|
e.controller = new AbortController(), e.state = "loading";
|
|
23376
23381
|
try {
|
|
23377
|
-
const n =
|
|
23382
|
+
const n = Te(e).content.payloadForSQL;
|
|
23378
23383
|
e.data = yield* fn(ef({
|
|
23379
23384
|
payload: n,
|
|
23380
23385
|
title: e.name,
|
|
23381
23386
|
query: e.json
|
|
23382
23387
|
}, e.controller.signal)), e.state = "idle", e.error = null;
|
|
23383
23388
|
} catch (n) {
|
|
23384
|
-
if (!
|
|
23389
|
+
if (!tn.isCancel(n)) {
|
|
23385
23390
|
e.data.length = 0;
|
|
23386
23391
|
const r = ce(n, "message", "unkown error");
|
|
23387
23392
|
e.error = ce(n, "response.data.detail.message", r), e.state = "error";
|
|
@@ -23409,7 +23414,7 @@ const JT = b.compose("QueryRenderModel", YT, b.model({
|
|
|
23409
23414
|
let l = UT(e.datasource, s);
|
|
23410
23415
|
l = XT(o, l), e.data = l, e.state = "idle", e.error = null;
|
|
23411
23416
|
} catch (n) {
|
|
23412
|
-
if (console.error(n), !
|
|
23417
|
+
if (console.error(n), !tn.isCancel(n)) {
|
|
23413
23418
|
e.data.length = 0;
|
|
23414
23419
|
const r = ce(n, "message", "unkown error");
|
|
23415
23420
|
e.error = ce(n, "response.data.detail.message", r), e.state = "error";
|
|
@@ -23425,7 +23430,7 @@ const JT = b.compose("QueryRenderModel", YT, b.model({
|
|
|
23425
23430
|
}
|
|
23426
23431
|
})).actions((e) => ({
|
|
23427
23432
|
afterCreate() {
|
|
23428
|
-
|
|
23433
|
+
Et(e, xt(() => {
|
|
23429
23434
|
var t, n;
|
|
23430
23435
|
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}--${(n = e.datasource) == null ? void 0 : n.id}`;
|
|
23431
23436
|
}, e.fetchData, {
|
|
@@ -23537,7 +23542,7 @@ function eD(e) {
|
|
|
23537
23542
|
}
|
|
23538
23543
|
const tD = kT.views((e) => ({
|
|
23539
23544
|
isADuplicatedKey(t) {
|
|
23540
|
-
return !t || t === e.key ? !1 : !!
|
|
23545
|
+
return !t || t === e.key ? !1 : !!He(e, 2).findByKey(t);
|
|
23541
23546
|
}
|
|
23542
23547
|
})), ru = b.model("SQLSnippetsRenderModel", {
|
|
23543
23548
|
current: b.optional(b.array(tD), [])
|
|
@@ -23596,7 +23601,7 @@ const iD = (e) => new rD(e), oD = D(({
|
|
|
23596
23601
|
const t = Oe(), n = _e(), r = Ht(), {
|
|
23597
23602
|
panel: o,
|
|
23598
23603
|
downloadPanelScreenshot: a
|
|
23599
|
-
} =
|
|
23604
|
+
} = Vt(), {
|
|
23600
23605
|
id: s
|
|
23601
23606
|
} = o, {
|
|
23602
23607
|
viewPanelInFullScreen: l,
|
|
@@ -23814,7 +23819,7 @@ function uD(e) {
|
|
|
23814
23819
|
function hD(e, t) {
|
|
23815
23820
|
const {
|
|
23816
23821
|
vizManager: n
|
|
23817
|
-
} = Yt(
|
|
23822
|
+
} = Yt(Nt), {
|
|
23818
23823
|
panel: {
|
|
23819
23824
|
viz: r,
|
|
23820
23825
|
title: o,
|
|
@@ -23986,7 +23991,7 @@ const uu = D(({
|
|
|
23986
23991
|
function SD(e, t, n) {
|
|
23987
23992
|
const {
|
|
23988
23993
|
panels: r
|
|
23989
|
-
} =
|
|
23994
|
+
} = Ke(), o = e.id === "Main", [a, s] = R.useState(() => o && r.findByID(t) ? t : null), l = R.useCallback((h) => {
|
|
23990
23995
|
s(h), o && n(h);
|
|
23991
23996
|
}, [o, n]), c = R.useCallback(() => {
|
|
23992
23997
|
s(null), o && n("");
|
|
@@ -24027,7 +24032,7 @@ const kD = R.forwardRef(({
|
|
|
24027
24032
|
view: e,
|
|
24028
24033
|
className: t = "layout"
|
|
24029
24034
|
}) => {
|
|
24030
|
-
const n =
|
|
24035
|
+
const n = Ke(), {
|
|
24031
24036
|
panels: r,
|
|
24032
24037
|
layouts: o
|
|
24033
24038
|
} = n.panels.panelsByIDs(e.panelIDs), a = R.useCallback((l) => {
|
|
@@ -24054,7 +24059,7 @@ const kD = R.forwardRef(({
|
|
|
24054
24059
|
const {
|
|
24055
24060
|
panels: r,
|
|
24056
24061
|
layouts: o
|
|
24057
|
-
} =
|
|
24062
|
+
} = Ke().panels.panelsByIDs(t.panelIDs);
|
|
24058
24063
|
return /* @__PURE__ */ i(MD, { className: `dashboard-layout ${n}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: o, children: r.map((a) => /* @__PURE__ */ i("div", { "data-grid": {
|
|
24059
24064
|
...a.layout
|
|
24060
24065
|
}, className: "panel-grid-item", children: /* @__PURE__ */ i(uu, { view: t, panel: a }) }, a.id)) });
|
|
@@ -24089,7 +24094,7 @@ const $D = D(({
|
|
|
24089
24094
|
const [t, {
|
|
24090
24095
|
setTrue: n,
|
|
24091
24096
|
setFalse: r
|
|
24092
|
-
}] = Ze(!1), o = pc(), a =
|
|
24097
|
+
}] = Ze(!1), o = pc(), a = Ke(), s = () => {
|
|
24093
24098
|
const l = JSON.stringify(a.json, null, 2), c = `${o.name}__${a.name}`;
|
|
24094
24099
|
eu(c, l);
|
|
24095
24100
|
};
|
|
@@ -24132,7 +24137,7 @@ const $D = D(({
|
|
|
24132
24137
|
children: e,
|
|
24133
24138
|
view: t
|
|
24134
24139
|
}) => {
|
|
24135
|
-
const n =
|
|
24140
|
+
const n = Ke(), r = t.config, o = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id), {
|
|
24136
24141
|
ref: s,
|
|
24137
24142
|
downloadScreenshot: l
|
|
24138
24143
|
} = Ga(t);
|
|
@@ -24181,7 +24186,7 @@ const $D = D(({
|
|
|
24181
24186
|
children: e,
|
|
24182
24187
|
view: t
|
|
24183
24188
|
}) => {
|
|
24184
|
-
const n =
|
|
24189
|
+
const n = Ke(), r = t.config;
|
|
24185
24190
|
return /* @__PURE__ */ u(F, { className: "render-view-tabs", children: [
|
|
24186
24191
|
/* @__PURE__ */ u(g, { variant: r.variant, orientation: r.orientation, defaultValue: r.tabs.length > 0 ? r.tabs[0].id : "0", styles: {
|
|
24187
24192
|
panel: {
|
|
@@ -24325,7 +24330,7 @@ const FD = D(({
|
|
|
24325
24330
|
/* @__PURE__ */ u(g, { variant: a.variant, orientation: a.orientation, defaultValue: a.tabs.length > 0 ? a.tabs[0].id : "0", styles: PD(a), children: [
|
|
24326
24331
|
/* @__PURE__ */ u(g.List, { grow: a.grow, children: [
|
|
24327
24332
|
a.tabs.map((c) => /* @__PURE__ */ i(g.Tab, { value: c.id, sx: VD(c), children: c.name ?? c.id }, c.id)),
|
|
24328
|
-
/* @__PURE__ */ i(g.Tab, { onClick: a.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ i(
|
|
24333
|
+
/* @__PURE__ */ i(g.Tab, { onClick: a.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
|
|
24329
24334
|
] }),
|
|
24330
24335
|
a.tabs.map((c, d) => {
|
|
24331
24336
|
const p = r.views.findByID(c.view_id);
|
|
@@ -24340,7 +24345,7 @@ const FD = D(({
|
|
|
24340
24345
|
bottom: 0,
|
|
24341
24346
|
zIndex: 200
|
|
24342
24347
|
}, children: [
|
|
24343
|
-
/* @__PURE__ */ i(
|
|
24348
|
+
/* @__PURE__ */ i(sn, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
|
|
24344
24349
|
/* @__PURE__ */ u(S, { mx: "auto", mt: 100, sx: {
|
|
24345
24350
|
width: "300px",
|
|
24346
24351
|
position: "relative",
|
|
@@ -24454,7 +24459,7 @@ const wA = {
|
|
|
24454
24459
|
version: "9.19.0"
|
|
24455
24460
|
};
|
|
24456
24461
|
function GD(e, t, n) {
|
|
24457
|
-
|
|
24462
|
+
Et(e, Ep(e, (r, o) => {
|
|
24458
24463
|
o(r, () => {
|
|
24459
24464
|
Rp(r.context) === t && r.type === "action" && n(r.name, r.context);
|
|
24460
24465
|
});
|
|
@@ -24485,7 +24490,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24485
24490
|
}
|
|
24486
24491
|
})).actions((e) => ({
|
|
24487
24492
|
replace(t) {
|
|
24488
|
-
e.current =
|
|
24493
|
+
e.current = on(t);
|
|
24489
24494
|
},
|
|
24490
24495
|
append(t) {
|
|
24491
24496
|
e.current.push(t);
|
|
@@ -24528,7 +24533,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24528
24533
|
}
|
|
24529
24534
|
})).actions((e) => ({
|
|
24530
24535
|
replace(t) {
|
|
24531
|
-
e.current =
|
|
24536
|
+
e.current = on(t);
|
|
24532
24537
|
},
|
|
24533
24538
|
append(t) {
|
|
24534
24539
|
e.current.push(t);
|
|
@@ -24554,7 +24559,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24554
24559
|
}
|
|
24555
24560
|
})).actions((e) => ({
|
|
24556
24561
|
replace(t) {
|
|
24557
|
-
e.current =
|
|
24562
|
+
e.current = on(t);
|
|
24558
24563
|
},
|
|
24559
24564
|
append(t) {
|
|
24560
24565
|
e.current.push(t);
|
|
@@ -24581,7 +24586,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24581
24586
|
return e.data.length === 0;
|
|
24582
24587
|
},
|
|
24583
24588
|
get sql() {
|
|
24584
|
-
const t =
|
|
24589
|
+
const t = He(e, 1), {
|
|
24585
24590
|
type: n,
|
|
24586
24591
|
table_name: r,
|
|
24587
24592
|
table_schema: o
|
|
@@ -24627,7 +24632,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24627
24632
|
return e.data.length === 0;
|
|
24628
24633
|
},
|
|
24629
24634
|
get sql() {
|
|
24630
|
-
const t =
|
|
24635
|
+
const t = He(e, 1), {
|
|
24631
24636
|
type: n,
|
|
24632
24637
|
table_name: r,
|
|
24633
24638
|
table_schema: o
|
|
@@ -24678,13 +24683,13 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24678
24683
|
error: b.frozen()
|
|
24679
24684
|
}).views((e) => ({
|
|
24680
24685
|
get keywords() {
|
|
24681
|
-
return
|
|
24686
|
+
return He(e, 1);
|
|
24682
24687
|
},
|
|
24683
24688
|
get keywordString() {
|
|
24684
24689
|
const {
|
|
24685
24690
|
table_name: t,
|
|
24686
24691
|
table_schema: n
|
|
24687
|
-
} =
|
|
24692
|
+
} = He(e, 1);
|
|
24688
24693
|
return `${n}||${t}`;
|
|
24689
24694
|
}
|
|
24690
24695
|
})).views((e) => ({
|
|
@@ -24698,7 +24703,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24698
24703
|
return Math.ceil(e.total / e.limit);
|
|
24699
24704
|
},
|
|
24700
24705
|
get sql() {
|
|
24701
|
-
const t =
|
|
24706
|
+
const t = He(e, 1), {
|
|
24702
24707
|
table_name: n,
|
|
24703
24708
|
table_schema: r
|
|
24704
24709
|
} = t;
|
|
@@ -24730,10 +24735,10 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24730
24735
|
}
|
|
24731
24736
|
})).actions((e) => ({
|
|
24732
24737
|
afterCreate() {
|
|
24733
|
-
|
|
24738
|
+
Et(e, xt(() => e.keywordString, e.resetPage, {
|
|
24734
24739
|
fireImmediately: !1,
|
|
24735
24740
|
delay: 0
|
|
24736
|
-
})),
|
|
24741
|
+
})), Et(e, xt(() => e.limit, e.resetPage, {
|
|
24737
24742
|
fireImmediately: !1,
|
|
24738
24743
|
delay: 0
|
|
24739
24744
|
}));
|
|
@@ -24750,7 +24755,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24750
24755
|
return Object.keys(e.data).length === 0;
|
|
24751
24756
|
},
|
|
24752
24757
|
get sql() {
|
|
24753
|
-
const t =
|
|
24758
|
+
const t = He(e, 1).type;
|
|
24754
24759
|
return t === We.MySQL || t === We.Postgresql ? "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name" : "";
|
|
24755
24760
|
}
|
|
24756
24761
|
})), ZD = b.compose("DataSourceModel", jd, b.model({
|
|
@@ -24790,7 +24795,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24790
24795
|
}, {}));
|
|
24791
24796
|
e.tables.data = k.groupBy(r, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
|
|
24792
24797
|
} catch (r) {
|
|
24793
|
-
if (!
|
|
24798
|
+
if (!tn.isCancel(r)) {
|
|
24794
24799
|
e.tables.data = {};
|
|
24795
24800
|
const o = k.get(r, "message", "unkown error");
|
|
24796
24801
|
e.tables.error = k.get(r, "response.data.detail.message", o), e.tables.state = "error";
|
|
@@ -24812,7 +24817,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24812
24817
|
query: e.columns.sql
|
|
24813
24818
|
}, {})), e.columns.state = "idle", e.columns.error = null;
|
|
24814
24819
|
} catch (r) {
|
|
24815
|
-
if (
|
|
24820
|
+
if (tn.isCancel(r))
|
|
24816
24821
|
e.columns.state = "idle", e.columns.error = null;
|
|
24817
24822
|
else {
|
|
24818
24823
|
e.columns.data = [];
|
|
@@ -24831,7 +24836,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24831
24836
|
query: e.indexes.sql
|
|
24832
24837
|
}, {})), e.indexes.state = "idle", e.indexes.error = null;
|
|
24833
24838
|
} catch (r) {
|
|
24834
|
-
if (
|
|
24839
|
+
if (tn.isCancel(r))
|
|
24835
24840
|
e.indexes.state = "idle", e.indexes.error = null;
|
|
24836
24841
|
else {
|
|
24837
24842
|
e.indexes.data = [];
|
|
@@ -24860,7 +24865,7 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24860
24865
|
}, {}));
|
|
24861
24866
|
n.total = Number(o), n.state = "idle", n.error = null;
|
|
24862
24867
|
} catch (o) {
|
|
24863
|
-
if (
|
|
24868
|
+
if (tn.isCancel(o))
|
|
24864
24869
|
n.state = "idle", n.error = null;
|
|
24865
24870
|
else {
|
|
24866
24871
|
n.data = [];
|
|
@@ -24872,17 +24877,17 @@ const YD = b.compose("FiltersModel", Xd, b.model("FiltersModel", {
|
|
|
24872
24877
|
};
|
|
24873
24878
|
}).actions((e) => ({
|
|
24874
24879
|
afterCreate() {
|
|
24875
|
-
|
|
24880
|
+
Et(e, xt(() => e.columns.sql, e.loadColumns, {
|
|
24876
24881
|
fireImmediately: !1,
|
|
24877
24882
|
delay: 500
|
|
24878
24883
|
}));
|
|
24879
24884
|
}
|
|
24880
24885
|
})).actions((e) => ({
|
|
24881
24886
|
afterCreate() {
|
|
24882
|
-
|
|
24887
|
+
Et(e, xt(() => e.indexes.sql, e.loadIndexes, {
|
|
24883
24888
|
fireImmediately: !1,
|
|
24884
24889
|
delay: 500
|
|
24885
|
-
})),
|
|
24890
|
+
})), Et(e, xt(() => e.tableData.sql, e.loadTableData, {
|
|
24886
24891
|
fireImmediately: !1,
|
|
24887
24892
|
delay: 0
|
|
24888
24893
|
}));
|
|
@@ -24945,7 +24950,7 @@ const nI = b.model("EditorModel", {
|
|
|
24945
24950
|
get navOptions() {
|
|
24946
24951
|
const {
|
|
24947
24952
|
content: t
|
|
24948
|
-
} =
|
|
24953
|
+
} = Te(e), {
|
|
24949
24954
|
filters: n,
|
|
24950
24955
|
views: r,
|
|
24951
24956
|
sqlSnippets: o,
|
|
@@ -25027,11 +25032,11 @@ const nI = b.model("EditorModel", {
|
|
|
25027
25032
|
}
|
|
25028
25033
|
})).actions((e) => ({
|
|
25029
25034
|
removeSelf() {
|
|
25030
|
-
|
|
25035
|
+
He(e, 2).removeByID(e.id);
|
|
25031
25036
|
}
|
|
25032
25037
|
})).actions((e) => ({
|
|
25033
25038
|
moveToView(t, n) {
|
|
25034
|
-
|
|
25039
|
+
Te(e).content.views.findByID(t).removePanelID(e.id), Te(e).content.views.findByID(n).appendPanelID(e.id), Te(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
|
|
25035
25040
|
}
|
|
25036
25041
|
})), iI = b.compose("PanelsModel", Kd, b.model({
|
|
25037
25042
|
list: b.optional(b.array(rI), [])
|
|
@@ -25116,7 +25121,7 @@ const nI = b.model("EditorModel", {
|
|
|
25116
25121
|
}));
|
|
25117
25122
|
},
|
|
25118
25123
|
get editorOptions() {
|
|
25119
|
-
const t =
|
|
25124
|
+
const t = Te(e).content.panels;
|
|
25120
25125
|
return e.current.map((n) => ({
|
|
25121
25126
|
label: n.name,
|
|
25122
25127
|
value: n.id,
|
|
@@ -25151,7 +25156,7 @@ const nI = b.model("EditorModel", {
|
|
|
25151
25156
|
if (n === -1)
|
|
25152
25157
|
return;
|
|
25153
25158
|
const r = e.current[n];
|
|
25154
|
-
|
|
25159
|
+
Te(e).content.panels.removeByIDs(r.panelIDs), e.current.splice(n, 1);
|
|
25155
25160
|
},
|
|
25156
25161
|
replaceByIndex(t, n) {
|
|
25157
25162
|
e.current.splice(t, 1, n);
|
|
@@ -25250,7 +25255,7 @@ const aI = b.model({
|
|
|
25250
25255
|
return !ke(ce(e, t), ce(e.origin, t));
|
|
25251
25256
|
},
|
|
25252
25257
|
get payloadForSQL() {
|
|
25253
|
-
const t =
|
|
25258
|
+
const t = He(e).context.current, n = He(e).globalSQLSnippets, r = {
|
|
25254
25259
|
context: {
|
|
25255
25260
|
...e.mock_context.current,
|
|
25256
25261
|
...t
|
|
@@ -25264,7 +25269,7 @@ const aI = b.model({
|
|
|
25264
25269
|
};
|
|
25265
25270
|
},
|
|
25266
25271
|
get payloadForViz() {
|
|
25267
|
-
const t =
|
|
25272
|
+
const t = He(e).context.current;
|
|
25268
25273
|
return {
|
|
25269
25274
|
context: {
|
|
25270
25275
|
...e.mock_context.current,
|
|
@@ -25800,8 +25805,8 @@ function _I(e, t) {
|
|
|
25800
25805
|
x: Xr,
|
|
25801
25806
|
y: c
|
|
25802
25807
|
},
|
|
25803
|
-
sourcePosition:
|
|
25804
|
-
targetPosition:
|
|
25808
|
+
sourcePosition: kt.Right,
|
|
25809
|
+
targetPosition: kt.Left,
|
|
25805
25810
|
style: {
|
|
25806
25811
|
width: el,
|
|
25807
25812
|
height: Vr
|
|
@@ -25821,8 +25826,8 @@ function _I(e, t) {
|
|
|
25821
25826
|
x: Xr,
|
|
25822
25827
|
y: c
|
|
25823
25828
|
},
|
|
25824
|
-
sourcePosition:
|
|
25825
|
-
targetPosition:
|
|
25829
|
+
sourcePosition: kt.Right,
|
|
25830
|
+
targetPosition: kt.Left,
|
|
25826
25831
|
style: {
|
|
25827
25832
|
width: el,
|
|
25828
25833
|
height: Vr
|
|
@@ -25854,8 +25859,8 @@ function kI(e) {
|
|
|
25854
25859
|
x: 0,
|
|
25855
25860
|
y: 0
|
|
25856
25861
|
},
|
|
25857
|
-
sourcePosition:
|
|
25858
|
-
targetPosition:
|
|
25862
|
+
sourcePosition: kt.Right,
|
|
25863
|
+
targetPosition: kt.Left,
|
|
25859
25864
|
className: "light",
|
|
25860
25865
|
style: {
|
|
25861
25866
|
backgroundColor: SI[n.type],
|
|
@@ -25885,7 +25890,7 @@ function II({
|
|
|
25885
25890
|
edges: n
|
|
25886
25891
|
}) {
|
|
25887
25892
|
t.forEach((r) => {
|
|
25888
|
-
r._node_type !== "view-root" || r._view_type !== Z.Tabs || (r.sourcePosition =
|
|
25893
|
+
r._node_type !== "view-root" || r._view_type !== Z.Tabs || (r.sourcePosition = kt.Bottom, r.style.width = Qa + Xr * 2, r.style.height = xu + r._tab_view_ids.reduce((o, a) => {
|
|
25889
25894
|
const s = e[a];
|
|
25890
25895
|
s.position.y = o, s.position.x = Xr;
|
|
25891
25896
|
const l = s.style.height;
|
|
@@ -25918,7 +25923,7 @@ function zI({
|
|
|
25918
25923
|
const a = e[o.source], s = e[o.target];
|
|
25919
25924
|
if (a && s && a.parentNode) {
|
|
25920
25925
|
const l = e[a.parentNode], c = l.position.x, d = Number(k.get(s, "style.height", 0)), p = Number(l.style.width);
|
|
25921
|
-
s.position.x = c + p + wI, l._view_level === 0 && s._sub_view_ids.length === 0 && (a.sourcePosition =
|
|
25926
|
+
s.position.x = c + p + wI, l._view_level === 0 && s._sub_view_ids.length === 0 && (a.sourcePosition = kt.Left, s.targetPosition = kt.Right, s.position.x *= -1);
|
|
25922
25927
|
const f = s.position.x, m = k.get(r, f, 0);
|
|
25923
25928
|
s.position.y = m, r[f] = m + d + vu;
|
|
25924
25929
|
}
|
|
@@ -26017,8 +26022,8 @@ function EI(e) {
|
|
|
26017
26022
|
const RI = Ju(({
|
|
26018
26023
|
data: e,
|
|
26019
26024
|
isConnectable: t,
|
|
26020
|
-
sourcePosition: n =
|
|
26021
|
-
targetPosition: r =
|
|
26025
|
+
sourcePosition: n = kt.Right,
|
|
26026
|
+
targetPosition: r = kt.Left,
|
|
26022
26027
|
...o
|
|
26023
26028
|
}) => {
|
|
26024
26029
|
const a = z(() => EI(e.interactions), [e.interactions]);
|
|
@@ -26039,7 +26044,7 @@ const RI = Ju(({
|
|
|
26039
26044
|
const OI = {
|
|
26040
26045
|
interaction: RI
|
|
26041
26046
|
}, FI = D(() => {
|
|
26042
|
-
const e =
|
|
26047
|
+
const e = Ke(), {
|
|
26043
26048
|
edges: t,
|
|
26044
26049
|
nodes: n
|
|
26045
26050
|
} = AI(e);
|
|
@@ -26138,7 +26143,7 @@ const BI = D(() => {
|
|
|
26138
26143
|
}, children: [
|
|
26139
26144
|
t.views.options.map((o) => /* @__PURE__ */ i(NI, { active: t.views.idOfVIE === o.value, name: o.label, onClick: n(o.value), openSettings: () => r(o.value) }, o.value)),
|
|
26140
26145
|
/* @__PURE__ */ i(E, { variant: "dashed" }),
|
|
26141
|
-
/* @__PURE__ */ i(M, { variant: "subtle", rightIcon: /* @__PURE__ */ i(
|
|
26146
|
+
/* @__PURE__ */ i(M, { variant: "subtle", rightIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: t.views.addARandomNewView, sx: {
|
|
26142
26147
|
width: "100%",
|
|
26143
26148
|
borderRadius: 0
|
|
26144
26149
|
}, styles: {
|
|
@@ -26161,7 +26166,7 @@ const BI = D(() => {
|
|
|
26161
26166
|
}
|
|
26162
26167
|
e.editor.open(["_FILTERS_", t.filters.firstID]);
|
|
26163
26168
|
}, [o, a] = U(!1), s = () => a(!0), l = () => a(!1);
|
|
26164
|
-
return /* @__PURE__ */ u(
|
|
26169
|
+
return /* @__PURE__ */ u(Wt, { p: 0, width: {
|
|
26165
26170
|
base: 200,
|
|
26166
26171
|
xs: 200,
|
|
26167
26172
|
sm: 200,
|
|
@@ -26169,7 +26174,7 @@ const BI = D(() => {
|
|
|
26169
26174
|
lg: 240,
|
|
26170
26175
|
xl: 260
|
|
26171
26176
|
}, zIndex: 299, children: [
|
|
26172
|
-
/* @__PURE__ */ u(
|
|
26177
|
+
/* @__PURE__ */ u(Wt.Section, { children: [
|
|
26173
26178
|
/* @__PURE__ */ u(v, { grow: !0, spacing: 0, sx: {
|
|
26174
26179
|
...VI,
|
|
26175
26180
|
button: {
|
|
@@ -26190,16 +26195,16 @@ const BI = D(() => {
|
|
|
26190
26195
|
] }),
|
|
26191
26196
|
/* @__PURE__ */ i(PI, { opened: o, close: l })
|
|
26192
26197
|
] }),
|
|
26193
|
-
/* @__PURE__ */ i(
|
|
26198
|
+
/* @__PURE__ */ i(Wt.Section, { py: 5, sx: {
|
|
26194
26199
|
borderBottom: "1px solid #eee"
|
|
26195
26200
|
}, children: /* @__PURE__ */ i(C, { align: "center", sx: {
|
|
26196
26201
|
userSelect: "none",
|
|
26197
26202
|
cursor: "default"
|
|
26198
26203
|
}, children: "Views" }) }),
|
|
26199
|
-
/* @__PURE__ */ i(
|
|
26204
|
+
/* @__PURE__ */ i(Wt.Section, { grow: !0, sx: {
|
|
26200
26205
|
overflow: "auto"
|
|
26201
26206
|
}, children: /* @__PURE__ */ i(BI, {}) }),
|
|
26202
|
-
/* @__PURE__ */ i(
|
|
26207
|
+
/* @__PURE__ */ i(Wt.Section, { children: /* @__PURE__ */ i(v, { grow: !0, p: "md", pt: "sm", sx: {
|
|
26203
26208
|
borderTop: "1px solid #eee"
|
|
26204
26209
|
}, children: /* @__PURE__ */ i(M, { size: "xs", leftIcon: /* @__PURE__ */ i(ep, { size: 20 }), onClick: () => e.editor.open([]), children: "Settings" }) }) })
|
|
26205
26210
|
] });
|
|
@@ -26296,7 +26301,7 @@ const BI = D(() => {
|
|
|
26296
26301
|
minHeight: "50px"
|
|
26297
26302
|
}, children: [
|
|
26298
26303
|
t.usingQuery && /* @__PURE__ */ u(Y, { children: [
|
|
26299
|
-
/* @__PURE__ */ i(
|
|
26304
|
+
/* @__PURE__ */ i(sn, { opacity: 0.8, color: "#000", sx: {
|
|
26300
26305
|
left: "-5px",
|
|
26301
26306
|
right: "-5px",
|
|
26302
26307
|
top: "-5px",
|
|
@@ -26361,7 +26366,7 @@ const BI = D(() => {
|
|
|
26361
26366
|
minHeight: "50px"
|
|
26362
26367
|
}, children: [
|
|
26363
26368
|
t.usingQuery && /* @__PURE__ */ u(Y, { children: [
|
|
26364
|
-
/* @__PURE__ */ i(
|
|
26369
|
+
/* @__PURE__ */ i(sn, { opacity: 0.8, color: "#000", sx: {
|
|
26365
26370
|
left: "-5px",
|
|
26366
26371
|
right: "-5px",
|
|
26367
26372
|
top: "-5px",
|
|
@@ -26613,7 +26618,7 @@ const BI = D(() => {
|
|
|
26613
26618
|
}), oM = D(() => {
|
|
26614
26619
|
const {
|
|
26615
26620
|
panel: e
|
|
26616
|
-
} =
|
|
26621
|
+
} = Vt();
|
|
26617
26622
|
return /* @__PURE__ */ i($a, { label: "Description", value: e.description, onChange: e.setDescription, styles: {
|
|
26618
26623
|
root: {
|
|
26619
26624
|
flexGrow: 1
|
|
@@ -26622,14 +26627,14 @@ const BI = D(() => {
|
|
|
26622
26627
|
}), aM = D(() => {
|
|
26623
26628
|
const {
|
|
26624
26629
|
panel: e
|
|
26625
|
-
} =
|
|
26630
|
+
} = Vt(), {
|
|
26626
26631
|
style: t
|
|
26627
26632
|
} = e;
|
|
26628
26633
|
return /* @__PURE__ */ i(Y, { children: /* @__PURE__ */ i(Je, { label: "Border", checked: t.border.enabled, onChange: (n) => t.border.setEnabled(n.currentTarget.checked) }) });
|
|
26629
26634
|
}), sM = D(() => {
|
|
26630
26635
|
const {
|
|
26631
26636
|
panel: e
|
|
26632
|
-
} =
|
|
26637
|
+
} = Vt(), {
|
|
26633
26638
|
title: t,
|
|
26634
26639
|
setTitle: n
|
|
26635
26640
|
} = e, [r, o] = El(t), a = t !== r, s = R.useCallback(() => {
|
|
@@ -26712,7 +26717,7 @@ function Cu({
|
|
|
26712
26717
|
});
|
|
26713
26718
|
return e.length === 0 ? /* @__PURE__ */ i(F, { sx: {
|
|
26714
26719
|
height: "5em"
|
|
26715
|
-
} }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ u(
|
|
26720
|
+
} }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ u(Ft, { sx: cM, children: [
|
|
26716
26721
|
/* @__PURE__ */ i("thead", { children: n.getHeaderGroups().map((r) => /* @__PURE__ */ i("tr", { children: r.headers.map((o) => /* @__PURE__ */ u("th", { style: {
|
|
26717
26722
|
width: o.getSize()
|
|
26718
26723
|
}, children: [
|
|
@@ -26725,7 +26730,7 @@ function Cu({
|
|
|
26725
26730
|
const dM = ({
|
|
26726
26731
|
queryID: e
|
|
26727
26732
|
}) => {
|
|
26728
|
-
const t =
|
|
26733
|
+
const t = Ke(), {
|
|
26729
26734
|
state: n,
|
|
26730
26735
|
error: r
|
|
26731
26736
|
} = t.getDataStuffByID(e), o = R.useMemo(() => t.queries.findByID(e), [t, e]);
|
|
@@ -26736,7 +26741,7 @@ const dM = ({
|
|
|
26736
26741
|
id: t,
|
|
26737
26742
|
moreActions: n = null
|
|
26738
26743
|
}) {
|
|
26739
|
-
const r =
|
|
26744
|
+
const r = Ke(), {
|
|
26740
26745
|
data: o,
|
|
26741
26746
|
state: a
|
|
26742
26747
|
} = r.getDataStuffByID(t), s = a === "loading", l = () => {
|
|
@@ -26776,7 +26781,7 @@ const dM = ({
|
|
|
26776
26781
|
}), uM = D(function() {
|
|
26777
26782
|
const t = Oe(), n = _e(), {
|
|
26778
26783
|
panel: r
|
|
26779
|
-
} =
|
|
26784
|
+
} = Vt(), [o, a] = U(!1), s = (l) => {
|
|
26780
26785
|
t.editor.setPath(["_QUERIES_", l]);
|
|
26781
26786
|
};
|
|
26782
26787
|
return /* @__PURE__ */ u(Y, { children: [
|
|
@@ -26875,7 +26880,7 @@ class pM {
|
|
|
26875
26880
|
function fM() {
|
|
26876
26881
|
const {
|
|
26877
26882
|
panel: e
|
|
26878
|
-
} =
|
|
26883
|
+
} = Vt();
|
|
26879
26884
|
return Tt(() => new pM(e), [e]);
|
|
26880
26885
|
}
|
|
26881
26886
|
const Su = qn((e) => ({
|
|
@@ -26925,7 +26930,7 @@ const Su = qn((e) => ({
|
|
|
26925
26930
|
] }),
|
|
26926
26931
|
/* @__PURE__ */ i(hi, { label: "Aggregation", value: t.aggregation, onChange: (l) => s("aggregation", l) }),
|
|
26927
26932
|
/* @__PURE__ */ i(E, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
26928
|
-
/* @__PURE__ */ i(
|
|
26933
|
+
/* @__PURE__ */ i(Ct, { value: t.formatter, onChange: (l) => s("formatter", l) }),
|
|
26929
26934
|
o && /* @__PURE__ */ i(Sc, { value: t, onChange: n })
|
|
26930
26935
|
] });
|
|
26931
26936
|
}), gM = (e) => {
|
|
@@ -26944,7 +26949,7 @@ const Su = qn((e) => ({
|
|
|
26944
26949
|
classes: n
|
|
26945
26950
|
} = Su(), {
|
|
26946
26951
|
data: r
|
|
26947
|
-
} =
|
|
26952
|
+
} = Vt();
|
|
26948
26953
|
return /* @__PURE__ */ u(v, { style: {
|
|
26949
26954
|
height: "100%"
|
|
26950
26955
|
}, align: "start", children: [
|
|
@@ -26972,7 +26977,7 @@ const Su = qn((e) => ({
|
|
|
26972
26977
|
function SM() {
|
|
26973
26978
|
const {
|
|
26974
26979
|
vizManager: e
|
|
26975
|
-
} = Yt(
|
|
26980
|
+
} = Yt(Nt);
|
|
26976
26981
|
return z(() => {
|
|
26977
26982
|
const t = e.availableVizList.map((n) => ({
|
|
26978
26983
|
value: n.name,
|
|
@@ -27015,9 +27020,9 @@ function DM() {
|
|
|
27015
27020
|
removeQueryID: d,
|
|
27016
27021
|
id: p
|
|
27017
27022
|
}
|
|
27018
|
-
} =
|
|
27023
|
+
} = Vt(), {
|
|
27019
27024
|
vizManager: h
|
|
27020
|
-
} = Yt(
|
|
27025
|
+
} = Yt(Nt), f = {
|
|
27021
27026
|
title: r,
|
|
27022
27027
|
description: a,
|
|
27023
27028
|
viz: n,
|
|
@@ -27041,9 +27046,9 @@ const IM = D(() => {
|
|
|
27041
27046
|
panel: {
|
|
27042
27047
|
viz: t
|
|
27043
27048
|
}
|
|
27044
|
-
} =
|
|
27049
|
+
} = Vt(), {
|
|
27045
27050
|
vizManager: n
|
|
27046
|
-
} = Yt(
|
|
27051
|
+
} = Yt(Nt), r = R.useCallback((d) => {
|
|
27047
27052
|
if (d === t.type)
|
|
27048
27053
|
return;
|
|
27049
27054
|
const p = TM(n, d);
|
|
@@ -27272,7 +27277,7 @@ const LM = D(({
|
|
|
27272
27277
|
const {
|
|
27273
27278
|
columns: t
|
|
27274
27279
|
} = e;
|
|
27275
|
-
return t.loading ? /* @__PURE__ */ i(ku, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ u(
|
|
27280
|
+
return t.loading ? /* @__PURE__ */ i(ku, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ u(Ft, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
27276
27281
|
width: "auto",
|
|
27277
27282
|
minWidth: "1000px",
|
|
27278
27283
|
alignSelf: "flex-start",
|
|
@@ -27332,7 +27337,7 @@ const LM = D(({
|
|
|
27332
27337
|
const {
|
|
27333
27338
|
indexes: t
|
|
27334
27339
|
} = e, n = t.data;
|
|
27335
|
-
return /* @__PURE__ */ u(
|
|
27340
|
+
return /* @__PURE__ */ u(Ft, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
27336
27341
|
width: "auto",
|
|
27337
27342
|
minWidth: "950px",
|
|
27338
27343
|
alignSelf: "flex-start",
|
|
@@ -27380,7 +27385,7 @@ const LM = D(({
|
|
|
27380
27385
|
const {
|
|
27381
27386
|
indexes: t
|
|
27382
27387
|
} = e, n = t.data;
|
|
27383
|
-
return /* @__PURE__ */ u(
|
|
27388
|
+
return /* @__PURE__ */ u(Ft, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
27384
27389
|
width: "auto",
|
|
27385
27390
|
minWidth: "850px",
|
|
27386
27391
|
alignSelf: "flex-start",
|
|
@@ -27803,7 +27808,7 @@ function rz({
|
|
|
27803
27808
|
}
|
|
27804
27809
|
const iz = D(() => {
|
|
27805
27810
|
const t = [...Oe().globalSQLSnippets.list];
|
|
27806
|
-
return t.length === 0 ? null : /* @__PURE__ */ u(
|
|
27811
|
+
return t.length === 0 ? null : /* @__PURE__ */ u(Ft, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
|
|
27807
27812
|
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
27808
27813
|
/* @__PURE__ */ i("th", { children: "Key" }),
|
|
27809
27814
|
/* @__PURE__ */ i("th", { children: "Value" })
|
|
@@ -27912,7 +27917,7 @@ WHERE
|
|
|
27912
27917
|
}, o = (a) => {
|
|
27913
27918
|
n.setPath(["_VIEWS_", a]);
|
|
27914
27919
|
};
|
|
27915
|
-
return /* @__PURE__ */ i(S, { py: "sm", px: "md", children: /* @__PURE__ */ u(
|
|
27920
|
+
return /* @__PURE__ */ i(S, { py: "sm", px: "md", children: /* @__PURE__ */ u(Ft, { highlightOnHover: !0, sx: {
|
|
27916
27921
|
tableLayout: "fixed"
|
|
27917
27922
|
}, children: [
|
|
27918
27923
|
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
@@ -28002,7 +28007,7 @@ WHERE
|
|
|
28002
28007
|
} }), dz = D(({
|
|
28003
28008
|
value: e
|
|
28004
28009
|
}) => {
|
|
28005
|
-
const n =
|
|
28010
|
+
const n = Ke().payloadForSQL, r = R.useMemo(() => ra(e, n), [e, n]);
|
|
28006
28011
|
return /* @__PURE__ */ i(cz, { height: "100%", value: r });
|
|
28007
28012
|
}), ol = {
|
|
28008
28013
|
pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
|
|
@@ -28086,7 +28091,7 @@ WHERE
|
|
|
28086
28091
|
}), fz = D(({
|
|
28087
28092
|
value: e
|
|
28088
28093
|
}) => {
|
|
28089
|
-
const n =
|
|
28094
|
+
const n = Ke().payloadForSQL, r = z(() => ra(e, n), [e, n]);
|
|
28090
28095
|
return /* @__PURE__ */ i(Xa, { height: "100%", value: r });
|
|
28091
28096
|
}), mz = D(({
|
|
28092
28097
|
item: e,
|
|
@@ -28222,7 +28227,7 @@ WHERE
|
|
|
28222
28227
|
}) => /* @__PURE__ */ u(F, { sx: {
|
|
28223
28228
|
position: "relative"
|
|
28224
28229
|
}, children: [
|
|
28225
|
-
e && /* @__PURE__ */ i(
|
|
28230
|
+
e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
28226
28231
|
/* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
28227
28232
|
o && n(o);
|
|
28228
28233
|
}, theme: "vs-dark", options: {
|
|
@@ -28392,7 +28397,7 @@ const Rz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28392
28397
|
return Iz(t) ? /* @__PURE__ */ i(Rz, {}) : Mz(t) ? /* @__PURE__ */ i(iM, {}) : zz(t) ? /* @__PURE__ */ i(F, { p: "xs", pl: 20, children: /* @__PURE__ */ i(rM, { id: t[1] }) }) : $z(t) ? /* @__PURE__ */ i(gz, { id: t[1] }) : Lz(t) ? /* @__PURE__ */ i(pz, { id: t[1] }) : Az(t) ? /* @__PURE__ */ i(F, { p: "xs", pl: 20, children: /* @__PURE__ */ i(Dz, { id: t[1] }) }) : Ez(t) ? /* @__PURE__ */ i(AM, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ i(F, { children: e.path });
|
|
28393
28398
|
}), Fz = D(() => /* @__PURE__ */ i(Oz, {})), Pz = D(() => {
|
|
28394
28399
|
const e = Oe();
|
|
28395
|
-
return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(
|
|
28400
|
+
return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
28396
28401
|
const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
|
|
28397
28402
|
id: n,
|
|
28398
28403
|
key: n,
|
|
@@ -28419,7 +28424,7 @@ const Rz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28419
28424
|
if (!e)
|
|
28420
28425
|
return null;
|
|
28421
28426
|
const n = t.views.findByID(e);
|
|
28422
|
-
return n ? /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(
|
|
28427
|
+
return n ? /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => t.addANewPanel(n.id), sx: {
|
|
28423
28428
|
width: "100%",
|
|
28424
28429
|
borderRadius: 0
|
|
28425
28430
|
}, styles: {
|
|
@@ -28429,7 +28434,7 @@ const Rz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28429
28434
|
}, children: "Add a Panel" }) : null;
|
|
28430
28435
|
}), Nz = D(() => {
|
|
28431
28436
|
const e = Oe();
|
|
28432
|
-
return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(
|
|
28437
|
+
return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
28433
28438
|
const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
|
|
28434
28439
|
id: n,
|
|
28435
28440
|
name: n,
|
|
@@ -28448,7 +28453,7 @@ const Rz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28448
28453
|
}, children: "Add a Query" });
|
|
28449
28454
|
}), Bz = D(() => {
|
|
28450
28455
|
const e = Oe();
|
|
28451
|
-
return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(
|
|
28456
|
+
return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
28452
28457
|
const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
|
|
28453
28458
|
key: n,
|
|
28454
28459
|
value: ""
|
|
@@ -28464,7 +28469,7 @@ const Rz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28464
28469
|
}, children: "Add a SQL Snippet" });
|
|
28465
28470
|
}), qz = D(() => {
|
|
28466
28471
|
const e = _e();
|
|
28467
|
-
return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(
|
|
28472
|
+
return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: e.views.addARandomNewView, sx: {
|
|
28468
28473
|
width: "100%",
|
|
28469
28474
|
borderRadius: 0
|
|
28470
28475
|
}, styles: {
|
|
@@ -28490,7 +28495,7 @@ const Rz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28490
28495
|
}, children: e.editor.navOptions.map((t) => /* @__PURE__ */ i(Iu, { option: t }, t.value)) });
|
|
28491
28496
|
}), Gz = D(() => {
|
|
28492
28497
|
const e = Oe();
|
|
28493
|
-
return /* @__PURE__ */ u(
|
|
28498
|
+
return /* @__PURE__ */ u(Wt, { p: 0, width: {
|
|
28494
28499
|
base: 200,
|
|
28495
28500
|
xs: 200,
|
|
28496
28501
|
sm: 220,
|
|
@@ -28500,16 +28505,16 @@ const Rz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
28500
28505
|
}, sx: {
|
|
28501
28506
|
height: "100vh - 60px - 60px"
|
|
28502
28507
|
}, children: [
|
|
28503
|
-
/* @__PURE__ */ i(
|
|
28508
|
+
/* @__PURE__ */ i(Wt.Section, { pt: 9, pb: 8, sx: {
|
|
28504
28509
|
borderBottom: "1px solid #eee"
|
|
28505
28510
|
}, children: /* @__PURE__ */ i(C, { align: "center", sx: {
|
|
28506
28511
|
userSelect: "none",
|
|
28507
28512
|
cursor: "default"
|
|
28508
28513
|
}, children: "Settings" }) }),
|
|
28509
|
-
/* @__PURE__ */ i(
|
|
28514
|
+
/* @__PURE__ */ i(Wt.Section, { grow: !0, sx: {
|
|
28510
28515
|
overflow: "auto"
|
|
28511
28516
|
}, children: /* @__PURE__ */ i(jz, {}) }),
|
|
28512
|
-
/* @__PURE__ */ i(
|
|
28517
|
+
/* @__PURE__ */ i(Wt.Section, { children: /* @__PURE__ */ i(v, { grow: !0, p: "md", pt: "sm", sx: {
|
|
28513
28518
|
borderTop: "1px solid #eee"
|
|
28514
28519
|
}, children: /* @__PURE__ */ i(M, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ i($l, { size: 18 }), onClick: () => e.editor.close(), children: "Close" }) }) })
|
|
28515
28520
|
] });
|
|
@@ -28598,7 +28603,7 @@ const Uz = {
|
|
|
28598
28603
|
h.datasources.replace(d);
|
|
28599
28604
|
}, [d]), R.useEffect(() => {
|
|
28600
28605
|
h.globalSQLSnippets.replace(p);
|
|
28601
|
-
}, [p]), R.useEffect(() =>
|
|
28606
|
+
}, [p]), R.useEffect(() => xt(() => Qt(h.json), (x) => {
|
|
28602
28607
|
s == null || s(x);
|
|
28603
28608
|
}), [h]);
|
|
28604
28609
|
const f = async () => {
|
|
@@ -28606,7 +28611,7 @@ const Uz = {
|
|
|
28606
28611
|
}, m = Tt(qa, []), w = bu(m);
|
|
28607
28612
|
return /* @__PURE__ */ i(hl, { children: /* @__PURE__ */ i(uc, { value: h, children: /* @__PURE__ */ i(mc, { value: h.content, children: /* @__PURE__ */ i(sa.Provider, { value: {
|
|
28608
28613
|
inEditMode: !0
|
|
28609
|
-
}, children: /* @__PURE__ */ i(
|
|
28614
|
+
}, children: /* @__PURE__ */ i(Nt.Provider, { value: m, children: /* @__PURE__ */ u(Si, { configure: w, children: [
|
|
28610
28615
|
/* @__PURE__ */ i(ul, { padding: 0, header: /* @__PURE__ */ i(mI, { saveDashboardChanges: f, headerSlot: l }), navbar: /* @__PURE__ */ i(qI, {}), styles: Uz, children: /* @__PURE__ */ i(F, { className: `${o} dashboard-root`, sx: {
|
|
28611
28616
|
position: "relative"
|
|
28612
28617
|
}, children: h.content.views.visibleViews.map((x) => /* @__PURE__ */ i(qD, { view: x }, x.id)) }) }),
|
|
@@ -28649,7 +28654,7 @@ const Mu = b.model({
|
|
|
28649
28654
|
};
|
|
28650
28655
|
},
|
|
28651
28656
|
get payloadForSQL() {
|
|
28652
|
-
const t =
|
|
28657
|
+
const t = He(e).context.current, n = He(e).globalSQLSnippets, r = {
|
|
28653
28658
|
context: {
|
|
28654
28659
|
...e.mock_context.current,
|
|
28655
28660
|
...t
|
|
@@ -28663,7 +28668,7 @@ const Mu = b.model({
|
|
|
28663
28668
|
};
|
|
28664
28669
|
},
|
|
28665
28670
|
get payloadForViz() {
|
|
28666
|
-
const t =
|
|
28671
|
+
const t = He(e).context.current;
|
|
28667
28672
|
return {
|
|
28668
28673
|
context: {
|
|
28669
28674
|
...e.mock_context.current,
|
|
@@ -28799,7 +28804,7 @@ const TA = D(({
|
|
|
28799
28804
|
setFullScreenPanelID: s
|
|
28800
28805
|
}, children: /* @__PURE__ */ i(sa.Provider, { value: {
|
|
28801
28806
|
inEditMode: !1
|
|
28802
|
-
}, children: /* @__PURE__ */ i(F, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(
|
|
28807
|
+
}, children: /* @__PURE__ */ i(F, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(Nt.Provider, { value: p, children: /* @__PURE__ */ i(Si, { configure: h, children: d.content.views.visibleViews.map((f) => /* @__PURE__ */ i(Ya, { view: f }, f.id)) }) }) }) }) }) }) }) });
|
|
28803
28808
|
});
|
|
28804
28809
|
var co = {}, t$ = {
|
|
28805
28810
|
get exports() {
|
|
@@ -29054,8 +29059,8 @@ var mo = {}, u$ = {
|
|
|
29054
29059
|
T = x, I = l && l.formats;
|
|
29055
29060
|
for (var L = (x = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(re, te, ie) {
|
|
29056
29061
|
var me = ie && ie.toUpperCase();
|
|
29057
|
-
return te || I[ie] || n[ie] || I[me].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(be, Le,
|
|
29058
|
-
return Le ||
|
|
29062
|
+
return te || I[ie] || n[ie] || I[me].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(be, Le, Ue) {
|
|
29063
|
+
return Le || Ue.slice(1);
|
|
29059
29064
|
});
|
|
29060
29065
|
})).match(r), B = L.length, j = 0; j < B; j += 1) {
|
|
29061
29066
|
var N = L[j], O = m[N], A = O && O[0], K = O && O[1];
|
|
@@ -29067,15 +29072,15 @@ var mo = {}, u$ = {
|
|
|
29067
29072
|
if (typeof be == "string")
|
|
29068
29073
|
me += be.length;
|
|
29069
29074
|
else {
|
|
29070
|
-
var Le = be.regex,
|
|
29071
|
-
|
|
29075
|
+
var Le = be.regex, Ue = be.parser, De = re.slice(me), Fe = Le.exec(De)[0];
|
|
29076
|
+
Ue.call(te, Fe), re = re.replace(Fe, "");
|
|
29072
29077
|
}
|
|
29073
29078
|
}
|
|
29074
|
-
return function(
|
|
29075
|
-
var tt =
|
|
29079
|
+
return function(Ie) {
|
|
29080
|
+
var tt = Ie.afternoon;
|
|
29076
29081
|
if (tt !== void 0) {
|
|
29077
|
-
var gt =
|
|
29078
|
-
tt ? gt < 12 && (
|
|
29082
|
+
var gt = Ie.hours;
|
|
29083
|
+
tt ? gt < 12 && (Ie.hours += 12) : gt === 12 && (Ie.hours = 0), delete Ie.afternoon;
|
|
29079
29084
|
}
|
|
29080
29085
|
}(te), te;
|
|
29081
29086
|
};
|
|
@@ -29089,14 +29094,14 @@ var mo = {}, u$ = {
|
|
|
29089
29094
|
var K = A[1];
|
|
29090
29095
|
if (typeof K == "string") {
|
|
29091
29096
|
var re = A[2] === !0, te = A[3] === !0, ie = re || te, me = A[2];
|
|
29092
|
-
te && (me = A[2]), l = this.$locale(), !re && me && (l = I.Ls[me]), this.$d = function(
|
|
29097
|
+
te && (me = A[2]), l = this.$locale(), !re && me && (l = I.Ls[me]), this.$d = function(De, Fe, Ie) {
|
|
29093
29098
|
try {
|
|
29094
29099
|
if (["x", "X"].indexOf(Fe) > -1)
|
|
29095
|
-
return new Date((Fe === "X" ? 1e3 : 1) *
|
|
29096
|
-
var tt = w(Fe)(
|
|
29097
|
-
gt && !hn || (Ln = hn > 0 ? hn - 1 :
|
|
29098
|
-
var An = Cr || 0, Xn = Di || 0, Jn = Ii || 0,
|
|
29099
|
-
return $n ? new Date(Date.UTC(
|
|
29100
|
+
return new Date((Fe === "X" ? 1e3 : 1) * De);
|
|
29101
|
+
var tt = w(Fe)(De), gt = tt.year, hn = tt.month, _r = tt.day, Cr = tt.hours, Di = tt.minutes, Ii = tt.seconds, Un = tt.milliseconds, $n = tt.zone, Xt = /* @__PURE__ */ new Date(), pn = _r || (gt || hn ? 1 : Xt.getDate()), Jt = gt || Xt.getFullYear(), Ln = 0;
|
|
29102
|
+
gt && !hn || (Ln = hn > 0 ? hn - 1 : Xt.getMonth());
|
|
29103
|
+
var An = Cr || 0, Xn = Di || 0, Jn = Ii || 0, Zt = Un || 0;
|
|
29104
|
+
return $n ? new Date(Date.UTC(Jt, Ln, pn, An, Xn, Jn, Zt + 60 * $n.offset * 1e3)) : Ie ? new Date(Date.UTC(Jt, Ln, pn, An, Xn, Jn, Zt)) : new Date(Jt, Ln, pn, An, Xn, Jn, Zt);
|
|
29100
29105
|
} catch {
|
|
29101
29106
|
return /* @__PURE__ */ new Date("");
|
|
29102
29107
|
}
|
|
@@ -29104,9 +29109,9 @@ var mo = {}, u$ = {
|
|
|
29104
29109
|
} else if (K instanceof Array)
|
|
29105
29110
|
for (var be = K.length, Le = 1; Le <= be; Le += 1) {
|
|
29106
29111
|
A[1] = K[Le - 1];
|
|
29107
|
-
var
|
|
29108
|
-
if (
|
|
29109
|
-
this.$d =
|
|
29112
|
+
var Ue = I.apply(this, A);
|
|
29113
|
+
if (Ue.isValid()) {
|
|
29114
|
+
this.$d = Ue.$d, this.$L = Ue.$L, this.init();
|
|
29110
29115
|
break;
|
|
29111
29116
|
}
|
|
29112
29117
|
Le === be && (this.$d = /* @__PURE__ */ new Date(""));
|
|
@@ -29201,7 +29206,7 @@ var bo = {}, m$ = {
|
|
|
29201
29206
|
this.$d.weeks && (re += 7 * this.$d.weeks);
|
|
29202
29207
|
var te = B(re, "D"), ie = B(this.$d.hours, "H"), me = B(this.$d.minutes, "M"), be = this.$d.seconds || 0;
|
|
29203
29208
|
this.$d.milliseconds && (be += this.$d.milliseconds / 1e3);
|
|
29204
|
-
var Le = B(be, "S"),
|
|
29209
|
+
var Le = B(be, "S"), Ue = A.negative || K.negative || te.negative || ie.negative || me.negative || Le.negative, De = ie.format || me.format || Le.format ? "T" : "", Fe = (Ue ? "-" : "") + "P" + A.format + K.format + te.format + De + ie.format + me.format + Le.format;
|
|
29205
29210
|
return Fe === "P" || Fe === "-P" ? "P0D" : Fe;
|
|
29206
29211
|
}, O.toJSON = function() {
|
|
29207
29212
|
return this.toISOString();
|
|
@@ -30217,10 +30222,10 @@ export {
|
|
|
30217
30222
|
hc as useDashboardContext,
|
|
30218
30223
|
_e as useEditContentModelContext,
|
|
30219
30224
|
Oe as useEditDashboardContext,
|
|
30220
|
-
|
|
30225
|
+
Vt as useEditPanelContext,
|
|
30221
30226
|
Cf as useFullScreenPanelContext,
|
|
30222
30227
|
SD as usePanelFullScreen,
|
|
30223
|
-
|
|
30228
|
+
Ke as useRenderContentModelContext,
|
|
30224
30229
|
pc as useRenderDashboardContext,
|
|
30225
30230
|
Mn as useRenderPanelContext
|
|
30226
30231
|
};
|