@devtable/dashboard 10.42.0 → 10.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +479 -469
- package/dist/dashboard.umd.js +42 -42
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var dh = Object.defineProperty;
|
|
2
2
|
var uh = (e, t, n) => t in e ? dh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var H = (e, t, n) => (uh(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import R, { useState as Q, useEffect as W, useCallback as Ke, useMemo as z, forwardRef as xe, createElement as si, useContext as rn, useRef as li, createContext as
|
|
5
|
-
import { Box as P, Select as O, Stack as S, Text as C, Group as x, TextInput as $, Button as I, Switch as Ue, NumberInput as ie, Divider as A, Table as St, ActionIcon as U, MultiSelect as gr, Paper as Jo, Code as
|
|
6
|
-
import { useModals as At, ModalsProvider as
|
|
7
|
-
import { useBoolean as Ye, useCreation as $t, useAsyncEffect as Tr, useRequest as Dn, useWhyDidYouUpdate as
|
|
8
|
-
import { observable as
|
|
4
|
+
import R, { useState as Q, useEffect as W, useCallback as Ke, useMemo as z, forwardRef as xe, createElement as si, useContext as rn, useRef as li, createContext as xl, memo as hh } from "react";
|
|
5
|
+
import { Box as P, Select as O, Stack as S, Text as C, Group as x, TextInput as $, Button as I, Switch as Ue, NumberInput as ie, Divider as A, Table as St, ActionIcon as U, MultiSelect as gr, Paper as Jo, Code as Cs, Modal as De, Tabs as g, LoadingOverlay as Ln, Alert as Zo, NativeSelect as vl, useMantineTheme as wl, ColorInput as ea, ColorSwatch as no, Slider as ph, Overlay as on, Checkbox as ce, Center as $n, CheckIcon as mh, MANTINE_SIZES as fh, SimpleGrid as mn, Tooltip as Oe, SegmentedControl as gh, HoverCard as et, Anchor as ro, Textarea as bh, Collapse as ta, Mark as yh, createStyles as Jn, Popover as Bi, Flex as gn, Badge as br, CloseButton as _l, Menu as he, Affix as xh, Header as vh, ThemeIcon as qi, List as Ss, UnstyledButton as wh, Navbar as Xt, JsonInput as Cl, Pagination as Sl, Drawer as _h, Radio as ks, Skeleton as Ts, NavLink as io, AppShell as kl } from "@mantine/core";
|
|
6
|
+
import { useModals as At, ModalsProvider as Tl } from "@mantine/modals";
|
|
7
|
+
import { useBoolean as Ye, useCreation as $t, useAsyncEffect as Tr, useRequest as Dn, useWhyDidYouUpdate as Dl, useLatest as Ds, usePrevious as Ch } from "ahooks";
|
|
8
|
+
import { observable as Il, runInAction as hr, toJS as an, reaction as ft, makeAutoObservable as Dr } from "mobx";
|
|
9
9
|
import { observer as D } from "mobx-react-lite";
|
|
10
10
|
import * as Sh from "crypto-js";
|
|
11
11
|
import kh from "crypto-js";
|
|
12
12
|
import re from "dayjs";
|
|
13
|
-
import k, { unset as Th, get as ue, isObject as
|
|
13
|
+
import k, { unset as Th, get as ue, isObject as Ml, set as na, omit as In, isFunction as Dh, orderBy as Ih, last as zl, defaults as Ee, minBy as Mh, maxBy as zh, cloneDeep as He, values as Ll, template as ra, throttle as Lh, isEqual as ke, defaultsDeep as Ie, keyBy as $h, isEmpty as $l, isNumber as Ah, findLastIndex as Eh, isString as Al, range as Rh, cloneDeepWith as El, pick as Rl } from "lodash";
|
|
14
14
|
import oe from "numbro";
|
|
15
15
|
import * as Oh from "d3-array";
|
|
16
16
|
import { quantile as Wr } from "d3-array";
|
|
17
17
|
import * as jr from "mathjs";
|
|
18
18
|
import { faker as Fh } from "@faker-js/faker";
|
|
19
19
|
import Zt from "axios";
|
|
20
|
-
import
|
|
20
|
+
import Is from "eventemitter2";
|
|
21
21
|
import yr, { random as ci } from "chroma-js";
|
|
22
22
|
import rt from "echarts-for-react/lib/core";
|
|
23
23
|
import "echarts-gl";
|
|
@@ -25,47 +25,47 @@ import { GridComponent as bt, VisualMapComponent as Ir, LegendComponent as yt, T
|
|
|
25
25
|
import * as be from "echarts/core";
|
|
26
26
|
import { CanvasRenderer as it } from "echarts/renderers";
|
|
27
27
|
import { useForm as Le, Controller as y, useFieldArray as ze, useWatch as Vh } from "react-hook-form";
|
|
28
|
-
import { DeviceFloppy as we, ArrowRight as Wi, Trash as ye, AlertCircle as Nh, PlaylistAdd as ui, Recycle as kt, InfoCircle as bn, Plus as Ne, Calendar as Bh, Refresh as oa, Download as aa, ArrowsMaximize as
|
|
28
|
+
import { DeviceFloppy as we, ArrowRight as Wi, Trash as ye, AlertCircle as Nh, PlaylistAdd as ui, Recycle as kt, InfoCircle as bn, Plus as Ne, Calendar as Bh, Refresh as oa, Download as aa, ArrowsMaximize as Ol, Settings as Fl, Copy as qh, ArrowLeft as Wh, ArrowsMove as jh, ChevronDownRight as Gh, ChevronsUpRight as Yh, ArrowBarToRight as Hh } from "tabler-icons-react";
|
|
29
29
|
import { BoxplotChart as Qh, BarChart as Zn, LineChart as er, ScatterChart as hi, FunnelChart as Uh, HeatmapChart as pi, PieChart as Kh, RadarChart as Xh, SunburstChart as Jh } from "echarts/charts";
|
|
30
|
-
import { IconDeviceFloppy as sn, IconTextSize as sa, IconInfoCircle as An, IconPlayerSkipBack as
|
|
31
|
-
import { useClipboard as vp, randomId as Mn, useDisclosure as da, useElementSize as xr, useInputState as
|
|
30
|
+
import { IconDeviceFloppy as sn, IconTextSize as sa, IconInfoCircle as An, IconPlayerSkipBack as Pl, IconRecycle as la, IconMathFunction as Zh, IconPlus as jt, IconBorderAll as ep, IconTrash as fn, IconArrowDown as tp, IconArrowUp as np, IconCamera as mi, IconShare3 as rp, IconDownload as Vl, IconCode as Nl, IconArrowsLeftRight as ip, IconVariable as Bl, IconCodeDots as op, IconFilter as ql, IconCopy as ap, IconDatabase as fi, IconBoxMultiple as Wl, IconMenu2 as sp, IconCaretDown as lp, IconAlertTriangle as jl, IconArrowLeft as cp, IconPlaylistAdd as dp, IconCircleDashed as up, IconCircleDot as hp, IconCircleOff as pp, IconAdjustments as mp, IconLink as fp, IconSettings as ca, IconArrowCurveRight as oo, IconLine as gp, IconX as Gl, IconEye as Yl, IconTable as bp, IconColumns as yp, IconAlertCircle as Ms, IconVariablePlus as xp } from "@tabler/icons-react";
|
|
31
|
+
import { useClipboard as vp, randomId as Mn, useDisclosure as da, useElementSize as xr, useInputState as Hl } from "@mantine/hooks";
|
|
32
32
|
import { showNotification as gi } from "@mantine/notifications";
|
|
33
|
-
import { RichTextEditor as se, Link as
|
|
34
|
-
import { Color as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import { useEditor as
|
|
47
|
-
import
|
|
33
|
+
import { RichTextEditor as se, Link as Ql, useRichTextEditorContext as wp } from "@mantine/tiptap";
|
|
34
|
+
import { Color as Ul } from "@tiptap/extension-color";
|
|
35
|
+
import Kl from "@tiptap/extension-highlight";
|
|
36
|
+
import Xl from "@tiptap/extension-placeholder";
|
|
37
|
+
import Jl from "@tiptap/extension-subscript";
|
|
38
|
+
import Zl from "@tiptap/extension-superscript";
|
|
39
|
+
import ec from "@tiptap/extension-text-align";
|
|
40
|
+
import tc from "@tiptap/extension-text-style";
|
|
41
|
+
import nc from "@tiptap/extension-table";
|
|
42
|
+
import rc from "@tiptap/extension-table-cell";
|
|
43
|
+
import ic from "@tiptap/extension-table-header";
|
|
44
|
+
import oc from "@tiptap/extension-table-row";
|
|
45
|
+
import ac from "@tiptap/extension-underline";
|
|
46
|
+
import { useEditor as sc } from "@tiptap/react";
|
|
47
|
+
import lc from "@tiptap/starter-kit";
|
|
48
48
|
import "prosemirror-keymap";
|
|
49
|
-
import { createParagraphNear as _p, deleteSelection as Cp, exitCode as Sp, joinUp as kp, joinDown as Tp, joinBackward as Dp, joinForward as Ip, lift as Mp, liftEmptyBlock as zp, newlineInCode as Lp, selectNodeBackward as $p, selectNodeForward as Ap, selectParentNode as Ep, selectTextblockEnd as Rp, selectTextblockStart as Op, setBlockType as
|
|
49
|
+
import { createParagraphNear as _p, deleteSelection as Cp, exitCode as Sp, joinUp as kp, joinDown as Tp, joinBackward as Dp, joinForward as Ip, lift as Mp, liftEmptyBlock as zp, newlineInCode as Lp, selectNodeBackward as $p, selectNodeForward as Ap, selectParentNode as Ep, selectTextblockEnd as Rp, selectTextblockStart as Op, setBlockType as zs, wrapIn as Fp } from "prosemirror-commands";
|
|
50
50
|
import { liftListItem as Pp, sinkListItem as Vp, wrapInList as Np } from "prosemirror-schema-list";
|
|
51
51
|
import ot, { loader as ji } from "@monaco-editor/react";
|
|
52
52
|
import { interpolate as En } from "popmotion";
|
|
53
53
|
import * as pn from "d3-regression";
|
|
54
54
|
import { Prism as zn } from "@mantine/prism";
|
|
55
|
-
import { flexRender as Xr, createColumnHelper as
|
|
55
|
+
import { flexRender as Xr, createColumnHelper as cc, useReactTable as dc, getCoreRowModel as uc, getSortedRowModel as Bp } from "@tanstack/react-table";
|
|
56
56
|
import { useVirtual as qp } from "react-virtual";
|
|
57
57
|
import { DatePickerInput as Wp } from "@mantine/dates";
|
|
58
58
|
import jp, { Option as Gp } from "rc-select";
|
|
59
59
|
import Yp, { SHOW_PARENT as Hp } from "rc-tree-select";
|
|
60
|
-
import
|
|
61
|
-
import { types as b, cast as Nt, getParent as Ge, getRoot as Ae, addDisposer as Lt, isAlive as
|
|
60
|
+
import hc, { WidthProvider as pc } from "react-grid-layout";
|
|
61
|
+
import { types as b, cast as Nt, getParent as Ge, getRoot as Ae, addDisposer as Lt, isAlive as Ls, flow as Hn, toGenerator as wn, clone as Qp, getSnapshot as en, applySnapshot as st, addMiddleware as Up, getType as Kp, detach as ao, castToSnapshot as mc } from "mobx-state-tree";
|
|
62
62
|
import { arrayToTree as Xp } from "performant-array-to-tree";
|
|
63
63
|
import { AsyncParser as Jp } from "@json2csv/whatwg";
|
|
64
64
|
import { saveAs as ua } from "file-saver";
|
|
65
65
|
import Zp from "jszip";
|
|
66
|
-
import
|
|
66
|
+
import fc from "dom-to-image-more";
|
|
67
67
|
import { useNavigate as em } from "react-router-dom";
|
|
68
|
-
import tm, { Position as zt, Handle as
|
|
68
|
+
import tm, { Position as zt, Handle as $s, MiniMap as nm, Controls as rm, Background as im } from "reactflow";
|
|
69
69
|
var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, vr = {}, om = {
|
|
70
70
|
get exports() {
|
|
71
71
|
return vr;
|
|
@@ -83,11 +83,11 @@ var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
83
83
|
* This source code is licensed under the MIT license found in the
|
|
84
84
|
* LICENSE file in the root directory of this source tree.
|
|
85
85
|
*/
|
|
86
|
-
var
|
|
86
|
+
var As;
|
|
87
87
|
function am() {
|
|
88
|
-
if (
|
|
88
|
+
if (As)
|
|
89
89
|
return cr;
|
|
90
|
-
|
|
90
|
+
As = 1;
|
|
91
91
|
var e = R, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
92
92
|
function s(l, c, d) {
|
|
93
93
|
var p, h = {}, m = null, f = null;
|
|
@@ -111,9 +111,9 @@ var dr = {};
|
|
|
111
111
|
* This source code is licensed under the MIT license found in the
|
|
112
112
|
* LICENSE file in the root directory of this source tree.
|
|
113
113
|
*/
|
|
114
|
-
var
|
|
114
|
+
var Es;
|
|
115
115
|
function sm() {
|
|
116
|
-
return
|
|
116
|
+
return Es || (Es = 1, process.env.NODE_ENV !== "production" && function() {
|
|
117
117
|
var e = R, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), w = Symbol.iterator, v = "@@iterator";
|
|
118
118
|
function T(_) {
|
|
119
119
|
if (_ === null || typeof _ != "object")
|
|
@@ -352,8 +352,8 @@ function sm() {
|
|
|
352
352
|
} finally {
|
|
353
353
|
vn = !1, ir.current = Se, Ri(), Error.prepareStackTrace = fe;
|
|
354
354
|
}
|
|
355
|
-
var qn = _ ? _.displayName || _.name : "",
|
|
356
|
-
return typeof _ == "function" && dn.set(_,
|
|
355
|
+
var qn = _ ? _.displayName || _.name : "", _s = qn ? cn(qn) : "";
|
|
356
|
+
return typeof _ == "function" && dn.set(_, _s), _s;
|
|
357
357
|
}
|
|
358
358
|
function or(_, F, G) {
|
|
359
359
|
return Nn(_, !1);
|
|
@@ -391,13 +391,13 @@ function sm() {
|
|
|
391
391
|
}
|
|
392
392
|
return "";
|
|
393
393
|
}
|
|
394
|
-
var sr = Object.prototype.hasOwnProperty,
|
|
394
|
+
var sr = Object.prototype.hasOwnProperty, ds = {}, us = M.ReactDebugCurrentFrame;
|
|
395
395
|
function Or(_) {
|
|
396
396
|
if (_) {
|
|
397
397
|
var F = _._owner, G = un(_.type, _._source, F ? F.type : null);
|
|
398
|
-
|
|
398
|
+
us.setExtraStackFrame(G);
|
|
399
399
|
} else
|
|
400
|
-
|
|
400
|
+
us.setExtraStackFrame(null);
|
|
401
401
|
}
|
|
402
402
|
function ju(_, F, G, ne, fe) {
|
|
403
403
|
{
|
|
@@ -414,7 +414,7 @@ function sm() {
|
|
|
414
414
|
} catch (Re) {
|
|
415
415
|
le = Re;
|
|
416
416
|
}
|
|
417
|
-
le && !(le instanceof Error) && (Or(fe), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", G, de, typeof le), Or(null)), le instanceof Error && !(le.message in
|
|
417
|
+
le && !(le instanceof Error) && (Or(fe), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", G, de, typeof le), Or(null)), le instanceof Error && !(le.message in ds) && (ds[le.message] = !0, Or(fe), L("Failed %s type: %s", G, le.message), Or(null));
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
}
|
|
@@ -430,24 +430,24 @@ function sm() {
|
|
|
430
430
|
}
|
|
431
431
|
function Hu(_) {
|
|
432
432
|
try {
|
|
433
|
-
return
|
|
433
|
+
return hs(_), !1;
|
|
434
434
|
} catch {
|
|
435
435
|
return !0;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function hs(_) {
|
|
439
439
|
return "" + _;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function ps(_) {
|
|
442
442
|
if (Hu(_))
|
|
443
|
-
return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Yu(_)),
|
|
443
|
+
return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Yu(_)), hs(_);
|
|
444
444
|
}
|
|
445
445
|
var lr = M.ReactCurrentOwner, Qu = {
|
|
446
446
|
key: !0,
|
|
447
447
|
ref: !0,
|
|
448
448
|
__self: !0,
|
|
449
449
|
__source: !0
|
|
450
|
-
},
|
|
450
|
+
}, ms, fs, Fi;
|
|
451
451
|
Fi = {};
|
|
452
452
|
function Uu(_) {
|
|
453
453
|
if (sr.call(_, "ref")) {
|
|
@@ -474,7 +474,7 @@ function sm() {
|
|
|
474
474
|
function Ju(_, F) {
|
|
475
475
|
{
|
|
476
476
|
var G = function() {
|
|
477
|
-
|
|
477
|
+
ms || (ms = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", F));
|
|
478
478
|
};
|
|
479
479
|
G.isReactWarning = !0, Object.defineProperty(_, "key", {
|
|
480
480
|
get: G,
|
|
@@ -485,7 +485,7 @@ function sm() {
|
|
|
485
485
|
function Zu(_, F) {
|
|
486
486
|
{
|
|
487
487
|
var G = function() {
|
|
488
|
-
|
|
488
|
+
fs || (fs = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", F));
|
|
489
489
|
};
|
|
490
490
|
G.isReactWarning = !0, Object.defineProperty(_, "ref", {
|
|
491
491
|
get: G,
|
|
@@ -525,7 +525,7 @@ function sm() {
|
|
|
525
525
|
function th(_, F, G, ne, fe) {
|
|
526
526
|
{
|
|
527
527
|
var Se, de = {}, le = null, Ze = null;
|
|
528
|
-
G !== void 0 && (
|
|
528
|
+
G !== void 0 && (ps(G), le = "" + G), Ku(F) && (ps(F.key), le = "" + F.key), Uu(F) && (Ze = F.ref, Xu(F, fe));
|
|
529
529
|
for (Se in F)
|
|
530
530
|
sr.call(F, Se) && !Qu.hasOwnProperty(Se) && (de[Se] = F[Se]);
|
|
531
531
|
if (_ && _.defaultProps) {
|
|
@@ -540,20 +540,20 @@ function sm() {
|
|
|
540
540
|
return eh(_, le, Ze, fe, ne, lr.current, de);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
var Pi = M.ReactCurrentOwner,
|
|
543
|
+
var Pi = M.ReactCurrentOwner, gs = M.ReactDebugCurrentFrame;
|
|
544
544
|
function Bn(_) {
|
|
545
545
|
if (_) {
|
|
546
546
|
var F = _._owner, G = un(_.type, _._source, F ? F.type : null);
|
|
547
|
-
|
|
547
|
+
gs.setExtraStackFrame(G);
|
|
548
548
|
} else
|
|
549
|
-
|
|
549
|
+
gs.setExtraStackFrame(null);
|
|
550
550
|
}
|
|
551
551
|
var Vi;
|
|
552
552
|
Vi = !1;
|
|
553
553
|
function Ni(_) {
|
|
554
554
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function bs() {
|
|
557
557
|
{
|
|
558
558
|
if (Pi.current) {
|
|
559
559
|
var _ = Ce(Pi.current.type);
|
|
@@ -576,10 +576,10 @@ Check your code at ` + F + ":" + G + ".";
|
|
|
576
576
|
return "";
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
var
|
|
579
|
+
var ys = {};
|
|
580
580
|
function rh(_) {
|
|
581
581
|
{
|
|
582
|
-
var F =
|
|
582
|
+
var F = bs();
|
|
583
583
|
if (!F) {
|
|
584
584
|
var G = typeof _ == "string" ? _ : _.displayName || _.name;
|
|
585
585
|
G && (F = `
|
|
@@ -589,27 +589,27 @@ Check the top-level render call using <` + G + ">.");
|
|
|
589
589
|
return F;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function xs(_, F) {
|
|
593
593
|
{
|
|
594
594
|
if (!_._store || _._store.validated || _.key != null)
|
|
595
595
|
return;
|
|
596
596
|
_._store.validated = !0;
|
|
597
597
|
var G = rh(F);
|
|
598
|
-
if (
|
|
598
|
+
if (ys[G])
|
|
599
599
|
return;
|
|
600
|
-
|
|
600
|
+
ys[G] = !0;
|
|
601
601
|
var ne = "";
|
|
602
602
|
_ && _._owner && _._owner !== Pi.current && (ne = " It was passed a child from " + Ce(_._owner.type) + "."), Bn(_), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, ne), Bn(null);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function vs(_, F) {
|
|
606
606
|
{
|
|
607
607
|
if (typeof _ != "object")
|
|
608
608
|
return;
|
|
609
609
|
if (Oi(_))
|
|
610
610
|
for (var G = 0; G < _.length; G++) {
|
|
611
611
|
var ne = _[G];
|
|
612
|
-
Ni(ne) &&
|
|
612
|
+
Ni(ne) && xs(ne, F);
|
|
613
613
|
}
|
|
614
614
|
else if (Ni(_))
|
|
615
615
|
_._store && (_._store.validated = !0);
|
|
@@ -617,7 +617,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
617
617
|
var fe = T(_);
|
|
618
618
|
if (typeof fe == "function" && fe !== _.entries)
|
|
619
619
|
for (var Se = fe.call(_), de; !(de = Se.next()).done; )
|
|
620
|
-
Ni(de.value) &&
|
|
620
|
+
Ni(de.value) && xs(de.value, F);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
}
|
|
@@ -658,14 +658,14 @@ Check the top-level render call using <` + G + ">.");
|
|
|
658
658
|
_.ref !== null && (Bn(_), L("Invalid attribute `ref` supplied to `React.Fragment`."), Bn(null));
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function ws(_, F, G, ne, fe, Se) {
|
|
662
662
|
{
|
|
663
663
|
var de = Z(_);
|
|
664
664
|
if (!de) {
|
|
665
665
|
var le = "";
|
|
666
666
|
(_ === void 0 || typeof _ == "object" && _ !== null && Object.keys(_).length === 0) && (le += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
667
667
|
var Ze = nh(fe);
|
|
668
|
-
Ze ? le += Ze : le +=
|
|
668
|
+
Ze ? le += Ze : le += bs();
|
|
669
669
|
var Re;
|
|
670
670
|
_ === null ? Re = "null" : Oi(_) ? Re = "array" : _ !== void 0 && _.$$typeof === t ? (Re = "<" + (Ce(_.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : Re = typeof _, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Re, le);
|
|
671
671
|
}
|
|
@@ -678,21 +678,21 @@ Check the top-level render call using <` + G + ">.");
|
|
|
678
678
|
if (ne)
|
|
679
679
|
if (Oi(wt)) {
|
|
680
680
|
for (var qn = 0; qn < wt.length; qn++)
|
|
681
|
-
|
|
681
|
+
vs(wt[qn], _);
|
|
682
682
|
Object.freeze && Object.freeze(wt);
|
|
683
683
|
} else
|
|
684
684
|
L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
685
685
|
else
|
|
686
|
-
|
|
686
|
+
vs(wt, _);
|
|
687
687
|
}
|
|
688
688
|
return _ === r ? oh(Pe) : ih(Pe), Pe;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
function ah(_, F, G) {
|
|
692
|
-
return
|
|
692
|
+
return ws(_, F, G, !0);
|
|
693
693
|
}
|
|
694
694
|
function sh(_, F, G) {
|
|
695
|
-
return
|
|
695
|
+
return ws(_, F, G, !1);
|
|
696
696
|
}
|
|
697
697
|
var lh = sh, ch = ah;
|
|
698
698
|
dr.Fragment = r, dr.jsx = lh, dr.jsxs = ch;
|
|
@@ -952,20 +952,20 @@ class bm {
|
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
const jn = new gm();
|
|
955
|
-
function
|
|
955
|
+
function gc(e) {
|
|
956
956
|
jn.baseURL !== e.apiBaseURL && (jn.baseURL = e.apiBaseURL), e.app_id && (jn.app_id = e.app_id), e.app_secret && (jn.app_secret = e.app_secret), e.makeQueryENV && (jn.makeQueryENV = e.makeQueryENV);
|
|
957
957
|
}
|
|
958
958
|
const ym = new bm(jn), Jt = ym;
|
|
959
|
-
function
|
|
959
|
+
function Rs() {
|
|
960
960
|
return {
|
|
961
961
|
filters: {},
|
|
962
962
|
context: {}
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
const t =
|
|
965
|
+
function ma(e) {
|
|
966
|
+
const t = Rs();
|
|
967
967
|
if (!e)
|
|
968
|
-
return
|
|
968
|
+
return Rs();
|
|
969
969
|
const {
|
|
970
970
|
filters: n = t.filters,
|
|
971
971
|
context: r = t.context
|
|
@@ -1003,7 +1003,7 @@ async function xm({
|
|
|
1003
1003
|
name: t
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
|
-
return m = hm(d, m,
|
|
1006
|
+
return m = hm(d, m, ma(n)), m;
|
|
1007
1007
|
}
|
|
1008
1008
|
async function vm({
|
|
1009
1009
|
type: e,
|
|
@@ -1029,7 +1029,7 @@ async function vm({
|
|
|
1029
1029
|
return console.error(s), s;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
async function
|
|
1032
|
+
async function fa() {
|
|
1033
1033
|
try {
|
|
1034
1034
|
return (await Jt.post()("/datasource/list", {
|
|
1035
1035
|
filter: {},
|
|
@@ -1066,7 +1066,7 @@ async function bc() {
|
|
|
1066
1066
|
class yc {
|
|
1067
1067
|
constructor(t) {
|
|
1068
1068
|
H(this, "rootRef");
|
|
1069
|
-
this.rootRef =
|
|
1069
|
+
this.rootRef = Il({
|
|
1070
1070
|
current: t
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
@@ -1084,7 +1084,7 @@ class yc {
|
|
|
1084
1084
|
}
|
|
1085
1085
|
setItem(t, n) {
|
|
1086
1086
|
if (t === null)
|
|
1087
|
-
if (
|
|
1087
|
+
if (Ml(n))
|
|
1088
1088
|
hr(() => {
|
|
1089
1089
|
this.rootRef.current = n;
|
|
1090
1090
|
});
|
|
@@ -1108,13 +1108,13 @@ class yc {
|
|
|
1108
1108
|
class wm {
|
|
1109
1109
|
constructor() {
|
|
1110
1110
|
H(this, "channels", /* @__PURE__ */ new Map());
|
|
1111
|
-
H(this, "globalChannel", new
|
|
1111
|
+
H(this, "globalChannel", new Is());
|
|
1112
1112
|
}
|
|
1113
1113
|
getChannel(t) {
|
|
1114
1114
|
const n = this.channels.get(t);
|
|
1115
1115
|
if (n)
|
|
1116
1116
|
return n;
|
|
1117
|
-
const r = new
|
|
1117
|
+
const r = new Is();
|
|
1118
1118
|
return this.channels.set(t, r), r;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
@@ -1249,14 +1249,14 @@ class Lm {
|
|
|
1249
1249
|
function Kt(e) {
|
|
1250
1250
|
return new Lm(e);
|
|
1251
1251
|
}
|
|
1252
|
-
class
|
|
1252
|
+
class ga {
|
|
1253
1253
|
constructor() {
|
|
1254
1254
|
H(this, "parent");
|
|
1255
1255
|
H(this, "factoryRegistry", /* @__PURE__ */ new Map());
|
|
1256
1256
|
H(this, "instanceRegistry", /* @__PURE__ */ new Map());
|
|
1257
1257
|
}
|
|
1258
1258
|
createScoped() {
|
|
1259
|
-
const t = new
|
|
1259
|
+
const t = new ga();
|
|
1260
1260
|
return t.parent = this, t;
|
|
1261
1261
|
}
|
|
1262
1262
|
getRequired(t) {
|
|
@@ -1286,7 +1286,7 @@ class fa {
|
|
|
1286
1286
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
const wc = "10.42.
|
|
1289
|
+
const wc = "10.42.2", $m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1290
1290
|
__proto__: null,
|
|
1291
1291
|
version: wc
|
|
1292
1292
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1371,7 +1371,7 @@ class Rm {
|
|
|
1371
1371
|
if (t.from > t.to)
|
|
1372
1372
|
throw new Error(`Can not downgrade from version '${t.from}' to (${t.to})`);
|
|
1373
1373
|
const o = this.migrations.filter((l) => l.version > t.from && l.version <= t.to), a = Ih(o, "version", "asc");
|
|
1374
|
-
if (((s =
|
|
1374
|
+
if (((s = zl(a)) == null ? void 0 : s.version) !== t.to)
|
|
1375
1375
|
throw new Error(`Migration to version ${t.to} not found`);
|
|
1376
1376
|
return a.reduce((l, c) => c.handler(l, r), n);
|
|
1377
1377
|
}
|
|
@@ -1477,7 +1477,7 @@ function Gr(e, t) {
|
|
|
1477
1477
|
} = q(t);
|
|
1478
1478
|
return e[r];
|
|
1479
1479
|
}
|
|
1480
|
-
const
|
|
1480
|
+
const ba = {
|
|
1481
1481
|
x_axis_data_key: "",
|
|
1482
1482
|
y_axis_data_key: "",
|
|
1483
1483
|
z_axis_data_key: "",
|
|
@@ -1510,7 +1510,7 @@ function Pm({
|
|
|
1510
1510
|
xAxis3D: c,
|
|
1511
1511
|
yAxis3D: d,
|
|
1512
1512
|
zAxis3D: p
|
|
1513
|
-
} = Ee({}, t,
|
|
1513
|
+
} = Ee({}, t, ba), h = z(() => zr(n, a), [n, a]), {
|
|
1514
1514
|
x: m,
|
|
1515
1515
|
y: f,
|
|
1516
1516
|
z: w
|
|
@@ -1587,7 +1587,7 @@ function zc() {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
const _e = () => zc(), je = () => zc(), Nm = {
|
|
1589
1589
|
inEditMode: !1
|
|
1590
|
-
},
|
|
1590
|
+
}, ya = R.createContext(Nm), Lc = R.createContext({
|
|
1591
1591
|
panel: null,
|
|
1592
1592
|
data: {},
|
|
1593
1593
|
loading: !1,
|
|
@@ -1638,7 +1638,7 @@ function Wm({
|
|
|
1638
1638
|
const {
|
|
1639
1639
|
value: t,
|
|
1640
1640
|
set: n
|
|
1641
|
-
} = ee(e.instanceData, "config"), r = Ee({}, t,
|
|
1641
|
+
} = ee(e.instanceData, "config"), r = Ee({}, t, ba), {
|
|
1642
1642
|
control: o,
|
|
1643
1643
|
handleSubmit: a,
|
|
1644
1644
|
reset: s
|
|
@@ -1752,7 +1752,7 @@ const Ym = {
|
|
|
1752
1752
|
createConfig() {
|
|
1753
1753
|
return {
|
|
1754
1754
|
version: 2,
|
|
1755
|
-
config: He(
|
|
1755
|
+
config: He(ba)
|
|
1756
1756
|
};
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
@@ -2018,7 +2018,7 @@ function Ft(e) {
|
|
|
2018
2018
|
ellipsis: e.ellipsis
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
2021
|
-
const
|
|
2021
|
+
const xa = {
|
|
2022
2022
|
x_axis: {
|
|
2023
2023
|
name: "X Axis",
|
|
2024
2024
|
data_key: "",
|
|
@@ -2097,7 +2097,7 @@ class Qn {
|
|
|
2097
2097
|
}, r);
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
|
-
class
|
|
2100
|
+
class va {
|
|
2101
2101
|
constructor(t, n, r) {
|
|
2102
2102
|
H(this, "attachmentStorage");
|
|
2103
2103
|
this.instance = t, this.attachmentKey = n, this.constructInstance = r, this.attachmentStorage = new Qn(t.instanceData, n);
|
|
@@ -2114,7 +2114,7 @@ class xa {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
async list() {
|
|
2116
2116
|
const t = await this.attachmentStorage.getItem(null);
|
|
2117
|
-
return Promise.all(
|
|
2117
|
+
return Promise.all(Ll(t).map((n) => this.constructInstance(new Qn(this.attachmentStorage, n.id))));
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
2120
|
function Xm(e, t) {
|
|
@@ -2375,7 +2375,7 @@ class vf {
|
|
|
2375
2375
|
operationData: new Qn(o, "data")
|
|
2376
2376
|
};
|
|
2377
2377
|
};
|
|
2378
|
-
this.attachments = new
|
|
2378
|
+
this.attachments = new va(t, "__OPERATIONS", r);
|
|
2379
2379
|
}
|
|
2380
2380
|
async runOperation(t, n) {
|
|
2381
2381
|
const r = await this.attachments.getInstance(t);
|
|
@@ -2435,7 +2435,7 @@ class vf {
|
|
|
2435
2435
|
return await this.attachments.getInstance(t);
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
|
-
const
|
|
2438
|
+
const Os = "__TRIGGERS";
|
|
2439
2439
|
class wf {
|
|
2440
2440
|
constructor(t, n) {
|
|
2441
2441
|
H(this, "attachments");
|
|
@@ -2451,11 +2451,11 @@ class wf {
|
|
|
2451
2451
|
triggerData: new Qn(o, "data")
|
|
2452
2452
|
};
|
|
2453
2453
|
};
|
|
2454
|
-
this.attachments = new
|
|
2454
|
+
this.attachments = new va(t, Os, r);
|
|
2455
2455
|
}
|
|
2456
2456
|
watchTriggerSnapshotList(t) {
|
|
2457
|
-
return this.instance.instanceData.watchItem(
|
|
2458
|
-
const r =
|
|
2457
|
+
return this.instance.instanceData.watchItem(Os, (n) => {
|
|
2458
|
+
const r = Ll(n).map((o) => ({
|
|
2459
2459
|
id: ue(o, "id"),
|
|
2460
2460
|
schemaRef: ue(o, "schemaRef"),
|
|
2461
2461
|
config: an(ue(o, "data.config"))
|
|
@@ -2507,7 +2507,7 @@ class wf {
|
|
|
2507
2507
|
await Promise.all(t.map((n) => n()));
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
|
-
class
|
|
2510
|
+
class wa {
|
|
2511
2511
|
constructor(t, n, r) {
|
|
2512
2512
|
H(this, "operationManager");
|
|
2513
2513
|
H(this, "triggerManager");
|
|
@@ -2525,7 +2525,7 @@ class va {
|
|
|
2525
2525
|
operationRef: c
|
|
2526
2526
|
};
|
|
2527
2527
|
};
|
|
2528
|
-
this.attachments = new
|
|
2528
|
+
this.attachments = new va(t, "__INTERACTIONS", o);
|
|
2529
2529
|
}
|
|
2530
2530
|
async addInteraction(t, n) {
|
|
2531
2531
|
const r = t.id, o = n.id, a = `[${r}]:[${o}]`;
|
|
@@ -2568,7 +2568,7 @@ class va {
|
|
|
2568
2568
|
const Dt = ({
|
|
2569
2569
|
vizManager: e,
|
|
2570
2570
|
instance: t
|
|
2571
|
-
}) => $t(() => new
|
|
2571
|
+
}) => $t(() => new wa(t, e.resolveComponent(t.type), yi), [t, e]), Oc = (e) => {
|
|
2572
2572
|
const {
|
|
2573
2573
|
title: t = "Variables",
|
|
2574
2574
|
variables: n
|
|
@@ -2583,12 +2583,12 @@ const Dt = ({
|
|
|
2583
2583
|
/* @__PURE__ */ i(S, { style: {
|
|
2584
2584
|
maxHeight: "500px"
|
|
2585
2585
|
}, children: n.map((a) => /* @__PURE__ */ u(C, { size: "sm", children: [
|
|
2586
|
-
/* @__PURE__ */ u(
|
|
2586
|
+
/* @__PURE__ */ u(Cs, { color: "teal", children: [
|
|
2587
2587
|
"// ",
|
|
2588
2588
|
a.description
|
|
2589
2589
|
] }),
|
|
2590
2590
|
/* @__PURE__ */ i("br", {}),
|
|
2591
|
-
/* @__PURE__ */ u(
|
|
2591
|
+
/* @__PURE__ */ u(Cs, { onClick: () => o(a.name), style: {
|
|
2592
2592
|
cursor: "pointer"
|
|
2593
2593
|
}, children: [
|
|
2594
2594
|
a.name,
|
|
@@ -2817,7 +2817,7 @@ const Of = D(({
|
|
|
2817
2817
|
data: t
|
|
2818
2818
|
} = On(), n = e.viz, {
|
|
2819
2819
|
vizManager: r
|
|
2820
|
-
} = rn(Yt), o = e.json, a = $t(() => r.getOrCreateInstance(o), [r, o]), s = $t(() => new
|
|
2820
|
+
} = rn(Yt), o = e.json, a = $t(() => r.getOrCreateInstance(o), [r, o]), s = $t(() => new wa(a, r.resolveComponent(n.type), yi), [a, n.type]);
|
|
2821
2821
|
return W(() => a.instanceData.watchItem(
|
|
2822
2822
|
null,
|
|
2823
2823
|
// avoid too many updates
|
|
@@ -3035,7 +3035,7 @@ const wr = xe(function({
|
|
|
3035
3035
|
...r
|
|
3036
3036
|
}, o) {
|
|
3037
3037
|
return /* @__PURE__ */ i($, { ref: o, value: t, onChange: n, ...r });
|
|
3038
|
-
}),
|
|
3038
|
+
}), _a = {
|
|
3039
3039
|
fontSize: "14px",
|
|
3040
3040
|
lineHeight: "32px",
|
|
3041
3041
|
color: "#3D3E45",
|
|
@@ -3667,7 +3667,7 @@ class Zr {
|
|
|
3667
3667
|
Parse a document from the content of a DOM node.
|
|
3668
3668
|
*/
|
|
3669
3669
|
parse(t, n = {}) {
|
|
3670
|
-
let r = new
|
|
3670
|
+
let r = new Ps(this, n, !1);
|
|
3671
3671
|
return r.addAll(t, n.from, n.to), r.finish();
|
|
3672
3672
|
}
|
|
3673
3673
|
/**
|
|
@@ -3679,7 +3679,7 @@ class Zr {
|
|
|
3679
3679
|
the left of the input and the end of nodes at the end.
|
|
3680
3680
|
*/
|
|
3681
3681
|
parseSlice(t, n = {}) {
|
|
3682
|
-
let r = new
|
|
3682
|
+
let r = new Ps(this, n, !0);
|
|
3683
3683
|
return r.addAll(t, n.from, n.to), ve.maxOpen(r.finish());
|
|
3684
3684
|
}
|
|
3685
3685
|
/**
|
|
@@ -3736,13 +3736,13 @@ class Zr {
|
|
|
3736
3736
|
for (let o in t.marks) {
|
|
3737
3737
|
let a = t.marks[o].spec.parseDOM;
|
|
3738
3738
|
a && a.forEach((s) => {
|
|
3739
|
-
r(s =
|
|
3739
|
+
r(s = Vs(s)), s.mark || s.ignore || s.clearMark || (s.mark = o);
|
|
3740
3740
|
});
|
|
3741
3741
|
}
|
|
3742
3742
|
for (let o in t.nodes) {
|
|
3743
3743
|
let a = t.nodes[o].spec.parseDOM;
|
|
3744
3744
|
a && a.forEach((s) => {
|
|
3745
|
-
r(s =
|
|
3745
|
+
r(s = Vs(s)), s.node || s.ignore || s.mark || (s.node = o);
|
|
3746
3746
|
});
|
|
3747
3747
|
}
|
|
3748
3748
|
return n;
|
|
@@ -3797,7 +3797,7 @@ const Bc = {
|
|
|
3797
3797
|
style: !0,
|
|
3798
3798
|
title: !0
|
|
3799
3799
|
}, qc = { ol: !0, ul: !0 }, ei = 1, ti = 2, pr = 4;
|
|
3800
|
-
function
|
|
3800
|
+
function Fs(e, t, n) {
|
|
3801
3801
|
return t != null ? (t ? ei : 0) | (t === "full" ? ti : 0) : e && e.whitespace == "pre" ? ei | ti : n & ~pr;
|
|
3802
3802
|
}
|
|
3803
3803
|
class Pr {
|
|
@@ -3844,10 +3844,10 @@ class Pr {
|
|
|
3844
3844
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !Bc.hasOwnProperty(t.parentNode.nodeName.toLowerCase());
|
|
3845
3845
|
}
|
|
3846
3846
|
}
|
|
3847
|
-
class
|
|
3847
|
+
class Ps {
|
|
3848
3848
|
constructor(t, n, r) {
|
|
3849
3849
|
this.parser = t, this.options = n, this.isOpen = r, this.open = 0;
|
|
3850
|
-
let o = n.topNode, a, s =
|
|
3850
|
+
let o = n.topNode, a, s = Fs(null, n.preserveWhitespace, 0) | (r ? pr : 0);
|
|
3851
3851
|
o ? a = new Pr(o.type, o.attrs, pt.none, pt.none, !0, n.topMatch || o.type.contentMatch, s) : r ? a = new Pr(null, null, pt.none, pt.none, !0, null, s) : a = new Pr(t.schema.topNodeType, null, pt.none, pt.none, !0, null, s), this.nodes = [a], this.find = n.findPositions, this.needsBlock = !1;
|
|
3852
3852
|
}
|
|
3853
3853
|
get top() {
|
|
@@ -4018,7 +4018,7 @@ class Fs {
|
|
|
4018
4018
|
this.closeExtra();
|
|
4019
4019
|
let a = this.top;
|
|
4020
4020
|
a.applyPending(t), a.match = a.match && a.match.matchType(t);
|
|
4021
|
-
let s =
|
|
4021
|
+
let s = Fs(t, o, a.options);
|
|
4022
4022
|
a.options & pr && a.content.length == 0 && (s |= pr), this.nodes.push(new Pr(t, n, a.activeMarks, a.pendingMarks, r, null, s)), this.open++;
|
|
4023
4023
|
}
|
|
4024
4024
|
// Make sure all nodes above this.open are finished and added to
|
|
@@ -4144,7 +4144,7 @@ function eg(e) {
|
|
|
4144
4144
|
r.push(n[1], n[2].trim());
|
|
4145
4145
|
return r;
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function Vs(e) {
|
|
4148
4148
|
let t = {};
|
|
4149
4149
|
for (let n in e)
|
|
4150
4150
|
t[n] = e[n];
|
|
@@ -4177,14 +4177,14 @@ const Wc = 65535, jc = Math.pow(2, 16);
|
|
|
4177
4177
|
function rg(e, t) {
|
|
4178
4178
|
return e + t * jc;
|
|
4179
4179
|
}
|
|
4180
|
-
function
|
|
4180
|
+
function Ns(e) {
|
|
4181
4181
|
return e & Wc;
|
|
4182
4182
|
}
|
|
4183
4183
|
function ig(e) {
|
|
4184
4184
|
return (e - (e & Wc)) / jc;
|
|
4185
4185
|
}
|
|
4186
4186
|
const Gc = 1, Yc = 2, Yr = 4, Hc = 8;
|
|
4187
|
-
class
|
|
4187
|
+
class Bs {
|
|
4188
4188
|
/**
|
|
4189
4189
|
@internal
|
|
4190
4190
|
*/
|
|
@@ -4234,7 +4234,7 @@ class _t {
|
|
|
4234
4234
|
@internal
|
|
4235
4235
|
*/
|
|
4236
4236
|
recover(t) {
|
|
4237
|
-
let n = 0, r =
|
|
4237
|
+
let n = 0, r = Ns(t);
|
|
4238
4238
|
if (!this.inverted)
|
|
4239
4239
|
for (let o = 0; o < r; o++)
|
|
4240
4240
|
n += this.ranges[o * 3 + 2] - this.ranges[o * 3 + 1];
|
|
@@ -4261,17 +4261,17 @@ class _t {
|
|
|
4261
4261
|
if (r)
|
|
4262
4262
|
return f;
|
|
4263
4263
|
let w = t == (n < 0 ? c : h) ? null : rg(l / 3, t - c), v = t == c ? Yc : t == h ? Gc : Yr;
|
|
4264
|
-
return (n < 0 ? t != c : t != h) && (v |= Hc), new
|
|
4264
|
+
return (n < 0 ? t != c : t != h) && (v |= Hc), new Bs(f, v, w);
|
|
4265
4265
|
}
|
|
4266
4266
|
o += p - d;
|
|
4267
4267
|
}
|
|
4268
|
-
return r ? t + o : new
|
|
4268
|
+
return r ? t + o : new Bs(t + o, 0, null);
|
|
4269
4269
|
}
|
|
4270
4270
|
/**
|
|
4271
4271
|
@internal
|
|
4272
4272
|
*/
|
|
4273
4273
|
touches(t, n) {
|
|
4274
|
-
let r = 0, o =
|
|
4274
|
+
let r = 0, o = Ns(n), a = this.inverted ? 2 : 1, s = this.inverted ? 1 : 2;
|
|
4275
4275
|
for (let l = 0; l < this.ranges.length; l += 3) {
|
|
4276
4276
|
let c = this.ranges[l] - (this.inverted ? r : 0);
|
|
4277
4277
|
if (c > t)
|
|
@@ -4393,11 +4393,11 @@ class qe {
|
|
|
4393
4393
|
}
|
|
4394
4394
|
}
|
|
4395
4395
|
}
|
|
4396
|
-
function
|
|
4396
|
+
function Ca(e, t, n) {
|
|
4397
4397
|
let r = [];
|
|
4398
4398
|
for (let o = 0; o < e.childCount; o++) {
|
|
4399
4399
|
let a = e.child(o);
|
|
4400
|
-
a.content.size && (a = a.copy(
|
|
4400
|
+
a.content.size && (a = a.copy(Ca(a.content, t, a))), a.isInline && (a = t(a, n, o)), r.push(a);
|
|
4401
4401
|
}
|
|
4402
4402
|
return ge.fromArray(r);
|
|
4403
4403
|
}
|
|
@@ -4409,7 +4409,7 @@ class _n extends ut {
|
|
|
4409
4409
|
super(), this.from = t, this.to = n, this.mark = r;
|
|
4410
4410
|
}
|
|
4411
4411
|
apply(t) {
|
|
4412
|
-
let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), a = new ve(
|
|
4412
|
+
let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), a = new ve(Ca(n.content, (s, l) => !s.isAtom || !l.type.allowsMarkType(this.mark.type) ? s : s.mark(this.mark.addToSet(s.marks)), o), n.openStart, n.openEnd);
|
|
4413
4413
|
return qe.fromReplace(t, this.from, this.to, a);
|
|
4414
4414
|
}
|
|
4415
4415
|
invert() {
|
|
@@ -4448,7 +4448,7 @@ class Cn extends ut {
|
|
|
4448
4448
|
super(), this.from = t, this.to = n, this.mark = r;
|
|
4449
4449
|
}
|
|
4450
4450
|
apply(t) {
|
|
4451
|
-
let n = t.slice(this.from, this.to), r = new ve(
|
|
4451
|
+
let n = t.slice(this.from, this.to), r = new ve(Ca(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
|
|
4452
4452
|
return qe.fromReplace(t, this.from, this.to, r);
|
|
4453
4453
|
}
|
|
4454
4454
|
invert() {
|
|
@@ -4840,7 +4840,7 @@ class Me {
|
|
|
4840
4840
|
let a = t.steps.length, s = this.ranges;
|
|
4841
4841
|
for (let l = 0; l < s.length; l++) {
|
|
4842
4842
|
let { $from: c, $to: d } = s[l], p = t.mapping.slice(a);
|
|
4843
|
-
t.replaceRange(p.map(c.pos), p.map(d.pos), l ? ve.empty : n), l == 0 &&
|
|
4843
|
+
t.replaceRange(p.map(c.pos), p.map(d.pos), l ? ve.empty : n), l == 0 && js(t, a, (r ? r.isInline : o && o.isTextblock) ? -1 : 1);
|
|
4844
4844
|
}
|
|
4845
4845
|
}
|
|
4846
4846
|
/**
|
|
@@ -4851,7 +4851,7 @@ class Me {
|
|
|
4851
4851
|
let r = t.steps.length, o = this.ranges;
|
|
4852
4852
|
for (let a = 0; a < o.length; a++) {
|
|
4853
4853
|
let { $from: s, $to: l } = o[a], c = t.mapping.slice(r), d = c.map(s.pos), p = c.map(l.pos);
|
|
4854
|
-
a ? t.deleteRange(d, p) : (t.replaceRangeWith(d, p, n),
|
|
4854
|
+
a ? t.deleteRange(d, p) : (t.replaceRangeWith(d, p, n), js(t, r, n.isInline ? -1 : 1));
|
|
4855
4855
|
}
|
|
4856
4856
|
}
|
|
4857
4857
|
/**
|
|
@@ -4941,16 +4941,16 @@ class lg {
|
|
|
4941
4941
|
this.$from = t, this.$to = n;
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
4944
|
-
let
|
|
4945
|
-
function
|
|
4946
|
-
!
|
|
4944
|
+
let qs = !1;
|
|
4945
|
+
function Ws(e) {
|
|
4946
|
+
!qs && !e.parent.inlineContent && (qs = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
|
|
4947
4947
|
}
|
|
4948
4948
|
class We extends Me {
|
|
4949
4949
|
/**
|
|
4950
4950
|
Construct a text selection between the given points.
|
|
4951
4951
|
*/
|
|
4952
4952
|
constructor(t, n = t) {
|
|
4953
|
-
|
|
4953
|
+
Ws(t), Ws(n), super(t, n);
|
|
4954
4954
|
}
|
|
4955
4955
|
/**
|
|
4956
4956
|
Returns a resolved position if this is a cursor selection (an
|
|
@@ -5051,7 +5051,7 @@ class mt extends Me {
|
|
|
5051
5051
|
return { type: "node", anchor: this.anchor };
|
|
5052
5052
|
}
|
|
5053
5053
|
getBookmark() {
|
|
5054
|
-
return new
|
|
5054
|
+
return new Sa(this.anchor);
|
|
5055
5055
|
}
|
|
5056
5056
|
/**
|
|
5057
5057
|
@internal
|
|
@@ -5077,13 +5077,13 @@ class mt extends Me {
|
|
|
5077
5077
|
}
|
|
5078
5078
|
mt.prototype.visible = !1;
|
|
5079
5079
|
Me.jsonID("node", mt);
|
|
5080
|
-
class
|
|
5080
|
+
class Sa {
|
|
5081
5081
|
constructor(t) {
|
|
5082
5082
|
this.anchor = t;
|
|
5083
5083
|
}
|
|
5084
5084
|
map(t) {
|
|
5085
5085
|
let { deleted: n, pos: r } = t.mapResult(this.anchor);
|
|
5086
|
-
return n ? new xi(r, r) : new
|
|
5086
|
+
return n ? new xi(r, r) : new Sa(r);
|
|
5087
5087
|
}
|
|
5088
5088
|
resolve(t) {
|
|
5089
5089
|
let n = t.resolve(this.anchor), r = n.nodeAfter;
|
|
@@ -5150,7 +5150,7 @@ function Gn(e, t, n, r, o, a = !1) {
|
|
|
5150
5150
|
}
|
|
5151
5151
|
return null;
|
|
5152
5152
|
}
|
|
5153
|
-
function
|
|
5153
|
+
function js(e, t, n) {
|
|
5154
5154
|
let r = e.steps.length - 1;
|
|
5155
5155
|
if (r < t)
|
|
5156
5156
|
return;
|
|
@@ -5162,12 +5162,12 @@ function Ws(e, t, n) {
|
|
|
5162
5162
|
s == null && (s = p);
|
|
5163
5163
|
}), e.setSelection(Me.near(e.doc.resolve(s), n));
|
|
5164
5164
|
}
|
|
5165
|
-
function
|
|
5165
|
+
function Gs(e, t) {
|
|
5166
5166
|
return !t || !e ? e : e.bind(t);
|
|
5167
5167
|
}
|
|
5168
5168
|
class Vr {
|
|
5169
5169
|
constructor(t, n, r) {
|
|
5170
|
-
this.name = t, this.init =
|
|
5170
|
+
this.name = t, this.init = Gs(n.init, r), this.apply = Gs(n.apply, r);
|
|
5171
5171
|
}
|
|
5172
5172
|
}
|
|
5173
5173
|
new Vr("doc", {
|
|
@@ -5569,7 +5569,7 @@ function Lg(e, t = null) {
|
|
|
5569
5569
|
const o = n.from, a = r.to;
|
|
5570
5570
|
return t === "all" ? We.create(e, kn(0, o, a), kn(e.content.size, o, a)) : We.create(e, kn(t, o, a), kn(t, o, a));
|
|
5571
5571
|
}
|
|
5572
|
-
function
|
|
5572
|
+
function ka() {
|
|
5573
5573
|
return [
|
|
5574
5574
|
"iPad Simulator",
|
|
5575
5575
|
"iPhone Simulator",
|
|
@@ -5585,7 +5585,7 @@ const $g = (e = null, t = {}) => ({ editor: n, view: r, tr: o, dispatch: a }) =>
|
|
|
5585
5585
|
...t
|
|
5586
5586
|
};
|
|
5587
5587
|
const s = () => {
|
|
5588
|
-
|
|
5588
|
+
ka() && r.dom.focus(), requestAnimationFrame(() => {
|
|
5589
5589
|
n.isDestroyed || (r.focus(), t != null && t.scrollIntoView && n.commands.scrollIntoView());
|
|
5590
5590
|
});
|
|
5591
5591
|
};
|
|
@@ -5596,7 +5596,7 @@ const $g = (e = null, t = {}) => ({ editor: n, view: r, tr: o, dispatch: a }) =>
|
|
|
5596
5596
|
const l = Lg(o.doc, e) || n.state.selection, c = n.state.selection.eq(l);
|
|
5597
5597
|
return a && (c || o.setSelection(l), c && o.storedMarks && o.setStoredMarks(o.storedMarks), s()), !0;
|
|
5598
5598
|
}, Ag = (e, t) => (n) => e.every((r, o) => t(r, { ...n, index: o })), Eg = (e, t) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, e, t);
|
|
5599
|
-
function
|
|
5599
|
+
function Ys(e) {
|
|
5600
5600
|
const t = `<body>${e}</body>`;
|
|
5601
5601
|
return new window.DOMParser().parseFromString(t, "text/html").body;
|
|
5602
5602
|
}
|
|
@@ -5613,7 +5613,7 @@ function ri(e, t, n) {
|
|
|
5613
5613
|
}
|
|
5614
5614
|
if (typeof e == "string") {
|
|
5615
5615
|
const r = Zr.fromSchema(t);
|
|
5616
|
-
return n.slice ? r.parseSlice(
|
|
5616
|
+
return n.slice ? r.parseSlice(Ys(e), n.parseOptions).content : r.parse(Ys(e), n.parseOptions);
|
|
5617
5617
|
}
|
|
5618
5618
|
return ri("", t, n);
|
|
5619
5619
|
}
|
|
@@ -5675,7 +5675,7 @@ function qg(e) {
|
|
|
5675
5675
|
else if (/^s(hift)?$/i.test(c))
|
|
5676
5676
|
a = !0;
|
|
5677
5677
|
else if (/^mod$/i.test(c))
|
|
5678
|
-
|
|
5678
|
+
ka() || td() ? s = !0 : o = !0;
|
|
5679
5679
|
else
|
|
5680
5680
|
throw new Error(`Unrecognized modifier name: ${c}`);
|
|
5681
5681
|
}
|
|
@@ -5698,7 +5698,7 @@ const Wg = (e) => ({ editor: t, view: n, tr: r, dispatch: o }) => {
|
|
|
5698
5698
|
p && o && r.maybeStep(p);
|
|
5699
5699
|
}), !0;
|
|
5700
5700
|
};
|
|
5701
|
-
function
|
|
5701
|
+
function Ta(e, t, n = {}) {
|
|
5702
5702
|
const { from: r, to: o, empty: a } = e.selection, s = t ? Xe(t, e.schema) : null, l = [];
|
|
5703
5703
|
e.doc.nodesBetween(r, o, (h, m) => {
|
|
5704
5704
|
if (h.isText)
|
|
@@ -5715,7 +5715,7 @@ function ka(e, t, n = {}) {
|
|
|
5715
5715
|
}
|
|
5716
5716
|
const jg = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
5717
5717
|
const o = Xe(e, n.schema);
|
|
5718
|
-
return
|
|
5718
|
+
return Ta(n, o, t) ? Mp(n, r) : !1;
|
|
5719
5719
|
}, Gg = () => ({ state: e, dispatch: t }) => zp(e, t), Yg = (e) => ({ state: t, dispatch: n }) => {
|
|
5720
5720
|
const r = Xe(e, t.schema);
|
|
5721
5721
|
return Pp(r)(t, n);
|
|
@@ -5723,7 +5723,7 @@ const jg = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
|
5723
5723
|
function nd(e, t) {
|
|
5724
5724
|
return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
|
|
5725
5725
|
}
|
|
5726
|
-
function
|
|
5726
|
+
function Hs(e, t) {
|
|
5727
5727
|
const n = typeof t == "string" ? [t] : t;
|
|
5728
5728
|
return Object.keys(e).reduce((r, o) => (n.includes(o) || (r[o] = e[o]), r), {});
|
|
5729
5729
|
}
|
|
@@ -5732,8 +5732,8 @@ const Qg = (e, t) => ({ tr: n, state: r, dispatch: o }) => {
|
|
|
5732
5732
|
const l = nd(typeof e == "string" ? e : e.name, r.schema);
|
|
5733
5733
|
return l ? (l === "node" && (a = Xe(e, r.schema)), l === "mark" && (s = yn(e, r.schema)), o && n.selection.ranges.forEach((c) => {
|
|
5734
5734
|
r.doc.nodesBetween(c.$from.pos, c.$to.pos, (d, p) => {
|
|
5735
|
-
a && a === d.type && n.setNodeMarkup(p, void 0,
|
|
5736
|
-
s === h.type && n.addMark(p, p + d.nodeSize, s.create(
|
|
5735
|
+
a && a === d.type && n.setNodeMarkup(p, void 0, Hs(d.attrs, t)), s && d.marks.length && d.marks.forEach((h) => {
|
|
5736
|
+
s === h.type && n.addMark(p, p + d.nodeSize, s.create(Hs(h.attrs, t)));
|
|
5737
5737
|
});
|
|
5738
5738
|
});
|
|
5739
5739
|
}), !0) : !1;
|
|
@@ -5768,7 +5768,7 @@ function ob(e, t) {
|
|
|
5768
5768
|
};
|
|
5769
5769
|
}
|
|
5770
5770
|
}
|
|
5771
|
-
function
|
|
5771
|
+
function Da(e) {
|
|
5772
5772
|
return (t) => ob(t.$from, e);
|
|
5773
5773
|
}
|
|
5774
5774
|
function ab(e, t) {
|
|
@@ -5808,7 +5808,7 @@ function sb(e, t, n = {}) {
|
|
|
5808
5808
|
const c = l.filter((h) => a ? a.name === h.mark.type.name : !0).filter((h) => ni(h.mark.attrs, n, { strict: !1 })).reduce((h, m) => h + m.to - m.from, 0), d = l.filter((h) => a ? h.mark.type !== a && h.mark.type.excludes(a) : !0).reduce((h, m) => h + m.to - m.from, 0);
|
|
5809
5809
|
return (c > 0 ? c + d : c) >= s;
|
|
5810
5810
|
}
|
|
5811
|
-
function
|
|
5811
|
+
function Qs(e, t) {
|
|
5812
5812
|
const { nodeExtensions: n } = ug(t), r = n.find((s) => s.name === e);
|
|
5813
5813
|
if (!r)
|
|
5814
5814
|
return !1;
|
|
@@ -5866,7 +5866,7 @@ const cb = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
|
5866
5866
|
return lb(r, n, c);
|
|
5867
5867
|
}, db = (e, t) => ({ tr: n }) => (n.setMeta(e, t), !0), ub = (e, t = {}) => ({ state: n, dispatch: r, chain: o }) => {
|
|
5868
5868
|
const a = Xe(e, n.schema);
|
|
5869
|
-
return a.isTextblock ? o().command(({ commands: s }) =>
|
|
5869
|
+
return a.isTextblock ? o().command(({ commands: s }) => zs(a, t)(n) ? !0 : s.clearNodes()).command(({ state: s }) => zs(a, t)(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
5870
5870
|
}, hb = (e) => ({ tr: t, dispatch: n }) => {
|
|
5871
5871
|
if (n) {
|
|
5872
5872
|
const { doc: r } = t, o = kn(e, 0, r.content.size), a = mt.create(r, o);
|
|
@@ -5883,7 +5883,7 @@ const cb = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
|
5883
5883
|
const r = Xe(e, t.schema);
|
|
5884
5884
|
return Vp(r)(t, n);
|
|
5885
5885
|
};
|
|
5886
|
-
function
|
|
5886
|
+
function Us(e, t) {
|
|
5887
5887
|
const n = e.storedMarks || e.selection.$to.parentOffset && e.selection.$from.marks();
|
|
5888
5888
|
if (n) {
|
|
5889
5889
|
const r = n.filter((o) => t == null ? void 0 : t.includes(o.type.name));
|
|
@@ -5893,7 +5893,7 @@ function Qs(e, t) {
|
|
|
5893
5893
|
const fb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor: o }) => {
|
|
5894
5894
|
const { selection: a, doc: s } = t, { $from: l, $to: c } = a, d = o.extensionManager.attributes, p = Qr(d, l.node().type.name, l.node().attrs);
|
|
5895
5895
|
if (a instanceof mt && a.node.isBlock)
|
|
5896
|
-
return !l.parentOffset || !Hr(s, l.pos) ? !1 : (r && (e &&
|
|
5896
|
+
return !l.parentOffset || !Hr(s, l.pos) ? !1 : (r && (e && Us(n, o.extensionManager.splittableMarks), t.split(l.pos).scrollIntoView()), !0);
|
|
5897
5897
|
if (!l.parent.isBlock)
|
|
5898
5898
|
return !1;
|
|
5899
5899
|
if (r) {
|
|
@@ -5915,7 +5915,7 @@ const fb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
5915
5915
|
const v = t.mapping.map(l.before()), T = t.doc.resolve(v);
|
|
5916
5916
|
l.node(-1).canReplaceWith(T.index(), T.index() + 1, m) && t.setNodeMarkup(t.mapping.map(l.before()), m);
|
|
5917
5917
|
}
|
|
5918
|
-
e &&
|
|
5918
|
+
e && Us(n, o.extensionManager.splittableMarks), t.scrollIntoView();
|
|
5919
5919
|
}
|
|
5920
5920
|
return !0;
|
|
5921
5921
|
}, gb = (e) => ({ tr: t, state: n, dispatch: r, editor: o }) => {
|
|
@@ -5965,7 +5965,7 @@ const fb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
5965
5965
|
}
|
|
5966
5966
|
return !0;
|
|
5967
5967
|
}, Ki = (e, t) => {
|
|
5968
|
-
const n =
|
|
5968
|
+
const n = Da((s) => s.type === t)(e.selection);
|
|
5969
5969
|
if (!n)
|
|
5970
5970
|
return !0;
|
|
5971
5971
|
const r = e.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
|
|
@@ -5974,7 +5974,7 @@ const fb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
5974
5974
|
const o = e.doc.nodeAt(r);
|
|
5975
5975
|
return n.node.type === (o == null ? void 0 : o.type) && Qc(e.doc, n.pos) && e.join(n.pos), !0;
|
|
5976
5976
|
}, Xi = (e, t) => {
|
|
5977
|
-
const n =
|
|
5977
|
+
const n = Da((s) => s.type === t)(e.selection);
|
|
5978
5978
|
if (!n)
|
|
5979
5979
|
return !0;
|
|
5980
5980
|
const r = e.doc.resolve(n.start).after(n.depth);
|
|
@@ -5986,11 +5986,11 @@ const fb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
5986
5986
|
const { extensions: h, splittableMarks: m } = o.extensionManager, f = Xe(e, s.schema), w = Xe(t, s.schema), { selection: v, storedMarks: T } = s, { $from: M, $to: L } = v, B = M.blockRange(L), K = T || v.$to.parentOffset && v.$from.marks();
|
|
5987
5987
|
if (!B)
|
|
5988
5988
|
return !1;
|
|
5989
|
-
const V =
|
|
5989
|
+
const V = Da((N) => Qs(N.type.name, h))(v);
|
|
5990
5990
|
if (B.depth >= 1 && V && B.depth - V.depth <= 1) {
|
|
5991
5991
|
if (V.node.type === f)
|
|
5992
5992
|
return d.liftListItem(w);
|
|
5993
|
-
if (
|
|
5993
|
+
if (Qs(V.node.type.name, h) && f.validContent(V.node.content) && l)
|
|
5994
5994
|
return c().command(() => (a.setNodeMarkup(V.pos, f), !0)).command(() => Ki(a, f)).command(() => Xi(a, f)).run();
|
|
5995
5995
|
}
|
|
5996
5996
|
return !n || !K || !l ? c().command(() => p().wrapInList(f, r) ? !0 : d.clearNodes()).wrapInList(f, r).command(() => Ki(a, f)).command(() => Xi(a, f)).run() : c().command(() => {
|
|
@@ -6002,10 +6002,10 @@ const fb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
6002
6002
|
return sb(r, s, t) ? o.unsetMark(s, { extendEmptyMarkRange: a }) : o.setMark(s, t);
|
|
6003
6003
|
}, xb = (e, t, n = {}) => ({ state: r, commands: o }) => {
|
|
6004
6004
|
const a = Xe(e, r.schema), s = Xe(t, r.schema);
|
|
6005
|
-
return
|
|
6005
|
+
return Ta(r, a, n) ? o.setNode(s) : o.setNode(a, n);
|
|
6006
6006
|
}, vb = (e, t = {}) => ({ state: n, commands: r }) => {
|
|
6007
6007
|
const o = Xe(e, n.schema);
|
|
6008
|
-
return
|
|
6008
|
+
return Ta(n, o, t) ? r.lift(o) : r.wrapIn(o, t);
|
|
6009
6009
|
}, wb = () => ({ state: e, dispatch: t }) => {
|
|
6010
6010
|
const n = e.plugins;
|
|
6011
6011
|
for (let r = 0; r < n.length; r += 1) {
|
|
@@ -6219,7 +6219,7 @@ qt.create({
|
|
|
6219
6219
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
6220
6220
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
6221
6221
|
};
|
|
6222
|
-
return
|
|
6222
|
+
return ka() || td() ? a : o;
|
|
6223
6223
|
},
|
|
6224
6224
|
addProseMirrorPlugins() {
|
|
6225
6225
|
return [
|
|
@@ -6315,7 +6315,7 @@ const rd = qt.create({
|
|
|
6315
6315
|
editor: e
|
|
6316
6316
|
}) => {
|
|
6317
6317
|
const t = e.getAttributes("textStyle").fontSize;
|
|
6318
|
-
return /* @__PURE__ */ i(se.ControlsGroup, { children: /* @__PURE__ */ i(
|
|
6318
|
+
return /* @__PURE__ */ i(se.ControlsGroup, { children: /* @__PURE__ */ i(vl, { size: "xs", icon: /* @__PURE__ */ i(sa, { stroke: 1.5, size: 16 }), data: Mb, styles: zb, value: t || "", onChange: (n) => {
|
|
6319
6319
|
const r = n.currentTarget.value;
|
|
6320
6320
|
r ? e.chain().focus().setFontSize(r).run() : e.chain().focus().unsetFontSize().run();
|
|
6321
6321
|
} }) });
|
|
@@ -6323,18 +6323,18 @@ const rd = qt.create({
|
|
|
6323
6323
|
value: e,
|
|
6324
6324
|
styles: t = {}
|
|
6325
6325
|
}) => {
|
|
6326
|
-
const n =
|
|
6327
|
-
extensions: [
|
|
6326
|
+
const n = sc({
|
|
6327
|
+
extensions: [lc, ac, Ql, Zl, Jl, Kl, nc.configure({
|
|
6328
6328
|
resizable: !1,
|
|
6329
6329
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
6330
6330
|
HTMLAttributes: {
|
|
6331
6331
|
class: "rich-text-table-render"
|
|
6332
6332
|
}
|
|
6333
|
-
}), ic, rc,
|
|
6333
|
+
}), oc, ic, rc, ec.configure({
|
|
6334
6334
|
types: ["heading", "paragraph"]
|
|
6335
|
-
}),
|
|
6335
|
+
}), Xl.configure({
|
|
6336
6336
|
placeholder: "This is placeholder"
|
|
6337
|
-
}),
|
|
6337
|
+
}), tc, Ul, rd],
|
|
6338
6338
|
content: e,
|
|
6339
6339
|
editable: !1
|
|
6340
6340
|
});
|
|
@@ -6342,7 +6342,7 @@ const rd = qt.create({
|
|
|
6342
6342
|
n == null || n.commands.setContent(e);
|
|
6343
6343
|
}, [e, n]);
|
|
6344
6344
|
const r = z(() => k.defaultsDeep({}, {
|
|
6345
|
-
content:
|
|
6345
|
+
content: _a
|
|
6346
6346
|
}, t), [t]);
|
|
6347
6347
|
return /* @__PURE__ */ i(se, { editor: n, styles: r, children: /* @__PURE__ */ i(se.Content, {}) });
|
|
6348
6348
|
};
|
|
@@ -6409,7 +6409,7 @@ const Ab = ({
|
|
|
6409
6409
|
}, children: [
|
|
6410
6410
|
/* @__PURE__ */ i(x, { position: "left", children: /* @__PURE__ */ i($b, {}) }),
|
|
6411
6411
|
/* @__PURE__ */ u(x, { position: "right", children: [
|
|
6412
|
-
/* @__PURE__ */ i(I, { onClick: d, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ i(
|
|
6412
|
+
/* @__PURE__ */ i(I, { onClick: d, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ i(Pl, { size: 16 }), children: "Reset to default" }),
|
|
6413
6413
|
/* @__PURE__ */ i(I, { onClick: c, color: "red", size: "xs", disabled: !p, leftIcon: /* @__PURE__ */ i(la, { size: 16 }), children: "Revert Changes" }),
|
|
6414
6414
|
/* @__PURE__ */ i(I, { size: "xs", onClick: l, disabled: !p, leftIcon: /* @__PURE__ */ i(sn, { size: 16 }), children: "Confirm Changes" })
|
|
6415
6415
|
] })
|
|
@@ -6433,7 +6433,7 @@ const Ab = ({
|
|
|
6433
6433
|
/* @__PURE__ */ i(De, { opened: l, onClose: d, title: "Authentication", withinPortal: !0, zIndex: 320, size: "900px", children: /* @__PURE__ */ i(P, { h: 600, children: /* @__PURE__ */ i(Sr, { value: e, onChange: t, defaultValue: a, label: n }) }) }),
|
|
6434
6434
|
/* @__PURE__ */ i(I, { onClick: c, ...o, children: r })
|
|
6435
6435
|
] });
|
|
6436
|
-
}),
|
|
6436
|
+
}), Ks = ["function aggregation({ queryData }, utils) {", ' return "Aggregation Result";', "}"].join(`
|
|
6437
6437
|
`), nr = {
|
|
6438
6438
|
type: "none",
|
|
6439
6439
|
config: {}
|
|
@@ -6469,7 +6469,7 @@ function Fb(e, t) {
|
|
|
6469
6469
|
return e;
|
|
6470
6470
|
}
|
|
6471
6471
|
}
|
|
6472
|
-
function
|
|
6472
|
+
function Ia(e, t) {
|
|
6473
6473
|
const n = e.map(Ob);
|
|
6474
6474
|
return Fb(n, t);
|
|
6475
6475
|
}
|
|
@@ -6485,7 +6485,7 @@ function Pb(e, t, n) {
|
|
|
6485
6485
|
}
|
|
6486
6486
|
function wi(e, t, n) {
|
|
6487
6487
|
try {
|
|
6488
|
-
return n.type === "custom" ? Pb(e, t, n) :
|
|
6488
|
+
return n.type === "custom" ? Pb(e, t, n) : Ia(nn(e, t), n);
|
|
6489
6489
|
} catch (r) {
|
|
6490
6490
|
return console.error(r), null;
|
|
6491
6491
|
}
|
|
@@ -6542,7 +6542,7 @@ function Nb({
|
|
|
6542
6542
|
} : c === "custom" ? {
|
|
6543
6543
|
type: "custom",
|
|
6544
6544
|
config: {
|
|
6545
|
-
func:
|
|
6545
|
+
func: Ks
|
|
6546
6546
|
}
|
|
6547
6547
|
} : {
|
|
6548
6548
|
type: c,
|
|
@@ -6566,7 +6566,7 @@ function Nb({
|
|
|
6566
6566
|
return /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, pt: r, children: [
|
|
6567
6567
|
/* @__PURE__ */ i(O, { ref: o, label: e, data: Vb, value: t.type, onChange: a }),
|
|
6568
6568
|
t.type === "quantile" && /* @__PURE__ */ i(ie, { label: "p", value: t.config.p, onChange: s, precision: 2, min: 0.05, step: 0.05, max: 1 }),
|
|
6569
|
-
t.type === "custom" && /* @__PURE__ */ i(Eb, { label: "", triggerLabel: "Edit Function", value: t.config.func, onChange: l, defaultValue:
|
|
6569
|
+
t.type === "custom" && /* @__PURE__ */ i(Eb, { label: "", triggerLabel: "Edit Function", value: t.config.func, onChange: l, defaultValue: Ks, triggerButtonProps: {
|
|
6570
6570
|
size: "xs",
|
|
6571
6571
|
sx: {
|
|
6572
6572
|
flexGrow: 0,
|
|
@@ -6589,7 +6589,7 @@ function Bb({
|
|
|
6589
6589
|
a((f) => (f.splice(m, 1), [...f]));
|
|
6590
6590
|
}, [a]), c = R.useMemo(() => !k.isEqual(o, t), [o, t]), d = () => {
|
|
6591
6591
|
n(o.map((m) => m.toString()));
|
|
6592
|
-
}, p =
|
|
6592
|
+
}, p = wl(), h = R.useMemo(() => Object.entries(p.colors).map(([m, f]) => f[6]), [p]);
|
|
6593
6593
|
return /* @__PURE__ */ u(j, { children: [
|
|
6594
6594
|
/* @__PURE__ */ u(x, { position: "left", ref: r, children: [
|
|
6595
6595
|
/* @__PURE__ */ i(C, { children: e }),
|
|
@@ -7019,7 +7019,7 @@ function ry({
|
|
|
7019
7019
|
} = e, o = e.data, {
|
|
7020
7020
|
width: a,
|
|
7021
7021
|
height: s
|
|
7022
|
-
} = e.viewport, l = Ee({}, n,
|
|
7022
|
+
} = e.viewport, l = Ee({}, n, xa), c = Dt({
|
|
7023
7023
|
vizManager: e.vizManager,
|
|
7024
7024
|
instance: t
|
|
7025
7025
|
}), d = Tt(c.triggerManager, Rc.id), p = Fn(o, l.x_axis.data_key), h = Ke((w) => {
|
|
@@ -7354,7 +7354,7 @@ function my({
|
|
|
7354
7354
|
set: n
|
|
7355
7355
|
} = ee(e.instanceData, "config"), {
|
|
7356
7356
|
variables: r
|
|
7357
|
-
} = e, o = z(() => Ee({}, t,
|
|
7357
|
+
} = e, o = z(() => Ee({}, t, xa), [t]), {
|
|
7358
7358
|
control: a,
|
|
7359
7359
|
handleSubmit: s,
|
|
7360
7360
|
watch: l,
|
|
@@ -7634,7 +7634,7 @@ const Sy = {
|
|
|
7634
7634
|
createConfig() {
|
|
7635
7635
|
return {
|
|
7636
7636
|
version: 9,
|
|
7637
|
-
config: He(
|
|
7637
|
+
config: He(xa)
|
|
7638
7638
|
};
|
|
7639
7639
|
},
|
|
7640
7640
|
triggers: [Rc]
|
|
@@ -7651,7 +7651,7 @@ function ky(e) {
|
|
|
7651
7651
|
function Ty(e) {
|
|
7652
7652
|
return /* @__PURE__ */ i(C, { children: "Click this button" });
|
|
7653
7653
|
}
|
|
7654
|
-
const
|
|
7654
|
+
const Ma = {
|
|
7655
7655
|
content: "Button",
|
|
7656
7656
|
variant: "filled",
|
|
7657
7657
|
color: "blue",
|
|
@@ -7676,7 +7676,7 @@ const Ia = {
|
|
|
7676
7676
|
instance: t
|
|
7677
7677
|
}), r = Tt(n.triggerManager, sd.id), o = je(), {
|
|
7678
7678
|
value: a
|
|
7679
|
-
} = ee(e.instanceData, "config"), s = z(() => Ie({}, a,
|
|
7679
|
+
} = ee(e.instanceData, "config"), s = z(() => Ie({}, a, Ma), [a]), {
|
|
7680
7680
|
content: l,
|
|
7681
7681
|
horizontal_align: c,
|
|
7682
7682
|
vertical_align: d,
|
|
@@ -7700,7 +7700,7 @@ const Ia = {
|
|
|
7700
7700
|
onChange: t,
|
|
7701
7701
|
label: n
|
|
7702
7702
|
}) => {
|
|
7703
|
-
const r =
|
|
7703
|
+
const r = wl(), o = Ke((s) => () => t(s), [t]), a = (s) => e === s;
|
|
7704
7704
|
return /* @__PURE__ */ u(S, { spacing: 2, children: [
|
|
7705
7705
|
/* @__PURE__ */ i(C, { size: 14, sx: {
|
|
7706
7706
|
fontWeight: 500
|
|
@@ -7766,7 +7766,7 @@ function Oy({
|
|
|
7766
7766
|
const {
|
|
7767
7767
|
value: t,
|
|
7768
7768
|
set: n
|
|
7769
|
-
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t,
|
|
7769
|
+
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t, Ma), [t]), o = r;
|
|
7770
7770
|
W(() => {
|
|
7771
7771
|
!ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
7772
7772
|
}, [r, o]);
|
|
@@ -7881,11 +7881,11 @@ const Py = {
|
|
|
7881
7881
|
createConfig() {
|
|
7882
7882
|
return {
|
|
7883
7883
|
version: 2,
|
|
7884
|
-
config: He(
|
|
7884
|
+
config: He(Ma)
|
|
7885
7885
|
};
|
|
7886
7886
|
},
|
|
7887
7887
|
triggers: [sd]
|
|
7888
|
-
},
|
|
7888
|
+
}, za = {
|
|
7889
7889
|
id: "builtin:echarts:click-echart:series",
|
|
7890
7890
|
displayName: "Click Chart Series",
|
|
7891
7891
|
nameRender: Ny,
|
|
@@ -7927,7 +7927,7 @@ const rr = {
|
|
|
7927
7927
|
y_axis_scroll: !1,
|
|
7928
7928
|
x_axis_slider: !1,
|
|
7929
7929
|
y_axis_slider: !1
|
|
7930
|
-
},
|
|
7930
|
+
}, La = {
|
|
7931
7931
|
regressions: [],
|
|
7932
7932
|
series: [],
|
|
7933
7933
|
stats: {
|
|
@@ -7961,7 +7961,7 @@ const rr = {
|
|
|
7961
7961
|
reference_areas: [],
|
|
7962
7962
|
dataZoom: rr
|
|
7963
7963
|
};
|
|
7964
|
-
function
|
|
7964
|
+
function $a(e) {
|
|
7965
7965
|
const t = [];
|
|
7966
7966
|
return e.x_axis_scroll && t.push({
|
|
7967
7967
|
type: "inside",
|
|
@@ -8185,12 +8185,12 @@ function Ky({
|
|
|
8185
8185
|
}
|
|
8186
8186
|
};
|
|
8187
8187
|
}
|
|
8188
|
-
function
|
|
8188
|
+
function Aa(e, t, n) {
|
|
8189
8189
|
const r = nn(e, t), o = nn(e, n);
|
|
8190
8190
|
return k.zip(r, o);
|
|
8191
8191
|
}
|
|
8192
8192
|
function Xy(e, t, n, r) {
|
|
8193
|
-
const o =
|
|
8193
|
+
const o = Aa(t, n, r);
|
|
8194
8194
|
return k.unionBy(o, e, 0);
|
|
8195
8195
|
}
|
|
8196
8196
|
function Jy({
|
|
@@ -8218,9 +8218,9 @@ function Zy({
|
|
|
8218
8218
|
y_axis_data_key: o,
|
|
8219
8219
|
valueTypedXAxis: a
|
|
8220
8220
|
});
|
|
8221
|
-
const s =
|
|
8221
|
+
const s = Aa(t, r, o), l = k.groupBy(s, "0");
|
|
8222
8222
|
return e.map(([d]) => {
|
|
8223
|
-
const h = l[d].map((f) => f[1]), m =
|
|
8223
|
+
const h = l[d].map((f) => f[1]), m = Ia(h, n);
|
|
8224
8224
|
return [d, m];
|
|
8225
8225
|
});
|
|
8226
8226
|
}
|
|
@@ -8235,7 +8235,7 @@ function ex({
|
|
|
8235
8235
|
columnKey: a
|
|
8236
8236
|
} = q(e), s = k.groupBy(t[o], a);
|
|
8237
8237
|
return Object.entries(s).forEach(([l, c]) => {
|
|
8238
|
-
s[l] =
|
|
8238
|
+
s[l] = Aa({
|
|
8239
8239
|
[o]: c
|
|
8240
8240
|
}, n, r);
|
|
8241
8241
|
}), s;
|
|
@@ -8488,11 +8488,11 @@ function ux(e, t, n) {
|
|
|
8488
8488
|
tooltip: ix(e, s, o),
|
|
8489
8489
|
grid: By(e),
|
|
8490
8490
|
legend: jy(s),
|
|
8491
|
-
dataZoom:
|
|
8491
|
+
dataZoom: $a(e.dataZoom)
|
|
8492
8492
|
};
|
|
8493
8493
|
return Ie({}, c, dx);
|
|
8494
8494
|
}
|
|
8495
|
-
function
|
|
8495
|
+
function Xs(e) {
|
|
8496
8496
|
const t = e.getModel(), n = t.getSeries().map((r) => {
|
|
8497
8497
|
if (!r.option.custom)
|
|
8498
8498
|
return r.option;
|
|
@@ -8505,7 +8505,7 @@ function Ks(e) {
|
|
|
8505
8505
|
});
|
|
8506
8506
|
}
|
|
8507
8507
|
be.use([Wt, Zn, er, hi, bt, yt, xt, it, di, ia]);
|
|
8508
|
-
function
|
|
8508
|
+
function Js(e) {
|
|
8509
8509
|
return e.trim().length > 0;
|
|
8510
8510
|
}
|
|
8511
8511
|
function hx({
|
|
@@ -8516,7 +8516,7 @@ function hx({
|
|
|
8516
8516
|
interactionManager: o,
|
|
8517
8517
|
variables: a
|
|
8518
8518
|
}) {
|
|
8519
|
-
const s = Fn(t, e.x_axis_data_key), l = Tt(o.triggerManager,
|
|
8519
|
+
const s = Fn(t, e.x_axis_data_key), l = Tt(o.triggerManager, za.id), c = Ke((f) => {
|
|
8520
8520
|
const w = k.get(s, f.name, {
|
|
8521
8521
|
error: "rowData is not found"
|
|
8522
8522
|
});
|
|
@@ -8529,10 +8529,10 @@ function hx({
|
|
|
8529
8529
|
}, [s, l, o]), d = R.useMemo(() => ux(e, t, a), [e, t]), p = R.useRef(), h = z(() => ({
|
|
8530
8530
|
click: c
|
|
8531
8531
|
}), [c]), m = (f) => {
|
|
8532
|
-
p.current = f,
|
|
8532
|
+
p.current = f, Xs(f);
|
|
8533
8533
|
};
|
|
8534
8534
|
return W(() => {
|
|
8535
|
-
p.current &&
|
|
8535
|
+
p.current && Xs(p.current);
|
|
8536
8536
|
}, [d]), !n || !r ? null : /* @__PURE__ */ i(rt, { echarts: be, option: d, style: {
|
|
8537
8537
|
width: n,
|
|
8538
8538
|
height: r
|
|
@@ -8549,7 +8549,7 @@ function px({
|
|
|
8549
8549
|
value: r
|
|
8550
8550
|
} = ee(e.instanceData, "config"), {
|
|
8551
8551
|
variables: o
|
|
8552
|
-
} = e, a = z(() => Ee({}, r,
|
|
8552
|
+
} = e, a = z(() => Ee({}, r, La), [r]), s = e.data, {
|
|
8553
8553
|
width: l,
|
|
8554
8554
|
height: c
|
|
8555
8555
|
} = e.viewport, {
|
|
@@ -8571,15 +8571,15 @@ function px({
|
|
|
8571
8571
|
}, [a, s]), w = Math.max(0, Rt(c) - p - m), v = Et(l);
|
|
8572
8572
|
return /* @__PURE__ */ u(dt, { width: l, height: c, children: [
|
|
8573
8573
|
/* @__PURE__ */ i(C, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
8574
|
-
display:
|
|
8574
|
+
display: Js(a.stats.templates.top) ? "block" : "none"
|
|
8575
8575
|
}, children: Object.values(f.top).map((T, M) => /* @__PURE__ */ i(R.Fragment, { children: T }, M)) }),
|
|
8576
8576
|
/* @__PURE__ */ i(hx, { variables: o, width: v, height: w, data: s, conf: a, interactionManager: n }),
|
|
8577
8577
|
/* @__PURE__ */ i(C, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
|
|
8578
|
-
display:
|
|
8578
|
+
display: Js(a.stats.templates.bottom) ? "block" : "none"
|
|
8579
8579
|
}, children: Object.values(f.bottom).map((T, M) => /* @__PURE__ */ i(R.Fragment, { children: T }, M)) })
|
|
8580
8580
|
] });
|
|
8581
8581
|
}
|
|
8582
|
-
const
|
|
8582
|
+
const Ea = xe(({
|
|
8583
8583
|
value: e,
|
|
8584
8584
|
onChange: t
|
|
8585
8585
|
}, n) => {
|
|
@@ -9091,7 +9091,7 @@ function kx({
|
|
|
9091
9091
|
s.map((p, h) => /* @__PURE__ */ i(g.Panel, { value: h.toString(), children: /* @__PURE__ */ i(Sx, { regressionItem: p, control: e, index: h, remove: o, yAxisOptions: c }) }, p.id))
|
|
9092
9092
|
] });
|
|
9093
9093
|
}
|
|
9094
|
-
const
|
|
9094
|
+
const Ra = {
|
|
9095
9095
|
static: {
|
|
9096
9096
|
type: "static",
|
|
9097
9097
|
size: 10
|
|
@@ -9187,7 +9187,7 @@ const Ix = ({
|
|
|
9187
9187
|
func_content: h
|
|
9188
9188
|
}));
|
|
9189
9189
|
}, p = () => {
|
|
9190
|
-
d(
|
|
9190
|
+
d(Ra.dynamic.func_content);
|
|
9191
9191
|
};
|
|
9192
9192
|
return /* @__PURE__ */ u(j, { children: [
|
|
9193
9193
|
/* @__PURE__ */ i(P, { sx: {
|
|
@@ -9236,7 +9236,7 @@ const Ix = ({
|
|
|
9236
9236
|
}, r) => {
|
|
9237
9237
|
const o = (a) => {
|
|
9238
9238
|
n({
|
|
9239
|
-
...
|
|
9239
|
+
...Ra[a]
|
|
9240
9240
|
});
|
|
9241
9241
|
};
|
|
9242
9242
|
return /* @__PURE__ */ u(mn, { cols: 2, children: [
|
|
@@ -9501,7 +9501,7 @@ function Vx({
|
|
|
9501
9501
|
type: "bar",
|
|
9502
9502
|
name: Mn(),
|
|
9503
9503
|
showSymbol: !1,
|
|
9504
|
-
symbolSize:
|
|
9504
|
+
symbolSize: Ra.static,
|
|
9505
9505
|
y_axis_data_key: "value",
|
|
9506
9506
|
yAxisIndex: 0,
|
|
9507
9507
|
label_position: "top",
|
|
@@ -9759,7 +9759,7 @@ function Qx({
|
|
|
9759
9759
|
set: n
|
|
9760
9760
|
} = ee(e.instanceData, "config"), {
|
|
9761
9761
|
variables: r
|
|
9762
|
-
} = e, o = z(() => Ie({}, t,
|
|
9762
|
+
} = e, o = z(() => Ie({}, t, La), [t]), {
|
|
9763
9763
|
control: a,
|
|
9764
9764
|
handleSubmit: s,
|
|
9765
9765
|
watch: l,
|
|
@@ -9809,7 +9809,7 @@ function Qx({
|
|
|
9809
9809
|
/* @__PURE__ */ i(g.Panel, { value: "Reference Areas", children: /* @__PURE__ */ i(bx, { variables: r, control: a, watch: l }) }),
|
|
9810
9810
|
/* @__PURE__ */ i(g.Panel, { value: "Zooming", children: /* @__PURE__ */ i(y, { name: "dataZoom", control: a, render: ({
|
|
9811
9811
|
field: m
|
|
9812
|
-
}) => /* @__PURE__ */ i(
|
|
9812
|
+
}) => /* @__PURE__ */ i(Ea, { ...m }) }) })
|
|
9813
9813
|
] })
|
|
9814
9814
|
] }) });
|
|
9815
9815
|
}
|
|
@@ -10227,10 +10227,10 @@ const pv = {
|
|
|
10227
10227
|
createConfig() {
|
|
10228
10228
|
return {
|
|
10229
10229
|
version: 18,
|
|
10230
|
-
config: He(
|
|
10230
|
+
config: He(La)
|
|
10231
10231
|
};
|
|
10232
10232
|
},
|
|
10233
|
-
triggers: [
|
|
10233
|
+
triggers: [za]
|
|
10234
10234
|
};
|
|
10235
10235
|
function mv(e) {
|
|
10236
10236
|
if (e.enable_value)
|
|
@@ -10382,7 +10382,7 @@ function _v(e) {
|
|
|
10382
10382
|
funnelAlign: "center"
|
|
10383
10383
|
};
|
|
10384
10384
|
}
|
|
10385
|
-
const
|
|
10385
|
+
const Oa = {
|
|
10386
10386
|
series: [_v("Funnel")]
|
|
10387
10387
|
};
|
|
10388
10388
|
be.use([Uh, Wt, bt, yt, xt, it]);
|
|
@@ -10403,7 +10403,7 @@ function Sv({
|
|
|
10403
10403
|
}) {
|
|
10404
10404
|
const {
|
|
10405
10405
|
value: t
|
|
10406
|
-
} = ee(e.instanceData, "config"), n = z(() => Ee({}, t,
|
|
10406
|
+
} = ee(e.instanceData, "config"), n = z(() => Ee({}, t, Oa), [t]), r = e.data, {
|
|
10407
10407
|
width: o,
|
|
10408
10408
|
height: a
|
|
10409
10409
|
} = e.viewport;
|
|
@@ -10451,7 +10451,7 @@ const kv = [{
|
|
|
10451
10451
|
}, {
|
|
10452
10452
|
label: "InsideBottomRight",
|
|
10453
10453
|
value: "insideBottomRight"
|
|
10454
|
-
}],
|
|
10454
|
+
}], Fa = xe(({
|
|
10455
10455
|
label: e,
|
|
10456
10456
|
value: t,
|
|
10457
10457
|
onChange: n,
|
|
@@ -10613,7 +10613,7 @@ const kv = [{
|
|
|
10613
10613
|
/* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
|
|
10614
10614
|
/* @__PURE__ */ i(y, { name: `series.${n}.axisLabel.position`, control: t, render: ({
|
|
10615
10615
|
field: l
|
|
10616
|
-
}) => /* @__PURE__ */ i(
|
|
10616
|
+
}) => /* @__PURE__ */ i(Fa, { label: "Position", options: Mv[s], ...l }) }),
|
|
10617
10617
|
/* @__PURE__ */ i(P, {})
|
|
10618
10618
|
] }),
|
|
10619
10619
|
/* @__PURE__ */ i(x, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `series.${n}.axisLabel.overflow`, control: t, render: ({
|
|
@@ -10656,7 +10656,7 @@ function $v({
|
|
|
10656
10656
|
const {
|
|
10657
10657
|
value: t,
|
|
10658
10658
|
set: n
|
|
10659
|
-
} = ee(e.instanceData, "config"), r = z(() => k.defaultsDeep({}, t,
|
|
10659
|
+
} = ee(e.instanceData, "config"), r = z(() => k.defaultsDeep({}, t, Oa), [t]), {
|
|
10660
10660
|
control: o,
|
|
10661
10661
|
handleSubmit: a,
|
|
10662
10662
|
watch: s,
|
|
@@ -10768,10 +10768,10 @@ const Ov = {
|
|
|
10768
10768
|
configRender: $v,
|
|
10769
10769
|
createConfig: () => ({
|
|
10770
10770
|
version: 3,
|
|
10771
|
-
config:
|
|
10771
|
+
config: Oa
|
|
10772
10772
|
})
|
|
10773
10773
|
};
|
|
10774
|
-
function
|
|
10774
|
+
function Zs({
|
|
10775
10775
|
enabled: e,
|
|
10776
10776
|
func_content: t
|
|
10777
10777
|
}) {
|
|
@@ -10786,7 +10786,7 @@ function Js({
|
|
|
10786
10786
|
};
|
|
10787
10787
|
}
|
|
10788
10788
|
function Fv(e) {
|
|
10789
|
-
const t =
|
|
10789
|
+
const t = Zs(e.x_axis.axisLabel.formatter), n = Zs(e.y_axis.axisLabel.formatter);
|
|
10790
10790
|
return {
|
|
10791
10791
|
x_axis: t,
|
|
10792
10792
|
y_axis: n
|
|
@@ -11202,7 +11202,7 @@ const ud = {
|
|
|
11202
11202
|
description: "Data of the row",
|
|
11203
11203
|
valueType: "object"
|
|
11204
11204
|
}]
|
|
11205
|
-
},
|
|
11205
|
+
}, Pa = {
|
|
11206
11206
|
x_axis: {
|
|
11207
11207
|
name: "",
|
|
11208
11208
|
data_key: "",
|
|
@@ -11288,7 +11288,7 @@ function i0({
|
|
|
11288
11288
|
value: r
|
|
11289
11289
|
} = ee(e.instanceData, "config"), {
|
|
11290
11290
|
variables: o
|
|
11291
|
-
} = e, a = z(() => Ee({}, r,
|
|
11291
|
+
} = e, a = z(() => Ee({}, r, Pa), [r]), s = e.data, {
|
|
11292
11292
|
width: l,
|
|
11293
11293
|
height: c
|
|
11294
11294
|
} = e.viewport;
|
|
@@ -11600,7 +11600,7 @@ function m0({
|
|
|
11600
11600
|
const {
|
|
11601
11601
|
value: t,
|
|
11602
11602
|
set: n
|
|
11603
|
-
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t,
|
|
11603
|
+
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t, Pa), [t]), o = z(() => k.cloneDeep(r), [r]);
|
|
11604
11604
|
W(() => {
|
|
11605
11605
|
!ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
11606
11606
|
}, [r, o]);
|
|
@@ -11762,7 +11762,7 @@ const x0 = {
|
|
|
11762
11762
|
configRender: m0,
|
|
11763
11763
|
createConfig: () => ({
|
|
11764
11764
|
version: 4,
|
|
11765
|
-
config:
|
|
11765
|
+
config: Pa
|
|
11766
11766
|
}),
|
|
11767
11767
|
triggers: [ud]
|
|
11768
11768
|
}, pd = {
|
|
@@ -11802,7 +11802,7 @@ function w0(e) {
|
|
|
11802
11802
|
const md = {
|
|
11803
11803
|
label_template: "${percentage.x} of ${x_axis.name} causes ${percentage.y} of ${bar.name}",
|
|
11804
11804
|
color: "rgba(0,0,0,0.3)"
|
|
11805
|
-
},
|
|
11805
|
+
}, Va = {
|
|
11806
11806
|
x_axis: {
|
|
11807
11807
|
name: "X Axis",
|
|
11808
11808
|
data_key: "",
|
|
@@ -12057,7 +12057,7 @@ function z0(e, t) {
|
|
|
12057
12057
|
function L0(e, t, n) {
|
|
12058
12058
|
const r = C0(e);
|
|
12059
12059
|
return {
|
|
12060
|
-
dataZoom:
|
|
12060
|
+
dataZoom: $a(e.dataZoom),
|
|
12061
12061
|
tooltip: I0(e, r),
|
|
12062
12062
|
xAxis: M0(e),
|
|
12063
12063
|
yAxis: z0(e, r),
|
|
@@ -12081,7 +12081,7 @@ function $0({
|
|
|
12081
12081
|
} = ee(e.instanceData, "config"), r = e.data, {
|
|
12082
12082
|
width: o,
|
|
12083
12083
|
height: a
|
|
12084
|
-
} = e.viewport, s = Ee({}, n,
|
|
12084
|
+
} = e.viewport, s = Ee({}, n, Va), l = L0(s, r), c = Dt({
|
|
12085
12085
|
vizManager: e.vizManager,
|
|
12086
12086
|
instance: t
|
|
12087
12087
|
}), d = Tt(c.triggerManager, pd.id), p = Fn(r, s.x_axis.data_key), h = Ke((f) => {
|
|
@@ -12290,7 +12290,7 @@ function q0({
|
|
|
12290
12290
|
const {
|
|
12291
12291
|
value: t,
|
|
12292
12292
|
set: n
|
|
12293
|
-
} = ee(e.instanceData, "config"), r = z(() => Ee({}, t,
|
|
12293
|
+
} = ee(e.instanceData, "config"), r = z(() => Ee({}, t, Va), [t]), {
|
|
12294
12294
|
control: o,
|
|
12295
12295
|
handleSubmit: a,
|
|
12296
12296
|
watch: s,
|
|
@@ -12336,7 +12336,7 @@ function q0({
|
|
|
12336
12336
|
/* @__PURE__ */ i(g.Panel, { value: "80-20 Line", children: /* @__PURE__ */ i(V0, { control: o, watch: s }) }),
|
|
12337
12337
|
/* @__PURE__ */ i(g.Panel, { value: "Zooming", children: /* @__PURE__ */ i(y, { name: "dataZoom", control: o, render: ({
|
|
12338
12338
|
field: h
|
|
12339
|
-
}) => /* @__PURE__ */ i(
|
|
12339
|
+
}) => /* @__PURE__ */ i(Ea, { ...h }) }) })
|
|
12340
12340
|
] })
|
|
12341
12341
|
] });
|
|
12342
12342
|
}
|
|
@@ -12514,7 +12514,7 @@ const J0 = {
|
|
|
12514
12514
|
createConfig() {
|
|
12515
12515
|
return {
|
|
12516
12516
|
version: 9,
|
|
12517
|
-
config: He(
|
|
12517
|
+
config: He(Va)
|
|
12518
12518
|
};
|
|
12519
12519
|
},
|
|
12520
12520
|
triggers: [pd]
|
|
@@ -12703,7 +12703,7 @@ function rw(e) {
|
|
|
12703
12703
|
function iw(e) {
|
|
12704
12704
|
return /* @__PURE__ */ i(C, { children: "Click chart's series" });
|
|
12705
12705
|
}
|
|
12706
|
-
const
|
|
12706
|
+
const Na = {
|
|
12707
12707
|
label_field: "",
|
|
12708
12708
|
value_field: "",
|
|
12709
12709
|
color_field: ""
|
|
@@ -12743,7 +12743,7 @@ function aw({
|
|
|
12743
12743
|
instance: t
|
|
12744
12744
|
}), {
|
|
12745
12745
|
value: r
|
|
12746
|
-
} = ee(e.instanceData, "config"), o = z(() => k.defaults({}, r,
|
|
12746
|
+
} = ee(e.instanceData, "config"), o = z(() => k.defaults({}, r, Na), [r]), a = e.data, {
|
|
12747
12747
|
width: s,
|
|
12748
12748
|
height: l
|
|
12749
12749
|
} = e.viewport;
|
|
@@ -12755,7 +12755,7 @@ function sw({
|
|
|
12755
12755
|
const {
|
|
12756
12756
|
value: t,
|
|
12757
12757
|
set: n
|
|
12758
|
-
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t,
|
|
12758
|
+
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t, Na), [t]), o = z(() => k.clone(r), [r]), {
|
|
12759
12759
|
control: a,
|
|
12760
12760
|
handleSubmit: s,
|
|
12761
12761
|
watch: l,
|
|
@@ -12853,7 +12853,7 @@ const uw = {
|
|
|
12853
12853
|
createConfig() {
|
|
12854
12854
|
return {
|
|
12855
12855
|
version: 3,
|
|
12856
|
-
config: He(
|
|
12856
|
+
config: He(Na)
|
|
12857
12857
|
};
|
|
12858
12858
|
},
|
|
12859
12859
|
triggers: [gd]
|
|
@@ -13148,7 +13148,7 @@ function Cw({
|
|
|
13148
13148
|
width: l,
|
|
13149
13149
|
height: c
|
|
13150
13150
|
} = e.viewport;
|
|
13151
|
-
return !l || !c || !a ||
|
|
13151
|
+
return !l || !c || !a || $l(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ i(dt, { width: l, height: c, children: /* @__PURE__ */ i(_w, { variables: o, width: Et(l), height: Rt(c), data: s, conf: a, interactionManager: n }) });
|
|
13152
13152
|
}
|
|
13153
13153
|
function Sw({
|
|
13154
13154
|
control: e,
|
|
@@ -13856,7 +13856,7 @@ function Uw(e, t, n, r) {
|
|
|
13856
13856
|
adjustedRSquared: Di(c, t.length, 1)
|
|
13857
13857
|
};
|
|
13858
13858
|
}
|
|
13859
|
-
function
|
|
13859
|
+
function el(e, t, n) {
|
|
13860
13860
|
const {
|
|
13861
13861
|
regression: r,
|
|
13862
13862
|
x_axis: o
|
|
@@ -13877,9 +13877,9 @@ function Kw(e, t) {
|
|
|
13877
13877
|
adjustedRSquared: 0
|
|
13878
13878
|
}];
|
|
13879
13879
|
if (!t.regression.group_by_key)
|
|
13880
|
-
return [
|
|
13880
|
+
return [el("", e, t)];
|
|
13881
13881
|
const n = q(t.regression.group_by_key), r = k.groupBy(e, n.columnKey);
|
|
13882
|
-
return Object.entries(r).map(([o, a]) =>
|
|
13882
|
+
return Object.entries(r).map(([o, a]) => el(o, a, t));
|
|
13883
13883
|
}
|
|
13884
13884
|
const Xw = {
|
|
13885
13885
|
marginTop: "10px",
|
|
@@ -13890,7 +13890,7 @@ const Xw = {
|
|
|
13890
13890
|
borderTop: "1px solid #dee2e6"
|
|
13891
13891
|
}
|
|
13892
13892
|
};
|
|
13893
|
-
function
|
|
13893
|
+
function tl({
|
|
13894
13894
|
desc: e
|
|
13895
13895
|
}) {
|
|
13896
13896
|
const {
|
|
@@ -13928,8 +13928,8 @@ function Jw({
|
|
|
13928
13928
|
const n = z(() => Kw(t, e), [e, t]);
|
|
13929
13929
|
return e.regression.group_by_key ? (console.log(n), /* @__PURE__ */ u(g, { defaultValue: (r = n[0]) == null ? void 0 : r.name, color: "gray", children: [
|
|
13930
13930
|
/* @__PURE__ */ i(g.List, { grow: !0, children: n.map((o) => /* @__PURE__ */ i(g.Tab, { value: o.name, children: o.name }, o.name)) }),
|
|
13931
|
-
n.map((o) => /* @__PURE__ */ i(g.Panel, { value: o.name, children: /* @__PURE__ */ i(
|
|
13932
|
-
] })) : /* @__PURE__ */ i(
|
|
13931
|
+
n.map((o) => /* @__PURE__ */ i(g.Panel, { value: o.name, children: /* @__PURE__ */ i(tl, { desc: o }) }, o.name))
|
|
13932
|
+
] })) : /* @__PURE__ */ i(tl, { desc: n[0] });
|
|
13933
13933
|
}
|
|
13934
13934
|
function Zw({
|
|
13935
13935
|
conf: e,
|
|
@@ -13954,7 +13954,7 @@ const Ii = {
|
|
|
13954
13954
|
enabled: !1,
|
|
13955
13955
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
13956
13956
|
`)
|
|
13957
|
-
},
|
|
13957
|
+
}, Ba = {
|
|
13958
13958
|
x_axis: {
|
|
13959
13959
|
name: "X Axis",
|
|
13960
13960
|
data_key: "",
|
|
@@ -14012,7 +14012,7 @@ function t_({
|
|
|
14012
14012
|
...w,
|
|
14013
14013
|
[m.columnKey]: Number(w[m.columnKey])
|
|
14014
14014
|
});
|
|
14015
|
-
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = z(() => Gw(Ie({}, t,
|
|
14015
|
+
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = z(() => Gw(Ie({}, t, Ba), o), [t, o]), s = li(null), l = (c) => {
|
|
14016
14016
|
s.current = c;
|
|
14017
14017
|
};
|
|
14018
14018
|
return !n || !r || !t ? null : /* @__PURE__ */ u(dt, { width: n, height: r, children: [
|
|
@@ -14223,7 +14223,7 @@ function s_({
|
|
|
14223
14223
|
const {
|
|
14224
14224
|
value: t,
|
|
14225
14225
|
set: n
|
|
14226
|
-
} = ee(e.instanceData, "config"), r = z(() => Ee({}, t,
|
|
14226
|
+
} = ee(e.instanceData, "config"), r = z(() => Ee({}, t, Ba), [t]), {
|
|
14227
14227
|
control: o,
|
|
14228
14228
|
handleSubmit: a,
|
|
14229
14229
|
watch: s,
|
|
@@ -14340,7 +14340,7 @@ const u_ = {
|
|
|
14340
14340
|
createConfig() {
|
|
14341
14341
|
return {
|
|
14342
14342
|
version: 3,
|
|
14343
|
-
config: He(
|
|
14343
|
+
config: He(Ba)
|
|
14344
14344
|
};
|
|
14345
14345
|
}
|
|
14346
14346
|
}, Mi = {
|
|
@@ -14421,25 +14421,25 @@ function b_() {
|
|
|
14421
14421
|
withHeaderRow: !0
|
|
14422
14422
|
}), "aria-label": "Insert table", title: "Insert table", children: /* @__PURE__ */ i(ep, { stroke: 1.5, size: 16 }) });
|
|
14423
14423
|
}
|
|
14424
|
-
const
|
|
14424
|
+
const qa = xe(({
|
|
14425
14425
|
value: e,
|
|
14426
14426
|
onChange: t,
|
|
14427
14427
|
styles: n = {},
|
|
14428
14428
|
label: r,
|
|
14429
14429
|
onSubmit: o
|
|
14430
14430
|
}, a) => {
|
|
14431
|
-
const [s, l] = Q(e), c =
|
|
14432
|
-
extensions: [
|
|
14431
|
+
const [s, l] = Q(e), c = sc({
|
|
14432
|
+
extensions: [lc, ac, Ql, Zl, Jl, Kl, nc.configure({
|
|
14433
14433
|
resizable: !1,
|
|
14434
14434
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
14435
14435
|
HTMLAttributes: {
|
|
14436
14436
|
class: "rich-text-table-render"
|
|
14437
14437
|
}
|
|
14438
|
-
}), ic, rc,
|
|
14438
|
+
}), oc, ic, rc, ec.configure({
|
|
14439
14439
|
types: ["heading", "paragraph"]
|
|
14440
|
-
}),
|
|
14440
|
+
}), Xl.configure({
|
|
14441
14441
|
placeholder: "This is placeholder"
|
|
14442
|
-
}),
|
|
14442
|
+
}), tc, Ul, rd],
|
|
14443
14443
|
content: s,
|
|
14444
14444
|
onUpdate: ({
|
|
14445
14445
|
editor: m
|
|
@@ -14453,7 +14453,7 @@ const Ba = xe(({
|
|
|
14453
14453
|
const d = () => {
|
|
14454
14454
|
t(s), o == null || o();
|
|
14455
14455
|
}, p = e !== s, h = z(() => k.defaultsDeep({}, {
|
|
14456
|
-
content:
|
|
14456
|
+
content: _a
|
|
14457
14457
|
}, n), [n]);
|
|
14458
14458
|
return c ? /* @__PURE__ */ u(S, { spacing: 4, sx: {
|
|
14459
14459
|
flexGrow: 1,
|
|
@@ -14547,7 +14547,7 @@ function y_({
|
|
|
14547
14547
|
field: p
|
|
14548
14548
|
}) => (
|
|
14549
14549
|
// @ts-expect-error type of onChange
|
|
14550
|
-
/* @__PURE__ */ i(
|
|
14550
|
+
/* @__PURE__ */ i(qa, { ...p, styles: {
|
|
14551
14551
|
root: {
|
|
14552
14552
|
flexGrow: 1
|
|
14553
14553
|
}
|
|
@@ -14637,7 +14637,7 @@ const kd = {
|
|
|
14637
14637
|
}, Td = {
|
|
14638
14638
|
label: gt.on_axis,
|
|
14639
14639
|
tooltip: gt.in_tooltip
|
|
14640
|
-
},
|
|
14640
|
+
}, Wa = {
|
|
14641
14641
|
scatter: {
|
|
14642
14642
|
y_data_key: "",
|
|
14643
14643
|
name_data_key: "",
|
|
@@ -14876,7 +14876,7 @@ function Dd({
|
|
|
14876
14876
|
}
|
|
14877
14877
|
};
|
|
14878
14878
|
}
|
|
14879
|
-
function
|
|
14879
|
+
function nl(e, t, n) {
|
|
14880
14880
|
const {
|
|
14881
14881
|
x_axis: r
|
|
14882
14882
|
} = n;
|
|
@@ -14889,7 +14889,7 @@ function $_(e, t) {
|
|
|
14889
14889
|
} = t;
|
|
14890
14890
|
if (r.trigger === "item") {
|
|
14891
14891
|
const l = Gr(e[0].data, n.data_key);
|
|
14892
|
-
return
|
|
14892
|
+
return nl(l, 0, t);
|
|
14893
14893
|
}
|
|
14894
14894
|
const o = e.find((l) => l.axisDim === "x" && l.axisId === "main-x-axis");
|
|
14895
14895
|
if (!o)
|
|
@@ -14898,7 +14898,7 @@ function $_(e, t) {
|
|
|
14898
14898
|
axisValue: a,
|
|
14899
14899
|
axisIndex: s
|
|
14900
14900
|
} = o;
|
|
14901
|
-
return
|
|
14901
|
+
return nl(a, s, t);
|
|
14902
14902
|
}
|
|
14903
14903
|
const A_ = (e) => {
|
|
14904
14904
|
try {
|
|
@@ -15062,12 +15062,12 @@ function P_(e, t, n) {
|
|
|
15062
15062
|
tooltip: E_(e, o),
|
|
15063
15063
|
grid: S_(e),
|
|
15064
15064
|
legend: k_(),
|
|
15065
|
-
dataZoom:
|
|
15065
|
+
dataZoom: $a(e.dataZoom)
|
|
15066
15066
|
};
|
|
15067
15067
|
return Ie({}, l, F_);
|
|
15068
15068
|
}
|
|
15069
15069
|
be.use([Wt, Zn, er, hi, bt, yt, xt, it, di, ia]);
|
|
15070
|
-
function
|
|
15070
|
+
function rl(e) {
|
|
15071
15071
|
return e.trim().length > 0;
|
|
15072
15072
|
}
|
|
15073
15073
|
function V_({
|
|
@@ -15105,7 +15105,7 @@ function N_({
|
|
|
15105
15105
|
value: r
|
|
15106
15106
|
} = ee(e.instanceData, "config"), {
|
|
15107
15107
|
variables: o
|
|
15108
|
-
} = e, a = z(() => Ee({}, r,
|
|
15108
|
+
} = e, a = z(() => Ee({}, r, Wa), [r]), s = e.data, {
|
|
15109
15109
|
width: l,
|
|
15110
15110
|
height: c
|
|
15111
15111
|
} = e.viewport, {
|
|
@@ -15127,11 +15127,11 @@ function N_({
|
|
|
15127
15127
|
}, [a, s]), w = Math.max(0, Rt(c) - p - m);
|
|
15128
15128
|
return !l || !c ? null : /* @__PURE__ */ u(dt, { width: l, height: c, children: [
|
|
15129
15129
|
/* @__PURE__ */ i(C, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
15130
|
-
display:
|
|
15130
|
+
display: rl(a.stats.templates.top) ? "block" : "none"
|
|
15131
15131
|
}, children: Object.values(f.top).map((v) => v) }),
|
|
15132
15132
|
/* @__PURE__ */ i(V_, { variables: o, width: Et(l), height: w, data: s, conf: a, interactionManager: n }),
|
|
15133
15133
|
/* @__PURE__ */ i(C, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
|
|
15134
|
-
display:
|
|
15134
|
+
display: rl(a.stats.templates.bottom) ? "block" : "none"
|
|
15135
15135
|
}, children: Object.values(f.bottom).map((v) => v) })
|
|
15136
15136
|
] });
|
|
15137
15137
|
}
|
|
@@ -15150,7 +15150,7 @@ const B_ = xe(({
|
|
|
15150
15150
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Content", labelPosition: "right" }),
|
|
15151
15151
|
/* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
|
|
15152
15152
|
/* @__PURE__ */ i($, { label: "Content Text", value: e.content.text, onChange: (l) => s("content.text", l.currentTarget.value) }),
|
|
15153
|
-
/* @__PURE__ */ i(
|
|
15153
|
+
/* @__PURE__ */ i(Fa, { label: "Text Position", value: e.label.position, onChange: (l) => s("label.position", l) })
|
|
15154
15154
|
] }),
|
|
15155
15155
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Endpoints", labelPosition: "right" }),
|
|
15156
15156
|
/* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
|
|
@@ -16085,7 +16085,7 @@ function CC({
|
|
|
16085
16085
|
set: n
|
|
16086
16086
|
} = ee(e.instanceData, "config"), {
|
|
16087
16087
|
variables: r
|
|
16088
|
-
} = e, o = z(() => Ie({}, t,
|
|
16088
|
+
} = e, o = z(() => Ie({}, t, Wa), [t]), a = z(() => _C(o), [o]);
|
|
16089
16089
|
W(() => {
|
|
16090
16090
|
!ke(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
|
|
16091
16091
|
}, [o, a]);
|
|
@@ -16139,7 +16139,7 @@ function CC({
|
|
|
16139
16139
|
/* @__PURE__ */ i(g.Panel, { value: "Reference Areas", children: /* @__PURE__ */ i(W_, { variables: r, control: s, watch: c }) }),
|
|
16140
16140
|
/* @__PURE__ */ i(g.Panel, { value: "Zooming", children: /* @__PURE__ */ i(y, { name: "dataZoom", control: s, render: ({
|
|
16141
16141
|
field: f
|
|
16142
|
-
}) => /* @__PURE__ */ i(
|
|
16142
|
+
}) => /* @__PURE__ */ i(Ea, { ...f }) }) })
|
|
16143
16143
|
] })
|
|
16144
16144
|
] }) });
|
|
16145
16145
|
}
|
|
@@ -16329,11 +16329,11 @@ const LC = {
|
|
|
16329
16329
|
createConfig() {
|
|
16330
16330
|
return {
|
|
16331
16331
|
version: 9,
|
|
16332
|
-
config: He(
|
|
16332
|
+
config: He(Wa)
|
|
16333
16333
|
};
|
|
16334
16334
|
},
|
|
16335
16335
|
triggers: [Sd]
|
|
16336
|
-
},
|
|
16336
|
+
}, ja = {
|
|
16337
16337
|
template: "The variable ${value} is defined in Variables section",
|
|
16338
16338
|
vertical_align: "center",
|
|
16339
16339
|
horizontal_align: "left"
|
|
@@ -16437,7 +16437,7 @@ const FC = {
|
|
|
16437
16437
|
context: e
|
|
16438
16438
|
}) => {
|
|
16439
16439
|
const t = je(), {
|
|
16440
|
-
value: n =
|
|
16440
|
+
value: n = ja
|
|
16441
16441
|
} = ee(e.instanceData, "config"), {
|
|
16442
16442
|
variables: r
|
|
16443
16443
|
} = e, {
|
|
@@ -16485,7 +16485,7 @@ function qC({
|
|
|
16485
16485
|
const {
|
|
16486
16486
|
value: t,
|
|
16487
16487
|
set: n
|
|
16488
|
-
} = ee(e.instanceData, "config"), r = R.useMemo(() => Ie({}, t,
|
|
16488
|
+
} = ee(e.instanceData, "config"), r = R.useMemo(() => Ie({}, t, ja), [t]), {
|
|
16489
16489
|
control: o,
|
|
16490
16490
|
handleSubmit: a,
|
|
16491
16491
|
watch: s,
|
|
@@ -16539,7 +16539,7 @@ const WC = {
|
|
|
16539
16539
|
createConfig() {
|
|
16540
16540
|
return {
|
|
16541
16541
|
version: 3,
|
|
16542
|
-
config:
|
|
16542
|
+
config: ja
|
|
16543
16543
|
};
|
|
16544
16544
|
},
|
|
16545
16545
|
displayName: "Stats",
|
|
@@ -16548,7 +16548,7 @@ const WC = {
|
|
|
16548
16548
|
name: "stats",
|
|
16549
16549
|
viewRender: VC,
|
|
16550
16550
|
configRender: qC
|
|
16551
|
-
},
|
|
16551
|
+
}, Ga = {
|
|
16552
16552
|
label_key: "",
|
|
16553
16553
|
value_key: "",
|
|
16554
16554
|
group_key: "",
|
|
@@ -16709,7 +16709,7 @@ function ZC({
|
|
|
16709
16709
|
variables: t
|
|
16710
16710
|
} = e, {
|
|
16711
16711
|
value: n
|
|
16712
|
-
} = ee(e.instanceData, "config"), r = z(() => Ee({}, n,
|
|
16712
|
+
} = ee(e.instanceData, "config"), r = z(() => Ee({}, n, Ga), [n]), o = e.data, {
|
|
16713
16713
|
width: a,
|
|
16714
16714
|
height: s
|
|
16715
16715
|
} = e.viewport, l = z(() => JC(r, o, t), [r, o, t]);
|
|
@@ -16794,7 +16794,7 @@ const t1 = [{
|
|
|
16794
16794
|
/* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
|
|
16795
16795
|
/* @__PURE__ */ i(y, { name: `levels.${t}.label.position`, control: e, render: ({
|
|
16796
16796
|
field: r
|
|
16797
|
-
}) => /* @__PURE__ */ i(
|
|
16797
|
+
}) => /* @__PURE__ */ i(Fa, { label: "Position", ...r }) }),
|
|
16798
16798
|
/* @__PURE__ */ i(
|
|
16799
16799
|
y,
|
|
16800
16800
|
{
|
|
@@ -16872,7 +16872,7 @@ function o1({
|
|
|
16872
16872
|
const {
|
|
16873
16873
|
value: t,
|
|
16874
16874
|
set: n
|
|
16875
|
-
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t,
|
|
16875
|
+
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t, Ga), [t]), o = z(() => k.clone(r), [r]), {
|
|
16876
16876
|
control: a,
|
|
16877
16877
|
handleSubmit: s,
|
|
16878
16878
|
watch: l,
|
|
@@ -17007,7 +17007,7 @@ const u1 = {
|
|
|
17007
17007
|
createConfig() {
|
|
17008
17008
|
return {
|
|
17009
17009
|
version: 5,
|
|
17010
|
-
config: He(
|
|
17010
|
+
config: He(Ga)
|
|
17011
17011
|
};
|
|
17012
17012
|
}
|
|
17013
17013
|
};
|
|
@@ -17197,7 +17197,7 @@ function k1({
|
|
|
17197
17197
|
virtualItems: r,
|
|
17198
17198
|
totalSize: o
|
|
17199
17199
|
} = n, a = r.length > 0 && ((l = r == null ? void 0 : r[0]) == null ? void 0 : l.start) || 0, s = r.length > 0 ? o - (((c = r == null ? void 0 : r[r.length - 1]) == null ? void 0 : c.end) || 0) : 0;
|
|
17200
|
-
return
|
|
17200
|
+
return Dl("TableBody", {
|
|
17201
17201
|
tableContainerRef: e,
|
|
17202
17202
|
rows: t
|
|
17203
17203
|
}), /* @__PURE__ */ u("tbody", { children: [
|
|
@@ -17213,7 +17213,7 @@ function k1({
|
|
|
17213
17213
|
} }) })
|
|
17214
17214
|
] });
|
|
17215
17215
|
}
|
|
17216
|
-
const
|
|
17216
|
+
const Ya = {
|
|
17217
17217
|
id: "builtin:table:click-cell-content",
|
|
17218
17218
|
displayName: "Click Cell Content",
|
|
17219
17219
|
nameRender: M1,
|
|
@@ -17284,7 +17284,7 @@ function M1(e) {
|
|
|
17284
17284
|
} = ee(e.trigger.triggerData, "config");
|
|
17285
17285
|
return /* @__PURE__ */ i(C, { children: I1(n, t) });
|
|
17286
17286
|
}
|
|
17287
|
-
function
|
|
17287
|
+
function il(e, t, n) {
|
|
17288
17288
|
return Math.min(Math.max(e, t), n);
|
|
17289
17289
|
}
|
|
17290
17290
|
class z1 {
|
|
@@ -17303,10 +17303,10 @@ class z1 {
|
|
|
17303
17303
|
}
|
|
17304
17304
|
getStepFunctionForValue(t) {
|
|
17305
17305
|
let n = Eh(this.steps, (r) => r.from <= t);
|
|
17306
|
-
return n =
|
|
17306
|
+
return n = il(n, 0, this.steps.length - 2), this.getLinearFunction(this.steps[n], this.steps[n + 1]);
|
|
17307
17307
|
}
|
|
17308
17308
|
mapValue(t) {
|
|
17309
|
-
return
|
|
17309
|
+
return il(this.getStepFunctionForValue(t)(t), 0, 100);
|
|
17310
17310
|
}
|
|
17311
17311
|
}
|
|
17312
17312
|
class L1 {
|
|
@@ -17327,7 +17327,7 @@ class L1 {
|
|
|
17327
17327
|
};
|
|
17328
17328
|
}
|
|
17329
17329
|
getRelatedTrigger() {
|
|
17330
|
-
return this.triggers.filter((n) => n.schemaRef ===
|
|
17330
|
+
return this.triggers.filter((n) => n.schemaRef === Ya.id).filter((n) => {
|
|
17331
17331
|
const r = this.getColIndex(this.cell), o = ue(this.cell.column.columnDef.meta, "value_field"), a = ue(n.config, "column");
|
|
17332
17332
|
return a == r || a == o;
|
|
17333
17333
|
});
|
|
@@ -17342,7 +17342,7 @@ class L1 {
|
|
|
17342
17342
|
const t = this.columnConf.cellBackgroundColor;
|
|
17343
17343
|
if (!t || t === "none")
|
|
17344
17344
|
return;
|
|
17345
|
-
if (
|
|
17345
|
+
if (Al(t))
|
|
17346
17346
|
return t;
|
|
17347
17347
|
const n = +this.cell.getValue();
|
|
17348
17348
|
if (isFinite(n)) {
|
|
@@ -17352,7 +17352,7 @@ class L1 {
|
|
|
17352
17352
|
}
|
|
17353
17353
|
}
|
|
17354
17354
|
const $1 = (e) => {
|
|
17355
|
-
const t = Dt(e), n = Tt(t.triggerManager,
|
|
17355
|
+
const t = Dt(e), n = Tt(t.triggerManager, Ya.id), {
|
|
17356
17356
|
colorManager: r
|
|
17357
17357
|
} = rn(Yt);
|
|
17358
17358
|
return Ke((o) => new L1(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
|
|
@@ -17386,7 +17386,7 @@ function A1({
|
|
|
17386
17386
|
vizManager: o.vizManager,
|
|
17387
17387
|
instance: a
|
|
17388
17388
|
}), w = z(() => {
|
|
17389
|
-
const Y =
|
|
17389
|
+
const Y = cc();
|
|
17390
17390
|
return m.map((Z) => {
|
|
17391
17391
|
const ae = Om(Z.value_field);
|
|
17392
17392
|
return Y.accessor(ae.columnKey, {
|
|
@@ -17398,19 +17398,19 @@ function A1({
|
|
|
17398
17398
|
minSize: typeof Z.width == "number" ? Z.width : void 0
|
|
17399
17399
|
});
|
|
17400
17400
|
});
|
|
17401
|
-
}, [m, f]), [v, T] = Q([]), M =
|
|
17401
|
+
}, [m, f]), [v, T] = Q([]), M = dc({
|
|
17402
17402
|
data: e,
|
|
17403
17403
|
state: {
|
|
17404
17404
|
sorting: v
|
|
17405
17405
|
},
|
|
17406
17406
|
onSortingChange: T,
|
|
17407
17407
|
columns: w,
|
|
17408
|
-
getCoreRowModel:
|
|
17408
|
+
getCoreRowModel: uc(),
|
|
17409
17409
|
getSortedRowModel: Bp()
|
|
17410
17410
|
}), {
|
|
17411
17411
|
rows: L
|
|
17412
17412
|
} = M.getRowModel(), B = R.useRef(null), K = L.length, V = K > 0, N = V ? n - 22 : n, E = V ? 22 : 0;
|
|
17413
|
-
return
|
|
17413
|
+
return Dl("VizTableComponent", {
|
|
17414
17414
|
queryData: e,
|
|
17415
17415
|
width: t,
|
|
17416
17416
|
height: n,
|
|
@@ -17520,7 +17520,7 @@ class F1 {
|
|
|
17520
17520
|
H(this, "interpolation");
|
|
17521
17521
|
H(this, "onChange");
|
|
17522
17522
|
Dr(this, {
|
|
17523
|
-
steps:
|
|
17523
|
+
steps: Il
|
|
17524
17524
|
}, {
|
|
17525
17525
|
deep: !1
|
|
17526
17526
|
}), ft(() => an(this.steps), () => {
|
|
@@ -17653,14 +17653,14 @@ const V1 = D(({
|
|
|
17653
17653
|
to: 100
|
|
17654
17654
|
}];
|
|
17655
17655
|
function Ed(e) {
|
|
17656
|
-
return e ?
|
|
17656
|
+
return e ? Al(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
|
|
17657
17657
|
}
|
|
17658
17658
|
function j1(e, t) {
|
|
17659
17659
|
var n;
|
|
17660
17660
|
return Ed(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
|
|
17661
17661
|
}
|
|
17662
17662
|
function G1(e, t) {
|
|
17663
|
-
return
|
|
17663
|
+
return Ml(t) ? t : {
|
|
17664
17664
|
steps: W1,
|
|
17665
17665
|
interpolation: e.encodeColor(e.getColorInterpolations()[0])
|
|
17666
17666
|
};
|
|
@@ -17668,7 +17668,7 @@ function G1(e, t) {
|
|
|
17668
17668
|
const Y1 = xe((e, t) => {
|
|
17669
17669
|
const {
|
|
17670
17670
|
colorManager: n
|
|
17671
|
-
} = rn(Yt), [r, o] = Q(Ed(e.value)), [a, s] = Q(j1(n, e.value)), l =
|
|
17671
|
+
} = rn(Yt), [r, o] = Q(Ed(e.value)), [a, s] = Q(j1(n, e.value)), l = Ds(a), [c, d] = Q(G1(n, e.value)), p = Ds(c);
|
|
17672
17672
|
return /* @__PURE__ */ u(S, { align: "stretch", children: [
|
|
17673
17673
|
/* @__PURE__ */ i(O, { label: "Cell background", value: r || "none", onChange: (w) => {
|
|
17674
17674
|
var v, T, M;
|
|
@@ -18060,9 +18060,9 @@ const po = {
|
|
|
18060
18060
|
name: "table",
|
|
18061
18061
|
viewRender: R1,
|
|
18062
18062
|
configRender: nS,
|
|
18063
|
-
triggers: [
|
|
18063
|
+
triggers: [Ya]
|
|
18064
18064
|
}, Rd = ["function text({ data, variables, filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
|
|
18065
|
-
`),
|
|
18065
|
+
`), Ha = {
|
|
18066
18066
|
func_content: Rd,
|
|
18067
18067
|
horizontal_align: "left",
|
|
18068
18068
|
font_size: "14px",
|
|
@@ -18071,7 +18071,7 @@ const po = {
|
|
|
18071
18071
|
context: e
|
|
18072
18072
|
}) => {
|
|
18073
18073
|
const t = je(), {
|
|
18074
|
-
value: n =
|
|
18074
|
+
value: n = Ha
|
|
18075
18075
|
} = ee(e.instanceData, "config"), {
|
|
18076
18076
|
variables: r
|
|
18077
18077
|
} = e, o = e.data, {
|
|
@@ -18149,7 +18149,7 @@ function uS({
|
|
|
18149
18149
|
const {
|
|
18150
18150
|
value: t,
|
|
18151
18151
|
set: n
|
|
18152
|
-
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t,
|
|
18152
|
+
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t, Ha), [t]), o = z(() => {
|
|
18153
18153
|
const {
|
|
18154
18154
|
func_content: m,
|
|
18155
18155
|
horizontal_align: f,
|
|
@@ -18240,7 +18240,7 @@ const pS = {
|
|
|
18240
18240
|
createConfig() {
|
|
18241
18241
|
return {
|
|
18242
18242
|
version: 1,
|
|
18243
|
-
config: He(
|
|
18243
|
+
config: He(Ha)
|
|
18244
18244
|
};
|
|
18245
18245
|
}
|
|
18246
18246
|
}, mS = () => /* @__PURE__ */ u("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", children: [
|
|
@@ -18248,7 +18248,7 @@ const pS = {
|
|
|
18248
18248
|
/* @__PURE__ */ i("path", { d: "M18.39 32.28H16.51V35.02H18.39V32.28Z", fill: "#9399A5" }),
|
|
18249
18249
|
/* @__PURE__ */ i("path", { d: "M46.87 15H20.69C18.38 15 16.5 16.88 16.5 19.19V26.22H18.38V23.45H49.18V47.68H18.38V41.07H16.5V49.55H51.05V19.19C51.06 16.88 49.18 15 46.87 15ZM39.46 20.73C38.81 20.73 38.29 20.2 38.29 19.56C38.29 18.92 38.82 18.39 39.46 18.39C40.11 18.39 40.63 18.92 40.63 19.56C40.63 20.2 40.11 20.73 39.46 20.73ZM43.22 20.73C42.57 20.73 42.05 20.2 42.05 19.56C42.05 18.92 42.58 18.39 43.22 18.39C43.87 18.39 44.39 18.92 44.39 19.56C44.39 20.2 43.87 20.73 43.22 20.73ZM46.97 20.73C46.32 20.73 45.8 20.2 45.8 19.56C45.8 18.92 46.33 18.39 46.97 18.39C47.62 18.39 48.14 18.92 48.14 19.56C48.14 20.2 47.62 20.73 46.97 20.73Z", fill: "#9399A5" })
|
|
18250
18250
|
] });
|
|
18251
|
-
function
|
|
18251
|
+
function ol(e, t) {
|
|
18252
18252
|
const n = k.get(e, t, "");
|
|
18253
18253
|
if (n)
|
|
18254
18254
|
throw new Error(n);
|
|
@@ -18291,9 +18291,9 @@ const gS = ({
|
|
|
18291
18291
|
const c = n.startsWith("http") ? n : window.location.origin;
|
|
18292
18292
|
return await fS(c, `/expert/v3/devtable/${r}`, l, {});
|
|
18293
18293
|
} catch (c) {
|
|
18294
|
-
throw
|
|
18294
|
+
throw ol(c, "response.data.detail"), ol(c, "response.data.error"), console.error(c), c;
|
|
18295
18295
|
}
|
|
18296
|
-
},
|
|
18296
|
+
}, Qa = {
|
|
18297
18297
|
expertSystemURL: "",
|
|
18298
18298
|
path: "",
|
|
18299
18299
|
goal: "",
|
|
@@ -18301,8 +18301,8 @@ const gS = ({
|
|
|
18301
18301
|
}, mo = {
|
|
18302
18302
|
height: "100%",
|
|
18303
18303
|
overflowY: "auto",
|
|
18304
|
-
...
|
|
18305
|
-
},
|
|
18304
|
+
..._a
|
|
18305
|
+
}, al = ({
|
|
18306
18306
|
message: e
|
|
18307
18307
|
}) => /* @__PURE__ */ i(P, { sx: mo, children: /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
|
|
18308
18308
|
__html: e
|
|
@@ -18317,14 +18317,14 @@ const gS = ({
|
|
|
18317
18317
|
}) => {
|
|
18318
18318
|
const r = e.message;
|
|
18319
18319
|
if (r.startsWith("<"))
|
|
18320
|
-
return /* @__PURE__ */ i(
|
|
18320
|
+
return /* @__PURE__ */ i(al, { message: r });
|
|
18321
18321
|
const a = n - 25 - 20 - 30;
|
|
18322
18322
|
return /* @__PURE__ */ i($n, { sx: {
|
|
18323
18323
|
width: "100%",
|
|
18324
18324
|
height: a
|
|
18325
18325
|
}, children: /* @__PURE__ */ u(S, { align: "center", spacing: 20, children: [
|
|
18326
18326
|
/* @__PURE__ */ i(mS, {}),
|
|
18327
|
-
/* @__PURE__ */ i(
|
|
18327
|
+
/* @__PURE__ */ i(al, { message: r })
|
|
18328
18328
|
] }) });
|
|
18329
18329
|
};
|
|
18330
18330
|
function yS({
|
|
@@ -18332,7 +18332,7 @@ function yS({
|
|
|
18332
18332
|
}) {
|
|
18333
18333
|
const {
|
|
18334
18334
|
value: t
|
|
18335
|
-
} = ee(e.instanceData, "config"), n = z(() => Ie({}, t,
|
|
18335
|
+
} = ee(e.instanceData, "config"), n = z(() => Ie({}, t, Qa), [t]), {
|
|
18336
18336
|
width: r,
|
|
18337
18337
|
height: o
|
|
18338
18338
|
} = e.viewport, a = e.data, {
|
|
@@ -18358,7 +18358,7 @@ function xS({
|
|
|
18358
18358
|
const {
|
|
18359
18359
|
value: t,
|
|
18360
18360
|
set: n
|
|
18361
|
-
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t,
|
|
18361
|
+
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t, Qa), [t]), {
|
|
18362
18362
|
control: o,
|
|
18363
18363
|
handleSubmit: a,
|
|
18364
18364
|
watch: s,
|
|
@@ -18416,7 +18416,7 @@ const wS = {
|
|
|
18416
18416
|
createConfig() {
|
|
18417
18417
|
return {
|
|
18418
18418
|
version: 1,
|
|
18419
|
-
config: He(
|
|
18419
|
+
config: He(Qa)
|
|
18420
18420
|
};
|
|
18421
18421
|
}
|
|
18422
18422
|
};
|
|
@@ -18661,7 +18661,7 @@ const Od = {
|
|
|
18661
18661
|
description: "Data of the row",
|
|
18662
18662
|
valueType: "object"
|
|
18663
18663
|
}]
|
|
18664
|
-
},
|
|
18664
|
+
}, Ua = {
|
|
18665
18665
|
calendar: {
|
|
18666
18666
|
data_key: "",
|
|
18667
18667
|
locale: "EN"
|
|
@@ -18732,7 +18732,7 @@ function VS({
|
|
|
18732
18732
|
value: r
|
|
18733
18733
|
} = ee(e.instanceData, "config"), {
|
|
18734
18734
|
variables: o
|
|
18735
|
-
} = e, a = z(() => k.defaults({}, r,
|
|
18735
|
+
} = e, a = z(() => k.defaults({}, r, Ua), [r]), s = e.data, {
|
|
18736
18736
|
width: l,
|
|
18737
18737
|
height: c
|
|
18738
18738
|
} = e.viewport;
|
|
@@ -18882,7 +18882,7 @@ function YS({
|
|
|
18882
18882
|
const {
|
|
18883
18883
|
value: t,
|
|
18884
18884
|
set: n
|
|
18885
|
-
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t,
|
|
18885
|
+
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t, Ua), [t]), o = z(() => k.cloneDeep(r), [r]);
|
|
18886
18886
|
W(() => {
|
|
18887
18887
|
!ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
18888
18888
|
}, [r, o]);
|
|
@@ -19015,10 +19015,10 @@ const KS = {
|
|
|
19015
19015
|
configRender: YS,
|
|
19016
19016
|
createConfig: () => ({
|
|
19017
19017
|
version: 3,
|
|
19018
|
-
config:
|
|
19018
|
+
config: Ua
|
|
19019
19019
|
}),
|
|
19020
19020
|
triggers: [Od]
|
|
19021
|
-
},
|
|
19021
|
+
}, Ka = {
|
|
19022
19022
|
x_axes: [{
|
|
19023
19023
|
id: "initial-x",
|
|
19024
19024
|
min: "",
|
|
@@ -19197,7 +19197,7 @@ function ak({
|
|
|
19197
19197
|
});
|
|
19198
19198
|
const s = zi(t, r, o), l = k.groupBy(s, "0");
|
|
19199
19199
|
return e.map(([d]) => {
|
|
19200
|
-
const h = l[d].map((f) => f[1]), m =
|
|
19200
|
+
const h = l[d].map((f) => f[1]), m = Ia(h, n);
|
|
19201
19201
|
return [d, m];
|
|
19202
19202
|
});
|
|
19203
19203
|
}
|
|
@@ -19444,7 +19444,7 @@ function bk({
|
|
|
19444
19444
|
interactionManager: o,
|
|
19445
19445
|
variables: a
|
|
19446
19446
|
}) {
|
|
19447
|
-
const s = Fn(t, e.y_axis.data_key), l = Tt(o.triggerManager,
|
|
19447
|
+
const s = Fn(t, e.y_axis.data_key), l = Tt(o.triggerManager, za.id), c = Ke((h) => {
|
|
19448
19448
|
const m = k.get(s, h.name, {
|
|
19449
19449
|
error: "rowData is not found"
|
|
19450
19450
|
});
|
|
@@ -19473,7 +19473,7 @@ function yk({
|
|
|
19473
19473
|
value: r
|
|
19474
19474
|
} = ee(e.instanceData, "config"), {
|
|
19475
19475
|
variables: o
|
|
19476
|
-
} = e, a = z(() => Ee({}, r,
|
|
19476
|
+
} = e, a = z(() => Ee({}, r, Ka), [r]), s = e.data, {
|
|
19477
19477
|
width: l,
|
|
19478
19478
|
height: c
|
|
19479
19479
|
} = e.viewport;
|
|
@@ -19980,7 +19980,7 @@ function Ak({
|
|
|
19980
19980
|
set: n
|
|
19981
19981
|
} = ee(e.instanceData, "config"), {
|
|
19982
19982
|
variables: r
|
|
19983
|
-
} = e, o = z(() => k.defaultsDeep({}, t,
|
|
19983
|
+
} = e, o = z(() => k.defaultsDeep({}, t, Ka), [t]), {
|
|
19984
19984
|
control: a,
|
|
19985
19985
|
handleSubmit: s,
|
|
19986
19986
|
watch: l,
|
|
@@ -20087,9 +20087,9 @@ const Ok = {
|
|
|
20087
20087
|
configRender: Ak,
|
|
20088
20088
|
createConfig: () => ({
|
|
20089
20089
|
version: 2,
|
|
20090
|
-
config:
|
|
20090
|
+
config: Ka
|
|
20091
20091
|
})
|
|
20092
|
-
},
|
|
20092
|
+
}, Xa = {
|
|
20093
20093
|
x_axis: {
|
|
20094
20094
|
name: "",
|
|
20095
20095
|
data_key: "",
|
|
@@ -20148,7 +20148,7 @@ function Fk() {
|
|
|
20148
20148
|
show: !0
|
|
20149
20149
|
}];
|
|
20150
20150
|
}
|
|
20151
|
-
const
|
|
20151
|
+
const sl = ({
|
|
20152
20152
|
value: e
|
|
20153
20153
|
}) => {
|
|
20154
20154
|
try {
|
|
@@ -20172,7 +20172,7 @@ function Pk(e, t, n) {
|
|
|
20172
20172
|
}),
|
|
20173
20173
|
label: {
|
|
20174
20174
|
show: !0,
|
|
20175
|
-
formatter:
|
|
20175
|
+
formatter: sl
|
|
20176
20176
|
},
|
|
20177
20177
|
labelLayout: {
|
|
20178
20178
|
hideOverlap: !0
|
|
@@ -20201,7 +20201,7 @@ function Pk(e, t, n) {
|
|
|
20201
20201
|
<tbody>
|
|
20202
20202
|
<tr>
|
|
20203
20203
|
<th style="text-align: right;">准确估算比例</th>
|
|
20204
|
-
<td style="text-align: left; padding: 0 1em;">${
|
|
20204
|
+
<td style="text-align: left; padding: 0 1em;">${sl({
|
|
20205
20205
|
value: a
|
|
20206
20206
|
})}</td>
|
|
20207
20207
|
</tr>
|
|
@@ -20599,7 +20599,7 @@ function fo(e) {
|
|
|
20599
20599
|
return e == 1 || e == 2 ? 1 : fo(e - 2) + fo(e - 1);
|
|
20600
20600
|
}
|
|
20601
20601
|
const Hk = Array.from(new Array(20), (e, t) => fo(t + 1));
|
|
20602
|
-
function
|
|
20602
|
+
function ll(e) {
|
|
20603
20603
|
return e <= 1 ? e : Hk.findIndex((t) => e <= t) - 1;
|
|
20604
20604
|
}
|
|
20605
20605
|
function Qk(e, t) {
|
|
@@ -20608,7 +20608,7 @@ function Qk(e, t) {
|
|
|
20608
20608
|
deviation: r
|
|
20609
20609
|
} = e, o = q(n.data_key), a = q(r.data_keys.estimated_value), s = q(r.data_keys.actual_value);
|
|
20610
20610
|
return t[o.queryID].map((l) => {
|
|
20611
|
-
const c =
|
|
20611
|
+
const c = ll(l[a.columnKey]), d = ll(l[s.columnKey]), p = c - d;
|
|
20612
20612
|
return {
|
|
20613
20613
|
...l,
|
|
20614
20614
|
level: {
|
|
@@ -20708,7 +20708,7 @@ const eT = {
|
|
|
20708
20708
|
cursor: "default",
|
|
20709
20709
|
userSelect: "none"
|
|
20710
20710
|
}, children: "基线指标" }),
|
|
20711
|
-
/* @__PURE__ */ i(
|
|
20711
|
+
/* @__PURE__ */ i(vl, { size: "xs", data: a, value: t, onChange: (s) => n(s.currentTarget.value), styles: eT })
|
|
20712
20712
|
] });
|
|
20713
20713
|
}, nT = {
|
|
20714
20714
|
"tbody th, tbody td": {
|
|
@@ -20758,7 +20758,7 @@ function aT({
|
|
|
20758
20758
|
}) {
|
|
20759
20759
|
const {
|
|
20760
20760
|
value: t
|
|
20761
|
-
} = ee(e.instanceData, "config"), n = z(() => Ee({}, t,
|
|
20761
|
+
} = ee(e.instanceData, "config"), n = z(() => Ee({}, t, Xa), [t]), r = e.data, {
|
|
20762
20762
|
width: o,
|
|
20763
20763
|
height: a
|
|
20764
20764
|
} = e.viewport, {
|
|
@@ -20921,7 +20921,7 @@ function uT({
|
|
|
20921
20921
|
const {
|
|
20922
20922
|
value: t,
|
|
20923
20923
|
set: n
|
|
20924
|
-
} = ee(e.instanceData, "config"), r = z(() => k.defaultsDeep({}, t,
|
|
20924
|
+
} = ee(e.instanceData, "config"), r = z(() => k.defaultsDeep({}, t, Xa), [t]), {
|
|
20925
20925
|
control: o,
|
|
20926
20926
|
handleSubmit: a,
|
|
20927
20927
|
watch: s,
|
|
@@ -21028,9 +21028,9 @@ const mT = {
|
|
|
21028
21028
|
configRender: uT,
|
|
21029
21029
|
createConfig: () => ({
|
|
21030
21030
|
version: 2,
|
|
21031
|
-
config:
|
|
21031
|
+
config: Xa
|
|
21032
21032
|
})
|
|
21033
|
-
},
|
|
21033
|
+
}, Ja = {
|
|
21034
21034
|
styles: {
|
|
21035
21035
|
justify: "space-around",
|
|
21036
21036
|
align: "start"
|
|
@@ -21055,7 +21055,7 @@ function fT() {
|
|
|
21055
21055
|
}
|
|
21056
21056
|
};
|
|
21057
21057
|
}
|
|
21058
|
-
const
|
|
21058
|
+
const cl = ({
|
|
21059
21059
|
postfix: e
|
|
21060
21060
|
}) => e ? /* @__PURE__ */ u(j, { children: [
|
|
21061
21061
|
/* @__PURE__ */ i(C, { size: "12px", color: "#818388", sx: {
|
|
@@ -21089,7 +21089,7 @@ const ll = ({
|
|
|
21089
21089
|
/* @__PURE__ */ i(C, { size: "24px", fw: "bold", color: "#3D3E45", sx: {
|
|
21090
21090
|
lineHeight: 1
|
|
21091
21091
|
}, children: oe(t[r.value]).format(o) }),
|
|
21092
|
-
/* @__PURE__ */ i(
|
|
21092
|
+
/* @__PURE__ */ i(cl, { postfix: l })
|
|
21093
21093
|
] })
|
|
21094
21094
|
] }),
|
|
21095
21095
|
/* @__PURE__ */ u(S, { spacing: 12, children: [
|
|
@@ -21098,7 +21098,7 @@ const ll = ({
|
|
|
21098
21098
|
/* @__PURE__ */ i(C, { size: "12px", color: "#3D3E45", sx: {
|
|
21099
21099
|
lineHeight: 1
|
|
21100
21100
|
}, children: oe(t[r.basis]).format(o) }),
|
|
21101
|
-
/* @__PURE__ */ i(
|
|
21101
|
+
/* @__PURE__ */ i(cl, { postfix: l })
|
|
21102
21102
|
] })
|
|
21103
21103
|
] })
|
|
21104
21104
|
] });
|
|
@@ -21110,7 +21110,7 @@ const ll = ({
|
|
|
21110
21110
|
value: n
|
|
21111
21111
|
} = ee(e.instanceData, "config"), {
|
|
21112
21112
|
variables: r
|
|
21113
|
-
} = e, o = z(() => k.defaults({}, n,
|
|
21113
|
+
} = e, o = z(() => k.defaults({}, n, Ja), [n]), a = e.data, s = z(() => ld(a, r), [r, a]), {
|
|
21114
21114
|
width: l,
|
|
21115
21115
|
height: c
|
|
21116
21116
|
} = e.viewport;
|
|
@@ -21322,7 +21322,7 @@ function kT({
|
|
|
21322
21322
|
set: n
|
|
21323
21323
|
} = ee(e.instanceData, "config"), {
|
|
21324
21324
|
variables: r
|
|
21325
|
-
} = e, o = z(() => Ie({}, t,
|
|
21325
|
+
} = e, o = z(() => Ie({}, t, Ja), [t]), {
|
|
21326
21326
|
control: a,
|
|
21327
21327
|
handleSubmit: s,
|
|
21328
21328
|
watch: l,
|
|
@@ -21389,7 +21389,7 @@ const IT = {
|
|
|
21389
21389
|
configRender: kT,
|
|
21390
21390
|
createConfig: () => ({
|
|
21391
21391
|
version: 2,
|
|
21392
|
-
config:
|
|
21392
|
+
config: Ja
|
|
21393
21393
|
})
|
|
21394
21394
|
};
|
|
21395
21395
|
function MT({
|
|
@@ -21692,7 +21692,7 @@ function FT({
|
|
|
21692
21692
|
] })
|
|
21693
21693
|
] });
|
|
21694
21694
|
}
|
|
21695
|
-
const
|
|
21695
|
+
const Za = {
|
|
21696
21696
|
x_axis: {
|
|
21697
21697
|
name: "",
|
|
21698
21698
|
data_key: "",
|
|
@@ -21743,7 +21743,7 @@ function PT({
|
|
|
21743
21743
|
const {
|
|
21744
21744
|
value: t,
|
|
21745
21745
|
set: n
|
|
21746
|
-
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t,
|
|
21746
|
+
} = ee(e.instanceData, "config"), r = z(() => Ie({}, t, Za), [t]), o = z(() => k.cloneDeep(r), [r]);
|
|
21747
21747
|
W(() => {
|
|
21748
21748
|
!ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
21749
21749
|
}, [r, o]);
|
|
@@ -21836,7 +21836,7 @@ const Vd = {
|
|
|
21836
21836
|
valueType: "object"
|
|
21837
21837
|
}]
|
|
21838
21838
|
};
|
|
21839
|
-
function
|
|
21839
|
+
function dl({
|
|
21840
21840
|
enabled: e,
|
|
21841
21841
|
func_content: t
|
|
21842
21842
|
}) {
|
|
@@ -21851,7 +21851,7 @@ function cl({
|
|
|
21851
21851
|
};
|
|
21852
21852
|
}
|
|
21853
21853
|
function BT(e) {
|
|
21854
|
-
const t =
|
|
21854
|
+
const t = dl(e.x_axis.axisLabel.formatter), n = dl(e.y_axis.axisLabel.formatter);
|
|
21855
21855
|
return {
|
|
21856
21856
|
x_axis: t,
|
|
21857
21857
|
y_axis: n
|
|
@@ -22143,7 +22143,7 @@ function eD({
|
|
|
22143
22143
|
value: r
|
|
22144
22144
|
} = ee(e.instanceData, "config"), {
|
|
22145
22145
|
variables: o
|
|
22146
|
-
} = e, a = z(() => Ee({}, r,
|
|
22146
|
+
} = e, a = z(() => Ee({}, r, Za), [r]), s = e.data, {
|
|
22147
22147
|
width: l,
|
|
22148
22148
|
height: c
|
|
22149
22149
|
} = e.viewport;
|
|
@@ -22170,7 +22170,7 @@ const nD = {
|
|
|
22170
22170
|
configRender: PT,
|
|
22171
22171
|
createConfig: () => ({
|
|
22172
22172
|
version: 1,
|
|
22173
|
-
config:
|
|
22173
|
+
config: Za
|
|
22174
22174
|
}),
|
|
22175
22175
|
triggers: [Vd]
|
|
22176
22176
|
}, rD = [{
|
|
@@ -22239,7 +22239,7 @@ const nD = {
|
|
|
22239
22239
|
operationManager: Kt("operationManager"),
|
|
22240
22240
|
triggerManager: Kt("triggerManager")
|
|
22241
22241
|
}
|
|
22242
|
-
},
|
|
22242
|
+
}, es = () => {
|
|
22243
22243
|
try {
|
|
22244
22244
|
ur.install(Nd());
|
|
22245
22245
|
} catch {
|
|
@@ -22250,14 +22250,14 @@ const nD = {
|
|
|
22250
22250
|
vizManager: e,
|
|
22251
22251
|
colorManager: t
|
|
22252
22252
|
};
|
|
22253
|
-
}, Yt =
|
|
22253
|
+
}, Yt = xl(es());
|
|
22254
22254
|
try {
|
|
22255
22255
|
ur.install(Nd());
|
|
22256
22256
|
} catch {
|
|
22257
22257
|
}
|
|
22258
|
-
const go =
|
|
22258
|
+
const go = xl(null);
|
|
22259
22259
|
function Li(e) {
|
|
22260
|
-
const t = R.useContext(go), n = $t(() => e.configure(t || new
|
|
22260
|
+
const t = R.useContext(go), n = $t(() => e.configure(t || new ga()), [e.configure]), r = Ch(n);
|
|
22261
22261
|
return r && r !== n && r.dispose(), /* @__PURE__ */ i(go.Provider, { value: n, children: e.children });
|
|
22262
22262
|
}
|
|
22263
22263
|
function Bd() {
|
|
@@ -22560,7 +22560,7 @@ const oD = ({
|
|
|
22560
22560
|
] }),
|
|
22561
22561
|
M && /* @__PURE__ */ i(Oe, { label: `${l.length} selected`, children: /* @__PURE__ */ i(br, { children: l.length }) })
|
|
22562
22562
|
] }),
|
|
22563
|
-
/* @__PURE__ */ i(jp, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: T, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ i(
|
|
22563
|
+
/* @__PURE__ */ i(jp, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: T, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ i(_l, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ i(Wd, { errorMessage: p }), maxTagTextLength: 10, maxTagPlaceholder: (V) => `${V.length} selected`, searchValue: L, onSearch: B, filterOption: !1, children: K.map((V) => /* @__PURE__ */ u(Gp, { title: V.label, children: [
|
|
22564
22564
|
/* @__PURE__ */ i(C, { size: "sm", "data-role": "label", children: V.label }),
|
|
22565
22565
|
V.description && /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", "data-role": "description", children: V.description })
|
|
22566
22566
|
] }, V.value)) })
|
|
@@ -22940,7 +22940,7 @@ const pD = ({
|
|
|
22940
22940
|
choiceTransitionName: "rc-tree-select-selection__choice-zoom",
|
|
22941
22941
|
style: a,
|
|
22942
22942
|
treeLine: !0,
|
|
22943
|
-
clearIcon: () => /* @__PURE__ */ i(
|
|
22943
|
+
clearIcon: () => /* @__PURE__ */ i(_l, {}),
|
|
22944
22944
|
switcherIcon: mD,
|
|
22945
22945
|
treeIcon: gD,
|
|
22946
22946
|
maxTagTextLength: 10,
|
|
@@ -23316,7 +23316,7 @@ const kD = b.model("PanelLayoutMeta", {
|
|
|
23316
23316
|
removeVariable(t) {
|
|
23317
23317
|
e.variables.remove(t);
|
|
23318
23318
|
}
|
|
23319
|
-
})), Ai = (e) =>
|
|
23319
|
+
})), Ai = (e) => El(e, (t, n) => {
|
|
23320
23320
|
if (n !== void 0 && t)
|
|
23321
23321
|
return an(t);
|
|
23322
23322
|
});
|
|
@@ -23562,7 +23562,7 @@ const RD = b.model("FilterDateRangeConfigMeta", {
|
|
|
23562
23562
|
setValue(t) {
|
|
23563
23563
|
e.value = t;
|
|
23564
23564
|
}
|
|
23565
|
-
})),
|
|
23565
|
+
})), ts = b.model("FilterConfigModel_BaseSelect", {
|
|
23566
23566
|
static_options: b.optional(b.array(FD), []),
|
|
23567
23567
|
options_query_id: b.optional(b.string, ""),
|
|
23568
23568
|
default_selection_count: b.optional(b.number, 0),
|
|
@@ -23602,7 +23602,7 @@ const RD = b.model("FilterDateRangeConfigMeta", {
|
|
|
23602
23602
|
_name: b.literal("multi-select"),
|
|
23603
23603
|
min_width: b.optional(b.string, ""),
|
|
23604
23604
|
default_value: b.optional(b.array(b.string), [])
|
|
23605
|
-
}),
|
|
23605
|
+
}), ts).views((e) => ({
|
|
23606
23606
|
get json() {
|
|
23607
23607
|
const {
|
|
23608
23608
|
_name: t,
|
|
@@ -23657,7 +23657,7 @@ const RD = b.model("FilterDateRangeConfigMeta", {
|
|
|
23657
23657
|
_name: b.literal("select"),
|
|
23658
23658
|
default_value: b.string,
|
|
23659
23659
|
width: b.optional(b.string, "")
|
|
23660
|
-
}),
|
|
23660
|
+
}), ts).views((e) => ({
|
|
23661
23661
|
get json() {
|
|
23662
23662
|
const {
|
|
23663
23663
|
_name: t,
|
|
@@ -23780,7 +23780,7 @@ const eu = b.compose("FilterTreeSelectConfigMeta", b.model({
|
|
|
23780
23780
|
min_width: b.optional(b.string, ""),
|
|
23781
23781
|
default_value: b.optional(b.array(b.string), []),
|
|
23782
23782
|
treeCheckStrictly: b.optional(b.boolean, !1)
|
|
23783
|
-
}),
|
|
23783
|
+
}), ts).views((e) => ({
|
|
23784
23784
|
get json() {
|
|
23785
23785
|
const {
|
|
23786
23786
|
_name: t,
|
|
@@ -24217,7 +24217,7 @@ const nu = b.model("ViewDivisionConfig", {
|
|
|
24217
24217
|
replace(t) {
|
|
24218
24218
|
e.list.length = 0, e.list.push(...t);
|
|
24219
24219
|
}
|
|
24220
|
-
})),
|
|
24220
|
+
})), ns = b.model("ContextMeta", {
|
|
24221
24221
|
current: b.optional(b.frozen(), {})
|
|
24222
24222
|
}).views((e) => ({
|
|
24223
24223
|
get keys() {
|
|
@@ -24238,7 +24238,7 @@ const nu = b.model("ViewDivisionConfig", {
|
|
|
24238
24238
|
}
|
|
24239
24239
|
}));
|
|
24240
24240
|
function su(e) {
|
|
24241
|
-
return
|
|
24241
|
+
return ns.create({
|
|
24242
24242
|
current: e
|
|
24243
24243
|
});
|
|
24244
24244
|
}
|
|
@@ -24517,7 +24517,7 @@ async function nI(e, t) {
|
|
|
24517
24517
|
});
|
|
24518
24518
|
ua(r, `${e}.csv`);
|
|
24519
24519
|
}
|
|
24520
|
-
function
|
|
24520
|
+
function ul(e) {
|
|
24521
24521
|
const t = new Zp();
|
|
24522
24522
|
e.forEach(({
|
|
24523
24523
|
id: n,
|
|
@@ -24560,7 +24560,7 @@ function sI(e, t, n) {
|
|
|
24560
24560
|
}
|
|
24561
24561
|
const lI = $D.views((e) => ({
|
|
24562
24562
|
get conditionOptions() {
|
|
24563
|
-
if (!
|
|
24563
|
+
if (!Ls(e))
|
|
24564
24564
|
return [];
|
|
24565
24565
|
const t = Ae(e).content, {
|
|
24566
24566
|
context: n
|
|
@@ -24578,7 +24578,7 @@ const lI = $D.views((e) => ({
|
|
|
24578
24578
|
return [...r, ...o];
|
|
24579
24579
|
},
|
|
24580
24580
|
get unmetRunByConditions() {
|
|
24581
|
-
if (!
|
|
24581
|
+
if (!Ls(e))
|
|
24582
24582
|
return [];
|
|
24583
24583
|
const {
|
|
24584
24584
|
run_by: t
|
|
@@ -24814,7 +24814,7 @@ const lI = $D.views((e) => ({
|
|
|
24814
24814
|
id: n,
|
|
24815
24815
|
data: r
|
|
24816
24816
|
}));
|
|
24817
|
-
|
|
24817
|
+
ul(t);
|
|
24818
24818
|
},
|
|
24819
24819
|
downloadDataByQueryIDs(t) {
|
|
24820
24820
|
const n = new Set(t), r = e.current.filter((o) => n.has(o.id)).map(({
|
|
@@ -24824,7 +24824,7 @@ const lI = $D.views((e) => ({
|
|
|
24824
24824
|
id: o,
|
|
24825
24825
|
data: a
|
|
24826
24826
|
}));
|
|
24827
|
-
|
|
24827
|
+
ul(r);
|
|
24828
24828
|
},
|
|
24829
24829
|
downloadDataByQueryID(t) {
|
|
24830
24830
|
const n = e.findByID(t);
|
|
@@ -24951,9 +24951,9 @@ const mI = (e) => new pI(e), fI = D(({
|
|
|
24951
24951
|
/* @__PURE__ */ i(he.Item, { onClick: o.refreshData, icon: /* @__PURE__ */ i(oa, { size: 14 }), children: "Refresh" }),
|
|
24952
24952
|
/* @__PURE__ */ i(he.Item, { onClick: o.downloadData, icon: /* @__PURE__ */ i(aa, { size: 14 }), children: "Download Data" }),
|
|
24953
24953
|
/* @__PURE__ */ i(he.Item, { onClick: a, icon: /* @__PURE__ */ i(mi, { size: 14 }), children: "Screenshot" }),
|
|
24954
|
-
f && /* @__PURE__ */ i(he.Item, { onClick: m, icon: /* @__PURE__ */ i(
|
|
24954
|
+
f && /* @__PURE__ */ i(he.Item, { onClick: m, icon: /* @__PURE__ */ i(Ol, { size: 14 }), disabled: !0, children: "Full Screen" }),
|
|
24955
24955
|
/* @__PURE__ */ i(A, { label: "Edit", labelPosition: "center" }),
|
|
24956
|
-
/* @__PURE__ */ i(he.Item, { onClick: p, icon: /* @__PURE__ */ i(
|
|
24956
|
+
/* @__PURE__ */ i(he.Item, { onClick: p, icon: /* @__PURE__ */ i(Fl, { size: 14 }), children: "Settings" }),
|
|
24957
24957
|
/* @__PURE__ */ i(he.Item, { onClick: d, icon: /* @__PURE__ */ i(qh, { size: 14 }), children: "Duplicate" }),
|
|
24958
24958
|
/* @__PURE__ */ i(he.Item, { color: "red", onClick: h, icon: /* @__PURE__ */ i(ye, { size: 14 }), children: "Delete" })
|
|
24959
24959
|
] })
|
|
@@ -25001,7 +25001,7 @@ function yI(e) {
|
|
|
25001
25001
|
if (!r)
|
|
25002
25002
|
return;
|
|
25003
25003
|
const o = r.offsetWidth * 2, a = r.offsetHeight * 2;
|
|
25004
|
-
|
|
25004
|
+
fc.toBlob(t.current, {
|
|
25005
25005
|
bgcolor: "white",
|
|
25006
25006
|
width: o,
|
|
25007
25007
|
height: a,
|
|
@@ -25075,7 +25075,7 @@ function vu(e) {
|
|
|
25075
25075
|
const r = n.getRequired(Ve.vizManager), o = r.resolveComponent(e.viz.type);
|
|
25076
25076
|
return n.createScoped().provideFactory(Ve.instanceScope.vizInstance, () => r.getOrCreateInstance(e)).provideFactory(Ve.instanceScope.interactionManager, (a) => {
|
|
25077
25077
|
const s = a.getRequired(Ve.instanceScope.vizInstance);
|
|
25078
|
-
return new
|
|
25078
|
+
return new wa(s, o, yi);
|
|
25079
25079
|
}).provideFactory(Ve.instanceScope.operationManager, (a) => a.getRequired(Ve.instanceScope.interactionManager).operationManager).provideFactory(Ve.instanceScope.triggerManager, (a) => a.getRequired(Ve.instanceScope.interactionManager).triggerManager).provideValue(Ve.instanceScope.panelModel, t).provideFactory(Ve.instanceScope.migrator, (a) => new xI(a));
|
|
25080
25080
|
}, [e.viz.type, e.viz.conf]);
|
|
25081
25081
|
}
|
|
@@ -25120,7 +25120,7 @@ function wI(e) {
|
|
|
25120
25120
|
_u(n, t);
|
|
25121
25121
|
const {
|
|
25122
25122
|
inEditMode: r
|
|
25123
|
-
} = rn(
|
|
25123
|
+
} = rn(ya);
|
|
25124
25124
|
return wu(() => {
|
|
25125
25125
|
r && gi({
|
|
25126
25126
|
title: `${t.name} - Updated`,
|
|
@@ -25260,7 +25260,7 @@ const zI = D(({
|
|
|
25260
25260
|
/* @__PURE__ */ i(he.Item, { onClick: t.refreshData, icon: /* @__PURE__ */ i(oa, { size: 14 }), children: "Refresh" }),
|
|
25261
25261
|
/* @__PURE__ */ i(he.Item, { onClick: t.downloadData, icon: /* @__PURE__ */ i(aa, { size: 14 }), children: "Download Data" }),
|
|
25262
25262
|
/* @__PURE__ */ i(he.Item, { onClick: n, icon: /* @__PURE__ */ i(mi, { size: 14 }), children: "Screenshot" }),
|
|
25263
|
-
l && /* @__PURE__ */ i(he.Item, { onClick: s, icon: /* @__PURE__ */ i(
|
|
25263
|
+
l && /* @__PURE__ */ i(he.Item, { onClick: s, icon: /* @__PURE__ */ i(Ol, { size: 14 }), children: "Full Screen" })
|
|
25264
25264
|
] })
|
|
25265
25265
|
] }) }) : null;
|
|
25266
25266
|
});
|
|
@@ -25335,7 +25335,7 @@ const RI = R.forwardRef(({
|
|
|
25335
25335
|
"&:hover": {
|
|
25336
25336
|
color: "#228be6"
|
|
25337
25337
|
}
|
|
25338
|
-
}, variant: "transparent", ...t, children: /* @__PURE__ */ i(Gh, { size: 16 }) })), FI = hc
|
|
25338
|
+
}, variant: "transparent", ...t, children: /* @__PURE__ */ i(Gh, { size: 16 }) })), FI = pc(hc), PI = D(({
|
|
25339
25339
|
view: e,
|
|
25340
25340
|
className: t = "layout"
|
|
25341
25341
|
}) => {
|
|
@@ -25359,7 +25359,7 @@ const RI = R.forwardRef(({
|
|
|
25359
25359
|
/* @__PURE__ */ i(RI, { h: l.layout.h }),
|
|
25360
25360
|
/* @__PURE__ */ i(II, { view: e, panel: l })
|
|
25361
25361
|
] }, l.id)) });
|
|
25362
|
-
}), VI = hc
|
|
25362
|
+
}), VI = pc(hc), NI = D(function({
|
|
25363
25363
|
view: t,
|
|
25364
25364
|
className: n = "layout"
|
|
25365
25365
|
}) {
|
|
@@ -25371,7 +25371,7 @@ const RI = R.forwardRef(({
|
|
|
25371
25371
|
...a.layout
|
|
25372
25372
|
}, className: "panel-grid-item", children: /* @__PURE__ */ i(ku, { view: t, panel: a }) }, a.id)) });
|
|
25373
25373
|
});
|
|
25374
|
-
function
|
|
25374
|
+
function rs(e) {
|
|
25375
25375
|
const t = li(null);
|
|
25376
25376
|
return {
|
|
25377
25377
|
ref: t,
|
|
@@ -25381,7 +25381,7 @@ function ns(e) {
|
|
|
25381
25381
|
if (!r)
|
|
25382
25382
|
return;
|
|
25383
25383
|
const o = r.offsetWidth * 2 + 10, a = r.offsetHeight * 2 + 10;
|
|
25384
|
-
|
|
25384
|
+
fc.toBlob(r, {
|
|
25385
25385
|
bgcolor: "white",
|
|
25386
25386
|
width: o,
|
|
25387
25387
|
height: a,
|
|
@@ -25421,8 +25421,8 @@ const BI = D(({
|
|
|
25421
25421
|
/* @__PURE__ */ u(he.Dropdown, { children: [
|
|
25422
25422
|
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(mi, { size: 14 }), onClick: e, children: "Screenshot" }),
|
|
25423
25423
|
/* @__PURE__ */ i(he.Divider, {}),
|
|
25424
|
-
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(
|
|
25425
|
-
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(
|
|
25424
|
+
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(Vl, { size: 14 }), onClick: a.queries.downloadAllData, children: "Download Data" }),
|
|
25425
|
+
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(Nl, { size: 14 }), onClick: s, children: "Download Schema" })
|
|
25426
25426
|
] })
|
|
25427
25427
|
] });
|
|
25428
25428
|
}), Tu = D(({
|
|
@@ -25433,7 +25433,7 @@ const BI = D(({
|
|
|
25433
25433
|
const {
|
|
25434
25434
|
ref: r,
|
|
25435
25435
|
downloadScreenshot: o
|
|
25436
|
-
} =
|
|
25436
|
+
} = rs(t);
|
|
25437
25437
|
return /* @__PURE__ */ u(j, { children: [
|
|
25438
25438
|
/* @__PURE__ */ i(P, { ref: r, sx: n, children: e }),
|
|
25439
25439
|
/* @__PURE__ */ i(BI, { downloadScreenShot: o })
|
|
@@ -25447,7 +25447,7 @@ const BI = D(({
|
|
|
25447
25447
|
const n = je(), r = t.config, o = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id), {
|
|
25448
25448
|
ref: s,
|
|
25449
25449
|
downloadScreenshot: l
|
|
25450
|
-
} =
|
|
25450
|
+
} = rs(t);
|
|
25451
25451
|
return /* @__PURE__ */ i(De, { size: r.width, centered: !0, opened: o, onClose: a, withCloseButton: !1, title: /* @__PURE__ */ u(x, { position: "apart", px: "1rem", h: "48px", children: [
|
|
25452
25452
|
/* @__PURE__ */ i(P, { children: r.custom_modal_title.value }),
|
|
25453
25453
|
/* @__PURE__ */ i(Du, { downloadScreenshot: l })
|
|
@@ -25507,7 +25507,7 @@ const BI = D(({
|
|
|
25507
25507
|
/* @__PURE__ */ i(g.List, { grow: n.grow, children: n.tabs.map((r) => /* @__PURE__ */ i(g.Tab, { value: r.id, sx: WI(r), disabled: !r.view_id, children: r.name ?? r.id }, r.id)) }),
|
|
25508
25508
|
n.tabs.map((r) => {
|
|
25509
25509
|
const o = t.views.findByID(r.view_id);
|
|
25510
|
-
return o ? /* @__PURE__ */ i(g.Panel, { value: r.id, children: /* @__PURE__ */ i(
|
|
25510
|
+
return o ? /* @__PURE__ */ i(g.Panel, { value: r.id, children: /* @__PURE__ */ i(is, { view: o }) }, r.id) : null;
|
|
25511
25511
|
})
|
|
25512
25512
|
] });
|
|
25513
25513
|
}), GI = D(({
|
|
@@ -25530,7 +25530,7 @@ const BI = D(({
|
|
|
25530
25530
|
paddingTop: "10px",
|
|
25531
25531
|
paddingBottom: "100px"
|
|
25532
25532
|
}, view: t, children: e }));
|
|
25533
|
-
function
|
|
25533
|
+
function hl(e) {
|
|
25534
25534
|
return e.replace(/(vw|vh)/, "%");
|
|
25535
25535
|
}
|
|
25536
25536
|
const HI = D(({
|
|
@@ -25541,12 +25541,12 @@ const HI = D(({
|
|
|
25541
25541
|
width: r,
|
|
25542
25542
|
height: o
|
|
25543
25543
|
} = z(() => ({
|
|
25544
|
-
width:
|
|
25545
|
-
height:
|
|
25544
|
+
width: hl(n.width),
|
|
25545
|
+
height: hl(n.height)
|
|
25546
25546
|
}), [n.width, n.height]), {
|
|
25547
25547
|
ref: a,
|
|
25548
25548
|
downloadScreenshot: s
|
|
25549
|
-
} =
|
|
25549
|
+
} = rs(t);
|
|
25550
25550
|
return /* @__PURE__ */ i(P, { sx: {
|
|
25551
25551
|
height: "100%",
|
|
25552
25552
|
"> div:not(.mantine-Modal-root)": {
|
|
@@ -25675,7 +25675,7 @@ const HI = D(({
|
|
|
25675
25675
|
/* @__PURE__ */ i(I, { mt: 20, variant: "subtle", color: "red", onClick: () => a(c), disabled: s, leftIcon: /* @__PURE__ */ i(fn, { size: 14 }), children: "Delete This Tab" })
|
|
25676
25676
|
] })
|
|
25677
25677
|
] }),
|
|
25678
|
-
d && /* @__PURE__ */ i(
|
|
25678
|
+
d && /* @__PURE__ */ i(is, { view: d })
|
|
25679
25679
|
] }, l.id);
|
|
25680
25680
|
})
|
|
25681
25681
|
] });
|
|
@@ -25707,7 +25707,7 @@ const HI = D(({
|
|
|
25707
25707
|
}, children: /* @__PURE__ */ i(jd, { view: t }) }),
|
|
25708
25708
|
/* @__PURE__ */ i(PI, { view: t })
|
|
25709
25709
|
] }) }) }) });
|
|
25710
|
-
}),
|
|
25710
|
+
}), is = D(function({
|
|
25711
25711
|
view: t
|
|
25712
25712
|
}) {
|
|
25713
25713
|
const {
|
|
@@ -26245,7 +26245,7 @@ const hM = b.model("EditorModel", {
|
|
|
26245
26245
|
label: "Query Variables",
|
|
26246
26246
|
value: "_QUERY_VARS_",
|
|
26247
26247
|
_type: "query_variables",
|
|
26248
|
-
Icon:
|
|
26248
|
+
Icon: Bl
|
|
26249
26249
|
}, {
|
|
26250
26250
|
label: "Mock Context",
|
|
26251
26251
|
value: "_MOCK_CONTEXT_",
|
|
@@ -26254,7 +26254,7 @@ const hM = b.model("EditorModel", {
|
|
|
26254
26254
|
}, {
|
|
26255
26255
|
label: "Filters",
|
|
26256
26256
|
value: "_FILTERS_",
|
|
26257
|
-
Icon:
|
|
26257
|
+
Icon: ql,
|
|
26258
26258
|
children: [...n.options, Wn("_Add_A_Filter_")],
|
|
26259
26259
|
_type: "GROUP"
|
|
26260
26260
|
}, {
|
|
@@ -26272,7 +26272,7 @@ const hM = b.model("EditorModel", {
|
|
|
26272
26272
|
}, {
|
|
26273
26273
|
label: "Views",
|
|
26274
26274
|
value: "_VIEWS_",
|
|
26275
|
-
Icon:
|
|
26275
|
+
Icon: Wl,
|
|
26276
26276
|
children: [...r.editorOptions, Wn("_Add_A_VIEW_")],
|
|
26277
26277
|
_type: "GROUP"
|
|
26278
26278
|
}];
|
|
@@ -26349,7 +26349,7 @@ const hM = b.model("EditorModel", {
|
|
|
26349
26349
|
}
|
|
26350
26350
|
})).actions((e) => ({
|
|
26351
26351
|
replace(t) {
|
|
26352
|
-
e.list =
|
|
26352
|
+
e.list = mc(t);
|
|
26353
26353
|
},
|
|
26354
26354
|
append(t) {
|
|
26355
26355
|
e.list.push(t);
|
|
@@ -26520,7 +26520,7 @@ const gM = b.model({
|
|
|
26520
26520
|
return !ke(en(ue(e, t)), ue(e.origin, t));
|
|
26521
26521
|
},
|
|
26522
26522
|
get queriesChanged() {
|
|
26523
|
-
const t = "queries.current", n = en(ue(e, t)).map((r) =>
|
|
26523
|
+
const t = "queries.current", n = en(ue(e, t)).map((r) => Rl(r, ["id", "name", "key", "type", "sql", "run_by", "react_to", "pre_process", "post_process"]));
|
|
26524
26524
|
return !ke(n, ue(e.origin, t));
|
|
26525
26525
|
},
|
|
26526
26526
|
get sqlSnippetsChanged() {
|
|
@@ -26563,6 +26563,16 @@ const gM = b.model({
|
|
|
26563
26563
|
filters: e.filters.values
|
|
26564
26564
|
};
|
|
26565
26565
|
},
|
|
26566
|
+
get dashboardState() {
|
|
26567
|
+
return ma(this.payloadForSQL);
|
|
26568
|
+
},
|
|
26569
|
+
getAdditionalQueryInfo(t) {
|
|
26570
|
+
return {
|
|
26571
|
+
content_id: e.id,
|
|
26572
|
+
query_id: t,
|
|
26573
|
+
params: this.dashboardState
|
|
26574
|
+
};
|
|
26575
|
+
},
|
|
26566
26576
|
get changed() {
|
|
26567
26577
|
return this.filtersChanged || this.queriesChanged || this.sqlSnippetsChanged || this.viewsChanged || this.panelsChanged || this.mockContextChanged;
|
|
26568
26578
|
},
|
|
@@ -26717,7 +26727,7 @@ const gM = b.model({
|
|
|
26717
26727
|
},
|
|
26718
26728
|
postProcessor(e) {
|
|
26719
26729
|
delete e.origin;
|
|
26720
|
-
const t =
|
|
26730
|
+
const t = mc(e.queries.current.map((n) => Rl(n, ["id", "key", "type", "sql"])));
|
|
26721
26731
|
return Ee({}, {
|
|
26722
26732
|
queries: {
|
|
26723
26733
|
current: t
|
|
@@ -26778,7 +26788,7 @@ const yM = b.model({
|
|
|
26778
26788
|
content_id: b.string,
|
|
26779
26789
|
datasources: dM,
|
|
26780
26790
|
globalSQLSnippets: au,
|
|
26781
|
-
context:
|
|
26791
|
+
context: ns,
|
|
26782
26792
|
editor: hM
|
|
26783
26793
|
}).views((e) => ({
|
|
26784
26794
|
get json() {
|
|
@@ -26890,7 +26900,7 @@ function zu(e, t) {
|
|
|
26890
26900
|
return;
|
|
26891
26901
|
}
|
|
26892
26902
|
function c(h) {
|
|
26893
|
-
return
|
|
26903
|
+
return El(h, (f) => {
|
|
26894
26904
|
if (s && typeof f == "string")
|
|
26895
26905
|
return encodeURIComponent(f);
|
|
26896
26906
|
});
|
|
@@ -26918,8 +26928,8 @@ const vM = D(() => {
|
|
|
26918
26928
|
return /* @__PURE__ */ u(he, { shadow: "md", width: 200, trigger: "hover", openDelay: 100, closeDelay: 400, withinPortal: !0, zIndex: 310, children: [
|
|
26919
26929
|
/* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(U, { variant: "light", color: "blue", children: /* @__PURE__ */ i(sp, { size: 14 }) }) }),
|
|
26920
26930
|
/* @__PURE__ */ u(he.Dropdown, { children: [
|
|
26921
|
-
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(
|
|
26922
|
-
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(
|
|
26931
|
+
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(Vl, { size: 14 }), onClick: t.queries.downloadAllData, children: "Download Data" }),
|
|
26932
|
+
/* @__PURE__ */ i(he.Item, { icon: /* @__PURE__ */ i(Nl, { size: 14 }), onClick: n, children: "Download Schema" })
|
|
26923
26933
|
] })
|
|
26924
26934
|
] });
|
|
26925
26935
|
}), wM = D(({
|
|
@@ -26928,7 +26938,7 @@ const vM = D(() => {
|
|
|
26928
26938
|
const t = At(), n = _e(), r = () => {
|
|
26929
26939
|
t.openConfirmModal({
|
|
26930
26940
|
title: /* @__PURE__ */ u(x, { position: "left", children: [
|
|
26931
|
-
/* @__PURE__ */ i(
|
|
26941
|
+
/* @__PURE__ */ i(jl, { size: 18, color: "red" }),
|
|
26932
26942
|
/* @__PURE__ */ i(C, { children: "You are reverting changes" })
|
|
26933
26943
|
] }),
|
|
26934
26944
|
labels: {
|
|
@@ -26971,7 +26981,7 @@ const vM = D(() => {
|
|
|
26971
26981
|
}, a = At(), s = () => {
|
|
26972
26982
|
a.openConfirmModal({
|
|
26973
26983
|
title: /* @__PURE__ */ u(x, { position: "left", children: [
|
|
26974
|
-
/* @__PURE__ */ i(
|
|
26984
|
+
/* @__PURE__ */ i(jl, { size: 18, color: "red" }),
|
|
26975
26985
|
/* @__PURE__ */ i(C, { children: "There are unsaved changes" })
|
|
26976
26986
|
] }),
|
|
26977
26987
|
labels: {
|
|
@@ -27121,12 +27131,12 @@ function $u(e, t, n) {
|
|
|
27121
27131
|
function IM(e, t, n) {
|
|
27122
27132
|
return e * t + (e - 1) * n;
|
|
27123
27133
|
}
|
|
27124
|
-
const ai = 25,
|
|
27134
|
+
const ai = 25, os = 40, Au = 25, as = 350, MM = 150, zM = 150, Eu = 150, pl = 300, Kr = 40, Ru = 25, LM = 300;
|
|
27125
27135
|
function $M(e, t) {
|
|
27126
27136
|
const n = k.keyBy(t, (o) => o.id), r = [];
|
|
27127
27137
|
return e.current.forEach((o, a) => {
|
|
27128
27138
|
o.panelIDs.forEach((s, l) => {
|
|
27129
|
-
const c = $u(l, Kr, Ru) +
|
|
27139
|
+
const c = $u(l, Kr, Ru) + os, d = n[s];
|
|
27130
27140
|
if (!d) {
|
|
27131
27141
|
r.push({
|
|
27132
27142
|
id: s,
|
|
@@ -27142,7 +27152,7 @@ function $M(e, t) {
|
|
|
27142
27152
|
sourcePosition: zt.Right,
|
|
27143
27153
|
targetPosition: zt.Left,
|
|
27144
27154
|
style: {
|
|
27145
|
-
width:
|
|
27155
|
+
width: pl,
|
|
27146
27156
|
height: Kr
|
|
27147
27157
|
}
|
|
27148
27158
|
});
|
|
@@ -27163,7 +27173,7 @@ function $M(e, t) {
|
|
|
27163
27173
|
sourcePosition: zt.Right,
|
|
27164
27174
|
targetPosition: zt.Left,
|
|
27165
27175
|
style: {
|
|
27166
|
-
width:
|
|
27176
|
+
width: pl,
|
|
27167
27177
|
height: Kr
|
|
27168
27178
|
}
|
|
27169
27179
|
});
|
|
@@ -27177,7 +27187,7 @@ const AM = {
|
|
|
27177
27187
|
}, EM = eM;
|
|
27178
27188
|
function RM(e) {
|
|
27179
27189
|
return e.current.map((n, r) => {
|
|
27180
|
-
const o = IM(n.panelIDs.length, Kr, Ru) +
|
|
27190
|
+
const o = IM(n.panelIDs.length, Kr, Ru) + os + Au;
|
|
27181
27191
|
let a = [];
|
|
27182
27192
|
return n.type === X.Tabs && (a = n.config.tabs.map((l) => l.view_id)), {
|
|
27183
27193
|
id: n.id,
|
|
@@ -27198,7 +27208,7 @@ function RM(e) {
|
|
|
27198
27208
|
className: "light",
|
|
27199
27209
|
style: {
|
|
27200
27210
|
backgroundColor: EM[n.type],
|
|
27201
|
-
width:
|
|
27211
|
+
width: as,
|
|
27202
27212
|
height: o
|
|
27203
27213
|
}
|
|
27204
27214
|
};
|
|
@@ -27224,12 +27234,12 @@ function PM({
|
|
|
27224
27234
|
edges: n
|
|
27225
27235
|
}) {
|
|
27226
27236
|
t.forEach((r) => {
|
|
27227
|
-
r._node_type !== "view-root" || r._view_type !== X.Tabs || (r.sourcePosition = zt.Bottom, r.style.width =
|
|
27237
|
+
r._node_type !== "view-root" || r._view_type !== X.Tabs || (r.sourcePosition = zt.Bottom, r.style.width = as + ai * 2, r.style.height = Au + r._tab_view_ids.reduce((o, a) => {
|
|
27228
27238
|
const s = e[a];
|
|
27229
27239
|
s.position.y = o, s.position.x = ai;
|
|
27230
27240
|
const l = s.style.height;
|
|
27231
27241
|
return o + l + 20;
|
|
27232
|
-
},
|
|
27242
|
+
}, os));
|
|
27233
27243
|
});
|
|
27234
27244
|
}
|
|
27235
27245
|
function VM({
|
|
@@ -27272,7 +27282,7 @@ function BM({
|
|
|
27272
27282
|
n.forEach((s) => {
|
|
27273
27283
|
r.add(s.source), o.add(s.target);
|
|
27274
27284
|
}), t.filter((s) => s._node_type !== "view-root" || s.id === "Main" || s.parentNode ? !1 : !r.has(s.id) && !o.has(s.id)).forEach((s, l) => {
|
|
27275
|
-
s.position.x = $u(l,
|
|
27285
|
+
s.position.x = $u(l, as, zM), s.position.y = 0 - MM - Eu;
|
|
27276
27286
|
});
|
|
27277
27287
|
}
|
|
27278
27288
|
function qM({
|
|
@@ -27362,7 +27372,7 @@ const GM = hh(({
|
|
|
27362
27372
|
}) => {
|
|
27363
27373
|
const a = z(() => jM(e.interactions), [e.interactions]);
|
|
27364
27374
|
return /* @__PURE__ */ u(j, { children: [
|
|
27365
|
-
/* @__PURE__ */ i(
|
|
27375
|
+
/* @__PURE__ */ i($s, { type: "target", position: r, isConnectable: t }),
|
|
27366
27376
|
/* @__PURE__ */ i(P, { sx: {
|
|
27367
27377
|
position: "absolute",
|
|
27368
27378
|
top: 0,
|
|
@@ -27370,9 +27380,9 @@ const GM = hh(({
|
|
|
27370
27380
|
}, children: /* @__PURE__ */ i(Yh, { size: 12 }) }),
|
|
27371
27381
|
/* @__PURE__ */ u(et, { shadow: "xl", withinPortal: !0, children: [
|
|
27372
27382
|
/* @__PURE__ */ i(et.Target, { children: /* @__PURE__ */ i(C, { children: e.label }) }),
|
|
27373
|
-
/* @__PURE__ */ i(et.Dropdown, { children: /* @__PURE__ */ i(
|
|
27383
|
+
/* @__PURE__ */ i(et.Dropdown, { children: /* @__PURE__ */ i(Ss, { spacing: "xs", size: "sm", center: !0, children: a.map((s) => /* @__PURE__ */ i(Ss.Item, { icon: s.icon, children: s.text }, s.key)) }) })
|
|
27374
27384
|
] }),
|
|
27375
|
-
/* @__PURE__ */ i(
|
|
27385
|
+
/* @__PURE__ */ i($s, { type: "source", position: n, isConnectable: t })
|
|
27376
27386
|
] });
|
|
27377
27387
|
});
|
|
27378
27388
|
const YM = {
|
|
@@ -27519,7 +27529,7 @@ const XM = D(() => {
|
|
|
27519
27529
|
}, children: [
|
|
27520
27530
|
/* @__PURE__ */ i(Oe, { label: "Filters", withinPortal: !0, children: /* @__PURE__ */ i(U, { variant: "default", radius: 0, size: "md", sx: {
|
|
27521
27531
|
height: "30px"
|
|
27522
|
-
}, onClick: r, children: /* @__PURE__ */ i(
|
|
27532
|
+
}, onClick: r, children: /* @__PURE__ */ i(ql, { size: 18 }) }) }),
|
|
27523
27533
|
/* @__PURE__ */ i(Oe, { label: "Queries", withinPortal: !0, children: /* @__PURE__ */ i(U, { variant: "default", radius: 0, size: "md", sx: {
|
|
27524
27534
|
height: "30px"
|
|
27525
27535
|
}, onClick: n, children: /* @__PURE__ */ i(fi, { size: 18 }) }) }),
|
|
@@ -27547,7 +27557,7 @@ const XM = D(() => {
|
|
|
27547
27557
|
}) {
|
|
27548
27558
|
return /* @__PURE__ */ u(j, { children: [
|
|
27549
27559
|
/* @__PURE__ */ i(ce, { checked: t.default_value, onChange: (n) => t.setDefaultValue(n.currentTarget.checked), label: "Default Checked" }),
|
|
27550
|
-
/* @__PURE__ */ i(
|
|
27560
|
+
/* @__PURE__ */ i(qa, { label: "Description", value: t.description, onChange: t.setDescription, styles: {
|
|
27551
27561
|
root: {
|
|
27552
27562
|
flexGrow: 1,
|
|
27553
27563
|
minHeight: "400px"
|
|
@@ -27597,7 +27607,7 @@ const XM = D(() => {
|
|
|
27597
27607
|
] })
|
|
27598
27608
|
] }), min: 0, value: t.max_days, onChange: t.setMaxDays, hideControls: !0 })
|
|
27599
27609
|
] });
|
|
27600
|
-
}),
|
|
27610
|
+
}), ss = D(({
|
|
27601
27611
|
value: e,
|
|
27602
27612
|
onChange: t
|
|
27603
27613
|
}) => {
|
|
@@ -27686,7 +27696,7 @@ const XM = D(() => {
|
|
|
27686
27696
|
] }),
|
|
27687
27697
|
/* @__PURE__ */ i(A, { label: "Or fetch options from database", labelPosition: "center" }),
|
|
27688
27698
|
/* @__PURE__ */ i(ie, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
27689
|
-
/* @__PURE__ */ i(
|
|
27699
|
+
/* @__PURE__ */ i(ss, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
27690
27700
|
/* @__PURE__ */ i(Ou, {})
|
|
27691
27701
|
] });
|
|
27692
27702
|
}), iz = D(function({
|
|
@@ -27751,7 +27761,7 @@ const XM = D(() => {
|
|
|
27751
27761
|
] }),
|
|
27752
27762
|
/* @__PURE__ */ i(A, { label: "Or fetch options from database", labelPosition: "center" }),
|
|
27753
27763
|
/* @__PURE__ */ i(ce, { checked: t.default_selection_count === 1, onChange: (a) => t.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: "Select the first option by default" }),
|
|
27754
|
-
/* @__PURE__ */ i(
|
|
27764
|
+
/* @__PURE__ */ i(ss, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
27755
27765
|
/* @__PURE__ */ i(Ou, {})
|
|
27756
27766
|
] });
|
|
27757
27767
|
}), oz = D(function({
|
|
@@ -27786,7 +27796,7 @@ const XM = D(() => {
|
|
|
27786
27796
|
/* @__PURE__ */ i(A, { label: "Fetch options from database", labelPosition: "center" }),
|
|
27787
27797
|
/* @__PURE__ */ i(ce, { checked: t.treeCheckStrictly, onChange: (n) => t.setTreeCheckStrictly(n.currentTarget.checked), label: "Parent and children nodes are not associated" }),
|
|
27788
27798
|
/* @__PURE__ */ i(ie, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
27789
|
-
/* @__PURE__ */ i(
|
|
27799
|
+
/* @__PURE__ */ i(ss, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
27790
27800
|
/* @__PURE__ */ i(sz, {})
|
|
27791
27801
|
] });
|
|
27792
27802
|
}), cz = D(function({
|
|
@@ -27945,7 +27955,7 @@ const XM = D(() => {
|
|
|
27945
27955
|
maxWidth: "unset !important"
|
|
27946
27956
|
}, children: [
|
|
27947
27957
|
/* @__PURE__ */ i(C, { children: "A valid json string is required" }),
|
|
27948
|
-
/* @__PURE__ */ i(
|
|
27958
|
+
/* @__PURE__ */ i(Cl, { validationError: "Invalid json", formatOnBlur: !0, autosize: !0, minRows: 30, value: t, onChange: n, sx: {
|
|
27949
27959
|
flexGrow: 1
|
|
27950
27960
|
} })
|
|
27951
27961
|
] }),
|
|
@@ -27960,7 +27970,7 @@ const XM = D(() => {
|
|
|
27960
27970
|
const {
|
|
27961
27971
|
panel: e
|
|
27962
27972
|
} = Ot();
|
|
27963
|
-
return /* @__PURE__ */ i(
|
|
27973
|
+
return /* @__PURE__ */ i(qa, { label: "Description", value: e.description, onChange: e.setDescription, styles: {
|
|
27964
27974
|
root: {
|
|
27965
27975
|
flexGrow: 1
|
|
27966
27976
|
}
|
|
@@ -28001,7 +28011,7 @@ const XM = D(() => {
|
|
|
28001
28011
|
panel: e
|
|
28002
28012
|
} = Ot(), {
|
|
28003
28013
|
name: t
|
|
28004
|
-
} = e, [n, r] =
|
|
28014
|
+
} = e, [n, r] = Hl(t), o = t !== n, a = R.useCallback(() => {
|
|
28005
28015
|
o && e.setName(n);
|
|
28006
28016
|
}, [o, n]);
|
|
28007
28017
|
W(() => {
|
|
@@ -28082,15 +28092,15 @@ function Fu({
|
|
|
28082
28092
|
const t = z(() => {
|
|
28083
28093
|
if (!Array.isArray(e) || e.length === 0)
|
|
28084
28094
|
return [];
|
|
28085
|
-
const r =
|
|
28095
|
+
const r = cc();
|
|
28086
28096
|
return Object.keys(e[0]).map((o) => r.accessor(o, {
|
|
28087
28097
|
cell: (a) => a.getValue()
|
|
28088
28098
|
}));
|
|
28089
|
-
}, [e]), n =
|
|
28099
|
+
}, [e]), n = dc({
|
|
28090
28100
|
data: e,
|
|
28091
28101
|
columns: t,
|
|
28092
28102
|
columnResizeMode: "onChange",
|
|
28093
|
-
getCoreRowModel:
|
|
28103
|
+
getCoreRowModel: uc()
|
|
28094
28104
|
});
|
|
28095
28105
|
return e.length === 0 ? /* @__PURE__ */ i(P, { sx: {
|
|
28096
28106
|
height: "5em"
|
|
@@ -28141,7 +28151,7 @@ const _z = [{
|
|
|
28141
28151
|
const c = s === 1 && a <= 10;
|
|
28142
28152
|
return /* @__PURE__ */ u(x, { pt: 10, px: 10, position: "apart", children: [
|
|
28143
28153
|
/* @__PURE__ */ u(x, { position: "left", children: [
|
|
28144
|
-
s > 1 && /* @__PURE__ */ i(
|
|
28154
|
+
s > 1 && /* @__PURE__ */ i(Sl, { size: "sm", value: t, onChange: n, total: s, withEdges: s > 7, styles: {
|
|
28145
28155
|
control: {
|
|
28146
28156
|
height: "30px"
|
|
28147
28157
|
}
|
|
@@ -28323,7 +28333,7 @@ class Mz {
|
|
|
28323
28333
|
this.panel.addVariable(He({
|
|
28324
28334
|
...to,
|
|
28325
28335
|
name: `${to.name}${t || ""}`
|
|
28326
|
-
})), this.selected =
|
|
28336
|
+
})), this.selected = zl(this.panel.variables);
|
|
28327
28337
|
}
|
|
28328
28338
|
select(t) {
|
|
28329
28339
|
this.selected = t;
|
|
@@ -28331,7 +28341,7 @@ class Mz {
|
|
|
28331
28341
|
remove(t) {
|
|
28332
28342
|
this.selected === t && (this.selected = void 0);
|
|
28333
28343
|
const n = this.panel.variables.indexOf(t);
|
|
28334
|
-
if (this.panel.removeVariable(t), !this.selected &&
|
|
28344
|
+
if (this.panel.removeVariable(t), !this.selected && !$l(this.panel.variables)) {
|
|
28335
28345
|
const r = Math.min(this.panel.variables.length - 1, n);
|
|
28336
28346
|
this.selected = this.panel.variables[r];
|
|
28337
28347
|
}
|
|
@@ -28453,13 +28463,13 @@ const Bz = D(({
|
|
|
28453
28463
|
value: e,
|
|
28454
28464
|
submit: t
|
|
28455
28465
|
}) => {
|
|
28456
|
-
const [n, r] =
|
|
28466
|
+
const [n, r] = Hl(e);
|
|
28457
28467
|
W(() => {
|
|
28458
28468
|
r(e);
|
|
28459
28469
|
}, [e]);
|
|
28460
28470
|
const o = Nz();
|
|
28461
28471
|
return /* @__PURE__ */ i(O, { label: "Visualization", value: n, searchable: !0, onChange: r, data: o, rightSection: /* @__PURE__ */ i(U, { disabled: !(e !== n), onClick: () => t(n), children: /* @__PURE__ */ i(we, { size: 20 }) }), maxDropdownHeight: 600 });
|
|
28462
|
-
}),
|
|
28472
|
+
}), ml = [];
|
|
28463
28473
|
function qz(e, t) {
|
|
28464
28474
|
try {
|
|
28465
28475
|
return e.resolveComponent(t).createConfig();
|
|
@@ -28516,8 +28526,8 @@ const jz = D(() => {
|
|
|
28516
28526
|
}
|
|
28517
28527
|
}, a = R.useMemo(() => {
|
|
28518
28528
|
var d;
|
|
28519
|
-
return (d =
|
|
28520
|
-
}, [t.type,
|
|
28529
|
+
return (d = ml.find((p) => p.value === t.type)) == null ? void 0 : d.Panel;
|
|
28530
|
+
}, [t.type, ml]), s = Wz(), l = a ? si(a, {
|
|
28521
28531
|
data: e,
|
|
28522
28532
|
conf: t.conf,
|
|
28523
28533
|
setConf: t.setConf
|
|
@@ -28533,7 +28543,7 @@ const jz = D(() => {
|
|
|
28533
28543
|
maxHeight: "100%",
|
|
28534
28544
|
overflow: "auto"
|
|
28535
28545
|
}, children: c }),
|
|
28536
|
-
!c && /* @__PURE__ */ i(
|
|
28546
|
+
!c && /* @__PURE__ */ i(Cl, { minRows: 20, label: "Config", value: JSON.stringify(t.conf, null, 2), onChange: o })
|
|
28537
28547
|
] })
|
|
28538
28548
|
] });
|
|
28539
28549
|
}), Gz = D(({
|
|
@@ -28551,21 +28561,21 @@ const jz = D(() => {
|
|
|
28551
28561
|
e.moveToView(t, r), l();
|
|
28552
28562
|
};
|
|
28553
28563
|
return /* @__PURE__ */ u(j, { children: [
|
|
28554
|
-
/* @__PURE__ */ i(I, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftIcon: /* @__PURE__ */ i(
|
|
28564
|
+
/* @__PURE__ */ i(I, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftIcon: /* @__PURE__ */ i(Wl, { size: 14 }), children: "Move into Another View" }),
|
|
28555
28565
|
/* @__PURE__ */ i(De, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ u(S, { sx: {
|
|
28556
28566
|
maxHeight: "calc(100vh - 185px)",
|
|
28557
28567
|
overflow: "hidden"
|
|
28558
28568
|
}, children: [
|
|
28559
|
-
/* @__PURE__ */ i(
|
|
28569
|
+
/* @__PURE__ */ i(ks.Group, { value: r, onChange: o, pb: 10, sx: {
|
|
28560
28570
|
flexGrow: 1,
|
|
28561
28571
|
maxHeight: "calc(100vh - 185px - 30px)",
|
|
28562
28572
|
overflow: "auto"
|
|
28563
|
-
}, children: /* @__PURE__ */ i(S, { spacing: "xs", children: n.views.options.map((d) => /* @__PURE__ */ i(
|
|
28573
|
+
}, children: /* @__PURE__ */ i(S, { spacing: "xs", children: n.views.options.map((d) => /* @__PURE__ */ i(ks, { value: d.value, label: d.label }, d.value)) }) }),
|
|
28564
28574
|
/* @__PURE__ */ u(x, { noWrap: !0, position: "apart", sx: {
|
|
28565
28575
|
flexGrow: 0,
|
|
28566
28576
|
flexShrink: 0
|
|
28567
28577
|
}, children: [
|
|
28568
|
-
/* @__PURE__ */ i(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ i(
|
|
28578
|
+
/* @__PURE__ */ i(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ i(Gl, { size: 14 }), onClick: l, children: "Cancel" }),
|
|
28569
28579
|
/* @__PURE__ */ i(I, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ i(sn, { size: 14 }), onClick: c, disabled: r === t, children: "Confirm" })
|
|
28570
28580
|
] })
|
|
28571
28581
|
] }) })
|
|
@@ -28582,7 +28592,7 @@ const jz = D(() => {
|
|
|
28582
28592
|
padding: 10,
|
|
28583
28593
|
overflow: "scroll"
|
|
28584
28594
|
}
|
|
28585
|
-
},
|
|
28595
|
+
}, fl = ({
|
|
28586
28596
|
children: e
|
|
28587
28597
|
}) => /* @__PURE__ */ u(x, { noWrap: !0, grow: !0, position: "left", spacing: 20, sx: {
|
|
28588
28598
|
width: "100%",
|
|
@@ -28651,9 +28661,9 @@ const Qz = D(({
|
|
|
28651
28661
|
/* @__PURE__ */ i(Ln, { visible: c, exitTransitionDuration: 0 }),
|
|
28652
28662
|
/* @__PURE__ */ i(Dz, {})
|
|
28653
28663
|
] }),
|
|
28654
|
-
/* @__PURE__ */ i(g.Panel, { value: "Panel", children: /* @__PURE__ */ i(
|
|
28664
|
+
/* @__PURE__ */ i(g.Panel, { value: "Panel", children: /* @__PURE__ */ i(fl, { children: /* @__PURE__ */ i(vz, {}) }) }),
|
|
28655
28665
|
/* @__PURE__ */ i(g.Panel, { value: "Variables", children: /* @__PURE__ */ i(Vz, {}) }),
|
|
28656
|
-
/* @__PURE__ */ i(g.Panel, { value: "Visualization", children: /* @__PURE__ */ i(tt, { children: /* @__PURE__ */ i(
|
|
28666
|
+
/* @__PURE__ */ i(g.Panel, { value: "Visualization", children: /* @__PURE__ */ i(tt, { children: /* @__PURE__ */ i(fl, { children: /* @__PURE__ */ i(jz, {}) }) }) }),
|
|
28657
28667
|
/* @__PURE__ */ i(g.Panel, { value: "Interactions", children: /* @__PURE__ */ i(tt, { children: /* @__PURE__ */ i(Vf, {}) }) })
|
|
28658
28668
|
] })
|
|
28659
28669
|
] });
|
|
@@ -28711,8 +28721,8 @@ const Qz = D(({
|
|
|
28711
28721
|
spacing: o = 16,
|
|
28712
28722
|
pl: a = 0
|
|
28713
28723
|
}) => /* @__PURE__ */ u(S, { spacing: o, mt: 6, pl: a, children: [
|
|
28714
|
-
Array.from(new Array(r - 1), (s, l) => /* @__PURE__ */ i(
|
|
28715
|
-
/* @__PURE__ */ i(
|
|
28724
|
+
Array.from(new Array(r - 1), (s, l) => /* @__PURE__ */ i(Ts, { width: e, height: n, radius: "xs" }, l)),
|
|
28725
|
+
/* @__PURE__ */ i(Ts, { width: t, height: n, radius: "xs" })
|
|
28716
28726
|
] }), fr = ({
|
|
28717
28727
|
value: e
|
|
28718
28728
|
}) => e === null || e === "" ? null : /* @__PURE__ */ i(Oe, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ i(U, { children: /* @__PURE__ */ i(An, { size: 14 }) }) }), Jz = ({
|
|
@@ -28904,7 +28914,7 @@ const Qz = D(({
|
|
|
28904
28914
|
function iL({
|
|
28905
28915
|
table_type: e
|
|
28906
28916
|
}) {
|
|
28907
|
-
return e === "VIEW" ? /* @__PURE__ */ i(
|
|
28917
|
+
return e === "VIEW" ? /* @__PURE__ */ i(Yl, { size: 14 }) : e === "BASE TABLE" ? /* @__PURE__ */ i(bp, { size: 14 }) : null;
|
|
28908
28918
|
}
|
|
28909
28919
|
const oL = D(({
|
|
28910
28920
|
dataSource: e
|
|
@@ -28957,7 +28967,7 @@ const oL = D(({
|
|
|
28957
28967
|
} = e;
|
|
28958
28968
|
return /* @__PURE__ */ u(x, { pt: 10, px: 10, position: "apart", children: [
|
|
28959
28969
|
/* @__PURE__ */ u(x, { position: "left", children: [
|
|
28960
|
-
t.maxPage > 1 && /* @__PURE__ */ i(
|
|
28970
|
+
t.maxPage > 1 && /* @__PURE__ */ i(Sl, { size: "sm", value: t.page, onChange: t.setPage, total: t.maxPage, withEdges: t.maxPage > 7, styles: {
|
|
28961
28971
|
control: {
|
|
28962
28972
|
height: "30px"
|
|
28963
28973
|
}
|
|
@@ -29098,7 +29108,7 @@ const oL = D(({
|
|
|
29098
29108
|
const n = Te(), {
|
|
29099
29109
|
data: r = [],
|
|
29100
29110
|
loading: o
|
|
29101
|
-
} = Dn(
|
|
29111
|
+
} = Dn(fa, {
|
|
29102
29112
|
refreshDeps: []
|
|
29103
29113
|
}, []), a = z(() => r.map((d) => ({
|
|
29104
29114
|
label: d.key,
|
|
@@ -29133,7 +29143,7 @@ const oL = D(({
|
|
|
29133
29143
|
}
|
|
29134
29144
|
}
|
|
29135
29145
|
}, disabled: o, value: e.key, onChange: l });
|
|
29136
|
-
}),
|
|
29146
|
+
}), gl = xe((e, t) => {
|
|
29137
29147
|
const {
|
|
29138
29148
|
label: n,
|
|
29139
29149
|
description: r,
|
|
@@ -29172,8 +29182,8 @@ const oL = D(({
|
|
|
29172
29182
|
e.setKey(o), e.setType(r);
|
|
29173
29183
|
} }),
|
|
29174
29184
|
/* @__PURE__ */ i(A, { mt: 10, mb: -10, variant: "dashed", label: "Conditions", labelPosition: "center" }),
|
|
29175
|
-
/* @__PURE__ */ i(gr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent:
|
|
29176
|
-
e.typedAsHTTP && /* @__PURE__ */ i(gr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent:
|
|
29185
|
+
/* @__PURE__ */ i(gr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent: gl, maxDropdownHeight: 500 }),
|
|
29186
|
+
e.typedAsHTTP && /* @__PURE__ */ i(gr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent: gl, maxDropdownHeight: 500 }),
|
|
29177
29187
|
/* @__PURE__ */ i(A, { mt: 20, mb: 10, variant: "dashed" }),
|
|
29178
29188
|
/* @__PURE__ */ i(Xz, { queryModel: e })
|
|
29179
29189
|
] }) });
|
|
@@ -29182,7 +29192,7 @@ function bL({
|
|
|
29182
29192
|
content: e
|
|
29183
29193
|
}) {
|
|
29184
29194
|
return /* @__PURE__ */ u(et, { width: "60vw", shadow: "md", children: [
|
|
29185
|
-
/* @__PURE__ */ i(et.Target, { children: /* @__PURE__ */ i(U, { size: 16, color: "blue", children: /* @__PURE__ */ i(
|
|
29195
|
+
/* @__PURE__ */ i(et.Target, { children: /* @__PURE__ */ i(U, { size: 16, color: "blue", children: /* @__PURE__ */ i(Yl, {}) }) }),
|
|
29186
29196
|
/* @__PURE__ */ i(et.Dropdown, { children: /* @__PURE__ */ i(zn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
|
|
29187
29197
|
] });
|
|
29188
29198
|
}
|
|
@@ -29236,8 +29246,8 @@ WHERE
|
|
|
29236
29246
|
...n
|
|
29237
29247
|
}, children: /* @__PURE__ */ u(g, { defaultValue: "guide", keepMounted: !1, children: [
|
|
29238
29248
|
/* @__PURE__ */ u(g.List, { grow: !0, children: [
|
|
29239
|
-
/* @__PURE__ */ i(g.Tab, { value: "guide", icon: /* @__PURE__ */ i(
|
|
29240
|
-
/* @__PURE__ */ i(g.Tab, { value: "local_query_vars", icon: /* @__PURE__ */ i(
|
|
29249
|
+
/* @__PURE__ */ i(g.Tab, { value: "guide", icon: /* @__PURE__ */ i(Ms, { size: 14 }), children: "Guide" }),
|
|
29250
|
+
/* @__PURE__ */ i(g.Tab, { value: "local_query_vars", icon: /* @__PURE__ */ i(Bl, { size: 14 }), children: "Variables in this dashboard" }),
|
|
29241
29251
|
/* @__PURE__ */ i(g.Tab, { value: "global_sql_snippets", icon: /* @__PURE__ */ i(xp, { size: 14 }), children: "Global SQL Snippets" })
|
|
29242
29252
|
] }),
|
|
29243
29253
|
/* @__PURE__ */ i(g.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ i(zn, { language: "sql", sx: {
|
|
@@ -29247,11 +29257,11 @@ WHERE
|
|
|
29247
29257
|
width: "100%"
|
|
29248
29258
|
}, noCopy: !0, colorScheme: "dark", children: s }) }),
|
|
29249
29259
|
/* @__PURE__ */ i(g.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ u(S, { spacing: 10, children: [
|
|
29250
|
-
/* @__PURE__ */ i(Zo, { icon: /* @__PURE__ */ i(
|
|
29260
|
+
/* @__PURE__ */ i(Zo, { icon: /* @__PURE__ */ i(Ms, { size: 16 }), title: "Global SQL Snippets", children: "SQL snippets worth sharing between dashboards are managed in System Settings by admins." }),
|
|
29251
29261
|
/* @__PURE__ */ i(yL, {})
|
|
29252
29262
|
] }) })
|
|
29253
29263
|
] }) });
|
|
29254
|
-
}),
|
|
29264
|
+
}), ls = D(() => {
|
|
29255
29265
|
const [e, t] = Q(!1);
|
|
29256
29266
|
return /* @__PURE__ */ u(j, { children: [
|
|
29257
29267
|
/* @__PURE__ */ i(De, { opened: e, onClose: () => t(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ i(Bu, {}) }),
|
|
@@ -29261,7 +29271,7 @@ WHERE
|
|
|
29261
29271
|
}
|
|
29262
29272
|
}, children: "See Query Variables" })
|
|
29263
29273
|
] });
|
|
29264
|
-
}),
|
|
29274
|
+
}), bl = {
|
|
29265
29275
|
pre: ["function build_request({ context, filters }, utils) {", " // build the quest", " return { method: 'POST', url: '/', params: {}, headers: {}, data: {} }", "}"].join(`
|
|
29266
29276
|
`),
|
|
29267
29277
|
post: ["function process_result(res, utils, state) {", " // your code goes here", " return data", "}"].join(`
|
|
@@ -29274,12 +29284,12 @@ WHERE
|
|
|
29274
29284
|
/* @__PURE__ */ u(g.List, { children: [
|
|
29275
29285
|
/* @__PURE__ */ i(g.Tab, { value: "pre_process", children: "Build Request" }),
|
|
29276
29286
|
/* @__PURE__ */ i(g.Tab, { value: "post_process", children: "Process Result" }),
|
|
29277
|
-
/* @__PURE__ */ i(
|
|
29287
|
+
/* @__PURE__ */ i(ls, {})
|
|
29278
29288
|
] }),
|
|
29279
29289
|
/* @__PURE__ */ i(g.Panel, { value: "pre_process", sx: {
|
|
29280
29290
|
position: "relative"
|
|
29281
|
-
}, p: "sm", children: /* @__PURE__ */ i(Sr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue:
|
|
29282
|
-
/* @__PURE__ */ i(g.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ i(Sr, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue:
|
|
29291
|
+
}, p: "sm", children: /* @__PURE__ */ i(Sr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: bl.pre }) }),
|
|
29292
|
+
/* @__PURE__ */ i(g.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ i(Sr, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: bl.post }) })
|
|
29283
29293
|
] }) : null), wL = D(({
|
|
29284
29294
|
queryID: e,
|
|
29285
29295
|
usage: t
|
|
@@ -29318,7 +29328,7 @@ WHERE
|
|
|
29318
29328
|
] }) })
|
|
29319
29329
|
] }, a.id)) })
|
|
29320
29330
|
] }) });
|
|
29321
|
-
}),
|
|
29331
|
+
}), cs = ({
|
|
29322
29332
|
value: e,
|
|
29323
29333
|
onChange: t,
|
|
29324
29334
|
height: n = "200px",
|
|
@@ -29363,13 +29373,13 @@ WHERE
|
|
|
29363
29373
|
flexShrink: 0,
|
|
29364
29374
|
flexGrow: 0
|
|
29365
29375
|
}, children: [
|
|
29366
|
-
/* @__PURE__ */ i(x, { position: "left", children: /* @__PURE__ */ i(I, { onClick: l, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ i(
|
|
29376
|
+
/* @__PURE__ */ i(x, { position: "left", children: /* @__PURE__ */ i(I, { onClick: l, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ i(Pl, { size: 16 }), children: "Reset to default" }) }),
|
|
29367
29377
|
/* @__PURE__ */ u(x, { position: "right", children: [
|
|
29368
29378
|
/* @__PURE__ */ i(I, { onClick: s, color: "red", size: "xs", disabled: !c, leftIcon: /* @__PURE__ */ i(la, { size: 16 }), children: "Revert Changes" }),
|
|
29369
29379
|
/* @__PURE__ */ i(I, { size: "xs", onClick: a, disabled: !c, leftIcon: /* @__PURE__ */ i(sn, { size: 16 }), children: "Confirm Changes" })
|
|
29370
29380
|
] })
|
|
29371
29381
|
] }),
|
|
29372
|
-
/* @__PURE__ */ i(
|
|
29382
|
+
/* @__PURE__ */ i(cs, { height: "100%", value: r, onChange: o, theme: "sql-dark", defaultLanguage: "sql" })
|
|
29373
29383
|
] });
|
|
29374
29384
|
}, CL = ({
|
|
29375
29385
|
value: e,
|
|
@@ -29389,7 +29399,7 @@ WHERE
|
|
|
29389
29399
|
}) => {
|
|
29390
29400
|
const n = je().payloadForSQL, r = R.useMemo(() => pa(e, n), [e, n]);
|
|
29391
29401
|
return /* @__PURE__ */ i(CL, { height: "100%", value: r });
|
|
29392
|
-
}),
|
|
29402
|
+
}), yl = {
|
|
29393
29403
|
pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
|
|
29394
29404
|
`),
|
|
29395
29405
|
post: ["function process_result(data, utils, state) {", " // process data and return the result", " return data", "}"].join(`
|
|
@@ -29410,7 +29420,7 @@ WHERE
|
|
|
29410
29420
|
/* @__PURE__ */ i(g.Tab, { value: "Preview", children: "Preview SQL" }),
|
|
29411
29421
|
/* @__PURE__ */ i(g.Tab, { value: "pre_process", children: "Process Request" }),
|
|
29412
29422
|
/* @__PURE__ */ i(g.Tab, { value: "post_process", children: "Process Result" }),
|
|
29413
|
-
/* @__PURE__ */ i(
|
|
29423
|
+
/* @__PURE__ */ i(ls, {}),
|
|
29414
29424
|
e.datasource && /* @__PURE__ */ i(Nu, { dataSource: e.datasource })
|
|
29415
29425
|
] }),
|
|
29416
29426
|
/* @__PURE__ */ i(g.Panel, { value: "Edit", sx: {
|
|
@@ -29419,8 +29429,8 @@ WHERE
|
|
|
29419
29429
|
/* @__PURE__ */ i(g.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ i(SL, { value: e.sql }) }),
|
|
29420
29430
|
/* @__PURE__ */ i(g.Panel, { value: "pre_process", sx: {
|
|
29421
29431
|
position: "relative"
|
|
29422
|
-
}, p: "sm", children: /* @__PURE__ */ i(Sr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue:
|
|
29423
|
-
/* @__PURE__ */ i(g.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ i(Sr, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue:
|
|
29432
|
+
}, p: "sm", children: /* @__PURE__ */ i(Sr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: yl.pre }) }),
|
|
29433
|
+
/* @__PURE__ */ i(g.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ i(Sr, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: yl.post }) })
|
|
29424
29434
|
] }) : null), qr = {
|
|
29425
29435
|
height: "calc(100% - 44px)",
|
|
29426
29436
|
// Tabs.List
|
|
@@ -29468,7 +29478,7 @@ WHERE
|
|
|
29468
29478
|
value: e
|
|
29469
29479
|
}) => {
|
|
29470
29480
|
const n = je().payloadForSQL, r = z(() => pa(e, n), [e, n]);
|
|
29471
|
-
return /* @__PURE__ */ i(
|
|
29481
|
+
return /* @__PURE__ */ i(cs, { height: "100%", value: r });
|
|
29472
29482
|
}), ML = D(({
|
|
29473
29483
|
item: e,
|
|
29474
29484
|
remove: t,
|
|
@@ -29533,14 +29543,14 @@ WHERE
|
|
|
29533
29543
|
}, children: [
|
|
29534
29544
|
/* @__PURE__ */ i(g.Tab, { value: "SQL", children: "SQL" }),
|
|
29535
29545
|
/* @__PURE__ */ i(g.Tab, { value: "Preview", children: "Preview" }),
|
|
29536
|
-
/* @__PURE__ */ i(
|
|
29546
|
+
/* @__PURE__ */ i(ls, {}),
|
|
29537
29547
|
/* @__PURE__ */ i(U, { color: "blue", variant: "filled", onClick: m, disabled: !f, sx: {
|
|
29538
29548
|
position: "absolute",
|
|
29539
29549
|
top: 0,
|
|
29540
29550
|
right: 10
|
|
29541
29551
|
}, children: /* @__PURE__ */ i(we, { size: 18 }) })
|
|
29542
29552
|
] }),
|
|
29543
|
-
/* @__PURE__ */ i(g.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ i(
|
|
29553
|
+
/* @__PURE__ */ i(g.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ i(cs, { height: "100%", value: p, onChange: h, defaultLanguage: "sql", theme: "sql-dark" }) }),
|
|
29544
29554
|
/* @__PURE__ */ i(g.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ i(IL, { value: p }) })
|
|
29545
29555
|
] })
|
|
29546
29556
|
] });
|
|
@@ -29647,7 +29657,7 @@ WHERE
|
|
|
29647
29657
|
return /* @__PURE__ */ u(j, { children: [
|
|
29648
29658
|
/* @__PURE__ */ i(U, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: r, sx: {
|
|
29649
29659
|
flexGrow: 0
|
|
29650
|
-
}, children: /* @__PURE__ */ i(
|
|
29660
|
+
}, children: /* @__PURE__ */ i(Fl, { size: 14 }) }),
|
|
29651
29661
|
/* @__PURE__ */ i(De, { size: 800, title: "Customize modal title", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
29652
29662
|
/* @__PURE__ */ i(ce, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (m) => l(m.currentTarget.checked) }),
|
|
29653
29663
|
/* @__PURE__ */ i(RL, { value: a.func_content, onChange: p, disabled: !a.enabled }),
|
|
@@ -30053,7 +30063,7 @@ const XL = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
30053
30063
|
}, children: /* @__PURE__ */ i(d$, {}) }),
|
|
30054
30064
|
/* @__PURE__ */ i(Xt.Section, { children: /* @__PURE__ */ i(x, { grow: !0, p: "md", pt: "sm", sx: {
|
|
30055
30065
|
borderTop: "1px solid #eee"
|
|
30056
|
-
}, children: /* @__PURE__ */ i(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ i(
|
|
30066
|
+
}, children: /* @__PURE__ */ i(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ i(Gl, { size: 18 }), onClick: () => e.editor.close(), children: "Close" }) }) })
|
|
30057
30067
|
] });
|
|
30058
30068
|
}), h$ = {
|
|
30059
30069
|
root: {
|
|
@@ -30089,7 +30099,7 @@ const XL = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
30089
30099
|
// @ts-expect-error important
|
|
30090
30100
|
overflowY: "hidden !important"
|
|
30091
30101
|
}
|
|
30092
|
-
}, children: /* @__PURE__ */ i(
|
|
30102
|
+
}, children: /* @__PURE__ */ i(kl, { padding: 0, navbar: /* @__PURE__ */ i(u$, {}), styles: h$, children: /* @__PURE__ */ i(t$, {}) }) });
|
|
30093
30103
|
}), m$ = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
30094
30104
|
function f$(e) {
|
|
30095
30105
|
W(() => {
|
|
@@ -30133,10 +30143,10 @@ const g$ = {
|
|
|
30133
30143
|
onChange: s,
|
|
30134
30144
|
headerSlot: l
|
|
30135
30145
|
}, c) => {
|
|
30136
|
-
f$(a.monacoPath),
|
|
30146
|
+
f$(a.monacoPath), gc(a);
|
|
30137
30147
|
const {
|
|
30138
30148
|
data: d = []
|
|
30139
|
-
} = Dn(
|
|
30149
|
+
} = Dn(fa), {
|
|
30140
30150
|
data: p = []
|
|
30141
30151
|
} = Dn(bc), h = R.useMemo(() => xM(t, n, d, p, e), [t, n]);
|
|
30142
30152
|
R.useImperativeHandle(c, () => h, [h]), zu(h.content, !0), R.useEffect(() => {
|
|
@@ -30150,13 +30160,13 @@ const g$ = {
|
|
|
30150
30160
|
}), [h]);
|
|
30151
30161
|
const m = async () => {
|
|
30152
30162
|
await r(h.json, h.content.json);
|
|
30153
|
-
}, f = $t(
|
|
30154
|
-
return /* @__PURE__ */ i(
|
|
30163
|
+
}, f = $t(es, []), w = Lu(f);
|
|
30164
|
+
return /* @__PURE__ */ i(Tl, { children: /* @__PURE__ */ i(Dc, { value: {
|
|
30155
30165
|
searchButtonProps: a.searchButtonProps
|
|
30156
|
-
}, children: /* @__PURE__ */ i(Cc, { value: h, children: /* @__PURE__ */ i(Mc, { value: h.content, children: /* @__PURE__ */ i(
|
|
30166
|
+
}, children: /* @__PURE__ */ i(Cc, { value: h, children: /* @__PURE__ */ i(Mc, { value: h.content, children: /* @__PURE__ */ i(ya.Provider, { value: {
|
|
30157
30167
|
inEditMode: !0
|
|
30158
30168
|
}, children: /* @__PURE__ */ i(Yt.Provider, { value: f, children: /* @__PURE__ */ u(Li, { configure: w, children: [
|
|
30159
|
-
/* @__PURE__ */ i(
|
|
30169
|
+
/* @__PURE__ */ i(kl, { padding: 0, header: /* @__PURE__ */ i(kM, { saveDashboardChanges: m, headerSlot: l }), navbar: /* @__PURE__ */ i(JM, {}), styles: g$, children: /* @__PURE__ */ i(P, { className: `${o} dashboard-root`, sx: {
|
|
30160
30170
|
position: "relative"
|
|
30161
30171
|
}, children: h.content.views.visibleViews.map((v) => /* @__PURE__ */ i(JI, { view: v }, v.id)) }) }),
|
|
30162
30172
|
/* @__PURE__ */ i(p$, {})
|
|
@@ -30222,7 +30232,7 @@ const Wu = b.model({
|
|
|
30222
30232
|
};
|
|
30223
30233
|
},
|
|
30224
30234
|
get dashboardState() {
|
|
30225
|
-
return
|
|
30235
|
+
return ma(this.payloadForSQL);
|
|
30226
30236
|
},
|
|
30227
30237
|
getAdditionalQueryInfo(t) {
|
|
30228
30238
|
return {
|
|
@@ -30306,7 +30316,7 @@ const x$ = b.model({
|
|
|
30306
30316
|
content_id: b.string,
|
|
30307
30317
|
datasources: UD,
|
|
30308
30318
|
globalSQLSnippets: au,
|
|
30309
|
-
context:
|
|
30319
|
+
context: ns
|
|
30310
30320
|
});
|
|
30311
30321
|
function v$({
|
|
30312
30322
|
id: e,
|
|
@@ -30339,10 +30349,10 @@ const Y2 = D(({
|
|
|
30339
30349
|
fullScreenPanelID: a,
|
|
30340
30350
|
setFullScreenPanelID: s
|
|
30341
30351
|
}) => {
|
|
30342
|
-
|
|
30352
|
+
gc(o);
|
|
30343
30353
|
const {
|
|
30344
30354
|
data: l = []
|
|
30345
|
-
} = Dn(
|
|
30355
|
+
} = Dn(fa), {
|
|
30346
30356
|
data: c = []
|
|
30347
30357
|
} = Dn(bc), d = R.useMemo(() => v$(t, n, l, c, e), [t, n]);
|
|
30348
30358
|
zu(d.content, !1), R.useEffect(() => {
|
|
@@ -30352,15 +30362,15 @@ const Y2 = D(({
|
|
|
30352
30362
|
}, [l]), R.useEffect(() => {
|
|
30353
30363
|
d.globalSQLSnippets.replace(c);
|
|
30354
30364
|
}, [c]);
|
|
30355
|
-
const p = $t(
|
|
30356
|
-
return /* @__PURE__ */ i(
|
|
30365
|
+
const p = $t(es, []), h = Lu(p);
|
|
30366
|
+
return /* @__PURE__ */ i(Tl, { children: /* @__PURE__ */ i(Dc, { value: {
|
|
30357
30367
|
searchButtonProps: o.searchButtonProps
|
|
30358
30368
|
}, children: /* @__PURE__ */ i(Cc, { value: d, children: /* @__PURE__ */ i(Mc, { value: d.content, children: /* @__PURE__ */ i(Ec.Provider, { value: {
|
|
30359
30369
|
fullScreenPanelID: a,
|
|
30360
30370
|
setFullScreenPanelID: s
|
|
30361
|
-
}, children: /* @__PURE__ */ i(
|
|
30371
|
+
}, children: /* @__PURE__ */ i(ya.Provider, { value: {
|
|
30362
30372
|
inEditMode: !1
|
|
30363
|
-
}, children: /* @__PURE__ */ i(P, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(Yt.Provider, { value: p, children: /* @__PURE__ */ i(Li, { configure: h, children: d.content.views.visibleViews.map((m) => /* @__PURE__ */ i(
|
|
30373
|
+
}, children: /* @__PURE__ */ i(P, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(Yt.Provider, { value: p, children: /* @__PURE__ */ i(Li, { configure: h, children: d.content.views.visibleViews.map((m) => /* @__PURE__ */ i(is, { view: m }, m.id)) }) }) }) }) }) }) }) }) });
|
|
30364
30374
|
});
|
|
30365
30375
|
var xo = {}, w$ = {
|
|
30366
30376
|
get exports() {
|
|
@@ -31700,14 +31710,14 @@ export {
|
|
|
31700
31710
|
Cc as DashboardModelContextProvider,
|
|
31701
31711
|
Dc as DashboardThemeContextProvider,
|
|
31702
31712
|
JI as DashboardViewEditor,
|
|
31703
|
-
|
|
31713
|
+
is as DashboardViewRender,
|
|
31704
31714
|
fm as DefaultApiClient,
|
|
31705
31715
|
yu as DescriptionPopover,
|
|
31706
31716
|
N2 as FacadeApiClient,
|
|
31707
31717
|
nM as FiltersModel,
|
|
31708
31718
|
AI as FullScreenPanel,
|
|
31709
31719
|
Ec as FullScreenPanelContext,
|
|
31710
|
-
|
|
31720
|
+
ya as LayoutStateContext,
|
|
31711
31721
|
II as Panel,
|
|
31712
31722
|
$c as PanelContextProvider,
|
|
31713
31723
|
SI as PanelErrorOrStateMessage,
|
|
@@ -31724,7 +31734,7 @@ export {
|
|
|
31724
31734
|
fM as ViewsModel,
|
|
31725
31735
|
CI as Viz,
|
|
31726
31736
|
j2 as applyPartialDashboard,
|
|
31727
|
-
|
|
31737
|
+
gc as configureAPIClient,
|
|
31728
31738
|
bM as createContentModel,
|
|
31729
31739
|
xM as createDashboardModel,
|
|
31730
31740
|
ym as facadeApiClient,
|