@devtable/dashboard 9.8.0 → 9.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-caller/request.d.ts +11 -0
- package/dist/api-caller/utils.d.ts +1 -0
- package/dist/dashboard.es.js +609 -600
- package/dist/dashboard.umd.js +32 -32
- package/dist/global.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/main/use-panel-full-screen.d.ts +4 -4
- package/dist/model/datasources/columns.d.ts +1 -1
- package/dist/model/datasources/datasource.d.ts +4 -4
- package/dist/model/datasources/index.d.ts +16 -16
- package/dist/model/datasources/indexes.d.ts +1 -1
- package/dist/model/datasources/table-data.d.ts +1 -1
- package/dist/model/datasources/tables.d.ts +1 -1
- package/dist/model/panels/index.d.ts +14 -14
- package/dist/model/panels/panel.d.ts +2 -2
- package/dist/model/queries/index.d.ts +3 -3
- package/dist/model/queries/query.d.ts +1 -1
- package/dist/plugins/plugin-context.d.ts +4 -4
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -2,13 +2,13 @@ var Dc = Object.defineProperty;
|
|
|
2
2
|
var Lc = (e, t, r) => t in e ? Dc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var j = (e, t, r) => (Lc(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import $, { useEffect as q, createContext as To, useMemo as L, useState as U, forwardRef as ke, useCallback as He, useContext as bt, useRef as Do, createElement as sr, memo as Ic } from "react";
|
|
5
|
-
import { Box as
|
|
5
|
+
import { Box as V, Text as C, Button as I, Checkbox as ve, Group as v, Tooltip as Ee, createStyles as un, Stack as S, Badge as In, CloseButton as Lo, Select as E, TextInput as z, Modal as Te, ActionIcon as H, Menu as Oe, Divider as A, Switch as Ye, NumberInput as re, useMantineTheme as Io, ColorInput as Ai, ColorSwatch as jr, Slider as $c, Overlay as Ot, Tabs as b, Center as Ut, CheckIcon as zc, MANTINE_SIZES as Mc, SimpleGrid as Yt, SegmentedControl as Ac, Textarea as Rc, Collapse as Ri, HoverCard as Tt, Table as Ft, Popover as Vr, LoadingOverlay as Xt, NativeSelect as Ec, Flex as En, MultiSelect as lr, Paper as Ei, Code as Ya, Alert as Vc, Header as Oc, ThemeIcon as Or, List as Ha, UnstyledButton as Fc, Navbar as kt, JsonInput as $o, Radio as Qa, Skeleton as Ua, NavLink as Gr, Pagination as Pc, Anchor as Xa, AppShell as zo } from "@mantine/core";
|
|
6
6
|
import { useModals as Dt, ModalsProvider as Mo } from "@mantine/modals";
|
|
7
|
-
import { useCreation as dt, usePrevious as
|
|
7
|
+
import { useCreation as dt, usePrevious as Nc, useBoolean as Xe, useLatest as Za, useRequest as Vn, useAsyncEffect as On } from "ahooks";
|
|
8
8
|
import { observer as D } from "mobx-react-lite";
|
|
9
|
-
import k, { template as
|
|
10
|
-
import { useForm as ze, useWatch as Xc, Controller as x, useFieldArray as
|
|
11
|
-
import { IconInfoCircle as Fn, IconPlus as Pt, IconDeviceFloppy as Pn, IconBorderAll as Zc, IconTrash as ln, IconArrowDown as Kc, IconArrowUp as Jc, IconArrowsLeftRight as ed, IconVariable as td, IconCodeDots as nd, IconFilter as
|
|
9
|
+
import k, { template as Vi, cloneDeepWith as Ao, get as se, isFunction as Bc, omit as Ht, values as Ro, unset as qc, isObject as Eo, set as Oi, orderBy as Wc, last as Vo, defaults as $e, minBy as jc, maxBy as Gc, cloneDeep as Pe, isEqual as we, defaultsDeep as _e, keyBy as Oo, isEmpty as Fi, isNumber as Yc, findLastIndex as Hc, isString as Fo, range as Qc, throttle as Uc, pick as Po } from "lodash";
|
|
10
|
+
import { useForm as ze, useWatch as Xc, Controller as x, useFieldArray as Ve } from "react-hook-form";
|
|
11
|
+
import { IconInfoCircle as Fn, IconPlus as Pt, IconDeviceFloppy as Pn, IconBorderAll as Zc, IconTrash as ln, IconArrowDown as Kc, IconArrowUp as Jc, IconArrowsLeftRight as ed, IconVariable as td, IconCodeDots as nd, IconFilter as No, IconCopy as rd, IconDatabase as cr, IconBoxMultiple as Bo, IconMenu2 as id, IconDownload as ad, IconCode as od, IconCaretDown as sd, IconRecycle as qo, IconAlertTriangle as Wo, IconArrowLeft as ld, IconPlaylistAdd as cd, IconCircleDashed as dd, IconCircleDot as ud, IconCircleOff as hd, IconAdjustments as pd, IconLink as md, IconSettings as gd, IconArrowCurveRight as fd, IconX as jo, IconEye as bd, IconTable as xd, IconColumns as yd, IconPlayerSkipBack as vd } from "@tabler/icons";
|
|
12
12
|
import { Link as Go, RichTextEditor as ie, useRichTextEditorContext as wd } from "@mantine/tiptap";
|
|
13
13
|
import { Color as Yo } from "@tiptap/extension-color";
|
|
14
14
|
import Ho from "@tiptap/extension-highlight";
|
|
@@ -26,27 +26,27 @@ import { useEditor as is } from "@tiptap/react";
|
|
|
26
26
|
import as from "@tiptap/starter-kit";
|
|
27
27
|
import { DateRangePicker as _d } from "@mantine/dates";
|
|
28
28
|
import K from "dayjs";
|
|
29
|
-
import { Calendar as Cd, InfoCircle as hn, Refresh as os, Download as ss, ArrowsMaximize as Sd, Settings as ls, Copy as kd, Trash as xe, DeviceFloppy as be, ArrowRight as Fr, PlaylistAdd as dr, Recycle as xt, Plus as
|
|
29
|
+
import { Calendar as Cd, InfoCircle as hn, Refresh as os, Download as ss, ArrowsMaximize as Sd, Settings as ls, Copy as kd, Trash as xe, DeviceFloppy as be, ArrowRight as Fr, PlaylistAdd as dr, Recycle as xt, Plus as Ne, AlertCircle as Td, ArrowsMove as Dd, ChevronDownRight as Ld, ArrowLeft as Id, ChevronsUpRight as $d, ArrowBarToRight as zd } from "tabler-icons-react";
|
|
30
30
|
import Md, { Option as Ad } from "rc-select";
|
|
31
31
|
import Rd, { SHOW_PARENT as Ed } from "rc-tree-select";
|
|
32
32
|
import cs, { WidthProvider as ds } from "react-grid-layout";
|
|
33
|
-
import { observable as us, runInAction as Dn, toJS as
|
|
33
|
+
import { observable as us, runInAction as Dn, toJS as Nt, reaction as gt, makeAutoObservable as Nn } from "mobx";
|
|
34
34
|
import Ka from "eventemitter2";
|
|
35
35
|
import $n, { random as ur } from "chroma-js";
|
|
36
36
|
import "echarts-gl";
|
|
37
37
|
import * as fe from "echarts/core";
|
|
38
|
-
import { GridComponent as at, VisualMapComponent as hr, LegendComponent as ot, TooltipComponent as st, DataZoomComponent as Lt, MarkLineComponent as pr, MarkAreaComponent as Pi, CalendarComponent as
|
|
38
|
+
import { GridComponent as at, VisualMapComponent as hr, LegendComponent as ot, TooltipComponent as st, DataZoomComponent as Lt, MarkLineComponent as pr, MarkAreaComponent as Pi, CalendarComponent as Vd } from "echarts/components";
|
|
39
39
|
import { CanvasRenderer as Je } from "echarts/renderers";
|
|
40
40
|
import et from "echarts-for-react/lib/core";
|
|
41
41
|
import he from "numbro";
|
|
42
|
-
import { BoxplotChart as
|
|
42
|
+
import { BoxplotChart as Od, BarChart as Zt, LineChart as Kt, ScatterChart as mr, FunnelChart as Fd, HeatmapChart as Ni, PieChart as Pd, RadarChart as Nd, SunburstChart as Bd } from "echarts/charts";
|
|
43
43
|
import { useElementSize as zn, randomId as Qt, useClipboard as qd, useInputState as hs, useDisclosure as ps } from "@mantine/hooks";
|
|
44
44
|
import { showNotification as gr } from "@mantine/notifications";
|
|
45
45
|
import * as Wd from "d3-array";
|
|
46
46
|
import { quantile as Zn } from "d3-array";
|
|
47
47
|
import * as Kn from "mathjs";
|
|
48
48
|
import { interpolate as pn } from "popmotion";
|
|
49
|
-
import
|
|
49
|
+
import nt, { loader as Pr } from "@monaco-editor/react";
|
|
50
50
|
import * as At from "d3-regression";
|
|
51
51
|
import { Prism as cn } from "@mantine/prism";
|
|
52
52
|
import { flexRender as tr, createColumnHelper as ms, useReactTable as gs, getCoreRowModel as fs, getSortedRowModel as jd } from "@tanstack/react-table";
|
|
@@ -55,7 +55,7 @@ import Rt from "axios";
|
|
|
55
55
|
import { types as f, getParent as it, getRoot as Fe, cast as mn, addDisposer as Et, addMiddleware as Yd, getType as Hd, isAlive as Ja, flow as on, toGenerator as Gt, detach as Qd, clone as Ud, getSnapshot as mt, applySnapshot as Ke, getParentOfType as eo, castToSnapshot as bs } from "mobx-state-tree";
|
|
56
56
|
import { arrayToTree as Xd } from "performant-array-to-tree";
|
|
57
57
|
import Zd from "jszip";
|
|
58
|
-
import { saveAs as
|
|
58
|
+
import { saveAs as Bi } from "file-saver";
|
|
59
59
|
import xs from "crypto-js";
|
|
60
60
|
import { faker as Kd } from "@faker-js/faker";
|
|
61
61
|
import { useNavigate as Jd } from "react-router-dom";
|
|
@@ -118,36 +118,36 @@ function ou() {
|
|
|
118
118
|
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
119
119
|
function F(_) {
|
|
120
120
|
{
|
|
121
|
-
for (var M = arguments.length,
|
|
122
|
-
|
|
123
|
-
W("error", _,
|
|
121
|
+
for (var M = arguments.length, N = new Array(M > 1 ? M - 1 : 0), J = 1; J < M; J++)
|
|
122
|
+
N[J - 1] = arguments[J];
|
|
123
|
+
W("error", _, N);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function W(_, M,
|
|
126
|
+
function W(_, M, N) {
|
|
127
127
|
{
|
|
128
128
|
var J = R.ReactDebugCurrentFrame, me = J.getStackAddendum();
|
|
129
|
-
me !== "" && (M += "%s",
|
|
130
|
-
var ye =
|
|
129
|
+
me !== "" && (M += "%s", N = N.concat([me]));
|
|
130
|
+
var ye = N.map(function(le) {
|
|
131
131
|
return String(le);
|
|
132
132
|
});
|
|
133
133
|
ye.unshift("Warning: " + M), Function.prototype.apply.call(console[_], console, ye);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
var Q = !1,
|
|
136
|
+
var Q = !1, B = !1, P = !1, O = !1, Y = !1, ne;
|
|
137
137
|
ne = Symbol.for("react.module.reference");
|
|
138
138
|
function ee(_) {
|
|
139
|
-
return !!(typeof _ == "string" || typeof _ == "function" || _ === i || _ === o || Y || _ === a || _ === d || _ === p ||
|
|
139
|
+
return !!(typeof _ == "string" || typeof _ == "function" || _ === i || _ === o || Y || _ === a || _ === d || _ === p || O || _ === g || Q || B || P || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === m || _.$$typeof === l || _.$$typeof === s || _.$$typeof === c || // This needs to include all possible module reference object
|
|
140
140
|
// types supported by any Flight configuration anywhere since
|
|
141
141
|
// we don't know which Flight build this will end up being used
|
|
142
142
|
// with.
|
|
143
143
|
_.$$typeof === ne || _.getModuleId !== void 0));
|
|
144
144
|
}
|
|
145
|
-
function de(_, M,
|
|
145
|
+
function de(_, M, N) {
|
|
146
146
|
var J = _.displayName;
|
|
147
147
|
if (J)
|
|
148
148
|
return J;
|
|
149
149
|
var me = M.displayName || M.name || "";
|
|
150
|
-
return me !== "" ?
|
|
150
|
+
return me !== "" ? N + "(" + me + ")" : N;
|
|
151
151
|
}
|
|
152
152
|
function pe(_) {
|
|
153
153
|
return _.displayName || "Context";
|
|
@@ -179,8 +179,8 @@ function ou() {
|
|
|
179
179
|
var M = _;
|
|
180
180
|
return pe(M) + ".Consumer";
|
|
181
181
|
case l:
|
|
182
|
-
var
|
|
183
|
-
return pe(
|
|
182
|
+
var N = _;
|
|
183
|
+
return pe(N._context) + ".Provider";
|
|
184
184
|
case c:
|
|
185
185
|
return de(_, _.render, "ForwardRef");
|
|
186
186
|
case m:
|
|
@@ -260,7 +260,7 @@ function ou() {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
var yn = R.ReactCurrentDispatcher, en;
|
|
263
|
-
function $t(_, M,
|
|
263
|
+
function $t(_, M, N) {
|
|
264
264
|
{
|
|
265
265
|
if (en === void 0)
|
|
266
266
|
try {
|
|
@@ -282,9 +282,9 @@ function ou() {
|
|
|
282
282
|
if (!_ || jt)
|
|
283
283
|
return "";
|
|
284
284
|
{
|
|
285
|
-
var
|
|
286
|
-
if (
|
|
287
|
-
return
|
|
285
|
+
var N = zt.get(_);
|
|
286
|
+
if (N !== void 0)
|
|
287
|
+
return N;
|
|
288
288
|
}
|
|
289
289
|
var J;
|
|
290
290
|
jt = !0;
|
|
@@ -335,9 +335,9 @@ function ou() {
|
|
|
335
335
|
if (Ie !== 1 || Ae !== 1)
|
|
336
336
|
do
|
|
337
337
|
if (Ie--, Ae--, Ae < 0 || ae[Ie] !== Ge[Ae]) {
|
|
338
|
-
var
|
|
338
|
+
var rt = `
|
|
339
339
|
` + ae[Ie].replace(" at new ", " at ");
|
|
340
|
-
return _.displayName &&
|
|
340
|
+
return _.displayName && rt.includes("<anonymous>") && (rt = rt.replace("<anonymous>", _.displayName)), typeof _ == "function" && zt.set(_, rt), rt;
|
|
341
341
|
}
|
|
342
342
|
while (Ie >= 1 && Ae >= 0);
|
|
343
343
|
break;
|
|
@@ -349,14 +349,14 @@ function ou() {
|
|
|
349
349
|
var an = _ ? _.displayName || _.name : "", Ga = an ? $t(an) : "";
|
|
350
350
|
return typeof _ == "function" && zt.set(_, Ga), Ga;
|
|
351
351
|
}
|
|
352
|
-
function vn(_, M,
|
|
352
|
+
function vn(_, M, N) {
|
|
353
353
|
return nn(_, !1);
|
|
354
354
|
}
|
|
355
355
|
function wn(_) {
|
|
356
356
|
var M = _.prototype;
|
|
357
357
|
return !!(M && M.isReactComponent);
|
|
358
358
|
}
|
|
359
|
-
function Mt(_, M,
|
|
359
|
+
function Mt(_, M, N) {
|
|
360
360
|
if (_ == null)
|
|
361
361
|
return "";
|
|
362
362
|
if (typeof _ == "function")
|
|
@@ -374,11 +374,11 @@ function ou() {
|
|
|
374
374
|
case c:
|
|
375
375
|
return vn(_.render);
|
|
376
376
|
case m:
|
|
377
|
-
return Mt(_.type, M,
|
|
377
|
+
return Mt(_.type, M, N);
|
|
378
378
|
case h: {
|
|
379
379
|
var J = _, me = J._payload, ye = J._init;
|
|
380
380
|
try {
|
|
381
|
-
return Mt(ye(me), M,
|
|
381
|
+
return Mt(ye(me), M, N);
|
|
382
382
|
} catch {
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -388,12 +388,12 @@ function ou() {
|
|
|
388
388
|
var _n = Object.prototype.hasOwnProperty, Aa = {}, Ra = R.ReactDebugCurrentFrame;
|
|
389
389
|
function Yn(_) {
|
|
390
390
|
if (_) {
|
|
391
|
-
var M = _._owner,
|
|
392
|
-
Ra.setExtraStackFrame(
|
|
391
|
+
var M = _._owner, N = Mt(_.type, _._source, M ? M.type : null);
|
|
392
|
+
Ra.setExtraStackFrame(N);
|
|
393
393
|
} else
|
|
394
394
|
Ra.setExtraStackFrame(null);
|
|
395
395
|
}
|
|
396
|
-
function sc(_, M,
|
|
396
|
+
function sc(_, M, N, J, me) {
|
|
397
397
|
{
|
|
398
398
|
var ye = Function.call.bind(_n);
|
|
399
399
|
for (var le in _)
|
|
@@ -401,14 +401,14 @@ function ou() {
|
|
|
401
401
|
var ae = void 0;
|
|
402
402
|
try {
|
|
403
403
|
if (typeof _[le] != "function") {
|
|
404
|
-
var Ge = Error((J || "React class") + ": " +
|
|
404
|
+
var Ge = Error((J || "React class") + ": " + N + " type `" + le + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof _[le] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
405
405
|
throw Ge.name = "Invariant Violation", Ge;
|
|
406
406
|
}
|
|
407
|
-
ae = _[le](M, le, J,
|
|
407
|
+
ae = _[le](M, le, J, N, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
408
408
|
} catch (Ie) {
|
|
409
409
|
ae = Ie;
|
|
410
410
|
}
|
|
411
|
-
ae && !(ae instanceof Error) && (Yn(me), F("%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).", J || "React class",
|
|
411
|
+
ae && !(ae instanceof Error) && (Yn(me), F("%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).", J || "React class", N, le, typeof ae), Yn(null)), ae instanceof Error && !(ae.message in Aa) && (Aa[ae.message] = !0, Yn(me), F("Failed %s type: %s", N, ae.message), Yn(null));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -418,8 +418,8 @@ function ou() {
|
|
|
418
418
|
}
|
|
419
419
|
function cc(_) {
|
|
420
420
|
{
|
|
421
|
-
var M = typeof Symbol == "function" && Symbol.toStringTag,
|
|
422
|
-
return
|
|
421
|
+
var M = typeof Symbol == "function" && Symbol.toStringTag, N = M && _[Symbol.toStringTag] || _.constructor.name || "Object";
|
|
422
|
+
return N;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function dc(_) {
|
|
@@ -432,7 +432,7 @@ function ou() {
|
|
|
432
432
|
function Ea(_) {
|
|
433
433
|
return "" + _;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Va(_) {
|
|
436
436
|
if (dc(_))
|
|
437
437
|
return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", cc(_)), Ea(_);
|
|
438
438
|
}
|
|
@@ -441,7 +441,7 @@ function ou() {
|
|
|
441
441
|
ref: !0,
|
|
442
442
|
__self: !0,
|
|
443
443
|
__source: !0
|
|
444
|
-
},
|
|
444
|
+
}, Oa, Fa, Mr;
|
|
445
445
|
Mr = {};
|
|
446
446
|
function hc(_) {
|
|
447
447
|
if (_n.call(_, "ref")) {
|
|
@@ -461,40 +461,40 @@ function ou() {
|
|
|
461
461
|
}
|
|
462
462
|
function mc(_, M) {
|
|
463
463
|
if (typeof _.ref == "string" && Cn.current && M && Cn.current.stateNode !== M) {
|
|
464
|
-
var
|
|
465
|
-
Mr[
|
|
464
|
+
var N = ge(Cn.current.type);
|
|
465
|
+
Mr[N] || (F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ge(Cn.current.type), _.ref), Mr[N] = !0);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
function gc(_, M) {
|
|
469
469
|
{
|
|
470
|
-
var
|
|
471
|
-
|
|
470
|
+
var N = function() {
|
|
471
|
+
Oa || (Oa = !0, F("%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)", M));
|
|
472
472
|
};
|
|
473
|
-
|
|
474
|
-
get:
|
|
473
|
+
N.isReactWarning = !0, Object.defineProperty(_, "key", {
|
|
474
|
+
get: N,
|
|
475
475
|
configurable: !0
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
function fc(_, M) {
|
|
480
480
|
{
|
|
481
|
-
var
|
|
481
|
+
var N = function() {
|
|
482
482
|
Fa || (Fa = !0, F("%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)", M));
|
|
483
483
|
};
|
|
484
|
-
|
|
485
|
-
get:
|
|
484
|
+
N.isReactWarning = !0, Object.defineProperty(_, "ref", {
|
|
485
|
+
get: N,
|
|
486
486
|
configurable: !0
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
var bc = function(_, M,
|
|
490
|
+
var bc = function(_, M, N, J, me, ye, le) {
|
|
491
491
|
var ae = {
|
|
492
492
|
// This tag allows us to uniquely identify this as a React Element
|
|
493
493
|
$$typeof: t,
|
|
494
494
|
// Built-in properties that belong on the element
|
|
495
495
|
type: _,
|
|
496
496
|
key: M,
|
|
497
|
-
ref:
|
|
497
|
+
ref: N,
|
|
498
498
|
props: le,
|
|
499
499
|
// Record the component responsible for creating this element.
|
|
500
500
|
_owner: ye
|
|
@@ -516,10 +516,10 @@ function ou() {
|
|
|
516
516
|
value: me
|
|
517
517
|
}), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
|
|
518
518
|
};
|
|
519
|
-
function xc(_, M,
|
|
519
|
+
function xc(_, M, N, J, me) {
|
|
520
520
|
{
|
|
521
521
|
var ye, le = {}, ae = null, Ge = null;
|
|
522
|
-
|
|
522
|
+
N !== void 0 && (Va(N), ae = "" + N), pc(M) && (Va(M.key), ae = "" + M.key), hc(M) && (Ge = M.ref, mc(M, me));
|
|
523
523
|
for (ye in M)
|
|
524
524
|
_n.call(M, ye) && !uc.hasOwnProperty(ye) && (le[ye] = M[ye]);
|
|
525
525
|
if (_ && _.defaultProps) {
|
|
@@ -537,8 +537,8 @@ function ou() {
|
|
|
537
537
|
var Ar = R.ReactCurrentOwner, Pa = R.ReactDebugCurrentFrame;
|
|
538
538
|
function rn(_) {
|
|
539
539
|
if (_) {
|
|
540
|
-
var M = _._owner,
|
|
541
|
-
Pa.setExtraStackFrame(
|
|
540
|
+
var M = _._owner, N = Mt(_.type, _._source, M ? M.type : null);
|
|
541
|
+
Pa.setExtraStackFrame(N);
|
|
542
542
|
} else
|
|
543
543
|
Pa.setExtraStackFrame(null);
|
|
544
544
|
}
|
|
@@ -547,7 +547,7 @@ function ou() {
|
|
|
547
547
|
function Er(_) {
|
|
548
548
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Na() {
|
|
551
551
|
{
|
|
552
552
|
if (Ar.current) {
|
|
553
553
|
var _ = ge(Ar.current.type);
|
|
@@ -562,23 +562,23 @@ Check the render method of \`` + _ + "`.";
|
|
|
562
562
|
function yc(_) {
|
|
563
563
|
{
|
|
564
564
|
if (_ !== void 0) {
|
|
565
|
-
var M = _.fileName.replace(/^.*[\\\/]/, ""),
|
|
565
|
+
var M = _.fileName.replace(/^.*[\\\/]/, ""), N = _.lineNumber;
|
|
566
566
|
return `
|
|
567
567
|
|
|
568
|
-
Check your code at ` + M + ":" +
|
|
568
|
+
Check your code at ` + M + ":" + N + ".";
|
|
569
569
|
}
|
|
570
570
|
return "";
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
var
|
|
573
|
+
var Ba = {};
|
|
574
574
|
function vc(_) {
|
|
575
575
|
{
|
|
576
|
-
var M =
|
|
576
|
+
var M = Na();
|
|
577
577
|
if (!M) {
|
|
578
|
-
var
|
|
579
|
-
|
|
578
|
+
var N = typeof _ == "string" ? _ : _.displayName || _.name;
|
|
579
|
+
N && (M = `
|
|
580
580
|
|
|
581
|
-
Check the top-level render call using <` +
|
|
581
|
+
Check the top-level render call using <` + N + ">.");
|
|
582
582
|
}
|
|
583
583
|
return M;
|
|
584
584
|
}
|
|
@@ -588,12 +588,12 @@ Check the top-level render call using <` + B + ">.");
|
|
|
588
588
|
if (!_._store || _._store.validated || _.key != null)
|
|
589
589
|
return;
|
|
590
590
|
_._store.validated = !0;
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
591
|
+
var N = vc(M);
|
|
592
|
+
if (Ba[N])
|
|
593
593
|
return;
|
|
594
|
-
|
|
594
|
+
Ba[N] = !0;
|
|
595
595
|
var J = "";
|
|
596
|
-
_ && _._owner && _._owner !== Ar.current && (J = " It was passed a child from " + ge(_._owner.type) + "."), rn(_), F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
596
|
+
_ && _._owner && _._owner !== Ar.current && (J = " It was passed a child from " + ge(_._owner.type) + "."), rn(_), F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', N, J), rn(null);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Wa(_, M) {
|
|
@@ -601,8 +601,8 @@ Check the top-level render call using <` + B + ">.");
|
|
|
601
601
|
if (typeof _ != "object")
|
|
602
602
|
return;
|
|
603
603
|
if (zr(_))
|
|
604
|
-
for (var
|
|
605
|
-
var J = _[
|
|
604
|
+
for (var N = 0; N < _.length; N++) {
|
|
605
|
+
var J = _[N];
|
|
606
606
|
Er(J) && qa(J, M);
|
|
607
607
|
}
|
|
608
608
|
else if (Er(_))
|
|
@@ -620,18 +620,18 @@ Check the top-level render call using <` + B + ">.");
|
|
|
620
620
|
var M = _.type;
|
|
621
621
|
if (M == null || typeof M == "string")
|
|
622
622
|
return;
|
|
623
|
-
var
|
|
623
|
+
var N;
|
|
624
624
|
if (typeof M == "function")
|
|
625
|
-
|
|
625
|
+
N = M.propTypes;
|
|
626
626
|
else if (typeof M == "object" && (M.$$typeof === c || // Note: Memo only checks outer props here.
|
|
627
627
|
// Inner props are checked in the reconciler.
|
|
628
628
|
M.$$typeof === m))
|
|
629
|
-
|
|
629
|
+
N = M.propTypes;
|
|
630
630
|
else
|
|
631
631
|
return;
|
|
632
|
-
if (
|
|
632
|
+
if (N) {
|
|
633
633
|
var J = ge(M);
|
|
634
|
-
sc(
|
|
634
|
+
sc(N, _.props, "prop", J, _);
|
|
635
635
|
} else if (M.PropTypes !== void 0 && !Rr) {
|
|
636
636
|
Rr = !0;
|
|
637
637
|
var me = ge(M);
|
|
@@ -642,8 +642,8 @@ Check the top-level render call using <` + B + ">.");
|
|
|
642
642
|
}
|
|
643
643
|
function _c(_) {
|
|
644
644
|
{
|
|
645
|
-
for (var M = Object.keys(_.props),
|
|
646
|
-
var J = M[
|
|
645
|
+
for (var M = Object.keys(_.props), N = 0; N < M.length; N++) {
|
|
646
|
+
var J = M[N];
|
|
647
647
|
if (J !== "children" && J !== "key") {
|
|
648
648
|
rn(_), F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", J), rn(null);
|
|
649
649
|
break;
|
|
@@ -652,41 +652,41 @@ Check the top-level render call using <` + B + ">.");
|
|
|
652
652
|
_.ref !== null && (rn(_), F("Invalid attribute `ref` supplied to `React.Fragment`."), rn(null));
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
function ja(_, M,
|
|
655
|
+
function ja(_, M, N, J, me, ye) {
|
|
656
656
|
{
|
|
657
657
|
var le = ee(_);
|
|
658
658
|
if (!le) {
|
|
659
659
|
var ae = "";
|
|
660
660
|
(_ === void 0 || typeof _ == "object" && _ !== null && Object.keys(_).length === 0) && (ae += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
661
661
|
var Ge = yc(me);
|
|
662
|
-
Ge ? ae += Ge : ae +=
|
|
662
|
+
Ge ? ae += Ge : ae += Na();
|
|
663
663
|
var Ie;
|
|
664
664
|
_ === null ? Ie = "null" : zr(_) ? Ie = "array" : _ !== void 0 && _.$$typeof === t ? (Ie = "<" + (ge(_.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof _, F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, ae);
|
|
665
665
|
}
|
|
666
|
-
var Ae = xc(_, M,
|
|
666
|
+
var Ae = xc(_, M, N, me, ye);
|
|
667
667
|
if (Ae == null)
|
|
668
668
|
return Ae;
|
|
669
669
|
if (le) {
|
|
670
|
-
var
|
|
671
|
-
if (
|
|
670
|
+
var rt = M.children;
|
|
671
|
+
if (rt !== void 0)
|
|
672
672
|
if (J)
|
|
673
|
-
if (zr(
|
|
674
|
-
for (var an = 0; an <
|
|
675
|
-
Wa(
|
|
676
|
-
Object.freeze && Object.freeze(
|
|
673
|
+
if (zr(rt)) {
|
|
674
|
+
for (var an = 0; an < rt.length; an++)
|
|
675
|
+
Wa(rt[an], _);
|
|
676
|
+
Object.freeze && Object.freeze(rt);
|
|
677
677
|
} else
|
|
678
678
|
F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
679
679
|
else
|
|
680
|
-
Wa(
|
|
680
|
+
Wa(rt, _);
|
|
681
681
|
}
|
|
682
682
|
return _ === i ? _c(Ae) : wc(Ae), Ae;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
function Cc(_, M,
|
|
686
|
-
return ja(_, M,
|
|
685
|
+
function Cc(_, M, N) {
|
|
686
|
+
return ja(_, M, N, !0);
|
|
687
687
|
}
|
|
688
|
-
function Sc(_, M,
|
|
689
|
-
return ja(_, M,
|
|
688
|
+
function Sc(_, M, N) {
|
|
689
|
+
return ja(_, M, N, !1);
|
|
690
690
|
}
|
|
691
691
|
var kc = Sc, Tc = Cc;
|
|
692
692
|
kn.Fragment = i, kn.jsx = kc, kn.jsxs = Tc;
|
|
@@ -766,7 +766,7 @@ function ys(e, t) {
|
|
|
766
766
|
return encodeURIComponent(g);
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
|
-
const p =
|
|
769
|
+
const p = Vi(a || "")(c({
|
|
770
770
|
...s,
|
|
771
771
|
filters: e.payloadForSQL.filterValues,
|
|
772
772
|
context: e.payloadForSQL.context
|
|
@@ -820,13 +820,13 @@ class qi {
|
|
|
820
820
|
dispose() {
|
|
821
821
|
this.instanceRegistry.forEach((t) => {
|
|
822
822
|
const r = se(t, "dispose");
|
|
823
|
-
|
|
823
|
+
Bc(r) && r.bind(t)();
|
|
824
824
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
const Yr = To(null);
|
|
828
828
|
function fr(e) {
|
|
829
|
-
const t = $.useContext(Yr), r = dt(() => e.configure(t || new qi()), [e.configure]), i =
|
|
829
|
+
const t = $.useContext(Yr), r = dt(() => e.configure(t || new qi()), [e.configure]), i = Nc(r);
|
|
830
830
|
return i && i !== r && i.dispose(), /* @__PURE__ */ n(Yr.Provider, { value: r, children: e.children });
|
|
831
831
|
}
|
|
832
832
|
function vs() {
|
|
@@ -893,7 +893,7 @@ class Qe extends $.Component {
|
|
|
893
893
|
error: null
|
|
894
894
|
});
|
|
895
895
|
};
|
|
896
|
-
return /* @__PURE__ */ u(
|
|
896
|
+
return /* @__PURE__ */ u(V, { children: [
|
|
897
897
|
/* @__PURE__ */ n(C, { size: "xs", children: (t = this.state.error) == null ? void 0 : t.message }),
|
|
898
898
|
/* @__PURE__ */ n(I, { variant: "subtle", size: "xs", mx: "auto", compact: !0, sx: {
|
|
899
899
|
display: "block"
|
|
@@ -1015,7 +1015,7 @@ const ji = {
|
|
|
1015
1015
|
border: "0.0625rem solid rgb(233, 236, 239)",
|
|
1016
1016
|
boxShadow: "rgb(0 0 0 / 5%) 0px 0.0625rem 0.1875rem, rgb(0 0 0 / 5%) 0px 1.25rem 1.5625rem -0.3125rem, rgb(0 0 0 / 4%) 0px 0.625rem 0.625rem -0.3125rem"
|
|
1017
1017
|
}
|
|
1018
|
-
}, withArrow: !0, children: /* @__PURE__ */ n(
|
|
1018
|
+
}, withArrow: !0, children: /* @__PURE__ */ n(V, { sx: {
|
|
1019
1019
|
height: "16px",
|
|
1020
1020
|
alignSelf: "center"
|
|
1021
1021
|
}, children: /* @__PURE__ */ n(Fn, { size: 16, color: "gray" }) }) }), pu = D(({
|
|
@@ -1028,10 +1028,10 @@ const ji = {
|
|
|
1028
1028
|
},
|
|
1029
1029
|
value: o,
|
|
1030
1030
|
onChange: l
|
|
1031
|
-
}) => /* @__PURE__ */ u(
|
|
1031
|
+
}) => /* @__PURE__ */ u(V, { children: [
|
|
1032
1032
|
/* @__PURE__ */ n(C, { children: " " }),
|
|
1033
1033
|
/* @__PURE__ */ n(ve, { label: /* @__PURE__ */ u(v, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
|
|
1034
|
-
/* @__PURE__ */ n(
|
|
1034
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
1035
1035
|
flexGrow: 1
|
|
1036
1036
|
}, children: e }),
|
|
1037
1037
|
/* @__PURE__ */ n(hu, { description: r, isDescriptionEmpty: i })
|
|
@@ -1263,7 +1263,7 @@ const ji = {
|
|
|
1263
1263
|
}, y = h && (s == null ? void 0 : s.length) > 0, [T, R] = U(""), F = L(() => {
|
|
1264
1264
|
if (!T)
|
|
1265
1265
|
return d;
|
|
1266
|
-
const W = T.toLowerCase(), Q = (
|
|
1266
|
+
const W = T.toLowerCase(), Q = (B) => B.description.toLowerCase().includes(W) || B.label.toLowerCase().includes(W);
|
|
1267
1267
|
return d.filter(Q);
|
|
1268
1268
|
}, [T, d]);
|
|
1269
1269
|
return /* @__PURE__ */ u(S, { spacing: 3, children: [
|
|
@@ -1812,26 +1812,26 @@ const zs = D(() => {
|
|
|
1812
1812
|
}), w = $.useCallback(() => {
|
|
1813
1813
|
d(o);
|
|
1814
1814
|
}, [o, d]), y = !p && e.type !== oe.Modal;
|
|
1815
|
-
return /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(
|
|
1815
|
+
return /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(V, { sx: {
|
|
1816
1816
|
position: "absolute",
|
|
1817
1817
|
top: 0,
|
|
1818
1818
|
left: 0,
|
|
1819
1819
|
right: 0,
|
|
1820
1820
|
zIndex: 300
|
|
1821
|
-
}, children: /* @__PURE__ */ u(
|
|
1822
|
-
/* @__PURE__ */ n(
|
|
1821
|
+
}, children: /* @__PURE__ */ u(Oe, { withinPortal: !0, children: [
|
|
1822
|
+
/* @__PURE__ */ n(Oe.Target, { children: /* @__PURE__ */ n(V, { className: "panel-dropdown-target", sx: {
|
|
1823
1823
|
width: "100%",
|
|
1824
1824
|
height: "25px"
|
|
1825
1825
|
} }) }),
|
|
1826
|
-
/* @__PURE__ */ u(
|
|
1827
|
-
/* @__PURE__ */ n(
|
|
1828
|
-
/* @__PURE__ */ n(
|
|
1829
|
-
y && /* @__PURE__ */ n(
|
|
1826
|
+
/* @__PURE__ */ u(Oe.Dropdown, { children: [
|
|
1827
|
+
/* @__PURE__ */ n(Oe.Item, { onClick: c, icon: /* @__PURE__ */ n(os, { size: 14 }), children: "Refresh" }),
|
|
1828
|
+
/* @__PURE__ */ n(Oe.Item, { onClick: () => r.queries.downloadDataByQueryID((l == null ? void 0 : l.id) ?? ""), icon: /* @__PURE__ */ n(ss, { size: 14 }), children: "Download Data" }),
|
|
1829
|
+
y && /* @__PURE__ */ n(Oe.Item, { onClick: w, icon: /* @__PURE__ */ n(Sd, { size: 14 }), disabled: s, children: "Full Screen" }),
|
|
1830
1830
|
s && /* @__PURE__ */ u(G, { children: [
|
|
1831
1831
|
/* @__PURE__ */ n(A, { label: "Edit", labelPosition: "center" }),
|
|
1832
|
-
/* @__PURE__ */ n(
|
|
1833
|
-
/* @__PURE__ */ n(
|
|
1834
|
-
/* @__PURE__ */ n(
|
|
1832
|
+
/* @__PURE__ */ n(Oe.Item, { onClick: h, icon: /* @__PURE__ */ n(ls, { size: 14 }), children: "Settings" }),
|
|
1833
|
+
/* @__PURE__ */ n(Oe.Item, { onClick: m, icon: /* @__PURE__ */ n(kd, { size: 14 }), children: "Duplicate" }),
|
|
1834
|
+
/* @__PURE__ */ n(Oe.Item, { color: "red", onClick: g, icon: /* @__PURE__ */ n(xe, { size: 14 }), children: "Delete" })
|
|
1835
1835
|
] })
|
|
1836
1836
|
] })
|
|
1837
1837
|
] }) }) });
|
|
@@ -1920,7 +1920,7 @@ class Ms {
|
|
|
1920
1920
|
return Promise.resolve(r);
|
|
1921
1921
|
}
|
|
1922
1922
|
getValueFromRoot(t) {
|
|
1923
|
-
return t === null ?
|
|
1923
|
+
return t === null ? Nt(this.rootRef.current) : se(this.rootRef.current, [t]);
|
|
1924
1924
|
}
|
|
1925
1925
|
setItem(t, r) {
|
|
1926
1926
|
if (t === null)
|
|
@@ -1932,7 +1932,7 @@ class Ms {
|
|
|
1932
1932
|
throw new Error("Cannot set root value to non-object");
|
|
1933
1933
|
else
|
|
1934
1934
|
Dn(() => {
|
|
1935
|
-
|
|
1935
|
+
Oi(this.rootRef.current, [t], r);
|
|
1936
1936
|
});
|
|
1937
1937
|
return Promise.resolve(this.getItem(t));
|
|
1938
1938
|
}
|
|
@@ -2051,13 +2051,13 @@ const Au = (e) => {
|
|
|
2051
2051
|
getColor: Rs(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
|
|
2052
2052
|
name: "red-green",
|
|
2053
2053
|
category: "diverging"
|
|
2054
|
-
},
|
|
2054
|
+
}, Vu = {
|
|
2055
2055
|
type: "interpolation",
|
|
2056
2056
|
displayName: "Yellow / Blue",
|
|
2057
2057
|
getColor: Rs(["#8f531d", "#ffd347", "#e3efe3"], ["#eefaee", "#4ecbbf", "#003f94"]),
|
|
2058
2058
|
name: "yellow-blue",
|
|
2059
2059
|
category: "diverging"
|
|
2060
|
-
},
|
|
2060
|
+
}, Ou = {
|
|
2061
2061
|
type: "interpolation",
|
|
2062
2062
|
displayName: "Red",
|
|
2063
2063
|
getColor: xr(["#fff7f1", "darkred"]),
|
|
@@ -2075,18 +2075,18 @@ const Au = (e) => {
|
|
|
2075
2075
|
getColor: xr(["#f9fcff", "#48b3e9", "darkblue"]),
|
|
2076
2076
|
name: "blue",
|
|
2077
2077
|
category: "sequential"
|
|
2078
|
-
},
|
|
2078
|
+
}, Nu = {
|
|
2079
2079
|
type: "interpolation",
|
|
2080
2080
|
displayName: "Orange",
|
|
2081
2081
|
getColor: xr(["#fff7f1", "darkorange", "#b60000"]),
|
|
2082
2082
|
name: "orange",
|
|
2083
2083
|
category: "sequential"
|
|
2084
|
-
}, Es = "@devtable/dashboard", Yi = "9.
|
|
2084
|
+
}, Es = "@devtable/dashboard", Yi = "9.9.0", Vs = "Apache-2.0", Os = {
|
|
2085
2085
|
access: "public",
|
|
2086
2086
|
registry: "https://registry.npmjs.org/"
|
|
2087
2087
|
}, Fs = [
|
|
2088
2088
|
"dist"
|
|
2089
|
-
], Ps = "./dist/dashboard.umd.js",
|
|
2089
|
+
], Ps = "./dist/dashboard.umd.js", Ns = "./dist/dashboard.es.js", Bs = "./dist/index.d.ts", qs = {
|
|
2090
2090
|
".": {
|
|
2091
2091
|
import: "./dist/dashboard.es.js",
|
|
2092
2092
|
require: "./dist/dashboard.umd.js"
|
|
@@ -2240,15 +2240,15 @@ const Au = (e) => {
|
|
|
2240
2240
|
"react-router-dom": "^6.3.0",
|
|
2241
2241
|
"react-virtual": "^2.10.4",
|
|
2242
2242
|
"tabler-icons-react": "^1.48.0"
|
|
2243
|
-
},
|
|
2243
|
+
}, Bu = {
|
|
2244
2244
|
name: Es,
|
|
2245
2245
|
version: Yi,
|
|
2246
|
-
license:
|
|
2247
|
-
publishConfig:
|
|
2246
|
+
license: Vs,
|
|
2247
|
+
publishConfig: Os,
|
|
2248
2248
|
files: Fs,
|
|
2249
2249
|
main: Ps,
|
|
2250
|
-
module:
|
|
2251
|
-
types:
|
|
2250
|
+
module: Ns,
|
|
2251
|
+
types: Bs,
|
|
2252
2252
|
exports: qs,
|
|
2253
2253
|
scripts: Ws,
|
|
2254
2254
|
dependencies: js,
|
|
@@ -2256,19 +2256,19 @@ const Au = (e) => {
|
|
|
2256
2256
|
peerDependencies: Ys
|
|
2257
2257
|
}, qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2258
2258
|
__proto__: null,
|
|
2259
|
-
default:
|
|
2259
|
+
default: Bu,
|
|
2260
2260
|
dependencies: js,
|
|
2261
2261
|
devDependencies: Gs,
|
|
2262
2262
|
exports: qs,
|
|
2263
2263
|
files: Fs,
|
|
2264
|
-
license:
|
|
2264
|
+
license: Vs,
|
|
2265
2265
|
main: Ps,
|
|
2266
|
-
module:
|
|
2266
|
+
module: Ns,
|
|
2267
2267
|
name: Es,
|
|
2268
2268
|
peerDependencies: Ys,
|
|
2269
|
-
publishConfig:
|
|
2269
|
+
publishConfig: Os,
|
|
2270
2270
|
scripts: Ws,
|
|
2271
|
-
types:
|
|
2271
|
+
types: Bs,
|
|
2272
2272
|
version: Yi
|
|
2273
2273
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2274
2274
|
class Wu {
|
|
@@ -2352,7 +2352,7 @@ class Gu {
|
|
|
2352
2352
|
if (t.from > t.to)
|
|
2353
2353
|
throw new Error(`Can not downgrade from version '${t.from}' to (${t.to})`);
|
|
2354
2354
|
const a = this.migrations.filter((s) => s.version > t.from && s.version <= t.to), o = Wc(a, "version", "asc");
|
|
2355
|
-
if (((l =
|
|
2355
|
+
if (((l = Vo(o)) == null ? void 0 : l.version) !== t.to)
|
|
2356
2356
|
throw new Error(`Migration to version ${t.to} not found`);
|
|
2357
2357
|
return o.reduce((s, c) => c.handler(s, i), r);
|
|
2358
2358
|
}
|
|
@@ -2773,7 +2773,7 @@ const eh = [{
|
|
|
2773
2773
|
)
|
|
2774
2774
|
] })
|
|
2775
2775
|
] });
|
|
2776
|
-
}),
|
|
2776
|
+
}), Bt = ke(({
|
|
2777
2777
|
value: e,
|
|
2778
2778
|
onChange: t
|
|
2779
2779
|
}, r) => {
|
|
@@ -2804,7 +2804,7 @@ const eh = [{
|
|
|
2804
2804
|
ellipsis: "..."
|
|
2805
2805
|
}
|
|
2806
2806
|
};
|
|
2807
|
-
function
|
|
2807
|
+
function Vt({
|
|
2808
2808
|
overflow: e,
|
|
2809
2809
|
width: t
|
|
2810
2810
|
}) {
|
|
@@ -2954,7 +2954,7 @@ function ih(e) {
|
|
|
2954
2954
|
function ah(e, t) {
|
|
2955
2955
|
return `
|
|
2956
2956
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
2957
|
-
<div style="${
|
|
2957
|
+
<div style="${Vt(e.x_axis.axisLabel.overflow.in_tooltip)}">${t[0]}</div>
|
|
2958
2958
|
</div>
|
|
2959
2959
|
<table>
|
|
2960
2960
|
<tbody>
|
|
@@ -3000,7 +3000,7 @@ const sh = (e) => (t) => {
|
|
|
3000
3000
|
</tr>`), o = oh(i);
|
|
3001
3001
|
return a.unshift(o.greater), a.push(o.less), `
|
|
3002
3002
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
3003
|
-
<div style="${
|
|
3003
|
+
<div style="${Vt(e.x_axis.axisLabel.overflow.in_tooltip)}">${i.name}</div>
|
|
3004
3004
|
</div>
|
|
3005
3005
|
<table style="width: auto">
|
|
3006
3006
|
<tbody>
|
|
@@ -3270,7 +3270,7 @@ $.forwardRef(function({
|
|
|
3270
3270
|
const d = k.cloneDeep(t);
|
|
3271
3271
|
k.set(d, s, c), r(d);
|
|
3272
3272
|
};
|
|
3273
|
-
return /* @__PURE__ */ u(
|
|
3273
|
+
return /* @__PURE__ */ u(V, { px: "sm", py: "md", ref: o, children: [
|
|
3274
3274
|
/* @__PURE__ */ n(C, { weight: "bold", pb: 0, children: t.name }),
|
|
3275
3275
|
/* @__PURE__ */ n(A, { my: "xs", label: "Data", labelPosition: "center" }),
|
|
3276
3276
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
@@ -3283,7 +3283,7 @@ $.forwardRef(function({
|
|
|
3283
3283
|
a && /* @__PURE__ */ n(Us, { value: t, onChange: r })
|
|
3284
3284
|
] });
|
|
3285
3285
|
});
|
|
3286
|
-
const
|
|
3286
|
+
const Bn = {
|
|
3287
3287
|
type: "none",
|
|
3288
3288
|
config: {}
|
|
3289
3289
|
};
|
|
@@ -3402,7 +3402,7 @@ function Sh(e) {
|
|
|
3402
3402
|
return o !== r.length - 1 && l.push(/* @__PURE__ */ n("br", {})), l;
|
|
3403
3403
|
}).flat().filter((a) => a !== void 0);
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3405
|
+
function Nr(e) {
|
|
3406
3406
|
return Sh(e);
|
|
3407
3407
|
}
|
|
3408
3408
|
function Rn(e, t, r) {
|
|
@@ -3410,14 +3410,14 @@ function Rn(e, t, r) {
|
|
|
3410
3410
|
return e.split("$").map((o) => {
|
|
3411
3411
|
const l = a.exec(o);
|
|
3412
3412
|
if (!l)
|
|
3413
|
-
return
|
|
3413
|
+
return Nr(o);
|
|
3414
3414
|
const s = i[l[1]];
|
|
3415
3415
|
if (!s)
|
|
3416
|
-
return
|
|
3416
|
+
return Nr(o);
|
|
3417
3417
|
const c = l[2] ?? "";
|
|
3418
3418
|
return /* @__PURE__ */ u($.Fragment, { children: [
|
|
3419
3419
|
s,
|
|
3420
|
-
|
|
3420
|
+
Nr(c)
|
|
3421
3421
|
] }, o);
|
|
3422
3422
|
});
|
|
3423
3423
|
}
|
|
@@ -3531,7 +3531,7 @@ function Dh({
|
|
|
3531
3531
|
series: [...c, ...Th(o, r, t)]
|
|
3532
3532
|
};
|
|
3533
3533
|
}
|
|
3534
|
-
fe.use([Lt,
|
|
3534
|
+
fe.use([Lt, Od, pr, at, ot, st, Je]);
|
|
3535
3535
|
function Lh({
|
|
3536
3536
|
context: e,
|
|
3537
3537
|
instance: t
|
|
@@ -3611,7 +3611,7 @@ function $h({
|
|
|
3611
3611
|
fields: i,
|
|
3612
3612
|
append: a,
|
|
3613
3613
|
remove: o
|
|
3614
|
-
} =
|
|
3614
|
+
} = Ve({
|
|
3615
3615
|
control: e,
|
|
3616
3616
|
name: "reference_lines"
|
|
3617
3617
|
}), l = t("reference_lines"), s = i.map((p, m) => ({
|
|
@@ -3634,11 +3634,11 @@ const zh = ({
|
|
|
3634
3634
|
disabled: e,
|
|
3635
3635
|
value: t,
|
|
3636
3636
|
onChange: r
|
|
3637
|
-
}) => /* @__PURE__ */ u(
|
|
3637
|
+
}) => /* @__PURE__ */ u(V, { sx: {
|
|
3638
3638
|
position: "relative"
|
|
3639
3639
|
}, children: [
|
|
3640
|
-
e && /* @__PURE__ */ n(
|
|
3641
|
-
/* @__PURE__ */ n(
|
|
3640
|
+
e && /* @__PURE__ */ n(Ot, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
3641
|
+
/* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
3642
3642
|
a && r(a);
|
|
3643
3643
|
}, theme: "vs-dark", options: {
|
|
3644
3644
|
minimap: {
|
|
@@ -3734,7 +3734,7 @@ const zh = ({
|
|
|
3734
3734
|
] }),
|
|
3735
3735
|
/* @__PURE__ */ n(x, { name: "x_axis.axisLabel.overflow", control: e, render: ({
|
|
3736
3736
|
field: i
|
|
3737
|
-
}) => /* @__PURE__ */ n(
|
|
3737
|
+
}) => /* @__PURE__ */ n(Bt, { ...i }) })
|
|
3738
3738
|
] })), Ah = ({
|
|
3739
3739
|
control: e,
|
|
3740
3740
|
data: t,
|
|
@@ -3819,7 +3819,7 @@ function Rh({
|
|
|
3819
3819
|
function Eh(e) {
|
|
3820
3820
|
return Ht(e, "variables");
|
|
3821
3821
|
}
|
|
3822
|
-
function
|
|
3822
|
+
function Vh(e) {
|
|
3823
3823
|
const {
|
|
3824
3824
|
label_formatter: t = je,
|
|
3825
3825
|
...r
|
|
@@ -3832,7 +3832,7 @@ function Oh(e) {
|
|
|
3832
3832
|
}
|
|
3833
3833
|
};
|
|
3834
3834
|
}
|
|
3835
|
-
function
|
|
3835
|
+
function Oh(e) {
|
|
3836
3836
|
const t = {
|
|
3837
3837
|
rotate: 0,
|
|
3838
3838
|
formatter: {
|
|
@@ -3888,7 +3888,7 @@ function Ph(e) {
|
|
|
3888
3888
|
};
|
|
3889
3889
|
return k.defaultsDeep(i, e);
|
|
3890
3890
|
}
|
|
3891
|
-
class
|
|
3891
|
+
class Nh extends Me {
|
|
3892
3892
|
constructor() {
|
|
3893
3893
|
super(...arguments);
|
|
3894
3894
|
j(this, "VERSION", 6);
|
|
@@ -3917,7 +3917,7 @@ class Bh extends Me {
|
|
|
3917
3917
|
return {
|
|
3918
3918
|
...r,
|
|
3919
3919
|
version: 3,
|
|
3920
|
-
config:
|
|
3920
|
+
config: Vh(i)
|
|
3921
3921
|
};
|
|
3922
3922
|
}), this.version(4, (r) => {
|
|
3923
3923
|
const {
|
|
@@ -3926,7 +3926,7 @@ class Bh extends Me {
|
|
|
3926
3926
|
return {
|
|
3927
3927
|
...r,
|
|
3928
3928
|
version: 4,
|
|
3929
|
-
config:
|
|
3929
|
+
config: Oh(i)
|
|
3930
3930
|
};
|
|
3931
3931
|
}), this.version(5, (r) => {
|
|
3932
3932
|
const {
|
|
@@ -3949,10 +3949,10 @@ class Bh extends Me {
|
|
|
3949
3949
|
});
|
|
3950
3950
|
}
|
|
3951
3951
|
}
|
|
3952
|
-
const
|
|
3952
|
+
const Bh = {
|
|
3953
3953
|
displayName: "Boxplot Chart",
|
|
3954
3954
|
displayGroup: "ECharts-based charts",
|
|
3955
|
-
migrator: new
|
|
3955
|
+
migrator: new Nh(),
|
|
3956
3956
|
name: "boxplot",
|
|
3957
3957
|
viewRender: Lh,
|
|
3958
3958
|
configRender: Rh,
|
|
@@ -4022,7 +4022,7 @@ const Ui = {
|
|
|
4022
4022
|
height: h,
|
|
4023
4023
|
justifyContent: jh[c],
|
|
4024
4024
|
alignItems: Gh[d]
|
|
4025
|
-
}, children: /* @__PURE__ */ n(I, { ...p, onClick: w, children:
|
|
4025
|
+
}, children: /* @__PURE__ */ n(I, { ...p, onClick: w, children: Vi(s)(g) }) });
|
|
4026
4026
|
}), Hh = ({
|
|
4027
4027
|
value: e,
|
|
4028
4028
|
onChange: t,
|
|
@@ -4459,7 +4459,7 @@ function hp({
|
|
|
4459
4459
|
}
|
|
4460
4460
|
const {
|
|
4461
4461
|
func_content: o
|
|
4462
|
-
} = t, l =
|
|
4462
|
+
} = t, l = Oo(r, i);
|
|
4463
4463
|
return (s, c) => {
|
|
4464
4464
|
let d;
|
|
4465
4465
|
c.name ? d = l[c.name] : d = r[c.dataIndex];
|
|
@@ -4580,9 +4580,9 @@ function bp({
|
|
|
4580
4580
|
x_axis_data_key: e,
|
|
4581
4581
|
y_axis_data_key: t
|
|
4582
4582
|
});
|
|
4583
|
-
return Object.entries(W).map(([Q,
|
|
4583
|
+
return Object.entries(W).map(([Q, B]) => {
|
|
4584
4584
|
const P = Pe(F);
|
|
4585
|
-
return P.name = Q, P.color = void 0, P.data =
|
|
4585
|
+
return P.name = Q, P.color = void 0, P.data = B, P;
|
|
4586
4586
|
});
|
|
4587
4587
|
}
|
|
4588
4588
|
function xp(e, t, r, i, a, o, l) {
|
|
@@ -4626,7 +4626,7 @@ function vp(e, t, r) {
|
|
|
4626
4626
|
})}</td>
|
|
4627
4627
|
</tr>
|
|
4628
4628
|
`;
|
|
4629
|
-
}), s =
|
|
4629
|
+
}), s = Vt(e.x_axis.axisLabel.overflow.in_tooltip), c = yp(o, e);
|
|
4630
4630
|
return `
|
|
4631
4631
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
4632
4632
|
<div style="${s}">${c}</div>
|
|
@@ -4835,7 +4835,7 @@ function Lp({
|
|
|
4835
4835
|
bottom: Rn(y.bottom, a, l)
|
|
4836
4836
|
};
|
|
4837
4837
|
}, [o, l]), w = Math.max(0, c - p - h);
|
|
4838
|
-
return /* @__PURE__ */ u(
|
|
4838
|
+
return /* @__PURE__ */ u(V, { children: [
|
|
4839
4839
|
/* @__PURE__ */ n(C, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
4840
4840
|
display: ao(o.stats.templates.top) ? "block" : "none"
|
|
4841
4841
|
}, children: Object.values(g.top).map((y, T) => /* @__PURE__ */ n($.Fragment, { children: y }, T)) }),
|
|
@@ -4858,19 +4858,19 @@ const ea = ke(({
|
|
|
4858
4858
|
return /* @__PURE__ */ u(S, { children: [
|
|
4859
4859
|
/* @__PURE__ */ n(A, { variant: "dashed", label: "Scroll to Zoom", labelPosition: "center" }),
|
|
4860
4860
|
/* @__PURE__ */ u(v, { children: [
|
|
4861
|
-
/* @__PURE__ */ n(
|
|
4861
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
4862
4862
|
flexGrow: 1
|
|
4863
4863
|
}, children: /* @__PURE__ */ n(Ye, { label: "Enable on X Axis", checked: e.x_axis_scroll, onChange: (a) => i("x_axis_scroll")(a.currentTarget.checked) }) }),
|
|
4864
|
-
/* @__PURE__ */ n(
|
|
4864
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
4865
4865
|
flexGrow: 1
|
|
4866
4866
|
}, children: /* @__PURE__ */ n(Ye, { label: "Enable on Y Axis", checked: e.y_axis_scroll, onChange: (a) => i("y_axis_scroll")(a.currentTarget.checked) }) })
|
|
4867
4867
|
] }),
|
|
4868
4868
|
/* @__PURE__ */ n(A, { variant: "dashed", label: "Slider for Zooming", labelPosition: "center" }),
|
|
4869
4869
|
/* @__PURE__ */ u(v, { children: [
|
|
4870
|
-
/* @__PURE__ */ n(
|
|
4870
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
4871
4871
|
flexGrow: 1
|
|
4872
4872
|
}, children: /* @__PURE__ */ n(Ye, { label: "Slider for X Axis", checked: e.x_axis_slider, onChange: (a) => i("x_axis_slider")(a.currentTarget.checked) }) }),
|
|
4873
|
-
/* @__PURE__ */ n(Ee, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ n(
|
|
4873
|
+
/* @__PURE__ */ n(Ee, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ n(V, { sx: {
|
|
4874
4874
|
flexGrow: 1
|
|
4875
4875
|
}, children: /* @__PURE__ */ n(Ye, { label: "Slider for Y Axis", disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (a) => i("y_axis_slider")(a.currentTarget.checked) }) }) })
|
|
4876
4876
|
] })
|
|
@@ -4943,7 +4943,7 @@ function Mp({
|
|
|
4943
4943
|
fields: i,
|
|
4944
4944
|
append: a,
|
|
4945
4945
|
remove: o
|
|
4946
|
-
} =
|
|
4946
|
+
} = Ve({
|
|
4947
4947
|
control: e,
|
|
4948
4948
|
name: "reference_areas"
|
|
4949
4949
|
}), l = t("reference_areas"), s = i.map((p, m) => ({
|
|
@@ -4972,7 +4972,7 @@ function Mp({
|
|
|
4972
4972
|
}, children: [
|
|
4973
4973
|
/* @__PURE__ */ u(b.List, { children: [
|
|
4974
4974
|
s.map((p, m) => /* @__PURE__ */ n(b.Tab, { value: m.toString(), children: m + 1 }, m)),
|
|
4975
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
4975
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
4976
4976
|
] }),
|
|
4977
4977
|
s.map((p, m) => /* @__PURE__ */ n(b.Panel, { value: m.toString(), children: /* @__PURE__ */ n(zp, { control: e, index: m, remove: o, variableOptions: d }) }, m))
|
|
4978
4978
|
] });
|
|
@@ -5076,7 +5076,7 @@ function Ep({
|
|
|
5076
5076
|
}, children: "Delete this Reference Line" })
|
|
5077
5077
|
] }, t);
|
|
5078
5078
|
}
|
|
5079
|
-
function
|
|
5079
|
+
function Vp({
|
|
5080
5080
|
control: e,
|
|
5081
5081
|
watch: t,
|
|
5082
5082
|
variables: r
|
|
@@ -5085,7 +5085,7 @@ function Op({
|
|
|
5085
5085
|
fields: i,
|
|
5086
5086
|
append: a,
|
|
5087
5087
|
remove: o
|
|
5088
|
-
} =
|
|
5088
|
+
} = Ve({
|
|
5089
5089
|
control: e,
|
|
5090
5090
|
name: "reference_lines"
|
|
5091
5091
|
}), l = t("reference_lines"), s = i.map((h, g) => ({
|
|
@@ -5125,12 +5125,12 @@ function Op({
|
|
|
5125
5125
|
}, children: [
|
|
5126
5126
|
/* @__PURE__ */ u(b.List, { children: [
|
|
5127
5127
|
s.map((h, g) => /* @__PURE__ */ n(b.Tab, { value: g.toString(), children: g + 1 }, g)),
|
|
5128
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
5128
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
5129
5129
|
] }),
|
|
5130
5130
|
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: g.toString(), children: /* @__PURE__ */ n(Ep, { control: e, index: g, remove: o, watch: t, variableOptions: d, yAxisOptions: m }) }, g))
|
|
5131
5131
|
] });
|
|
5132
5132
|
}
|
|
5133
|
-
const
|
|
5133
|
+
const Op = [{
|
|
5134
5134
|
label: "Linear",
|
|
5135
5135
|
value: "linear"
|
|
5136
5136
|
}, {
|
|
@@ -5201,7 +5201,7 @@ function Pp({
|
|
|
5201
5201
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
5202
5202
|
/* @__PURE__ */ n(x, { name: `regressions.${r}.transform.config.method`, control: e, render: ({
|
|
5203
5203
|
field: s
|
|
5204
|
-
}) => /* @__PURE__ */ n(E, { label: "Method", data:
|
|
5204
|
+
}) => /* @__PURE__ */ n(E, { label: "Method", data: Op, sx: {
|
|
5205
5205
|
flex: 1
|
|
5206
5206
|
}, ...s }) }),
|
|
5207
5207
|
l === "polynomial" && /* @__PURE__ */ n(x, { name: `regressions.${r}.transform.config.order`, control: e, render: ({
|
|
@@ -5235,7 +5235,7 @@ function Pp({
|
|
|
5235
5235
|
}, children: "Delete this Regression Line" })
|
|
5236
5236
|
] }, r);
|
|
5237
5237
|
}
|
|
5238
|
-
function
|
|
5238
|
+
function Np({
|
|
5239
5239
|
control: e,
|
|
5240
5240
|
watch: t,
|
|
5241
5241
|
data: r
|
|
@@ -5244,7 +5244,7 @@ function Bp({
|
|
|
5244
5244
|
fields: i,
|
|
5245
5245
|
append: a,
|
|
5246
5246
|
remove: o
|
|
5247
|
-
} =
|
|
5247
|
+
} = Ve({
|
|
5248
5248
|
control: e,
|
|
5249
5249
|
name: "regressions"
|
|
5250
5250
|
}), l = t("regressions"), s = i.map((m, h) => ({
|
|
@@ -5288,7 +5288,7 @@ function Bp({
|
|
|
5288
5288
|
}, children: [
|
|
5289
5289
|
/* @__PURE__ */ u(b.List, { children: [
|
|
5290
5290
|
s.map((m, h) => /* @__PURE__ */ n(b.Tab, { value: h.toString(), children: h + 1 }, h)),
|
|
5291
|
-
/* @__PURE__ */ n(b.Tab, { onClick: p, value: "add", children: /* @__PURE__ */ n(
|
|
5291
|
+
/* @__PURE__ */ n(b.Tab, { onClick: p, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
5292
5292
|
] }),
|
|
5293
5293
|
s.map((m, h) => /* @__PURE__ */ n(b.Panel, { value: h.toString(), children: /* @__PURE__ */ n(Pp, { regressionItem: m, control: e, index: h, remove: o, yAxisOptions: d, data: r }, h) }, h))
|
|
5294
5294
|
] });
|
|
@@ -5303,7 +5303,7 @@ const ta = {
|
|
|
5303
5303
|
func_content: ["function getSize({ rowData, params, variables }, { lodash, interpolate }) {", " // your code goes here", " // return 10", "}"].join(`
|
|
5304
5304
|
`)
|
|
5305
5305
|
}
|
|
5306
|
-
},
|
|
5306
|
+
}, Bp = [{
|
|
5307
5307
|
label: "No gap between bars",
|
|
5308
5308
|
value: "0%"
|
|
5309
5309
|
}, {
|
|
@@ -5325,7 +5325,7 @@ function qp({
|
|
|
5325
5325
|
}, ...a }) }),
|
|
5326
5326
|
/* @__PURE__ */ n(x, { name: `series.${t}.barGap`, control: e, render: ({
|
|
5327
5327
|
field: a
|
|
5328
|
-
}) => /* @__PURE__ */ n(E, { label: "Bar Gap", data:
|
|
5328
|
+
}) => /* @__PURE__ */ n(E, { label: "Bar Gap", data: Bp, sx: {
|
|
5329
5329
|
flexGrow: 1
|
|
5330
5330
|
}, ...a }) })
|
|
5331
5331
|
] }),
|
|
@@ -5351,7 +5351,7 @@ function qp({
|
|
|
5351
5351
|
const Wp = ({
|
|
5352
5352
|
value: e,
|
|
5353
5353
|
onChange: t
|
|
5354
|
-
}) => /* @__PURE__ */ n(
|
|
5354
|
+
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
5355
5355
|
i && t(i);
|
|
5356
5356
|
}, theme: "vs-dark", options: {
|
|
5357
5357
|
minimap: {
|
|
@@ -5386,7 +5386,7 @@ const Wp = ({
|
|
|
5386
5386
|
p(ta.dynamic.func_content);
|
|
5387
5387
|
};
|
|
5388
5388
|
return /* @__PURE__ */ u(G, { children: [
|
|
5389
|
-
/* @__PURE__ */ n(
|
|
5389
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
5390
5390
|
width: "50%"
|
|
5391
5391
|
}, children: /* @__PURE__ */ n(I, { variant: "filled", mt: 24, onClick: a, sx: {
|
|
5392
5392
|
flexGrow: 0
|
|
@@ -5500,12 +5500,12 @@ function Xp({
|
|
|
5500
5500
|
/* @__PURE__ */ u(S, { children: [
|
|
5501
5501
|
/* @__PURE__ */ n(x, { name: `series.${t}.smooth`, control: e, render: ({
|
|
5502
5502
|
field: o
|
|
5503
|
-
}) => /* @__PURE__ */ n(
|
|
5503
|
+
}) => /* @__PURE__ */ n(V, { sx: {
|
|
5504
5504
|
flexGrow: 1
|
|
5505
5505
|
}, children: /* @__PURE__ */ n(Ye, { label: "Smooth Line", checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }) }),
|
|
5506
5506
|
/* @__PURE__ */ n(x, { name: `series.${t}.display_name_on_line`, control: e, render: ({
|
|
5507
5507
|
field: o
|
|
5508
|
-
}) => /* @__PURE__ */ n(
|
|
5508
|
+
}) => /* @__PURE__ */ n(V, { sx: {
|
|
5509
5509
|
flexGrow: 1
|
|
5510
5510
|
}, children: /* @__PURE__ */ n(Ye, { label: "Display Name on Line", checked: o.value ?? !1, onChange: (l) => o.onChange(l.currentTarget.checked) }) }) })
|
|
5511
5511
|
] })
|
|
@@ -5513,7 +5513,7 @@ function Xp({
|
|
|
5513
5513
|
/* @__PURE__ */ u(S, { children: [
|
|
5514
5514
|
/* @__PURE__ */ n(x, { name: `series.${t}.showSymbol`, control: e, render: ({
|
|
5515
5515
|
field: o
|
|
5516
|
-
}) => /* @__PURE__ */ n(
|
|
5516
|
+
}) => /* @__PURE__ */ n(V, { mt: 10, mb: -10, sx: {
|
|
5517
5517
|
flexGrow: 1
|
|
5518
5518
|
}, children: /* @__PURE__ */ n(Ye, { label: "Show Symbol on Line", checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }) }),
|
|
5519
5519
|
a && /* @__PURE__ */ n(x, { name: `series.${t}.symbolSize`, control: e, render: ({
|
|
@@ -5628,7 +5628,7 @@ function Jp({
|
|
|
5628
5628
|
}, ...s }) }),
|
|
5629
5629
|
/* @__PURE__ */ n(x, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
|
|
5630
5630
|
field: s
|
|
5631
|
-
}) => /* @__PURE__ */ n(yr, { label: "Aggregation on Value", value: s.value ??
|
|
5631
|
+
}) => /* @__PURE__ */ n(yr, { label: "Aggregation on Value", value: s.value ?? Bn, onChange: s.onChange, pt: 0 }) })
|
|
5632
5632
|
] }),
|
|
5633
5633
|
/* @__PURE__ */ n(v, { grow: !0, children: /* @__PURE__ */ n(x, { name: `series.${t}.group_by_key`, control: e, render: ({
|
|
5634
5634
|
field: s
|
|
@@ -5668,7 +5668,7 @@ function em({
|
|
|
5668
5668
|
fields: i,
|
|
5669
5669
|
append: a,
|
|
5670
5670
|
remove: o
|
|
5671
|
-
} =
|
|
5671
|
+
} = Ve({
|
|
5672
5672
|
control: e,
|
|
5673
5673
|
name: "series"
|
|
5674
5674
|
}), l = t("series"), s = i.map((m, h) => ({
|
|
@@ -5718,7 +5718,7 @@ function em({
|
|
|
5718
5718
|
}, children: [
|
|
5719
5719
|
/* @__PURE__ */ u(b.List, { children: [
|
|
5720
5720
|
s.map((m, h) => /* @__PURE__ */ n(b.Tab, { value: h.toString(), children: h + 1 }, m.id)),
|
|
5721
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
5721
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
5722
5722
|
] }),
|
|
5723
5723
|
s.map((m, h) => /* @__PURE__ */ n(b.Panel, { value: h.toString(), children: /* @__PURE__ */ n(Jp, { control: e, index: h, remove: o, seriesItem: m, yAxisOptions: p, data: r }, m.id) }, m.id))
|
|
5724
5724
|
] });
|
|
@@ -5777,7 +5777,7 @@ function nm({
|
|
|
5777
5777
|
] }),
|
|
5778
5778
|
/* @__PURE__ */ n(x, { name: "x_axis.axisLabel.overflow", control: t, render: ({
|
|
5779
5779
|
field: i
|
|
5780
|
-
}) => /* @__PURE__ */ n(
|
|
5780
|
+
}) => /* @__PURE__ */ n(Bt, { ...i }) })
|
|
5781
5781
|
] });
|
|
5782
5782
|
}
|
|
5783
5783
|
const rm = [{
|
|
@@ -5855,7 +5855,7 @@ function om({
|
|
|
5855
5855
|
fields: r,
|
|
5856
5856
|
append: i,
|
|
5857
5857
|
remove: a
|
|
5858
|
-
} =
|
|
5858
|
+
} = Ve({
|
|
5859
5859
|
control: e,
|
|
5860
5860
|
name: "y_axes"
|
|
5861
5861
|
}), o = t("y_axes"), l = r.map((c, d) => ({
|
|
@@ -5876,7 +5876,7 @@ function om({
|
|
|
5876
5876
|
}, children: [
|
|
5877
5877
|
/* @__PURE__ */ u(b.List, { children: [
|
|
5878
5878
|
l.map((c, d) => /* @__PURE__ */ n(b.Tab, { value: d.toString(), children: d + 1 }, d)),
|
|
5879
|
-
/* @__PURE__ */ n(b.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ n(
|
|
5879
|
+
/* @__PURE__ */ n(b.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
5880
5880
|
] }),
|
|
5881
5881
|
l.map((c, d) => /* @__PURE__ */ n(b.Panel, { value: d.toString(), children: /* @__PURE__ */ n(am, { control: e, index: d, remove: a }) }, d))
|
|
5882
5882
|
] });
|
|
@@ -5933,9 +5933,9 @@ function sm({
|
|
|
5933
5933
|
/* @__PURE__ */ n(b.Panel, { value: "X Axis", children: /* @__PURE__ */ n(nm, { control: l, watch: c, data: a }) }),
|
|
5934
5934
|
/* @__PURE__ */ n(b.Panel, { value: "Y Axes", children: /* @__PURE__ */ n(om, { control: l, watch: c }) }),
|
|
5935
5935
|
/* @__PURE__ */ n(b.Panel, { value: "Series", children: /* @__PURE__ */ n(em, { control: l, watch: c, data: a }) }),
|
|
5936
|
-
/* @__PURE__ */ n(b.Panel, { value: "Regression Lines", children: /* @__PURE__ */ n(
|
|
5936
|
+
/* @__PURE__ */ n(b.Panel, { value: "Regression Lines", children: /* @__PURE__ */ n(Np, { control: l, watch: c, data: a }) }),
|
|
5937
5937
|
/* @__PURE__ */ n(b.Panel, { value: "Stats", children: /* @__PURE__ */ n(tm, { control: l, watch: c, data: a }) }),
|
|
5938
|
-
/* @__PURE__ */ n(b.Panel, { value: "Reference Lines", children: /* @__PURE__ */ n(
|
|
5938
|
+
/* @__PURE__ */ n(b.Panel, { value: "Reference Lines", children: /* @__PURE__ */ n(Vp, { variables: i, control: l, watch: c }) }),
|
|
5939
5939
|
/* @__PURE__ */ n(b.Panel, { value: "Reference Areas", children: /* @__PURE__ */ n(Mp, { variables: i, control: l, watch: c }) }),
|
|
5940
5940
|
/* @__PURE__ */ n(b.Panel, { value: "Zooming", children: /* @__PURE__ */ n(x, { name: "dataZoom", control: l, render: ({
|
|
5941
5941
|
field: g
|
|
@@ -6033,7 +6033,7 @@ function pm(e) {
|
|
|
6033
6033
|
function mm(e) {
|
|
6034
6034
|
const t = e.series.map((r) => {
|
|
6035
6035
|
const {
|
|
6036
|
-
aggregation_on_group: i =
|
|
6036
|
+
aggregation_on_group: i = Bn
|
|
6037
6037
|
} = r;
|
|
6038
6038
|
return {
|
|
6039
6039
|
...r,
|
|
@@ -6048,7 +6048,7 @@ function mm(e) {
|
|
|
6048
6048
|
function gm(e) {
|
|
6049
6049
|
const t = e.series.map((r) => {
|
|
6050
6050
|
const {
|
|
6051
|
-
aggregation_on_value: i =
|
|
6051
|
+
aggregation_on_value: i = Bn
|
|
6052
6052
|
} = r;
|
|
6053
6053
|
return {
|
|
6054
6054
|
...r,
|
|
@@ -6443,7 +6443,7 @@ function Rm({
|
|
|
6443
6443
|
width: a,
|
|
6444
6444
|
height: o
|
|
6445
6445
|
} = e.viewport;
|
|
6446
|
-
return /* @__PURE__ */ n(
|
|
6446
|
+
return /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(Am, { width: a, height: o, data: i, conf: r }) });
|
|
6447
6447
|
}
|
|
6448
6448
|
const Em = [{
|
|
6449
6449
|
label: "Top",
|
|
@@ -6492,7 +6492,7 @@ const Em = [{
|
|
|
6492
6492
|
value: t,
|
|
6493
6493
|
onChange: r,
|
|
6494
6494
|
options: i = Em
|
|
6495
|
-
}, a) => /* @__PURE__ */ n(E, { ref: a, label: e, data: i, value: t, onChange: r })),
|
|
6495
|
+
}, a) => /* @__PURE__ */ n(E, { ref: a, label: e, data: i, value: t, onChange: r })), Vm = [{
|
|
6496
6496
|
label: "Ascending",
|
|
6497
6497
|
value: "ascending"
|
|
6498
6498
|
}, {
|
|
@@ -6501,7 +6501,7 @@ const Em = [{
|
|
|
6501
6501
|
}, {
|
|
6502
6502
|
label: "Use original data order",
|
|
6503
6503
|
value: "0"
|
|
6504
|
-
}],
|
|
6504
|
+
}], Om = [{
|
|
6505
6505
|
label: "Left",
|
|
6506
6506
|
value: "left"
|
|
6507
6507
|
}, {
|
|
@@ -6543,7 +6543,7 @@ const Em = [{
|
|
|
6543
6543
|
label: "Right",
|
|
6544
6544
|
value: "right"
|
|
6545
6545
|
}]
|
|
6546
|
-
},
|
|
6546
|
+
}, Nm = ({
|
|
6547
6547
|
item: e,
|
|
6548
6548
|
control: t,
|
|
6549
6549
|
data: r,
|
|
@@ -6575,7 +6575,7 @@ const Em = [{
|
|
|
6575
6575
|
width: "100%"
|
|
6576
6576
|
}, children: [
|
|
6577
6577
|
/* @__PURE__ */ n(C, { children: "Min Value" }),
|
|
6578
|
-
/* @__PURE__ */ n(Ee, { label: "Check to enable specific min value", children: /* @__PURE__ */ n(
|
|
6578
|
+
/* @__PURE__ */ n(Ee, { label: "Check to enable specific min value", children: /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(x, { name: `series.${i}.min.enable_value`, control: t, render: ({
|
|
6579
6579
|
field: d
|
|
6580
6580
|
}) => /* @__PURE__ */ n(ve, { size: "xs", checked: d.value, onChange: (p) => d.onChange(p.currentTarget.checked) }) }) }) })
|
|
6581
6581
|
] }), ...c }) }),
|
|
@@ -6592,7 +6592,7 @@ const Em = [{
|
|
|
6592
6592
|
width: "100%"
|
|
6593
6593
|
}, children: [
|
|
6594
6594
|
/* @__PURE__ */ n(C, { children: "Max Value" }),
|
|
6595
|
-
/* @__PURE__ */ n(Ee, { label: "Check to enable specific max value", children: /* @__PURE__ */ n(
|
|
6595
|
+
/* @__PURE__ */ n(Ee, { label: "Check to enable specific max value", children: /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(x, { name: `series.${i}.max.enable_value`, control: t, render: ({
|
|
6596
6596
|
field: d
|
|
6597
6597
|
}) => /* @__PURE__ */ n(ve, { size: "xs", checked: d.value, onChange: (p) => d.onChange(p.currentTarget.checked) }) }) }) })
|
|
6598
6598
|
] }), ...c }) }),
|
|
@@ -6606,12 +6606,12 @@ const Em = [{
|
|
|
6606
6606
|
}) => /* @__PURE__ */ n(E, { label: "Orientation", data: Fm, ...c }) }),
|
|
6607
6607
|
/* @__PURE__ */ n(x, { name: `series.${i}.sort`, control: t, render: ({
|
|
6608
6608
|
field: c
|
|
6609
|
-
}) => /* @__PURE__ */ n(E, { label: "Sort", data:
|
|
6609
|
+
}) => /* @__PURE__ */ n(E, { label: "Sort", data: Vm, ...c }) })
|
|
6610
6610
|
] }),
|
|
6611
6611
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
6612
6612
|
/* @__PURE__ */ n(x, { name: `series.${i}.funnelAlign`, control: t, render: ({
|
|
6613
6613
|
field: c
|
|
6614
|
-
}) => /* @__PURE__ */ n(E, { label: "Align", disabled: s === "horizontal", data:
|
|
6614
|
+
}) => /* @__PURE__ */ n(E, { label: "Align", disabled: s === "horizontal", data: Om, ...c }) }),
|
|
6615
6615
|
/* @__PURE__ */ n(x, { name: `series.${i}.gap`, control: t, render: ({
|
|
6616
6616
|
field: c
|
|
6617
6617
|
}) => /* @__PURE__ */ n(re, { placeholder: "0, 5, 10...", label: "Gap", ...c }) })
|
|
@@ -6621,13 +6621,13 @@ const Em = [{
|
|
|
6621
6621
|
/* @__PURE__ */ n(x, { name: `series.${i}.axisLabel.position`, control: t, render: ({
|
|
6622
6622
|
field: c
|
|
6623
6623
|
}) => /* @__PURE__ */ n(ra, { label: "Position", options: Pm[s], ...c }) }),
|
|
6624
|
-
/* @__PURE__ */ n(
|
|
6624
|
+
/* @__PURE__ */ n(V, {})
|
|
6625
6625
|
] }),
|
|
6626
6626
|
/* @__PURE__ */ n(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ n(x, { name: `series.${i}.axisLabel.overflow`, control: t, render: ({
|
|
6627
6627
|
field: c
|
|
6628
|
-
}) => /* @__PURE__ */ n(
|
|
6628
|
+
}) => /* @__PURE__ */ n(Bt, { ...c }) }) })
|
|
6629
6629
|
] });
|
|
6630
|
-
},
|
|
6630
|
+
}, Bm = ({
|
|
6631
6631
|
control: e,
|
|
6632
6632
|
watch: t,
|
|
6633
6633
|
data: r
|
|
@@ -6636,7 +6636,7 @@ const Em = [{
|
|
|
6636
6636
|
fields: i,
|
|
6637
6637
|
append: a,
|
|
6638
6638
|
remove: o
|
|
6639
|
-
} =
|
|
6639
|
+
} = Ve({
|
|
6640
6640
|
control: e,
|
|
6641
6641
|
name: "series"
|
|
6642
6642
|
}), l = t("series"), s = i.map((m, h) => ({
|
|
@@ -6655,7 +6655,7 @@ const Em = [{
|
|
|
6655
6655
|
s.map((m, h) => /* @__PURE__ */ n(b.Tab, { value: m.id, children: m.name }, m.id)),
|
|
6656
6656
|
/* @__PURE__ */ n(b.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ n(Ee, { label: "TODO", children: /* @__PURE__ */ n(Ut, { children: /* @__PURE__ */ n(Pt, { size: 18, color: "#228be6" }) }) }) })
|
|
6657
6657
|
] }),
|
|
6658
|
-
s.map((m, h) => /* @__PURE__ */ n(b.Panel, { value: m.id, children: /* @__PURE__ */ n(
|
|
6658
|
+
s.map((m, h) => /* @__PURE__ */ n(b.Panel, { value: m.id, children: /* @__PURE__ */ n(Nm, { item: m, control: e, index: h, remove: o, data: r }) }, m.id))
|
|
6659
6659
|
] });
|
|
6660
6660
|
};
|
|
6661
6661
|
function qm({
|
|
@@ -6685,7 +6685,7 @@ function qm({
|
|
|
6685
6685
|
/* @__PURE__ */ n(C, { children: "Funnel Config" }),
|
|
6686
6686
|
/* @__PURE__ */ n(H, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !m, children: /* @__PURE__ */ n(be, { size: 20 }) })
|
|
6687
6687
|
] }),
|
|
6688
|
-
/* @__PURE__ */ n(
|
|
6688
|
+
/* @__PURE__ */ n(Bm, { control: o, watch: s, data: i })
|
|
6689
6689
|
] }) });
|
|
6690
6690
|
}
|
|
6691
6691
|
function Wm(e) {
|
|
@@ -6834,14 +6834,14 @@ function Zm({
|
|
|
6834
6834
|
value: t.x_axis(s, l),
|
|
6835
6835
|
style: {
|
|
6836
6836
|
label: "",
|
|
6837
|
-
value:
|
|
6837
|
+
value: Vt(e.x_axis.axisLabel.overflow.in_tooltip)
|
|
6838
6838
|
}
|
|
6839
6839
|
}, m = {
|
|
6840
6840
|
label: e.y_axis.name ? e.y_axis.name : "Y Axis",
|
|
6841
6841
|
value: t.y_axis(c, l),
|
|
6842
6842
|
style: {
|
|
6843
6843
|
label: "",
|
|
6844
|
-
value:
|
|
6844
|
+
value: Vt(e.y_axis.axisLabel.overflow.in_tooltip)
|
|
6845
6845
|
}
|
|
6846
6846
|
}, h = {
|
|
6847
6847
|
label: e.heat_block.name,
|
|
@@ -7073,7 +7073,7 @@ const Js = {
|
|
|
7073
7073
|
metrics: []
|
|
7074
7074
|
}
|
|
7075
7075
|
};
|
|
7076
|
-
fe.use([Lt, Zt, Kt,
|
|
7076
|
+
fe.use([Lt, Zt, Kt, Ni, at, ot, st, hr, Je]);
|
|
7077
7077
|
function og({
|
|
7078
7078
|
conf: e,
|
|
7079
7079
|
data: t,
|
|
@@ -7118,7 +7118,7 @@ function sg({
|
|
|
7118
7118
|
width: s,
|
|
7119
7119
|
height: c
|
|
7120
7120
|
} = e.viewport;
|
|
7121
|
-
return /* @__PURE__ */ n(
|
|
7121
|
+
return /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(og, { variables: a, width: s, height: c, data: l, conf: o, interactionManager: r }) });
|
|
7122
7122
|
}
|
|
7123
7123
|
function lg({
|
|
7124
7124
|
data: e,
|
|
@@ -7184,7 +7184,7 @@ const cg = ({
|
|
|
7184
7184
|
fields: i,
|
|
7185
7185
|
append: a,
|
|
7186
7186
|
remove: o
|
|
7187
|
-
} =
|
|
7187
|
+
} = Ve({
|
|
7188
7188
|
control: e,
|
|
7189
7189
|
name: "tooltip.metrics"
|
|
7190
7190
|
}), l = t("tooltip.metrics"), s = i.map((h, g) => ({
|
|
@@ -7218,7 +7218,7 @@ const cg = ({
|
|
|
7218
7218
|
}, children: [
|
|
7219
7219
|
/* @__PURE__ */ u(b.List, { children: [
|
|
7220
7220
|
s.map((h, g) => /* @__PURE__ */ n(b.Tab, { value: h.id, children: h.name ? h.name : g }, h.id)),
|
|
7221
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
7221
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
7222
7222
|
] }),
|
|
7223
7223
|
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: h.id, children: /* @__PURE__ */ n(cg, { control: e, index: g, remove: o, data: r }, h.id) }, h.id))
|
|
7224
7224
|
] })
|
|
@@ -7235,11 +7235,11 @@ const hg = ({
|
|
|
7235
7235
|
disabled: e,
|
|
7236
7236
|
value: t,
|
|
7237
7237
|
onChange: r
|
|
7238
|
-
}) => /* @__PURE__ */ u(
|
|
7238
|
+
}) => /* @__PURE__ */ u(V, { sx: {
|
|
7239
7239
|
position: "relative"
|
|
7240
7240
|
}, children: [
|
|
7241
|
-
e && /* @__PURE__ */ n(
|
|
7242
|
-
/* @__PURE__ */ n(
|
|
7241
|
+
e && /* @__PURE__ */ n(Ot, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
7242
|
+
/* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
7243
7243
|
a && r(a);
|
|
7244
7244
|
}, theme: "vs-dark", options: {
|
|
7245
7245
|
minimap: {
|
|
@@ -7325,7 +7325,7 @@ function mg({
|
|
|
7325
7325
|
/* @__PURE__ */ n(A, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
|
|
7326
7326
|
/* @__PURE__ */ n(x, { name: "x_axis.axisLabel.overflow", control: t, render: ({
|
|
7327
7327
|
field: i
|
|
7328
|
-
}) => /* @__PURE__ */ n(
|
|
7328
|
+
}) => /* @__PURE__ */ n(Bt, { ...i }) }),
|
|
7329
7329
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
7330
7330
|
/* @__PURE__ */ n(x, { name: "x_axis.axisLabel.rotate", control: t, render: ({
|
|
7331
7331
|
field: i
|
|
@@ -7382,7 +7382,7 @@ function fg({
|
|
|
7382
7382
|
/* @__PURE__ */ n(A, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
|
|
7383
7383
|
/* @__PURE__ */ n(x, { name: "y_axis.axisLabel.overflow", control: e, render: ({
|
|
7384
7384
|
field: i
|
|
7385
|
-
}) => /* @__PURE__ */ n(
|
|
7385
|
+
}) => /* @__PURE__ */ n(Bt, { ...i }) }),
|
|
7386
7386
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
7387
7387
|
/* @__PURE__ */ n(x, { name: "y_axis.axisLabel.rotate", control: e, render: ({
|
|
7388
7388
|
field: i
|
|
@@ -7673,7 +7673,7 @@ const Dg = (e, t) => (r) => {
|
|
|
7673
7673
|
<td style="text-align: left; padding: 0 1em;">${h(m)}</td>
|
|
7674
7674
|
</tr>
|
|
7675
7675
|
`;
|
|
7676
|
-
}), o =
|
|
7676
|
+
}), o = Vt(e.x_axis.axisLabel.overflow.in_tooltip), l = i[0].name;
|
|
7677
7677
|
return `
|
|
7678
7678
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
7679
7679
|
<div style="${o}">${l}</div>
|
|
@@ -7858,7 +7858,7 @@ const Eg = [{
|
|
|
7858
7858
|
label: "right",
|
|
7859
7859
|
value: "right"
|
|
7860
7860
|
}];
|
|
7861
|
-
function
|
|
7861
|
+
function Vg({
|
|
7862
7862
|
data: e,
|
|
7863
7863
|
control: t,
|
|
7864
7864
|
watch: r
|
|
@@ -7884,7 +7884,7 @@ function Og({
|
|
|
7884
7884
|
] })
|
|
7885
7885
|
] });
|
|
7886
7886
|
}
|
|
7887
|
-
const
|
|
7887
|
+
const Og = `
|
|
7888
7888
|
{
|
|
7889
7889
|
// 80-20 line stuff
|
|
7890
7890
|
percentage: {
|
|
@@ -7911,7 +7911,7 @@ const Vg = `
|
|
|
7911
7911
|
const [e, t] = U(!1);
|
|
7912
7912
|
return /* @__PURE__ */ u(G, { children: [
|
|
7913
7913
|
/* @__PURE__ */ n(I, { variant: "subtle", compact: !0, onClick: () => t((r) => !r), children: e ? "Close" : "Click to see params for Label Template" }),
|
|
7914
|
-
/* @__PURE__ */ n(Ri, { in: e, children: /* @__PURE__ */ n(cn, { language: "typescript", noCopy: !0, colorScheme: "dark", children:
|
|
7914
|
+
/* @__PURE__ */ n(Ri, { in: e, children: /* @__PURE__ */ n(cn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: Og }) })
|
|
7915
7915
|
] });
|
|
7916
7916
|
};
|
|
7917
7917
|
function Pg({
|
|
@@ -7936,7 +7936,7 @@ function Pg({
|
|
|
7936
7936
|
] })
|
|
7937
7937
|
] });
|
|
7938
7938
|
}
|
|
7939
|
-
function
|
|
7939
|
+
function Ng({
|
|
7940
7940
|
data: e,
|
|
7941
7941
|
control: t,
|
|
7942
7942
|
watch: r
|
|
@@ -7973,10 +7973,10 @@ function Bg({
|
|
|
7973
7973
|
] }),
|
|
7974
7974
|
/* @__PURE__ */ n(x, { name: "x_axis.axisLabel.overflow", control: t, render: ({
|
|
7975
7975
|
field: i
|
|
7976
|
-
}) => /* @__PURE__ */ n(
|
|
7976
|
+
}) => /* @__PURE__ */ n(Bt, { ...i }) })
|
|
7977
7977
|
] });
|
|
7978
7978
|
}
|
|
7979
|
-
function
|
|
7979
|
+
function Bg({
|
|
7980
7980
|
data: e,
|
|
7981
7981
|
control: t,
|
|
7982
7982
|
watch: r
|
|
@@ -8032,10 +8032,10 @@ function qg({
|
|
|
8032
8032
|
/* @__PURE__ */ n(b.Tab, { value: "80-20 Line", children: "80-20 Line" }),
|
|
8033
8033
|
/* @__PURE__ */ n(b.Tab, { value: "Zooming", children: "Zooming" })
|
|
8034
8034
|
] }),
|
|
8035
|
-
/* @__PURE__ */ n(b.Panel, { value: "X Axis", children: /* @__PURE__ */ n(
|
|
8036
|
-
/* @__PURE__ */ n(b.Panel, { value: "Y Axis", children: /* @__PURE__ */ n(
|
|
8035
|
+
/* @__PURE__ */ n(b.Panel, { value: "X Axis", children: /* @__PURE__ */ n(Ng, { control: o, watch: s, data: i }) }),
|
|
8036
|
+
/* @__PURE__ */ n(b.Panel, { value: "Y Axis", children: /* @__PURE__ */ n(Bg, { control: o, watch: s, data: i }) }),
|
|
8037
8037
|
/* @__PURE__ */ n(b.Panel, { value: "Bar", children: /* @__PURE__ */ n(Rg, { control: o, watch: s, data: i }) }),
|
|
8038
|
-
/* @__PURE__ */ n(b.Panel, { value: "Line", children: /* @__PURE__ */ n(
|
|
8038
|
+
/* @__PURE__ */ n(b.Panel, { value: "Line", children: /* @__PURE__ */ n(Vg, { control: o, watch: s, data: i }) }),
|
|
8039
8039
|
/* @__PURE__ */ n(b.Panel, { value: "80-20 Line", children: /* @__PURE__ */ n(Pg, { control: o, watch: s, data: i }) }),
|
|
8040
8040
|
/* @__PURE__ */ n(b.Panel, { value: "Zooming", children: /* @__PURE__ */ n(x, { name: "dataZoom", control: o, render: ({
|
|
8041
8041
|
field: h
|
|
@@ -8317,7 +8317,7 @@ function ef(e, t, r) {
|
|
|
8317
8317
|
},
|
|
8318
8318
|
labelLayout: function(c) {
|
|
8319
8319
|
const d = c.labelRect.x < r / 2, p = c.labelLinePoints;
|
|
8320
|
-
return
|
|
8320
|
+
return Oi(p, [2, 0], d ? c.labelRect.x : c.labelRect.x + c.labelRect.width), {
|
|
8321
8321
|
labelLinePoints: p
|
|
8322
8322
|
};
|
|
8323
8323
|
},
|
|
@@ -8607,7 +8607,7 @@ function pf(e, t) {
|
|
|
8607
8607
|
};
|
|
8608
8608
|
return k.merge({}, hf, o);
|
|
8609
8609
|
}
|
|
8610
|
-
fe.use([
|
|
8610
|
+
fe.use([Nd, at, ot, st, Je]);
|
|
8611
8611
|
function mf({
|
|
8612
8612
|
conf: e,
|
|
8613
8613
|
data: t,
|
|
@@ -8649,7 +8649,7 @@ function gf({
|
|
|
8649
8649
|
width: s,
|
|
8650
8650
|
height: c
|
|
8651
8651
|
} = e.viewport;
|
|
8652
|
-
return !s || !c || !o || Fi(o == null ? void 0 : o.dimensions) ? null : /* @__PURE__ */ n(
|
|
8652
|
+
return !s || !c || !o || Fi(o == null ? void 0 : o.dimensions) ? null : /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(mf, { variables: a, width: s, height: c, data: l, conf: o, interactionManager: r }) });
|
|
8653
8653
|
}
|
|
8654
8654
|
function ff({
|
|
8655
8655
|
control: e,
|
|
@@ -8700,7 +8700,7 @@ function bf({
|
|
|
8700
8700
|
fields: i,
|
|
8701
8701
|
append: a,
|
|
8702
8702
|
remove: o
|
|
8703
|
-
} =
|
|
8703
|
+
} = Ve({
|
|
8704
8704
|
control: e,
|
|
8705
8705
|
name: "dimensions"
|
|
8706
8706
|
}), l = t("dimensions"), s = i.map((g, w) => ({
|
|
@@ -9190,7 +9190,7 @@ function Ef(e, t, r, i) {
|
|
|
9190
9190
|
adjustedRSquared: Sr(c, t.length, 1)
|
|
9191
9191
|
};
|
|
9192
9192
|
}
|
|
9193
|
-
function
|
|
9193
|
+
function Vf(e, t, r, i) {
|
|
9194
9194
|
const {
|
|
9195
9195
|
x_axis: a,
|
|
9196
9196
|
y_axis: o,
|
|
@@ -9210,14 +9210,14 @@ function so(e, t, r) {
|
|
|
9210
9210
|
regression: i,
|
|
9211
9211
|
x_axis: a
|
|
9212
9212
|
} = r, o = t.map((l) => [l[a.data_key], l[i.y_axis_data_key]]);
|
|
9213
|
-
return i.transform.config.method === "linear" ? Af(e, t, o, r) : i.transform.config.method === "exponential" ? Rf(e, t, o, r) : i.transform.config.method === "logarithmic" ? Ef(e, t, o, r) : i.transform.config.method === "polynomial" ?
|
|
9213
|
+
return i.transform.config.method === "linear" ? Af(e, t, o, r) : i.transform.config.method === "exponential" ? Rf(e, t, o, r) : i.transform.config.method === "logarithmic" ? Ef(e, t, o, r) : i.transform.config.method === "polynomial" ? Vf(e, t, o, r) : {
|
|
9214
9214
|
name: e,
|
|
9215
9215
|
expression: "",
|
|
9216
9216
|
rSquared: 0,
|
|
9217
9217
|
adjustedRSquared: 0
|
|
9218
9218
|
};
|
|
9219
9219
|
}
|
|
9220
|
-
function
|
|
9220
|
+
function Of(e, t) {
|
|
9221
9221
|
if (!t)
|
|
9222
9222
|
return [{
|
|
9223
9223
|
name: "",
|
|
@@ -9274,13 +9274,13 @@ function Pf({
|
|
|
9274
9274
|
data: t
|
|
9275
9275
|
}) {
|
|
9276
9276
|
var i;
|
|
9277
|
-
const r = L(() =>
|
|
9277
|
+
const r = L(() => Of(t, e), [e, t]);
|
|
9278
9278
|
return e.regression.group_by_key ? (console.log(r), /* @__PURE__ */ u(b, { defaultValue: (i = r[0]) == null ? void 0 : i.name, color: "gray", children: [
|
|
9279
9279
|
/* @__PURE__ */ n(b.List, { grow: !0, children: r.map((a) => /* @__PURE__ */ n(b.Tab, { value: a.name, children: a.name }, a.name)) }),
|
|
9280
9280
|
r.map((a) => /* @__PURE__ */ n(b.Panel, { value: a.name, children: /* @__PURE__ */ n(lo, { desc: a }) }, a.name))
|
|
9281
9281
|
] })) : /* @__PURE__ */ n(lo, { desc: r[0] });
|
|
9282
9282
|
}
|
|
9283
|
-
function
|
|
9283
|
+
function Nf({
|
|
9284
9284
|
conf: e,
|
|
9285
9285
|
data: t
|
|
9286
9286
|
}) {
|
|
@@ -9289,14 +9289,14 @@ function Bf({
|
|
|
9289
9289
|
/* @__PURE__ */ n(Tt.Dropdown, { children: /* @__PURE__ */ n(Qe, { children: /* @__PURE__ */ n(Pf, { conf: e, data: t }) }) })
|
|
9290
9290
|
] });
|
|
9291
9291
|
}
|
|
9292
|
-
function
|
|
9292
|
+
function Bf(e) {
|
|
9293
9293
|
return /* @__PURE__ */ n(v, { position: "apart", sx: {
|
|
9294
9294
|
position: "absolute",
|
|
9295
9295
|
top: 0,
|
|
9296
9296
|
left: 0,
|
|
9297
9297
|
height: "22px",
|
|
9298
9298
|
zIndex: 1
|
|
9299
|
-
}, children: /* @__PURE__ */ n(
|
|
9299
|
+
}, children: /* @__PURE__ */ n(Nf, { ...e }) });
|
|
9300
9300
|
}
|
|
9301
9301
|
const kr = {
|
|
9302
9302
|
enabled: !1,
|
|
@@ -9360,10 +9360,10 @@ function qf({
|
|
|
9360
9360
|
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), o = L(() => Mf(_e({}, t, sa), a), [t, a]), l = Do(null), s = (c) => {
|
|
9361
9361
|
l.current = c;
|
|
9362
9362
|
};
|
|
9363
|
-
return !r || !i || !t ? null : /* @__PURE__ */ u(
|
|
9363
|
+
return !r || !i || !t ? null : /* @__PURE__ */ u(V, { sx: {
|
|
9364
9364
|
position: "relative"
|
|
9365
9365
|
}, children: [
|
|
9366
|
-
/* @__PURE__ */ n(
|
|
9366
|
+
/* @__PURE__ */ n(Bf, { conf: t, data: a }),
|
|
9367
9367
|
/* @__PURE__ */ n(et, { echarts: fe, onChartReady: s, option: o, style: {
|
|
9368
9368
|
width: r,
|
|
9369
9369
|
height: i
|
|
@@ -9425,11 +9425,11 @@ const Gf = ({
|
|
|
9425
9425
|
disabled: e,
|
|
9426
9426
|
value: t,
|
|
9427
9427
|
onChange: r
|
|
9428
|
-
}) => /* @__PURE__ */ u(
|
|
9428
|
+
}) => /* @__PURE__ */ u(V, { sx: {
|
|
9429
9429
|
position: "relative"
|
|
9430
9430
|
}, children: [
|
|
9431
|
-
e && /* @__PURE__ */ n(
|
|
9432
|
-
/* @__PURE__ */ n(
|
|
9431
|
+
e && /* @__PURE__ */ n(Ot, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
9432
|
+
/* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
9433
9433
|
a && r(a);
|
|
9434
9434
|
}, theme: "vs-dark", options: {
|
|
9435
9435
|
minimap: {
|
|
@@ -9532,7 +9532,7 @@ function Yf({
|
|
|
9532
9532
|
] }),
|
|
9533
9533
|
/* @__PURE__ */ n(x, { name: "x_axis.axisLabel.overflow", control: t, render: ({
|
|
9534
9534
|
field: i
|
|
9535
|
-
}) => /* @__PURE__ */ n(
|
|
9535
|
+
}) => /* @__PURE__ */ n(Bt, { ...i }) })
|
|
9536
9536
|
] });
|
|
9537
9537
|
}
|
|
9538
9538
|
function Hf({
|
|
@@ -9980,7 +9980,7 @@ function sb({
|
|
|
9980
9980
|
}
|
|
9981
9981
|
const {
|
|
9982
9982
|
func_content: o
|
|
9983
|
-
} = t, l =
|
|
9983
|
+
} = t, l = Oo(r, i);
|
|
9984
9984
|
return (s, c) => {
|
|
9985
9985
|
let d;
|
|
9986
9986
|
c.name ? d = l[c.name] : d = r[c.dataIndex];
|
|
@@ -10151,7 +10151,7 @@ function mb(e, t) {
|
|
|
10151
10151
|
const o = t[0] ?? t.default, l = Array.isArray(a) ? a : [a];
|
|
10152
10152
|
if (l.length === 0)
|
|
10153
10153
|
return "";
|
|
10154
|
-
const s = hb(l, e), c =
|
|
10154
|
+
const s = hb(l, e), c = Vt(e.scatter.label_overflow.tooltip), d = l.map(
|
|
10155
10155
|
// @ts-expect-error type of value
|
|
10156
10156
|
({
|
|
10157
10157
|
value: g
|
|
@@ -10365,7 +10365,7 @@ function wb({
|
|
|
10365
10365
|
bottom: Rn(y.bottom, a, l)
|
|
10366
10366
|
};
|
|
10367
10367
|
}, [o, l]), w = Math.max(0, c - p - h);
|
|
10368
|
-
return /* @__PURE__ */ u(
|
|
10368
|
+
return /* @__PURE__ */ u(V, { children: [
|
|
10369
10369
|
/* @__PURE__ */ n(C, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
10370
10370
|
display: uo(o.stats.templates.top) ? "block" : "none"
|
|
10371
10371
|
}, children: Object.values(g.top).map((y) => y) }),
|
|
@@ -10457,7 +10457,7 @@ function Sb({
|
|
|
10457
10457
|
fields: i,
|
|
10458
10458
|
append: a,
|
|
10459
10459
|
remove: o
|
|
10460
|
-
} =
|
|
10460
|
+
} = Ve({
|
|
10461
10461
|
control: e,
|
|
10462
10462
|
name: "reference_areas"
|
|
10463
10463
|
}), l = t("reference_areas"), s = i.map((h, g) => ({
|
|
@@ -10486,7 +10486,7 @@ function Sb({
|
|
|
10486
10486
|
}, children: [
|
|
10487
10487
|
/* @__PURE__ */ u(b.List, { children: [
|
|
10488
10488
|
s.map((h, g) => /* @__PURE__ */ n(b.Tab, { value: g.toString(), children: g + 1 }, g)),
|
|
10489
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
10489
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
10490
10490
|
] }),
|
|
10491
10491
|
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: g.toString(), children: /* @__PURE__ */ n(x, { name: `reference_areas.${g}`, control: e, render: ({
|
|
10492
10492
|
field: w
|
|
@@ -10601,7 +10601,7 @@ function Lb({
|
|
|
10601
10601
|
fields: i,
|
|
10602
10602
|
append: a,
|
|
10603
10603
|
remove: o
|
|
10604
|
-
} =
|
|
10604
|
+
} = Ve({
|
|
10605
10605
|
control: e,
|
|
10606
10606
|
name: "reference_lines"
|
|
10607
10607
|
}), l = t("reference_lines"), s = i.map((h, g) => ({
|
|
@@ -10642,7 +10642,7 @@ function Lb({
|
|
|
10642
10642
|
}, children: [
|
|
10643
10643
|
/* @__PURE__ */ u(b.List, { children: [
|
|
10644
10644
|
s.map((h, g) => /* @__PURE__ */ n(b.Tab, { value: g.toString(), children: g + 1 }, g)),
|
|
10645
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
10645
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
10646
10646
|
] }),
|
|
10647
10647
|
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: g.toString(), children: /* @__PURE__ */ n(Db, { control: e, index: g, remove: o, watch: t, variableOptions: d, yAxisOptions: m }) }, g))
|
|
10648
10648
|
] });
|
|
@@ -10650,7 +10650,7 @@ function Lb({
|
|
|
10650
10650
|
const Ib = ({
|
|
10651
10651
|
value: e,
|
|
10652
10652
|
onChange: t
|
|
10653
|
-
}) => /* @__PURE__ */ n(
|
|
10653
|
+
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
10654
10654
|
i && t(i);
|
|
10655
10655
|
}, theme: "vs-dark", options: {
|
|
10656
10656
|
minimap: {
|
|
@@ -10685,7 +10685,7 @@ const Ib = ({
|
|
|
10685
10685
|
p(Wn.dynamic.func_content);
|
|
10686
10686
|
};
|
|
10687
10687
|
return /* @__PURE__ */ u(G, { children: [
|
|
10688
|
-
/* @__PURE__ */ n(
|
|
10688
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
10689
10689
|
width: "50%"
|
|
10690
10690
|
}, children: /* @__PURE__ */ n(I, { variant: "filled", mt: 24, onClick: a, sx: {
|
|
10691
10691
|
flexGrow: 0
|
|
@@ -10762,10 +10762,10 @@ const Ib = ({
|
|
|
10762
10762
|
/* @__PURE__ */ n(nr, { sectionTitle: "Overflow on Chart", value: e.label, onChange: i }),
|
|
10763
10763
|
/* @__PURE__ */ n(nr, { sectionTitle: "Overflow in Tooltip", value: e.tooltip, onChange: a })
|
|
10764
10764
|
] });
|
|
10765
|
-
}),
|
|
10765
|
+
}), Vb = ({
|
|
10766
10766
|
value: e,
|
|
10767
10767
|
onChange: t
|
|
10768
|
-
}) => /* @__PURE__ */ n(
|
|
10768
|
+
}) => /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
10769
10769
|
i && t(i);
|
|
10770
10770
|
}, theme: "vs-dark", options: {
|
|
10771
10771
|
minimap: {
|
|
@@ -10781,7 +10781,7 @@ const Ib = ({
|
|
|
10781
10781
|
func_content: ["function getSize({ rowData, params, variables }, { lodash, interpolate }) {", " // your code goes here", " // return 10", "}"].join(`
|
|
10782
10782
|
`)
|
|
10783
10783
|
}
|
|
10784
|
-
},
|
|
10784
|
+
}, Ob = ({
|
|
10785
10785
|
value: e,
|
|
10786
10786
|
onChange: t,
|
|
10787
10787
|
data: r
|
|
@@ -10810,14 +10810,14 @@ const Ib = ({
|
|
|
10810
10810
|
p(pl.dynamic.func_content);
|
|
10811
10811
|
};
|
|
10812
10812
|
return /* @__PURE__ */ u(G, { children: [
|
|
10813
|
-
/* @__PURE__ */ n(
|
|
10813
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
10814
10814
|
width: "50%"
|
|
10815
10815
|
}, children: /* @__PURE__ */ n(I, { variant: "filled", mt: 24, onClick: a, sx: {
|
|
10816
10816
|
flexGrow: 0
|
|
10817
10817
|
}, children: "Setup" }) }),
|
|
10818
10818
|
/* @__PURE__ */ n(Te, { size: 800, title: "Setup dynamic size", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(S, { children: [
|
|
10819
10819
|
/* @__PURE__ */ n(A, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
10820
|
-
/* @__PURE__ */ n(
|
|
10820
|
+
/* @__PURE__ */ n(Vb, { value: l.func_content, onChange: p }),
|
|
10821
10821
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
10822
10822
|
/* @__PURE__ */ n(I, { onClick: m, color: "red", leftIcon: /* @__PURE__ */ n(xt, { size: 20 }), children: "Rest" }),
|
|
10823
10823
|
/* @__PURE__ */ u(v, { position: "right", children: [
|
|
@@ -10831,7 +10831,7 @@ const Ib = ({
|
|
|
10831
10831
|
value: e,
|
|
10832
10832
|
onChange: t,
|
|
10833
10833
|
data: r
|
|
10834
|
-
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ n(
|
|
10834
|
+
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ n(Ob, { value: e, onChange: t, data: r }), Pb = ({
|
|
10835
10835
|
value: e,
|
|
10836
10836
|
onChange: t
|
|
10837
10837
|
}) => {
|
|
@@ -10844,13 +10844,13 @@ const Ib = ({
|
|
|
10844
10844
|
});
|
|
10845
10845
|
};
|
|
10846
10846
|
return /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n(re, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: r }) });
|
|
10847
|
-
},
|
|
10847
|
+
}, Nb = [{
|
|
10848
10848
|
label: "Static",
|
|
10849
10849
|
value: "static"
|
|
10850
10850
|
}, {
|
|
10851
10851
|
label: "Dynamic",
|
|
10852
10852
|
value: "dynamic"
|
|
10853
|
-
}],
|
|
10853
|
+
}], Bb = ke(({
|
|
10854
10854
|
label: e = "Size",
|
|
10855
10855
|
value: t,
|
|
10856
10856
|
onChange: r,
|
|
@@ -10862,7 +10862,7 @@ const Ib = ({
|
|
|
10862
10862
|
});
|
|
10863
10863
|
};
|
|
10864
10864
|
return /* @__PURE__ */ u(Yt, { cols: 2, children: [
|
|
10865
|
-
/* @__PURE__ */ n(E, { ref: a, label: e, data:
|
|
10865
|
+
/* @__PURE__ */ n(E, { ref: a, label: e, data: Nb, value: t.type, onChange: o, sx: {
|
|
10866
10866
|
flexGrow: 1
|
|
10867
10867
|
} }),
|
|
10868
10868
|
/* @__PURE__ */ n(Pb, { value: t, onChange: r }),
|
|
@@ -10932,7 +10932,7 @@ function Wb({
|
|
|
10932
10932
|
/* @__PURE__ */ n(A, { mb: -15, label: "Style", labelPosition: "center" }),
|
|
10933
10933
|
/* @__PURE__ */ n(x, { name: "scatter.symbolSize", control: t, render: ({
|
|
10934
10934
|
field: i
|
|
10935
|
-
}) => /* @__PURE__ */ n(
|
|
10935
|
+
}) => /* @__PURE__ */ n(Bb, { label: "Size", data: e, ...i }) }),
|
|
10936
10936
|
/* @__PURE__ */ n(x, { name: "scatter.color", control: t, render: ({
|
|
10937
10937
|
field: i
|
|
10938
10938
|
}) => /* @__PURE__ */ n(Rb, { data: e, ...i }) }),
|
|
@@ -10994,7 +10994,7 @@ const Gb = ({
|
|
|
10994
10994
|
fields: i,
|
|
10995
10995
|
append: a,
|
|
10996
10996
|
remove: o
|
|
10997
|
-
} =
|
|
10997
|
+
} = Ve({
|
|
10998
10998
|
control: e,
|
|
10999
10999
|
name: "tooltip.metrics"
|
|
11000
11000
|
}), l = t("tooltip.metrics"), s = i.map((h, g) => ({
|
|
@@ -11027,7 +11027,7 @@ const Gb = ({
|
|
|
11027
11027
|
}, children: [
|
|
11028
11028
|
/* @__PURE__ */ u(b.List, { children: [
|
|
11029
11029
|
s.map((h, g) => /* @__PURE__ */ n(b.Tab, { value: h.id, children: h.name ? h.name : g }, h.id)),
|
|
11030
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
11030
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
11031
11031
|
] }),
|
|
11032
11032
|
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: h.id, children: /* @__PURE__ */ n(Gb, { control: e, index: g, remove: o, data: r }, h.id) }, h.id))
|
|
11033
11033
|
] })
|
|
@@ -11058,11 +11058,11 @@ const Ub = ({
|
|
|
11058
11058
|
disabled: e,
|
|
11059
11059
|
value: t,
|
|
11060
11060
|
onChange: r
|
|
11061
|
-
}) => /* @__PURE__ */ u(
|
|
11061
|
+
}) => /* @__PURE__ */ u(V, { sx: {
|
|
11062
11062
|
position: "relative"
|
|
11063
11063
|
}, children: [
|
|
11064
|
-
e && /* @__PURE__ */ n(
|
|
11065
|
-
/* @__PURE__ */ n(
|
|
11064
|
+
e && /* @__PURE__ */ n(Ot, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
11065
|
+
/* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
11066
11066
|
a && r(a);
|
|
11067
11067
|
}, theme: "vs-dark", options: {
|
|
11068
11068
|
minimap: {
|
|
@@ -11231,7 +11231,7 @@ function tx({
|
|
|
11231
11231
|
fields: r,
|
|
11232
11232
|
append: i,
|
|
11233
11233
|
remove: a
|
|
11234
|
-
} =
|
|
11234
|
+
} = Ve({
|
|
11235
11235
|
control: e,
|
|
11236
11236
|
name: "y_axes"
|
|
11237
11237
|
}), o = t("y_axes"), l = r.map((c, d) => ({
|
|
@@ -11252,7 +11252,7 @@ function tx({
|
|
|
11252
11252
|
}, children: [
|
|
11253
11253
|
/* @__PURE__ */ u(b.List, { children: [
|
|
11254
11254
|
l.map((c, d) => /* @__PURE__ */ n(b.Tab, { value: d.toString(), children: d + 1 }, d)),
|
|
11255
|
-
/* @__PURE__ */ n(b.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ n(
|
|
11255
|
+
/* @__PURE__ */ n(b.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
11256
11256
|
] }),
|
|
11257
11257
|
l.map((c, d) => /* @__PURE__ */ n(b.Panel, { value: d.toString(), children: /* @__PURE__ */ n(ex, { control: e, index: d, remove: a }) }, d))
|
|
11258
11258
|
] });
|
|
@@ -11543,7 +11543,7 @@ function mx(e) {
|
|
|
11543
11543
|
}
|
|
11544
11544
|
function gx(e) {
|
|
11545
11545
|
const t = Pe(e), r = se(t, "color.valueRange");
|
|
11546
|
-
return r !== void 0 &&
|
|
11546
|
+
return r !== void 0 && Oi(t, "color.valueRange", r.map((i) => Number(i))), t;
|
|
11547
11547
|
}
|
|
11548
11548
|
class fx extends Me {
|
|
11549
11549
|
constructor() {
|
|
@@ -11617,7 +11617,7 @@ const bx = {
|
|
|
11617
11617
|
height: c,
|
|
11618
11618
|
justifyContent: bx[o],
|
|
11619
11619
|
alignItems: xx[l]
|
|
11620
|
-
}, children: /* @__PURE__ */ n(
|
|
11620
|
+
}, children: /* @__PURE__ */ n(V, { children: Object.values(p).map((m, h) => /* @__PURE__ */ n($.Fragment, { children: m }, h)) }) });
|
|
11621
11621
|
}), vx = [{
|
|
11622
11622
|
label: "Left",
|
|
11623
11623
|
value: "left"
|
|
@@ -11842,7 +11842,7 @@ function Mx(e, t, r) {
|
|
|
11842
11842
|
};
|
|
11843
11843
|
return _e({}, a, zx);
|
|
11844
11844
|
}
|
|
11845
|
-
fe.use([
|
|
11845
|
+
fe.use([Bd, Je]);
|
|
11846
11846
|
function Ax({
|
|
11847
11847
|
context: e
|
|
11848
11848
|
}) {
|
|
@@ -11885,7 +11885,7 @@ const Ex = [{
|
|
|
11885
11885
|
}, {
|
|
11886
11886
|
label: "None",
|
|
11887
11887
|
value: "0"
|
|
11888
|
-
}],
|
|
11888
|
+
}], Vx = [{
|
|
11889
11889
|
label: "Left",
|
|
11890
11890
|
value: "left"
|
|
11891
11891
|
}, {
|
|
@@ -11894,7 +11894,7 @@ const Ex = [{
|
|
|
11894
11894
|
}, {
|
|
11895
11895
|
label: "Right",
|
|
11896
11896
|
value: "right"
|
|
11897
|
-
}],
|
|
11897
|
+
}], Ox = ({
|
|
11898
11898
|
control: e,
|
|
11899
11899
|
data: t,
|
|
11900
11900
|
index: r,
|
|
@@ -11918,7 +11918,7 @@ const Ex = [{
|
|
|
11918
11918
|
}) => /* @__PURE__ */ n(E, { label: "Rotate", data: Ex, ...a }) }),
|
|
11919
11919
|
/* @__PURE__ */ n(x, { name: `levels.${r}.label.align`, control: e, render: ({
|
|
11920
11920
|
field: a
|
|
11921
|
-
}) => /* @__PURE__ */ n(E, { label: "Align", data:
|
|
11921
|
+
}) => /* @__PURE__ */ n(E, { label: "Align", data: Vx, ...a }) })
|
|
11922
11922
|
] }),
|
|
11923
11923
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
11924
11924
|
/* @__PURE__ */ n(x, { name: `levels.${r}.label.position`, control: e, render: ({
|
|
@@ -11942,7 +11942,7 @@ const Ex = [{
|
|
|
11942
11942
|
fields: i,
|
|
11943
11943
|
append: a,
|
|
11944
11944
|
remove: o
|
|
11945
|
-
} =
|
|
11945
|
+
} = Ve({
|
|
11946
11946
|
control: e,
|
|
11947
11947
|
name: "levels"
|
|
11948
11948
|
}), l = t("levels"), s = i.map((h, g) => ({
|
|
@@ -11983,9 +11983,9 @@ const Ex = [{
|
|
|
11983
11983
|
}, children: [
|
|
11984
11984
|
/* @__PURE__ */ u(b.List, { children: [
|
|
11985
11985
|
s.map((h, g) => /* @__PURE__ */ n(b.Tab, { value: h.id, children: g }, h.id)),
|
|
11986
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
11986
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
11987
11987
|
] }),
|
|
11988
|
-
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: h.id, children: /* @__PURE__ */ n(
|
|
11988
|
+
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: h.id, children: /* @__PURE__ */ n(Ox, { control: e, index: g, remove: o, data: r }, h.id) }, h.id))
|
|
11989
11989
|
] })
|
|
11990
11990
|
] });
|
|
11991
11991
|
};
|
|
@@ -12037,7 +12037,7 @@ function Px({
|
|
|
12037
12037
|
] })
|
|
12038
12038
|
] }) });
|
|
12039
12039
|
}
|
|
12040
|
-
function
|
|
12040
|
+
function Nx(e) {
|
|
12041
12041
|
const {
|
|
12042
12042
|
label_field: t,
|
|
12043
12043
|
value_field: r,
|
|
@@ -12049,7 +12049,7 @@ function Bx(e) {
|
|
|
12049
12049
|
value_key: r
|
|
12050
12050
|
};
|
|
12051
12051
|
}
|
|
12052
|
-
function
|
|
12052
|
+
function Bx(e) {
|
|
12053
12053
|
const {
|
|
12054
12054
|
group_key: t = "",
|
|
12055
12055
|
...r
|
|
@@ -12081,11 +12081,11 @@ class Wx extends Me {
|
|
|
12081
12081
|
})), this.version(2, (r) => ({
|
|
12082
12082
|
...r,
|
|
12083
12083
|
version: 2,
|
|
12084
|
-
config:
|
|
12084
|
+
config: Nx(r.config)
|
|
12085
12085
|
})), this.version(3, (r) => ({
|
|
12086
12086
|
...r,
|
|
12087
12087
|
version: 3,
|
|
12088
|
-
config:
|
|
12088
|
+
config: Bx(r.config)
|
|
12089
12089
|
})), this.version(4, (r) => ({
|
|
12090
12090
|
...r,
|
|
12091
12091
|
version: 4,
|
|
@@ -12474,15 +12474,15 @@ function hy({
|
|
|
12474
12474
|
overscan: 20
|
|
12475
12475
|
}), {
|
|
12476
12476
|
virtualItems: Q,
|
|
12477
|
-
totalSize:
|
|
12478
|
-
} = W, P = Q.length > 0 && ((pe = Q == null ? void 0 : Q[0]) == null ? void 0 : pe.start) || 0,
|
|
12477
|
+
totalSize: B
|
|
12478
|
+
} = W, P = Q.length > 0 && ((pe = Q == null ? void 0 : Q[0]) == null ? void 0 : pe.start) || 0, O = Q.length > 0 ? B - (((ge = Q == null ? void 0 : Q[Q.length - 1]) == null ? void 0 : ge.end) || 0) : 0, Y = R.length, ne = Y > 0, ee = ne ? i - 22 : i, de = ne ? 22 : 0;
|
|
12479
12479
|
return !Array.isArray(r) || r.length === 0 ? /* @__PURE__ */ n(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: F, style: {
|
|
12480
12480
|
height: i,
|
|
12481
12481
|
width: a
|
|
12482
12482
|
}, "data-enable-scrollbar": !0, className: p(d.root, {
|
|
12483
12483
|
"table-highlight-on-hover": o.highlightOnHover
|
|
12484
12484
|
}), children: [
|
|
12485
|
-
Y > 0 && /* @__PURE__ */ n(
|
|
12485
|
+
Y > 0 && /* @__PURE__ */ n(V, { className: d.info_bar, sx: {
|
|
12486
12486
|
height: 22
|
|
12487
12487
|
}, children: /* @__PURE__ */ u(C, { align: "right", pr: 6, size: 14, color: "dimmed", fw: "normal", children: [
|
|
12488
12488
|
"Total: ",
|
|
@@ -12505,8 +12505,8 @@ function hy({
|
|
|
12505
12505
|
const Ce = R[ue.index];
|
|
12506
12506
|
return /* @__PURE__ */ n("tr", { children: Ce.getVisibleCells().map((Le) => /* @__PURE__ */ n("td", { children: tr(Le.column.columnDef.cell, Le.getContext()) }, Le.id)) }, Ce.id);
|
|
12507
12507
|
}),
|
|
12508
|
-
|
|
12509
|
-
height: `${
|
|
12508
|
+
O > 0 && /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n("td", { style: {
|
|
12509
|
+
height: `${O}px`
|
|
12510
12510
|
} }) })
|
|
12511
12511
|
] })
|
|
12512
12512
|
] })
|
|
@@ -12550,11 +12550,11 @@ class my {
|
|
|
12550
12550
|
j(this, "steps", /* @__PURE__ */ new Map());
|
|
12551
12551
|
j(this, "interpolation");
|
|
12552
12552
|
j(this, "onChange");
|
|
12553
|
-
|
|
12553
|
+
Nn(this, {
|
|
12554
12554
|
steps: us
|
|
12555
12555
|
}, {
|
|
12556
12556
|
deep: !1
|
|
12557
|
-
}), gt(() =>
|
|
12557
|
+
}), gt(() => Nt(this.steps), () => {
|
|
12558
12558
|
this.notifyStepChange();
|
|
12559
12559
|
});
|
|
12560
12560
|
}
|
|
@@ -12601,12 +12601,12 @@ function gy(e) {
|
|
|
12601
12601
|
/* @__PURE__ */ n(C, { title: w, style: {
|
|
12602
12602
|
opacity: h ? 1 : 0
|
|
12603
12603
|
}, color: "dimmed", size: "sm", className: "palette-value--up palette-value", children: R }),
|
|
12604
|
-
/* @__PURE__ */ u(
|
|
12605
|
-
/* @__PURE__ */ n(
|
|
12604
|
+
/* @__PURE__ */ u(Vr, { width: 200, trapFocus: !0, opened: c, onClose: p, children: [
|
|
12605
|
+
/* @__PURE__ */ n(Vr.Target, { children: /* @__PURE__ */ n("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: d, style: {
|
|
12606
12606
|
"--shadow-color": $n(r).alpha(0.5).hex(),
|
|
12607
12607
|
backgroundColor: r
|
|
12608
12608
|
} }) }),
|
|
12609
|
-
/* @__PURE__ */ n(
|
|
12609
|
+
/* @__PURE__ */ n(Vr.Dropdown, { children: /* @__PURE__ */ u(S, { children: [
|
|
12610
12610
|
/* @__PURE__ */ n(re, { size: "xs", label: "Map a value to this color", value: l, onChange: s }),
|
|
12611
12611
|
/* @__PURE__ */ u(v, { position: "right", children: [
|
|
12612
12612
|
/* @__PURE__ */ n(I, { variant: "subtle", size: "xs", onClick: y, children: "Cancel" }),
|
|
@@ -12651,7 +12651,7 @@ const fy = D(({
|
|
|
12651
12651
|
}));
|
|
12652
12652
|
}
|
|
12653
12653
|
const g = () => {
|
|
12654
|
-
p(), r == null || r(
|
|
12654
|
+
p(), r == null || r(Nt(o));
|
|
12655
12655
|
};
|
|
12656
12656
|
function w(T) {
|
|
12657
12657
|
l((R) => ({
|
|
@@ -12745,9 +12745,9 @@ const Cy = ke((e, t) => {
|
|
|
12745
12745
|
flexGrow: 0
|
|
12746
12746
|
}, children: "Custom Cell Content" }),
|
|
12747
12747
|
/* @__PURE__ */ n(Te, { size: 800, title: "Custom cell content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(S, { children: [
|
|
12748
|
-
/* @__PURE__ */ n(
|
|
12748
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
12749
12749
|
position: "relative"
|
|
12750
|
-
}, children: /* @__PURE__ */ n(
|
|
12750
|
+
}, children: /* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: l, onChange: (m) => s(m ?? ""), theme: "vs-dark", options: {
|
|
12751
12751
|
minimap: {
|
|
12752
12752
|
enabled: !1
|
|
12753
12753
|
}
|
|
@@ -12770,7 +12770,7 @@ const Cy = ke((e, t) => {
|
|
|
12770
12770
|
}, {
|
|
12771
12771
|
label: "Right",
|
|
12772
12772
|
value: "right"
|
|
12773
|
-
}],
|
|
12773
|
+
}], Br = () => /* @__PURE__ */ n(C, { color: "dimmed", size: 12, children: "px" }), Iy = ({
|
|
12774
12774
|
control: e,
|
|
12775
12775
|
index: t,
|
|
12776
12776
|
watch: r,
|
|
@@ -12804,11 +12804,11 @@ const Cy = ke((e, t) => {
|
|
|
12804
12804
|
] }),
|
|
12805
12805
|
/* @__PURE__ */ n(A, { mb: -10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
12806
12806
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
12807
|
-
/* @__PURE__ */ n(re, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ n(
|
|
12807
|
+
/* @__PURE__ */ n(re, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ n(Br, {}), disabled: !0 }),
|
|
12808
12808
|
/* @__PURE__ */ n(x, { name: `columns.${t}.width`, control: e, render: ({
|
|
12809
12809
|
field: s
|
|
12810
|
-
}) => /* @__PURE__ */ n(re, { hideControls: !0, label: "Width", rightSection: /* @__PURE__ */ n(
|
|
12811
|
-
/* @__PURE__ */ n(re, { hideControls: !0, label: "Max Width", rightSection: /* @__PURE__ */ n(
|
|
12810
|
+
}) => /* @__PURE__ */ n(re, { hideControls: !0, label: "Width", rightSection: /* @__PURE__ */ n(Br, {}), ...s }) }),
|
|
12811
|
+
/* @__PURE__ */ n(re, { hideControls: !0, label: "Max Width", rightSection: /* @__PURE__ */ n(Br, {}), disabled: !0 })
|
|
12812
12812
|
] }),
|
|
12813
12813
|
/* @__PURE__ */ n(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ n(x, { name: `columns.${t}.align`, control: e, render: ({
|
|
12814
12814
|
field: s
|
|
@@ -12829,7 +12829,7 @@ const Cy = ke((e, t) => {
|
|
|
12829
12829
|
append: a,
|
|
12830
12830
|
remove: o,
|
|
12831
12831
|
update: l
|
|
12832
|
-
} =
|
|
12832
|
+
} = Ve({
|
|
12833
12833
|
control: e,
|
|
12834
12834
|
name: "columns"
|
|
12835
12835
|
}), s = () => {
|
|
@@ -12862,7 +12862,7 @@ const Cy = ke((e, t) => {
|
|
|
12862
12862
|
}, children: [
|
|
12863
12863
|
/* @__PURE__ */ u(b.List, { children: [
|
|
12864
12864
|
i.map((d, p) => /* @__PURE__ */ n(b.Tab, { value: p.toString(), children: p + 1 }, d.id)),
|
|
12865
|
-
/* @__PURE__ */ n(b.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ n(
|
|
12865
|
+
/* @__PURE__ */ n(b.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
12866
12866
|
] }),
|
|
12867
12867
|
i.map((d, p) => /* @__PURE__ */ n(b.Panel, { value: p.toString(), children: /* @__PURE__ */ n(Iy, { control: e, watch: t, index: p, column: d, data: r, remove: o }, p) }, d.id))
|
|
12868
12868
|
] })
|
|
@@ -13047,7 +13047,7 @@ const Ur = {
|
|
|
13047
13047
|
horizontal_align: "left",
|
|
13048
13048
|
font_size: "14px",
|
|
13049
13049
|
font_weight: "normal"
|
|
13050
|
-
},
|
|
13050
|
+
}, Vy = D(({
|
|
13051
13051
|
context: e
|
|
13052
13052
|
}) => {
|
|
13053
13053
|
const t = te(), {
|
|
@@ -13071,12 +13071,12 @@ const Ur = {
|
|
|
13071
13071
|
return /* @__PURE__ */ n(C, { align: l, weight: c, sx: {
|
|
13072
13072
|
fontSize: s
|
|
13073
13073
|
}, children: p });
|
|
13074
|
-
}),
|
|
13074
|
+
}), Oy = ({
|
|
13075
13075
|
value: e,
|
|
13076
13076
|
onChange: t
|
|
13077
|
-
}) => /* @__PURE__ */ n(
|
|
13077
|
+
}) => /* @__PURE__ */ n(V, { sx: {
|
|
13078
13078
|
position: "relative"
|
|
13079
|
-
}, children: /* @__PURE__ */ n(
|
|
13079
|
+
}, children: /* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
13080
13080
|
i && t(i);
|
|
13081
13081
|
}, theme: "vs-dark", options: {
|
|
13082
13082
|
minimap: {
|
|
@@ -13103,7 +13103,7 @@ const Ur = {
|
|
|
13103
13103
|
flexGrow: 0
|
|
13104
13104
|
}, children: "Edit Content" }),
|
|
13105
13105
|
/* @__PURE__ */ n(Te, { size: 800, title: "Text content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(S, { children: [
|
|
13106
|
-
/* @__PURE__ */ n(
|
|
13106
|
+
/* @__PURE__ */ n(Oy, { value: l, onChange: s }),
|
|
13107
13107
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
13108
13108
|
/* @__PURE__ */ n(I, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ n(xt, { size: 20 }), children: "Rest" }),
|
|
13109
13109
|
/* @__PURE__ */ u(v, { position: "right", children: [
|
|
@@ -13123,7 +13123,7 @@ const Ur = {
|
|
|
13123
13123
|
label: "Right",
|
|
13124
13124
|
value: "right"
|
|
13125
13125
|
}];
|
|
13126
|
-
function
|
|
13126
|
+
function Ny({
|
|
13127
13127
|
context: e
|
|
13128
13128
|
}) {
|
|
13129
13129
|
const {
|
|
@@ -13191,7 +13191,7 @@ function By({
|
|
|
13191
13191
|
] })
|
|
13192
13192
|
] }) });
|
|
13193
13193
|
}
|
|
13194
|
-
class
|
|
13194
|
+
class By extends Me {
|
|
13195
13195
|
constructor() {
|
|
13196
13196
|
super(...arguments);
|
|
13197
13197
|
j(this, "VERSION", 1);
|
|
@@ -13206,10 +13206,10 @@ class Ny extends Me {
|
|
|
13206
13206
|
const qy = {
|
|
13207
13207
|
displayName: "Text",
|
|
13208
13208
|
displayGroup: "Others",
|
|
13209
|
-
migrator: new
|
|
13209
|
+
migrator: new By(),
|
|
13210
13210
|
name: "text",
|
|
13211
|
-
viewRender:
|
|
13212
|
-
configRender:
|
|
13211
|
+
viewRender: Vy,
|
|
13212
|
+
configRender: Ny,
|
|
13213
13213
|
createConfig() {
|
|
13214
13214
|
return {
|
|
13215
13215
|
version: 1,
|
|
@@ -13274,7 +13274,7 @@ const Gy = ({
|
|
|
13274
13274
|
...ji
|
|
13275
13275
|
}, mo = ({
|
|
13276
13276
|
message: e
|
|
13277
|
-
}) => /* @__PURE__ */ n(
|
|
13277
|
+
}) => /* @__PURE__ */ n(V, { sx: Xr, children: /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: {
|
|
13278
13278
|
__html: e
|
|
13279
13279
|
}, style: {
|
|
13280
13280
|
fontSize: "14px",
|
|
@@ -13309,16 +13309,16 @@ function Hy({
|
|
|
13309
13309
|
data: l,
|
|
13310
13310
|
error: s,
|
|
13311
13311
|
loading: c
|
|
13312
|
-
} =
|
|
13312
|
+
} = Vn(Gy({
|
|
13313
13313
|
conf: r,
|
|
13314
13314
|
data: o
|
|
13315
13315
|
}), {
|
|
13316
13316
|
refreshDeps: [o, r]
|
|
13317
13317
|
});
|
|
13318
|
-
return !i || !a || !r ? null : c ? /* @__PURE__ */ n(
|
|
13318
|
+
return !i || !a || !r ? null : c ? /* @__PURE__ */ n(V, { sx: {
|
|
13319
13319
|
position: "relative",
|
|
13320
13320
|
height: a
|
|
13321
|
-
}, children: /* @__PURE__ */ n(Xt, { visible: !0 }) }) : s ? /* @__PURE__ */ n(
|
|
13321
|
+
}, children: /* @__PURE__ */ n(Xt, { visible: !0 }) }) : s ? /* @__PURE__ */ n(V, { sx: Xr, "data-enable-scrollbar": !0, children: /* @__PURE__ */ n(Yy, { error: s, width: i, height: a }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ n(V, { sx: Xr, "data-enable-scrollbar": !0, children: l.replies.map((d, p) => /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: {
|
|
13322
13322
|
__html: d.interpretation.html
|
|
13323
13323
|
} }, p)) });
|
|
13324
13324
|
}
|
|
@@ -13642,7 +13642,7 @@ const vl = {
|
|
|
13642
13642
|
metrics: []
|
|
13643
13643
|
}
|
|
13644
13644
|
};
|
|
13645
|
-
fe.use([Lt, Zt, Kt,
|
|
13645
|
+
fe.use([Lt, Zt, Kt, Ni, Vd, at, ot, st, hr, Je]);
|
|
13646
13646
|
function hv({
|
|
13647
13647
|
name: e
|
|
13648
13648
|
}, t) {
|
|
@@ -13698,7 +13698,7 @@ function mv({
|
|
|
13698
13698
|
width: s,
|
|
13699
13699
|
height: c
|
|
13700
13700
|
} = e.viewport;
|
|
13701
|
-
return !o.calendar.data_key || !o.heat_block.data_key ? null : /* @__PURE__ */ n(
|
|
13701
|
+
return !o.calendar.data_key || !o.heat_block.data_key ? null : /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(pv, { variables: a, width: s, height: c, data: l, conf: o, interactionManager: r }) });
|
|
13702
13702
|
}
|
|
13703
13703
|
function gv({
|
|
13704
13704
|
data: e,
|
|
@@ -13764,7 +13764,7 @@ const fv = ({
|
|
|
13764
13764
|
fields: i,
|
|
13765
13765
|
append: a,
|
|
13766
13766
|
remove: o
|
|
13767
|
-
} =
|
|
13767
|
+
} = Ve({
|
|
13768
13768
|
control: e,
|
|
13769
13769
|
name: "tooltip.metrics"
|
|
13770
13770
|
}), l = t("tooltip.metrics"), s = i.map((h, g) => ({
|
|
@@ -13798,7 +13798,7 @@ const fv = ({
|
|
|
13798
13798
|
}, children: [
|
|
13799
13799
|
/* @__PURE__ */ u(b.List, { children: [
|
|
13800
13800
|
s.map((h, g) => /* @__PURE__ */ n(b.Tab, { value: h.id, children: h.name ? h.name : g }, h.id)),
|
|
13801
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
13801
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
13802
13802
|
] }),
|
|
13803
13803
|
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: h.id, children: /* @__PURE__ */ n(fv, { control: e, index: g, remove: o, data: r }, h.id) }, h.id))
|
|
13804
13804
|
] })
|
|
@@ -14078,9 +14078,9 @@ function Mv({
|
|
|
14078
14078
|
name_data_key: e.data_key,
|
|
14079
14079
|
value_data_key: t
|
|
14080
14080
|
});
|
|
14081
|
-
return Object.entries(W).map(([Q,
|
|
14081
|
+
return Object.entries(W).map(([Q, B]) => {
|
|
14082
14082
|
const P = Pe(F);
|
|
14083
|
-
return P.name = Q, P.color = void 0, P.data =
|
|
14083
|
+
return P.name = Q, P.color = void 0, P.data = B, P;
|
|
14084
14084
|
});
|
|
14085
14085
|
}
|
|
14086
14086
|
function Av(e, t, r, i, a, o, l) {
|
|
@@ -14130,7 +14130,7 @@ function Ev(e, t, r) {
|
|
|
14130
14130
|
})}</td>
|
|
14131
14131
|
</tr>
|
|
14132
14132
|
`;
|
|
14133
|
-
}), s =
|
|
14133
|
+
}), s = Vt(e.y_axis.axisLabel.overflow.in_tooltip), c = Rv(o, e);
|
|
14134
14134
|
return `
|
|
14135
14135
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
14136
14136
|
<div style="${s}">${c}</div>
|
|
@@ -14144,7 +14144,7 @@ function Ev(e, t, r) {
|
|
|
14144
14144
|
}
|
|
14145
14145
|
};
|
|
14146
14146
|
}
|
|
14147
|
-
function
|
|
14147
|
+
function Vv(e) {
|
|
14148
14148
|
return e.x_axes.reduce((r, {
|
|
14149
14149
|
label_formatter: i
|
|
14150
14150
|
}, a) => (r[a] = function(l) {
|
|
@@ -14162,7 +14162,7 @@ function Ov(e) {
|
|
|
14162
14162
|
}) => r
|
|
14163
14163
|
});
|
|
14164
14164
|
}
|
|
14165
|
-
function
|
|
14165
|
+
function Ov(e, t) {
|
|
14166
14166
|
const r = {};
|
|
14167
14167
|
return t.map((i) => {
|
|
14168
14168
|
const a = fn(i, e);
|
|
@@ -14232,8 +14232,8 @@ function Pv(e, t) {
|
|
|
14232
14232
|
z: 5
|
|
14233
14233
|
}];
|
|
14234
14234
|
}
|
|
14235
|
-
function
|
|
14236
|
-
const i =
|
|
14235
|
+
function Nv(e, t, r) {
|
|
14236
|
+
const i = Ov(t, r), a = Vv(e), o = k.uniq(t.map((d) => d[e.y_axis.data_key])), l = o.every((d) => !Number.isNaN(Number(d))), s = Av(e, o, l, t, a, r, i);
|
|
14237
14237
|
return {
|
|
14238
14238
|
xAxis: Fv(e, a),
|
|
14239
14239
|
yAxis: Pv(e, o),
|
|
@@ -14271,7 +14271,7 @@ const xa = {
|
|
|
14271
14271
|
},
|
|
14272
14272
|
reference_lines: []
|
|
14273
14273
|
};
|
|
14274
|
-
function
|
|
14274
|
+
function Bv() {
|
|
14275
14275
|
const e = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
14276
14276
|
return {
|
|
14277
14277
|
id: e,
|
|
@@ -14301,7 +14301,7 @@ function qv() {
|
|
|
14301
14301
|
hide_in_legend: !1,
|
|
14302
14302
|
invisible: !1,
|
|
14303
14303
|
label_position: "right",
|
|
14304
|
-
aggregation_on_value:
|
|
14304
|
+
aggregation_on_value: Bn,
|
|
14305
14305
|
xAxisIndex: "0"
|
|
14306
14306
|
};
|
|
14307
14307
|
}
|
|
@@ -14343,7 +14343,7 @@ function jv({
|
|
|
14343
14343
|
});
|
|
14344
14344
|
}, [l, s, a]), d = L(() => ({
|
|
14345
14345
|
click: c
|
|
14346
|
-
}), [c]), p = $.useMemo(() =>
|
|
14346
|
+
}), [c]), p = $.useMemo(() => Nv(e, t, o), [e, t]);
|
|
14347
14347
|
return !r || !i ? null : /* @__PURE__ */ n(et, { echarts: fe, option: p, style: {
|
|
14348
14348
|
width: r,
|
|
14349
14349
|
height: i
|
|
@@ -14364,7 +14364,7 @@ function Gv({
|
|
|
14364
14364
|
width: s,
|
|
14365
14365
|
height: c
|
|
14366
14366
|
} = e.viewport;
|
|
14367
|
-
return /* @__PURE__ */ n(
|
|
14367
|
+
return /* @__PURE__ */ n(V, { children: /* @__PURE__ */ n(jv, { variables: a, width: s, height: c, data: l, conf: o, interactionManager: r }) });
|
|
14368
14368
|
}
|
|
14369
14369
|
const Yv = [{
|
|
14370
14370
|
label: "solid",
|
|
@@ -14464,7 +14464,7 @@ function Uv({
|
|
|
14464
14464
|
fields: i,
|
|
14465
14465
|
append: a,
|
|
14466
14466
|
remove: o
|
|
14467
|
-
} =
|
|
14467
|
+
} = Ve({
|
|
14468
14468
|
control: e,
|
|
14469
14469
|
name: "reference_lines"
|
|
14470
14470
|
}), l = t("reference_lines"), s = i.map((g, w) => ({
|
|
@@ -14493,7 +14493,7 @@ function Uv({
|
|
|
14493
14493
|
}, children: [
|
|
14494
14494
|
/* @__PURE__ */ u(b.List, { children: [
|
|
14495
14495
|
s.map((g, w) => /* @__PURE__ */ n(b.Tab, { value: g.id, children: g.name }, w)),
|
|
14496
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
14496
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
14497
14497
|
] }),
|
|
14498
14498
|
s.map((g, w) => /* @__PURE__ */ n(b.Panel, { value: g.id, children: /* @__PURE__ */ n(Qv, { control: e, index: w, remove: o, watch: t, variableOptions: d, xAxisOptions: m }) }, w))
|
|
14499
14499
|
] });
|
|
@@ -14626,7 +14626,7 @@ function e0({
|
|
|
14626
14626
|
}, ...l }) }),
|
|
14627
14627
|
/* @__PURE__ */ n(x, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
|
|
14628
14628
|
field: l
|
|
14629
|
-
}) => /* @__PURE__ */ n(yr, { label: "Aggregation on Value", value: l.value ??
|
|
14629
|
+
}) => /* @__PURE__ */ n(yr, { label: "Aggregation on Value", value: l.value ?? Bn, onChange: l.onChange, pt: 0 }) })
|
|
14630
14630
|
] }),
|
|
14631
14631
|
/* @__PURE__ */ n(v, { grow: !0, children: /* @__PURE__ */ n(x, { name: `series.${t}.group_by_key`, control: e, render: ({
|
|
14632
14632
|
field: l
|
|
@@ -14668,7 +14668,7 @@ function t0({
|
|
|
14668
14668
|
fields: i,
|
|
14669
14669
|
append: a,
|
|
14670
14670
|
remove: o
|
|
14671
|
-
} =
|
|
14671
|
+
} = Ve({
|
|
14672
14672
|
control: e,
|
|
14673
14673
|
name: "series"
|
|
14674
14674
|
}), l = t("series"), s = i.map((w, y) => ({
|
|
@@ -14698,7 +14698,7 @@ function t0({
|
|
|
14698
14698
|
}, children: [
|
|
14699
14699
|
/* @__PURE__ */ u(b.List, { children: [
|
|
14700
14700
|
s.map((w) => /* @__PURE__ */ n(b.Tab, { value: w.id, children: w.name }, w.id)),
|
|
14701
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
14701
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
14702
14702
|
] }),
|
|
14703
14703
|
s.map((w, y) => /* @__PURE__ */ n(b.Panel, { value: w.id, children: /* @__PURE__ */ n(e0, { control: e, index: y, remove: o, seriesItem: w, xAxisOptions: p, data: r }, w.id) }, w.id))
|
|
14704
14704
|
] });
|
|
@@ -14762,14 +14762,14 @@ function i0({
|
|
|
14762
14762
|
fields: r,
|
|
14763
14763
|
append: i,
|
|
14764
14764
|
remove: a
|
|
14765
|
-
} =
|
|
14765
|
+
} = Ve({
|
|
14766
14766
|
control: e,
|
|
14767
14767
|
name: "x_axes"
|
|
14768
14768
|
}), o = t("x_axes"), l = r.map((d, p) => ({
|
|
14769
14769
|
...d,
|
|
14770
14770
|
...o[p]
|
|
14771
14771
|
})), s = () => {
|
|
14772
|
-
const d =
|
|
14772
|
+
const d = Bv();
|
|
14773
14773
|
i(d);
|
|
14774
14774
|
}, c = l.length > 0 ? l[0].id : "0";
|
|
14775
14775
|
return /* @__PURE__ */ u(b, { defaultValue: c, styles: {
|
|
@@ -14783,7 +14783,7 @@ function i0({
|
|
|
14783
14783
|
}, children: [
|
|
14784
14784
|
/* @__PURE__ */ u(b.List, { children: [
|
|
14785
14785
|
l.map((d) => /* @__PURE__ */ n(b.Tab, { value: d.id, children: d.name }, d.id)),
|
|
14786
|
-
/* @__PURE__ */ n(b.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ n(
|
|
14786
|
+
/* @__PURE__ */ n(b.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
14787
14787
|
] }),
|
|
14788
14788
|
l.map((d, p) => /* @__PURE__ */ n(b.Panel, { value: d.id, children: /* @__PURE__ */ n(r0, { control: e, index: p, remove: a }) }, d.id))
|
|
14789
14789
|
] });
|
|
@@ -14812,7 +14812,7 @@ function a0({
|
|
|
14812
14812
|
}) => /* @__PURE__ */ n(wr, { data: e, ...i }) }) }),
|
|
14813
14813
|
/* @__PURE__ */ n(x, { name: "y_axis.axisLabel.overflow", control: t, render: ({
|
|
14814
14814
|
field: i
|
|
14815
|
-
}) => /* @__PURE__ */ n(
|
|
14815
|
+
}) => /* @__PURE__ */ n(Bt, { ...i }) })
|
|
14816
14816
|
] });
|
|
14817
14817
|
}
|
|
14818
14818
|
function o0({
|
|
@@ -15540,7 +15540,7 @@ function $0(e) {
|
|
|
15540
15540
|
/* @__PURE__ */ n(D0, { ...e })
|
|
15541
15541
|
] });
|
|
15542
15542
|
}
|
|
15543
|
-
fe.use([Zt, Kt,
|
|
15543
|
+
fe.use([Zt, Kt, Ni, at, ot, st, Je, hr]);
|
|
15544
15544
|
function z0({
|
|
15545
15545
|
conf: e,
|
|
15546
15546
|
data: t,
|
|
@@ -15574,7 +15574,7 @@ function M0({
|
|
|
15574
15574
|
}, [d]), !l.data_key || !c || !d)
|
|
15575
15575
|
return null;
|
|
15576
15576
|
const h = Math.max(a, 300), g = Math.max(o, 370);
|
|
15577
|
-
return /* @__PURE__ */ u(
|
|
15577
|
+
return /* @__PURE__ */ u(V, { sx: {
|
|
15578
15578
|
overflow: "hidden",
|
|
15579
15579
|
height: g,
|
|
15580
15580
|
width: h
|
|
@@ -15668,7 +15668,7 @@ const E0 = ({
|
|
|
15668
15668
|
top: 15,
|
|
15669
15669
|
right: 5
|
|
15670
15670
|
}, children: "Delete this Metric" })
|
|
15671
|
-
] }),
|
|
15671
|
+
] }), V0 = ({
|
|
15672
15672
|
control: e,
|
|
15673
15673
|
watch: t,
|
|
15674
15674
|
data: r
|
|
@@ -15677,7 +15677,7 @@ const E0 = ({
|
|
|
15677
15677
|
fields: i,
|
|
15678
15678
|
append: a,
|
|
15679
15679
|
remove: o
|
|
15680
|
-
} =
|
|
15680
|
+
} = Ve({
|
|
15681
15681
|
control: e,
|
|
15682
15682
|
name: "metrics"
|
|
15683
15683
|
}), l = t("metrics"), s = i.map((h, g) => ({
|
|
@@ -15711,13 +15711,13 @@ const E0 = ({
|
|
|
15711
15711
|
}, children: [
|
|
15712
15712
|
/* @__PURE__ */ u(b.List, { children: [
|
|
15713
15713
|
s.map((h, g) => /* @__PURE__ */ n(b.Tab, { value: h.id, children: h.name ? h.name : g }, h.id)),
|
|
15714
|
-
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(
|
|
15714
|
+
/* @__PURE__ */ n(b.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
15715
15715
|
] }),
|
|
15716
15716
|
s.map((h, g) => /* @__PURE__ */ n(b.Panel, { value: h.id, children: /* @__PURE__ */ n(E0, { control: e, index: g, remove: o, data: r }, h.id) }, h.id))
|
|
15717
15717
|
] })
|
|
15718
15718
|
] });
|
|
15719
15719
|
};
|
|
15720
|
-
function
|
|
15720
|
+
function O0({
|
|
15721
15721
|
context: e
|
|
15722
15722
|
}) {
|
|
15723
15723
|
const {
|
|
@@ -15761,7 +15761,7 @@ function V0({
|
|
|
15761
15761
|
] }),
|
|
15762
15762
|
/* @__PURE__ */ n(b.Panel, { value: "X Axis", children: /* @__PURE__ */ n(A0, { control: o, watch: s, data: i }) }),
|
|
15763
15763
|
/* @__PURE__ */ n(b.Panel, { value: "Deviation", children: /* @__PURE__ */ n(R0, { control: o, watch: s, data: i }) }),
|
|
15764
|
-
/* @__PURE__ */ n(b.Panel, { value: "Additional Metrics", children: /* @__PURE__ */ n(
|
|
15764
|
+
/* @__PURE__ */ n(b.Panel, { value: "Additional Metrics", children: /* @__PURE__ */ n(V0, { control: o, watch: s, data: i }) })
|
|
15765
15765
|
] })
|
|
15766
15766
|
] }) });
|
|
15767
15767
|
}
|
|
@@ -15783,12 +15783,12 @@ const P0 = {
|
|
|
15783
15783
|
migrator: new F0(),
|
|
15784
15784
|
name: "mericoEstimationChart",
|
|
15785
15785
|
viewRender: M0,
|
|
15786
|
-
configRender:
|
|
15786
|
+
configRender: O0,
|
|
15787
15787
|
createConfig: () => ({
|
|
15788
15788
|
version: 1,
|
|
15789
15789
|
config: ya
|
|
15790
15790
|
})
|
|
15791
|
-
},
|
|
15791
|
+
}, N0 = [{
|
|
15792
15792
|
value: "#25262B",
|
|
15793
15793
|
name: "Dark"
|
|
15794
15794
|
}, {
|
|
@@ -15835,12 +15835,12 @@ const P0 = {
|
|
|
15835
15835
|
value: e.value,
|
|
15836
15836
|
type: "single",
|
|
15837
15837
|
category: "basic"
|
|
15838
|
-
})),
|
|
15838
|
+
})), B0 = [Eu, Vu, Pu, Fu, Ou, Nu], _l = () => ({
|
|
15839
15839
|
id: "dashboard",
|
|
15840
15840
|
version: Yi,
|
|
15841
15841
|
manifest: {
|
|
15842
|
-
viz: [Ur, Cx, qy, nb, jx, sf, l0, Xu,
|
|
15843
|
-
color: [...
|
|
15842
|
+
viz: [Ur, Cx, qy, nb, jx, sf, l0, Xu, Bh, Gm, yg, Cv, Zg, Cm, ux, Cf, Zf, Xy, P0, tp],
|
|
15843
|
+
color: [...N0, ...B0]
|
|
15844
15844
|
}
|
|
15845
15845
|
}), Tn = new ju(), Re = {
|
|
15846
15846
|
pluginManager: St("pluginManager"),
|
|
@@ -15962,7 +15962,7 @@ function Q0(e) {
|
|
|
15962
15962
|
return /* @__PURE__ */ n(z, { defaultValue: t, onBlur: (i) => r(i.currentTarget.value), label: "console.log" });
|
|
15963
15963
|
}
|
|
15964
15964
|
async function U0(e, t) {
|
|
15965
|
-
const r = await t.operationData.getItem("config"), i =
|
|
15965
|
+
const r = await t.operationData.getItem("config"), i = Vi(r.template || "");
|
|
15966
15966
|
console.log("run with payload", e), console.log(i(e));
|
|
15967
15967
|
}
|
|
15968
15968
|
const X0 = {
|
|
@@ -16191,7 +16191,7 @@ class cw {
|
|
|
16191
16191
|
const i = Ro(r).map((a) => ({
|
|
16192
16192
|
id: se(a, "id"),
|
|
16193
16193
|
schemaRef: se(a, "schemaRef"),
|
|
16194
|
-
config:
|
|
16194
|
+
config: Nt(se(a, "data.config"))
|
|
16195
16195
|
}));
|
|
16196
16196
|
t(i);
|
|
16197
16197
|
}, {
|
|
@@ -16337,7 +16337,7 @@ class dw {
|
|
|
16337
16337
|
j(this, "operation");
|
|
16338
16338
|
j(this, "operationSchema");
|
|
16339
16339
|
j(this, "variables", []);
|
|
16340
|
-
this.operationManager = t, this.instance = r,
|
|
16340
|
+
this.operationManager = t, this.instance = r, Nn(this);
|
|
16341
16341
|
}
|
|
16342
16342
|
get schemaList() {
|
|
16343
16343
|
return this.operationManager.getOperationSchemaList();
|
|
@@ -16394,7 +16394,7 @@ const gw = D((e) => {
|
|
|
16394
16394
|
instance: l,
|
|
16395
16395
|
variables: s
|
|
16396
16396
|
} = e, c = dt(() => new dw(a, l), [a, l]);
|
|
16397
|
-
return
|
|
16397
|
+
return On(async () => {
|
|
16398
16398
|
await c.configOperation(o, s);
|
|
16399
16399
|
}, [o, c]), uw(c) ? /* @__PURE__ */ u(G, { children: [
|
|
16400
16400
|
/* @__PURE__ */ n(hw, { model: c, onClick: r }),
|
|
@@ -16411,7 +16411,7 @@ class fw {
|
|
|
16411
16411
|
j(this, "trigger");
|
|
16412
16412
|
j(this, "triggerSchema");
|
|
16413
16413
|
j(this, "sampleData");
|
|
16414
|
-
this.triggerManager = t, this.instance = r,
|
|
16414
|
+
this.triggerManager = t, this.instance = r, Nn(this);
|
|
16415
16415
|
}
|
|
16416
16416
|
get schemaList() {
|
|
16417
16417
|
return this.triggerManager.getTriggerSchemaList();
|
|
@@ -16481,7 +16481,7 @@ const yw = D(({
|
|
|
16481
16481
|
});
|
|
16482
16482
|
function Cw(e, t) {
|
|
16483
16483
|
const [r, i] = U([]);
|
|
16484
|
-
return
|
|
16484
|
+
return On(async () => {
|
|
16485
16485
|
const a = await e.getInteractionList();
|
|
16486
16486
|
i(a);
|
|
16487
16487
|
}, [t, e]), r;
|
|
@@ -16498,7 +16498,7 @@ const Sw = D(({
|
|
|
16498
16498
|
triggerRef: l,
|
|
16499
16499
|
operationRef: s
|
|
16500
16500
|
} = e, c = xw(t.triggerManager, r);
|
|
16501
|
-
if (
|
|
16501
|
+
if (On(async () => {
|
|
16502
16502
|
await c.configTrigger(l, i);
|
|
16503
16503
|
}, [c, l, i]), c.isReady()) {
|
|
16504
16504
|
const d = [...c.triggerSchema.payload, ...a];
|
|
@@ -16525,7 +16525,7 @@ const Sw = D(({
|
|
|
16525
16525
|
const {
|
|
16526
16526
|
data: p = 0,
|
|
16527
16527
|
loading: m
|
|
16528
|
-
} =
|
|
16528
|
+
} = Vn(async () => {
|
|
16529
16529
|
try {
|
|
16530
16530
|
return (await i.triggerManager.getTriggerSchemaList()).length;
|
|
16531
16531
|
} catch {
|
|
@@ -16534,7 +16534,7 @@ const Sw = D(({
|
|
|
16534
16534
|
});
|
|
16535
16535
|
return /* @__PURE__ */ u(S, { children: [
|
|
16536
16536
|
/* @__PURE__ */ n(Xt, { visible: m }),
|
|
16537
|
-
p === 0 && /* @__PURE__ */ n(
|
|
16537
|
+
p === 0 && /* @__PURE__ */ n(Vc, { icon: /* @__PURE__ */ n(Td, { size: 16 }), title: "Unavailable", color: "gray", children: "This visualization does not have available interactions to choose from" }),
|
|
16538
16538
|
s.map((h) => /* @__PURE__ */ n(Sw, { onRemove: d, instance: a, sampleData: o, variables: l, item: h, manager: e.interactionManager }, h.id)),
|
|
16539
16539
|
/* @__PURE__ */ n(I, { style: {
|
|
16540
16540
|
width: "fit-content"
|
|
@@ -16631,7 +16631,7 @@ function kl(e) {
|
|
|
16631
16631
|
}
|
|
16632
16632
|
function Tl(e) {
|
|
16633
16633
|
const [t, r] = U(!1), i = vs().getRequired(Re.instanceScope.migrator);
|
|
16634
|
-
return
|
|
16634
|
+
return On(async () => {
|
|
16635
16635
|
const a = i.status === Jn.notStarted;
|
|
16636
16636
|
r(i.status === Jn.done), i.status === Jn.notStarted && i.runMigration().then((o) => {
|
|
16637
16637
|
o === Sl.migrated && a && (e == null || e());
|
|
@@ -16658,7 +16658,7 @@ function Iw({
|
|
|
16658
16658
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
16659
16659
|
});
|
|
16660
16660
|
});
|
|
16661
|
-
return
|
|
16661
|
+
return On(async () => {
|
|
16662
16662
|
await i.instanceData.setItem(null, r.viz.conf);
|
|
16663
16663
|
}, [i, r.viz.type]), a ? /* @__PURE__ */ n(Ru, { ...t }) : /* @__PURE__ */ n(C, { children: "Checking update..." });
|
|
16664
16664
|
}
|
|
@@ -16772,10 +16772,10 @@ const _a = D(function({
|
|
|
16772
16772
|
panel: t,
|
|
16773
16773
|
data: o,
|
|
16774
16774
|
loading: p
|
|
16775
|
-
}, children: /* @__PURE__ */ u(
|
|
16775
|
+
}, children: /* @__PURE__ */ u(V, { className: "panel-root", p: 5, pt: 0, sx: {
|
|
16776
16776
|
...h
|
|
16777
16777
|
}, children: [
|
|
16778
|
-
/* @__PURE__ */ n(
|
|
16778
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
16779
16779
|
position: "absolute",
|
|
16780
16780
|
left: 0,
|
|
16781
16781
|
top: 0,
|
|
@@ -16787,7 +16787,7 @@ const _a = D(function({
|
|
|
16787
16787
|
/* @__PURE__ */ n(Ll, { viz: t.viz, data: o, loading: p, error: s, height: m, query: c })
|
|
16788
16788
|
] }) });
|
|
16789
16789
|
});
|
|
16790
|
-
const
|
|
16790
|
+
const Vw = $.forwardRef(({
|
|
16791
16791
|
h: e
|
|
16792
16792
|
}, t) => /* @__PURE__ */ n(H, { ref: t, className: "react-grid-customDragHandle", sx: {
|
|
16793
16793
|
userSelect: "none",
|
|
@@ -16799,7 +16799,7 @@ const Ow = $.forwardRef(({
|
|
|
16799
16799
|
"&:hover": {
|
|
16800
16800
|
color: "#228be6"
|
|
16801
16801
|
}
|
|
16802
|
-
}, variant: "transparent", children: /* @__PURE__ */ n(Dd, { size: 16 }) })),
|
|
16802
|
+
}, variant: "transparent", children: /* @__PURE__ */ n(Dd, { size: 16 }) })), Ow = $.forwardRef(({
|
|
16803
16803
|
handleAxis: e,
|
|
16804
16804
|
...t
|
|
16805
16805
|
}, r) => /* @__PURE__ */ n(H, { ref: r, className: "react-grid-customResizeHandle", sx: {
|
|
@@ -16830,13 +16830,13 @@ const Ow = $.forwardRef(({
|
|
|
16830
16830
|
}, [r]), l = (s, c, d, p) => {
|
|
16831
16831
|
d.h < 30 && (d.h = 30, p.h = 30), d.w < 4 && (d.w = 4, p.w = 4);
|
|
16832
16832
|
};
|
|
16833
|
-
return /* @__PURE__ */ n(Fw, { onLayoutChange: o, className: `dashboard-layout ${t}`, rowHeight: 1, cols: 36, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, layout: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ n(
|
|
16833
|
+
return /* @__PURE__ */ n(Fw, { onLayoutChange: o, className: `dashboard-layout ${t}`, rowHeight: 1, cols: 36, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, layout: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ n(Ow, {}), onResize: l, children: i.map((s, c) => /* @__PURE__ */ u("div", { "data-grid": {
|
|
16834
16834
|
...s.layout
|
|
16835
16835
|
}, className: "panel-grid-item", children: [
|
|
16836
|
-
/* @__PURE__ */ n(
|
|
16836
|
+
/* @__PURE__ */ n(Vw, { h: s.layout.h }),
|
|
16837
16837
|
/* @__PURE__ */ n(_a, { view: e, panel: s })
|
|
16838
16838
|
] }, s.id)) });
|
|
16839
|
-
}),
|
|
16839
|
+
}), Nw = ds(cs), Bw = D(function({
|
|
16840
16840
|
view: t,
|
|
16841
16841
|
className: r = "layout"
|
|
16842
16842
|
}) {
|
|
@@ -16844,7 +16844,7 @@ const Ow = $.forwardRef(({
|
|
|
16844
16844
|
panels: i,
|
|
16845
16845
|
layouts: a
|
|
16846
16846
|
} = te().panels.panelsByIDs(t.panelIDs);
|
|
16847
|
-
return /* @__PURE__ */ n(
|
|
16847
|
+
return /* @__PURE__ */ n(Nw, { className: `dashboard-layout ${r}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: a, children: i.map((o) => /* @__PURE__ */ n("div", { "data-grid": {
|
|
16848
16848
|
...o.layout
|
|
16849
16849
|
}, className: "panel-grid-item", children: /* @__PURE__ */ n(_a, { view: t, panel: o }) }, o.id)) });
|
|
16850
16850
|
});
|
|
@@ -16881,7 +16881,7 @@ const vD = {
|
|
|
16881
16881
|
var Il = /* @__PURE__ */ ((e) => (e.Select = "select", e.TreeSelect = "tree-select", e.MultiSelect = "multi-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Il || {});
|
|
16882
16882
|
const jw = D(({
|
|
16883
16883
|
children: e
|
|
16884
|
-
}) => /* @__PURE__ */ n(
|
|
16884
|
+
}) => /* @__PURE__ */ n(V, { pt: 10, pb: 100, children: e })), Gw = D(({
|
|
16885
16885
|
children: e,
|
|
16886
16886
|
view: t
|
|
16887
16887
|
}) => {
|
|
@@ -16944,18 +16944,18 @@ const jw = D(({
|
|
|
16944
16944
|
},
|
|
16945
16945
|
zIndex: 320
|
|
16946
16946
|
}), s = o.tabs.length === 0;
|
|
16947
|
-
return /* @__PURE__ */ u(
|
|
16947
|
+
return /* @__PURE__ */ u(V, { className: "preview-view-tabs", children: [
|
|
16948
16948
|
/* @__PURE__ */ u(b, { variant: o.variant, orientation: o.orientation, defaultValue: o.tabs.length > 0 ? o.tabs[0].id : "0", styles: Yw(o), children: [
|
|
16949
16949
|
/* @__PURE__ */ u(b.List, { grow: o.grow, children: [
|
|
16950
16950
|
o.tabs.map((c) => /* @__PURE__ */ n(b.Tab, { value: c.id, sx: Hw(c), children: c.name ?? c.id }, c.id)),
|
|
16951
|
-
/* @__PURE__ */ n(b.Tab, { onClick: o.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ n(
|
|
16951
|
+
/* @__PURE__ */ n(b.Tab, { onClick: o.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ n(Ne, { size: 18, color: "#228be6" }) })
|
|
16952
16952
|
] }),
|
|
16953
16953
|
o.tabs.map((c, d) => {
|
|
16954
16954
|
const p = i.views.findByID(c.view_id);
|
|
16955
16955
|
return /* @__PURE__ */ u(b.Panel, { value: c.id, sx: {
|
|
16956
16956
|
position: "relative"
|
|
16957
16957
|
}, children: [
|
|
16958
|
-
/* @__PURE__ */ u(
|
|
16958
|
+
/* @__PURE__ */ u(V, { sx: {
|
|
16959
16959
|
position: "absolute",
|
|
16960
16960
|
top: 0,
|
|
16961
16961
|
left: 0,
|
|
@@ -16963,7 +16963,7 @@ const jw = D(({
|
|
|
16963
16963
|
bottom: 0,
|
|
16964
16964
|
zIndex: 200
|
|
16965
16965
|
}, children: [
|
|
16966
|
-
/* @__PURE__ */ n(
|
|
16966
|
+
/* @__PURE__ */ n(Ot, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
|
|
16967
16967
|
/* @__PURE__ */ u(S, { mx: "auto", mt: 100, sx: {
|
|
16968
16968
|
width: "300px",
|
|
16969
16969
|
position: "relative",
|
|
@@ -17007,10 +17007,10 @@ const jw = D(({
|
|
|
17007
17007
|
return /* @__PURE__ */ n(Wi.Provider, { value: {
|
|
17008
17008
|
viewPanelInFullScreen: k.noop,
|
|
17009
17009
|
inFullScreen: !1
|
|
17010
|
-
}, children: /* @__PURE__ */ n(
|
|
17010
|
+
}, children: /* @__PURE__ */ n(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ n(Uw, { view: t, children: /* @__PURE__ */ u(V, { sx: {
|
|
17011
17011
|
position: "relative"
|
|
17012
17012
|
}, children: [
|
|
17013
|
-
/* @__PURE__ */ n(
|
|
17013
|
+
/* @__PURE__ */ n(V, { className: "dashboard-sticky-area", sx: {
|
|
17014
17014
|
position: "sticky",
|
|
17015
17015
|
top: "0px"
|
|
17016
17016
|
}, children: /* @__PURE__ */ n($s, { view: t }) }),
|
|
@@ -17053,7 +17053,7 @@ function Jw(e, t, r) {
|
|
|
17053
17053
|
}
|
|
17054
17054
|
const e_ = D(({
|
|
17055
17055
|
children: e
|
|
17056
|
-
}) => /* @__PURE__ */ n(
|
|
17056
|
+
}) => /* @__PURE__ */ n(V, { children: e })), t_ = D(({
|
|
17057
17057
|
children: e,
|
|
17058
17058
|
view: t
|
|
17059
17059
|
}) => {
|
|
@@ -17078,7 +17078,7 @@ const e_ = D(({
|
|
|
17078
17078
|
view: t
|
|
17079
17079
|
}) => {
|
|
17080
17080
|
const r = te(), i = t.config;
|
|
17081
|
-
return /* @__PURE__ */ u(
|
|
17081
|
+
return /* @__PURE__ */ u(V, { className: "render-view-tabs", children: [
|
|
17082
17082
|
/* @__PURE__ */ u(b, { variant: i.variant, orientation: i.orientation, defaultValue: i.tabs.length > 0 ? i.tabs[0].id : "0", styles: {
|
|
17083
17083
|
panel: {
|
|
17084
17084
|
padding: i.orientation === "horizontal" ? "16px 0px" : "0"
|
|
@@ -17120,16 +17120,16 @@ const e_ = D(({
|
|
|
17120
17120
|
return /* @__PURE__ */ n(Wi.Provider, { value: {
|
|
17121
17121
|
viewPanelInFullScreen: a,
|
|
17122
17122
|
inFullScreen: l
|
|
17123
|
-
}, children: /* @__PURE__ */ u(
|
|
17123
|
+
}, children: /* @__PURE__ */ u(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: [
|
|
17124
17124
|
l && /* @__PURE__ */ n(Kw, { view: t, panel: s, exitFullScreen: o }),
|
|
17125
|
-
/* @__PURE__ */ n(i_, { view: t, children: /* @__PURE__ */ u(
|
|
17125
|
+
/* @__PURE__ */ n(i_, { view: t, children: /* @__PURE__ */ u(V, { sx: {
|
|
17126
17126
|
position: "relative"
|
|
17127
17127
|
}, children: [
|
|
17128
|
-
!l && /* @__PURE__ */ n(
|
|
17128
|
+
!l && /* @__PURE__ */ n(V, { className: "dashboard-sticky-area", sx: {
|
|
17129
17129
|
position: "sticky",
|
|
17130
17130
|
top: "0px"
|
|
17131
17131
|
}, children: /* @__PURE__ */ n($s, { view: t }) }),
|
|
17132
|
-
!l && /* @__PURE__ */ n(
|
|
17132
|
+
!l && /* @__PURE__ */ n(Bw, { view: t })
|
|
17133
17133
|
] }) })
|
|
17134
17134
|
] }) });
|
|
17135
17135
|
});
|
|
@@ -17154,7 +17154,7 @@ function o_(e, t) {
|
|
|
17154
17154
|
let r = a_(e);
|
|
17155
17155
|
return r += "&key=" + t, xs.MD5(r).toString().toUpperCase();
|
|
17156
17156
|
}
|
|
17157
|
-
const
|
|
17157
|
+
const tt = {
|
|
17158
17158
|
baseURL: "http://localhost:31200",
|
|
17159
17159
|
app_id: "",
|
|
17160
17160
|
app_secret: "",
|
|
@@ -17189,10 +17189,19 @@ const rt = {
|
|
|
17189
17189
|
};
|
|
17190
17190
|
return ["POST", "PUT"].includes(e) && (s.data = a.string ? JSON.stringify(i) : i, s.data.authentication = this.getAuthentication(s.data)), Rt(s).then((c) => c.data).catch((c) => Promise.reject(c));
|
|
17191
17191
|
};
|
|
17192
|
+
},
|
|
17193
|
+
makeQueryENV: null,
|
|
17194
|
+
query(e) {
|
|
17195
|
+
return async (t, r = {}) => {
|
|
17196
|
+
var i;
|
|
17197
|
+
return t.env || (t.env = ((i = this.makeQueryENV) == null ? void 0 : i.call(this)) ?? {
|
|
17198
|
+
error: "failed to run makeQueryENV"
|
|
17199
|
+
}), this.getRequest("POST", e)("/query", t, r);
|
|
17200
|
+
};
|
|
17192
17201
|
}
|
|
17193
17202
|
};
|
|
17194
17203
|
function $l(e) {
|
|
17195
|
-
|
|
17204
|
+
tt.baseURL !== e.apiBaseURL && (tt.baseURL = e.apiBaseURL), e.app_id && (tt.app_id = e.app_id), e.app_secret && (tt.app_secret = e.app_secret), e.makeQueryENV && (tt.makeQueryENV = e.makeQueryENV);
|
|
17196
17205
|
}
|
|
17197
17206
|
const zl = f.model("FilterConfigModel_Checkbox", {
|
|
17198
17207
|
_name: f.literal("checkbox"),
|
|
@@ -17229,7 +17238,7 @@ const zl = f.model("FilterConfigModel_Checkbox", {
|
|
|
17229
17238
|
description: "",
|
|
17230
17239
|
default_value: !1
|
|
17231
17240
|
});
|
|
17232
|
-
var Se = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(Se || {}),
|
|
17241
|
+
var Se = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(Se || {}), Be = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TreeSelect = "tree-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Be || {});
|
|
17233
17242
|
f.model({
|
|
17234
17243
|
type: f.enumeration("DataSourceType", [Se.Postgresql, Se.MySQL, Se.HTTP]),
|
|
17235
17244
|
key: f.string,
|
|
@@ -17389,7 +17398,7 @@ const l_ = f.model("FilterConfigModel_DateRange", {
|
|
|
17389
17398
|
}
|
|
17390
17399
|
})), Lr = (e) => Ao(e, (t, r) => {
|
|
17391
17400
|
if (r !== void 0 && t)
|
|
17392
|
-
return
|
|
17401
|
+
return Nt(t);
|
|
17393
17402
|
}), Rl = f.compose("FilterConfigModel_MultiSelect", f.model({
|
|
17394
17403
|
_name: f.literal("multi-select"),
|
|
17395
17404
|
min_width: f.optional(f.string, ""),
|
|
@@ -17429,7 +17438,7 @@ const l_ = f.model("FilterConfigModel_DateRange", {
|
|
|
17429
17438
|
}
|
|
17430
17439
|
})).actions((e) => ({
|
|
17431
17440
|
afterCreate() {
|
|
17432
|
-
Et(e, gt(() =>
|
|
17441
|
+
Et(e, gt(() => Nt(e.default_selection), e.setDefaultSelection, {
|
|
17433
17442
|
fireImmediately: !0,
|
|
17434
17443
|
delay: 0
|
|
17435
17444
|
}));
|
|
@@ -17526,7 +17535,7 @@ const El = f.compose("FilterConfigModel_TreeSelect", f.model({
|
|
|
17526
17535
|
static_options: [],
|
|
17527
17536
|
options_query_id: "",
|
|
17528
17537
|
default_selection_count: 0
|
|
17529
|
-
}),
|
|
17538
|
+
}), Vl = f.compose("FilterConfigModel_Select", f.model({
|
|
17530
17539
|
_name: f.literal("select"),
|
|
17531
17540
|
default_value: f.string,
|
|
17532
17541
|
required: f.boolean,
|
|
@@ -17565,14 +17574,14 @@ const El = f.compose("FilterConfigModel_TreeSelect", f.model({
|
|
|
17565
17574
|
setWidth(t) {
|
|
17566
17575
|
e.width = t;
|
|
17567
17576
|
}
|
|
17568
|
-
})), g_ = () =>
|
|
17577
|
+
})), g_ = () => Vl.create({
|
|
17569
17578
|
_name: "select",
|
|
17570
17579
|
required: !1,
|
|
17571
17580
|
default_value: "",
|
|
17572
17581
|
static_options: [],
|
|
17573
17582
|
options_query_id: "",
|
|
17574
17583
|
default_selection_count: 0
|
|
17575
|
-
}),
|
|
17584
|
+
}), Ol = f.model("FilterConfigModel_TextInput", {
|
|
17576
17585
|
_name: f.literal("text-input"),
|
|
17577
17586
|
required: f.boolean,
|
|
17578
17587
|
default_value: f.string
|
|
@@ -17599,7 +17608,7 @@ const El = f.compose("FilterConfigModel_TreeSelect", f.model({
|
|
|
17599
17608
|
setDefaultValue(t) {
|
|
17600
17609
|
e.default_value = t;
|
|
17601
17610
|
}
|
|
17602
|
-
})), Fl = () =>
|
|
17611
|
+
})), Fl = () => Ol.create({
|
|
17603
17612
|
_name: "text-input",
|
|
17604
17613
|
required: !1,
|
|
17605
17614
|
default_value: ""
|
|
@@ -17610,18 +17619,18 @@ const El = f.compose("FilterConfigModel_TreeSelect", f.model({
|
|
|
17610
17619
|
order: f.number,
|
|
17611
17620
|
visibleInViewsIDs: f.array(f.string),
|
|
17612
17621
|
auto_submit: f.optional(f.boolean, !1),
|
|
17613
|
-
type: f.enumeration("DashboardFilterType", [
|
|
17614
|
-
config: f.union(
|
|
17622
|
+
type: f.enumeration("DashboardFilterType", [Be.Select, Be.MultiSelect, Be.TreeSelect, Be.TextInput, Be.Checkbox, Be.DateRange]),
|
|
17623
|
+
config: f.union(Vl, Rl, El, Ol, zl, Al)
|
|
17615
17624
|
}).views((e) => ({
|
|
17616
17625
|
get plainDefaultValue() {
|
|
17617
17626
|
const t = e.config.default_value;
|
|
17618
17627
|
return Array.isArray(t) ? [...t] : t;
|
|
17619
17628
|
},
|
|
17620
17629
|
get usingDefaultValue() {
|
|
17621
|
-
return e.type !==
|
|
17630
|
+
return e.type !== Be.TreeSelect;
|
|
17622
17631
|
},
|
|
17623
17632
|
get auto_submit_supported() {
|
|
17624
|
-
return [
|
|
17633
|
+
return [Be.Select, Be.Checkbox, Be.DateRange].includes(e.type);
|
|
17625
17634
|
}
|
|
17626
17635
|
})).views((e) => ({
|
|
17627
17636
|
get json() {
|
|
@@ -17643,7 +17652,7 @@ const El = f.compose("FilterConfigModel_TreeSelect", f.model({
|
|
|
17643
17652
|
order: a,
|
|
17644
17653
|
config: c.json,
|
|
17645
17654
|
auto_submit: l,
|
|
17646
|
-
visibleInViewsIDs:
|
|
17655
|
+
visibleInViewsIDs: Nt(o)
|
|
17647
17656
|
};
|
|
17648
17657
|
},
|
|
17649
17658
|
// FIXME: this is a temp workaround. auto_submit should be moved into config
|
|
@@ -17665,22 +17674,22 @@ const El = f.compose("FilterConfigModel_TreeSelect", f.model({
|
|
|
17665
17674
|
},
|
|
17666
17675
|
setType(t) {
|
|
17667
17676
|
switch (t) {
|
|
17668
|
-
case
|
|
17677
|
+
case Be.Select:
|
|
17669
17678
|
e.config = g_();
|
|
17670
17679
|
break;
|
|
17671
|
-
case
|
|
17680
|
+
case Be.MultiSelect:
|
|
17672
17681
|
e.config = u_();
|
|
17673
17682
|
break;
|
|
17674
|
-
case
|
|
17683
|
+
case Be.TreeSelect:
|
|
17675
17684
|
e.config = m_();
|
|
17676
17685
|
break;
|
|
17677
|
-
case
|
|
17686
|
+
case Be.TextInput:
|
|
17678
17687
|
e.config = Fl();
|
|
17679
17688
|
break;
|
|
17680
|
-
case
|
|
17689
|
+
case Be.Checkbox:
|
|
17681
17690
|
e.config = s_();
|
|
17682
17691
|
break;
|
|
17683
|
-
case
|
|
17692
|
+
case Be.DateRange:
|
|
17684
17693
|
e.config = c_();
|
|
17685
17694
|
break;
|
|
17686
17695
|
}
|
|
@@ -17808,18 +17817,18 @@ function y_(e) {
|
|
|
17808
17817
|
values: f_(e)
|
|
17809
17818
|
};
|
|
17810
17819
|
}
|
|
17811
|
-
const
|
|
17820
|
+
const Nl = "\uFEFF";
|
|
17812
17821
|
function v_(e, t) {
|
|
17813
|
-
const r = new Blob([
|
|
17822
|
+
const r = new Blob([Nl + t], {
|
|
17814
17823
|
type: "text/csv"
|
|
17815
17824
|
});
|
|
17816
|
-
|
|
17825
|
+
Bi(r, `${e}.csv`);
|
|
17817
17826
|
}
|
|
17818
17827
|
function w_(e, t) {
|
|
17819
17828
|
const r = new Blob([t], {
|
|
17820
17829
|
type: "application/json"
|
|
17821
17830
|
});
|
|
17822
|
-
|
|
17831
|
+
Bi(r, `${e}.json`);
|
|
17823
17832
|
}
|
|
17824
17833
|
function __(e) {
|
|
17825
17834
|
const t = new Zd();
|
|
@@ -17827,24 +17836,24 @@ function __(e) {
|
|
|
17827
17836
|
id: r,
|
|
17828
17837
|
data: i
|
|
17829
17838
|
}) => {
|
|
17830
|
-
t.file(`${r}.csv`,
|
|
17839
|
+
t.file(`${r}.csv`, Bl(i));
|
|
17831
17840
|
}), t.generateAsync({
|
|
17832
17841
|
type: "blob"
|
|
17833
17842
|
}).then((r) => {
|
|
17834
|
-
|
|
17843
|
+
Bi(r, "dashboard_data.zip");
|
|
17835
17844
|
});
|
|
17836
17845
|
}
|
|
17837
17846
|
function vo(e) {
|
|
17838
17847
|
return typeof e == "string" && e.includes(",") ? `"${e}"` : e;
|
|
17839
17848
|
}
|
|
17840
|
-
function
|
|
17849
|
+
function Bl(e) {
|
|
17841
17850
|
if (!Array.isArray(e) || e.length === 0)
|
|
17842
17851
|
return "";
|
|
17843
17852
|
const t = [], r = Object.keys(e[0]).map(vo);
|
|
17844
17853
|
return t.push(r.join(",")), e.forEach((i) => {
|
|
17845
17854
|
const a = Object.values(i).map(vo).join(",");
|
|
17846
17855
|
t.push(a);
|
|
17847
|
-
}),
|
|
17856
|
+
}), Nl + t.join(`
|
|
17848
17857
|
`);
|
|
17849
17858
|
}
|
|
17850
17859
|
const xn = {
|
|
@@ -18028,14 +18037,14 @@ async function E_({
|
|
|
18028
18037
|
sql: h,
|
|
18029
18038
|
pre_process: d
|
|
18030
18039
|
});
|
|
18031
|
-
let w = await
|
|
18040
|
+
let w = await tt.query(o)({
|
|
18032
18041
|
type: l,
|
|
18033
18042
|
key: s,
|
|
18034
18043
|
query: g
|
|
18035
18044
|
}, {});
|
|
18036
18045
|
return w = R_(p, w), w;
|
|
18037
18046
|
}
|
|
18038
|
-
async function
|
|
18047
|
+
async function V_({
|
|
18039
18048
|
context: e,
|
|
18040
18049
|
mock_context: t,
|
|
18041
18050
|
query: r,
|
|
@@ -18051,7 +18060,7 @@ async function O_({
|
|
|
18051
18060
|
} = r;
|
|
18052
18061
|
let m = L_(d, e, t, i);
|
|
18053
18062
|
console.groupCollapsed(`Request config for: ${c}`), console.log(m), console.groupEnd(), m = I_(a, m);
|
|
18054
|
-
const h = JSON.stringify(m), g = await
|
|
18063
|
+
const h = JSON.stringify(m), g = await tt.query(o)({
|
|
18055
18064
|
type: l,
|
|
18056
18065
|
key: s,
|
|
18057
18066
|
query: h
|
|
@@ -18061,7 +18070,7 @@ async function O_({
|
|
|
18061
18070
|
}
|
|
18062
18071
|
async function Da() {
|
|
18063
18072
|
try {
|
|
18064
|
-
return (await
|
|
18073
|
+
return (await tt.getRequest("POST")("/datasource/list", {
|
|
18065
18074
|
filter: {},
|
|
18066
18075
|
sort: [{
|
|
18067
18076
|
field: "create_time",
|
|
@@ -18076,7 +18085,7 @@ async function Da() {
|
|
|
18076
18085
|
return console.error(e), [];
|
|
18077
18086
|
}
|
|
18078
18087
|
}
|
|
18079
|
-
const
|
|
18088
|
+
const O_ = f.model("QueryModel", {
|
|
18080
18089
|
id: f.string,
|
|
18081
18090
|
name: f.string,
|
|
18082
18091
|
type: f.enumeration("DataSourceType", [Se.Postgresql, Se.MySQL, Se.HTTP]),
|
|
@@ -18194,7 +18203,7 @@ const V_ = f.model("QueryModel", {
|
|
|
18194
18203
|
setPostProcess(t) {
|
|
18195
18204
|
e.post_process = t;
|
|
18196
18205
|
}
|
|
18197
|
-
})), F_ = f.compose("QueryModel",
|
|
18206
|
+
})), F_ = f.compose("QueryModel", O_, f.model({
|
|
18198
18207
|
state: f.optional(f.enumeration(["idle", "loading", "error"]), "idle"),
|
|
18199
18208
|
data: f.optional(f.array(f.frozen()), []),
|
|
18200
18209
|
error: f.frozen()
|
|
@@ -18281,7 +18290,7 @@ const V_ = f.model("QueryModel", {
|
|
|
18281
18290
|
mock_context: i,
|
|
18282
18291
|
filterValues: a
|
|
18283
18292
|
} = Fe(e).content.payloadForSQL;
|
|
18284
|
-
e.data = yield* Gt(
|
|
18293
|
+
e.data = yield* Gt(V_({
|
|
18285
18294
|
context: r,
|
|
18286
18295
|
mock_context: i,
|
|
18287
18296
|
query: e.json,
|
|
@@ -18367,7 +18376,7 @@ const V_ = f.model("QueryModel", {
|
|
|
18367
18376
|
const {
|
|
18368
18377
|
name: i,
|
|
18369
18378
|
data: a
|
|
18370
|
-
} = r, o =
|
|
18379
|
+
} = r, o = Bl(a);
|
|
18371
18380
|
v_(i, o);
|
|
18372
18381
|
},
|
|
18373
18382
|
refetchDataByQueryID(t) {
|
|
@@ -18382,7 +18391,7 @@ const V_ = f.model("QueryModel", {
|
|
|
18382
18391
|
const r = e.current.find((i) => i.id === t);
|
|
18383
18392
|
r && (Qd(r), e.current.remove(r));
|
|
18384
18393
|
}
|
|
18385
|
-
})),
|
|
18394
|
+
})), N_ = f.model("SQLSnippetModel", {
|
|
18386
18395
|
key: f.string,
|
|
18387
18396
|
value: f.string
|
|
18388
18397
|
}).views((e) => ({
|
|
@@ -18406,8 +18415,8 @@ const V_ = f.model("QueryModel", {
|
|
|
18406
18415
|
setValue(t) {
|
|
18407
18416
|
e.value = t;
|
|
18408
18417
|
}
|
|
18409
|
-
})),
|
|
18410
|
-
current: f.optional(f.array(
|
|
18418
|
+
})), B_ = f.model("SQLSnippetsModel", {
|
|
18419
|
+
current: f.optional(f.array(N_), [])
|
|
18411
18420
|
}).views((e) => ({
|
|
18412
18421
|
get json() {
|
|
18413
18422
|
return e.current.map((t) => t.json);
|
|
@@ -18684,7 +18693,7 @@ const V_ = f.model("QueryModel", {
|
|
|
18684
18693
|
var r;
|
|
18685
18694
|
(r = e.controllers.tables) == null || r.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
|
|
18686
18695
|
try {
|
|
18687
|
-
const i = yield* Gt(
|
|
18696
|
+
const i = yield* Gt(tt.query(e.controllers.tables.signal)({
|
|
18688
18697
|
type: e.type,
|
|
18689
18698
|
key: e.key,
|
|
18690
18699
|
query: e.tables.sql
|
|
@@ -18707,7 +18716,7 @@ const V_ = f.model("QueryModel", {
|
|
|
18707
18716
|
var r;
|
|
18708
18717
|
(r = e.controllers.columns) == null || r.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
|
|
18709
18718
|
try {
|
|
18710
|
-
e.columns.data = yield* Gt(
|
|
18719
|
+
e.columns.data = yield* Gt(tt.query(e.controllers.columns.signal)({
|
|
18711
18720
|
type: e.type,
|
|
18712
18721
|
key: e.key,
|
|
18713
18722
|
query: e.columns.sql
|
|
@@ -18726,7 +18735,7 @@ const V_ = f.model("QueryModel", {
|
|
|
18726
18735
|
var r;
|
|
18727
18736
|
(r = e.controllers.indexes) == null || r.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
|
|
18728
18737
|
try {
|
|
18729
|
-
e.indexes.data = yield* Gt(
|
|
18738
|
+
e.indexes.data = yield* Gt(tt.query(e.controllers.indexes.signal)({
|
|
18730
18739
|
type: e.type,
|
|
18731
18740
|
key: e.key,
|
|
18732
18741
|
query: e.indexes.sql
|
|
@@ -18747,14 +18756,14 @@ const V_ = f.model("QueryModel", {
|
|
|
18747
18756
|
const r = e.tableData;
|
|
18748
18757
|
r.state = "loading";
|
|
18749
18758
|
try {
|
|
18750
|
-
r.data = yield* Gt(
|
|
18759
|
+
r.data = yield* Gt(tt.query(e.controllers.tableData.signal)({
|
|
18751
18760
|
type: e.type,
|
|
18752
18761
|
key: e.key,
|
|
18753
18762
|
query: r.sql
|
|
18754
18763
|
}, {}));
|
|
18755
18764
|
const [{
|
|
18756
18765
|
total: a
|
|
18757
|
-
}] = yield* Gt(
|
|
18766
|
+
}] = yield* Gt(tt.query(e.controllers.tableData.signal)({
|
|
18758
18767
|
type: e.type,
|
|
18759
18768
|
key: e.key,
|
|
18760
18769
|
query: r.countSql
|
|
@@ -18865,7 +18874,7 @@ const X_ = f.model("EditorModel", {
|
|
|
18865
18874
|
}, {
|
|
18866
18875
|
label: "Filters",
|
|
18867
18876
|
value: "_FILTERS_",
|
|
18868
|
-
Icon:
|
|
18877
|
+
Icon: No,
|
|
18869
18878
|
children: [...r.options, Un("_Add_A_Filter_")],
|
|
18870
18879
|
_type: "GROUP"
|
|
18871
18880
|
}, {
|
|
@@ -18883,7 +18892,7 @@ const X_ = f.model("EditorModel", {
|
|
|
18883
18892
|
}, {
|
|
18884
18893
|
label: "Views",
|
|
18885
18894
|
value: "_VIEWS_",
|
|
18886
|
-
Icon:
|
|
18895
|
+
Icon: Bo,
|
|
18887
18896
|
children: [...i.editorOptions, Un("_Add_A_VIEW_")],
|
|
18888
18897
|
_type: "GROUP"
|
|
18889
18898
|
}];
|
|
@@ -18991,7 +19000,7 @@ class J_ {
|
|
|
18991
19000
|
constructor(t) {
|
|
18992
19001
|
j(this, "origin");
|
|
18993
19002
|
j(this, "copy");
|
|
18994
|
-
this.origin = t, this.copy = Ud(t),
|
|
19003
|
+
this.origin = t, this.copy = Ud(t), Nn(this, {}, {
|
|
18995
19004
|
autoBind: !0,
|
|
18996
19005
|
deep: !1
|
|
18997
19006
|
});
|
|
@@ -19610,7 +19619,7 @@ const g1 = f.model({
|
|
|
19610
19619
|
// schema version
|
|
19611
19620
|
filters: x_,
|
|
19612
19621
|
queries: P_,
|
|
19613
|
-
sqlSnippets:
|
|
19622
|
+
sqlSnippets: B_,
|
|
19614
19623
|
views: m1,
|
|
19615
19624
|
panels: s1,
|
|
19616
19625
|
mock_context: Z_,
|
|
@@ -19905,11 +19914,11 @@ const x1 = D(({
|
|
|
19905
19914
|
const a = JSON.stringify(r.json, null, 2), o = `${t.name}__${r.name}`;
|
|
19906
19915
|
w_(o, a);
|
|
19907
19916
|
};
|
|
19908
|
-
return /* @__PURE__ */ u(
|
|
19909
|
-
/* @__PURE__ */ n(
|
|
19910
|
-
/* @__PURE__ */ u(
|
|
19911
|
-
/* @__PURE__ */ n(
|
|
19912
|
-
/* @__PURE__ */ n(
|
|
19917
|
+
return /* @__PURE__ */ u(Oe, { shadow: "md", width: 200, trigger: "hover", openDelay: 100, closeDelay: 400, withinPortal: !0, zIndex: 310, children: [
|
|
19918
|
+
/* @__PURE__ */ n(Oe.Target, { children: /* @__PURE__ */ n(H, { variant: "light", color: "blue", children: /* @__PURE__ */ n(id, { size: 14 }) }) }),
|
|
19919
|
+
/* @__PURE__ */ u(Oe.Dropdown, { children: [
|
|
19920
|
+
/* @__PURE__ */ n(Oe.Item, { icon: /* @__PURE__ */ n(ad, { size: 14 }), onClick: r.queries.downloadAllData, children: "Download Data" }),
|
|
19921
|
+
/* @__PURE__ */ n(Oe.Item, { icon: /* @__PURE__ */ n(od, { size: 14 }), onClick: i, children: "Download Schema" }),
|
|
19913
19922
|
e
|
|
19914
19923
|
] })
|
|
19915
19924
|
] });
|
|
@@ -19940,8 +19949,8 @@ const x1 = D(({
|
|
|
19940
19949
|
borderTopRightRadius: 0,
|
|
19941
19950
|
borderBottomRightRadius: 0
|
|
19942
19951
|
}, children: "Save Changes" }),
|
|
19943
|
-
/* @__PURE__ */ u(
|
|
19944
|
-
/* @__PURE__ */ n(
|
|
19952
|
+
/* @__PURE__ */ u(Oe, { width: 200, trigger: "hover", openDelay: 100, closeDelay: 400, withinPortal: !0, zIndex: 320, disabled: !a, children: [
|
|
19953
|
+
/* @__PURE__ */ n(Oe.Target, { children: /* @__PURE__ */ n(H, { variant: "default", disabled: !a, sx: {
|
|
19945
19954
|
height: "30px",
|
|
19946
19955
|
borderTopLeftRadius: 0,
|
|
19947
19956
|
borderBottomLeftRadius: 0,
|
|
@@ -19950,7 +19959,7 @@ const x1 = D(({
|
|
|
19950
19959
|
stroke: "none"
|
|
19951
19960
|
}
|
|
19952
19961
|
}, children: /* @__PURE__ */ n(sd, { size: 18 }) }) }),
|
|
19953
|
-
/* @__PURE__ */ n(
|
|
19962
|
+
/* @__PURE__ */ n(Oe.Dropdown, { children: /* @__PURE__ */ n(Oe.Item, { icon: /* @__PURE__ */ n(qo, { size: 14, color: "red" }), disabled: !a, onClick: i, children: "Revert Changes" }) })
|
|
19954
19963
|
] })
|
|
19955
19964
|
] });
|
|
19956
19965
|
}), v1 = D(({
|
|
@@ -19979,7 +19988,7 @@ const x1 = D(({
|
|
|
19979
19988
|
withCloseButton: !1
|
|
19980
19989
|
});
|
|
19981
19990
|
}, c = a.content.changed;
|
|
19982
|
-
return /* @__PURE__ */ n(
|
|
19991
|
+
return /* @__PURE__ */ n(Oc, { height: 60, px: "md", py: 0, sx: {
|
|
19983
19992
|
zIndex: 299
|
|
19984
19993
|
}, children: /* @__PURE__ */ u(v, { position: "apart", sx: {
|
|
19985
19994
|
height: 60,
|
|
@@ -20012,7 +20021,7 @@ const x1 = D(({
|
|
|
20012
20021
|
background: "rgba(233,236,239, 0.15)"
|
|
20013
20022
|
}, _1 = D(() => {
|
|
20014
20023
|
const e = te();
|
|
20015
|
-
return /* @__PURE__ */ n(
|
|
20024
|
+
return /* @__PURE__ */ n(V, { sx: w1, pl: {
|
|
20016
20025
|
base: 200,
|
|
20017
20026
|
xs: 200,
|
|
20018
20027
|
sm: 200,
|
|
@@ -20030,8 +20039,8 @@ const x1 = D(({
|
|
|
20030
20039
|
borderBottom: "1px solid #e9ecef",
|
|
20031
20040
|
background: "rgb(231, 245, 255)"
|
|
20032
20041
|
}, children: "Add a Panel" }),
|
|
20033
|
-
/* @__PURE__ */ n(
|
|
20034
|
-
/* @__PURE__ */ n(
|
|
20042
|
+
/* @__PURE__ */ n(V, {}),
|
|
20043
|
+
/* @__PURE__ */ n(V, {})
|
|
20035
20044
|
] }) });
|
|
20036
20045
|
}), C1 = D((e) => /* @__PURE__ */ u(G, { children: [
|
|
20037
20046
|
/* @__PURE__ */ n(v1, { ...e }),
|
|
@@ -20209,7 +20218,7 @@ function E1(e) {
|
|
|
20209
20218
|
const r = $1(e.views, e.panels.list);
|
|
20210
20219
|
return [...t, ...r];
|
|
20211
20220
|
}
|
|
20212
|
-
function
|
|
20221
|
+
function V1({
|
|
20213
20222
|
nodeMap: e,
|
|
20214
20223
|
nodes: t,
|
|
20215
20224
|
edges: r
|
|
@@ -20223,7 +20232,7 @@ function O1({
|
|
|
20223
20232
|
}, La));
|
|
20224
20233
|
});
|
|
20225
20234
|
}
|
|
20226
|
-
function
|
|
20235
|
+
function O1({
|
|
20227
20236
|
nodeMap: e,
|
|
20228
20237
|
nodes: t,
|
|
20229
20238
|
edges: r
|
|
@@ -20266,7 +20275,7 @@ function P1({
|
|
|
20266
20275
|
l.position.x = Ul(s, Ia, L1), l.position.y = 0 - D1 - Zl;
|
|
20267
20276
|
});
|
|
20268
20277
|
}
|
|
20269
|
-
function
|
|
20278
|
+
function N1({
|
|
20270
20279
|
nodeMap: e,
|
|
20271
20280
|
nodes: t,
|
|
20272
20281
|
edges: r
|
|
@@ -20276,12 +20285,12 @@ function B1({
|
|
|
20276
20285
|
nodes: t,
|
|
20277
20286
|
edges: r
|
|
20278
20287
|
};
|
|
20279
|
-
return P1(i),
|
|
20288
|
+
return P1(i), O1(i), V1(i), F1(i), {
|
|
20280
20289
|
nodes: t,
|
|
20281
20290
|
edges: r
|
|
20282
20291
|
};
|
|
20283
20292
|
}
|
|
20284
|
-
function
|
|
20293
|
+
function B1(e) {
|
|
20285
20294
|
const t = E1(e), r = k.keyBy(t, (c) => c.id), {
|
|
20286
20295
|
edges: i,
|
|
20287
20296
|
edgeNodes: a
|
|
@@ -20290,12 +20299,12 @@ function N1(e) {
|
|
|
20290
20299
|
nodes: o,
|
|
20291
20300
|
nodeMap: l
|
|
20292
20301
|
};
|
|
20293
|
-
return
|
|
20302
|
+
return N1(s);
|
|
20294
20303
|
}
|
|
20295
20304
|
const qr = {
|
|
20296
|
-
"builtin:op:open-link": /* @__PURE__ */ n(
|
|
20297
|
-
"builtin:op:set_filter_values": /* @__PURE__ */ n(
|
|
20298
|
-
"builtin:op:clear_filter_values": /* @__PURE__ */ n(
|
|
20305
|
+
"builtin:op:open-link": /* @__PURE__ */ n(Or, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ n(dd, { size: 14 }) }),
|
|
20306
|
+
"builtin:op:set_filter_values": /* @__PURE__ */ n(Or, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ n(ud, { size: 14 }) }),
|
|
20307
|
+
"builtin:op:clear_filter_values": /* @__PURE__ */ n(Or, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ n(hd, { size: 14 }) })
|
|
20299
20308
|
};
|
|
20300
20309
|
function q1(e) {
|
|
20301
20310
|
const t = [];
|
|
@@ -20354,7 +20363,7 @@ const W1 = Ic(({
|
|
|
20354
20363
|
const o = L(() => q1(e.interactions), [e.interactions]);
|
|
20355
20364
|
return /* @__PURE__ */ u(G, { children: [
|
|
20356
20365
|
/* @__PURE__ */ n(to, { type: "target", position: i, isConnectable: t }),
|
|
20357
|
-
/* @__PURE__ */ n(
|
|
20366
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
20358
20367
|
position: "absolute",
|
|
20359
20368
|
top: 0,
|
|
20360
20369
|
right: 0
|
|
@@ -20372,7 +20381,7 @@ const j1 = {
|
|
|
20372
20381
|
const e = te(), {
|
|
20373
20382
|
edges: t,
|
|
20374
20383
|
nodes: r
|
|
20375
|
-
} =
|
|
20384
|
+
} = B1(e);
|
|
20376
20385
|
return /* @__PURE__ */ u(eu, { nodes: r, edges: t, onNodesChange: k.noop, onEdgesChange: k.noop, onConnect: k.noop, className: "interactions-viewer", fitView: !0, nodeTypes: j1, children: [
|
|
20377
20386
|
/* @__PURE__ */ n(tu, {}),
|
|
20378
20387
|
/* @__PURE__ */ n(nu, {}),
|
|
@@ -20439,7 +20448,7 @@ function Q1({
|
|
|
20439
20448
|
active: r,
|
|
20440
20449
|
openSettings: i
|
|
20441
20450
|
}) {
|
|
20442
|
-
return /* @__PURE__ */ u(
|
|
20451
|
+
return /* @__PURE__ */ u(V, { sx: {
|
|
20443
20452
|
position: "relative"
|
|
20444
20453
|
}, children: [
|
|
20445
20454
|
/* @__PURE__ */ n(Fc, { sx: (a) => ({
|
|
@@ -20471,7 +20480,7 @@ const U1 = D(() => {
|
|
|
20471
20480
|
const e = De(), t = te(), r = He((a) => () => t.views.setIDOfVIE(a), [t]), i = (a) => {
|
|
20472
20481
|
e.editor.open(["_VIEWS_", a]);
|
|
20473
20482
|
};
|
|
20474
|
-
return /* @__PURE__ */ u(
|
|
20483
|
+
return /* @__PURE__ */ u(V, { sx: {
|
|
20475
20484
|
position: "relative"
|
|
20476
20485
|
}, children: [
|
|
20477
20486
|
t.views.options.map((a) => /* @__PURE__ */ n(Q1, { active: t.views.idOfVIE === a.value, name: a.label, onClick: r(a.value), openSettings: () => i(a.value) }, a.value)),
|
|
@@ -20518,7 +20527,7 @@ const U1 = D(() => {
|
|
|
20518
20527
|
}, children: [
|
|
20519
20528
|
/* @__PURE__ */ n(Ee, { label: "Filters", withinPortal: !0, children: /* @__PURE__ */ n(H, { variant: "default", radius: 0, size: "md", sx: {
|
|
20520
20529
|
height: "30px"
|
|
20521
|
-
}, onClick: i, children: /* @__PURE__ */ n(
|
|
20530
|
+
}, onClick: i, children: /* @__PURE__ */ n(No, { size: 20 }) }) }),
|
|
20522
20531
|
/* @__PURE__ */ n(Ee, { label: "Queries", withinPortal: !0, children: /* @__PURE__ */ n(H, { variant: "default", radius: 0, size: "md", sx: {
|
|
20523
20532
|
height: "30px"
|
|
20524
20533
|
}, onClick: r, children: /* @__PURE__ */ n(cr, { size: 20 }) }) }),
|
|
@@ -20634,7 +20643,7 @@ const U1 = D(() => {
|
|
|
20634
20643
|
minHeight: "50px"
|
|
20635
20644
|
}, children: [
|
|
20636
20645
|
t.usingQuery && /* @__PURE__ */ u(G, { children: [
|
|
20637
|
-
/* @__PURE__ */ n(
|
|
20646
|
+
/* @__PURE__ */ n(Ot, { opacity: 0.8, color: "#000", sx: {
|
|
20638
20647
|
left: "-5px",
|
|
20639
20648
|
right: "-5px",
|
|
20640
20649
|
top: "-5px",
|
|
@@ -20699,7 +20708,7 @@ const U1 = D(() => {
|
|
|
20699
20708
|
minHeight: "50px"
|
|
20700
20709
|
}, children: [
|
|
20701
20710
|
t.usingQuery && /* @__PURE__ */ u(G, { children: [
|
|
20702
|
-
/* @__PURE__ */ n(
|
|
20711
|
+
/* @__PURE__ */ n(Ot, { opacity: 0.8, color: "#000", sx: {
|
|
20703
20712
|
left: "-5px",
|
|
20704
20713
|
right: "-5px",
|
|
20705
20714
|
top: "-5px",
|
|
@@ -20782,7 +20791,7 @@ const U1 = D(() => {
|
|
|
20782
20791
|
const [r, i] = $.useState(t.plainDefaultValue);
|
|
20783
20792
|
return $.useEffect(() => {
|
|
20784
20793
|
i(t.plainDefaultValue);
|
|
20785
|
-
}, [t]), /* @__PURE__ */ u(
|
|
20794
|
+
}, [t]), /* @__PURE__ */ u(V, { sx: {
|
|
20786
20795
|
maxWidth: "480px"
|
|
20787
20796
|
}, children: [
|
|
20788
20797
|
/* @__PURE__ */ n(C, { pb: "md", color: "gray", children: "Preview" }),
|
|
@@ -20820,7 +20829,7 @@ const U1 = D(() => {
|
|
|
20820
20829
|
}) {
|
|
20821
20830
|
const r = te(), i = $.useMemo(() => lC[t.type], [t.type]);
|
|
20822
20831
|
return /* @__PURE__ */ u(v, { grow: !0, spacing: 20, align: "top", children: [
|
|
20823
|
-
/* @__PURE__ */ u(
|
|
20832
|
+
/* @__PURE__ */ u(V, { sx: {
|
|
20824
20833
|
maxWidth: "600px"
|
|
20825
20834
|
}, children: [
|
|
20826
20835
|
/* @__PURE__ */ n(C, { pb: "md", color: "gray", children: "Edit" }),
|
|
@@ -20891,7 +20900,7 @@ const U1 = D(() => {
|
|
|
20891
20900
|
zIndex: 320
|
|
20892
20901
|
});
|
|
20893
20902
|
}, children: "Delete this filter" }) }),
|
|
20894
|
-
/* @__PURE__ */ n(
|
|
20903
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
20895
20904
|
flexGrow: 1,
|
|
20896
20905
|
maxHeight: "calc(100% - 52px)",
|
|
20897
20906
|
overflow: "auto"
|
|
@@ -21055,7 +21064,7 @@ function ec({
|
|
|
21055
21064
|
columnResizeMode: "onChange",
|
|
21056
21065
|
getCoreRowModel: fs()
|
|
21057
21066
|
});
|
|
21058
|
-
return e.length === 0 ? /* @__PURE__ */ n(
|
|
21067
|
+
return e.length === 0 ? /* @__PURE__ */ n(V, { sx: {
|
|
21059
21068
|
height: "5em"
|
|
21060
21069
|
} }) : /* @__PURE__ */ n(Qe, { children: /* @__PURE__ */ u(Ft, { sx: xC, children: [
|
|
21061
21070
|
/* @__PURE__ */ n("thead", { children: r.getHeaderGroups().map((i) => /* @__PURE__ */ n("tr", { children: i.headers.map((a) => /* @__PURE__ */ u("th", { style: {
|
|
@@ -21097,7 +21106,7 @@ const tc = D(function({
|
|
|
21097
21106
|
/* @__PURE__ */ n(H, { variant: "subtle", color: "blue", disabled: o || d, onClick: s, children: /* @__PURE__ */ n(ss, { size: 15 }) })
|
|
21098
21107
|
] })
|
|
21099
21108
|
] }),
|
|
21100
|
-
/* @__PURE__ */ u(
|
|
21109
|
+
/* @__PURE__ */ u(V, { sx: {
|
|
21101
21110
|
position: "relative",
|
|
21102
21111
|
overflow: "auto"
|
|
21103
21112
|
}, children: [
|
|
@@ -21161,7 +21170,7 @@ const tc = D(function({
|
|
|
21161
21170
|
}
|
|
21162
21171
|
}
|
|
21163
21172
|
} = We();
|
|
21164
|
-
return /* @__PURE__ */ n(Qe, { children: /* @__PURE__ */ n(
|
|
21173
|
+
return /* @__PURE__ */ n(Qe, { children: /* @__PURE__ */ n(V, { sx: {
|
|
21165
21174
|
height: "100%",
|
|
21166
21175
|
flexGrow: 0,
|
|
21167
21176
|
flexShrink: 0,
|
|
@@ -21212,7 +21221,7 @@ class _C {
|
|
|
21212
21221
|
constructor(t) {
|
|
21213
21222
|
j(this, "panel");
|
|
21214
21223
|
j(this, "selected");
|
|
21215
|
-
this.panel = t,
|
|
21224
|
+
this.panel = t, Nn(this, {}, {
|
|
21216
21225
|
deep: !1,
|
|
21217
21226
|
autoBind: !0
|
|
21218
21227
|
});
|
|
@@ -21225,7 +21234,7 @@ class _C {
|
|
|
21225
21234
|
this.panel.addVariable(Pe({
|
|
21226
21235
|
...Wr,
|
|
21227
21236
|
name: `${Wr.name}${t || ""}`
|
|
21228
|
-
})), this.selected =
|
|
21237
|
+
})), this.selected = Vo(this.panel.variables);
|
|
21229
21238
|
}
|
|
21230
21239
|
select(t) {
|
|
21231
21240
|
this.selected = t;
|
|
@@ -21255,7 +21264,7 @@ const SC = $.forwardRef(function({
|
|
|
21255
21264
|
const d = k.cloneDeep(t);
|
|
21256
21265
|
k.set(d, s, c), r(d);
|
|
21257
21266
|
};
|
|
21258
|
-
return /* @__PURE__ */ u(
|
|
21267
|
+
return /* @__PURE__ */ u(V, { px: "sm", py: "md", ref: o, children: [
|
|
21259
21268
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
21260
21269
|
/* @__PURE__ */ n(z, { label: "Name", required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
|
|
21261
21270
|
/* @__PURE__ */ n(X, { label: "Data Field", required: !0, data: i, value: t.data_field, onChange: (s) => l("data_field", s) })
|
|
@@ -21330,7 +21339,7 @@ const SC = $.forwardRef(function({
|
|
|
21330
21339
|
} = nc();
|
|
21331
21340
|
return /* @__PURE__ */ u(v, { className: t.root, noWrap: !0, align: "start", children: [
|
|
21332
21341
|
/* @__PURE__ */ n(Ei, { withBorder: !0, p: "md", className: "var-list-container", children: /* @__PURE__ */ u(S, { justify: "space-between", children: [
|
|
21333
|
-
/* @__PURE__ */ n(
|
|
21342
|
+
/* @__PURE__ */ n(V, { className: "var-list-actions", children: /* @__PURE__ */ n(I, { variant: "light", size: "sm", onClick: e.addNew, fullWidth: !0, children: "Add Variable" }) }),
|
|
21334
21343
|
/* @__PURE__ */ n(TC, { uiModel: e })
|
|
21335
21344
|
] }) }),
|
|
21336
21345
|
e.selected ? /* @__PURE__ */ n(G, { children: /* @__PURE__ */ n($C, { uiModel: e, variable: e.selected }) }) : /* @__PURE__ */ n("span", { children: "Select or create a new variable on right side" })
|
|
@@ -21367,7 +21376,7 @@ function EC(e, t) {
|
|
|
21367
21376
|
return null;
|
|
21368
21377
|
}
|
|
21369
21378
|
}
|
|
21370
|
-
function
|
|
21379
|
+
function VC() {
|
|
21371
21380
|
const {
|
|
21372
21381
|
data: e,
|
|
21373
21382
|
panel: {
|
|
@@ -21400,7 +21409,7 @@ function OC() {
|
|
|
21400
21409
|
return console.info(se(w, "message")), null;
|
|
21401
21410
|
}
|
|
21402
21411
|
}
|
|
21403
|
-
const
|
|
21412
|
+
const OC = D(() => {
|
|
21404
21413
|
const {
|
|
21405
21414
|
data: e,
|
|
21406
21415
|
panel: {
|
|
@@ -21422,7 +21431,7 @@ const VC = D(() => {
|
|
|
21422
21431
|
}, o = $.useMemo(() => {
|
|
21423
21432
|
var d;
|
|
21424
21433
|
return (d = _o.find((p) => p.value === t.type)) == null ? void 0 : d.Panel;
|
|
21425
|
-
}, [t.type, _o]), l =
|
|
21434
|
+
}, [t.type, _o]), l = VC(), s = o ? sr(o, {
|
|
21426
21435
|
data: e,
|
|
21427
21436
|
conf: t.conf,
|
|
21428
21437
|
setConf: t.setConf
|
|
@@ -21456,7 +21465,7 @@ const VC = D(() => {
|
|
|
21456
21465
|
e.moveToView(t, i), s();
|
|
21457
21466
|
};
|
|
21458
21467
|
return /* @__PURE__ */ u(G, { children: [
|
|
21459
|
-
/* @__PURE__ */ n(I, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ n(
|
|
21468
|
+
/* @__PURE__ */ n(I, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ n(Bo, { size: 14 }), children: "Move into Another View" }),
|
|
21460
21469
|
/* @__PURE__ */ n(Te, { opened: o, onClose: s, title: "Move panel into another view", zIndex: 320, overflow: "inside", children: /* @__PURE__ */ u(S, { sx: {
|
|
21461
21470
|
maxHeight: "calc(100vh - 185px)",
|
|
21462
21471
|
overflow: "hidden"
|
|
@@ -21493,24 +21502,24 @@ const VC = D(() => {
|
|
|
21493
21502
|
width: "100%",
|
|
21494
21503
|
height: "100%"
|
|
21495
21504
|
}, children: [
|
|
21496
|
-
/* @__PURE__ */ n(
|
|
21505
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
21497
21506
|
maxWidth: "calc(100% - 610px - 10px)",
|
|
21498
21507
|
height: "100%",
|
|
21499
21508
|
overflow: "auto"
|
|
21500
21509
|
}, children: e }),
|
|
21501
21510
|
/* @__PURE__ */ n(wC, {})
|
|
21502
21511
|
] });
|
|
21503
|
-
function
|
|
21512
|
+
function NC(e) {
|
|
21504
21513
|
return !["richText", "button"].includes(e);
|
|
21505
21514
|
}
|
|
21506
|
-
const
|
|
21515
|
+
const BC = D(({
|
|
21507
21516
|
panel: e
|
|
21508
21517
|
}) => {
|
|
21509
21518
|
const t = Dt(), r = De(), i = te(), [a, o] = U("Data"), {
|
|
21510
21519
|
data: l,
|
|
21511
21520
|
state: s,
|
|
21512
21521
|
error: c
|
|
21513
|
-
} = i.getDataStuffByID(e.queryID), d = i.queries.findByID(e.queryID), m =
|
|
21522
|
+
} = i.getDataStuffByID(e.queryID), d = i.queries.findByID(e.queryID), m = NC(e.viz.type) && s === "loading", h = m || c || !d || !!d.stateMessage, g = r.editor.path[1];
|
|
21514
21523
|
q(() => {
|
|
21515
21524
|
o((T) => h && T === "Visualization" ? "Data" : T);
|
|
21516
21525
|
}, [e.id, h]);
|
|
@@ -21563,7 +21572,7 @@ const NC = D(({
|
|
|
21563
21572
|
] }),
|
|
21564
21573
|
/* @__PURE__ */ n(b.Panel, { value: "Panel", children: /* @__PURE__ */ n(Co, { children: /* @__PURE__ */ n(fC, {}) }) }),
|
|
21565
21574
|
/* @__PURE__ */ n(b.Panel, { value: "Variables", children: /* @__PURE__ */ n(MC, {}) }),
|
|
21566
|
-
/* @__PURE__ */ n(b.Panel, { value: "Visualization", children: /* @__PURE__ */ n(Qe, { children: /* @__PURE__ */ n(Co, { children: /* @__PURE__ */ n(
|
|
21575
|
+
/* @__PURE__ */ n(b.Panel, { value: "Visualization", children: /* @__PURE__ */ n(Qe, { children: /* @__PURE__ */ n(Co, { children: /* @__PURE__ */ n(OC, {}) }) }) }),
|
|
21567
21576
|
/* @__PURE__ */ n(b.Panel, { value: "Interactions", children: /* @__PURE__ */ n(Qe, { children: /* @__PURE__ */ n(Dw, {}) }) })
|
|
21568
21577
|
] })
|
|
21569
21578
|
] });
|
|
@@ -21579,7 +21588,7 @@ const NC = D(({
|
|
|
21579
21588
|
"] is not found"
|
|
21580
21589
|
] });
|
|
21581
21590
|
const a = r.panels.findByID(t);
|
|
21582
|
-
return a ? /* @__PURE__ */ n(
|
|
21591
|
+
return a ? /* @__PURE__ */ n(BC, { panel: a }) : /* @__PURE__ */ u(C, { size: 14, children: [
|
|
21583
21592
|
"Panel by ID[",
|
|
21584
21593
|
t,
|
|
21585
21594
|
"] is not found"
|
|
@@ -21793,7 +21802,7 @@ const XC = D(({
|
|
|
21793
21802
|
const {
|
|
21794
21803
|
tables: t
|
|
21795
21804
|
} = e;
|
|
21796
|
-
return t.loading ? /* @__PURE__ */ n(rc, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ n(
|
|
21805
|
+
return t.loading ? /* @__PURE__ */ n(rc, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ n(V, { h: "100%", sx: {
|
|
21797
21806
|
overflow: "auto",
|
|
21798
21807
|
".mantine-NavLink-label": {
|
|
21799
21808
|
fontFamily: "monospace"
|
|
@@ -21803,7 +21812,7 @@ const XC = D(({
|
|
|
21803
21812
|
}, active: e.table_name === a.table_name }, a.table_name)) }, r)) });
|
|
21804
21813
|
}), ZC = ({
|
|
21805
21814
|
visible: e
|
|
21806
|
-
}) => /* @__PURE__ */ n(
|
|
21815
|
+
}) => /* @__PURE__ */ n(V, { py: 10, sx: {
|
|
21807
21816
|
width: "100%",
|
|
21808
21817
|
height: "100%",
|
|
21809
21818
|
overflow: "hidden",
|
|
@@ -21871,7 +21880,7 @@ const XC = D(({
|
|
|
21871
21880
|
fontFamily: "monospace"
|
|
21872
21881
|
}, children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ n(ZC, { visible: !0 }) : /* @__PURE__ */ u(Qe, { children: [
|
|
21873
21882
|
/* @__PURE__ */ n(eS, { dataSource: e }),
|
|
21874
|
-
/* @__PURE__ */ u(
|
|
21883
|
+
/* @__PURE__ */ u(V, { py: 10, sx: {
|
|
21875
21884
|
width: "100%",
|
|
21876
21885
|
height: "calc(100% - 42px)",
|
|
21877
21886
|
overflow: "auto",
|
|
@@ -21902,7 +21911,7 @@ const XC = D(({
|
|
|
21902
21911
|
}, children: e.tables.error }) : /* @__PURE__ */ u(En, { sx: {
|
|
21903
21912
|
height: "100%"
|
|
21904
21913
|
}, children: [
|
|
21905
|
-
/* @__PURE__ */ n(
|
|
21914
|
+
/* @__PURE__ */ n(V, { w: 300, sx: {
|
|
21906
21915
|
flexGrow: 0,
|
|
21907
21916
|
flexShrink: 0,
|
|
21908
21917
|
position: "relative"
|
|
@@ -21955,7 +21964,7 @@ const XC = D(({
|
|
|
21955
21964
|
to: "red"
|
|
21956
21965
|
}, children: e.type })
|
|
21957
21966
|
] })
|
|
21958
|
-
] }), zIndex: 320, size: "96vw", overflow: "inside", styles: iS, children: /* @__PURE__ */ n(
|
|
21967
|
+
] }), zIndex: 320, size: "96vw", overflow: "inside", styles: iS, children: /* @__PURE__ */ n(V, { sx: {
|
|
21959
21968
|
height: "calc(100vh - 220px)"
|
|
21960
21969
|
}, children: /* @__PURE__ */ n(rS, { dataSource: e }) }) }),
|
|
21961
21970
|
/* @__PURE__ */ n(I, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
|
|
@@ -21978,7 +21987,7 @@ const XC = D(({
|
|
|
21978
21987
|
const r = De(), {
|
|
21979
21988
|
data: i = [],
|
|
21980
21989
|
loading: a
|
|
21981
|
-
} =
|
|
21990
|
+
} = Vn(Da, {
|
|
21982
21991
|
refreshDeps: []
|
|
21983
21992
|
}, []), o = L(() => i.map((d) => ({
|
|
21984
21993
|
label: d.key,
|
|
@@ -21991,7 +22000,7 @@ const XC = D(({
|
|
|
21991
22000
|
});
|
|
21992
22001
|
}, c = L(() => r.datasources.find(e), [r, e]);
|
|
21993
22002
|
return /* @__PURE__ */ n(E, { data: o, label: /* @__PURE__ */ u(v, { position: "apart", children: [
|
|
21994
|
-
/* @__PURE__ */ n(
|
|
22003
|
+
/* @__PURE__ */ n(V, { children: "Data Source" }),
|
|
21995
22004
|
c && /* @__PURE__ */ n(ic, { dataSource: c, triggerButtonProps: {
|
|
21996
22005
|
compact: !0,
|
|
21997
22006
|
size: "xs",
|
|
@@ -22092,10 +22101,10 @@ function dS() {
|
|
|
22092
22101
|
const uS = ({
|
|
22093
22102
|
value: e,
|
|
22094
22103
|
onChange: t
|
|
22095
|
-
}) => /* @__PURE__ */ n(
|
|
22104
|
+
}) => /* @__PURE__ */ n(V, { sx: {
|
|
22096
22105
|
position: "relative",
|
|
22097
22106
|
flexGrow: 1
|
|
22098
|
-
}, children: /* @__PURE__ */ n(
|
|
22107
|
+
}, children: /* @__PURE__ */ n(nt, { className: "function-editor", height: "100%", defaultLanguage: "javascript", value: e, onChange: (i) => {
|
|
22099
22108
|
i && t(i);
|
|
22100
22109
|
}, theme: "vs-dark", options: {
|
|
22101
22110
|
lineNumbers: "off",
|
|
@@ -22247,8 +22256,8 @@ WHERE
|
|
|
22247
22256
|
/* @__PURE__ */ n("td", { children: k.capitalize(o.type) }),
|
|
22248
22257
|
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Xa, { component: "button", type: "button", onClick: () => i(o), children: o.label }) }),
|
|
22249
22258
|
/* @__PURE__ */ n("td", { children: /* @__PURE__ */ u(S, { align: "flex-start", justify: "flex-start", spacing: 2, children: [
|
|
22250
|
-
o.views.map((l) => /* @__PURE__ */ n(Xa, { component: "button", type: "button", onClick: () => a(l.id), children: /* @__PURE__ */ n(
|
|
22251
|
-
o.views.length === 0 && /* @__PURE__ */ n(
|
|
22259
|
+
o.views.map((l) => /* @__PURE__ */ n(Xa, { component: "button", type: "button", onClick: () => a(l.id), children: /* @__PURE__ */ n(V, { children: l.label }) })),
|
|
22260
|
+
o.views.length === 0 && /* @__PURE__ */ n(V, { children: "--" })
|
|
22252
22261
|
] }) })
|
|
22253
22262
|
] }, o.id)) })
|
|
22254
22263
|
] }) });
|
|
@@ -22261,7 +22270,7 @@ WHERE
|
|
|
22261
22270
|
const a = (l) => {
|
|
22262
22271
|
console.log("changing"), t == null || t(l ?? "");
|
|
22263
22272
|
}, o = !t;
|
|
22264
|
-
return /* @__PURE__ */ n(
|
|
22273
|
+
return /* @__PURE__ */ n(nt, { className: "minimal-monaco-editor", height: r, defaultLanguage: i, value: e, onChange: o ? void 0 : a, theme: "vs-dark", options: {
|
|
22265
22274
|
lineNumbers: "off",
|
|
22266
22275
|
folding: !1,
|
|
22267
22276
|
lineDecorationsWidth: 20,
|
|
@@ -22276,7 +22285,7 @@ WHERE
|
|
|
22276
22285
|
value: e,
|
|
22277
22286
|
height: t = "200px",
|
|
22278
22287
|
defaultLanguage: r = "sql"
|
|
22279
|
-
}) => /* @__PURE__ */ n(
|
|
22288
|
+
}) => /* @__PURE__ */ n(nt, { className: "preview-sql-in-monaco-editor", height: t, defaultLanguage: r, value: e, onChange: void 0, theme: "vs-light", options: {
|
|
22280
22289
|
lineNumbers: "on",
|
|
22281
22290
|
folding: !0,
|
|
22282
22291
|
lineDecorationsWidth: 20,
|
|
@@ -22529,11 +22538,11 @@ WHERE
|
|
|
22529
22538
|
disabled: e,
|
|
22530
22539
|
value: t,
|
|
22531
22540
|
onChange: r
|
|
22532
|
-
}) => /* @__PURE__ */ u(
|
|
22541
|
+
}) => /* @__PURE__ */ u(V, { sx: {
|
|
22533
22542
|
position: "relative"
|
|
22534
22543
|
}, children: [
|
|
22535
|
-
e && /* @__PURE__ */ n(
|
|
22536
|
-
/* @__PURE__ */ n(
|
|
22544
|
+
e && /* @__PURE__ */ n(Ot, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
22545
|
+
/* @__PURE__ */ n(nt, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
|
|
22537
22546
|
a && r(a);
|
|
22538
22547
|
}, theme: "vs-dark", options: {
|
|
22539
22548
|
minimap: {
|
|
@@ -22667,7 +22676,7 @@ WHERE
|
|
|
22667
22676
|
zIndex: 320
|
|
22668
22677
|
});
|
|
22669
22678
|
}, children: "Delete this view" }) }),
|
|
22670
|
-
/* @__PURE__ */ n(
|
|
22679
|
+
/* @__PURE__ */ n(V, { sx: {
|
|
22671
22680
|
flexGrow: 1,
|
|
22672
22681
|
maxHeight: "calc(100% - 52px)",
|
|
22673
22682
|
overflow: "auto"
|
|
@@ -22680,10 +22689,10 @@ function RS(e) {
|
|
|
22680
22689
|
function ES(e) {
|
|
22681
22690
|
return e.length === 1 && e[0] === "_MOCK_CONTEXT_";
|
|
22682
22691
|
}
|
|
22683
|
-
function
|
|
22692
|
+
function VS(e) {
|
|
22684
22693
|
return e.length === 2 && e[0] === "_FILTERS_";
|
|
22685
22694
|
}
|
|
22686
|
-
function
|
|
22695
|
+
function OS(e) {
|
|
22687
22696
|
return e.length === 2 && e[0] === "_SQL_SNIPPETS_";
|
|
22688
22697
|
}
|
|
22689
22698
|
function FS(e) {
|
|
@@ -22692,14 +22701,14 @@ function FS(e) {
|
|
|
22692
22701
|
function PS(e) {
|
|
22693
22702
|
return e.length === 2 && e[0] === "_VIEWS_";
|
|
22694
22703
|
}
|
|
22695
|
-
function
|
|
22704
|
+
function NS(e) {
|
|
22696
22705
|
return e.length === 4 && e[0] === "_VIEWS_" && e[2] === "_PANELS_";
|
|
22697
22706
|
}
|
|
22698
|
-
const
|
|
22707
|
+
const BS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
22699
22708
|
height: "100%"
|
|
22700
22709
|
}, p: "sm", children: /* @__PURE__ */ n(ac, {}) })), qS = D(() => {
|
|
22701
22710
|
const e = De().editor, t = e.path;
|
|
22702
|
-
return RS(t) ? /* @__PURE__ */ n(
|
|
22711
|
+
return RS(t) ? /* @__PURE__ */ n(BS, {}) : ES(t) ? /* @__PURE__ */ n(hC, {}) : VS(t) ? /* @__PURE__ */ n(V, { p: "xs", pl: 20, children: /* @__PURE__ */ n(uC, { id: t[1] }) }) : OS(t) ? /* @__PURE__ */ n(_S, { id: t[1] }) : FS(t) ? /* @__PURE__ */ n(yS, { id: t[1] }) : PS(t) ? /* @__PURE__ */ n(V, { p: "xs", pl: 20, children: /* @__PURE__ */ n(AS, { id: t[1] }) }) : NS(t) ? /* @__PURE__ */ n(qC, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ n(V, { children: e.path });
|
|
22703
22712
|
}), WS = D(() => /* @__PURE__ */ n(qS, {})), jS = D(() => {
|
|
22704
22713
|
const e = De();
|
|
22705
22714
|
return /* @__PURE__ */ n(I, { variant: "subtle", leftIcon: /* @__PURE__ */ n(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
@@ -22795,7 +22804,7 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22795
22804
|
}, [l]), /* @__PURE__ */ n(Gr, { active: i, defaultOpened: l, opened: s, onChange: c, label: e.label, onClick: () => o(e), icon: e.Icon ? /* @__PURE__ */ n(e.Icon, { size: 18 }) : null, children: (d = e.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ n(US, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ n(oc, { option: p }, p.value)) }, e.label);
|
|
22796
22805
|
}), XS = D(() => {
|
|
22797
22806
|
const e = De();
|
|
22798
|
-
return /* @__PURE__ */ n(
|
|
22807
|
+
return /* @__PURE__ */ n(V, { sx: {
|
|
22799
22808
|
position: "relative"
|
|
22800
22809
|
}, children: e.editor.navOptions.map((t) => /* @__PURE__ */ n(oc, { option: t }, t.value)) });
|
|
22801
22810
|
}), ZS = D(() => {
|
|
@@ -22898,12 +22907,12 @@ const nk = {
|
|
|
22898
22907
|
tk(o.monacoPath), $l(o);
|
|
22899
22908
|
const {
|
|
22900
22909
|
data: p = []
|
|
22901
|
-
} =
|
|
22910
|
+
} = Vn(Da), [m, h] = $.useState(!1), g = $.useMemo(() => Hl(t, r, p, e), [t, r]);
|
|
22902
22911
|
$.useImperativeHandle(d, () => g, [g]), ys(g.content, !0), $.useEffect(() => {
|
|
22903
22912
|
g.context.replace(e);
|
|
22904
22913
|
}, [e]), $.useEffect(() => {
|
|
22905
22914
|
g.datasources.replace(p);
|
|
22906
|
-
}, [p]), $.useEffect(() => gt(() =>
|
|
22915
|
+
}, [p]), $.useEffect(() => gt(() => Nt(g.json), (R) => {
|
|
22907
22916
|
l == null || l(R);
|
|
22908
22917
|
}), [g]);
|
|
22909
22918
|
const w = async () => {
|
|
@@ -22914,7 +22923,7 @@ const nk = {
|
|
|
22914
22923
|
freezeLayout: h,
|
|
22915
22924
|
inEditMode: !0
|
|
22916
22925
|
}, children: /* @__PURE__ */ n(vt.Provider, { value: y, children: /* @__PURE__ */ u(fr, { configure: T, children: [
|
|
22917
|
-
/* @__PURE__ */ n(zo, { padding: 0, header: /* @__PURE__ */ n(C1, { saveDashboardChanges: w, headerSlot: s, headerMenuItems: c }), navbar: /* @__PURE__ */ n(X1, {}), styles: nk, children: /* @__PURE__ */ n(
|
|
22926
|
+
/* @__PURE__ */ n(zo, { padding: 0, header: /* @__PURE__ */ n(C1, { saveDashboardChanges: w, headerSlot: s, headerMenuItems: c }), navbar: /* @__PURE__ */ n(X1, {}), styles: nk, children: /* @__PURE__ */ n(V, { className: `${a} dashboard-root`, sx: {
|
|
22918
22927
|
position: "relative"
|
|
22919
22928
|
}, children: g.content.views.visibleViews.map((R) => /* @__PURE__ */ n(Xw, { view: R }, R.id)) }) }),
|
|
22920
22929
|
/* @__PURE__ */ n(JS, {})
|
|
@@ -22933,7 +22942,7 @@ const kD = D(({
|
|
|
22933
22942
|
$l(a);
|
|
22934
22943
|
const {
|
|
22935
22944
|
data: s = []
|
|
22936
|
-
} =
|
|
22945
|
+
} = Vn(Da), c = $.useMemo(() => Hl(t, r, s, e), [t, r]);
|
|
22937
22946
|
ys(c.content, !1), $.useEffect(() => {
|
|
22938
22947
|
c.context.replace(e);
|
|
22939
22948
|
}, [e]), $.useEffect(() => {
|
|
@@ -22947,7 +22956,7 @@ const kD = D(({
|
|
|
22947
22956
|
layoutFrozen: !0,
|
|
22948
22957
|
freezeLayout: k.noop,
|
|
22949
22958
|
inEditMode: !1
|
|
22950
|
-
}, children: /* @__PURE__ */ n(
|
|
22959
|
+
}, children: /* @__PURE__ */ n(V, { className: `${i} dashboard-root`, children: /* @__PURE__ */ n(vt.Provider, { value: d, children: /* @__PURE__ */ n(fr, { configure: p, children: c.content.views.visibleViews.map((m) => /* @__PURE__ */ n(Ca, { view: m }, m.id)) }) }) }) }) }) }) }) });
|
|
22951
22960
|
});
|
|
22952
22961
|
var Jr = {}, ik = {
|
|
22953
22962
|
get exports() {
|
|
@@ -23209,8 +23218,8 @@ var ii = {}, mk = {
|
|
|
23209
23218
|
return ue || Ce.slice(1);
|
|
23210
23219
|
});
|
|
23211
23220
|
})).match(i), W = F.length, Q = 0; Q < W; Q += 1) {
|
|
23212
|
-
var
|
|
23213
|
-
F[Q] = Y ? { regex:
|
|
23221
|
+
var B = F[Q], P = g[B], O = P && P[0], Y = P && P[1];
|
|
23222
|
+
F[Q] = Y ? { regex: O, parser: Y } : B.replace(/^\[|\]$/g, "");
|
|
23214
23223
|
}
|
|
23215
23224
|
return function(ne) {
|
|
23216
23225
|
for (var ee = {}, de = 0, pe = 0; de < W; de += 1) {
|
|
@@ -23235,12 +23244,12 @@ var ii = {}, mk = {
|
|
|
23235
23244
|
R.p.customParseFormat = !0, y && y.parseTwoDigitYear && (c = y.parseTwoDigitYear);
|
|
23236
23245
|
var F = T.prototype, W = F.parse;
|
|
23237
23246
|
F.parse = function(Q) {
|
|
23238
|
-
var
|
|
23247
|
+
var B = Q.date, P = Q.utc, O = Q.args;
|
|
23239
23248
|
this.$u = P;
|
|
23240
|
-
var Y =
|
|
23249
|
+
var Y = O[1];
|
|
23241
23250
|
if (typeof Y == "string") {
|
|
23242
|
-
var ne =
|
|
23243
|
-
ee && (pe =
|
|
23251
|
+
var ne = O[2] === !0, ee = O[3] === !0, de = ne || ee, pe = O[2];
|
|
23252
|
+
ee && (pe = O[2]), s = this.$locale(), !ne && pe && (s = R.Ls[pe]), this.$d = function(Le, qe, pt) {
|
|
23244
23253
|
try {
|
|
23245
23254
|
if (["x", "X"].indexOf(qe) > -1)
|
|
23246
23255
|
return new Date((qe === "X" ? 1e3 : 1) * Le);
|
|
@@ -23251,11 +23260,11 @@ var ii = {}, mk = {
|
|
|
23251
23260
|
} catch {
|
|
23252
23261
|
return /* @__PURE__ */ new Date("");
|
|
23253
23262
|
}
|
|
23254
|
-
}(
|
|
23263
|
+
}(B, Y, P), this.init(), pe && pe !== !0 && (this.$L = this.locale(pe).$L), de && B != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
23255
23264
|
} else if (Y instanceof Array)
|
|
23256
23265
|
for (var ge = Y.length, ue = 1; ue <= ge; ue += 1) {
|
|
23257
|
-
|
|
23258
|
-
var Ce = R.apply(this,
|
|
23266
|
+
O[1] = Y[ue - 1];
|
|
23267
|
+
var Ce = R.apply(this, O);
|
|
23259
23268
|
if (Ce.isValid()) {
|
|
23260
23269
|
this.$d = Ce.$d, this.$L = Ce.$L, this.init();
|
|
23261
23270
|
break;
|
|
@@ -23302,33 +23311,33 @@ var oi = {}, xk = {
|
|
|
23302
23311
|
(function(r, i) {
|
|
23303
23312
|
e.exports = i();
|
|
23304
23313
|
})(ce, function() {
|
|
23305
|
-
var r, i, a = 1e3, o = 6e4, l = 36e5, s = 864e5, c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, d = 31536e6, p = 2592e6, m = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: d, months: p, days: s, hours: l, minutes: o, seconds: a, milliseconds: 1, weeks: 6048e5 }, g = function(
|
|
23306
|
-
return
|
|
23307
|
-
}, w = function(
|
|
23308
|
-
return new Q(
|
|
23309
|
-
}, y = function(
|
|
23310
|
-
return i.p(
|
|
23311
|
-
}, T = function(
|
|
23312
|
-
return
|
|
23313
|
-
}, R = function(
|
|
23314
|
-
return T(
|
|
23315
|
-
}, F = function(
|
|
23316
|
-
return Math.abs(
|
|
23317
|
-
}, W = function(
|
|
23318
|
-
return
|
|
23314
|
+
var r, i, a = 1e3, o = 6e4, l = 36e5, s = 864e5, c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, d = 31536e6, p = 2592e6, m = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: d, months: p, days: s, hours: l, minutes: o, seconds: a, milliseconds: 1, weeks: 6048e5 }, g = function(B) {
|
|
23315
|
+
return B instanceof Q;
|
|
23316
|
+
}, w = function(B, P, O) {
|
|
23317
|
+
return new Q(B, O, P.$l);
|
|
23318
|
+
}, y = function(B) {
|
|
23319
|
+
return i.p(B) + "s";
|
|
23320
|
+
}, T = function(B) {
|
|
23321
|
+
return B < 0;
|
|
23322
|
+
}, R = function(B) {
|
|
23323
|
+
return T(B) ? Math.ceil(B) : Math.floor(B);
|
|
23324
|
+
}, F = function(B) {
|
|
23325
|
+
return Math.abs(B);
|
|
23326
|
+
}, W = function(B, P) {
|
|
23327
|
+
return B ? T(B) ? { negative: !0, format: "" + F(B) + P } : { negative: !1, format: "" + B + P } : { negative: !1, format: "" };
|
|
23319
23328
|
}, Q = function() {
|
|
23320
|
-
function
|
|
23329
|
+
function B(O, Y, ne) {
|
|
23321
23330
|
var ee = this;
|
|
23322
|
-
if (this.$d = {}, this.$l = ne,
|
|
23323
|
-
return w(
|
|
23324
|
-
if (typeof
|
|
23325
|
-
return this.$ms =
|
|
23326
|
-
if (typeof
|
|
23327
|
-
return Object.keys(
|
|
23328
|
-
ee.$d[y(ge)] =
|
|
23331
|
+
if (this.$d = {}, this.$l = ne, O === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), Y)
|
|
23332
|
+
return w(O * h[y(Y)], this);
|
|
23333
|
+
if (typeof O == "number")
|
|
23334
|
+
return this.$ms = O, this.parseFromMilliseconds(), this;
|
|
23335
|
+
if (typeof O == "object")
|
|
23336
|
+
return Object.keys(O).forEach(function(ge) {
|
|
23337
|
+
ee.$d[y(ge)] = O[ge];
|
|
23329
23338
|
}), this.calMilliseconds(), this;
|
|
23330
|
-
if (typeof
|
|
23331
|
-
var de =
|
|
23339
|
+
if (typeof O == "string") {
|
|
23340
|
+
var de = O.match(m);
|
|
23332
23341
|
if (de) {
|
|
23333
23342
|
var pe = de.slice(2).map(function(ge) {
|
|
23334
23343
|
return ge != null ? Number(ge) : 0;
|
|
@@ -23338,46 +23347,46 @@ var oi = {}, xk = {
|
|
|
23338
23347
|
}
|
|
23339
23348
|
return this;
|
|
23340
23349
|
}
|
|
23341
|
-
var P =
|
|
23350
|
+
var P = B.prototype;
|
|
23342
23351
|
return P.calMilliseconds = function() {
|
|
23343
|
-
var
|
|
23352
|
+
var O = this;
|
|
23344
23353
|
this.$ms = Object.keys(this.$d).reduce(function(Y, ne) {
|
|
23345
|
-
return Y + (
|
|
23354
|
+
return Y + (O.$d[ne] || 0) * h[ne];
|
|
23346
23355
|
}, 0);
|
|
23347
23356
|
}, P.parseFromMilliseconds = function() {
|
|
23348
|
-
var
|
|
23349
|
-
this.$d.years = R(
|
|
23357
|
+
var O = this.$ms;
|
|
23358
|
+
this.$d.years = R(O / d), O %= d, this.$d.months = R(O / p), O %= p, this.$d.days = R(O / s), O %= s, this.$d.hours = R(O / l), O %= l, this.$d.minutes = R(O / o), O %= o, this.$d.seconds = R(O / a), O %= a, this.$d.milliseconds = O;
|
|
23350
23359
|
}, P.toISOString = function() {
|
|
23351
|
-
var
|
|
23360
|
+
var O = W(this.$d.years, "Y"), Y = W(this.$d.months, "M"), ne = +this.$d.days || 0;
|
|
23352
23361
|
this.$d.weeks && (ne += 7 * this.$d.weeks);
|
|
23353
23362
|
var ee = W(ne, "D"), de = W(this.$d.hours, "H"), pe = W(this.$d.minutes, "M"), ge = this.$d.seconds || 0;
|
|
23354
23363
|
this.$d.milliseconds && (ge += this.$d.milliseconds / 1e3);
|
|
23355
|
-
var ue = W(ge, "S"), Ce =
|
|
23364
|
+
var ue = W(ge, "S"), Ce = O.negative || Y.negative || ee.negative || de.negative || pe.negative || ue.negative, Le = de.format || pe.format || ue.format ? "T" : "", qe = (Ce ? "-" : "") + "P" + O.format + Y.format + ee.format + Le + de.format + pe.format + ue.format;
|
|
23356
23365
|
return qe === "P" || qe === "-P" ? "P0D" : qe;
|
|
23357
23366
|
}, P.toJSON = function() {
|
|
23358
23367
|
return this.toISOString();
|
|
23359
|
-
}, P.format = function(
|
|
23360
|
-
var Y =
|
|
23368
|
+
}, P.format = function(O) {
|
|
23369
|
+
var Y = O || "YYYY-MM-DDTHH:mm:ss", ne = { Y: this.$d.years, YY: i.s(this.$d.years, 2, "0"), YYYY: i.s(this.$d.years, 4, "0"), M: this.$d.months, MM: i.s(this.$d.months, 2, "0"), D: this.$d.days, DD: i.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: i.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: i.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: i.s(this.$d.seconds, 2, "0"), SSS: i.s(this.$d.milliseconds, 3, "0") };
|
|
23361
23370
|
return Y.replace(c, function(ee, de) {
|
|
23362
23371
|
return de || String(ne[ee]);
|
|
23363
23372
|
});
|
|
23364
|
-
}, P.as = function(
|
|
23365
|
-
return this.$ms / h[y(
|
|
23366
|
-
}, P.get = function(
|
|
23367
|
-
var Y = this.$ms, ne = y(
|
|
23373
|
+
}, P.as = function(O) {
|
|
23374
|
+
return this.$ms / h[y(O)];
|
|
23375
|
+
}, P.get = function(O) {
|
|
23376
|
+
var Y = this.$ms, ne = y(O);
|
|
23368
23377
|
return ne === "milliseconds" ? Y %= 1e3 : Y = ne === "weeks" ? R(Y / h[ne]) : this.$d[ne], Y === 0 ? 0 : Y;
|
|
23369
|
-
}, P.add = function(
|
|
23378
|
+
}, P.add = function(O, Y, ne) {
|
|
23370
23379
|
var ee;
|
|
23371
|
-
return ee = Y ?
|
|
23372
|
-
}, P.subtract = function(
|
|
23373
|
-
return this.add(
|
|
23374
|
-
}, P.locale = function(
|
|
23380
|
+
return ee = Y ? O * h[y(Y)] : g(O) ? O.$ms : w(O, this).$ms, w(this.$ms + ee * (ne ? -1 : 1), this);
|
|
23381
|
+
}, P.subtract = function(O, Y) {
|
|
23382
|
+
return this.add(O, Y, !0);
|
|
23383
|
+
}, P.locale = function(O) {
|
|
23375
23384
|
var Y = this.clone();
|
|
23376
|
-
return Y.$l =
|
|
23385
|
+
return Y.$l = O, Y;
|
|
23377
23386
|
}, P.clone = function() {
|
|
23378
23387
|
return w(this.$ms, this);
|
|
23379
|
-
}, P.humanize = function(
|
|
23380
|
-
return r().add(this.$ms, "ms").locale(this.$l).fromNow(!
|
|
23388
|
+
}, P.humanize = function(O) {
|
|
23389
|
+
return r().add(this.$ms, "ms").locale(this.$l).fromNow(!O);
|
|
23381
23390
|
}, P.milliseconds = function() {
|
|
23382
23391
|
return this.get("milliseconds");
|
|
23383
23392
|
}, P.asMilliseconds = function() {
|
|
@@ -23410,13 +23419,13 @@ var oi = {}, xk = {
|
|
|
23410
23419
|
return this.get("years");
|
|
23411
23420
|
}, P.asYears = function() {
|
|
23412
23421
|
return this.as("years");
|
|
23413
|
-
},
|
|
23422
|
+
}, B;
|
|
23414
23423
|
}();
|
|
23415
|
-
return function(
|
|
23416
|
-
r =
|
|
23417
|
-
var pe =
|
|
23424
|
+
return function(B, P, O) {
|
|
23425
|
+
r = O, i = O().$utils(), O.duration = function(ee, de) {
|
|
23426
|
+
var pe = O.locale();
|
|
23418
23427
|
return w(ee, { $l: pe }, de);
|
|
23419
|
-
},
|
|
23428
|
+
}, O.isDuration = g;
|
|
23420
23429
|
var Y = P.prototype.add, ne = P.prototype.subtract;
|
|
23421
23430
|
P.prototype.add = function(ee, de) {
|
|
23422
23431
|
return g(ee) && (ee = ee.asMilliseconds()), Y.bind(this)(ee, de);
|
|
@@ -23606,7 +23615,7 @@ var mi = {}, Rk = {
|
|
|
23606
23615
|
});
|
|
23607
23616
|
})(Rk);
|
|
23608
23617
|
const Ek = mi;
|
|
23609
|
-
var gi = {},
|
|
23618
|
+
var gi = {}, Vk = {
|
|
23610
23619
|
get exports() {
|
|
23611
23620
|
return gi;
|
|
23612
23621
|
},
|
|
@@ -23625,8 +23634,8 @@ var gi = {}, Ok = {
|
|
|
23625
23634
|
};
|
|
23626
23635
|
};
|
|
23627
23636
|
});
|
|
23628
|
-
})(
|
|
23629
|
-
const
|
|
23637
|
+
})(Vk);
|
|
23638
|
+
const Ok = gi;
|
|
23630
23639
|
var fi = {}, Fk = {
|
|
23631
23640
|
get exports() {
|
|
23632
23641
|
return fi;
|
|
@@ -23648,7 +23657,7 @@ var fi = {}, Fk = {
|
|
|
23648
23657
|
});
|
|
23649
23658
|
})(Fk);
|
|
23650
23659
|
const Pk = fi;
|
|
23651
|
-
var bi = {},
|
|
23660
|
+
var bi = {}, Nk = {
|
|
23652
23661
|
get exports() {
|
|
23653
23662
|
return bi;
|
|
23654
23663
|
},
|
|
@@ -23664,13 +23673,13 @@ var bi = {}, Bk = {
|
|
|
23664
23673
|
var o = i.prototype, l = function(m) {
|
|
23665
23674
|
return m && (m.indexOf ? m : m.s);
|
|
23666
23675
|
}, s = function(m, h, g, w, y) {
|
|
23667
|
-
var T = m.name ? m : m.$locale(), R = l(T[h]), F = l(T[g]), W = R || F.map(function(
|
|
23668
|
-
return
|
|
23676
|
+
var T = m.name ? m : m.$locale(), R = l(T[h]), F = l(T[g]), W = R || F.map(function(B) {
|
|
23677
|
+
return B.slice(0, w);
|
|
23669
23678
|
});
|
|
23670
23679
|
if (!y)
|
|
23671
23680
|
return W;
|
|
23672
23681
|
var Q = T.weekStart;
|
|
23673
|
-
return W.map(function(
|
|
23682
|
+
return W.map(function(B, P) {
|
|
23674
23683
|
return W[(P + (Q || 0)) % 7];
|
|
23675
23684
|
});
|
|
23676
23685
|
}, c = function() {
|
|
@@ -23731,8 +23740,8 @@ var bi = {}, Bk = {
|
|
|
23731
23740
|
};
|
|
23732
23741
|
};
|
|
23733
23742
|
});
|
|
23734
|
-
})(
|
|
23735
|
-
const
|
|
23743
|
+
})(Nk);
|
|
23744
|
+
const Bk = bi;
|
|
23736
23745
|
var xi = {}, qk = {
|
|
23737
23746
|
get exports() {
|
|
23738
23747
|
return xi;
|
|
@@ -23820,8 +23829,8 @@ var vi = {}, Yk = {
|
|
|
23820
23829
|
var ne, ee;
|
|
23821
23830
|
y[ne = Y, ee = o.$utils().p(ne), ee === "date" ? "day" : ee] = g[Y];
|
|
23822
23831
|
});
|
|
23823
|
-
var R = y.day || (y.year || y.month >= 0 ? 1 : T.date()), F = y.year || T.year(), W = y.month >= 0 ? y.month : y.year || y.day ? 0 : T.month(), Q = y.hour || 0,
|
|
23824
|
-
return w ? new Date(Date.UTC(F, W, R, Q,
|
|
23832
|
+
var R = y.day || (y.year || y.month >= 0 ? 1 : T.date()), F = y.year || T.year(), W = y.month >= 0 ? y.month : y.year || y.day ? 0 : T.month(), Q = y.hour || 0, B = y.minute || 0, P = y.second || 0, O = y.millisecond || 0;
|
|
23833
|
+
return w ? new Date(Date.UTC(F, W, R, Q, B, P, O)) : new Date(F, W, R, Q, B, P, O);
|
|
23825
23834
|
}
|
|
23826
23835
|
return g;
|
|
23827
23836
|
}, s = o.parse;
|
|
@@ -23963,13 +23972,13 @@ var Si = {}, eT = {
|
|
|
23963
23972
|
}
|
|
23964
23973
|
a.en.relativeTime = l, o.fromToBase = function(d, p, m, h, g) {
|
|
23965
23974
|
for (var w, y, T, R = m.$locale().relativeTime || l, F = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], W = F.length, Q = 0; Q < W; Q += 1) {
|
|
23966
|
-
var
|
|
23967
|
-
|
|
23975
|
+
var B = F[Q];
|
|
23976
|
+
B.d && (w = h ? a(d).diff(m, B.d, !0) : m.diff(d, B.d, !0));
|
|
23968
23977
|
var P = (r.rounding || Math.round)(Math.abs(w));
|
|
23969
|
-
if (T = w > 0, P <=
|
|
23970
|
-
P <= 1 && Q > 0 && (
|
|
23971
|
-
var
|
|
23972
|
-
g && (P = g("" + P)), y = typeof
|
|
23978
|
+
if (T = w > 0, P <= B.r || !B.r) {
|
|
23979
|
+
P <= 1 && Q > 0 && (B = F[Q - 1]);
|
|
23980
|
+
var O = R[B.l];
|
|
23981
|
+
g && (P = g("" + P)), y = typeof O == "string" ? O.replace("%d", P) : O(P, p, B.l, T);
|
|
23973
23982
|
break;
|
|
23974
23983
|
}
|
|
23975
23984
|
}
|
|
@@ -24012,8 +24021,8 @@ var ki = {}, nT = {
|
|
|
24012
24021
|
w === void 0 && (w = {});
|
|
24013
24022
|
var y = new Date(h), T = function(R, F) {
|
|
24014
24023
|
F === void 0 && (F = {});
|
|
24015
|
-
var W = F.timeZoneName || "short", Q = R + "|" + W,
|
|
24016
|
-
return
|
|
24024
|
+
var W = F.timeZoneName || "short", Q = R + "|" + W, B = i[Q];
|
|
24025
|
+
return B || (B = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: R, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: W }), i[Q] = B), B;
|
|
24017
24026
|
}(g, w);
|
|
24018
24027
|
return T.formatToParts(y);
|
|
24019
24028
|
}, d = function(h, g) {
|
|
@@ -24021,8 +24030,8 @@ var ki = {}, nT = {
|
|
|
24021
24030
|
var R = w[T], F = R.type, W = R.value, Q = r[F];
|
|
24022
24031
|
Q >= 0 && (y[Q] = parseInt(W, 10));
|
|
24023
24032
|
}
|
|
24024
|
-
var
|
|
24025
|
-
return (l.utc(
|
|
24033
|
+
var B = y[3], P = B === 24 ? 0 : B, O = y[0] + "-" + y[1] + "-" + y[2] + " " + P + ":" + y[4] + ":" + y[5] + ":000", Y = +h;
|
|
24034
|
+
return (l.utc(O).valueOf() - (Y -= Y % 1e3)) / 6e4;
|
|
24026
24035
|
}, p = o.prototype;
|
|
24027
24036
|
p.tz = function(h, g) {
|
|
24028
24037
|
h === void 0 && (h = s);
|
|
@@ -24048,14 +24057,14 @@ var ki = {}, nT = {
|
|
|
24048
24057
|
var y = w && g, T = w || g || s, R = d(+l(), T);
|
|
24049
24058
|
if (typeof h != "string")
|
|
24050
24059
|
return l(h).tz(T);
|
|
24051
|
-
var F = function(P,
|
|
24052
|
-
var ne = P - 60 *
|
|
24053
|
-
if (
|
|
24054
|
-
return [ne,
|
|
24055
|
-
var de = d(ne -= 60 * (ee -
|
|
24060
|
+
var F = function(P, O, Y) {
|
|
24061
|
+
var ne = P - 60 * O * 1e3, ee = d(ne, Y);
|
|
24062
|
+
if (O === ee)
|
|
24063
|
+
return [ne, O];
|
|
24064
|
+
var de = d(ne -= 60 * (ee - O) * 1e3, Y);
|
|
24056
24065
|
return ee === de ? [ne, ee] : [P - 60 * Math.min(ee, de) * 1e3, Math.max(ee, de)];
|
|
24057
|
-
}(l.utc(h, y).valueOf(), R, T), W = F[0], Q = F[1],
|
|
24058
|
-
return
|
|
24066
|
+
}(l.utc(h, y).valueOf(), R, T), W = F[0], Q = F[1], B = l(W).utcOffset(Q);
|
|
24067
|
+
return B.$x.$timezone = T, B;
|
|
24059
24068
|
}, l.tz.guess = function() {
|
|
24060
24069
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
24061
24070
|
}, l.tz.setDefault = function(h) {
|
|
@@ -24170,12 +24179,12 @@ var Ii = {}, dT = {
|
|
|
24170
24179
|
var R = this.$utils().u;
|
|
24171
24180
|
if (R(y))
|
|
24172
24181
|
return this.$u ? 0 : R(this.$offset) ? m.call(this) : this.$offset;
|
|
24173
|
-
if (typeof y == "string" && (y = function(
|
|
24174
|
-
|
|
24175
|
-
var P =
|
|
24182
|
+
if (typeof y == "string" && (y = function(B) {
|
|
24183
|
+
B === void 0 && (B = "");
|
|
24184
|
+
var P = B.match(i);
|
|
24176
24185
|
if (!P)
|
|
24177
24186
|
return null;
|
|
24178
|
-
var
|
|
24187
|
+
var O = ("" + P[0]).match(a) || ["-", 0, 0], Y = O[0], ne = 60 * +O[1] + +O[2];
|
|
24179
24188
|
return ne === 0 ? 0 : Y === "+" ? ne : -ne;
|
|
24180
24189
|
}(y), y === null))
|
|
24181
24190
|
return this;
|
|
@@ -24307,11 +24316,11 @@ K.extend(kk);
|
|
|
24307
24316
|
K.extend(zk);
|
|
24308
24317
|
K.extend(Ak);
|
|
24309
24318
|
K.extend(Ek);
|
|
24310
|
-
K.extend(
|
|
24319
|
+
K.extend(Ok);
|
|
24311
24320
|
K.extend(Pk);
|
|
24312
24321
|
K.extend(Dk);
|
|
24313
24322
|
K.extend(Ik);
|
|
24314
|
-
K.extend(
|
|
24323
|
+
K.extend(Bk);
|
|
24315
24324
|
K.extend(Wk);
|
|
24316
24325
|
K.extend(Gk);
|
|
24317
24326
|
K.extend(Hk);
|
|
@@ -24354,8 +24363,8 @@ export {
|
|
|
24354
24363
|
P_ as QueriesModel,
|
|
24355
24364
|
F_ as QueryModel,
|
|
24356
24365
|
kD as ReadOnlyDashboard,
|
|
24357
|
-
|
|
24358
|
-
|
|
24366
|
+
N_ as SQLSnippetModel,
|
|
24367
|
+
B_ as SQLSnippetsModel,
|
|
24359
24368
|
Ww as ViewComponentTypeBackground,
|
|
24360
24369
|
wD as ViewComponentTypeColor,
|
|
24361
24370
|
vD as ViewComponentTypeName,
|