@devtable/dashboard 13.27.3 → 13.27.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +429 -419
- package/dist/dashboard.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var mg = Object.defineProperty;
|
|
2
2
|
var fg = (e, t, n) => t in e ? mg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var G = (e, t, n) => (fg(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import R, { forwardRef as re,
|
|
5
|
-
import { TextInput as E, Stack as S, Group as b, Button as M, Text as w, Box as A, Overlay as
|
|
4
|
+
import R, { forwardRef as re, useRef as Yn, useEffect as W, useState as U, useCallback as Ee, useMemo as I, createElement as aa, useContext as Rn, useLayoutEffect as xg, createContext as Du, memo as gg } from "react";
|
|
5
|
+
import { TextInput as E, Stack as S, Group as b, Button as M, Text as w, Box as A, Overlay as Ir, Modal as Le, Tooltip as de, ActionIcon as J, NativeSelect as Mu, useMantineTheme as Yo, Popover as Ft, ColorSwatch as $s, ColorInput as Zn, SimpleGrid as yr, ColorPicker as td, HoverCard as Pe, Select as N, Checkbox as te, Divider as P, NumberInput as ne, Switch as Xe, Table as Ge, MultiSelect as Xr, Paper as bg, Code as nd, Tabs as _, LoadingOverlay as Tr, Alert as Vi, createStyles as Ni, CloseButton as jr, Center as er, Collapse as qi, CheckIcon as yg, MANTINE_SIZES as vg, SegmentedControl as Eu, Anchor as As, Menu as ee, UnstyledButton as Lu, Flex as qt, Badge as Xn, Textarea as $u, Mark as Au, Slider as _g, Affix as jg, Header as wg, List as Tt, FileInput as Sg, ThemeIcon as Wa, Navbar as Tn, JsonInput as Ru, Pagination as Pu, Drawer as kg, Accordion as ms, Radio as rd, Skeleton as id, NavLink as po, AppShell as Ou } from "@mantine/core";
|
|
6
6
|
import { useModals as _n, ModalsProvider as Fu } from "@mantine/modals";
|
|
7
|
-
import { useBoolean as nt, useCreation as en, useAsyncEffect as Bi, useRequest as
|
|
7
|
+
import { useBoolean as nt, useCreation as en, useAsyncEffect as Bi, useRequest as wr, useLatest as sd, usePrevious as Cg, useWhyDidYouUpdate as Vu } from "ahooks";
|
|
8
8
|
import { toJS as Pn, observable as Nu, runInAction as zi, reaction as Dt, makeAutoObservable as Wi } from "mobx";
|
|
9
9
|
import { observer as D } from "mobx-react-lite";
|
|
10
10
|
import { faker as Ig } from "@faker-js/faker";
|
|
@@ -13,14 +13,14 @@ import zg from "crypto-js";
|
|
|
13
13
|
import * as Dg from "d3-array";
|
|
14
14
|
import { quantile as ks } from "d3-array";
|
|
15
15
|
import V from "dayjs";
|
|
16
|
-
import C, { cloneDeepWith as qu, unset as Mg, get as ae, isObject as Bu, set as Xo, omit as
|
|
17
|
-
import * as
|
|
16
|
+
import C, { cloneDeepWith as qu, unset as Mg, get as ae, isObject as Bu, set as Xo, omit as Sr, isFunction as Eg, orderBy as Lg, last as Wu, defaults as je, minBy as $g, maxBy as Ag, cloneDeep as Ze, values as Gu, template as Jo, throttle as Rg, range as Pg, isEqual as xe, defaultsDeep as He, keyBy as Og, isEmpty as Hu, isNumber as Fg, findLastIndex as Vg, isString as Qu, pick as Uu } from "lodash";
|
|
17
|
+
import * as Gr from "mathjs";
|
|
18
18
|
import Rs from "numbro";
|
|
19
19
|
import * as Ng from "popmotion";
|
|
20
|
-
import { interpolate as
|
|
20
|
+
import { interpolate as zr } from "popmotion";
|
|
21
21
|
import xn from "axios";
|
|
22
|
-
import { useDisclosure as
|
|
23
|
-
import { IconPlayerSkipBack as Yu, IconRecycle as Gi, IconDeviceFloppy as Qe, IconMathFunctionOff as Wg, IconMathFunction as On, IconTextSize as Zo, IconInfoCircle as
|
|
22
|
+
import { useDisclosure as tr, useClipboard as qg, randomId as kr, useElementSize as $i, useResizeObserver as Bg, useInputState as Ku } from "@mantine/hooks";
|
|
23
|
+
import { IconPlayerSkipBack as Yu, IconRecycle as Gi, IconDeviceFloppy as Qe, IconMathFunctionOff as Wg, IconMathFunction as On, IconTextSize as Zo, IconInfoCircle as Dr, IconCircleOff as Xu, IconX as el, IconBorderAll as Gg, IconTrash as bn, IconPlus as nn, IconGripHorizontal as Hg, IconChevronUp as Qg, IconChevronDown as Ug, IconSelector as Kg, IconGripVertical as Yg, IconPlaylistAdd as mo, IconArrowDown as Xg, IconArrowUp as Jg, IconAlertCircle as fo, IconArrowBarToRight as Zg, IconCalendar as eb, IconMinus as tb, IconChevronsUp as nb, IconChevronsDown as rb, IconDatabase as Hi, IconCode as Cr, IconCamera as oa, IconShare3 as ib, IconDownload as sb, IconArrowsLeftRight as ab, IconVariable as Ju, IconCodeDots as ob, IconFilter as Zu, IconCopy as lb, IconBoxMultiple as eh, IconCaretDown as cb, IconAlertTriangle as th, IconArrowLeft as db, IconDevices as ub, IconSettings as Qi, IconPointFilled as tl, IconFileImport as ad, IconCircleDashed as hb, IconCircleDot as pb, IconAdjustments as mb, IconLink as fb, IconArrowCurveRight as xo, IconLine as xb, IconEye as nh, IconTable as gb, IconColumns as bb, IconVectorTriangle as yb, IconVariablePlus as vb, IconHierarchy as _b, IconDiscountCheckFilled as jb } from "@tabler/icons-react";
|
|
24
24
|
import { useTranslation as v, Trans as la, initReactI18next as wb, I18nextProvider as Sb } from "react-i18next";
|
|
25
25
|
import { RichTextEditor as ie, Link as rh, useRichTextEditorContext as kb } from "@mantine/tiptap";
|
|
26
26
|
import { Color as ih } from "@tiptap/extension-color";
|
|
@@ -46,7 +46,7 @@ import { use as Gb } from "echarts/core";
|
|
|
46
46
|
import { BarChart as Hb, BoxplotChart as Qb, CustomChart as Ub, FunnelChart as Kb, HeatmapChart as Yb, LineChart as Xb, PieChart as Jb, RadarChart as Zb, ScatterChart as ey, SunburstChart as ty } from "echarts/charts";
|
|
47
47
|
import { CalendarComponent as ny, DataZoomComponent as ry, GridComponent as iy, LegendComponent as sy, TooltipComponent as ay, MarkLineComponent as oy, MarkAreaComponent as ly, VisualMapComponent as cy } from "echarts/components";
|
|
48
48
|
import { CanvasRenderer as dy } from "echarts/renderers";
|
|
49
|
-
import
|
|
49
|
+
import Jr, { random as ca } from "chroma-js";
|
|
50
50
|
import { constrainedEditor as uy } from "constrained-editor-plugin";
|
|
51
51
|
import { encode as hy, decode as py } from "js-base64";
|
|
52
52
|
import ld from "eventemitter2";
|
|
@@ -54,20 +54,20 @@ import ht from "echarts-for-react/lib/core";
|
|
|
54
54
|
import "echarts-gl";
|
|
55
55
|
import { useForm as Te, Controller as g, useFieldArray as da, useWatch as my } from "react-hook-form";
|
|
56
56
|
import { DatesProvider as fy, DatePicker as xy } from "@mantine/dates";
|
|
57
|
-
import { DeviceFloppy as $n, Recycle as
|
|
58
|
-
import { showNotification as
|
|
57
|
+
import { DeviceFloppy as $n, Recycle as Mr, Trash as Fn, AlertCircle as gy, InfoCircle as Vn, Refresh as nl, Download as rl, ArrowsMaximize as bh, Settings as yh, Copy as by, ArrowLeft as yy, ArrowsMove as vy, ChevronDownRight as _y, Plus as jy, ChevronsUpRight as wy, PlaylistAdd as ua, ArrowBarToRight as Sy } from "tabler-icons-react";
|
|
58
|
+
import { showNotification as Zr, notifications as vh } from "@mantine/notifications";
|
|
59
59
|
import { useDragDropManager as ky, useInstance as Cy, DragDropProvider as _h } from "@dnd-kit/react";
|
|
60
60
|
import { flushSync as Iy } from "react-dom";
|
|
61
61
|
import * as Gn from "d3-regression";
|
|
62
62
|
import { move as Ty } from "@dnd-kit/helpers";
|
|
63
63
|
import { v4 as Mn } from "uuid";
|
|
64
|
-
import { Prism as
|
|
64
|
+
import { Prism as Jn } from "@mantine/prism";
|
|
65
65
|
import { flexRender as Ps, createColumnHelper as jh, useReactTable as wh, getCoreRowModel as Sh, getSortedRowModel as zy } from "@tanstack/react-table";
|
|
66
66
|
import { useVirtual as Dy } from "react-virtual";
|
|
67
67
|
import My, { Option as Ey } from "rc-select";
|
|
68
68
|
import Ly, { SHOW_PARENT as $y } from "rc-tree-select";
|
|
69
69
|
import { WidthProvider as kh, Responsive as Ch } from "react-grid-layout";
|
|
70
|
-
import { types as x, cast as yn, getRoot as tt, getParent as Ne, addDisposer as Zt, isAlive as cd, flow as
|
|
70
|
+
import { types as x, cast as yn, getRoot as tt, getParent as Ne, addDisposer as Zt, isAlive as cd, flow as Br, toGenerator as mr, clone as Ay, getSnapshot as mn, applySnapshot as at, addMiddleware as Ry, getType as Py, detach as go, castToSnapshot as Ih } from "mobx-state-tree";
|
|
71
71
|
import { arrayToTree as Oy } from "performant-array-to-tree";
|
|
72
72
|
import { saveAs as ha } from "file-saver";
|
|
73
73
|
import Th from "dom-to-image-more";
|
|
@@ -240,14 +240,14 @@ function Cv() {
|
|
|
240
240
|
}
|
|
241
241
|
return null;
|
|
242
242
|
}
|
|
243
|
-
var $t = Object.assign, At = 0, pi, Ht, mi,
|
|
243
|
+
var $t = Object.assign, At = 0, pi, Ht, mi, cr, dr, cs, fi;
|
|
244
244
|
function ds() {
|
|
245
245
|
}
|
|
246
246
|
ds.__reactDisabledLog = !0;
|
|
247
|
-
function
|
|
247
|
+
function Ar() {
|
|
248
248
|
{
|
|
249
249
|
if (At === 0) {
|
|
250
|
-
pi = console.log, Ht = console.info, mi = console.warn,
|
|
250
|
+
pi = console.log, Ht = console.info, mi = console.warn, cr = console.error, dr = console.group, cs = console.groupCollapsed, fi = console.groupEnd;
|
|
251
251
|
var j = {
|
|
252
252
|
configurable: !0,
|
|
253
253
|
enumerable: !0,
|
|
@@ -286,10 +286,10 @@ function Cv() {
|
|
|
286
286
|
value: mi
|
|
287
287
|
}),
|
|
288
288
|
error: $t({}, j, {
|
|
289
|
-
value:
|
|
289
|
+
value: cr
|
|
290
290
|
}),
|
|
291
291
|
group: $t({}, j, {
|
|
292
|
-
value:
|
|
292
|
+
value: dr
|
|
293
293
|
}),
|
|
294
294
|
groupCollapsed: $t({}, j, {
|
|
295
295
|
value: cs
|
|
@@ -334,7 +334,7 @@ function Cv() {
|
|
|
334
334
|
var ue = Error.prepareStackTrace;
|
|
335
335
|
Error.prepareStackTrace = void 0;
|
|
336
336
|
var _e;
|
|
337
|
-
_e = ve.current, ve.current = null,
|
|
337
|
+
_e = ve.current, ve.current = null, Ar();
|
|
338
338
|
try {
|
|
339
339
|
if (F) {
|
|
340
340
|
var ce = function() {
|
|
@@ -389,7 +389,7 @@ function Cv() {
|
|
|
389
389
|
} finally {
|
|
390
390
|
kt = !1, ve.current = _e, Oa(), Error.prepareStackTrace = ue;
|
|
391
391
|
}
|
|
392
|
-
var
|
|
392
|
+
var Pr = j ? j.displayName || j.name : "", ed = Pr ? Ae(Pr) : "";
|
|
393
393
|
return typeof j == "function" && cn.set(j, ed), ed;
|
|
394
394
|
}
|
|
395
395
|
function dn(j, F, B) {
|
|
@@ -578,7 +578,7 @@ function Cv() {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
var Na = k.ReactCurrentOwner, Uc = k.ReactDebugCurrentFrame;
|
|
581
|
-
function
|
|
581
|
+
function Rr(j) {
|
|
582
582
|
if (j) {
|
|
583
583
|
var F = j._owner, B = us(j.type, j._source, F ? F.type : null);
|
|
584
584
|
Uc.setExtraStackFrame(B);
|
|
@@ -636,7 +636,7 @@ Check the top-level render call using <` + B + ">.");
|
|
|
636
636
|
return;
|
|
637
637
|
Yc[B] = !0;
|
|
638
638
|
var X = "";
|
|
639
|
-
j && j._owner && j._owner !== Na.current && (X = " It was passed a child from " + it(j._owner.type) + "."),
|
|
639
|
+
j && j._owner && j._owner !== Na.current && (X = " It was passed a child from " + it(j._owner.type) + "."), Rr(j), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', B, X), Rr(null);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
function Jc(j, F) {
|
|
@@ -688,11 +688,11 @@ Check the top-level render call using <` + B + ">.");
|
|
|
688
688
|
for (var F = Object.keys(j.props), B = 0; B < F.length; B++) {
|
|
689
689
|
var X = F[B];
|
|
690
690
|
if (X !== "children" && X !== "key") {
|
|
691
|
-
|
|
691
|
+
Rr(j), z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", X), Rr(null);
|
|
692
692
|
break;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
j.ref !== null && (
|
|
695
|
+
j.ref !== null && (Rr(j), z("Invalid attribute `ref` supplied to `React.Fragment`."), Rr(null));
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
function Zc(j, F, B, X, ue, _e) {
|
|
@@ -714,8 +714,8 @@ Check the top-level render call using <` + B + ">.");
|
|
|
714
714
|
if (Rt !== void 0)
|
|
715
715
|
if (X)
|
|
716
716
|
if (Fa(Rt)) {
|
|
717
|
-
for (var
|
|
718
|
-
Jc(Rt[
|
|
717
|
+
for (var Pr = 0; Pr < Rt.length; Pr++)
|
|
718
|
+
Jc(Rt[Pr], j);
|
|
719
719
|
Object.freeze && Object.freeze(Rt);
|
|
720
720
|
} else
|
|
721
721
|
z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -743,7 +743,7 @@ const rn = {
|
|
|
743
743
|
dayjs: V,
|
|
744
744
|
lodash: C,
|
|
745
745
|
numbro: Rs,
|
|
746
|
-
mathjs:
|
|
746
|
+
mathjs: Gr,
|
|
747
747
|
faker: Ig,
|
|
748
748
|
popmotion: Ng
|
|
749
749
|
}, Iv = [{
|
|
@@ -992,11 +992,11 @@ class Rv {
|
|
|
992
992
|
return this.getRequest("PUT", t);
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
const
|
|
995
|
+
const Vr = new Av();
|
|
996
996
|
function Dh(e) {
|
|
997
|
-
|
|
997
|
+
Vr.baseURL !== e.apiBaseURL && (Vr.baseURL = e.apiBaseURL), e.app_id && (Vr.app_id = e.app_id), e.app_secret && (Vr.app_secret = e.app_secret), e.makeQueryENV && (Vr.makeQueryENV = e.makeQueryENV);
|
|
998
998
|
}
|
|
999
|
-
const Pv = new Rv(
|
|
999
|
+
const Pv = new Rv(Vr), zn = Pv, Os = re(function({
|
|
1000
1000
|
value: t,
|
|
1001
1001
|
onChange: n,
|
|
1002
1002
|
...i
|
|
@@ -1065,10 +1065,10 @@ function Nv(e, t) {
|
|
|
1065
1065
|
case "quantile":
|
|
1066
1066
|
return ks(e, t.config.p);
|
|
1067
1067
|
case "CV":
|
|
1068
|
-
const n =
|
|
1068
|
+
const n = Gr.std(...e), i = Gr.mean(...e);
|
|
1069
1069
|
return i ? n / i : Number.NaN;
|
|
1070
1070
|
case "std":
|
|
1071
|
-
return
|
|
1071
|
+
return Gr.std(...e);
|
|
1072
1072
|
default:
|
|
1073
1073
|
return e;
|
|
1074
1074
|
}
|
|
@@ -1110,7 +1110,7 @@ class Wv {
|
|
|
1110
1110
|
colorRange: n
|
|
1111
1111
|
}) {
|
|
1112
1112
|
G(this, "mapper");
|
|
1113
|
-
this.mapper =
|
|
1113
|
+
this.mapper = zr(t, n);
|
|
1114
1114
|
}
|
|
1115
1115
|
getColor(t) {
|
|
1116
1116
|
return this.mapper(t);
|
|
@@ -2482,7 +2482,7 @@ function ll(e, t, n) {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
return he.fromArray(i);
|
|
2484
2484
|
}
|
|
2485
|
-
class
|
|
2485
|
+
class fr extends _t {
|
|
2486
2486
|
/**
|
|
2487
2487
|
Create a mark step.
|
|
2488
2488
|
*/
|
|
@@ -2494,14 +2494,14 @@ class mr extends _t {
|
|
|
2494
2494
|
return Be.fromReplace(t, this.from, this.to, a);
|
|
2495
2495
|
}
|
|
2496
2496
|
invert() {
|
|
2497
|
-
return new
|
|
2497
|
+
return new xr(this.from, this.to, this.mark);
|
|
2498
2498
|
}
|
|
2499
2499
|
map(t) {
|
|
2500
2500
|
let n = t.mapResult(this.from, 1), i = t.mapResult(this.to, -1);
|
|
2501
|
-
return n.deleted && i.deleted || n.pos >= i.pos ? null : new
|
|
2501
|
+
return n.deleted && i.deleted || n.pos >= i.pos ? null : new fr(n.pos, i.pos, this.mark);
|
|
2502
2502
|
}
|
|
2503
2503
|
merge(t) {
|
|
2504
|
-
return t instanceof
|
|
2504
|
+
return t instanceof fr && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new fr(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
|
|
2505
2505
|
}
|
|
2506
2506
|
toJSON() {
|
|
2507
2507
|
return {
|
|
@@ -2517,11 +2517,11 @@ class mr extends _t {
|
|
|
2517
2517
|
static fromJSON(t, n) {
|
|
2518
2518
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
2519
2519
|
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
2520
|
-
return new
|
|
2520
|
+
return new fr(n.from, n.to, t.markFromJSON(n.mark));
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
|
-
_t.jsonID("addMark",
|
|
2524
|
-
class
|
|
2523
|
+
_t.jsonID("addMark", fr);
|
|
2524
|
+
class xr extends _t {
|
|
2525
2525
|
/**
|
|
2526
2526
|
Create a mark-removing step.
|
|
2527
2527
|
*/
|
|
@@ -2533,14 +2533,14 @@ class fr extends _t {
|
|
|
2533
2533
|
return Be.fromReplace(t, this.from, this.to, i);
|
|
2534
2534
|
}
|
|
2535
2535
|
invert() {
|
|
2536
|
-
return new
|
|
2536
|
+
return new fr(this.from, this.to, this.mark);
|
|
2537
2537
|
}
|
|
2538
2538
|
map(t) {
|
|
2539
2539
|
let n = t.mapResult(this.from, 1), i = t.mapResult(this.to, -1);
|
|
2540
|
-
return n.deleted && i.deleted || n.pos >= i.pos ? null : new
|
|
2540
|
+
return n.deleted && i.deleted || n.pos >= i.pos ? null : new xr(n.pos, i.pos, this.mark);
|
|
2541
2541
|
}
|
|
2542
2542
|
merge(t) {
|
|
2543
|
-
return t instanceof
|
|
2543
|
+
return t instanceof xr && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new xr(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
|
|
2544
2544
|
}
|
|
2545
2545
|
toJSON() {
|
|
2546
2546
|
return {
|
|
@@ -2556,11 +2556,11 @@ class fr extends _t {
|
|
|
2556
2556
|
static fromJSON(t, n) {
|
|
2557
2557
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
2558
2558
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
2559
|
-
return new
|
|
2559
|
+
return new xr(n.from, n.to, t.markFromJSON(n.mark));
|
|
2560
2560
|
}
|
|
2561
2561
|
}
|
|
2562
|
-
_t.jsonID("removeMark",
|
|
2563
|
-
class
|
|
2562
|
+
_t.jsonID("removeMark", xr);
|
|
2563
|
+
class gr extends _t {
|
|
2564
2564
|
/**
|
|
2565
2565
|
Create a node mark step.
|
|
2566
2566
|
*/
|
|
@@ -2581,15 +2581,15 @@ class xr extends _t {
|
|
|
2581
2581
|
if (i.length == n.marks.length) {
|
|
2582
2582
|
for (let s = 0; s < n.marks.length; s++)
|
|
2583
2583
|
if (!n.marks[s].isInSet(i))
|
|
2584
|
-
return new
|
|
2585
|
-
return new
|
|
2584
|
+
return new gr(this.pos, n.marks[s]);
|
|
2585
|
+
return new gr(this.pos, this.mark);
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
2588
|
return new Ai(this.pos, this.mark);
|
|
2589
2589
|
}
|
|
2590
2590
|
map(t) {
|
|
2591
2591
|
let n = t.mapResult(this.pos, 1);
|
|
2592
|
-
return n.deletedAfter ? null : new
|
|
2592
|
+
return n.deletedAfter ? null : new gr(n.pos, this.mark);
|
|
2593
2593
|
}
|
|
2594
2594
|
toJSON() {
|
|
2595
2595
|
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -2600,10 +2600,10 @@ class xr extends _t {
|
|
|
2600
2600
|
static fromJSON(t, n) {
|
|
2601
2601
|
if (typeof n.pos != "number")
|
|
2602
2602
|
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
2603
|
-
return new
|
|
2603
|
+
return new gr(n.pos, t.markFromJSON(n.mark));
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
2606
|
-
_t.jsonID("addNodeMark",
|
|
2606
|
+
_t.jsonID("addNodeMark", gr);
|
|
2607
2607
|
class Ai extends _t {
|
|
2608
2608
|
/**
|
|
2609
2609
|
Create a mark-removing step.
|
|
@@ -2620,7 +2620,7 @@ class Ai extends _t {
|
|
|
2620
2620
|
}
|
|
2621
2621
|
invert(t) {
|
|
2622
2622
|
let n = t.nodeAt(this.pos);
|
|
2623
|
-
return !n || !this.mark.isInSet(n.marks) ? this : new
|
|
2623
|
+
return !n || !this.mark.isInSet(n.marks) ? this : new gr(this.pos, this.mark);
|
|
2624
2624
|
}
|
|
2625
2625
|
map(t) {
|
|
2626
2626
|
let n = t.mapResult(this.pos, 1);
|
|
@@ -2691,7 +2691,7 @@ class pn extends _t {
|
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
2693
|
_t.jsonID("replace", pn);
|
|
2694
|
-
class
|
|
2694
|
+
class vr extends _t {
|
|
2695
2695
|
/**
|
|
2696
2696
|
Create a replace-around step with the given range and gap.
|
|
2697
2697
|
`insert` should be the point in the slice into which the content
|
|
@@ -2722,11 +2722,11 @@ class yr extends _t {
|
|
|
2722
2722
|
}
|
|
2723
2723
|
invert(t) {
|
|
2724
2724
|
let n = this.gapTo - this.gapFrom;
|
|
2725
|
-
return new
|
|
2725
|
+
return new vr(this.from, this.from + this.slice.size + n, this.from + this.insert, this.from + this.insert + n, t.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
2726
2726
|
}
|
|
2727
2727
|
map(t) {
|
|
2728
2728
|
let n = t.mapResult(this.from, 1), i = t.mapResult(this.to, -1), s = t.map(this.gapFrom, -1), a = t.map(this.gapTo, 1);
|
|
2729
|
-
return n.deletedAcross && i.deletedAcross || s < n.pos || a > i.pos ? null : new
|
|
2729
|
+
return n.deletedAcross && i.deletedAcross || s < n.pos || a > i.pos ? null : new vr(n.pos, i.pos, s, a, this.slice, this.insert, this.structure);
|
|
2730
2730
|
}
|
|
2731
2731
|
toJSON() {
|
|
2732
2732
|
let t = {
|
|
@@ -2745,10 +2745,10 @@ class yr extends _t {
|
|
|
2745
2745
|
static fromJSON(t, n) {
|
|
2746
2746
|
if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
|
|
2747
2747
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
2748
|
-
return new
|
|
2748
|
+
return new vr(n.from, n.to, n.gapFrom, n.gapTo, be.fromJSON(t, n.slice), n.insert, !!n.structure);
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
2751
|
-
_t.jsonID("replaceAround",
|
|
2751
|
+
_t.jsonID("replaceAround", vr);
|
|
2752
2752
|
function jo(e, t, n) {
|
|
2753
2753
|
let i = e.resolve(t), s = n - t, a = i.depth;
|
|
2754
2754
|
for (; s > 0 && a > 0 && i.indexAfter(a) == i.node(a).childCount; )
|
|
@@ -2943,11 +2943,11 @@ class De {
|
|
|
2943
2943
|
found.
|
|
2944
2944
|
*/
|
|
2945
2945
|
static findFrom(t, n, i = !1) {
|
|
2946
|
-
let s = t.parent.inlineContent ? new We(t) :
|
|
2946
|
+
let s = t.parent.inlineContent ? new We(t) : Nr(t.node(0), t.parent, t.pos, t.index(), n, i);
|
|
2947
2947
|
if (s)
|
|
2948
2948
|
return s;
|
|
2949
2949
|
for (let a = t.depth - 1; a >= 0; a--) {
|
|
2950
|
-
let o = n < 0 ?
|
|
2950
|
+
let o = n < 0 ? Nr(t.node(0), t.node(a), t.before(a + 1), t.index(a), n, i) : Nr(t.node(0), t.node(a), t.after(a + 1), t.index(a) + 1, n, i);
|
|
2951
2951
|
if (o)
|
|
2952
2952
|
return o;
|
|
2953
2953
|
}
|
|
@@ -2968,14 +2968,14 @@ class De {
|
|
|
2968
2968
|
exists.
|
|
2969
2969
|
*/
|
|
2970
2970
|
static atStart(t) {
|
|
2971
|
-
return
|
|
2971
|
+
return Nr(t, t, 0, 0, 1) || new En(t);
|
|
2972
2972
|
}
|
|
2973
2973
|
/**
|
|
2974
2974
|
Find the cursor or leaf node selection closest to the end of the
|
|
2975
2975
|
given document.
|
|
2976
2976
|
*/
|
|
2977
2977
|
static atEnd(t) {
|
|
2978
|
-
return
|
|
2978
|
+
return Nr(t, t, t.content.size, t.childCount, -1) || new En(t);
|
|
2979
2979
|
}
|
|
2980
2980
|
/**
|
|
2981
2981
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -3214,7 +3214,7 @@ const s_ = {
|
|
|
3214
3214
|
return new En(e);
|
|
3215
3215
|
}
|
|
3216
3216
|
};
|
|
3217
|
-
function
|
|
3217
|
+
function Nr(e, t, n, i, s, a = !1) {
|
|
3218
3218
|
if (t.inlineContent)
|
|
3219
3219
|
return We.create(e, n);
|
|
3220
3220
|
for (let o = i - (s > 0 ? 0 : 1); s > 0 ? o < t.childCount : o >= 0; o += s) {
|
|
@@ -3223,7 +3223,7 @@ function Vr(e, t, n, i, s, a = !1) {
|
|
|
3223
3223
|
if (!a && zt.isSelectable(l))
|
|
3224
3224
|
return zt.create(e, n - (s < 0 ? l.nodeSize : 0));
|
|
3225
3225
|
} else {
|
|
3226
|
-
let c =
|
|
3226
|
+
let c = Nr(e, l, n + s, s < 0 ? l.childCount : 0, s, a);
|
|
3227
3227
|
if (c)
|
|
3228
3228
|
return c;
|
|
3229
3229
|
}
|
|
@@ -3236,7 +3236,7 @@ function _d(e, t, n) {
|
|
|
3236
3236
|
if (i < t)
|
|
3237
3237
|
return;
|
|
3238
3238
|
let s = e.steps[i];
|
|
3239
|
-
if (!(s instanceof pn || s instanceof
|
|
3239
|
+
if (!(s instanceof pn || s instanceof vr))
|
|
3240
3240
|
return;
|
|
3241
3241
|
let a = e.mapping.maps[i], o;
|
|
3242
3242
|
a.forEach((l, c, d, u) => {
|
|
@@ -3608,7 +3608,7 @@ function Hh(e, t, n = {}) {
|
|
|
3608
3608
|
to: c
|
|
3609
3609
|
};
|
|
3610
3610
|
}
|
|
3611
|
-
function
|
|
3611
|
+
function nr(e, t) {
|
|
3612
3612
|
if (typeof e == "string") {
|
|
3613
3613
|
if (!t.marks[e])
|
|
3614
3614
|
throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);
|
|
@@ -3617,7 +3617,7 @@ function tr(e, t) {
|
|
|
3617
3617
|
return e;
|
|
3618
3618
|
}
|
|
3619
3619
|
const k_ = (e, t = {}) => ({ tr: n, state: i, dispatch: s }) => {
|
|
3620
|
-
const a =
|
|
3620
|
+
const a = nr(e, i.schema), { doc: o, selection: l } = n, { $from: c, from: d, to: u } = l;
|
|
3621
3621
|
if (s) {
|
|
3622
3622
|
const h = Hh(c, a, t);
|
|
3623
3623
|
if (h && h.from <= d && h.to >= u) {
|
|
@@ -3636,7 +3636,7 @@ const k_ = (e, t = {}) => ({ tr: n, state: i, dispatch: s }) => {
|
|
|
3636
3636
|
function Qh(e) {
|
|
3637
3637
|
return e instanceof We;
|
|
3638
3638
|
}
|
|
3639
|
-
function
|
|
3639
|
+
function br(e = 0, t = 0, n = 0) {
|
|
3640
3640
|
return Math.min(Math.max(e, t), n);
|
|
3641
3641
|
}
|
|
3642
3642
|
function I_(e, t = null) {
|
|
@@ -3648,7 +3648,7 @@ function I_(e, t = null) {
|
|
|
3648
3648
|
if (t === "end")
|
|
3649
3649
|
return i;
|
|
3650
3650
|
const s = n.from, a = i.to;
|
|
3651
|
-
return t === "all" ? We.create(e,
|
|
3651
|
+
return t === "all" ? We.create(e, br(0, s, a), br(e.content.size, s, a)) : We.create(e, br(t, s, a), br(t, s, a));
|
|
3652
3652
|
}
|
|
3653
3653
|
function ul() {
|
|
3654
3654
|
return [
|
|
@@ -3703,7 +3703,7 @@ function M_(e, t, n) {
|
|
|
3703
3703
|
if (i < t)
|
|
3704
3704
|
return;
|
|
3705
3705
|
const s = e.steps[i];
|
|
3706
|
-
if (!(s instanceof pn || s instanceof
|
|
3706
|
+
if (!(s instanceof pn || s instanceof vr))
|
|
3707
3707
|
return;
|
|
3708
3708
|
const a = e.mapping.maps[i];
|
|
3709
3709
|
let o = 0;
|
|
@@ -3811,7 +3811,7 @@ function Sd(e, t) {
|
|
|
3811
3811
|
const W_ = (e, t) => ({ tr: n, state: i, dispatch: s }) => {
|
|
3812
3812
|
let a = null, o = null;
|
|
3813
3813
|
const l = Kh(typeof e == "string" ? e : e.name, i.schema);
|
|
3814
|
-
return l ? (l === "node" && (a = ct(e, i.schema)), l === "mark" && (o =
|
|
3814
|
+
return l ? (l === "node" && (a = ct(e, i.schema)), l === "mark" && (o = nr(e, i.schema)), s && n.selection.ranges.forEach((c) => {
|
|
3815
3815
|
i.doc.nodesBetween(c.$from.pos, c.$to.pos, (d, u) => {
|
|
3816
3816
|
a && a === d.type && n.setNodeMarkup(u, void 0, Sd(d.attrs, t)), o && d.marks.length && d.marks.forEach((h) => {
|
|
3817
3817
|
o === h.type && n.addMark(u, u + d.nodeSize, o.create(Sd(h.attrs, t)));
|
|
@@ -3853,7 +3853,7 @@ function pl(e) {
|
|
|
3853
3853
|
return (t) => tj(t.$from, e);
|
|
3854
3854
|
}
|
|
3855
3855
|
function nj(e, t) {
|
|
3856
|
-
const n =
|
|
3856
|
+
const n = nr(t, e.schema), { from: i, to: s, empty: a } = e.selection, o = [];
|
|
3857
3857
|
a ? (e.storedMarks && o.push(...e.storedMarks), o.push(...e.selection.$head.marks())) : e.doc.nodesBetween(i, s, (c) => {
|
|
3858
3858
|
o.push(...c.marks);
|
|
3859
3859
|
});
|
|
@@ -3867,7 +3867,7 @@ function zs(e, t, n) {
|
|
|
3867
3867
|
}));
|
|
3868
3868
|
}
|
|
3869
3869
|
function rj(e, t, n = {}) {
|
|
3870
|
-
const { empty: i, ranges: s } = e.selection, a = t ?
|
|
3870
|
+
const { empty: i, ranges: s } = e.selection, a = t ? nr(t, e.schema) : null;
|
|
3871
3871
|
if (i)
|
|
3872
3872
|
return !!(e.storedMarks || e.selection.$from.marks()).filter((h) => a ? a.name === h.type.name : !0).find((h) => Ns(h.attrs, n, { strict: !1 }));
|
|
3873
3873
|
let o = 0;
|
|
@@ -3923,7 +3923,7 @@ function ij(e, t, n) {
|
|
|
3923
3923
|
});
|
|
3924
3924
|
}
|
|
3925
3925
|
const sj = (e, t = {}) => ({ tr: n, state: i, dispatch: s }) => {
|
|
3926
|
-
const { selection: a } = n, { empty: o, ranges: l } = a, c =
|
|
3926
|
+
const { selection: a } = n, { empty: o, ranges: l } = a, c = nr(e, i.schema);
|
|
3927
3927
|
if (s)
|
|
3928
3928
|
if (o) {
|
|
3929
3929
|
const d = nj(i, c);
|
|
@@ -3950,13 +3950,13 @@ const sj = (e, t = {}) => ({ tr: n, state: i, dispatch: s }) => {
|
|
|
3950
3950
|
return a.isTextblock ? s().command(({ commands: o }) => od(a, t)(n) ? !0 : o.clearNodes()).command(({ state: o }) => od(a, t)(o, i)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
3951
3951
|
}, lj = (e) => ({ tr: t, dispatch: n }) => {
|
|
3952
3952
|
if (n) {
|
|
3953
|
-
const { doc: i } = t, s =
|
|
3953
|
+
const { doc: i } = t, s = br(e, 0, i.content.size), a = zt.create(i, s);
|
|
3954
3954
|
t.setSelection(a);
|
|
3955
3955
|
}
|
|
3956
3956
|
return !0;
|
|
3957
3957
|
}, cj = (e) => ({ tr: t, dispatch: n }) => {
|
|
3958
3958
|
if (n) {
|
|
3959
|
-
const { doc: i } = t, { from: s, to: a } = typeof e == "number" ? { from: e, to: e } : e, o = We.atStart(i).from, l = We.atEnd(i).to, c =
|
|
3959
|
+
const { doc: i } = t, { from: s, to: a } = typeof e == "number" ? { from: e, to: e } : e, o = We.atStart(i).from, l = We.atEnd(i).to, c = br(s, o, l), d = br(a, o, l), u = We.create(i, c, d);
|
|
3960
3960
|
t.setSelection(u);
|
|
3961
3961
|
}
|
|
3962
3962
|
return !0;
|
|
@@ -4079,7 +4079,7 @@ const uj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: i, edit
|
|
|
4079
4079
|
return a.ensureMarks(Z), Q ? !0 : d.clearNodes();
|
|
4080
4080
|
}).wrapInList(m, i).command(() => Xa(a, m)).command(() => Ja(a, m)).run();
|
|
4081
4081
|
}, mj = (e, t = {}, n = {}) => ({ state: i, commands: s }) => {
|
|
4082
|
-
const { extendEmptyMarkRange: a = !1 } = n, o =
|
|
4082
|
+
const { extendEmptyMarkRange: a = !1 } = n, o = nr(e, i.schema);
|
|
4083
4083
|
return rj(i, o, t) ? s.unsetMark(o, { extendEmptyMarkRange: a }) : s.setMark(o, t);
|
|
4084
4084
|
}, fj = (e, t, n = {}) => ({ state: i, commands: s }) => {
|
|
4085
4085
|
const a = ct(e, i.schema), o = ct(t, i.schema);
|
|
@@ -4114,7 +4114,7 @@ const uj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: i, edit
|
|
|
4114
4114
|
}), !0;
|
|
4115
4115
|
}, yj = (e, t = {}) => ({ tr: n, state: i, dispatch: s }) => {
|
|
4116
4116
|
var a;
|
|
4117
|
-
const { extendEmptyMarkRange: o = !1 } = t, { selection: l } = n, c =
|
|
4117
|
+
const { extendEmptyMarkRange: o = !1 } = t, { selection: l } = n, c = nr(e, i.schema), { $from: d, empty: u, ranges: h } = l;
|
|
4118
4118
|
if (!s)
|
|
4119
4119
|
return !0;
|
|
4120
4120
|
if (u && o) {
|
|
@@ -4129,7 +4129,7 @@ const uj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: i, edit
|
|
|
4129
4129
|
}, vj = (e, t = {}) => ({ tr: n, state: i, dispatch: s }) => {
|
|
4130
4130
|
let a = null, o = null;
|
|
4131
4131
|
const l = Kh(typeof e == "string" ? e : e.name, i.schema);
|
|
4132
|
-
return l ? (l === "node" && (a = ct(e, i.schema)), l === "mark" && (o =
|
|
4132
|
+
return l ? (l === "node" && (a = ct(e, i.schema)), l === "mark" && (o = nr(e, i.schema)), s && n.selection.ranges.forEach((c) => {
|
|
4133
4133
|
const d = c.$from.pos, u = c.$to.pos;
|
|
4134
4134
|
i.doc.nodesBetween(d, u, (h, p) => {
|
|
4135
4135
|
a && a === h.type && n.setNodeMarkup(p, void 0, {
|
|
@@ -4471,21 +4471,31 @@ const _i = "data-value", Dj = _i, Zh = "dynamicColor", ep = Bs.create({
|
|
|
4471
4471
|
onChange: t,
|
|
4472
4472
|
onMount: n
|
|
4473
4473
|
}) => {
|
|
4474
|
-
const i = (s) => {
|
|
4475
|
-
if (!
|
|
4474
|
+
const i = Yn(null), s = Yn(null), a = (l) => {
|
|
4475
|
+
if (!l) {
|
|
4476
4476
|
t("");
|
|
4477
4477
|
return;
|
|
4478
4478
|
}
|
|
4479
|
-
t(
|
|
4479
|
+
t(l);
|
|
4480
4480
|
};
|
|
4481
|
-
|
|
4481
|
+
W(() => {
|
|
4482
|
+
var c;
|
|
4483
|
+
const l = (c = i.current) == null ? void 0 : c.getModel();
|
|
4484
|
+
l && (l.getValue() || l.setValue(e));
|
|
4485
|
+
}, [e]);
|
|
4486
|
+
const o = (l, c) => {
|
|
4487
|
+
i.current = l, s.current = c, n == null || n(l, c);
|
|
4488
|
+
};
|
|
4489
|
+
return console.log({
|
|
4490
|
+
value: e
|
|
4491
|
+
}), /* @__PURE__ */ r.jsx(
|
|
4482
4492
|
jn,
|
|
4483
4493
|
{
|
|
4484
4494
|
className: "function-editor",
|
|
4485
4495
|
height: "100%",
|
|
4486
4496
|
defaultLanguage: "javascript",
|
|
4487
4497
|
defaultValue: e,
|
|
4488
|
-
onChange:
|
|
4498
|
+
onChange: a,
|
|
4489
4499
|
theme: "vs-dark",
|
|
4490
4500
|
options: {
|
|
4491
4501
|
lineNumbers: "off",
|
|
@@ -4497,10 +4507,10 @@ const _i = "data-value", Dj = _i, Zh = "dynamicColor", ep = Bs.create({
|
|
|
4497
4507
|
enabled: !1
|
|
4498
4508
|
}
|
|
4499
4509
|
},
|
|
4500
|
-
onMount:
|
|
4510
|
+
onMount: o
|
|
4501
4511
|
}
|
|
4502
4512
|
);
|
|
4503
|
-
},
|
|
4513
|
+
}, ei = re(({
|
|
4504
4514
|
value: e,
|
|
4505
4515
|
onChange: t,
|
|
4506
4516
|
label: n,
|
|
@@ -4558,7 +4568,7 @@ const _i = "data-value", Dj = _i, Zh = "dynamicColor", ep = Bs.create({
|
|
|
4558
4568
|
position: "relative",
|
|
4559
4569
|
flexGrow: 1
|
|
4560
4570
|
}, children: [
|
|
4561
|
-
f && /* @__PURE__ */ r.jsx(
|
|
4571
|
+
f && /* @__PURE__ */ r.jsx(Ir, { center: !0, color: "#fff", opacity: 0.5, children: /* @__PURE__ */ r.jsx(M, { color: "blue", radius: "xl", onClick: h, children: o("common.actions.init_with_default") }) }),
|
|
4562
4572
|
/* @__PURE__ */ r.jsx(Mj, { value: l, onChange: c, onMount: p })
|
|
4563
4573
|
] })
|
|
4564
4574
|
] });
|
|
@@ -4578,11 +4588,11 @@ const _i = "data-value", Dj = _i, Zh = "dynamicColor", ep = Bs.create({
|
|
|
4578
4588
|
const [p, {
|
|
4579
4589
|
open: m,
|
|
4580
4590
|
close: f
|
|
4581
|
-
}] =
|
|
4591
|
+
}] = tr(!1);
|
|
4582
4592
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4583
4593
|
/* @__PURE__ */ r.jsxs(Le, { opened: p, onClose: f, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
|
|
4584
4594
|
s,
|
|
4585
|
-
/* @__PURE__ */ r.jsx(A, { h: 600, children: /* @__PURE__ */ r.jsx(
|
|
4595
|
+
/* @__PURE__ */ r.jsx(A, { h: 600, children: /* @__PURE__ */ r.jsx(ei, { value: t, onChange: n, defaultValue: c, label: i, restrictions: u }) })
|
|
4586
4596
|
] }),
|
|
4587
4597
|
l == null ? void 0 : l({
|
|
4588
4598
|
onClick: m
|
|
@@ -4715,7 +4725,7 @@ function np() {
|
|
|
4715
4725
|
} = v(), [t, {
|
|
4716
4726
|
open: n,
|
|
4717
4727
|
close: i
|
|
4718
|
-
}] =
|
|
4728
|
+
}] = tr(!1);
|
|
4719
4729
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4720
4730
|
/* @__PURE__ */ r.jsx(Le, { opened: t, onClose: i, title: e("function_utils.modal_title"), zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r.jsx(Yi, { value: zv(e), styles: {
|
|
4721
4731
|
root: {
|
|
@@ -4728,7 +4738,7 @@ function np() {
|
|
|
4728
4738
|
}
|
|
4729
4739
|
}
|
|
4730
4740
|
} }) }),
|
|
4731
|
-
/* @__PURE__ */ r.jsx(M, { variant: "light", color: "violet", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(
|
|
4741
|
+
/* @__PURE__ */ r.jsx(M, { variant: "light", color: "violet", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(Dr, { size: 16 }), children: e("function_utils.trigger_text") })
|
|
4732
4742
|
] });
|
|
4733
4743
|
}
|
|
4734
4744
|
const Id = re((e, t) => {
|
|
@@ -4787,7 +4797,7 @@ const Id = re((e, t) => {
|
|
|
4787
4797
|
set: s,
|
|
4788
4798
|
setFalse: a,
|
|
4789
4799
|
toggle: o
|
|
4790
|
-
}] = nt(), l = e.getAttributes("textStyle").color || n.black, c = I(() =>
|
|
4800
|
+
}] = nt(), l = e.getAttributes("textStyle").color || n.black, c = I(() => Jr(l).hex(), [l]), d = I(() => {
|
|
4791
4801
|
const p = [];
|
|
4792
4802
|
return Oj.forEach((m) => {
|
|
4793
4803
|
const f = n.colors[m];
|
|
@@ -4804,7 +4814,7 @@ const Id = re((e, t) => {
|
|
|
4804
4814
|
/* @__PURE__ */ r.jsx(Ft.Target, { children: /* @__PURE__ */ r.jsx(ie.Control, { onClick: o, children: /* @__PURE__ */ r.jsx($s, { color: c, size: 14 }) }) }),
|
|
4805
4815
|
/* @__PURE__ */ r.jsx(Ft.Dropdown, { children: /* @__PURE__ */ r.jsxs(S, { spacing: "xs", children: [
|
|
4806
4816
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
4807
|
-
/* @__PURE__ */ r.jsx(
|
|
4817
|
+
/* @__PURE__ */ r.jsx(Zn, { value: c, onChangeEnd: (p) => u(p, !1), size: "xs", withPicker: !1, dropdownZIndex: 340, styles: {
|
|
4808
4818
|
root: {
|
|
4809
4819
|
flexGrow: 1
|
|
4810
4820
|
},
|
|
@@ -4817,7 +4827,7 @@ const Id = re((e, t) => {
|
|
|
4817
4827
|
/* @__PURE__ */ r.jsx(J, { variant: "default", onClick: h, title: t("common.actions.clear"), children: /* @__PURE__ */ r.jsx(Xu, { stroke: 1.5, size: "1rem" }) }),
|
|
4818
4828
|
/* @__PURE__ */ r.jsx(J, { variant: "default", onClick: a, title: t("common.actions.close"), children: /* @__PURE__ */ r.jsx(el, { stroke: 1.5, size: "1rem" }) })
|
|
4819
4829
|
] }),
|
|
4820
|
-
/* @__PURE__ */ r.jsxs(
|
|
4830
|
+
/* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
4821
4831
|
/* @__PURE__ */ r.jsx(td, { format: "hex", swatches: d, value: c, onChange: (p) => u(p, !1), size: "sm", withPicker: !1, styles: {
|
|
4822
4832
|
swatches: {
|
|
4823
4833
|
marginTop: "0 !important"
|
|
@@ -5105,7 +5115,7 @@ function Xi(e, t, n) {
|
|
|
5105
5115
|
return `${l}${c}`;
|
|
5106
5116
|
}).join("");
|
|
5107
5117
|
}
|
|
5108
|
-
const
|
|
5118
|
+
const _r = {
|
|
5109
5119
|
grid: {
|
|
5110
5120
|
axis: "#97999D",
|
|
5111
5121
|
scope: "rgba(47,140,192,0.1)",
|
|
@@ -5170,9 +5180,9 @@ const vr = {
|
|
|
5170
5180
|
};
|
|
5171
5181
|
function Kj() {
|
|
5172
5182
|
rt.registerTheme("merico-light", {
|
|
5173
|
-
color: Object.values(
|
|
5183
|
+
color: Object.values(_r.graphics.multiple),
|
|
5174
5184
|
visualMap: {
|
|
5175
|
-
color: Object.values(
|
|
5185
|
+
color: Object.values(_r.graphics.depth).reverse()
|
|
5176
5186
|
},
|
|
5177
5187
|
axes: [{
|
|
5178
5188
|
type: "all",
|
|
@@ -5190,7 +5200,7 @@ function ap() {
|
|
|
5190
5200
|
Kj();
|
|
5191
5201
|
}
|
|
5192
5202
|
function* Yj(e) {
|
|
5193
|
-
const t =
|
|
5203
|
+
const t = _r.graphics[e];
|
|
5194
5204
|
if (!t)
|
|
5195
5205
|
throw new Error("Invalid palette key provided");
|
|
5196
5206
|
const n = Object.values(t);
|
|
@@ -5276,7 +5286,7 @@ function nw(e, t, n) {
|
|
|
5276
5286
|
function op() {
|
|
5277
5287
|
Gb([dy, Hb, Qb, Ub, Kb, Yb, Xb, Jb, Zb, ey, ty, ny, ry, iy, sy, ay, oy, ly, cy]);
|
|
5278
5288
|
}
|
|
5279
|
-
const
|
|
5289
|
+
const ti = (e) => qu(e, (t, n) => {
|
|
5280
5290
|
if (n !== void 0 && t)
|
|
5281
5291
|
return Pn(t);
|
|
5282
5292
|
}), Ds = {
|
|
@@ -5542,7 +5552,7 @@ const uw = (e) => {
|
|
|
5542
5552
|
height: n.h
|
|
5543
5553
|
}
|
|
5544
5554
|
}, d = o.viewRender;
|
|
5545
|
-
return /* @__PURE__ */ r.jsx(d, { context: c, instance: l, ...
|
|
5555
|
+
return /* @__PURE__ */ r.jsx(d, { context: c, instance: l, ...Sr(e, ["panel", "vizManager", "data"]) });
|
|
5546
5556
|
}, hw = (e) => {
|
|
5547
5557
|
const {
|
|
5548
5558
|
vizManager: t,
|
|
@@ -5552,14 +5562,14 @@ const uw = (e) => {
|
|
|
5552
5562
|
} = e, a = t.resolveComponent(n.viz.type), o = t.getOrCreateInstance(n), l = {
|
|
5553
5563
|
...up(o, i, t, s)
|
|
5554
5564
|
}, c = a.configRender;
|
|
5555
|
-
return /* @__PURE__ */ r.jsx(c, { context: l, instance: o, ...
|
|
5565
|
+
return /* @__PURE__ */ r.jsx(c, { context: l, instance: o, ...Sr(e, ["panel", "vizManager", "data"]) });
|
|
5556
5566
|
}, hp = (e, t) => {
|
|
5557
|
-
const n =
|
|
5567
|
+
const n = Jr.bezier(e), i = Jr.bezier(t);
|
|
5558
5568
|
return function(s) {
|
|
5559
5569
|
return s < 50 ? n(s * 2 / 100).hex() : i((s - 50) * 2 / 100).hex();
|
|
5560
5570
|
};
|
|
5561
5571
|
}, ga = (e) => {
|
|
5562
|
-
const t =
|
|
5572
|
+
const t = Jr.bezier(e);
|
|
5563
5573
|
return function(n) {
|
|
5564
5574
|
return t(n / 100).hex();
|
|
5565
5575
|
};
|
|
@@ -5646,7 +5656,7 @@ class yl {
|
|
|
5646
5656
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
5647
5657
|
}
|
|
5648
5658
|
}
|
|
5649
|
-
const pp = "13.27.
|
|
5659
|
+
const pp = "13.27.5", vw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5650
5660
|
__proto__: null,
|
|
5651
5661
|
version: pp
|
|
5652
5662
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -6133,7 +6143,7 @@ const Pw = {
|
|
|
6133
6143
|
return /* @__PURE__ */ r.jsxs(A, { sx: {
|
|
6134
6144
|
position: "relative"
|
|
6135
6145
|
}, children: [
|
|
6136
|
-
e && /* @__PURE__ */ r.jsx(
|
|
6146
|
+
e && /* @__PURE__ */ r.jsx(Ir, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
6137
6147
|
/* @__PURE__ */ r.jsx(jn, { height: "500px", defaultLanguage: "javascript", value: t, onChange: i, theme: "vs-dark", options: {
|
|
6138
6148
|
minimap: {
|
|
6139
6149
|
enabled: !1
|
|
@@ -6210,7 +6220,7 @@ const on = re(({
|
|
|
6210
6220
|
/* @__PURE__ */ r.jsx(te, { mt: 10, label: s("common.enabled"), checked: c.enabled, onChange: (T) => u(T.currentTarget.checked) }),
|
|
6211
6221
|
/* @__PURE__ */ r.jsx(Ow, { value: c.func_content, onChange: m, disabled: !c.enabled }),
|
|
6212
6222
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
6213
|
-
/* @__PURE__ */ r.jsx(M, { onClick: f, color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
6223
|
+
/* @__PURE__ */ r.jsx(M, { onClick: f, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Mr, { size: 20 }), children: s("common.actions.reset_to_default") }),
|
|
6214
6224
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
6215
6225
|
/* @__PURE__ */ r.jsx(M, { onClick: p, variant: "subtle", children: s("common.actions.cancel") }),
|
|
6216
6226
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: h, children: s("common.actions.save") })
|
|
@@ -6218,14 +6228,14 @@ const on = re(({
|
|
|
6218
6228
|
] })
|
|
6219
6229
|
] }) })
|
|
6220
6230
|
] });
|
|
6221
|
-
}),
|
|
6231
|
+
}), Er = {
|
|
6222
6232
|
x_axis_scroll: !1,
|
|
6223
6233
|
y_axis_scroll: !1,
|
|
6224
6234
|
x_axis_slider: !1,
|
|
6225
6235
|
y_axis_slider: !1
|
|
6226
6236
|
};
|
|
6227
6237
|
function Ip() {
|
|
6228
|
-
return C.cloneDeep(
|
|
6238
|
+
return C.cloneDeep(Er);
|
|
6229
6239
|
}
|
|
6230
6240
|
const Fw = {
|
|
6231
6241
|
boxplot: {
|
|
@@ -6427,7 +6437,7 @@ const jl = {
|
|
|
6427
6437
|
},
|
|
6428
6438
|
dataZoom: Ip()
|
|
6429
6439
|
};
|
|
6430
|
-
function
|
|
6440
|
+
function Lr(e, t) {
|
|
6431
6441
|
return I(() => {
|
|
6432
6442
|
const {
|
|
6433
6443
|
queryID: n,
|
|
@@ -6440,14 +6450,14 @@ const Et = (e, t) => {
|
|
|
6440
6450
|
const [n, i] = U([]);
|
|
6441
6451
|
return W(() => e.watchTriggerSnapshotList((s) => i(s.filter((a) => a.schemaRef === t))), []), n;
|
|
6442
6452
|
};
|
|
6443
|
-
class
|
|
6453
|
+
class Wr {
|
|
6444
6454
|
constructor(t, n) {
|
|
6445
6455
|
this.root = t, this.path = n;
|
|
6446
6456
|
}
|
|
6447
6457
|
async deleteItem(t) {
|
|
6448
6458
|
t === null && await this.root.deleteItem(this.path);
|
|
6449
6459
|
const n = await this.root.getItem(this.path) || {};
|
|
6450
|
-
await this.root.setItem(this.path,
|
|
6460
|
+
await this.root.setItem(this.path, Sr(n, t));
|
|
6451
6461
|
}
|
|
6452
6462
|
async getItem(t) {
|
|
6453
6463
|
const n = await this.root.getItem(this.path);
|
|
@@ -6484,21 +6494,21 @@ const Ww = {
|
|
|
6484
6494
|
class wl {
|
|
6485
6495
|
constructor(t, n, i) {
|
|
6486
6496
|
G(this, "attachmentStorage");
|
|
6487
|
-
this.instance = t, this.attachmentKey = n, this.constructInstance = i, this.attachmentStorage = new
|
|
6497
|
+
this.instance = t, this.attachmentKey = n, this.constructInstance = i, this.attachmentStorage = new Wr(t.instanceData, n);
|
|
6488
6498
|
}
|
|
6489
6499
|
async getInstance(t) {
|
|
6490
6500
|
if (await this.attachmentStorage.getItem(t))
|
|
6491
|
-
return this.constructInstance(new
|
|
6501
|
+
return this.constructInstance(new Wr(this.attachmentStorage, t));
|
|
6492
6502
|
}
|
|
6493
6503
|
async create(t, n) {
|
|
6494
|
-
return await this.attachmentStorage.setItem(t, n), this.constructInstance(new
|
|
6504
|
+
return await this.attachmentStorage.setItem(t, n), this.constructInstance(new Wr(this.attachmentStorage, t));
|
|
6495
6505
|
}
|
|
6496
6506
|
async remove(t) {
|
|
6497
6507
|
await this.attachmentStorage.deleteItem(t);
|
|
6498
6508
|
}
|
|
6499
6509
|
async list() {
|
|
6500
6510
|
const t = await this.attachmentStorage.getItem(null), n = C.orderBy(Gu(t), (i) => Ww[i.schemaRef] ?? 10);
|
|
6501
|
-
return Promise.all(n.map((i) => this.constructInstance(new
|
|
6511
|
+
return Promise.all(n.map((i) => this.constructInstance(new Wr(this.attachmentStorage, i.id))));
|
|
6502
6512
|
}
|
|
6503
6513
|
}
|
|
6504
6514
|
function Gw(e, t) {
|
|
@@ -6739,7 +6749,7 @@ const l0 = {
|
|
|
6739
6749
|
label: c.label,
|
|
6740
6750
|
value: c.key
|
|
6741
6751
|
})), [n.filters.values]);
|
|
6742
|
-
return /* @__PURE__ */ r.jsx(S, { spacing: 10, children: /* @__PURE__ */ r.jsx(
|
|
6752
|
+
return /* @__PURE__ */ r.jsx(S, { spacing: 10, children: /* @__PURE__ */ r.jsx(Xr, { label: t("interactions.operation.clear_filter_values.select_filter"), data: l, value: a, onChange: o }) });
|
|
6743
6753
|
});
|
|
6744
6754
|
async function u0(e, t) {
|
|
6745
6755
|
const i = (await t.operationData.getItem("config")).filter_keys;
|
|
@@ -6768,7 +6778,7 @@ class p0 {
|
|
|
6768
6778
|
return {
|
|
6769
6779
|
id: a,
|
|
6770
6780
|
schemaRef: o,
|
|
6771
|
-
operationData: new
|
|
6781
|
+
operationData: new Wr(s, "data")
|
|
6772
6782
|
};
|
|
6773
6783
|
};
|
|
6774
6784
|
this.attachments = new wl(t, "__OPERATIONS", i);
|
|
@@ -6844,7 +6854,7 @@ class m0 {
|
|
|
6844
6854
|
return {
|
|
6845
6855
|
id: a,
|
|
6846
6856
|
schemaRef: o,
|
|
6847
|
-
triggerData: new
|
|
6857
|
+
triggerData: new Wr(s, "data")
|
|
6848
6858
|
};
|
|
6849
6859
|
};
|
|
6850
6860
|
this.attachments = new wl(t, Td, i);
|
|
@@ -6970,7 +6980,7 @@ const Lt = ({
|
|
|
6970
6980
|
title: n = "Variables",
|
|
6971
6981
|
variables: i
|
|
6972
6982
|
} = e, s = qg(), a = (o) => {
|
|
6973
|
-
s.copy(o),
|
|
6983
|
+
s.copy(o), Zr({
|
|
6974
6984
|
color: "green",
|
|
6975
6985
|
message: t("common.copied")
|
|
6976
6986
|
});
|
|
@@ -7198,7 +7208,7 @@ const z0 = D(({
|
|
|
7198
7208
|
sampleData: o,
|
|
7199
7209
|
variables: l
|
|
7200
7210
|
} = e, c = T0(s, n), d = async () => {
|
|
7201
|
-
const m = await s.triggerManager.createOrGetTrigger(
|
|
7211
|
+
const m = await s.triggerManager.createOrGetTrigger(kr(), s.triggerManager.getTriggerSchemaList()[0]), f = await s.operationManager.createOrGetOperation(kr(), s.operationManager.getOperationSchemaList()[0]);
|
|
7202
7212
|
await s.addInteraction(m, f), i((y) => y + 1);
|
|
7203
7213
|
};
|
|
7204
7214
|
async function u(m) {
|
|
@@ -7207,7 +7217,7 @@ const z0 = D(({
|
|
|
7207
7217
|
const {
|
|
7208
7218
|
data: h = 0,
|
|
7209
7219
|
loading: p
|
|
7210
|
-
} =
|
|
7220
|
+
} = wr(async () => {
|
|
7211
7221
|
try {
|
|
7212
7222
|
return (await s.triggerManager.getTriggerSchemaList()).length;
|
|
7213
7223
|
} catch {
|
|
@@ -7215,7 +7225,7 @@ const z0 = D(({
|
|
|
7215
7225
|
}
|
|
7216
7226
|
});
|
|
7217
7227
|
return /* @__PURE__ */ r.jsxs(S, { children: [
|
|
7218
|
-
/* @__PURE__ */ r.jsx(
|
|
7228
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: p }),
|
|
7219
7229
|
h === 0 && /* @__PURE__ */ r.jsx(Vi, { icon: /* @__PURE__ */ r.jsx(gy, { size: 16 }), title: t("interactions.unavailable"), color: "gray", children: t("interactions.unavailable_reason") }),
|
|
7220
7230
|
c.map((m) => /* @__PURE__ */ r.jsx(z0, { onRemove: u, instance: a, sampleData: o, variables: l, item: m, manager: e.interactionManager }, m.id)),
|
|
7221
7231
|
/* @__PURE__ */ r.jsx(M, { style: {
|
|
@@ -7764,7 +7774,7 @@ function rS({
|
|
|
7764
7774
|
return Math.min(0, e);
|
|
7765
7775
|
if (e <= 200)
|
|
7766
7776
|
return 100;
|
|
7767
|
-
const n =
|
|
7777
|
+
const n = Gr.floor(Gr.log10(e)), i = Math.pow(10, n), s = Math.pow(10, n - 1);
|
|
7768
7778
|
return e / i <= 2 ? C.round(e, -1 * (n - 1)) - s : C.round(e, -1 * n) - i;
|
|
7769
7779
|
}
|
|
7770
7780
|
function iS(e) {
|
|
@@ -7843,7 +7853,7 @@ function aS({
|
|
|
7843
7853
|
} = e.viewport, c = je({}, i, jl), d = Lt({
|
|
7844
7854
|
vizManager: e.vizManager,
|
|
7845
7855
|
instance: t
|
|
7846
|
-
}), u = Et(d.triggerManager, Tp.id), h =
|
|
7856
|
+
}), u = Et(d.triggerManager, Tp.id), h = Lr(a, c.x_axis.data_key), p = Ee((y) => {
|
|
7847
7857
|
const T = C.get(h, y.name, {
|
|
7848
7858
|
error: "rowData is not found"
|
|
7849
7859
|
});
|
|
@@ -8071,11 +8081,11 @@ function dS(e) {
|
|
|
8071
8081
|
}, color: "dimmed", size: "sm", className: "palette-value--up palette-value", children: L }),
|
|
8072
8082
|
/* @__PURE__ */ r.jsxs(Ft, { width: 240, trapFocus: !0, opened: d, onClose: h, zIndex: 340, withinPortal: !0, children: [
|
|
8073
8083
|
/* @__PURE__ */ r.jsx(Ft.Target, { children: /* @__PURE__ */ r.jsx("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: u, style: {
|
|
8074
|
-
"--shadow-color":
|
|
8084
|
+
"--shadow-color": Jr(i).alpha(0.5).hex(),
|
|
8075
8085
|
backgroundColor: i
|
|
8076
8086
|
} }) }),
|
|
8077
8087
|
/* @__PURE__ */ r.jsxs(Ft.Dropdown, { children: [
|
|
8078
|
-
/* @__PURE__ */ r.jsx(de, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ r.jsx(
|
|
8088
|
+
/* @__PURE__ */ r.jsx(de, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ r.jsx(jr, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: T, style: {
|
|
8079
8089
|
position: "absolute",
|
|
8080
8090
|
top: "0.5em",
|
|
8081
8091
|
right: "0.8em"
|
|
@@ -8260,7 +8270,7 @@ function Ln(e) {
|
|
|
8260
8270
|
}
|
|
8261
8271
|
}
|
|
8262
8272
|
var me = void 0;
|
|
8263
|
-
function
|
|
8273
|
+
function Hr(e) {
|
|
8264
8274
|
var t = me;
|
|
8265
8275
|
me = void 0;
|
|
8266
8276
|
try {
|
|
@@ -8548,7 +8558,7 @@ var vS = Object.create, zl = Object.defineProperty, _S = Object.getOwnPropertyDe
|
|
|
8548
8558
|
}, Ld = (e, t) => zl(e, "name", { value: t, configurable: !0 }), kS = (e) => {
|
|
8549
8559
|
var t;
|
|
8550
8560
|
return [, , , vS((t = e == null ? void 0 : e[Np("metadata")]) != null ? t : null)];
|
|
8551
|
-
}, qp = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ji = (e) => e !== void 0 && typeof e != "function" ? si("Function expected") : e, CS = (e, t, n, i, s) => ({ kind: qp[e], name: t, metadata: i, addInitializer: (a) => n._ ? si("Already initialized") : s.push(ji(a || null)) }), Bp = (e, t) => zo(t, Np("metadata"), e[3]),
|
|
8561
|
+
}, qp = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ji = (e) => e !== void 0 && typeof e != "function" ? si("Function expected") : e, CS = (e, t, n, i, s) => ({ kind: qp[e], name: t, metadata: i, addInitializer: (a) => n._ ? si("Already initialized") : s.push(ji(a || null)) }), Bp = (e, t) => zo(t, Np("metadata"), e[3]), ur = (e, t, n, i) => {
|
|
8552
8562
|
for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
|
|
8553
8563
|
t & 1 ? a[s].call(n) : i = a[s].call(n, i);
|
|
8554
8564
|
return i;
|
|
@@ -8663,7 +8673,7 @@ var Rd = 10, Wp, Gp, Hp, Qp, Up, xt, Ml, El, Ll;
|
|
|
8663
8673
|
Up = [Ie], Qp = [Ie], Hp = [Ie], Gp = [Us], Wp = [Us];
|
|
8664
8674
|
var ai = class {
|
|
8665
8675
|
constructor(e) {
|
|
8666
|
-
|
|
8676
|
+
ur(xt, 5, this), eo(this, Ml, ur(xt, 8, this)), ur(xt, 11, this), eo(this, El, ur(xt, 12, this)), ur(xt, 15, this), eo(this, Ll, ur(xt, 16, this)), ur(xt, 19, this);
|
|
8667
8677
|
const t = Dn.from(e);
|
|
8668
8678
|
this.initial = t, this.current = t, this.previous = t;
|
|
8669
8679
|
}
|
|
@@ -8776,7 +8786,7 @@ var Wt = class {
|
|
|
8776
8786
|
* Does not trigger effects when accessed.
|
|
8777
8787
|
*/
|
|
8778
8788
|
isDisabled() {
|
|
8779
|
-
return
|
|
8789
|
+
return Hr(() => this.disabled);
|
|
8780
8790
|
}
|
|
8781
8791
|
/**
|
|
8782
8792
|
* Configure a plugin instance with new options.
|
|
@@ -8805,7 +8815,7 @@ ts(Pi, Wt);
|
|
|
8805
8815
|
var VS = class extends Wt {
|
|
8806
8816
|
}, ns = /* @__PURE__ */ ((e) => (e[e.Lowest = 0] = "Lowest", e[e.Low = 1] = "Low", e[e.Normal = 2] = "Normal", e[e.High = 3] = "High", e[e.Highest = 4] = "Highest", e))(ns || {}), rm, im, sm, am, ft, Pl, Ol, Fl, Vl;
|
|
8807
8817
|
am = [Ie], sm = [Ie], im = [Ie], rm = [Ie];
|
|
8808
|
-
var
|
|
8818
|
+
var $r = class {
|
|
8809
8819
|
/**
|
|
8810
8820
|
* Creates a new instance of the `Entity` class.
|
|
8811
8821
|
*
|
|
@@ -8861,12 +8871,12 @@ Pl = /* @__PURE__ */ new WeakMap();
|
|
|
8861
8871
|
Ol = /* @__PURE__ */ new WeakMap();
|
|
8862
8872
|
Fl = /* @__PURE__ */ new WeakMap();
|
|
8863
8873
|
Vl = /* @__PURE__ */ new WeakMap();
|
|
8864
|
-
St(ft, 4, "manager", am,
|
|
8865
|
-
St(ft, 4, "id", sm,
|
|
8866
|
-
St(ft, 4, "data", im,
|
|
8867
|
-
St(ft, 4, "disabled", rm,
|
|
8868
|
-
ts(ft,
|
|
8869
|
-
var om, lm, cm, Eo, Si, fn, Nl, ql, rs = class extends (Eo =
|
|
8874
|
+
St(ft, 4, "manager", am, $r, Pl);
|
|
8875
|
+
St(ft, 4, "id", sm, $r, Ol);
|
|
8876
|
+
St(ft, 4, "data", im, $r, Fl);
|
|
8877
|
+
St(ft, 4, "disabled", rm, $r, Vl);
|
|
8878
|
+
ts(ft, $r);
|
|
8879
|
+
var om, lm, cm, Eo, Si, fn, Nl, ql, rs = class extends (Eo = $r, cm = [Ie], lm = [Ie], om = [Us], Eo) {
|
|
8870
8880
|
constructor(t, n) {
|
|
8871
8881
|
var i = t, { modifiers: s, type: a, sensors: o } = i, l = Jp(i, ["modifiers", "type", "sensors"]);
|
|
8872
8882
|
super(l, n), Se(fn, 5, this), It(this, Si), It(this, Nl, Se(fn, 8, this)), Se(fn, 11, this), It(this, ql, Se(fn, 12, this, "idle")), Se(fn, 15, this), this.type = a, this.sensors = o, this.modifiers = s;
|
|
@@ -8899,7 +8909,7 @@ St(fn, 4, "type", cm, rs, Nl);
|
|
|
8899
8909
|
St(fn, 4, "status", lm, rs, ql);
|
|
8900
8910
|
St(fn, 2, "isDragSource", om, rs);
|
|
8901
8911
|
ts(fn, rs);
|
|
8902
|
-
var dm, um, hm, pm, mm, fm, Lo, qe, Bl, Wl, Gl, Hl, Ql,
|
|
8912
|
+
var dm, um, hm, pm, mm, fm, Lo, qe, Bl, Wl, Gl, Hl, Ql, rr = class extends (Lo = $r, fm = [Ie], mm = [Ie], pm = [Ie], hm = [Ie], um = [Ie], dm = [Us], Lo) {
|
|
8903
8913
|
constructor(t, n) {
|
|
8904
8914
|
var i = t, {
|
|
8905
8915
|
accept: s,
|
|
@@ -8937,13 +8947,13 @@ Wl = /* @__PURE__ */ new WeakMap();
|
|
|
8937
8947
|
Gl = /* @__PURE__ */ new WeakMap();
|
|
8938
8948
|
Hl = /* @__PURE__ */ new WeakMap();
|
|
8939
8949
|
Ql = /* @__PURE__ */ new WeakMap();
|
|
8940
|
-
St(qe, 4, "accept", fm,
|
|
8941
|
-
St(qe, 4, "type", mm,
|
|
8942
|
-
St(qe, 4, "collisionDetector", pm,
|
|
8943
|
-
St(qe, 4, "collisionPriority", hm,
|
|
8944
|
-
St(qe, 4, "shape", um,
|
|
8945
|
-
St(qe, 2, "isDropTarget", dm,
|
|
8946
|
-
ts(qe,
|
|
8950
|
+
St(qe, 4, "accept", fm, rr, Bl);
|
|
8951
|
+
St(qe, 4, "type", mm, rr, Wl);
|
|
8952
|
+
St(qe, 4, "collisionDetector", pm, rr, Gl);
|
|
8953
|
+
St(qe, 4, "collisionPriority", hm, rr, Hl);
|
|
8954
|
+
St(qe, 4, "shape", um, rr, Ql);
|
|
8955
|
+
St(qe, 2, "isDropTarget", dm, rr);
|
|
8956
|
+
ts(qe, rr);
|
|
8947
8957
|
var Ys = class extends Wt {
|
|
8948
8958
|
constructor(e, t) {
|
|
8949
8959
|
super(e, t), this.manager = e, this.options = t;
|
|
@@ -9049,12 +9059,12 @@ function HS(e) {
|
|
|
9049
9059
|
function Fd(e) {
|
|
9050
9060
|
return "value" in e;
|
|
9051
9061
|
}
|
|
9052
|
-
function
|
|
9062
|
+
function Qr(e) {
|
|
9053
9063
|
return "style" in e && e.style instanceof li(e).CSSStyleDeclaration;
|
|
9054
9064
|
}
|
|
9055
9065
|
function QS(e, t = !1, n) {
|
|
9056
9066
|
const i = HS(e);
|
|
9057
|
-
if (
|
|
9067
|
+
if (Qr(i) && (t || i.style.setProperty("opacity", "0")), i.setAttribute("inert", "true"), i.setAttribute("tab-index", "-1"), i.setAttribute("aria-hidden", "true"), n)
|
|
9058
9068
|
for (const [s, a] of Object.entries(n))
|
|
9059
9069
|
i.setAttribute(s, a);
|
|
9060
9070
|
return i;
|
|
@@ -9130,13 +9140,13 @@ function US(e, t) {
|
|
|
9130
9140
|
function KS(e) {
|
|
9131
9141
|
return e instanceof li(e).SVGElement;
|
|
9132
9142
|
}
|
|
9133
|
-
function
|
|
9143
|
+
function ir(e) {
|
|
9134
9144
|
return li(e).getComputedStyle(e);
|
|
9135
9145
|
}
|
|
9136
|
-
function YS(e, t =
|
|
9146
|
+
function YS(e, t = ir(e)) {
|
|
9137
9147
|
return t.position === "fixed" || t.position === "sticky";
|
|
9138
9148
|
}
|
|
9139
|
-
function XS(e, t =
|
|
9149
|
+
function XS(e, t = ir(e)) {
|
|
9140
9150
|
const n = /(auto|scroll|overlay)/;
|
|
9141
9151
|
return ["overflow", "overflowX", "overflowY"].find((s) => {
|
|
9142
9152
|
const a = t[s];
|
|
@@ -9157,7 +9167,7 @@ function Xs(e, t = JS) {
|
|
|
9157
9167
|
return KS(o) ? a(o.parentElement) : s;
|
|
9158
9168
|
if (s.has(o))
|
|
9159
9169
|
return s;
|
|
9160
|
-
const l =
|
|
9170
|
+
const l = ir(o);
|
|
9161
9171
|
if (i && o === e || XS(o, l) && s.add(o), YS(o, l)) {
|
|
9162
9172
|
const { scrollingElement: c } = o.ownerDocument;
|
|
9163
9173
|
return c && s.add(c), s;
|
|
@@ -9221,7 +9231,7 @@ function wm(e, t = !1) {
|
|
|
9221
9231
|
var [n] = Xs(e, { limit: 1 });
|
|
9222
9232
|
if (!(n instanceof HTMLElement))
|
|
9223
9233
|
return;
|
|
9224
|
-
const i =
|
|
9234
|
+
const i = ir(n), s = parseInt(
|
|
9225
9235
|
i.getPropertyValue("border-top-width")
|
|
9226
9236
|
), a = parseInt(
|
|
9227
9237
|
i.getPropertyValue("border-left-width")
|
|
@@ -9240,7 +9250,7 @@ var i1 = class {
|
|
|
9240
9250
|
schedule(e) {
|
|
9241
9251
|
this.tasks.add(e), this.animationFrame || (this.animationFrame = requestAnimationFrame(this.flush));
|
|
9242
9252
|
}
|
|
9243
|
-
},
|
|
9253
|
+
}, Ur = new i1();
|
|
9244
9254
|
function s1(e, t, n) {
|
|
9245
9255
|
const { scaleX: i, scaleY: s, x: a, y: o } = t, l = e.left - a - (1 - i) * parseFloat(n), c = e.top - o - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = i ? e.width / i : e.width, u = s ? e.height / s : e.height;
|
|
9246
9256
|
return {
|
|
@@ -9258,7 +9268,7 @@ var Sm = class {
|
|
|
9258
9268
|
}
|
|
9259
9269
|
set(e, t = "") {
|
|
9260
9270
|
const { element: n } = this;
|
|
9261
|
-
if (
|
|
9271
|
+
if (Qr(n))
|
|
9262
9272
|
for (const [i, s] of Object.entries(e)) {
|
|
9263
9273
|
const a = `${t}${i}`;
|
|
9264
9274
|
this.initial.has(a) || this.initial.set(a, n.style.getPropertyValue(a)), n.style.setProperty(
|
|
@@ -9269,7 +9279,7 @@ var Sm = class {
|
|
|
9269
9279
|
}
|
|
9270
9280
|
remove(e, t = "") {
|
|
9271
9281
|
const { element: n } = this;
|
|
9272
|
-
if (
|
|
9282
|
+
if (Qr(n))
|
|
9273
9283
|
for (const i of e) {
|
|
9274
9284
|
const s = `${t}${i}`;
|
|
9275
9285
|
n.style.removeProperty(s);
|
|
@@ -9277,7 +9287,7 @@ var Sm = class {
|
|
|
9277
9287
|
}
|
|
9278
9288
|
reset() {
|
|
9279
9289
|
const { element: e } = this;
|
|
9280
|
-
if (
|
|
9290
|
+
if (Qr(e)) {
|
|
9281
9291
|
for (const [t, n] of this.initial)
|
|
9282
9292
|
e.style.setProperty(t, n);
|
|
9283
9293
|
e.getAttribute("style") === "" && e.removeAttribute("style");
|
|
@@ -9291,7 +9301,7 @@ function km({
|
|
|
9291
9301
|
onReady: i,
|
|
9292
9302
|
onFinish: s
|
|
9293
9303
|
}) {
|
|
9294
|
-
const a = new Sm(e), { transitionProperty: o } =
|
|
9304
|
+
const a = new Sm(e), { transitionProperty: o } = ir(e), l = o.split(", ");
|
|
9295
9305
|
a.set({
|
|
9296
9306
|
"transition-property": l.length ? l.filter(
|
|
9297
9307
|
(c) => !c.includes("transform") && !c.includes("translate")
|
|
@@ -9329,7 +9339,7 @@ function a1(e) {
|
|
|
9329
9339
|
return s;
|
|
9330
9340
|
}
|
|
9331
9341
|
}
|
|
9332
|
-
const { translate: n } =
|
|
9342
|
+
const { translate: n } = ir(e);
|
|
9333
9343
|
if (n) {
|
|
9334
9344
|
const i = Js(n);
|
|
9335
9345
|
if (i)
|
|
@@ -9395,7 +9405,7 @@ var hn = class extends zS {
|
|
|
9395
9405
|
constructor(e, t = !1) {
|
|
9396
9406
|
var n, i;
|
|
9397
9407
|
let { top: s, left: a, right: o, bottom: l, width: c, height: d } = gm(e);
|
|
9398
|
-
const u =
|
|
9408
|
+
const u = ir(e), h = Im(u), p = {
|
|
9399
9409
|
x: (n = h == null ? void 0 : h.scaleX) != null ? n : 1,
|
|
9400
9410
|
y: (i = h == null ? void 0 : h.scaleY) != null ? i : 1
|
|
9401
9411
|
}, m = c1(e);
|
|
@@ -9450,15 +9460,15 @@ var d1 = Object.create, Tm = Object.defineProperty, u1 = Object.defineProperties
|
|
|
9450
9460
|
for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
|
|
9451
9461
|
t & 1 ? a[s].call(n) : i = a[s].call(n, i);
|
|
9452
9462
|
return i;
|
|
9453
|
-
},
|
|
9463
|
+
}, sr = (e, t, n, i, s, a) => {
|
|
9454
9464
|
for (var o, l, c, d, u, h = t & 7, p = !!(t & 8), m = !!(t & 16), f = e.length + 1, y = $m[h + 5], T = e[f - 1] = [], k = e[f] || (e[f] = []), z = (s = s.prototype, h1({ get [n]() {
|
|
9455
9465
|
return gn(this, a);
|
|
9456
9466
|
}, set [n]($) {
|
|
9457
|
-
return
|
|
9467
|
+
return Kr(this, a, $);
|
|
9458
9468
|
} }, n)), L = i.length - 1; L >= 0; L--)
|
|
9459
9469
|
d = f1(h, n, c = {}, e[3], k), d.static = p, d.private = m, u = d.access = { has: ($) => n in $ }, u.get = ($) => $[n], u.set = ($, O) => $[n] = O, l = (0, i[L])({ get: z.get, set: z.set }, d), c._ = 1, l === void 0 ? ki(l) && (z[y] = l) : typeof l != "object" || l === null ? ss("Object expected") : (ki(o = l.get) && (z.get = o), ki(o = l.set) && (z.set = o), ki(o = l.init) && T.unshift(o));
|
|
9460
9470
|
return z && Tm(s, n, z), s;
|
|
9461
|
-
}, Am = (e, t, n) => t.has(e) || ss("Cannot " + n), gn = (e, t, n) => (Am(e, t, "read from private field"), t.get(e)), Vt = (e, t, n) => t.has(e) ? ss("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n),
|
|
9471
|
+
}, Am = (e, t, n) => t.has(e) || ss("Cannot " + n), gn = (e, t, n) => (Am(e, t, "read from private field"), t.get(e)), Vt = (e, t, n) => t.has(e) ? ss("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Kr = (e, t, n, i) => (Am(e, t, "write to private field"), t.set(e, n), n), Nd = {
|
|
9462
9472
|
role: "button",
|
|
9463
9473
|
roleDescription: "draggable",
|
|
9464
9474
|
tabIndex: 0
|
|
@@ -9568,9 +9578,9 @@ var w1 = class extends Wt {
|
|
|
9568
9578
|
const { element: f, feedback: y } = p;
|
|
9569
9579
|
if (!f || y === "none")
|
|
9570
9580
|
return;
|
|
9571
|
-
const T = new hn(f, !0), { width: k, height: z, top: L, left: $ } = T, O = new Sm(f), { background: Q, border: Z, transition: ke, translate: ye } =
|
|
9581
|
+
const T = new hn(f, !0), { width: k, height: z, top: L, left: $ } = T, O = new Sm(f), { background: Q, border: Z, transition: ke, translate: ye } = ir(f), Ye = e.registry.droppables.get(p.id), Me = y === "clone", ge = y !== "move" ? QS(f, Me, {
|
|
9572
9582
|
[Pm]: ""
|
|
9573
|
-
}) : null, it =
|
|
9583
|
+
}) : null, it = Hr(
|
|
9574
9584
|
() => Zs(e.dragOperation.activatorEvent)
|
|
9575
9585
|
);
|
|
9576
9586
|
if (ye !== "none") {
|
|
@@ -9581,7 +9591,7 @@ var w1 = class extends Wt {
|
|
|
9581
9591
|
x: $,
|
|
9582
9592
|
y: L
|
|
9583
9593
|
}), !a) {
|
|
9584
|
-
const ve =
|
|
9594
|
+
const ve = Hr(() => h.current);
|
|
9585
9595
|
a = {
|
|
9586
9596
|
x: (ve.x - $) / k,
|
|
9587
9597
|
y: (ve.y - L) / z
|
|
@@ -9638,13 +9648,13 @@ var w1 = class extends Wt {
|
|
|
9638
9648
|
}
|
|
9639
9649
|
e.dragOperation.shape = new hn(f);
|
|
9640
9650
|
});
|
|
9641
|
-
Ye && ge && (Ye.placeholder = ge,
|
|
9642
|
-
let
|
|
9643
|
-
ge && (mi.observe(ge),
|
|
9651
|
+
Ye && ge && (Ye.placeholder = ge, Hr(Ye.refreshShape)), u.shape = new hn(f), p.status = "dragging";
|
|
9652
|
+
let cr, dr;
|
|
9653
|
+
ge && (mi.observe(ge), cr = new MutationObserver(() => {
|
|
9644
9654
|
for (const ve of Array.from(f.attributes))
|
|
9645
9655
|
if (!(ve.name.startsWith("aria-") || C1.includes(ve.name))) {
|
|
9646
9656
|
if (ve.name === "style") {
|
|
9647
|
-
if (
|
|
9657
|
+
if (Qr(f) && Qr(ge)) {
|
|
9648
9658
|
ge.setAttribute("style", Me ? "" : "opacity: 0;"), ge.style.setProperty("transition", "none");
|
|
9649
9659
|
for (const we of Object.values(f.style))
|
|
9650
9660
|
we.startsWith(ot) || I1.includes(we) || ge.style.setProperty(
|
|
@@ -9657,16 +9667,16 @@ var w1 = class extends Wt {
|
|
|
9657
9667
|
ge.setAttribute(ve.name, ve.value);
|
|
9658
9668
|
}
|
|
9659
9669
|
Me && (ge.innerHTML = f.innerHTML);
|
|
9660
|
-
}),
|
|
9670
|
+
}), cr.observe(f, {
|
|
9661
9671
|
attributes: !0,
|
|
9662
9672
|
subtree: !0
|
|
9663
|
-
}),
|
|
9673
|
+
}), dr = new MutationObserver((ve) => {
|
|
9664
9674
|
for (const we of ve)
|
|
9665
9675
|
if (Array.from(we.addedNodes).includes(f)) {
|
|
9666
9676
|
f.insertAdjacentElement("afterend", ge), no(f);
|
|
9667
9677
|
return;
|
|
9668
9678
|
}
|
|
9669
|
-
}),
|
|
9679
|
+
}), dr.observe(f.ownerDocument.body, {
|
|
9670
9680
|
childList: !0,
|
|
9671
9681
|
subtree: !0
|
|
9672
9682
|
}));
|
|
@@ -9699,13 +9709,13 @@ var w1 = class extends Wt {
|
|
|
9699
9709
|
const we = e.registry.draggables.get(fi), Ae = (ve = we == null ? void 0 : we.handle) != null ? ve : we == null ? void 0 : we.element;
|
|
9700
9710
|
Ae instanceof HTMLElement && Ae.focus();
|
|
9701
9711
|
};
|
|
9702
|
-
let
|
|
9703
|
-
|
|
9712
|
+
let Ar = () => {
|
|
9713
|
+
cr == null || cr.disconnect(), dr == null || dr.disconnect(), mi.disconnect(), O.reset(), o && f.isConnected && (ge == null || ge.replaceWith(f)), ge == null || ge.remove(), f.removeAttribute(Wn), $o(f) && f.removeAttribute("popover"), cs(), Oa(), Ye && (Ye.placeholder = void 0), p.status = "idle", o = !1;
|
|
9704
9714
|
};
|
|
9705
9715
|
const Oa = bt(function() {
|
|
9706
9716
|
if (u.status.dropped) {
|
|
9707
|
-
const we =
|
|
9708
|
-
|
|
9717
|
+
const we = Ar;
|
|
9718
|
+
Ar = void 0, p.status = "dropping";
|
|
9709
9719
|
const Ae = s;
|
|
9710
9720
|
if (!Ae) {
|
|
9711
9721
|
we == null || we();
|
|
@@ -9746,7 +9756,7 @@ var w1 = class extends Wt {
|
|
|
9746
9756
|
});
|
|
9747
9757
|
}
|
|
9748
9758
|
});
|
|
9749
|
-
return () =>
|
|
9759
|
+
return () => Ar == null ? void 0 : Ar();
|
|
9750
9760
|
});
|
|
9751
9761
|
this.destroy = () => {
|
|
9752
9762
|
l(), c(), t == null || t.remove();
|
|
@@ -9768,8 +9778,8 @@ var Oi = class {
|
|
|
9768
9778
|
Hn = wa(null);
|
|
9769
9779
|
Kl = /* @__PURE__ */ new WeakMap();
|
|
9770
9780
|
Yl = /* @__PURE__ */ new WeakMap();
|
|
9771
|
-
|
|
9772
|
-
|
|
9781
|
+
sr(Hn, 4, Nm, Vm, Oi, Kl);
|
|
9782
|
+
sr(Hn, 4, Fm, Om, Oi, Yl);
|
|
9773
9783
|
Sa(Hn, Oi);
|
|
9774
9784
|
var D1 = [Ot.Forward, Ot.Reverse], Bd = class {
|
|
9775
9785
|
constructor() {
|
|
@@ -9825,7 +9835,7 @@ var qm, Ro, Fi, Xl, Bn, Po, ka = class extends (Ro = VS, qm = [Ie], Ro) {
|
|
|
9825
9835
|
return !1;
|
|
9826
9836
|
const l = this.getScrollableElements();
|
|
9827
9837
|
if (!l)
|
|
9828
|
-
return
|
|
9838
|
+
return Kr(this, Bn, void 0), !1;
|
|
9829
9839
|
const { position: c } = this.manager.dragOperation, d = c == null ? void 0 : c.current;
|
|
9830
9840
|
if (d) {
|
|
9831
9841
|
const { by: u } = a ?? {}, h = u ? {
|
|
@@ -9851,19 +9861,19 @@ var qm, Ro, Fi, Xl, Bn, Po, ka = class extends (Ro = VS, qm = [Ie], Ro) {
|
|
|
9851
9861
|
const O = (o = gn(this, Bn)) == null ? void 0 : o.by;
|
|
9852
9862
|
if (this.autoScrolling && O && (O.x && !L || O.y && !$))
|
|
9853
9863
|
continue;
|
|
9854
|
-
return
|
|
9864
|
+
return Kr(this, Bn, {
|
|
9855
9865
|
element: m,
|
|
9856
9866
|
by: {
|
|
9857
9867
|
x: L,
|
|
9858
9868
|
y: $
|
|
9859
9869
|
}
|
|
9860
|
-
}),
|
|
9870
|
+
}), Ur.schedule(gn(this, Po)), !0;
|
|
9861
9871
|
}
|
|
9862
9872
|
}
|
|
9863
9873
|
}
|
|
9864
9874
|
}
|
|
9865
9875
|
}
|
|
9866
|
-
return
|
|
9876
|
+
return Kr(this, Bn, void 0), !1;
|
|
9867
9877
|
};
|
|
9868
9878
|
let t = null, n = null;
|
|
9869
9879
|
const i = Qs(() => {
|
|
@@ -9901,7 +9911,7 @@ Fi = wa(Ro);
|
|
|
9901
9911
|
Xl = /* @__PURE__ */ new WeakMap();
|
|
9902
9912
|
Bn = /* @__PURE__ */ new WeakMap();
|
|
9903
9913
|
Po = /* @__PURE__ */ new WeakMap();
|
|
9904
|
-
|
|
9914
|
+
sr(Fi, 4, "autoScrolling", qm, ka, Xl);
|
|
9905
9915
|
Sa(Fi, ka);
|
|
9906
9916
|
function Gd(e) {
|
|
9907
9917
|
return e > 0 ? Ot.Forward : e < 0 ? Ot.Reverse : Ot.Idle;
|
|
@@ -10008,13 +10018,13 @@ var Qd = {
|
|
|
10008
10018
|
}
|
|
10009
10019
|
handleKeyDown(e, t, n) {
|
|
10010
10020
|
const { keyboardCodes: i = Qd } = n ?? {};
|
|
10011
|
-
if (
|
|
10021
|
+
if (Or(e, [...i.end, ...i.cancel])) {
|
|
10012
10022
|
e.preventDefault();
|
|
10013
|
-
const s =
|
|
10023
|
+
const s = Or(e, i.cancel);
|
|
10014
10024
|
this.handleEnd(s);
|
|
10015
10025
|
return;
|
|
10016
10026
|
}
|
|
10017
|
-
|
|
10027
|
+
Or(e, i.up) ? this.handleMove("up", e) : Or(e, i.down) && this.handleMove("down", e), Or(e, i.left) ? this.handleMove("left", e) : Or(e, i.right) && this.handleMove("right", e);
|
|
10018
10028
|
}
|
|
10019
10029
|
handleEnd(e) {
|
|
10020
10030
|
this.manager.actions.stop({
|
|
@@ -10061,12 +10071,12 @@ var Qd = {
|
|
|
10061
10071
|
}
|
|
10062
10072
|
};
|
|
10063
10073
|
Ci = /* @__PURE__ */ new WeakMap();
|
|
10064
|
-
function
|
|
10074
|
+
function Or(e, t) {
|
|
10065
10075
|
return t.includes(e.code);
|
|
10066
10076
|
}
|
|
10067
|
-
var
|
|
10077
|
+
var qr, Oo = class extends Ys {
|
|
10068
10078
|
constructor(t, n) {
|
|
10069
|
-
super(t), this.manager = t, this.options = n, this.listeners = new _m(), this.cleanup = /* @__PURE__ */ new Set(), Vt(this,
|
|
10079
|
+
super(t), this.manager = t, this.options = n, this.listeners = new _m(), this.cleanup = /* @__PURE__ */ new Set(), Vt(this, qr), this.handleCancel = this.handleCancel.bind(this), this.handlePointerUp = this.handlePointerUp.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
10070
10080
|
}
|
|
10071
10081
|
bind(t, n = this.options) {
|
|
10072
10082
|
return bt(() => {
|
|
@@ -10098,8 +10108,8 @@ var Nr, Oo = class extends Ys {
|
|
|
10098
10108
|
() => this.handleStart(n, t),
|
|
10099
10109
|
h.value
|
|
10100
10110
|
);
|
|
10101
|
-
|
|
10102
|
-
clearTimeout(p),
|
|
10111
|
+
Kr(this, qr, () => {
|
|
10112
|
+
clearTimeout(p), Kr(this, qr, void 0);
|
|
10103
10113
|
});
|
|
10104
10114
|
}
|
|
10105
10115
|
}
|
|
@@ -10139,7 +10149,7 @@ var Nr, Oo = class extends Ys {
|
|
|
10139
10149
|
}
|
|
10140
10150
|
]), u = () => {
|
|
10141
10151
|
var h;
|
|
10142
|
-
setTimeout(d), (h = gn(this,
|
|
10152
|
+
setTimeout(d), (h = gn(this, qr)) == null || h.call(this), this.initialCoordinates = void 0, this.cleanup.delete(u);
|
|
10143
10153
|
};
|
|
10144
10154
|
this.cleanup.add(u);
|
|
10145
10155
|
}
|
|
@@ -10182,7 +10192,7 @@ var Nr, Oo = class extends Ys {
|
|
|
10182
10192
|
handleStart(t, n) {
|
|
10183
10193
|
var i;
|
|
10184
10194
|
const { manager: s, initialCoordinates: a } = this;
|
|
10185
|
-
(i = gn(this,
|
|
10195
|
+
(i = gn(this, qr)) == null || i.call(this), !(!a || s.dragOperation.status.initialized) && (n.defaultPrevented || (n.preventDefault(), Ln(() => {
|
|
10186
10196
|
s.actions.setDragSource(t.id), s.actions.start({ coordinates: a, event: n });
|
|
10187
10197
|
})));
|
|
10188
10198
|
}
|
|
@@ -10194,7 +10204,7 @@ var Nr, Oo = class extends Ys {
|
|
|
10194
10204
|
this.listeners.clear();
|
|
10195
10205
|
}
|
|
10196
10206
|
};
|
|
10197
|
-
|
|
10207
|
+
qr = /* @__PURE__ */ new WeakMap();
|
|
10198
10208
|
Oo.configure = FS(Oo);
|
|
10199
10209
|
var A1 = Oo;
|
|
10200
10210
|
function io(e) {
|
|
@@ -10262,11 +10272,11 @@ Kt = wa(Fo);
|
|
|
10262
10272
|
Jl = /* @__PURE__ */ new WeakMap();
|
|
10263
10273
|
Zl = /* @__PURE__ */ new WeakMap();
|
|
10264
10274
|
ec = /* @__PURE__ */ new WeakMap();
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10275
|
+
sr(Kt, 4, "handle", Hm, as, Jl);
|
|
10276
|
+
sr(Kt, 4, "element", Gm, as, Zl);
|
|
10277
|
+
sr(Kt, 4, "feedback", Wm, as, ec);
|
|
10268
10278
|
Sa(Kt, as);
|
|
10269
|
-
var Qm, Um, Vo, Qn, tc, nc, Ca = class extends (Vo =
|
|
10279
|
+
var Qm, Um, Vo, Qn, tc, nc, Ca = class extends (Vo = rr, Um = [Ie], Qm = [Ie], Vo) {
|
|
10270
10280
|
constructor(e, t) {
|
|
10271
10281
|
var n = e, { element: i, effects: s = () => [] } = n, a = Lm(n, ["element", "effects"]), o;
|
|
10272
10282
|
const { collisionDetector: l = xm } = a;
|
|
@@ -10291,9 +10301,9 @@ var Qm, Um, Vo, Qn, tc, nc, Ca = class extends (Vo = nr, Um = [Ie], Qm = [Ie], V
|
|
|
10291
10301
|
rootMargin: "40%"
|
|
10292
10302
|
}
|
|
10293
10303
|
), y = new MutationObserver(
|
|
10294
|
-
() =>
|
|
10304
|
+
() => Ur.schedule(this.refreshShape)
|
|
10295
10305
|
), T = new ResizeObserver(
|
|
10296
|
-
() =>
|
|
10306
|
+
() => Ur.schedule(this.refreshShape)
|
|
10297
10307
|
);
|
|
10298
10308
|
return c.parentElement && y.observe(c.parentElement, {
|
|
10299
10309
|
childList: !0
|
|
@@ -10306,11 +10316,11 @@ var Qm, Um, Vo, Qn, tc, nc, Ca = class extends (Vo = nr, Um = [Ie], Qm = [Ie], V
|
|
|
10306
10316
|
const { manager: c } = this;
|
|
10307
10317
|
if (!c)
|
|
10308
10318
|
return;
|
|
10309
|
-
const { dragOperation: d } = c, { status: u } = d, h =
|
|
10319
|
+
const { dragOperation: d } = c, { status: u } = d, h = Hr(() => d.source);
|
|
10310
10320
|
if (u.initialized) {
|
|
10311
10321
|
if ((h == null ? void 0 : h.type) != null && !this.accepts(h))
|
|
10312
10322
|
return;
|
|
10313
|
-
|
|
10323
|
+
Ur.schedule(this.refreshShape);
|
|
10314
10324
|
}
|
|
10315
10325
|
},
|
|
10316
10326
|
() => {
|
|
@@ -10347,8 +10357,8 @@ var Qm, Um, Vo, Qn, tc, nc, Ca = class extends (Vo = nr, Um = [Ie], Qm = [Ie], V
|
|
|
10347
10357
|
Qn = wa(Vo);
|
|
10348
10358
|
tc = /* @__PURE__ */ new WeakMap();
|
|
10349
10359
|
nc = /* @__PURE__ */ new WeakMap();
|
|
10350
|
-
|
|
10351
|
-
|
|
10360
|
+
sr(Qn, 4, "visible", Um, Ca, tc);
|
|
10361
|
+
sr(Qn, 4, "placeholder", Qm, Ca, nc);
|
|
10352
10362
|
Sa(Qn, Ca);
|
|
10353
10363
|
var O1 = Object.create, Km = Object.defineProperty, F1 = Object.defineProperties, V1 = Object.getOwnPropertyDescriptor, N1 = Object.getOwnPropertyDescriptors, ta = Object.getOwnPropertySymbols, Ym = Object.prototype.hasOwnProperty, Xm = Object.prototype.propertyIsEnumerable, q1 = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), os = (e) => {
|
|
10354
10364
|
throw TypeError(e);
|
|
@@ -10383,7 +10393,7 @@ var O1 = Object.create, Km = Object.defineProperty, F1 = Object.defineProperties
|
|
|
10383
10393
|
d = Q1(h, n, c = {}, e[3], k), d.static = p, d.private = m, u = d.access = { has: ($) => n in $ }, u.get = ($) => $[n], u.set = ($, O) => $[n] = O, l = (0, i[L])({ get: z.get, set: z.set }, d), c._ = 1, l === void 0 ? Ii(l) && (z[y] = l) : typeof l != "object" || l === null ? os("Object expected") : (Ii(o = l.get) && (z.get = o), Ii(o = l.set) && (z.set = o), Ii(o = l.init) && T.unshift(o));
|
|
10384
10394
|
return z && Km(s, n, z), s;
|
|
10385
10395
|
}, ef = (e, t, n) => t.has(e) || os("Cannot " + n), K1 = (e, t, n) => (ef(e, t, "read from private field"), t.get(e)), Kd = (e, t, n) => t.has(e) ? os("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Y1 = (e, t, n, i) => (ef(e, t, "write to private field"), t.set(e, n), n);
|
|
10386
|
-
function
|
|
10396
|
+
function Yr(e) {
|
|
10387
10397
|
return e instanceof sc || e instanceof sf;
|
|
10388
10398
|
}
|
|
10389
10399
|
var vs = 10, X1 = class extends Wt {
|
|
@@ -10391,7 +10401,7 @@ var vs = 10, X1 = class extends Wt {
|
|
|
10391
10401
|
super(e);
|
|
10392
10402
|
const t = bt(() => {
|
|
10393
10403
|
const { dragOperation: i } = e;
|
|
10394
|
-
if (Zs(i.activatorEvent) &&
|
|
10404
|
+
if (Zs(i.activatorEvent) && Yr(i.source) && i.status.initialized) {
|
|
10395
10405
|
const s = e.registry.plugins.get(ka);
|
|
10396
10406
|
if (s)
|
|
10397
10407
|
return s.disable(), () => s.enable();
|
|
@@ -10403,7 +10413,7 @@ var vs = 10, X1 = class extends Wt {
|
|
|
10403
10413
|
if (this.disabled || i.defaultPrevented)
|
|
10404
10414
|
return;
|
|
10405
10415
|
const { dragOperation: a } = s;
|
|
10406
|
-
if (!Zs(a.activatorEvent) || !
|
|
10416
|
+
if (!Zs(a.activatorEvent) || !Yr(a.source) || !a.shape)
|
|
10407
10417
|
return;
|
|
10408
10418
|
const { actions: o, collisionObserver: l, registry: c } = s, { by: d } = i;
|
|
10409
10419
|
if (!d)
|
|
@@ -10411,7 +10421,7 @@ var vs = 10, X1 = class extends Wt {
|
|
|
10411
10421
|
const u = J1(d), { source: h } = a, { center: p } = a.shape.current, m = [];
|
|
10412
10422
|
for (const k of c.droppables) {
|
|
10413
10423
|
const { shape: z, id: L } = k;
|
|
10414
|
-
if (!(!z || L === (h == null ? void 0 : h.id) &&
|
|
10424
|
+
if (!(!z || L === (h == null ? void 0 : h.id) && Yr(k) || (h == null ? void 0 : h.type) != null && !k.accepts(h)))
|
|
10415
10425
|
switch (u) {
|
|
10416
10426
|
case "down":
|
|
10417
10427
|
p.y + vs < z.center.y && m.push(k);
|
|
@@ -10443,7 +10453,7 @@ var vs = 10, X1 = class extends Wt {
|
|
|
10443
10453
|
if (!(z != null && z.element))
|
|
10444
10454
|
return;
|
|
10445
10455
|
const { element: L } = z;
|
|
10446
|
-
wm(L),
|
|
10456
|
+
wm(L), Ur.schedule(() => {
|
|
10447
10457
|
const $ = z.refreshShape();
|
|
10448
10458
|
$ && (o.move({
|
|
10449
10459
|
to: {
|
|
@@ -10504,7 +10514,7 @@ var ek = class extends Wt {
|
|
|
10504
10514
|
if (this.disabled || i.defaultPrevented)
|
|
10505
10515
|
return;
|
|
10506
10516
|
const { dragOperation: a } = s, { source: o, target: l } = a;
|
|
10507
|
-
if (!
|
|
10517
|
+
if (!Yr(o) || !Yr(l) || o.sortable === l.sortable || o.sortable.group !== l.sortable.group)
|
|
10508
10518
|
return;
|
|
10509
10519
|
const c = t(o.sortable.group);
|
|
10510
10520
|
s.renderer.rendering.then(() => {
|
|
@@ -10530,7 +10540,7 @@ var ek = class extends Wt {
|
|
|
10530
10540
|
if (!i.canceled)
|
|
10531
10541
|
return;
|
|
10532
10542
|
const { dragOperation: a } = s, { source: o } = a;
|
|
10533
|
-
|
|
10543
|
+
Yr(o) && o.sortable.initialIndex !== o.sortable.index && queueMicrotask(() => {
|
|
10534
10544
|
const l = t(o.sortable.group);
|
|
10535
10545
|
s.renderer.rendering.then(() => {
|
|
10536
10546
|
var c;
|
|
@@ -10626,12 +10636,12 @@ var Ia = class {
|
|
|
10626
10636
|
};
|
|
10627
10637
|
}
|
|
10628
10638
|
animate() {
|
|
10629
|
-
|
|
10639
|
+
Hr(() => {
|
|
10630
10640
|
const { manager: e, transition: t } = this, { shape: n } = this.droppable;
|
|
10631
10641
|
if (!e)
|
|
10632
10642
|
return;
|
|
10633
10643
|
const { idle: i } = e.dragOperation.status;
|
|
10634
|
-
!n || !t || i && !t.idle ||
|
|
10644
|
+
!n || !t || i && !t.idle || Ur.schedule(() => {
|
|
10635
10645
|
const { element: s } = this.droppable;
|
|
10636
10646
|
if (!s)
|
|
10637
10647
|
return;
|
|
@@ -10786,7 +10796,7 @@ var sf = class extends as {
|
|
|
10786
10796
|
}
|
|
10787
10797
|
};
|
|
10788
10798
|
function af(e) {
|
|
10789
|
-
const t =
|
|
10799
|
+
const t = Yn();
|
|
10790
10800
|
return t.current || (t.current = e()), t.current;
|
|
10791
10801
|
}
|
|
10792
10802
|
var nk = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", of = nk ? xg : W;
|
|
@@ -10813,7 +10823,7 @@ function ik(e, t) {
|
|
|
10813
10823
|
e();
|
|
10814
10824
|
}
|
|
10815
10825
|
function st(e, t, n = W, i = Object.is) {
|
|
10816
|
-
const s =
|
|
10826
|
+
const s = Yn(e);
|
|
10817
10827
|
n(() => {
|
|
10818
10828
|
const a = s.current;
|
|
10819
10829
|
i(e, a) || (s.current = e, t(e, a));
|
|
@@ -10940,7 +10950,7 @@ const hk = ({
|
|
|
10940
10950
|
};
|
|
10941
10951
|
return /* @__PURE__ */ r.jsxs(_.List, { children: [
|
|
10942
10952
|
/* @__PURE__ */ r.jsx(_h, { onDragEnd: a, children: s.map((o, l) => /* @__PURE__ */ r.jsx(hk, { value: o.id, index: l, children: i(o, l) }, o.id)) }),
|
|
10943
|
-
/* @__PURE__ */ r.jsx(_.Tab, { onClick: t, value: "add", children: /* @__PURE__ */ r.jsx(de, { label: n, children: /* @__PURE__ */ r.jsx(
|
|
10953
|
+
/* @__PURE__ */ r.jsx(_.Tab, { onClick: t, value: "add", children: /* @__PURE__ */ r.jsx(de, { label: n, children: /* @__PURE__ */ r.jsx(er, { children: /* @__PURE__ */ r.jsx(nn, { size: 18, color: "#228be6" }) }) }) })
|
|
10944
10954
|
] });
|
|
10945
10955
|
}, mk = {
|
|
10946
10956
|
tab: {
|
|
@@ -11032,7 +11042,7 @@ const hk = ({
|
|
|
11032
11042
|
}, children: /* @__PURE__ */ r.jsx(Xe, { label: i("chart.zooming.slider.y_axis"), disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (a) => s("y_axis_slider")(a.currentTarget.checked) }) }) })
|
|
11033
11043
|
] })
|
|
11034
11044
|
] });
|
|
11035
|
-
}),
|
|
11045
|
+
}), ar = re(({
|
|
11036
11046
|
label: e,
|
|
11037
11047
|
value: t,
|
|
11038
11048
|
onChange: n,
|
|
@@ -11071,7 +11081,7 @@ const hk = ({
|
|
|
11071
11081
|
}, checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }) }),
|
|
11072
11082
|
/* @__PURE__ */ r.jsx(b, { children: /* @__PURE__ */ r.jsx(g, { name: "legend", control: e, render: ({
|
|
11073
11083
|
field: a
|
|
11074
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
11084
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
11075
11085
|
flex: 1
|
|
11076
11086
|
}, value: a.value.orient, onChange: (o) => {
|
|
11077
11087
|
s(o, a.onChange);
|
|
@@ -11257,7 +11267,7 @@ function wk({
|
|
|
11257
11267
|
t
|
|
11258
11268
|
} = v(), [n, {
|
|
11259
11269
|
toggle: i
|
|
11260
|
-
}] =
|
|
11270
|
+
}] = tr(!1);
|
|
11261
11271
|
return /* @__PURE__ */ r.jsxs(A, { children: [
|
|
11262
11272
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", w: "100%", compact: !0, onClick: i, leftIcon: n ? /* @__PURE__ */ r.jsx(Qg, { size: 14 }) : /* @__PURE__ */ r.jsx(Ug, { size: 14 }), children: t(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
|
|
11263
11273
|
/* @__PURE__ */ r.jsx(qi, { in: n, children: n && /* @__PURE__ */ r.jsxs(Ge, { highlightOnHover: !0, sx: {
|
|
@@ -11434,7 +11444,7 @@ function Ck({
|
|
|
11434
11444
|
] }) });
|
|
11435
11445
|
}
|
|
11436
11446
|
function Ik(e) {
|
|
11437
|
-
return
|
|
11447
|
+
return Sr(e, "variables");
|
|
11438
11448
|
}
|
|
11439
11449
|
function Tk(e) {
|
|
11440
11450
|
const {
|
|
@@ -11736,7 +11746,7 @@ const ac = {
|
|
|
11736
11746
|
n.runInteraction(y.id, {});
|
|
11737
11747
|
});
|
|
11738
11748
|
};
|
|
11739
|
-
return /* @__PURE__ */ r.jsx(
|
|
11749
|
+
return /* @__PURE__ */ r.jsx(er, { sx: {
|
|
11740
11750
|
width: h,
|
|
11741
11751
|
height: p,
|
|
11742
11752
|
justifyContent: Vk[c],
|
|
@@ -11826,7 +11836,7 @@ function Gk({
|
|
|
11826
11836
|
field: p
|
|
11827
11837
|
}) => /* @__PURE__ */ r.jsx(E, { label: "Content Template", description: "Filter values & context entries are supported", ...p, required: !0 }) }),
|
|
11828
11838
|
/* @__PURE__ */ r.jsx(P, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
11829
|
-
/* @__PURE__ */ r.jsxs(
|
|
11839
|
+
/* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
11830
11840
|
/* @__PURE__ */ r.jsx(
|
|
11831
11841
|
g,
|
|
11832
11842
|
{
|
|
@@ -11841,7 +11851,7 @@ function Gk({
|
|
|
11841
11851
|
field: p
|
|
11842
11852
|
}) => /* @__PURE__ */ r.jsx(Bk, { label: "Theme", ...p }) })
|
|
11843
11853
|
] }),
|
|
11844
|
-
/* @__PURE__ */ r.jsxs(
|
|
11854
|
+
/* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
11845
11855
|
/* @__PURE__ */ r.jsx(g, { control: a, name: "size", render: ({
|
|
11846
11856
|
field: p
|
|
11847
11857
|
}) => /* @__PURE__ */ r.jsx(qo, { label: "Size", ...p }) }),
|
|
@@ -11849,7 +11859,7 @@ function Gk({
|
|
|
11849
11859
|
field: p
|
|
11850
11860
|
}) => /* @__PURE__ */ r.jsx(te, { label: "Compact", checked: p.value, onChange: (m) => p.onChange(m.currentTarget.checked), mt: 26 }) })
|
|
11851
11861
|
] }),
|
|
11852
|
-
/* @__PURE__ */ r.jsxs(
|
|
11862
|
+
/* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
11853
11863
|
/* @__PURE__ */ r.jsx(g, { control: a, name: "horizontal_align", render: ({
|
|
11854
11864
|
field: p
|
|
11855
11865
|
}) => /* @__PURE__ */ r.jsx(Cl, { ...p }) }),
|
|
@@ -11996,7 +12006,7 @@ const lc = {
|
|
|
11996
12006
|
}],
|
|
11997
12007
|
reference_lines: [],
|
|
11998
12008
|
reference_areas: [],
|
|
11999
|
-
dataZoom:
|
|
12009
|
+
dataZoom: Er
|
|
12000
12010
|
};
|
|
12001
12011
|
function Zk(e) {
|
|
12002
12012
|
const t = e.y_axes.some((s) => !!s.name);
|
|
@@ -12246,7 +12256,7 @@ function hC({
|
|
|
12246
12256
|
variables: s
|
|
12247
12257
|
}, {
|
|
12248
12258
|
lodash: C,
|
|
12249
|
-
interpolate:
|
|
12259
|
+
interpolate: zr
|
|
12250
12260
|
});
|
|
12251
12261
|
} catch (p) {
|
|
12252
12262
|
return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${p.message}`), 10;
|
|
@@ -12545,7 +12555,7 @@ function kC({
|
|
|
12545
12555
|
interactionManager: s,
|
|
12546
12556
|
variables: a
|
|
12547
12557
|
}) {
|
|
12548
|
-
const o =
|
|
12558
|
+
const o = Lr(t, e.x_axis_data_key), l = Et(s.triggerManager, oc.id), c = Ee((m) => {
|
|
12549
12559
|
const f = C.get(o, m.name, {
|
|
12550
12560
|
error: "rowData is not found"
|
|
12551
12561
|
});
|
|
@@ -12763,7 +12773,7 @@ function zC({
|
|
|
12763
12773
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
12764
12774
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
|
|
12765
12775
|
field: l
|
|
12766
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12776
|
+
}) => /* @__PURE__ */ r.jsx(ar, { label: a("chart.orientation.label"), sx: {
|
|
12767
12777
|
flex: 1
|
|
12768
12778
|
}, ...l }) }),
|
|
12769
12779
|
o === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: a("chart.reference_line.orientation.vertical_hint") })
|
|
@@ -13051,7 +13061,7 @@ const LC = ({
|
|
|
13051
13061
|
/* @__PURE__ */ r.jsx(P, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
|
|
13052
13062
|
/* @__PURE__ */ r.jsx(LC, { value: o.func_content, onChange: u }),
|
|
13053
13063
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
13054
|
-
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
13064
|
+
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Mr, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
13055
13065
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
13056
13066
|
/* @__PURE__ */ r.jsx(M, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
13057
13067
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
@@ -13094,7 +13104,7 @@ const LC = ({
|
|
|
13094
13104
|
...uc[c]
|
|
13095
13105
|
});
|
|
13096
13106
|
};
|
|
13097
|
-
return /* @__PURE__ */ r.jsxs(
|
|
13107
|
+
return /* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
13098
13108
|
/* @__PURE__ */ r.jsx(N, { ref: i, label: e ?? s("chart.symbol_size.label"), data: o, value: t.type, onChange: l, sx: {
|
|
13099
13109
|
flexGrow: 1
|
|
13100
13110
|
} }),
|
|
@@ -13526,7 +13536,7 @@ function qC({
|
|
|
13526
13536
|
t: n
|
|
13527
13537
|
} = v(), i = () => ({
|
|
13528
13538
|
type: "bar",
|
|
13529
|
-
name:
|
|
13539
|
+
name: kr(),
|
|
13530
13540
|
showSymbol: !1,
|
|
13531
13541
|
symbolSize: uc.static,
|
|
13532
13542
|
y_axis_data_key: "value",
|
|
@@ -13645,7 +13655,7 @@ const QC = () => {
|
|
|
13645
13655
|
/* @__PURE__ */ r.jsxs(Pe, { width: 340, shadow: "md", position: "top", children: [
|
|
13646
13656
|
/* @__PURE__ */ r.jsx(Pe.Target, { children: /* @__PURE__ */ r.jsx(J, { size: "xs", sx: {
|
|
13647
13657
|
transform: "none !important"
|
|
13648
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
13658
|
+
}, children: /* @__PURE__ */ r.jsx(Dr, {}) }) }),
|
|
13649
13659
|
/* @__PURE__ */ r.jsx(Pe.Dropdown, { children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: /* @__PURE__ */ r.jsxs(la, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
|
|
13650
13660
|
"Click",
|
|
13651
13661
|
/* @__PURE__ */ r.jsx(As, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 3, children: "here" }),
|
|
@@ -13713,7 +13723,7 @@ function UC({
|
|
|
13713
13723
|
}) => /* @__PURE__ */ r.jsx(ln, { ...a }) })
|
|
13714
13724
|
] });
|
|
13715
13725
|
}
|
|
13716
|
-
const
|
|
13726
|
+
const or = re(({
|
|
13717
13727
|
label: e,
|
|
13718
13728
|
value: t,
|
|
13719
13729
|
onChange: n,
|
|
@@ -13771,7 +13781,7 @@ function KC({
|
|
|
13771
13781
|
}, ...i }) }),
|
|
13772
13782
|
/* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
13773
13783
|
field: i
|
|
13774
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
13784
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
13775
13785
|
flex: 1
|
|
13776
13786
|
}, ...i }) })
|
|
13777
13787
|
] }),
|
|
@@ -13892,8 +13902,8 @@ function XC({
|
|
|
13892
13902
|
] }) });
|
|
13893
13903
|
}
|
|
13894
13904
|
function JC(e) {
|
|
13895
|
-
const t = Ze(
|
|
13896
|
-
return t.stats =
|
|
13905
|
+
const t = Ze(Sr(e, "variables"));
|
|
13906
|
+
return t.stats = Sr(t.stats, "variables"), t;
|
|
13897
13907
|
}
|
|
13898
13908
|
function ZC(e) {
|
|
13899
13909
|
const {
|
|
@@ -13913,7 +13923,7 @@ function ZC(e) {
|
|
|
13913
13923
|
}
|
|
13914
13924
|
function eI(e) {
|
|
13915
13925
|
const {
|
|
13916
|
-
dataZoom: t =
|
|
13926
|
+
dataZoom: t = Er,
|
|
13917
13927
|
...n
|
|
13918
13928
|
} = e;
|
|
13919
13929
|
return {
|
|
@@ -14638,7 +14648,7 @@ const EI = ({
|
|
|
14638
14648
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
14639
14649
|
/* @__PURE__ */ r.jsx(g, { name: `series.${n}.orient`, control: t, render: ({
|
|
14640
14650
|
field: h
|
|
14641
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
14651
|
+
}) => /* @__PURE__ */ r.jsx(ar, { ...h }) }),
|
|
14642
14652
|
/* @__PURE__ */ r.jsx(
|
|
14643
14653
|
g,
|
|
14644
14654
|
{
|
|
@@ -14653,7 +14663,7 @@ const EI = ({
|
|
|
14653
14663
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
14654
14664
|
/* @__PURE__ */ r.jsx(g, { name: `series.${n}.funnelAlign`, control: t, render: ({
|
|
14655
14665
|
field: h
|
|
14656
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
14666
|
+
}) => /* @__PURE__ */ r.jsx(or, { label: s("viz.funnel_chart.align"), disabled: c === "horizontal", ...h }) }),
|
|
14657
14667
|
/* @__PURE__ */ r.jsx(
|
|
14658
14668
|
g,
|
|
14659
14669
|
{
|
|
@@ -14704,7 +14714,7 @@ const EI = ({
|
|
|
14704
14714
|
}, children: [
|
|
14705
14715
|
/* @__PURE__ */ r.jsxs(_.List, { children: [
|
|
14706
14716
|
o.map((u, h) => /* @__PURE__ */ r.jsx(_.Tab, { value: u.id, children: u.name }, u.id)),
|
|
14707
|
-
/* @__PURE__ */ r.jsx(_.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ r.jsx(de, { label: "todo", children: /* @__PURE__ */ r.jsx(
|
|
14717
|
+
/* @__PURE__ */ r.jsx(_.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ r.jsx(de, { label: "todo", children: /* @__PURE__ */ r.jsx(er, { children: /* @__PURE__ */ r.jsx(nn, { size: 18, color: "#228be6" }) }) }) })
|
|
14708
14718
|
] }),
|
|
14709
14719
|
o.map((u, h) => /* @__PURE__ */ r.jsx(_.Panel, { value: u.id, children: /* @__PURE__ */ r.jsx(EI, { item: u, control: e, index: h, remove: s }) }, u.id))
|
|
14710
14720
|
] });
|
|
@@ -15179,7 +15189,7 @@ const XI = ({
|
|
|
15179
15189
|
/* @__PURE__ */ r.jsx(P, { mt: 10, mb: -10, label: n("chart.number_or_dynamic_value.dynamic.guide"), labelPosition: "center", variant: "dashed" }),
|
|
15180
15190
|
/* @__PURE__ */ r.jsx(XI, { value: o.value, onChange: u }),
|
|
15181
15191
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
15182
|
-
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
15192
|
+
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Mr, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
15183
15193
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
15184
15194
|
/* @__PURE__ */ r.jsx(M, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
15185
15195
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
@@ -15222,7 +15232,7 @@ const XI = ({
|
|
|
15222
15232
|
label: s("chart.number_or_dynamic_value.type.dynamic"),
|
|
15223
15233
|
value: "dynamic"
|
|
15224
15234
|
}], [a.language]);
|
|
15225
|
-
return /* @__PURE__ */ r.jsxs(
|
|
15235
|
+
return /* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
15226
15236
|
/* @__PURE__ */ r.jsx(N, { ref: i, label: e, data: l, value: t.type, onChange: o, sx: {
|
|
15227
15237
|
flexGrow: 1
|
|
15228
15238
|
} }),
|
|
@@ -15247,7 +15257,7 @@ function nu(e, t, n) {
|
|
|
15247
15257
|
variables: t
|
|
15248
15258
|
}, {
|
|
15249
15259
|
lodash: C,
|
|
15250
|
-
interpolate:
|
|
15260
|
+
interpolate: zr
|
|
15251
15261
|
});
|
|
15252
15262
|
return Number(s);
|
|
15253
15263
|
} catch (s) {
|
|
@@ -15261,7 +15271,7 @@ const _s = ({
|
|
|
15261
15271
|
const {
|
|
15262
15272
|
t: n
|
|
15263
15273
|
} = v();
|
|
15264
|
-
return /* @__PURE__ */ r.jsx(
|
|
15274
|
+
return /* @__PURE__ */ r.jsx(Zn, { label: e, placeholder: n("chart.visual_map.skip_range.follow_visual_map"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: t.value ? /* @__PURE__ */ r.jsx(jr, { onClick: () => {
|
|
15265
15275
|
t.onChange("");
|
|
15266
15276
|
} }) : null, ...t });
|
|
15267
15277
|
}, tT = ({
|
|
@@ -15306,7 +15316,7 @@ function hf(e) {
|
|
|
15306
15316
|
itemHeight: 140,
|
|
15307
15317
|
show: !0,
|
|
15308
15318
|
inRange: {
|
|
15309
|
-
color: e ?? Object.values(
|
|
15319
|
+
color: e ?? Object.values(_r.graphics.depth)
|
|
15310
15320
|
},
|
|
15311
15321
|
skipRange: {
|
|
15312
15322
|
lt_min: "",
|
|
@@ -15346,9 +15356,9 @@ function An() {
|
|
|
15346
15356
|
}
|
|
15347
15357
|
function rT() {
|
|
15348
15358
|
return {
|
|
15349
|
-
compared: Object.values(
|
|
15350
|
-
level: Object.values(
|
|
15351
|
-
depth: Object.values(
|
|
15359
|
+
compared: Object.values(_r.graphics.compared),
|
|
15360
|
+
level: Object.values(_r.graphics.level),
|
|
15361
|
+
depth: Object.values(_r.graphics.depth),
|
|
15352
15362
|
yellow_blue: ["#8f531d", "#ffd347", "#e3efe3", "#eefaee", "#4ecbbf", "#003f94"],
|
|
15353
15363
|
blue: ["#f9fcff", "#48b3e9", "#003f94"],
|
|
15354
15364
|
darkgreen_pink: ["#0c525a", "#f21f99"],
|
|
@@ -15390,17 +15400,17 @@ function Da(e, t) {
|
|
|
15390
15400
|
return h.upper.value === "" ? p[h.upper.symbol] = a : Number.isFinite(f) && (p[h.upper.symbol] = f), p;
|
|
15391
15401
|
}) : o === "categories" && (u.categories = c), u;
|
|
15392
15402
|
}
|
|
15393
|
-
const
|
|
15403
|
+
const Fr = (e) => ({
|
|
15394
15404
|
followVisualMap: !e,
|
|
15395
15405
|
color: e
|
|
15396
15406
|
});
|
|
15397
15407
|
function fc(e, t, n, i) {
|
|
15398
15408
|
if (i.type !== "continuous")
|
|
15399
|
-
return
|
|
15409
|
+
return Fr("");
|
|
15400
15410
|
const {
|
|
15401
15411
|
skipRange: s
|
|
15402
15412
|
} = i;
|
|
15403
|
-
return e === t ?
|
|
15413
|
+
return e === t ? Fr(s.min) : e === n ? Fr(s.max) : e < t ? Fr(s.lt_min) : e > n ? Fr(s.gt_max) : Fr("");
|
|
15404
15414
|
}
|
|
15405
15415
|
function pf() {
|
|
15406
15416
|
return {
|
|
@@ -15482,14 +15492,14 @@ const iT = rT(), sT = ({
|
|
|
15482
15492
|
index: t
|
|
15483
15493
|
});
|
|
15484
15494
|
return /* @__PURE__ */ r.jsxs(qt, { ref: l, gap: "sm", justify: "flex-start", align: "center", direction: "row", wrap: "nowrap", onMouseEnter: a, onMouseLeave: o, children: [
|
|
15485
|
-
/* @__PURE__ */ r.jsx(
|
|
15495
|
+
/* @__PURE__ */ r.jsx(er, { style: {
|
|
15486
15496
|
minWidth: "30px",
|
|
15487
15497
|
maxWidth: "30px",
|
|
15488
15498
|
flex: 0
|
|
15489
|
-
}, children: s ? /* @__PURE__ */ r.jsx(J, { size: "xs", ref: c, children: /* @__PURE__ */ r.jsx(Yg, {}) }) : /* @__PURE__ */ r.jsx(
|
|
15499
|
+
}, children: s ? /* @__PURE__ */ r.jsx(J, { size: "xs", ref: c, children: /* @__PURE__ */ r.jsx(Yg, {}) }) : /* @__PURE__ */ r.jsx(Xn, { size: "sm", children: t + 1 }) }),
|
|
15490
15500
|
/* @__PURE__ */ r.jsx("div", { style: {
|
|
15491
15501
|
flex: 1
|
|
15492
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
15502
|
+
}, children: /* @__PURE__ */ r.jsx(Zn, { styles: {
|
|
15493
15503
|
root: {
|
|
15494
15504
|
flexGrow: 1
|
|
15495
15505
|
}
|
|
@@ -15498,7 +15508,7 @@ const iT = rT(), sT = ({
|
|
|
15498
15508
|
minWidth: "40px",
|
|
15499
15509
|
maxWidth: "40px",
|
|
15500
15510
|
flex: 0
|
|
15501
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
15511
|
+
}, children: /* @__PURE__ */ r.jsx(jr, { onClick: i }) })
|
|
15502
15512
|
] });
|
|
15503
15513
|
}, oT = re(({
|
|
15504
15514
|
value: e,
|
|
@@ -15539,7 +15549,7 @@ const iT = rT(), sT = ({
|
|
|
15539
15549
|
} }),
|
|
15540
15550
|
/* @__PURE__ */ r.jsx("div", { style: {
|
|
15541
15551
|
flex: 1
|
|
15542
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
15552
|
+
}, children: /* @__PURE__ */ r.jsx(Zn, { withinPortal: !0, dropdownZIndex: 340, placeholder: i("chart.color.click_to_add_a_color"), value: d, onChange: u, onBlur: h, size: "xs" }) }),
|
|
15543
15553
|
/* @__PURE__ */ r.jsx("div", { style: {
|
|
15544
15554
|
minWidth: "40px",
|
|
15545
15555
|
maxWidth: "40px",
|
|
@@ -15571,7 +15581,7 @@ const iT = rT(), sT = ({
|
|
|
15571
15581
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
15572
15582
|
/* @__PURE__ */ r.jsx(g, { name: "visualMap.orient", control: i, render: ({
|
|
15573
15583
|
field: d
|
|
15574
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15584
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
15575
15585
|
flex: 1
|
|
15576
15586
|
}, ...d }) }),
|
|
15577
15587
|
/* @__PURE__ */ r.jsx(g, { name: "visualMap.calculable", control: i, render: ({
|
|
@@ -15690,10 +15700,10 @@ const iT = rT(), sT = ({
|
|
|
15690
15700
|
}) => /* @__PURE__ */ r.jsx(E, { size: "xs", placeholder: "", ...a, onChange: (o) => a.onChange(o.currentTarget.value) }) }) }),
|
|
15691
15701
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(g, { name: `visualMap.pieces.${t}.color`, control: i, render: ({
|
|
15692
15702
|
field: a
|
|
15693
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15703
|
+
}) => /* @__PURE__ */ r.jsx(Zn, { label: s(""), placeholder: s("chart.color.label"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: a.value ? /* @__PURE__ */ r.jsx(jr, { onClick: () => {
|
|
15694
15704
|
a.onChange("");
|
|
15695
15705
|
} }) : null, ...a }) }) }),
|
|
15696
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
15706
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(jr, { onClick: () => n(t) }) })
|
|
15697
15707
|
] });
|
|
15698
15708
|
}, hT = ({
|
|
15699
15709
|
form: e
|
|
@@ -15762,7 +15772,7 @@ const iT = rT(), sT = ({
|
|
|
15762
15772
|
}) => /* @__PURE__ */ r.jsx(ne, { label: t("chart.visual_map.precision"), ...d, onChange: c(d.onChange) }) }),
|
|
15763
15773
|
/* @__PURE__ */ r.jsx(g, { name: "visualMap.orient", control: i, render: ({
|
|
15764
15774
|
field: d
|
|
15765
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15775
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
15766
15776
|
flex: 1
|
|
15767
15777
|
}, ...d }) }),
|
|
15768
15778
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
@@ -16124,7 +16134,7 @@ function kT({
|
|
|
16124
16134
|
] }),
|
|
16125
16135
|
/* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "y_axis.nameAlignment", control: e, render: ({
|
|
16126
16136
|
field: i
|
|
16127
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16137
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
16128
16138
|
flex: 1
|
|
16129
16139
|
}, ...i }) }) }),
|
|
16130
16140
|
/* @__PURE__ */ r.jsx(P, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
|
|
@@ -16458,7 +16468,7 @@ const xf = {
|
|
|
16458
16468
|
nameAlignment: "right",
|
|
16459
16469
|
color: "red"
|
|
16460
16470
|
},
|
|
16461
|
-
dataZoom:
|
|
16471
|
+
dataZoom: Er,
|
|
16462
16472
|
markLine: xf,
|
|
16463
16473
|
reference_lines: []
|
|
16464
16474
|
};
|
|
@@ -16759,7 +16769,7 @@ function ZT({
|
|
|
16759
16769
|
} = e.viewport, l = je({}, i, bc), c = JT(l, s, n), d = Lt({
|
|
16760
16770
|
vizManager: e.vizManager,
|
|
16761
16771
|
instance: t
|
|
16762
|
-
}), u = Et(d.triggerManager, ff.id), h =
|
|
16772
|
+
}), u = Et(d.triggerManager, ff.id), h = Lr(s, l.x_axis.data_key), p = Ee((f) => {
|
|
16763
16773
|
const y = C.get(h, f.name, {
|
|
16764
16774
|
error: "rowData is not found"
|
|
16765
16775
|
});
|
|
@@ -16790,7 +16800,7 @@ function ez({
|
|
|
16790
16800
|
}, ...i }) }),
|
|
16791
16801
|
/* @__PURE__ */ r.jsx(g, { name: "bar.nameAlignment", control: e, render: ({
|
|
16792
16802
|
field: i
|
|
16793
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16803
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
16794
16804
|
flex: 1
|
|
16795
16805
|
}, ...i }) })
|
|
16796
16806
|
] }),
|
|
@@ -16824,7 +16834,7 @@ function tz({
|
|
|
16824
16834
|
}, ...i }) }),
|
|
16825
16835
|
/* @__PURE__ */ r.jsx(g, { name: "line.nameAlignment", control: e, render: ({
|
|
16826
16836
|
field: i
|
|
16827
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16837
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
16828
16838
|
flex: 1
|
|
16829
16839
|
}, ...i }) })
|
|
16830
16840
|
] }),
|
|
@@ -16866,7 +16876,7 @@ const nz = (e, t) => `
|
|
|
16866
16876
|
} = v(), [n, i] = U(!1), s = I(() => nz(e("viz.pareto_chart.line_80_20.param_section_note_1"), e("viz.pareto_chart.line_80_20.param_section_note_2")), [t.language]);
|
|
16867
16877
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
16868
16878
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => i((a) => !a), children: e(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
|
|
16869
|
-
/* @__PURE__ */ r.jsx(qi, { in: n, children: /* @__PURE__ */ r.jsx(
|
|
16879
|
+
/* @__PURE__ */ r.jsx(qi, { in: n, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: s }) })
|
|
16870
16880
|
] });
|
|
16871
16881
|
};
|
|
16872
16882
|
function iz({
|
|
@@ -16978,7 +16988,7 @@ function oz({
|
|
|
16978
16988
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
16979
16989
|
/* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
|
|
16980
16990
|
field: l
|
|
16981
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16991
|
+
}) => /* @__PURE__ */ r.jsx(ar, { label: a("chart.orientation.label"), sx: {
|
|
16982
16992
|
flex: 1
|
|
16983
16993
|
}, ...l }) }) }),
|
|
16984
16994
|
o === "horizontal" && /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
|
|
@@ -17113,7 +17123,7 @@ function cz({
|
|
|
17113
17123
|
}
|
|
17114
17124
|
function dz(e) {
|
|
17115
17125
|
const {
|
|
17116
|
-
dataZoom: t =
|
|
17126
|
+
dataZoom: t = Er,
|
|
17117
17127
|
...n
|
|
17118
17128
|
} = e;
|
|
17119
17129
|
return {
|
|
@@ -17403,7 +17413,7 @@ function Sz({
|
|
|
17403
17413
|
height: i,
|
|
17404
17414
|
interactionManager: s
|
|
17405
17415
|
}) {
|
|
17406
|
-
const a =
|
|
17416
|
+
const a = Lr(t, e.label_field), o = Et(s.triggerManager, gf.id), l = R.useCallback((u) => {
|
|
17407
17417
|
const h = C.get(a, u.name, {
|
|
17408
17418
|
error: "rowData is not found"
|
|
17409
17419
|
});
|
|
@@ -17891,7 +17901,7 @@ function Qz({
|
|
|
17891
17901
|
color_key: ""
|
|
17892
17902
|
}), s = (a, o) => o + 1;
|
|
17893
17903
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
17894
|
-
/* @__PURE__ */ r.jsx(Vi, { icon: /* @__PURE__ */ r.jsx(
|
|
17904
|
+
/* @__PURE__ */ r.jsx(Vi, { icon: /* @__PURE__ */ r.jsx(Dr, { size: 16 }), title: n("viz.radar_chart.additional_series.label"), children: /* @__PURE__ */ r.jsxs(la, { i18nKey: "viz.radar_chart.additional_series.intro", children: [
|
|
17895
17905
|
"By setting ",
|
|
17896
17906
|
/* @__PURE__ */ r.jsx(Au, { children: "Series Name Key" }),
|
|
17897
17907
|
", you may add series from more queries to the chart."
|
|
@@ -18634,7 +18644,7 @@ function SD({
|
|
|
18634
18644
|
t: n
|
|
18635
18645
|
} = v();
|
|
18636
18646
|
return /* @__PURE__ */ r.jsxs(Pe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
18637
|
-
/* @__PURE__ */ r.jsx(Pe.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(
|
|
18647
|
+
/* @__PURE__ */ r.jsx(Pe.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Dr, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
|
|
18638
18648
|
/* @__PURE__ */ r.jsx(Pe.Dropdown, { children: /* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsx(wD, { conf: e, queryData: t }) }) })
|
|
18639
18649
|
] });
|
|
18640
18650
|
}
|
|
@@ -18703,7 +18713,7 @@ function CD({
|
|
|
18703
18713
|
...f,
|
|
18704
18714
|
[p.columnKey]: Number(f[p.columnKey])
|
|
18705
18715
|
});
|
|
18706
|
-
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = I(() => xD(He({}, t, vc), s), [t, s]), o =
|
|
18716
|
+
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = I(() => xD(He({}, t, vc), s), [t, s]), o = Yn(null), l = (c) => {
|
|
18707
18717
|
o.current = c;
|
|
18708
18718
|
};
|
|
18709
18719
|
return !n || !i || !t ? null : /* @__PURE__ */ r.jsxs(jt, { width: n, height: i, children: [
|
|
@@ -19020,7 +19030,7 @@ function FD({
|
|
|
19020
19030
|
l("content"), W(() => {
|
|
19021
19031
|
c(s);
|
|
19022
19032
|
}, [s]);
|
|
19023
|
-
const d =
|
|
19033
|
+
const d = Yn(null), u = () => {
|
|
19024
19034
|
var h;
|
|
19025
19035
|
return (h = d.current) == null ? void 0 : h.click();
|
|
19026
19036
|
};
|
|
@@ -19197,7 +19207,7 @@ const _c = {
|
|
|
19197
19207
|
},
|
|
19198
19208
|
reference_lines: [],
|
|
19199
19209
|
reference_areas: [],
|
|
19200
|
-
dataZoom:
|
|
19210
|
+
dataZoom: Er
|
|
19201
19211
|
};
|
|
19202
19212
|
function QD(e, t) {
|
|
19203
19213
|
if (!e.x_axis.data_key)
|
|
@@ -19278,7 +19288,7 @@ function XD({
|
|
|
19278
19288
|
variables: n
|
|
19279
19289
|
}, {
|
|
19280
19290
|
lodash: C,
|
|
19281
|
-
interpolate:
|
|
19291
|
+
interpolate: zr
|
|
19282
19292
|
});
|
|
19283
19293
|
} catch (l) {
|
|
19284
19294
|
return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${l.message}`), 10;
|
|
@@ -19309,7 +19319,7 @@ function JD({
|
|
|
19309
19319
|
variables: n
|
|
19310
19320
|
}, {
|
|
19311
19321
|
lodash: C,
|
|
19312
|
-
interpolate:
|
|
19322
|
+
interpolate: zr
|
|
19313
19323
|
});
|
|
19314
19324
|
} catch (a) {
|
|
19315
19325
|
return console.error(`[getSeriesColor] failed parsing custom function, error: ${a.message}`), 10;
|
|
@@ -19573,7 +19583,7 @@ function cM({
|
|
|
19573
19583
|
interactionManager: s,
|
|
19574
19584
|
variables: a
|
|
19575
19585
|
}) {
|
|
19576
|
-
const o =
|
|
19586
|
+
const o = Lr(t, e.x_axis.data_key), l = Et(s.triggerManager, wf.id), c = Ee((h) => {
|
|
19577
19587
|
const p = h.data;
|
|
19578
19588
|
l.forEach((m) => {
|
|
19579
19589
|
s.runInteraction(m.id, {
|
|
@@ -19766,7 +19776,7 @@ function mM({
|
|
|
19766
19776
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
19767
19777
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
|
|
19768
19778
|
field: l
|
|
19769
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19779
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
19770
19780
|
flex: 1
|
|
19771
19781
|
}, ...l }) }),
|
|
19772
19782
|
o === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: a("chart.reference_line.orientation.vertical_hint") })
|
|
@@ -19897,7 +19907,7 @@ const xM = ({
|
|
|
19897
19907
|
/* @__PURE__ */ r.jsx(Le, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(S, { children: [
|
|
19898
19908
|
/* @__PURE__ */ r.jsx(xM, { value: o.func_content, onChange: u }),
|
|
19899
19909
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
19900
|
-
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
19910
|
+
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Mr, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
19901
19911
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
19902
19912
|
/* @__PURE__ */ r.jsx(M, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
19903
19913
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
@@ -19920,7 +19930,7 @@ const xM = ({
|
|
|
19920
19930
|
color: i
|
|
19921
19931
|
});
|
|
19922
19932
|
};
|
|
19923
|
-
return /* @__PURE__ */ r.jsx(
|
|
19933
|
+
return /* @__PURE__ */ r.jsx(Zn, { label: " ", format: "rgb", value: e.color, onChange: n });
|
|
19924
19934
|
}, vM = re(({
|
|
19925
19935
|
label: e = "Color",
|
|
19926
19936
|
value: t,
|
|
@@ -19940,7 +19950,7 @@ const xM = ({
|
|
|
19940
19950
|
...ls[c]
|
|
19941
19951
|
});
|
|
19942
19952
|
};
|
|
19943
|
-
return /* @__PURE__ */ r.jsxs(
|
|
19953
|
+
return /* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
19944
19954
|
/* @__PURE__ */ r.jsx(N, { ref: i, label: e, data: o, value: t.type, onChange: l, sx: {
|
|
19945
19955
|
flexGrow: 1
|
|
19946
19956
|
} }),
|
|
@@ -20158,7 +20168,7 @@ function TM({
|
|
|
20158
20168
|
}, ...i }) }),
|
|
20159
20169
|
/* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
20160
20170
|
field: i
|
|
20161
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
20171
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
20162
20172
|
flex: 1
|
|
20163
20173
|
}, ...i }) })
|
|
20164
20174
|
] }),
|
|
@@ -20338,7 +20348,7 @@ const LM = {
|
|
|
20338
20348
|
}];
|
|
20339
20349
|
function RM(e) {
|
|
20340
20350
|
const {
|
|
20341
|
-
dataZoom: t =
|
|
20351
|
+
dataZoom: t = Er,
|
|
20342
20352
|
...n
|
|
20343
20353
|
} = e;
|
|
20344
20354
|
return {
|
|
@@ -20586,7 +20596,7 @@ function GM(e) {
|
|
|
20586
20596
|
};
|
|
20587
20597
|
}
|
|
20588
20598
|
function HM(e) {
|
|
20589
|
-
return
|
|
20599
|
+
return Sr(e, ["variables"]);
|
|
20590
20600
|
}
|
|
20591
20601
|
function QM(e) {
|
|
20592
20602
|
const {
|
|
@@ -21065,7 +21075,7 @@ const _E = ({
|
|
|
21065
21075
|
) }),
|
|
21066
21076
|
/* @__PURE__ */ r.jsx(g, { name: `levels.${t}.label.align`, control: e, render: ({
|
|
21067
21077
|
field: a
|
|
21068
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21078
|
+
}) => /* @__PURE__ */ r.jsx(or, { ...a }) })
|
|
21069
21079
|
] }),
|
|
21070
21080
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
21071
21081
|
/* @__PURE__ */ r.jsx(g, { name: `levels.${t}.label.position`, control: e, render: ({
|
|
@@ -21449,7 +21459,7 @@ const Cf = ["function text({ value, row_data }, utils) {", " return value", "
|
|
|
21449
21459
|
}
|
|
21450
21460
|
}));
|
|
21451
21461
|
function PE(e) {
|
|
21452
|
-
return e ?
|
|
21462
|
+
return e ? Jr(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
|
|
21453
21463
|
}
|
|
21454
21464
|
function Df(e) {
|
|
21455
21465
|
const t = e.tableCellContext.bgColor;
|
|
@@ -21458,7 +21468,7 @@ function Df(e) {
|
|
|
21458
21468
|
color: PE(t)
|
|
21459
21469
|
};
|
|
21460
21470
|
}
|
|
21461
|
-
function
|
|
21471
|
+
function ni(e) {
|
|
21462
21472
|
const t = e.tableCellContext.isClickable(), n = zf({
|
|
21463
21473
|
clickable: t,
|
|
21464
21474
|
align: e.align
|
|
@@ -21468,7 +21478,7 @@ function ti(e) {
|
|
|
21468
21478
|
}, children: /* @__PURE__ */ r.jsx(w, { className: "table-cell-text", onClick: e.tableCellContext.getClickHandler(), children: /* @__PURE__ */ r.jsx("span", { title: e.children, children: e.children }) }) });
|
|
21469
21479
|
}
|
|
21470
21480
|
function OE(e) {
|
|
21471
|
-
return /* @__PURE__ */ r.jsx(
|
|
21481
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: e.value });
|
|
21472
21482
|
}
|
|
21473
21483
|
function FE(e) {
|
|
21474
21484
|
const t = zf({
|
|
@@ -21487,7 +21497,7 @@ function VE(e) {
|
|
|
21487
21497
|
trimMantissa: !0,
|
|
21488
21498
|
absolute: !1
|
|
21489
21499
|
});
|
|
21490
|
-
return /* @__PURE__ */ r.jsx(
|
|
21500
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: t });
|
|
21491
21501
|
}
|
|
21492
21502
|
function NE(e) {
|
|
21493
21503
|
const t = oe(e.value, {
|
|
@@ -21496,7 +21506,7 @@ function NE(e) {
|
|
|
21496
21506
|
thousandSeparated: !0,
|
|
21497
21507
|
absolute: !1
|
|
21498
21508
|
});
|
|
21499
|
-
return /* @__PURE__ */ r.jsx(
|
|
21509
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: t });
|
|
21500
21510
|
}
|
|
21501
21511
|
function qE(e) {
|
|
21502
21512
|
const t = oe(e.value, {
|
|
@@ -21505,7 +21515,7 @@ function qE(e) {
|
|
|
21505
21515
|
trimMantissa: !0,
|
|
21506
21516
|
absolute: !1
|
|
21507
21517
|
});
|
|
21508
|
-
return /* @__PURE__ */ r.jsx(
|
|
21518
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: t });
|
|
21509
21519
|
}
|
|
21510
21520
|
function BE(e) {
|
|
21511
21521
|
const {
|
|
@@ -21514,12 +21524,12 @@ function BE(e) {
|
|
|
21514
21524
|
func_content: i
|
|
21515
21525
|
} = e;
|
|
21516
21526
|
if (!i)
|
|
21517
|
-
return /* @__PURE__ */ r.jsx(
|
|
21527
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: t });
|
|
21518
21528
|
const s = new Function(`return ${i}`)()({
|
|
21519
21529
|
value: t,
|
|
21520
21530
|
row_data: n
|
|
21521
21531
|
}, rn);
|
|
21522
|
-
return /* @__PURE__ */ r.jsx(
|
|
21532
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: s });
|
|
21523
21533
|
}
|
|
21524
21534
|
function WE(e) {
|
|
21525
21535
|
switch (e.type) {
|
|
@@ -21968,7 +21978,7 @@ const sL = re((e, t) => {
|
|
|
21968
21978
|
}
|
|
21969
21979
|
} }) }),
|
|
21970
21980
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
21971
|
-
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
21981
|
+
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Mr, { size: 20 }), children: i("common.actions.reset_to_default") }),
|
|
21972
21982
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
21973
21983
|
/* @__PURE__ */ r.jsx(M, { onClick: u, variant: "subtle", children: i("common.actions.cancel") }),
|
|
21974
21984
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: d, children: i("common.actions.save") })
|
|
@@ -22029,7 +22039,7 @@ const sL = re((e, t) => {
|
|
|
22029
22039
|
const {
|
|
22030
22040
|
t: n
|
|
22031
22041
|
} = v(), i = () => {
|
|
22032
|
-
const o =
|
|
22042
|
+
const o = kr();
|
|
22033
22043
|
return {
|
|
22034
22044
|
id: o,
|
|
22035
22045
|
label: o,
|
|
@@ -22110,7 +22120,7 @@ function uL({
|
|
|
22110
22120
|
id: n,
|
|
22111
22121
|
...i
|
|
22112
22122
|
}) => ({
|
|
22113
|
-
id: n ??
|
|
22123
|
+
id: n ?? kr(),
|
|
22114
22124
|
...i
|
|
22115
22125
|
}))
|
|
22116
22126
|
};
|
|
@@ -22357,7 +22367,7 @@ class _L extends $e {
|
|
|
22357
22367
|
id: a,
|
|
22358
22368
|
...o
|
|
22359
22369
|
}) => ({
|
|
22360
|
-
id: a ??
|
|
22370
|
+
id: a ?? kr(),
|
|
22361
22371
|
...o
|
|
22362
22372
|
}))
|
|
22363
22373
|
}
|
|
@@ -22500,7 +22510,7 @@ const Af = R.forwardRef(wL), SL = ({
|
|
|
22500
22510
|
/* @__PURE__ */ r.jsx(Le, { size: 800, title: i("viz.text.content.label"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(S, { children: [
|
|
22501
22511
|
/* @__PURE__ */ r.jsx(SL, { value: l, onChange: c }),
|
|
22502
22512
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
22503
|
-
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
22513
|
+
/* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Mr, { size: 20 }), children: i("common.actions.reset_to_default") }),
|
|
22504
22514
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
22505
22515
|
/* @__PURE__ */ r.jsx(M, { onClick: u, variant: "subtle", children: i("common.actions.cancel") }),
|
|
22506
22516
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: d, children: i("common.actions.save_changes") })
|
|
@@ -22698,7 +22708,7 @@ const $L = ({
|
|
|
22698
22708
|
if (i.startsWith("<"))
|
|
22699
22709
|
return /* @__PURE__ */ r.jsx(fu, { message: i });
|
|
22700
22710
|
const a = n - 25 - 20 - 30;
|
|
22701
|
-
return /* @__PURE__ */ r.jsx(
|
|
22711
|
+
return /* @__PURE__ */ r.jsx(er, { sx: {
|
|
22702
22712
|
width: "100%",
|
|
22703
22713
|
height: a
|
|
22704
22714
|
}, children: /* @__PURE__ */ r.jsxs(S, { align: "center", spacing: 20, children: [
|
|
@@ -22718,7 +22728,7 @@ function RL({
|
|
|
22718
22728
|
data: o,
|
|
22719
22729
|
error: l,
|
|
22720
22730
|
loading: c
|
|
22721
|
-
} =
|
|
22731
|
+
} = wr($L({
|
|
22722
22732
|
conf: n,
|
|
22723
22733
|
panelData: a
|
|
22724
22734
|
}), {
|
|
@@ -22727,7 +22737,7 @@ function RL({
|
|
|
22727
22737
|
return !i || !s || !n ? null : c ? /* @__PURE__ */ r.jsx(A, { sx: {
|
|
22728
22738
|
position: "relative",
|
|
22729
22739
|
height: s
|
|
22730
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
22740
|
+
}, children: /* @__PURE__ */ r.jsx(Tr, { visible: !0 }) }) : l ? /* @__PURE__ */ r.jsx(A, { sx: Go, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r.jsx(AL, { error: l, width: i, height: s }) }) : !o || !Array.isArray(o.replies) || o.replies.length === 0 ? null : /* @__PURE__ */ r.jsx(A, { sx: Go, "data-enable-scrollbar": !0, children: o.replies.map((d, u) => /* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: {
|
|
22731
22741
|
__html: d.interpretation.html
|
|
22732
22742
|
} }, u)) });
|
|
22733
22743
|
}
|
|
@@ -23194,7 +23204,7 @@ function c$({
|
|
|
23194
23204
|
interactionManager: s,
|
|
23195
23205
|
variables: a
|
|
23196
23206
|
}) {
|
|
23197
|
-
const o =
|
|
23207
|
+
const o = Lr(t, e.calendar.data_key), l = Et(s.triggerManager, Rf.id), c = Ee((h) => {
|
|
23198
23208
|
const [p, m] = h.value, f = C.get(o, p, {
|
|
23199
23209
|
error: "rowData is not found"
|
|
23200
23210
|
});
|
|
@@ -23835,7 +23845,7 @@ function V$({
|
|
|
23835
23845
|
interactionManager: s,
|
|
23836
23846
|
variables: a
|
|
23837
23847
|
}) {
|
|
23838
|
-
const o =
|
|
23848
|
+
const o = Lr(t, e.y_axis.data_key), l = Et(s.triggerManager, oc.id), c = Ee((h) => {
|
|
23839
23849
|
const p = C.get(o, h.name, {
|
|
23840
23850
|
error: "rowData is not found"
|
|
23841
23851
|
});
|
|
@@ -23907,7 +23917,7 @@ function q$({
|
|
|
23907
23917
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
23908
23918
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
|
|
23909
23919
|
field: l
|
|
23910
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
23920
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
23911
23921
|
flex: 1
|
|
23912
23922
|
}, ...l }) }),
|
|
23913
23923
|
o === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: a("chart.reference_line.orientation.vertical_hint") })
|
|
@@ -24500,7 +24510,7 @@ function oA(e, t, n, i) {
|
|
|
24500
24510
|
const s = t.map((u) => {
|
|
24501
24511
|
const h = n[u], p = C.sumBy(h, (m) => m.level.diff);
|
|
24502
24512
|
return [u, p / h.length];
|
|
24503
|
-
}), a = Number(((c = C.maxBy(s, (u) => u[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = C.minBy(s, (u) => u[1])) == null ? void 0 : d[1]) ?? 0), l =
|
|
24513
|
+
}), a = Number(((c = C.maxBy(s, (u) => u[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = C.minBy(s, (u) => u[1])) == null ? void 0 : d[1]) ?? 0), l = zr([a, 0, o], ["#D15A40", "#FFF", "#418AAF"]);
|
|
24504
24514
|
return {
|
|
24505
24515
|
type: "bar",
|
|
24506
24516
|
name: "平均偏差",
|
|
@@ -24603,7 +24613,7 @@ function cA(e, t, n, i) {
|
|
|
24603
24613
|
s[m].push([u, y, f, p]);
|
|
24604
24614
|
});
|
|
24605
24615
|
});
|
|
24606
|
-
const a = Object.entries(s).map(([u]) => Number(u)).sort((u, h) => u - h), o = Math.max(...a), l = Math.min(...a), c =
|
|
24616
|
+
const a = Object.entries(s).map(([u]) => Number(u)).sort((u, h) => u - h), o = Math.max(...a), l = Math.min(...a), c = zr([o, 0, l], ["#D15A40", "#FFF", "#418AAF"]);
|
|
24607
24617
|
return a.map((u) => ({
|
|
24608
24618
|
type: "bar",
|
|
24609
24619
|
name: u,
|
|
@@ -24986,7 +24996,7 @@ const _A = {
|
|
|
24986
24996
|
};
|
|
24987
24997
|
function SA() {
|
|
24988
24998
|
return /* @__PURE__ */ r.jsxs(Pe, { width: 400, shadow: "md", children: [
|
|
24989
|
-
/* @__PURE__ */ r.jsx(Pe.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(
|
|
24999
|
+
/* @__PURE__ */ r.jsx(Pe.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Dr, { size: 14 }), children: "指标说明" }) }),
|
|
24990
25000
|
/* @__PURE__ */ r.jsx(Pe.Dropdown, { children: /* @__PURE__ */ r.jsx(Ge, { fontSize: 14, sx: wA, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
24991
25001
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
24992
25002
|
/* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
|
|
@@ -25808,7 +25818,7 @@ function iR({
|
|
|
25808
25818
|
] }),
|
|
25809
25819
|
/* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "y_axis.nameAlignment", control: e, render: ({
|
|
25810
25820
|
field: i
|
|
25811
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
25821
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
25812
25822
|
flex: 1
|
|
25813
25823
|
}, ...i }) }) }),
|
|
25814
25824
|
/* @__PURE__ */ r.jsx(P, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
|
|
@@ -26414,7 +26424,7 @@ const TR = ({
|
|
|
26414
26424
|
}, withArrow: !0, children: /* @__PURE__ */ r.jsx(A, { sx: {
|
|
26415
26425
|
height: "16px",
|
|
26416
26426
|
alignSelf: "center"
|
|
26417
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
26427
|
+
}, children: /* @__PURE__ */ r.jsx(Dr, { size: 16, color: "gray" }) }) }), zR = D(({
|
|
26418
26428
|
label: e,
|
|
26419
26429
|
config: {
|
|
26420
26430
|
default_value: t,
|
|
@@ -26472,7 +26482,7 @@ const TR = ({
|
|
|
26472
26482
|
const s = i === 1 ? n("filter.widget.date_range.one_day") : n("filter.widget.date_range.x_days", {
|
|
26473
26483
|
count: i
|
|
26474
26484
|
});
|
|
26475
|
-
return /* @__PURE__ */ r.jsx(de, { label: s, children: /* @__PURE__ */ r.jsx(
|
|
26485
|
+
return /* @__PURE__ */ r.jsx(de, { label: s, children: /* @__PURE__ */ r.jsx(Xn, { size: "sm", children: i }) });
|
|
26476
26486
|
}, ER = ({
|
|
26477
26487
|
max_days: e
|
|
26478
26488
|
}) => {
|
|
@@ -26480,7 +26490,7 @@ const TR = ({
|
|
|
26480
26490
|
t
|
|
26481
26491
|
} = v();
|
|
26482
26492
|
return e ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
26483
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(
|
|
26493
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(Xn, { size: "xs", children: t("filter.widget.date_range.x_max_days", {
|
|
26484
26494
|
max_days: e
|
|
26485
26495
|
}) }) }),
|
|
26486
26496
|
/* @__PURE__ */ r.jsx(P, { variant: "dashed", my: 10 })
|
|
@@ -26697,7 +26707,7 @@ const LR = ({
|
|
|
26697
26707
|
} = v(), [c, {
|
|
26698
26708
|
open: d,
|
|
26699
26709
|
close: u
|
|
26700
|
-
}] =
|
|
26710
|
+
}] = tr(!1), [h, p] = n, m = h ? V(h).format(o) : "", f = p ? V(p).format(o) : "";
|
|
26701
26711
|
return /* @__PURE__ */ r.jsxs(Ft, { opened: c, onClose: u, position: "bottom-start", shadow: "md", children: [
|
|
26702
26712
|
/* @__PURE__ */ r.jsxs(b, { position: "left", grow: !0, noWrap: !0, spacing: 0, w: "288px", sx: {
|
|
26703
26713
|
marginTop: "3px"
|
|
@@ -26989,9 +26999,9 @@ const LR = ({
|
|
|
26989
26999
|
] }),
|
|
26990
27000
|
z && /* @__PURE__ */ r.jsx(de, { label: p("filter.widget.common.x_selected", {
|
|
26991
27001
|
count: l.length
|
|
26992
|
-
}), children: /* @__PURE__ */ r.jsx(
|
|
27002
|
+
}), children: /* @__PURE__ */ r.jsx(Xn, { children: l.length }) })
|
|
26993
27003
|
] }),
|
|
26994
|
-
/* @__PURE__ */ r.jsx(My, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: k, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(
|
|
27004
|
+
/* @__PURE__ */ r.jsx(My, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: k, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(jr, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Lc, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (Q) => p("filter.widget.common.x_selected", {
|
|
26995
27005
|
count: Q.length
|
|
26996
27006
|
}), searchValue: L, onSearch: $, filterOption: !1, children: O.map((Q) => /* @__PURE__ */ r.jsxs(Ey, { title: Q.label, children: [
|
|
26997
27007
|
/* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: Q.label }),
|
|
@@ -27383,7 +27393,7 @@ const NR = ({
|
|
|
27383
27393
|
] }),
|
|
27384
27394
|
L && /* @__PURE__ */ r.jsx(de, { label: m("filter.widget.common.x_selected", {
|
|
27385
27395
|
count: l.length
|
|
27386
|
-
}), children: /* @__PURE__ */ r.jsx(
|
|
27396
|
+
}), children: /* @__PURE__ */ r.jsx(Xn, { children: l.length }) })
|
|
27387
27397
|
] }),
|
|
27388
27398
|
/* @__PURE__ */ r.jsx(
|
|
27389
27399
|
Ly,
|
|
@@ -27400,7 +27410,7 @@ const NR = ({
|
|
|
27400
27410
|
style: a,
|
|
27401
27411
|
listHeight: 510,
|
|
27402
27412
|
treeLine: !0,
|
|
27403
|
-
clearIcon: () => /* @__PURE__ */ r.jsx(
|
|
27413
|
+
clearIcon: () => /* @__PURE__ */ r.jsx(jr, {}),
|
|
27404
27414
|
switcherIcon: qR,
|
|
27405
27415
|
treeIcon: WR,
|
|
27406
27416
|
maxTagTextLength: 10,
|
|
@@ -27499,7 +27509,7 @@ const JR = ({
|
|
|
27499
27509
|
}) {
|
|
27500
27510
|
const [n, {
|
|
27501
27511
|
toggle: i
|
|
27502
|
-
}] =
|
|
27512
|
+
}] = tr(!0), s = Ue(), {
|
|
27503
27513
|
control: a,
|
|
27504
27514
|
handleSubmit: o,
|
|
27505
27515
|
reset: l
|
|
@@ -27786,7 +27796,7 @@ const aP = x.model("QueryMeta", {
|
|
|
27786
27796
|
post_process: d,
|
|
27787
27797
|
dep_query_ids: u
|
|
27788
27798
|
} = e;
|
|
27789
|
-
return
|
|
27799
|
+
return ti({
|
|
27790
27800
|
id: t,
|
|
27791
27801
|
key: s,
|
|
27792
27802
|
sql: a,
|
|
@@ -27923,7 +27933,7 @@ const aP = x.model("QueryMeta", {
|
|
|
27923
27933
|
id: t,
|
|
27924
27934
|
name: n,
|
|
27925
27935
|
breakpoint: i,
|
|
27926
|
-
list: s.map((a) =>
|
|
27936
|
+
list: s.map((a) => ti(a.json))
|
|
27927
27937
|
};
|
|
27928
27938
|
},
|
|
27929
27939
|
jsonByPanelIDSet(t) {
|
|
@@ -27937,7 +27947,7 @@ const aP = x.model("QueryMeta", {
|
|
|
27937
27947
|
id: n,
|
|
27938
27948
|
name: i,
|
|
27939
27949
|
breakpoint: s,
|
|
27940
|
-
list: a.filter((o) => t.has(o.panelID)).map((o) =>
|
|
27950
|
+
list: a.filter((o) => t.has(o.panelID)).map((o) => ti(o.json))
|
|
27941
27951
|
};
|
|
27942
27952
|
},
|
|
27943
27953
|
findByID(t) {
|
|
@@ -28215,7 +28225,7 @@ const uP = x.model("FilterDateRangeConfigMeta", {
|
|
|
28215
28225
|
options_query_id: o,
|
|
28216
28226
|
default_selection_count: l
|
|
28217
28227
|
} = e;
|
|
28218
|
-
return
|
|
28228
|
+
return ti({
|
|
28219
28229
|
_name: t,
|
|
28220
28230
|
required: !!i,
|
|
28221
28231
|
min_width: s,
|
|
@@ -28272,7 +28282,7 @@ const uP = x.model("FilterDateRangeConfigMeta", {
|
|
|
28272
28282
|
options_query_id: l,
|
|
28273
28283
|
default_selection_count: c
|
|
28274
28284
|
} = e;
|
|
28275
|
-
return
|
|
28285
|
+
return ti({
|
|
28276
28286
|
_name: t,
|
|
28277
28287
|
width: a,
|
|
28278
28288
|
required: s,
|
|
@@ -28759,7 +28769,7 @@ const nx = x.model("ViewDivisionConfig", {
|
|
|
28759
28769
|
e.tabs.length = 0, e.tabs = yn(t);
|
|
28760
28770
|
},
|
|
28761
28771
|
addTab() {
|
|
28762
|
-
const t =
|
|
28772
|
+
const t = kr(), n = {
|
|
28763
28773
|
id: t,
|
|
28764
28774
|
name: t,
|
|
28765
28775
|
view_id: ""
|
|
@@ -28824,7 +28834,7 @@ const nx = x.model("ViewDivisionConfig", {
|
|
|
28824
28834
|
const n = e.panelIDs.filter((i) => i !== t);
|
|
28825
28835
|
e.panelIDs.length = 0, e.panelIDs.push(...n);
|
|
28826
28836
|
}
|
|
28827
|
-
})),
|
|
28837
|
+
})), lr = "11.10.0", g3 = {
|
|
28828
28838
|
definition: {
|
|
28829
28839
|
sqlSnippets: [],
|
|
28830
28840
|
queries: [],
|
|
@@ -28839,7 +28849,7 @@ const nx = x.model("ViewDivisionConfig", {
|
|
|
28839
28849
|
}],
|
|
28840
28850
|
panels: [],
|
|
28841
28851
|
filters: [],
|
|
28842
|
-
version:
|
|
28852
|
+
version: lr,
|
|
28843
28853
|
layouts: [{
|
|
28844
28854
|
id: "basis",
|
|
28845
28855
|
name: "basis",
|
|
@@ -28984,7 +28994,7 @@ const lx = x.compose("ViewRenderModel", SP, x.model({
|
|
|
28984
28994
|
visibleViewIDs: x.array(x.string)
|
|
28985
28995
|
}).views((e) => ({
|
|
28986
28996
|
get json() {
|
|
28987
|
-
return e.current.map((t) =>
|
|
28997
|
+
return e.current.map((t) => ti(t.json));
|
|
28988
28998
|
},
|
|
28989
28999
|
get idMap() {
|
|
28990
29000
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -29188,7 +29198,7 @@ const ux = sP.views((e) => ({
|
|
|
29188
29198
|
queries: n
|
|
29189
29199
|
},
|
|
29190
29200
|
layouts: i,
|
|
29191
|
-
version:
|
|
29201
|
+
version: lr
|
|
29192
29202
|
}, null, 2), o = e.name;
|
|
29193
29203
|
ui(o, a);
|
|
29194
29204
|
}
|
|
@@ -29364,7 +29374,7 @@ const xx = x.model("FiltersRenderModel", {
|
|
|
29364
29374
|
...a.json,
|
|
29365
29375
|
visibleInViewsIDs: n ? a.json.visibleInViewsIDs : []
|
|
29366
29376
|
})),
|
|
29367
|
-
version:
|
|
29377
|
+
version: lr
|
|
29368
29378
|
};
|
|
29369
29379
|
},
|
|
29370
29380
|
downloadSchema(t) {
|
|
@@ -29557,13 +29567,13 @@ const EP = aP.views((e) => ({
|
|
|
29557
29567
|
})).volatile(() => ({
|
|
29558
29568
|
controller: new AbortController()
|
|
29559
29569
|
})).actions((e) => ({
|
|
29560
|
-
runSQL:
|
|
29570
|
+
runSQL: Br(function* () {
|
|
29561
29571
|
var t;
|
|
29562
29572
|
if (e.valid && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
29563
29573
|
e.controller = new AbortController(), e.state = "loading";
|
|
29564
29574
|
try {
|
|
29565
29575
|
const n = e.payload;
|
|
29566
|
-
e.data = yield*
|
|
29576
|
+
e.data = yield* mr(ow({
|
|
29567
29577
|
payload: n,
|
|
29568
29578
|
name: e.name,
|
|
29569
29579
|
query: e.json,
|
|
@@ -29578,7 +29588,7 @@ const EP = aP.views((e) => ({
|
|
|
29578
29588
|
}
|
|
29579
29589
|
}
|
|
29580
29590
|
}),
|
|
29581
|
-
runHTTP:
|
|
29591
|
+
runHTTP: Br(function* () {
|
|
29582
29592
|
var t;
|
|
29583
29593
|
if (!(!e.valid || !e.datasource) && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
29584
29594
|
e.controller = new AbortController(), e.state = "loading";
|
|
@@ -29590,7 +29600,7 @@ const EP = aP.views((e) => ({
|
|
|
29590
29600
|
} = e.json;
|
|
29591
29601
|
let a = JSON.parse(e.httpConfigString);
|
|
29592
29602
|
a = ew(e.datasource, a);
|
|
29593
|
-
const o = yield*
|
|
29603
|
+
const o = yield* mr(lw({
|
|
29594
29604
|
type: n,
|
|
29595
29605
|
key: i,
|
|
29596
29606
|
configString: JSON.stringify(a),
|
|
@@ -29736,7 +29746,7 @@ const EP = aP.views((e) => ({
|
|
|
29736
29746
|
definition: {
|
|
29737
29747
|
queries: e.findByIDSet(new Set(t)).map((s) => s.json)
|
|
29738
29748
|
},
|
|
29739
|
-
version:
|
|
29749
|
+
version: lr
|
|
29740
29750
|
};
|
|
29741
29751
|
},
|
|
29742
29752
|
downloadSchema(t) {
|
|
@@ -29891,7 +29901,7 @@ const vx = x.model("LayoutsRenderModel", {
|
|
|
29891
29901
|
definition: {
|
|
29892
29902
|
sqlSnippets: e.findByKeySet(new Set(t)).map((s) => s.json)
|
|
29893
29903
|
},
|
|
29894
|
-
version:
|
|
29904
|
+
version: lr
|
|
29895
29905
|
};
|
|
29896
29906
|
},
|
|
29897
29907
|
downloadSchema(t) {
|
|
@@ -29994,7 +30004,7 @@ const PP = (e) => new RP(e), OP = D(() => {
|
|
|
29994
30004
|
/* @__PURE__ */ r.jsxs(ee.Dropdown, { children: [
|
|
29995
30005
|
/* @__PURE__ */ r.jsx(ee.Item, { onClick: o.refreshData, icon: /* @__PURE__ */ r.jsx(nl, { size: 14 }), children: n("common.actions.refresh") }),
|
|
29996
30006
|
/* @__PURE__ */ r.jsx(ee.Item, { onClick: o.downloadData, icon: /* @__PURE__ */ r.jsx(rl, { size: 14 }), children: n("common.actions.download_data") }),
|
|
29997
|
-
/* @__PURE__ */ r.jsx(ee.Item, { onClick: o.downloadSchema, icon: /* @__PURE__ */ r.jsx(
|
|
30007
|
+
/* @__PURE__ */ r.jsx(ee.Item, { onClick: o.downloadSchema, icon: /* @__PURE__ */ r.jsx(Cr, { size: 14 }), children: n("common.actions.download_schema") }),
|
|
29998
30008
|
/* @__PURE__ */ r.jsx(ee.Item, { onClick: l, icon: /* @__PURE__ */ r.jsx(oa, { size: 14 }), children: n("common.actions.download_screenshot") }),
|
|
29999
30009
|
y && /* @__PURE__ */ r.jsx(ee.Item, { onClick: f, icon: /* @__PURE__ */ r.jsx(bh, { size: 14 }), disabled: !0, children: n("common.actions.enter_fullscreen") }),
|
|
30000
30010
|
/* @__PURE__ */ r.jsx(OP, {}),
|
|
@@ -30045,7 +30055,7 @@ const NP = D(function() {
|
|
|
30045
30055
|
}, children: /* @__PURE__ */ r.jsx(w, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
|
|
30046
30056
|
});
|
|
30047
30057
|
function qP(e) {
|
|
30048
|
-
const t =
|
|
30058
|
+
const t = Yn(null);
|
|
30049
30059
|
return {
|
|
30050
30060
|
ref: t,
|
|
30051
30061
|
downloadPanelScreenshot: () => {
|
|
@@ -30155,7 +30165,7 @@ function WP({
|
|
|
30155
30165
|
const {
|
|
30156
30166
|
panel: n
|
|
30157
30167
|
} = t, i = Cx(e, n), s = kx(() => {
|
|
30158
|
-
|
|
30168
|
+
Zr({
|
|
30159
30169
|
title: `${n.name} - Updated`,
|
|
30160
30170
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
30161
30171
|
});
|
|
@@ -30174,7 +30184,7 @@ function GP(e) {
|
|
|
30174
30184
|
inEditMode: i
|
|
30175
30185
|
} = Rn(_l);
|
|
30176
30186
|
return kx(() => {
|
|
30177
|
-
i &&
|
|
30187
|
+
i && Zr({
|
|
30178
30188
|
title: `${t.name} - Updated`,
|
|
30179
30189
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
30180
30190
|
});
|
|
@@ -30236,7 +30246,7 @@ const QP = D(function({
|
|
|
30236
30246
|
position: "relative",
|
|
30237
30247
|
width: "100%"
|
|
30238
30248
|
}, children: [
|
|
30239
|
-
/* @__PURE__ */ r.jsx(
|
|
30249
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: e.dataLoading, exitTransitionDuration: 0 }),
|
|
30240
30250
|
!e.canRenderViz && /* @__PURE__ */ r.jsx(UP, { panel: e }),
|
|
30241
30251
|
e.canRenderViz && /* @__PURE__ */ r.jsx(QP, { data: e.data })
|
|
30242
30252
|
] })), KP = {
|
|
@@ -30420,7 +30430,7 @@ const s2 = R.forwardRef(({
|
|
|
30420
30430
|
return /* @__PURE__ */ r.jsx(c2, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: s, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: i.map((a) => /* @__PURE__ */ r.jsx("div", { "data-grid": a.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(zx, { view: e, panel: a.panel }) }, a.id)) });
|
|
30421
30431
|
});
|
|
30422
30432
|
function Rc(e) {
|
|
30423
|
-
const t =
|
|
30433
|
+
const t = Yn(null);
|
|
30424
30434
|
return {
|
|
30425
30435
|
ref: t,
|
|
30426
30436
|
downloadScreenshot: () => {
|
|
@@ -30459,7 +30469,7 @@ const u2 = D(({
|
|
|
30459
30469
|
/* @__PURE__ */ r.jsx(ee.Item, { icon: /* @__PURE__ */ r.jsx(oa, { size: 14 }), onClick: e, children: t("common.actions.download_screenshot") }),
|
|
30460
30470
|
/* @__PURE__ */ r.jsx(ee.Divider, {}),
|
|
30461
30471
|
/* @__PURE__ */ r.jsx(ee.Item, { icon: /* @__PURE__ */ r.jsx(sb, { size: 14 }), onClick: o.queries.downloadAllData, children: t("common.actions.download_data") }),
|
|
30462
|
-
/* @__PURE__ */ r.jsx(ee.Item, { icon: /* @__PURE__ */ r.jsx(
|
|
30472
|
+
/* @__PURE__ */ r.jsx(ee.Item, { icon: /* @__PURE__ */ r.jsx(Cr, { size: 14 }), onClick: l, children: t("common.actions.download_schema") })
|
|
30463
30473
|
] })
|
|
30464
30474
|
] });
|
|
30465
30475
|
}), Dx = D(({
|
|
@@ -30719,7 +30729,7 @@ const g2 = D(({
|
|
|
30719
30729
|
bottom: 0,
|
|
30720
30730
|
zIndex: 200
|
|
30721
30731
|
}, children: [
|
|
30722
|
-
/* @__PURE__ */ r.jsx(
|
|
30732
|
+
/* @__PURE__ */ r.jsx(Ir, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
|
|
30723
30733
|
/* @__PURE__ */ r.jsxs(S, { mx: "auto", mt: 100, sx: {
|
|
30724
30734
|
width: "300px",
|
|
30725
30735
|
position: "relative",
|
|
@@ -30728,7 +30738,7 @@ const g2 = D(({
|
|
|
30728
30738
|
/* @__PURE__ */ r.jsx(E, { label: t("view.component.tabs.tab.name"), required: !0, value: c.name, onChange: (h) => c.setName(h.currentTarget.value) }),
|
|
30729
30739
|
/* @__PURE__ */ r.jsx(N, { label: "View", value: c.view_id, onChange: c.setViewID, data: s }),
|
|
30730
30740
|
/* @__PURE__ */ r.jsx(ne, { label: t("view.component.tabs.tab.order"), required: !0, value: c.order, onChange: (h) => c.setOrder(h || 0), min: 0, max: 1e3, step: 1 }),
|
|
30731
|
-
/* @__PURE__ */ r.jsx(
|
|
30741
|
+
/* @__PURE__ */ r.jsx(Zn, { label: t("view.component.tabs.tab.color"), value: c.color, onChange: c.setColor, disabled: a.variant !== "default" }),
|
|
30732
30742
|
u && /* @__PURE__ */ r.jsx(M, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(ab, { size: 18 }), gradient: {
|
|
30733
30743
|
from: "cyan",
|
|
30734
30744
|
to: "indigo"
|
|
@@ -31131,11 +31141,11 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31131
31141
|
e.setKeywords(t, n);
|
|
31132
31142
|
}
|
|
31133
31143
|
})).actions((e) => {
|
|
31134
|
-
const t =
|
|
31144
|
+
const t = Br(function* () {
|
|
31135
31145
|
var n;
|
|
31136
31146
|
(n = e.controllers.tables) == null || n.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
|
|
31137
31147
|
try {
|
|
31138
|
-
const i = yield*
|
|
31148
|
+
const i = yield* mr(zn.structure(e.controllers.tables.signal)({
|
|
31139
31149
|
query_type: "TABLES",
|
|
31140
31150
|
type: e.sqlDataSourceType,
|
|
31141
31151
|
key: e.key,
|
|
@@ -31160,11 +31170,11 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31160
31170
|
loadTablesIfEmpty() {
|
|
31161
31171
|
e.tables.empty && t();
|
|
31162
31172
|
},
|
|
31163
|
-
loadColumns:
|
|
31173
|
+
loadColumns: Br(function* () {
|
|
31164
31174
|
var n;
|
|
31165
31175
|
(n = e.controllers.columns) == null || n.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
|
|
31166
31176
|
try {
|
|
31167
|
-
e.columns.data = yield*
|
|
31177
|
+
e.columns.data = yield* mr(zn.structure(e.controllers.columns.signal)({
|
|
31168
31178
|
query_type: "COLUMNS",
|
|
31169
31179
|
type: e.sqlDataSourceType,
|
|
31170
31180
|
key: e.key,
|
|
@@ -31185,11 +31195,11 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31185
31195
|
}
|
|
31186
31196
|
}
|
|
31187
31197
|
}),
|
|
31188
|
-
loadIndexes:
|
|
31198
|
+
loadIndexes: Br(function* () {
|
|
31189
31199
|
var n;
|
|
31190
31200
|
(n = e.controllers.indexes) == null || n.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
|
|
31191
31201
|
try {
|
|
31192
|
-
e.indexes.data = yield*
|
|
31202
|
+
e.indexes.data = yield* mr(zn.structure(e.controllers.indexes.signal)({
|
|
31193
31203
|
query_type: "INDEXES",
|
|
31194
31204
|
type: e.sqlDataSourceType,
|
|
31195
31205
|
key: e.key,
|
|
@@ -31210,13 +31220,13 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31210
31220
|
}
|
|
31211
31221
|
}
|
|
31212
31222
|
}),
|
|
31213
|
-
loadTableData:
|
|
31223
|
+
loadTableData: Br(function* () {
|
|
31214
31224
|
var i;
|
|
31215
31225
|
(i = e.controllers.tableData) == null || i.abort(), e.controllers.tableData = new AbortController();
|
|
31216
31226
|
const n = e.tableData;
|
|
31217
31227
|
n.state = "loading";
|
|
31218
31228
|
try {
|
|
31219
|
-
n.data = yield*
|
|
31229
|
+
n.data = yield* mr(zn.structure(e.controllers.tableData.signal)({
|
|
31220
31230
|
query_type: "DATA",
|
|
31221
31231
|
type: e.sqlDataSourceType,
|
|
31222
31232
|
key: e.key,
|
|
@@ -31231,7 +31241,7 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31231
31241
|
}));
|
|
31232
31242
|
const [{
|
|
31233
31243
|
total: s
|
|
31234
|
-
}] = yield*
|
|
31244
|
+
}] = yield* mr(zn.structure(e.controllers.tableData.signal)({
|
|
31235
31245
|
query_type: "COUNT",
|
|
31236
31246
|
type: e.sqlDataSourceType,
|
|
31237
31247
|
key: e.key,
|
|
@@ -31291,7 +31301,7 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31291
31301
|
e.list.length = 0, e.list.push(...t);
|
|
31292
31302
|
}
|
|
31293
31303
|
}));
|
|
31294
|
-
function
|
|
31304
|
+
function hr(e) {
|
|
31295
31305
|
return {
|
|
31296
31306
|
label: e,
|
|
31297
31307
|
value: e,
|
|
@@ -31349,25 +31359,25 @@ const P2 = x.model("EditorModel", {
|
|
|
31349
31359
|
label: "filter.labels",
|
|
31350
31360
|
value: "_FILTERS_",
|
|
31351
31361
|
Icon: Zu,
|
|
31352
|
-
children: [
|
|
31362
|
+
children: [hr("_FILTERS_SETTINGS_"), ...n.options, hr("_Add_A_Filter_")],
|
|
31353
31363
|
_type: "GROUP"
|
|
31354
31364
|
}, {
|
|
31355
31365
|
label: "sql_snippet.labels",
|
|
31356
31366
|
value: "_SQL_SNIPPETS_",
|
|
31357
31367
|
Icon: lb,
|
|
31358
|
-
children: [
|
|
31368
|
+
children: [hr("_SQL_SNIPPETS_SETTINGS_"), ...s.options, hr("_Add_A_SQL_SNIPPET_")],
|
|
31359
31369
|
_type: "GROUP"
|
|
31360
31370
|
}, {
|
|
31361
31371
|
label: "query.labels",
|
|
31362
31372
|
value: "_QUERIES_",
|
|
31363
31373
|
Icon: Hi,
|
|
31364
|
-
children: [
|
|
31374
|
+
children: [hr("_QUERIES_SETTINGS_"), ...a.options, hr("_Add_A_QUERY_")],
|
|
31365
31375
|
_type: "GROUP"
|
|
31366
31376
|
}, {
|
|
31367
31377
|
label: "view.labels",
|
|
31368
31378
|
value: "_VIEWS_",
|
|
31369
31379
|
Icon: eh,
|
|
31370
|
-
children: [...i.editorOptions,
|
|
31380
|
+
children: [...i.editorOptions, hr("_Add_A_VIEW_")],
|
|
31371
31381
|
_type: "GROUP"
|
|
31372
31382
|
}];
|
|
31373
31383
|
},
|
|
@@ -31643,7 +31653,7 @@ const P2 = x.model("EditorModel", {
|
|
|
31643
31653
|
queries: C.uniqBy(i, (o) => o.id)
|
|
31644
31654
|
},
|
|
31645
31655
|
layouts: s,
|
|
31646
|
-
version:
|
|
31656
|
+
version: lr
|
|
31647
31657
|
};
|
|
31648
31658
|
},
|
|
31649
31659
|
downloadSchema() {
|
|
@@ -34399,7 +34409,7 @@ const K2 = D(({
|
|
|
34399
34409
|
} = v(), [t, {
|
|
34400
34410
|
open: n,
|
|
34401
34411
|
close: i
|
|
34402
|
-
}] =
|
|
34412
|
+
}] = tr(!1), s = le(), a = s.layouts.currentBreakpoint, o = s.layouts.currentLayoutRange, l = () => {
|
|
34403
34413
|
setTimeout(() => {
|
|
34404
34414
|
window.dispatchEvent(new Event("resize"));
|
|
34405
34415
|
}, 32);
|
|
@@ -34447,10 +34457,10 @@ const K2 = D(({
|
|
|
34447
34457
|
var a;
|
|
34448
34458
|
return (a = t.views.VIE) == null ? void 0 : a.downloadSchema();
|
|
34449
34459
|
};
|
|
34450
|
-
return n ? /* @__PURE__ */ r.jsx(de, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(M, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(
|
|
34460
|
+
return n ? /* @__PURE__ */ r.jsx(de, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(M, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Cr, { size: 16 }), sx: {
|
|
34451
34461
|
...Su,
|
|
34452
34462
|
transform: "none !important"
|
|
34453
|
-
}, children: e("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(M, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: i, leftIcon: /* @__PURE__ */ r.jsx(
|
|
34463
|
+
}, children: e("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(M, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: i, leftIcon: /* @__PURE__ */ r.jsx(Cr, { size: 16 }), sx: {
|
|
34454
34464
|
...Su
|
|
34455
34465
|
// background: 'rgb(231, 245, 255)',
|
|
34456
34466
|
}, children: e("view.download_schema") });
|
|
@@ -34592,7 +34602,7 @@ function lO(e) {
|
|
|
34592
34602
|
if (typeof e.target.result != "string")
|
|
34593
34603
|
throw new Error(`Unparsable file content of type: ${typeof e.target.result}`);
|
|
34594
34604
|
let t = JSON.parse(e.target.result);
|
|
34595
|
-
if ("content" in t && (t = t.content), t.version !==
|
|
34605
|
+
if ("content" in t && (t = t.content), t.version !== lr)
|
|
34596
34606
|
throw new Error("Schema version mismatch");
|
|
34597
34607
|
return t;
|
|
34598
34608
|
}
|
|
@@ -34623,13 +34633,13 @@ const cO = D(({
|
|
|
34623
34633
|
try {
|
|
34624
34634
|
if (!L)
|
|
34625
34635
|
throw new Error("please use a valid json file");
|
|
34626
|
-
s.applyJSONSchema(L),
|
|
34636
|
+
s.applyJSONSchema(L), Zr({
|
|
34627
34637
|
title: "Successful",
|
|
34628
34638
|
message: "",
|
|
34629
34639
|
color: "green"
|
|
34630
34640
|
}), e();
|
|
34631
34641
|
} catch ($) {
|
|
34632
|
-
console.error($),
|
|
34642
|
+
console.error($), Zr({
|
|
34633
34643
|
title: "Failed",
|
|
34634
34644
|
message: $.message,
|
|
34635
34645
|
color: "red"
|
|
@@ -34669,7 +34679,7 @@ const cO = D(({
|
|
|
34669
34679
|
T ? /* @__PURE__ */ r.jsx(Ge, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
34670
34680
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
34671
34681
|
/* @__PURE__ */ r.jsx("th", { children: i("import.this_dashboard") }),
|
|
34672
|
-
/* @__PURE__ */ r.jsx("td", { children:
|
|
34682
|
+
/* @__PURE__ */ r.jsx("td", { children: lr })
|
|
34673
34683
|
] }),
|
|
34674
34684
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
34675
34685
|
/* @__PURE__ */ r.jsx("th", { children: i("import.this_file") }),
|
|
@@ -34695,7 +34705,7 @@ const cO = D(({
|
|
|
34695
34705
|
} = v(), [t, {
|
|
34696
34706
|
open: n,
|
|
34697
34707
|
close: i
|
|
34698
|
-
}] =
|
|
34708
|
+
}] = tr(!1), [s, {
|
|
34699
34709
|
setTrue: a,
|
|
34700
34710
|
setFalse: o
|
|
34701
34711
|
}] = nt(!1), c = ((d = pe().content.views.VIE) == null ? void 0 : d.type) === H.Tabs;
|
|
@@ -35377,7 +35387,7 @@ const FO = D(() => {
|
|
|
35377
35387
|
} = v(), [t, n] = U(!1);
|
|
35378
35388
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
35379
35389
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
35380
|
-
/* @__PURE__ */ r.jsx(qi, { in: t, children: /* @__PURE__ */ r.jsx(
|
|
35390
|
+
/* @__PURE__ */ r.jsx(qi, { in: t, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: HO }) })
|
|
35381
35391
|
] });
|
|
35382
35392
|
}, QO = D(function({
|
|
35383
35393
|
filter: t
|
|
@@ -35402,13 +35412,13 @@ const FO = D(() => {
|
|
|
35402
35412
|
minHeight: "50px"
|
|
35403
35413
|
}, children: [
|
|
35404
35414
|
i.usingQuery && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
35405
|
-
/* @__PURE__ */ r.jsx(
|
|
35415
|
+
/* @__PURE__ */ r.jsx(Ir, { opacity: 0.8, color: "#000", sx: {
|
|
35406
35416
|
left: "-5px",
|
|
35407
35417
|
right: "-5px",
|
|
35408
35418
|
top: "-5px",
|
|
35409
35419
|
bottom: "-5px"
|
|
35410
35420
|
} }),
|
|
35411
|
-
/* @__PURE__ */ r.jsx(
|
|
35421
|
+
/* @__PURE__ */ r.jsx(er, { sx: {
|
|
35412
35422
|
position: "absolute",
|
|
35413
35423
|
top: 0,
|
|
35414
35424
|
left: 0,
|
|
@@ -35417,7 +35427,7 @@ const FO = D(() => {
|
|
|
35417
35427
|
width: "100%"
|
|
35418
35428
|
}, children: /* @__PURE__ */ r.jsx(w, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
|
|
35419
35429
|
] }),
|
|
35420
|
-
a.length > 0 && /* @__PURE__ */ r.jsx(
|
|
35430
|
+
a.length > 0 && /* @__PURE__ */ r.jsx(Xr, { label: n("filter.widget.select.default_selection"), data: o, value: [...i.default_value], onChange: i.setDefaultValue }),
|
|
35421
35431
|
a.map((l, c) => /* @__PURE__ */ r.jsxs(qt, { gap: 10, sx: {
|
|
35422
35432
|
position: "relative"
|
|
35423
35433
|
}, pr: "40px", children: [
|
|
@@ -35474,13 +35484,13 @@ const FO = D(() => {
|
|
|
35474
35484
|
minHeight: "50px"
|
|
35475
35485
|
}, children: [
|
|
35476
35486
|
s.usingQuery && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
35477
|
-
/* @__PURE__ */ r.jsx(
|
|
35487
|
+
/* @__PURE__ */ r.jsx(Ir, { opacity: 0.8, color: "#000", sx: {
|
|
35478
35488
|
left: "-5px",
|
|
35479
35489
|
right: "-5px",
|
|
35480
35490
|
top: "-5px",
|
|
35481
35491
|
bottom: "-5px"
|
|
35482
35492
|
} }),
|
|
35483
|
-
/* @__PURE__ */ r.jsx(
|
|
35493
|
+
/* @__PURE__ */ r.jsx(er, { sx: {
|
|
35484
35494
|
position: "absolute",
|
|
35485
35495
|
top: 0,
|
|
35486
35496
|
left: 0,
|
|
@@ -35549,7 +35559,7 @@ const FO = D(() => {
|
|
|
35549
35559
|
} = v(), [t, n] = U(!1);
|
|
35550
35560
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
35551
35561
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
35552
|
-
/* @__PURE__ */ r.jsx(qi, { in: t, children: /* @__PURE__ */ r.jsx(
|
|
35562
|
+
/* @__PURE__ */ r.jsx(qi, { in: t, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: YO }) })
|
|
35553
35563
|
] });
|
|
35554
35564
|
}, JO = D(function({
|
|
35555
35565
|
filter: t
|
|
@@ -35579,7 +35589,7 @@ const FO = D(() => {
|
|
|
35579
35589
|
maxWidth: "480px"
|
|
35580
35590
|
}, children: [
|
|
35581
35591
|
/* @__PURE__ */ r.jsx(w, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
|
|
35582
|
-
/* @__PURE__ */ r.jsx(
|
|
35592
|
+
/* @__PURE__ */ r.jsx(Jn, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t, null, 4) })
|
|
35583
35593
|
] });
|
|
35584
35594
|
}), eF = {
|
|
35585
35595
|
select: UO,
|
|
@@ -35588,7 +35598,7 @@ const FO = D(() => {
|
|
|
35588
35598
|
"text-input": KO,
|
|
35589
35599
|
checkbox: BO,
|
|
35590
35600
|
"date-range": GO
|
|
35591
|
-
},
|
|
35601
|
+
}, pr = {
|
|
35592
35602
|
select: "filter.widget.names.select",
|
|
35593
35603
|
"multi-select": "filter.widget.names.multi_select",
|
|
35594
35604
|
"tree-select": "filter.widget.names.tree_select",
|
|
@@ -35602,22 +35612,22 @@ const FO = D(() => {
|
|
|
35602
35612
|
t: n,
|
|
35603
35613
|
i18n: i
|
|
35604
35614
|
} = v(), s = le(), a = R.useMemo(() => eF[t.type], [t.type]), o = I(() => [{
|
|
35605
|
-
label: n(
|
|
35615
|
+
label: n(pr.select),
|
|
35606
35616
|
value: "select"
|
|
35607
35617
|
}, {
|
|
35608
|
-
label: n(
|
|
35618
|
+
label: n(pr["multi-select"]),
|
|
35609
35619
|
value: "multi-select"
|
|
35610
35620
|
}, {
|
|
35611
|
-
label: n(
|
|
35621
|
+
label: n(pr["tree-select"]),
|
|
35612
35622
|
value: "tree-select"
|
|
35613
35623
|
}, {
|
|
35614
|
-
label: n(
|
|
35624
|
+
label: n(pr["text-input"]),
|
|
35615
35625
|
value: "text-input"
|
|
35616
35626
|
}, {
|
|
35617
|
-
label: n(
|
|
35627
|
+
label: n(pr.checkbox),
|
|
35618
35628
|
value: "checkbox"
|
|
35619
35629
|
}, {
|
|
35620
|
-
label: n(
|
|
35630
|
+
label: n(pr["date-range"]),
|
|
35621
35631
|
value: "date-range"
|
|
35622
35632
|
}], [i.language]);
|
|
35623
35633
|
return /* @__PURE__ */ r.jsxs(b, { grow: !0, spacing: 20, align: "top", children: [
|
|
@@ -35642,7 +35652,7 @@ const FO = D(() => {
|
|
|
35642
35652
|
),
|
|
35643
35653
|
t.auto_submit_supported && /* @__PURE__ */ r.jsx(te, { label: n("filter.field.auto_submit"), checked: t.auto_submit, onChange: (l) => t.setAutoSubmit(l.currentTarget.checked), mt: 22 })
|
|
35644
35654
|
] }),
|
|
35645
|
-
/* @__PURE__ */ r.jsx(
|
|
35655
|
+
/* @__PURE__ */ r.jsx(Xr, { label: n("filter.field.visible_in"), data: s.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
|
|
35646
35656
|
/* @__PURE__ */ r.jsx(E, { label: n("common.key"), placeholder: n("filter.field.key_placeholder"), required: !0, value: t.key, onChange: (l) => {
|
|
35647
35657
|
t.setKey(l.currentTarget.value);
|
|
35648
35658
|
} }),
|
|
@@ -35732,7 +35742,7 @@ const FO = D(() => {
|
|
|
35732
35742
|
{
|
|
35733
35743
|
size: "xs",
|
|
35734
35744
|
color: "blue",
|
|
35735
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
35745
|
+
leftIcon: /* @__PURE__ */ r.jsx(Cr, { size: 14 }),
|
|
35736
35746
|
disabled: t.length === 0,
|
|
35737
35747
|
onClick: a,
|
|
35738
35748
|
children: e("common.actions.download_schema")
|
|
@@ -35769,7 +35779,7 @@ const FO = D(() => {
|
|
|
35769
35779
|
} }) }),
|
|
35770
35780
|
/* @__PURE__ */ r.jsx("td", { children: d.label }),
|
|
35771
35781
|
/* @__PURE__ */ r.jsx("td", { children: d.key }),
|
|
35772
|
-
/* @__PURE__ */ r.jsx("td", { children: e(
|
|
35782
|
+
/* @__PURE__ */ r.jsx("td", { children: e(pr[d.type]) }),
|
|
35773
35783
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "xs", onClick: () => s(d.id), children: e("common.actions.open") }) })
|
|
35774
35784
|
] }, d.id)) })
|
|
35775
35785
|
] }) }) })
|
|
@@ -35781,7 +35791,7 @@ const FO = D(() => {
|
|
|
35781
35791
|
try {
|
|
35782
35792
|
t.mock_context.replace(JSON.parse(n));
|
|
35783
35793
|
} catch (o) {
|
|
35784
|
-
|
|
35794
|
+
Zr({
|
|
35785
35795
|
title: "Failed",
|
|
35786
35796
|
// @ts-expect-error error's type
|
|
35787
35797
|
message: o.message,
|
|
@@ -36066,7 +36076,7 @@ const hF = [{
|
|
|
36066
36076
|
overflow: "auto",
|
|
36067
36077
|
position: "relative"
|
|
36068
36078
|
}, children: [
|
|
36069
|
-
/* @__PURE__ */ r.jsx(
|
|
36079
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: t, overlayBlur: 2 }),
|
|
36070
36080
|
/* @__PURE__ */ r.jsx(qx, { data: o })
|
|
36071
36081
|
] })
|
|
36072
36082
|
] });
|
|
@@ -36271,7 +36281,7 @@ function _F({
|
|
|
36271
36281
|
/* @__PURE__ */ r.jsx(J, { mr: 5, variant: "filled", color: "blue", disabled: !c, onClick: d, children: /* @__PURE__ */ r.jsx($n, { size: 20 }) })
|
|
36272
36282
|
] }),
|
|
36273
36283
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
36274
|
-
s.map((p, m) => /* @__PURE__ */ r.jsx(
|
|
36284
|
+
s.map((p, m) => /* @__PURE__ */ r.jsx(Zn, { value: p, onChange: (f) => {
|
|
36275
36285
|
a((y) => (y.splice(m, 1, f), [...y]));
|
|
36276
36286
|
}, swatches: h, rightSection: /* @__PURE__ */ r.jsx(J, { onClick: () => l(m), color: "red", children: /* @__PURE__ */ r.jsx(Fn, { size: 14 }) }), sx: {
|
|
36277
36287
|
width: "45%"
|
|
@@ -36421,7 +36431,7 @@ const TF = D(({
|
|
|
36421
36431
|
const {
|
|
36422
36432
|
t
|
|
36423
36433
|
} = v();
|
|
36424
|
-
return /* @__PURE__ */ r.jsx(
|
|
36434
|
+
return /* @__PURE__ */ r.jsx(Ir, { color: "#fff", opacity: 1, sx: {
|
|
36425
36435
|
position: "absolute"
|
|
36426
36436
|
}, children: /* @__PURE__ */ r.jsx(M, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(nn, { size: 16 }), onClick: e.addNew, sx: {
|
|
36427
36437
|
flexGrow: 0,
|
|
@@ -36457,7 +36467,7 @@ const TF = D(({
|
|
|
36457
36467
|
} = wt();
|
|
36458
36468
|
return Object.keys(t.variableStrings).length === 0 ? null : /* @__PURE__ */ r.jsxs(S, { mt: 22, spacing: 4, children: [
|
|
36459
36469
|
/* @__PURE__ */ r.jsx(w, { size: "sm", fw: 500, color: "dimmed", children: e("panel.variable.labels") }),
|
|
36460
|
-
/* @__PURE__ */ r.jsx(
|
|
36470
|
+
/* @__PURE__ */ r.jsx(Jn, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t.variableStrings, null, 4) })
|
|
36461
36471
|
] });
|
|
36462
36472
|
});
|
|
36463
36473
|
function MF() {
|
|
@@ -36577,7 +36587,7 @@ const AF = D(() => {
|
|
|
36577
36587
|
const [o, {
|
|
36578
36588
|
open: l,
|
|
36579
36589
|
close: c
|
|
36580
|
-
}] =
|
|
36590
|
+
}] = tr(!1), d = () => {
|
|
36581
36591
|
e.moveToView(t, s), c();
|
|
36582
36592
|
};
|
|
36583
36593
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -36693,7 +36703,7 @@ const FF = D(({
|
|
|
36693
36703
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Interactions", children: t("interactions.label") })
|
|
36694
36704
|
] }),
|
|
36695
36705
|
/* @__PURE__ */ r.jsxs(_.Panel, { value: "Data", children: [
|
|
36696
|
-
/* @__PURE__ */ r.jsx(
|
|
36706
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: d, exitTransitionDuration: 0 }),
|
|
36697
36707
|
/* @__PURE__ */ r.jsx(gF, {})
|
|
36698
36708
|
] }),
|
|
36699
36709
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(ho, { children: /* @__PURE__ */ r.jsx(dF, {}) }) }),
|
|
@@ -36766,7 +36776,7 @@ const FF = D(({
|
|
|
36766
36776
|
{
|
|
36767
36777
|
size: "xs",
|
|
36768
36778
|
color: "blue",
|
|
36769
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
36779
|
+
leftIcon: /* @__PURE__ */ r.jsx(Cr, { size: 14 }),
|
|
36770
36780
|
disabled: t.length === 0,
|
|
36771
36781
|
onClick: l,
|
|
36772
36782
|
children: e("common.actions.download_schema")
|
|
@@ -36869,14 +36879,14 @@ const FF = D(({
|
|
|
36869
36879
|
/* @__PURE__ */ r.jsx(id, { width: t, height: n, radius: "xs" })
|
|
36870
36880
|
] }), Li = ({
|
|
36871
36881
|
value: e
|
|
36872
|
-
}) => e === null || e === "" ? null : /* @__PURE__ */ r.jsx(de, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ r.jsx(J, { children: /* @__PURE__ */ r.jsx(
|
|
36882
|
+
}) => e === null || e === "" ? null : /* @__PURE__ */ r.jsx(de, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ r.jsx(J, { children: /* @__PURE__ */ r.jsx(Dr, { size: 14 }) }) }), WF = ({
|
|
36873
36883
|
column: e
|
|
36874
36884
|
}) => {
|
|
36875
36885
|
const {
|
|
36876
36886
|
column_key: t,
|
|
36877
36887
|
column_key_text: n
|
|
36878
36888
|
} = e;
|
|
36879
|
-
return t ? /* @__PURE__ */ r.jsx(de, { label: n, disabled: !n, children: /* @__PURE__ */ r.jsx(
|
|
36889
|
+
return t ? /* @__PURE__ */ r.jsx(de, { label: n, disabled: !n, children: /* @__PURE__ */ r.jsx(Xn, { children: t }) }) : null;
|
|
36880
36890
|
}, GF = D(({
|
|
36881
36891
|
dataSource: e
|
|
36882
36892
|
}) => {
|
|
@@ -37081,7 +37091,7 @@ const XF = D(({
|
|
|
37081
37091
|
height: "100%",
|
|
37082
37092
|
overflow: "hidden",
|
|
37083
37093
|
position: "relative"
|
|
37084
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
37094
|
+
}, children: /* @__PURE__ */ r.jsx(Tr, { visible: e }) }), ZF = [{
|
|
37085
37095
|
label: "10",
|
|
37086
37096
|
value: "10"
|
|
37087
37097
|
}, {
|
|
@@ -37150,7 +37160,7 @@ const XF = D(({
|
|
|
37150
37160
|
overflow: "auto",
|
|
37151
37161
|
position: "relative"
|
|
37152
37162
|
}, children: [
|
|
37153
|
-
/* @__PURE__ */ r.jsx(
|
|
37163
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: t.loading, overlayBlur: 2 }),
|
|
37154
37164
|
/* @__PURE__ */ r.jsx(qx, { data: t.data })
|
|
37155
37165
|
] })
|
|
37156
37166
|
] });
|
|
@@ -37227,11 +37237,11 @@ const XF = D(({
|
|
|
37227
37237
|
}, children: [
|
|
37228
37238
|
/* @__PURE__ */ r.jsx(w, { fw: 500, children: n("data_source.explorer") }),
|
|
37229
37239
|
/* @__PURE__ */ r.jsxs(b, { spacing: 7, children: [
|
|
37230
|
-
/* @__PURE__ */ r.jsx(
|
|
37240
|
+
/* @__PURE__ */ r.jsx(Xn, { variant: "gradient", gradient: {
|
|
37231
37241
|
from: "indigo",
|
|
37232
37242
|
to: "cyan"
|
|
37233
37243
|
}, children: e.key }),
|
|
37234
|
-
/* @__PURE__ */ r.jsx(
|
|
37244
|
+
/* @__PURE__ */ r.jsx(Xn, { variant: "gradient", gradient: {
|
|
37235
37245
|
from: "orange",
|
|
37236
37246
|
to: "red"
|
|
37237
37247
|
}, children: e.type })
|
|
@@ -37273,7 +37283,7 @@ const XF = D(({
|
|
|
37273
37283
|
} = v(), i = pe(), {
|
|
37274
37284
|
data: s = [],
|
|
37275
37285
|
loading: a
|
|
37276
|
-
} =
|
|
37286
|
+
} = wr(bl, {
|
|
37277
37287
|
refreshDeps: []
|
|
37278
37288
|
}, []), o = I(() => {
|
|
37279
37289
|
const u = s.map((h) => ({
|
|
@@ -37323,7 +37333,7 @@ const XF = D(({
|
|
|
37323
37333
|
} = v(), [n, i] = U(e.name);
|
|
37324
37334
|
return W(() => {
|
|
37325
37335
|
i(e.name);
|
|
37326
|
-
}, [e.name]), /* @__PURE__ */ r.jsx(
|
|
37336
|
+
}, [e.name]), /* @__PURE__ */ r.jsx(er, { ml: 20, mt: 20, sx: {
|
|
37327
37337
|
maxWidth: "600px"
|
|
37328
37338
|
}, children: /* @__PURE__ */ r.jsxs(S, { spacing: 10, sx: {
|
|
37329
37339
|
width: "100%"
|
|
@@ -37346,8 +37356,8 @@ const XF = D(({
|
|
|
37346
37356
|
e.setKey(a), e.setType(s);
|
|
37347
37357
|
} }),
|
|
37348
37358
|
/* @__PURE__ */ r.jsx(P, { mt: 10, mb: -10, variant: "dashed", label: t("query.conditions"), labelPosition: "center" }),
|
|
37349
|
-
/* @__PURE__ */ r.jsx(
|
|
37350
|
-
e.typedAsHTTP && /* @__PURE__ */ r.jsx(
|
|
37359
|
+
/* @__PURE__ */ r.jsx(Xr, { label: t("query.run_by_condition.label"), placeholder: t("query.run_by_condition.unset"), data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent: Id, maxDropdownHeight: 500 }),
|
|
37360
|
+
e.typedAsHTTP && /* @__PURE__ */ r.jsx(Xr, { label: t("query.re_run_condition.label"), placeholder: t("query.re_run_condition.label"), data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent: Id, maxDropdownHeight: 500 }),
|
|
37351
37361
|
/* @__PURE__ */ r.jsx(P, { mt: 20, mb: 10, variant: "dashed" }),
|
|
37352
37362
|
/* @__PURE__ */ r.jsx(BF, { queryModel: e })
|
|
37353
37363
|
] }) });
|
|
@@ -37357,7 +37367,7 @@ function cV({
|
|
|
37357
37367
|
}) {
|
|
37358
37368
|
return /* @__PURE__ */ r.jsxs(Pe, { width: "60vw", shadow: "md", children: [
|
|
37359
37369
|
/* @__PURE__ */ r.jsx(Pe.Target, { children: /* @__PURE__ */ r.jsx(J, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(nh, {}) }) }),
|
|
37360
|
-
/* @__PURE__ */ r.jsx(Pe.Dropdown, { children: /* @__PURE__ */ r.jsx(
|
|
37370
|
+
/* @__PURE__ */ r.jsx(Pe.Dropdown, { children: /* @__PURE__ */ r.jsx(Jn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
|
|
37361
37371
|
] });
|
|
37362
37372
|
}
|
|
37363
37373
|
const dV = D(() => {
|
|
@@ -37416,10 +37426,10 @@ WHERE
|
|
|
37416
37426
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "local_query_vars", icon: /* @__PURE__ */ r.jsx(Ju, { size: 14 }), children: i("query_variable.guide.tabs.variables_in_this_dashboard") }),
|
|
37417
37427
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "global_sql_snippets", icon: /* @__PURE__ */ r.jsx(vb, { size: 14 }), children: i("query_variable.guide.tabs.global_sql_snippets") })
|
|
37418
37428
|
] }),
|
|
37419
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(
|
|
37429
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "sql", sx: {
|
|
37420
37430
|
width: "100%"
|
|
37421
37431
|
}, noCopy: !0, colorScheme: "dark", children: uV }) }),
|
|
37422
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(
|
|
37432
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "json", sx: {
|
|
37423
37433
|
width: "100%"
|
|
37424
37434
|
}, noCopy: !0, colorScheme: "dark", children: l }) }),
|
|
37425
37435
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(S, { spacing: 10, children: [
|
|
@@ -37460,8 +37470,8 @@ WHERE
|
|
|
37460
37470
|
] }),
|
|
37461
37471
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "pre_process", sx: {
|
|
37462
37472
|
position: "relative"
|
|
37463
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(
|
|
37464
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(
|
|
37473
|
+
}, p: "sm", children: /* @__PURE__ */ r.jsx(ei, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Tu.pre }) }),
|
|
37474
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(ei, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Tu.post }) })
|
|
37465
37475
|
] }) : null;
|
|
37466
37476
|
}), pV = D(({
|
|
37467
37477
|
queryID: e,
|
|
@@ -37613,8 +37623,8 @@ WHERE
|
|
|
37613
37623
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ r.jsx(bV, { value: e.sql }) }),
|
|
37614
37624
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "pre_process", sx: {
|
|
37615
37625
|
position: "relative"
|
|
37616
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(
|
|
37617
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(
|
|
37626
|
+
}, p: "sm", children: /* @__PURE__ */ r.jsx(ei, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: zu.pre }) }),
|
|
37627
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(ei, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: zu.post }) })
|
|
37618
37628
|
] }) : null;
|
|
37619
37629
|
}), vV = {
|
|
37620
37630
|
pre: ["function transform(queries, state, utils) {", " // use queries & dashboar state to build new data", " const data = []", " return data", "}"].join(`
|
|
@@ -37630,11 +37640,11 @@ WHERE
|
|
|
37630
37640
|
height: "100%"
|
|
37631
37641
|
}, children: [
|
|
37632
37642
|
/* @__PURE__ */ r.jsx(w, { size: "sm", children: t("query.transform.guide.pick_queries") }),
|
|
37633
|
-
/* @__PURE__ */ r.jsx(
|
|
37643
|
+
/* @__PURE__ */ r.jsx(Xr, { data: n.queries.optionsWithoutTransform, value: [...e.dep_query_ids], onChange: e.setDependantQueryIDs, maxDropdownHeight: 800 }),
|
|
37634
37644
|
/* @__PURE__ */ r.jsx(w, { size: "sm", children: t("query.transform.guide.write_function") }),
|
|
37635
37645
|
/* @__PURE__ */ r.jsx(A, { sx: {
|
|
37636
37646
|
flexGrow: 1
|
|
37637
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
37647
|
+
}, children: /* @__PURE__ */ r.jsx(ei, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: vV.pre }) })
|
|
37638
37648
|
] }) : null;
|
|
37639
37649
|
}), vi = {
|
|
37640
37650
|
height: "calc(100% - 44px)",
|
|
@@ -37834,7 +37844,7 @@ WHERE
|
|
|
37834
37844
|
{
|
|
37835
37845
|
size: "xs",
|
|
37836
37846
|
color: "blue",
|
|
37837
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
37847
|
+
leftIcon: /* @__PURE__ */ r.jsx(Cr, { size: 14 }),
|
|
37838
37848
|
disabled: t.length === 0,
|
|
37839
37849
|
onClick: l,
|
|
37840
37850
|
children: e("common.actions.download_schema")
|
|
@@ -37927,7 +37937,7 @@ WHERE
|
|
|
37927
37937
|
return /* @__PURE__ */ r.jsxs(A, { sx: {
|
|
37928
37938
|
position: "relative"
|
|
37929
37939
|
}, children: [
|
|
37930
|
-
e && /* @__PURE__ */ r.jsx(
|
|
37940
|
+
e && /* @__PURE__ */ r.jsx(Ir, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
37931
37941
|
/* @__PURE__ */ r.jsx(jn, { height: "500px", defaultLanguage: "javascript", value: t, onChange: i, theme: "vs-dark", options: {
|
|
37932
37942
|
minimap: {
|
|
37933
37943
|
enabled: !1
|
|
@@ -37977,7 +37987,7 @@ WHERE
|
|
|
37977
37987
|
/* @__PURE__ */ r.jsx(te, { mt: 10, label: n("common.enabled"), checked: o.enabled, onChange: (m) => c(m.currentTarget.checked) }),
|
|
37978
37988
|
/* @__PURE__ */ r.jsx(DV, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
37979
37989
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
37980
|
-
/* @__PURE__ */ r.jsx(M, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
37990
|
+
/* @__PURE__ */ r.jsx(M, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Mr, { size: 20 }), children: n("common.actions.revert") }),
|
|
37981
37991
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
37982
37992
|
/* @__PURE__ */ r.jsx(M, { onClick: u, variant: "subtle", children: n("common.actions.cancel") }),
|
|
37983
37993
|
/* @__PURE__ */ r.jsx(M, { onClick: d, children: n("common.actions.save") })
|
|
@@ -38381,9 +38391,9 @@ const dN = {
|
|
|
38381
38391
|
cN(a.monacoPath), Dh(a);
|
|
38382
38392
|
const {
|
|
38383
38393
|
data: m = []
|
|
38384
|
-
} =
|
|
38394
|
+
} = wr(bl), {
|
|
38385
38395
|
data: f = []
|
|
38386
|
-
} =
|
|
38396
|
+
} = wr(cp), y = R.useMemo(() => H2(t, n, m, f, e, c ?? {}), [t, n]);
|
|
38387
38397
|
R.useImperativeHandle(p, () => y, [y]), Ax(y.content, !0), R.useEffect(() => {
|
|
38388
38398
|
y.context.replace(e);
|
|
38389
38399
|
}, [e]), R.useEffect(() => {
|
|
@@ -38620,9 +38630,9 @@ const fN = ({
|
|
|
38620
38630
|
Dh(s);
|
|
38621
38631
|
const {
|
|
38622
38632
|
data: p = []
|
|
38623
|
-
} =
|
|
38633
|
+
} = wr(bl), {
|
|
38624
38634
|
data: m = []
|
|
38625
|
-
} =
|
|
38635
|
+
} = wr(cp), f = R.useMemo(() => mN(t, n, p, m, e, l ?? {}, d ?? null), [t, n, d]);
|
|
38626
38636
|
Ax(f.content, !1), R.useEffect(() => {
|
|
38627
38637
|
f.context.replace(e);
|
|
38628
38638
|
}, [e]), R.useEffect(() => {
|
|
@@ -38703,7 +38713,7 @@ const w3 = () => Promise.resolve().then(() => vw).then(({
|
|
|
38703
38713
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
38704
38714
|
export {
|
|
38705
38715
|
zn as APIClient,
|
|
38706
|
-
|
|
38716
|
+
lr as CURRENT_SCHEMA_VERSION,
|
|
38707
38717
|
Lx as ContentModel,
|
|
38708
38718
|
vp as ContentModelContextProvider,
|
|
38709
38719
|
Qx as ContentRenderModel,
|