@devtable/dashboard 13.27.4 → 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 -420
- 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,22 +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
|
-
|
|
4489
|
-
onChange: i,
|
|
4498
|
+
onChange: a,
|
|
4490
4499
|
theme: "vs-dark",
|
|
4491
4500
|
options: {
|
|
4492
4501
|
lineNumbers: "off",
|
|
@@ -4498,10 +4507,10 @@ const _i = "data-value", Dj = _i, Zh = "dynamicColor", ep = Bs.create({
|
|
|
4498
4507
|
enabled: !1
|
|
4499
4508
|
}
|
|
4500
4509
|
},
|
|
4501
|
-
onMount:
|
|
4510
|
+
onMount: o
|
|
4502
4511
|
}
|
|
4503
4512
|
);
|
|
4504
|
-
},
|
|
4513
|
+
}, ei = re(({
|
|
4505
4514
|
value: e,
|
|
4506
4515
|
onChange: t,
|
|
4507
4516
|
label: n,
|
|
@@ -4559,7 +4568,7 @@ const _i = "data-value", Dj = _i, Zh = "dynamicColor", ep = Bs.create({
|
|
|
4559
4568
|
position: "relative",
|
|
4560
4569
|
flexGrow: 1
|
|
4561
4570
|
}, children: [
|
|
4562
|
-
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") }) }),
|
|
4563
4572
|
/* @__PURE__ */ r.jsx(Mj, { value: l, onChange: c, onMount: p })
|
|
4564
4573
|
] })
|
|
4565
4574
|
] });
|
|
@@ -4579,11 +4588,11 @@ const _i = "data-value", Dj = _i, Zh = "dynamicColor", ep = Bs.create({
|
|
|
4579
4588
|
const [p, {
|
|
4580
4589
|
open: m,
|
|
4581
4590
|
close: f
|
|
4582
|
-
}] =
|
|
4591
|
+
}] = tr(!1);
|
|
4583
4592
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4584
4593
|
/* @__PURE__ */ r.jsxs(Le, { opened: p, onClose: f, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
|
|
4585
4594
|
s,
|
|
4586
|
-
/* @__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 }) })
|
|
4587
4596
|
] }),
|
|
4588
4597
|
l == null ? void 0 : l({
|
|
4589
4598
|
onClick: m
|
|
@@ -4716,7 +4725,7 @@ function np() {
|
|
|
4716
4725
|
} = v(), [t, {
|
|
4717
4726
|
open: n,
|
|
4718
4727
|
close: i
|
|
4719
|
-
}] =
|
|
4728
|
+
}] = tr(!1);
|
|
4720
4729
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4721
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: {
|
|
4722
4731
|
root: {
|
|
@@ -4729,7 +4738,7 @@ function np() {
|
|
|
4729
4738
|
}
|
|
4730
4739
|
}
|
|
4731
4740
|
} }) }),
|
|
4732
|
-
/* @__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") })
|
|
4733
4742
|
] });
|
|
4734
4743
|
}
|
|
4735
4744
|
const Id = re((e, t) => {
|
|
@@ -4788,7 +4797,7 @@ const Id = re((e, t) => {
|
|
|
4788
4797
|
set: s,
|
|
4789
4798
|
setFalse: a,
|
|
4790
4799
|
toggle: o
|
|
4791
|
-
}] = 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(() => {
|
|
4792
4801
|
const p = [];
|
|
4793
4802
|
return Oj.forEach((m) => {
|
|
4794
4803
|
const f = n.colors[m];
|
|
@@ -4805,7 +4814,7 @@ const Id = re((e, t) => {
|
|
|
4805
4814
|
/* @__PURE__ */ r.jsx(Ft.Target, { children: /* @__PURE__ */ r.jsx(ie.Control, { onClick: o, children: /* @__PURE__ */ r.jsx($s, { color: c, size: 14 }) }) }),
|
|
4806
4815
|
/* @__PURE__ */ r.jsx(Ft.Dropdown, { children: /* @__PURE__ */ r.jsxs(S, { spacing: "xs", children: [
|
|
4807
4816
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
4808
|
-
/* @__PURE__ */ r.jsx(
|
|
4817
|
+
/* @__PURE__ */ r.jsx(Zn, { value: c, onChangeEnd: (p) => u(p, !1), size: "xs", withPicker: !1, dropdownZIndex: 340, styles: {
|
|
4809
4818
|
root: {
|
|
4810
4819
|
flexGrow: 1
|
|
4811
4820
|
},
|
|
@@ -4818,7 +4827,7 @@ const Id = re((e, t) => {
|
|
|
4818
4827
|
/* @__PURE__ */ r.jsx(J, { variant: "default", onClick: h, title: t("common.actions.clear"), children: /* @__PURE__ */ r.jsx(Xu, { stroke: 1.5, size: "1rem" }) }),
|
|
4819
4828
|
/* @__PURE__ */ r.jsx(J, { variant: "default", onClick: a, title: t("common.actions.close"), children: /* @__PURE__ */ r.jsx(el, { stroke: 1.5, size: "1rem" }) })
|
|
4820
4829
|
] }),
|
|
4821
|
-
/* @__PURE__ */ r.jsxs(
|
|
4830
|
+
/* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
4822
4831
|
/* @__PURE__ */ r.jsx(td, { format: "hex", swatches: d, value: c, onChange: (p) => u(p, !1), size: "sm", withPicker: !1, styles: {
|
|
4823
4832
|
swatches: {
|
|
4824
4833
|
marginTop: "0 !important"
|
|
@@ -5106,7 +5115,7 @@ function Xi(e, t, n) {
|
|
|
5106
5115
|
return `${l}${c}`;
|
|
5107
5116
|
}).join("");
|
|
5108
5117
|
}
|
|
5109
|
-
const
|
|
5118
|
+
const _r = {
|
|
5110
5119
|
grid: {
|
|
5111
5120
|
axis: "#97999D",
|
|
5112
5121
|
scope: "rgba(47,140,192,0.1)",
|
|
@@ -5171,9 +5180,9 @@ const vr = {
|
|
|
5171
5180
|
};
|
|
5172
5181
|
function Kj() {
|
|
5173
5182
|
rt.registerTheme("merico-light", {
|
|
5174
|
-
color: Object.values(
|
|
5183
|
+
color: Object.values(_r.graphics.multiple),
|
|
5175
5184
|
visualMap: {
|
|
5176
|
-
color: Object.values(
|
|
5185
|
+
color: Object.values(_r.graphics.depth).reverse()
|
|
5177
5186
|
},
|
|
5178
5187
|
axes: [{
|
|
5179
5188
|
type: "all",
|
|
@@ -5191,7 +5200,7 @@ function ap() {
|
|
|
5191
5200
|
Kj();
|
|
5192
5201
|
}
|
|
5193
5202
|
function* Yj(e) {
|
|
5194
|
-
const t =
|
|
5203
|
+
const t = _r.graphics[e];
|
|
5195
5204
|
if (!t)
|
|
5196
5205
|
throw new Error("Invalid palette key provided");
|
|
5197
5206
|
const n = Object.values(t);
|
|
@@ -5277,7 +5286,7 @@ function nw(e, t, n) {
|
|
|
5277
5286
|
function op() {
|
|
5278
5287
|
Gb([dy, Hb, Qb, Ub, Kb, Yb, Xb, Jb, Zb, ey, ty, ny, ry, iy, sy, ay, oy, ly, cy]);
|
|
5279
5288
|
}
|
|
5280
|
-
const
|
|
5289
|
+
const ti = (e) => qu(e, (t, n) => {
|
|
5281
5290
|
if (n !== void 0 && t)
|
|
5282
5291
|
return Pn(t);
|
|
5283
5292
|
}), Ds = {
|
|
@@ -5543,7 +5552,7 @@ const uw = (e) => {
|
|
|
5543
5552
|
height: n.h
|
|
5544
5553
|
}
|
|
5545
5554
|
}, d = o.viewRender;
|
|
5546
|
-
return /* @__PURE__ */ r.jsx(d, { context: c, instance: l, ...
|
|
5555
|
+
return /* @__PURE__ */ r.jsx(d, { context: c, instance: l, ...Sr(e, ["panel", "vizManager", "data"]) });
|
|
5547
5556
|
}, hw = (e) => {
|
|
5548
5557
|
const {
|
|
5549
5558
|
vizManager: t,
|
|
@@ -5553,14 +5562,14 @@ const uw = (e) => {
|
|
|
5553
5562
|
} = e, a = t.resolveComponent(n.viz.type), o = t.getOrCreateInstance(n), l = {
|
|
5554
5563
|
...up(o, i, t, s)
|
|
5555
5564
|
}, c = a.configRender;
|
|
5556
|
-
return /* @__PURE__ */ r.jsx(c, { context: l, instance: o, ...
|
|
5565
|
+
return /* @__PURE__ */ r.jsx(c, { context: l, instance: o, ...Sr(e, ["panel", "vizManager", "data"]) });
|
|
5557
5566
|
}, hp = (e, t) => {
|
|
5558
|
-
const n =
|
|
5567
|
+
const n = Jr.bezier(e), i = Jr.bezier(t);
|
|
5559
5568
|
return function(s) {
|
|
5560
5569
|
return s < 50 ? n(s * 2 / 100).hex() : i((s - 50) * 2 / 100).hex();
|
|
5561
5570
|
};
|
|
5562
5571
|
}, ga = (e) => {
|
|
5563
|
-
const t =
|
|
5572
|
+
const t = Jr.bezier(e);
|
|
5564
5573
|
return function(n) {
|
|
5565
5574
|
return t(n / 100).hex();
|
|
5566
5575
|
};
|
|
@@ -5647,7 +5656,7 @@ class yl {
|
|
|
5647
5656
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
5648
5657
|
}
|
|
5649
5658
|
}
|
|
5650
|
-
const pp = "13.27.
|
|
5659
|
+
const pp = "13.27.5", vw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5651
5660
|
__proto__: null,
|
|
5652
5661
|
version: pp
|
|
5653
5662
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -6134,7 +6143,7 @@ const Pw = {
|
|
|
6134
6143
|
return /* @__PURE__ */ r.jsxs(A, { sx: {
|
|
6135
6144
|
position: "relative"
|
|
6136
6145
|
}, children: [
|
|
6137
|
-
e && /* @__PURE__ */ r.jsx(
|
|
6146
|
+
e && /* @__PURE__ */ r.jsx(Ir, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
6138
6147
|
/* @__PURE__ */ r.jsx(jn, { height: "500px", defaultLanguage: "javascript", value: t, onChange: i, theme: "vs-dark", options: {
|
|
6139
6148
|
minimap: {
|
|
6140
6149
|
enabled: !1
|
|
@@ -6211,7 +6220,7 @@ const on = re(({
|
|
|
6211
6220
|
/* @__PURE__ */ r.jsx(te, { mt: 10, label: s("common.enabled"), checked: c.enabled, onChange: (T) => u(T.currentTarget.checked) }),
|
|
6212
6221
|
/* @__PURE__ */ r.jsx(Ow, { value: c.func_content, onChange: m, disabled: !c.enabled }),
|
|
6213
6222
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
6214
|
-
/* @__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") }),
|
|
6215
6224
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
6216
6225
|
/* @__PURE__ */ r.jsx(M, { onClick: p, variant: "subtle", children: s("common.actions.cancel") }),
|
|
6217
6226
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: h, children: s("common.actions.save") })
|
|
@@ -6219,14 +6228,14 @@ const on = re(({
|
|
|
6219
6228
|
] })
|
|
6220
6229
|
] }) })
|
|
6221
6230
|
] });
|
|
6222
|
-
}),
|
|
6231
|
+
}), Er = {
|
|
6223
6232
|
x_axis_scroll: !1,
|
|
6224
6233
|
y_axis_scroll: !1,
|
|
6225
6234
|
x_axis_slider: !1,
|
|
6226
6235
|
y_axis_slider: !1
|
|
6227
6236
|
};
|
|
6228
6237
|
function Ip() {
|
|
6229
|
-
return C.cloneDeep(
|
|
6238
|
+
return C.cloneDeep(Er);
|
|
6230
6239
|
}
|
|
6231
6240
|
const Fw = {
|
|
6232
6241
|
boxplot: {
|
|
@@ -6428,7 +6437,7 @@ const jl = {
|
|
|
6428
6437
|
},
|
|
6429
6438
|
dataZoom: Ip()
|
|
6430
6439
|
};
|
|
6431
|
-
function
|
|
6440
|
+
function Lr(e, t) {
|
|
6432
6441
|
return I(() => {
|
|
6433
6442
|
const {
|
|
6434
6443
|
queryID: n,
|
|
@@ -6441,14 +6450,14 @@ const Et = (e, t) => {
|
|
|
6441
6450
|
const [n, i] = U([]);
|
|
6442
6451
|
return W(() => e.watchTriggerSnapshotList((s) => i(s.filter((a) => a.schemaRef === t))), []), n;
|
|
6443
6452
|
};
|
|
6444
|
-
class
|
|
6453
|
+
class Wr {
|
|
6445
6454
|
constructor(t, n) {
|
|
6446
6455
|
this.root = t, this.path = n;
|
|
6447
6456
|
}
|
|
6448
6457
|
async deleteItem(t) {
|
|
6449
6458
|
t === null && await this.root.deleteItem(this.path);
|
|
6450
6459
|
const n = await this.root.getItem(this.path) || {};
|
|
6451
|
-
await this.root.setItem(this.path,
|
|
6460
|
+
await this.root.setItem(this.path, Sr(n, t));
|
|
6452
6461
|
}
|
|
6453
6462
|
async getItem(t) {
|
|
6454
6463
|
const n = await this.root.getItem(this.path);
|
|
@@ -6485,21 +6494,21 @@ const Ww = {
|
|
|
6485
6494
|
class wl {
|
|
6486
6495
|
constructor(t, n, i) {
|
|
6487
6496
|
G(this, "attachmentStorage");
|
|
6488
|
-
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);
|
|
6489
6498
|
}
|
|
6490
6499
|
async getInstance(t) {
|
|
6491
6500
|
if (await this.attachmentStorage.getItem(t))
|
|
6492
|
-
return this.constructInstance(new
|
|
6501
|
+
return this.constructInstance(new Wr(this.attachmentStorage, t));
|
|
6493
6502
|
}
|
|
6494
6503
|
async create(t, n) {
|
|
6495
|
-
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));
|
|
6496
6505
|
}
|
|
6497
6506
|
async remove(t) {
|
|
6498
6507
|
await this.attachmentStorage.deleteItem(t);
|
|
6499
6508
|
}
|
|
6500
6509
|
async list() {
|
|
6501
6510
|
const t = await this.attachmentStorage.getItem(null), n = C.orderBy(Gu(t), (i) => Ww[i.schemaRef] ?? 10);
|
|
6502
|
-
return Promise.all(n.map((i) => this.constructInstance(new
|
|
6511
|
+
return Promise.all(n.map((i) => this.constructInstance(new Wr(this.attachmentStorage, i.id))));
|
|
6503
6512
|
}
|
|
6504
6513
|
}
|
|
6505
6514
|
function Gw(e, t) {
|
|
@@ -6740,7 +6749,7 @@ const l0 = {
|
|
|
6740
6749
|
label: c.label,
|
|
6741
6750
|
value: c.key
|
|
6742
6751
|
})), [n.filters.values]);
|
|
6743
|
-
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 }) });
|
|
6744
6753
|
});
|
|
6745
6754
|
async function u0(e, t) {
|
|
6746
6755
|
const i = (await t.operationData.getItem("config")).filter_keys;
|
|
@@ -6769,7 +6778,7 @@ class p0 {
|
|
|
6769
6778
|
return {
|
|
6770
6779
|
id: a,
|
|
6771
6780
|
schemaRef: o,
|
|
6772
|
-
operationData: new
|
|
6781
|
+
operationData: new Wr(s, "data")
|
|
6773
6782
|
};
|
|
6774
6783
|
};
|
|
6775
6784
|
this.attachments = new wl(t, "__OPERATIONS", i);
|
|
@@ -6845,7 +6854,7 @@ class m0 {
|
|
|
6845
6854
|
return {
|
|
6846
6855
|
id: a,
|
|
6847
6856
|
schemaRef: o,
|
|
6848
|
-
triggerData: new
|
|
6857
|
+
triggerData: new Wr(s, "data")
|
|
6849
6858
|
};
|
|
6850
6859
|
};
|
|
6851
6860
|
this.attachments = new wl(t, Td, i);
|
|
@@ -6971,7 +6980,7 @@ const Lt = ({
|
|
|
6971
6980
|
title: n = "Variables",
|
|
6972
6981
|
variables: i
|
|
6973
6982
|
} = e, s = qg(), a = (o) => {
|
|
6974
|
-
s.copy(o),
|
|
6983
|
+
s.copy(o), Zr({
|
|
6975
6984
|
color: "green",
|
|
6976
6985
|
message: t("common.copied")
|
|
6977
6986
|
});
|
|
@@ -7199,7 +7208,7 @@ const z0 = D(({
|
|
|
7199
7208
|
sampleData: o,
|
|
7200
7209
|
variables: l
|
|
7201
7210
|
} = e, c = T0(s, n), d = async () => {
|
|
7202
|
-
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]);
|
|
7203
7212
|
await s.addInteraction(m, f), i((y) => y + 1);
|
|
7204
7213
|
};
|
|
7205
7214
|
async function u(m) {
|
|
@@ -7208,7 +7217,7 @@ const z0 = D(({
|
|
|
7208
7217
|
const {
|
|
7209
7218
|
data: h = 0,
|
|
7210
7219
|
loading: p
|
|
7211
|
-
} =
|
|
7220
|
+
} = wr(async () => {
|
|
7212
7221
|
try {
|
|
7213
7222
|
return (await s.triggerManager.getTriggerSchemaList()).length;
|
|
7214
7223
|
} catch {
|
|
@@ -7216,7 +7225,7 @@ const z0 = D(({
|
|
|
7216
7225
|
}
|
|
7217
7226
|
});
|
|
7218
7227
|
return /* @__PURE__ */ r.jsxs(S, { children: [
|
|
7219
|
-
/* @__PURE__ */ r.jsx(
|
|
7228
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: p }),
|
|
7220
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") }),
|
|
7221
7230
|
c.map((m) => /* @__PURE__ */ r.jsx(z0, { onRemove: u, instance: a, sampleData: o, variables: l, item: m, manager: e.interactionManager }, m.id)),
|
|
7222
7231
|
/* @__PURE__ */ r.jsx(M, { style: {
|
|
@@ -7765,7 +7774,7 @@ function rS({
|
|
|
7765
7774
|
return Math.min(0, e);
|
|
7766
7775
|
if (e <= 200)
|
|
7767
7776
|
return 100;
|
|
7768
|
-
const n =
|
|
7777
|
+
const n = Gr.floor(Gr.log10(e)), i = Math.pow(10, n), s = Math.pow(10, n - 1);
|
|
7769
7778
|
return e / i <= 2 ? C.round(e, -1 * (n - 1)) - s : C.round(e, -1 * n) - i;
|
|
7770
7779
|
}
|
|
7771
7780
|
function iS(e) {
|
|
@@ -7844,7 +7853,7 @@ function aS({
|
|
|
7844
7853
|
} = e.viewport, c = je({}, i, jl), d = Lt({
|
|
7845
7854
|
vizManager: e.vizManager,
|
|
7846
7855
|
instance: t
|
|
7847
|
-
}), 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) => {
|
|
7848
7857
|
const T = C.get(h, y.name, {
|
|
7849
7858
|
error: "rowData is not found"
|
|
7850
7859
|
});
|
|
@@ -8072,11 +8081,11 @@ function dS(e) {
|
|
|
8072
8081
|
}, color: "dimmed", size: "sm", className: "palette-value--up palette-value", children: L }),
|
|
8073
8082
|
/* @__PURE__ */ r.jsxs(Ft, { width: 240, trapFocus: !0, opened: d, onClose: h, zIndex: 340, withinPortal: !0, children: [
|
|
8074
8083
|
/* @__PURE__ */ r.jsx(Ft.Target, { children: /* @__PURE__ */ r.jsx("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: u, style: {
|
|
8075
|
-
"--shadow-color":
|
|
8084
|
+
"--shadow-color": Jr(i).alpha(0.5).hex(),
|
|
8076
8085
|
backgroundColor: i
|
|
8077
8086
|
} }) }),
|
|
8078
8087
|
/* @__PURE__ */ r.jsxs(Ft.Dropdown, { children: [
|
|
8079
|
-
/* @__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: {
|
|
8080
8089
|
position: "absolute",
|
|
8081
8090
|
top: "0.5em",
|
|
8082
8091
|
right: "0.8em"
|
|
@@ -8261,7 +8270,7 @@ function Ln(e) {
|
|
|
8261
8270
|
}
|
|
8262
8271
|
}
|
|
8263
8272
|
var me = void 0;
|
|
8264
|
-
function
|
|
8273
|
+
function Hr(e) {
|
|
8265
8274
|
var t = me;
|
|
8266
8275
|
me = void 0;
|
|
8267
8276
|
try {
|
|
@@ -8549,7 +8558,7 @@ var vS = Object.create, zl = Object.defineProperty, _S = Object.getOwnPropertyDe
|
|
|
8549
8558
|
}, Ld = (e, t) => zl(e, "name", { value: t, configurable: !0 }), kS = (e) => {
|
|
8550
8559
|
var t;
|
|
8551
8560
|
return [, , , vS((t = e == null ? void 0 : e[Np("metadata")]) != null ? t : null)];
|
|
8552
|
-
}, 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) => {
|
|
8553
8562
|
for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
|
|
8554
8563
|
t & 1 ? a[s].call(n) : i = a[s].call(n, i);
|
|
8555
8564
|
return i;
|
|
@@ -8664,7 +8673,7 @@ var Rd = 10, Wp, Gp, Hp, Qp, Up, xt, Ml, El, Ll;
|
|
|
8664
8673
|
Up = [Ie], Qp = [Ie], Hp = [Ie], Gp = [Us], Wp = [Us];
|
|
8665
8674
|
var ai = class {
|
|
8666
8675
|
constructor(e) {
|
|
8667
|
-
|
|
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);
|
|
8668
8677
|
const t = Dn.from(e);
|
|
8669
8678
|
this.initial = t, this.current = t, this.previous = t;
|
|
8670
8679
|
}
|
|
@@ -8777,7 +8786,7 @@ var Wt = class {
|
|
|
8777
8786
|
* Does not trigger effects when accessed.
|
|
8778
8787
|
*/
|
|
8779
8788
|
isDisabled() {
|
|
8780
|
-
return
|
|
8789
|
+
return Hr(() => this.disabled);
|
|
8781
8790
|
}
|
|
8782
8791
|
/**
|
|
8783
8792
|
* Configure a plugin instance with new options.
|
|
@@ -8806,7 +8815,7 @@ ts(Pi, Wt);
|
|
|
8806
8815
|
var VS = class extends Wt {
|
|
8807
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;
|
|
8808
8817
|
am = [Ie], sm = [Ie], im = [Ie], rm = [Ie];
|
|
8809
|
-
var
|
|
8818
|
+
var $r = class {
|
|
8810
8819
|
/**
|
|
8811
8820
|
* Creates a new instance of the `Entity` class.
|
|
8812
8821
|
*
|
|
@@ -8862,12 +8871,12 @@ Pl = /* @__PURE__ */ new WeakMap();
|
|
|
8862
8871
|
Ol = /* @__PURE__ */ new WeakMap();
|
|
8863
8872
|
Fl = /* @__PURE__ */ new WeakMap();
|
|
8864
8873
|
Vl = /* @__PURE__ */ new WeakMap();
|
|
8865
|
-
St(ft, 4, "manager", am,
|
|
8866
|
-
St(ft, 4, "id", sm,
|
|
8867
|
-
St(ft, 4, "data", im,
|
|
8868
|
-
St(ft, 4, "disabled", rm,
|
|
8869
|
-
ts(ft,
|
|
8870
|
-
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) {
|
|
8871
8880
|
constructor(t, n) {
|
|
8872
8881
|
var i = t, { modifiers: s, type: a, sensors: o } = i, l = Jp(i, ["modifiers", "type", "sensors"]);
|
|
8873
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;
|
|
@@ -8900,7 +8909,7 @@ St(fn, 4, "type", cm, rs, Nl);
|
|
|
8900
8909
|
St(fn, 4, "status", lm, rs, ql);
|
|
8901
8910
|
St(fn, 2, "isDragSource", om, rs);
|
|
8902
8911
|
ts(fn, rs);
|
|
8903
|
-
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) {
|
|
8904
8913
|
constructor(t, n) {
|
|
8905
8914
|
var i = t, {
|
|
8906
8915
|
accept: s,
|
|
@@ -8938,13 +8947,13 @@ Wl = /* @__PURE__ */ new WeakMap();
|
|
|
8938
8947
|
Gl = /* @__PURE__ */ new WeakMap();
|
|
8939
8948
|
Hl = /* @__PURE__ */ new WeakMap();
|
|
8940
8949
|
Ql = /* @__PURE__ */ new WeakMap();
|
|
8941
|
-
St(qe, 4, "accept", fm,
|
|
8942
|
-
St(qe, 4, "type", mm,
|
|
8943
|
-
St(qe, 4, "collisionDetector", pm,
|
|
8944
|
-
St(qe, 4, "collisionPriority", hm,
|
|
8945
|
-
St(qe, 4, "shape", um,
|
|
8946
|
-
St(qe, 2, "isDropTarget", dm,
|
|
8947
|
-
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);
|
|
8948
8957
|
var Ys = class extends Wt {
|
|
8949
8958
|
constructor(e, t) {
|
|
8950
8959
|
super(e, t), this.manager = e, this.options = t;
|
|
@@ -9050,12 +9059,12 @@ function HS(e) {
|
|
|
9050
9059
|
function Fd(e) {
|
|
9051
9060
|
return "value" in e;
|
|
9052
9061
|
}
|
|
9053
|
-
function
|
|
9062
|
+
function Qr(e) {
|
|
9054
9063
|
return "style" in e && e.style instanceof li(e).CSSStyleDeclaration;
|
|
9055
9064
|
}
|
|
9056
9065
|
function QS(e, t = !1, n) {
|
|
9057
9066
|
const i = HS(e);
|
|
9058
|
-
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)
|
|
9059
9068
|
for (const [s, a] of Object.entries(n))
|
|
9060
9069
|
i.setAttribute(s, a);
|
|
9061
9070
|
return i;
|
|
@@ -9131,13 +9140,13 @@ function US(e, t) {
|
|
|
9131
9140
|
function KS(e) {
|
|
9132
9141
|
return e instanceof li(e).SVGElement;
|
|
9133
9142
|
}
|
|
9134
|
-
function
|
|
9143
|
+
function ir(e) {
|
|
9135
9144
|
return li(e).getComputedStyle(e);
|
|
9136
9145
|
}
|
|
9137
|
-
function YS(e, t =
|
|
9146
|
+
function YS(e, t = ir(e)) {
|
|
9138
9147
|
return t.position === "fixed" || t.position === "sticky";
|
|
9139
9148
|
}
|
|
9140
|
-
function XS(e, t =
|
|
9149
|
+
function XS(e, t = ir(e)) {
|
|
9141
9150
|
const n = /(auto|scroll|overlay)/;
|
|
9142
9151
|
return ["overflow", "overflowX", "overflowY"].find((s) => {
|
|
9143
9152
|
const a = t[s];
|
|
@@ -9158,7 +9167,7 @@ function Xs(e, t = JS) {
|
|
|
9158
9167
|
return KS(o) ? a(o.parentElement) : s;
|
|
9159
9168
|
if (s.has(o))
|
|
9160
9169
|
return s;
|
|
9161
|
-
const l =
|
|
9170
|
+
const l = ir(o);
|
|
9162
9171
|
if (i && o === e || XS(o, l) && s.add(o), YS(o, l)) {
|
|
9163
9172
|
const { scrollingElement: c } = o.ownerDocument;
|
|
9164
9173
|
return c && s.add(c), s;
|
|
@@ -9222,7 +9231,7 @@ function wm(e, t = !1) {
|
|
|
9222
9231
|
var [n] = Xs(e, { limit: 1 });
|
|
9223
9232
|
if (!(n instanceof HTMLElement))
|
|
9224
9233
|
return;
|
|
9225
|
-
const i =
|
|
9234
|
+
const i = ir(n), s = parseInt(
|
|
9226
9235
|
i.getPropertyValue("border-top-width")
|
|
9227
9236
|
), a = parseInt(
|
|
9228
9237
|
i.getPropertyValue("border-left-width")
|
|
@@ -9241,7 +9250,7 @@ var i1 = class {
|
|
|
9241
9250
|
schedule(e) {
|
|
9242
9251
|
this.tasks.add(e), this.animationFrame || (this.animationFrame = requestAnimationFrame(this.flush));
|
|
9243
9252
|
}
|
|
9244
|
-
},
|
|
9253
|
+
}, Ur = new i1();
|
|
9245
9254
|
function s1(e, t, n) {
|
|
9246
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;
|
|
9247
9256
|
return {
|
|
@@ -9259,7 +9268,7 @@ var Sm = class {
|
|
|
9259
9268
|
}
|
|
9260
9269
|
set(e, t = "") {
|
|
9261
9270
|
const { element: n } = this;
|
|
9262
|
-
if (
|
|
9271
|
+
if (Qr(n))
|
|
9263
9272
|
for (const [i, s] of Object.entries(e)) {
|
|
9264
9273
|
const a = `${t}${i}`;
|
|
9265
9274
|
this.initial.has(a) || this.initial.set(a, n.style.getPropertyValue(a)), n.style.setProperty(
|
|
@@ -9270,7 +9279,7 @@ var Sm = class {
|
|
|
9270
9279
|
}
|
|
9271
9280
|
remove(e, t = "") {
|
|
9272
9281
|
const { element: n } = this;
|
|
9273
|
-
if (
|
|
9282
|
+
if (Qr(n))
|
|
9274
9283
|
for (const i of e) {
|
|
9275
9284
|
const s = `${t}${i}`;
|
|
9276
9285
|
n.style.removeProperty(s);
|
|
@@ -9278,7 +9287,7 @@ var Sm = class {
|
|
|
9278
9287
|
}
|
|
9279
9288
|
reset() {
|
|
9280
9289
|
const { element: e } = this;
|
|
9281
|
-
if (
|
|
9290
|
+
if (Qr(e)) {
|
|
9282
9291
|
for (const [t, n] of this.initial)
|
|
9283
9292
|
e.style.setProperty(t, n);
|
|
9284
9293
|
e.getAttribute("style") === "" && e.removeAttribute("style");
|
|
@@ -9292,7 +9301,7 @@ function km({
|
|
|
9292
9301
|
onReady: i,
|
|
9293
9302
|
onFinish: s
|
|
9294
9303
|
}) {
|
|
9295
|
-
const a = new Sm(e), { transitionProperty: o } =
|
|
9304
|
+
const a = new Sm(e), { transitionProperty: o } = ir(e), l = o.split(", ");
|
|
9296
9305
|
a.set({
|
|
9297
9306
|
"transition-property": l.length ? l.filter(
|
|
9298
9307
|
(c) => !c.includes("transform") && !c.includes("translate")
|
|
@@ -9330,7 +9339,7 @@ function a1(e) {
|
|
|
9330
9339
|
return s;
|
|
9331
9340
|
}
|
|
9332
9341
|
}
|
|
9333
|
-
const { translate: n } =
|
|
9342
|
+
const { translate: n } = ir(e);
|
|
9334
9343
|
if (n) {
|
|
9335
9344
|
const i = Js(n);
|
|
9336
9345
|
if (i)
|
|
@@ -9396,7 +9405,7 @@ var hn = class extends zS {
|
|
|
9396
9405
|
constructor(e, t = !1) {
|
|
9397
9406
|
var n, i;
|
|
9398
9407
|
let { top: s, left: a, right: o, bottom: l, width: c, height: d } = gm(e);
|
|
9399
|
-
const u =
|
|
9408
|
+
const u = ir(e), h = Im(u), p = {
|
|
9400
9409
|
x: (n = h == null ? void 0 : h.scaleX) != null ? n : 1,
|
|
9401
9410
|
y: (i = h == null ? void 0 : h.scaleY) != null ? i : 1
|
|
9402
9411
|
}, m = c1(e);
|
|
@@ -9451,15 +9460,15 @@ var d1 = Object.create, Tm = Object.defineProperty, u1 = Object.defineProperties
|
|
|
9451
9460
|
for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
|
|
9452
9461
|
t & 1 ? a[s].call(n) : i = a[s].call(n, i);
|
|
9453
9462
|
return i;
|
|
9454
|
-
},
|
|
9463
|
+
}, sr = (e, t, n, i, s, a) => {
|
|
9455
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]() {
|
|
9456
9465
|
return gn(this, a);
|
|
9457
9466
|
}, set [n]($) {
|
|
9458
|
-
return
|
|
9467
|
+
return Kr(this, a, $);
|
|
9459
9468
|
} }, n)), L = i.length - 1; L >= 0; L--)
|
|
9460
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));
|
|
9461
9470
|
return z && Tm(s, n, z), s;
|
|
9462
|
-
}, 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 = {
|
|
9463
9472
|
role: "button",
|
|
9464
9473
|
roleDescription: "draggable",
|
|
9465
9474
|
tabIndex: 0
|
|
@@ -9569,9 +9578,9 @@ var w1 = class extends Wt {
|
|
|
9569
9578
|
const { element: f, feedback: y } = p;
|
|
9570
9579
|
if (!f || y === "none")
|
|
9571
9580
|
return;
|
|
9572
|
-
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, {
|
|
9573
9582
|
[Pm]: ""
|
|
9574
|
-
}) : null, it =
|
|
9583
|
+
}) : null, it = Hr(
|
|
9575
9584
|
() => Zs(e.dragOperation.activatorEvent)
|
|
9576
9585
|
);
|
|
9577
9586
|
if (ye !== "none") {
|
|
@@ -9582,7 +9591,7 @@ var w1 = class extends Wt {
|
|
|
9582
9591
|
x: $,
|
|
9583
9592
|
y: L
|
|
9584
9593
|
}), !a) {
|
|
9585
|
-
const ve =
|
|
9594
|
+
const ve = Hr(() => h.current);
|
|
9586
9595
|
a = {
|
|
9587
9596
|
x: (ve.x - $) / k,
|
|
9588
9597
|
y: (ve.y - L) / z
|
|
@@ -9639,13 +9648,13 @@ var w1 = class extends Wt {
|
|
|
9639
9648
|
}
|
|
9640
9649
|
e.dragOperation.shape = new hn(f);
|
|
9641
9650
|
});
|
|
9642
|
-
Ye && ge && (Ye.placeholder = ge,
|
|
9643
|
-
let
|
|
9644
|
-
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(() => {
|
|
9645
9654
|
for (const ve of Array.from(f.attributes))
|
|
9646
9655
|
if (!(ve.name.startsWith("aria-") || C1.includes(ve.name))) {
|
|
9647
9656
|
if (ve.name === "style") {
|
|
9648
|
-
if (
|
|
9657
|
+
if (Qr(f) && Qr(ge)) {
|
|
9649
9658
|
ge.setAttribute("style", Me ? "" : "opacity: 0;"), ge.style.setProperty("transition", "none");
|
|
9650
9659
|
for (const we of Object.values(f.style))
|
|
9651
9660
|
we.startsWith(ot) || I1.includes(we) || ge.style.setProperty(
|
|
@@ -9658,16 +9667,16 @@ var w1 = class extends Wt {
|
|
|
9658
9667
|
ge.setAttribute(ve.name, ve.value);
|
|
9659
9668
|
}
|
|
9660
9669
|
Me && (ge.innerHTML = f.innerHTML);
|
|
9661
|
-
}),
|
|
9670
|
+
}), cr.observe(f, {
|
|
9662
9671
|
attributes: !0,
|
|
9663
9672
|
subtree: !0
|
|
9664
|
-
}),
|
|
9673
|
+
}), dr = new MutationObserver((ve) => {
|
|
9665
9674
|
for (const we of ve)
|
|
9666
9675
|
if (Array.from(we.addedNodes).includes(f)) {
|
|
9667
9676
|
f.insertAdjacentElement("afterend", ge), no(f);
|
|
9668
9677
|
return;
|
|
9669
9678
|
}
|
|
9670
|
-
}),
|
|
9679
|
+
}), dr.observe(f.ownerDocument.body, {
|
|
9671
9680
|
childList: !0,
|
|
9672
9681
|
subtree: !0
|
|
9673
9682
|
}));
|
|
@@ -9700,13 +9709,13 @@ var w1 = class extends Wt {
|
|
|
9700
9709
|
const we = e.registry.draggables.get(fi), Ae = (ve = we == null ? void 0 : we.handle) != null ? ve : we == null ? void 0 : we.element;
|
|
9701
9710
|
Ae instanceof HTMLElement && Ae.focus();
|
|
9702
9711
|
};
|
|
9703
|
-
let
|
|
9704
|
-
|
|
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;
|
|
9705
9714
|
};
|
|
9706
9715
|
const Oa = bt(function() {
|
|
9707
9716
|
if (u.status.dropped) {
|
|
9708
|
-
const we =
|
|
9709
|
-
|
|
9717
|
+
const we = Ar;
|
|
9718
|
+
Ar = void 0, p.status = "dropping";
|
|
9710
9719
|
const Ae = s;
|
|
9711
9720
|
if (!Ae) {
|
|
9712
9721
|
we == null || we();
|
|
@@ -9747,7 +9756,7 @@ var w1 = class extends Wt {
|
|
|
9747
9756
|
});
|
|
9748
9757
|
}
|
|
9749
9758
|
});
|
|
9750
|
-
return () =>
|
|
9759
|
+
return () => Ar == null ? void 0 : Ar();
|
|
9751
9760
|
});
|
|
9752
9761
|
this.destroy = () => {
|
|
9753
9762
|
l(), c(), t == null || t.remove();
|
|
@@ -9769,8 +9778,8 @@ var Oi = class {
|
|
|
9769
9778
|
Hn = wa(null);
|
|
9770
9779
|
Kl = /* @__PURE__ */ new WeakMap();
|
|
9771
9780
|
Yl = /* @__PURE__ */ new WeakMap();
|
|
9772
|
-
|
|
9773
|
-
|
|
9781
|
+
sr(Hn, 4, Nm, Vm, Oi, Kl);
|
|
9782
|
+
sr(Hn, 4, Fm, Om, Oi, Yl);
|
|
9774
9783
|
Sa(Hn, Oi);
|
|
9775
9784
|
var D1 = [Ot.Forward, Ot.Reverse], Bd = class {
|
|
9776
9785
|
constructor() {
|
|
@@ -9826,7 +9835,7 @@ var qm, Ro, Fi, Xl, Bn, Po, ka = class extends (Ro = VS, qm = [Ie], Ro) {
|
|
|
9826
9835
|
return !1;
|
|
9827
9836
|
const l = this.getScrollableElements();
|
|
9828
9837
|
if (!l)
|
|
9829
|
-
return
|
|
9838
|
+
return Kr(this, Bn, void 0), !1;
|
|
9830
9839
|
const { position: c } = this.manager.dragOperation, d = c == null ? void 0 : c.current;
|
|
9831
9840
|
if (d) {
|
|
9832
9841
|
const { by: u } = a ?? {}, h = u ? {
|
|
@@ -9852,19 +9861,19 @@ var qm, Ro, Fi, Xl, Bn, Po, ka = class extends (Ro = VS, qm = [Ie], Ro) {
|
|
|
9852
9861
|
const O = (o = gn(this, Bn)) == null ? void 0 : o.by;
|
|
9853
9862
|
if (this.autoScrolling && O && (O.x && !L || O.y && !$))
|
|
9854
9863
|
continue;
|
|
9855
|
-
return
|
|
9864
|
+
return Kr(this, Bn, {
|
|
9856
9865
|
element: m,
|
|
9857
9866
|
by: {
|
|
9858
9867
|
x: L,
|
|
9859
9868
|
y: $
|
|
9860
9869
|
}
|
|
9861
|
-
}),
|
|
9870
|
+
}), Ur.schedule(gn(this, Po)), !0;
|
|
9862
9871
|
}
|
|
9863
9872
|
}
|
|
9864
9873
|
}
|
|
9865
9874
|
}
|
|
9866
9875
|
}
|
|
9867
|
-
return
|
|
9876
|
+
return Kr(this, Bn, void 0), !1;
|
|
9868
9877
|
};
|
|
9869
9878
|
let t = null, n = null;
|
|
9870
9879
|
const i = Qs(() => {
|
|
@@ -9902,7 +9911,7 @@ Fi = wa(Ro);
|
|
|
9902
9911
|
Xl = /* @__PURE__ */ new WeakMap();
|
|
9903
9912
|
Bn = /* @__PURE__ */ new WeakMap();
|
|
9904
9913
|
Po = /* @__PURE__ */ new WeakMap();
|
|
9905
|
-
|
|
9914
|
+
sr(Fi, 4, "autoScrolling", qm, ka, Xl);
|
|
9906
9915
|
Sa(Fi, ka);
|
|
9907
9916
|
function Gd(e) {
|
|
9908
9917
|
return e > 0 ? Ot.Forward : e < 0 ? Ot.Reverse : Ot.Idle;
|
|
@@ -10009,13 +10018,13 @@ var Qd = {
|
|
|
10009
10018
|
}
|
|
10010
10019
|
handleKeyDown(e, t, n) {
|
|
10011
10020
|
const { keyboardCodes: i = Qd } = n ?? {};
|
|
10012
|
-
if (
|
|
10021
|
+
if (Or(e, [...i.end, ...i.cancel])) {
|
|
10013
10022
|
e.preventDefault();
|
|
10014
|
-
const s =
|
|
10023
|
+
const s = Or(e, i.cancel);
|
|
10015
10024
|
this.handleEnd(s);
|
|
10016
10025
|
return;
|
|
10017
10026
|
}
|
|
10018
|
-
|
|
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);
|
|
10019
10028
|
}
|
|
10020
10029
|
handleEnd(e) {
|
|
10021
10030
|
this.manager.actions.stop({
|
|
@@ -10062,12 +10071,12 @@ var Qd = {
|
|
|
10062
10071
|
}
|
|
10063
10072
|
};
|
|
10064
10073
|
Ci = /* @__PURE__ */ new WeakMap();
|
|
10065
|
-
function
|
|
10074
|
+
function Or(e, t) {
|
|
10066
10075
|
return t.includes(e.code);
|
|
10067
10076
|
}
|
|
10068
|
-
var
|
|
10077
|
+
var qr, Oo = class extends Ys {
|
|
10069
10078
|
constructor(t, n) {
|
|
10070
|
-
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);
|
|
10071
10080
|
}
|
|
10072
10081
|
bind(t, n = this.options) {
|
|
10073
10082
|
return bt(() => {
|
|
@@ -10099,8 +10108,8 @@ var Nr, Oo = class extends Ys {
|
|
|
10099
10108
|
() => this.handleStart(n, t),
|
|
10100
10109
|
h.value
|
|
10101
10110
|
);
|
|
10102
|
-
|
|
10103
|
-
clearTimeout(p),
|
|
10111
|
+
Kr(this, qr, () => {
|
|
10112
|
+
clearTimeout(p), Kr(this, qr, void 0);
|
|
10104
10113
|
});
|
|
10105
10114
|
}
|
|
10106
10115
|
}
|
|
@@ -10140,7 +10149,7 @@ var Nr, Oo = class extends Ys {
|
|
|
10140
10149
|
}
|
|
10141
10150
|
]), u = () => {
|
|
10142
10151
|
var h;
|
|
10143
|
-
setTimeout(d), (h = gn(this,
|
|
10152
|
+
setTimeout(d), (h = gn(this, qr)) == null || h.call(this), this.initialCoordinates = void 0, this.cleanup.delete(u);
|
|
10144
10153
|
};
|
|
10145
10154
|
this.cleanup.add(u);
|
|
10146
10155
|
}
|
|
@@ -10183,7 +10192,7 @@ var Nr, Oo = class extends Ys {
|
|
|
10183
10192
|
handleStart(t, n) {
|
|
10184
10193
|
var i;
|
|
10185
10194
|
const { manager: s, initialCoordinates: a } = this;
|
|
10186
|
-
(i = gn(this,
|
|
10195
|
+
(i = gn(this, qr)) == null || i.call(this), !(!a || s.dragOperation.status.initialized) && (n.defaultPrevented || (n.preventDefault(), Ln(() => {
|
|
10187
10196
|
s.actions.setDragSource(t.id), s.actions.start({ coordinates: a, event: n });
|
|
10188
10197
|
})));
|
|
10189
10198
|
}
|
|
@@ -10195,7 +10204,7 @@ var Nr, Oo = class extends Ys {
|
|
|
10195
10204
|
this.listeners.clear();
|
|
10196
10205
|
}
|
|
10197
10206
|
};
|
|
10198
|
-
|
|
10207
|
+
qr = /* @__PURE__ */ new WeakMap();
|
|
10199
10208
|
Oo.configure = FS(Oo);
|
|
10200
10209
|
var A1 = Oo;
|
|
10201
10210
|
function io(e) {
|
|
@@ -10263,11 +10272,11 @@ Kt = wa(Fo);
|
|
|
10263
10272
|
Jl = /* @__PURE__ */ new WeakMap();
|
|
10264
10273
|
Zl = /* @__PURE__ */ new WeakMap();
|
|
10265
10274
|
ec = /* @__PURE__ */ new WeakMap();
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10275
|
+
sr(Kt, 4, "handle", Hm, as, Jl);
|
|
10276
|
+
sr(Kt, 4, "element", Gm, as, Zl);
|
|
10277
|
+
sr(Kt, 4, "feedback", Wm, as, ec);
|
|
10269
10278
|
Sa(Kt, as);
|
|
10270
|
-
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) {
|
|
10271
10280
|
constructor(e, t) {
|
|
10272
10281
|
var n = e, { element: i, effects: s = () => [] } = n, a = Lm(n, ["element", "effects"]), o;
|
|
10273
10282
|
const { collisionDetector: l = xm } = a;
|
|
@@ -10292,9 +10301,9 @@ var Qm, Um, Vo, Qn, tc, nc, Ca = class extends (Vo = nr, Um = [Ie], Qm = [Ie], V
|
|
|
10292
10301
|
rootMargin: "40%"
|
|
10293
10302
|
}
|
|
10294
10303
|
), y = new MutationObserver(
|
|
10295
|
-
() =>
|
|
10304
|
+
() => Ur.schedule(this.refreshShape)
|
|
10296
10305
|
), T = new ResizeObserver(
|
|
10297
|
-
() =>
|
|
10306
|
+
() => Ur.schedule(this.refreshShape)
|
|
10298
10307
|
);
|
|
10299
10308
|
return c.parentElement && y.observe(c.parentElement, {
|
|
10300
10309
|
childList: !0
|
|
@@ -10307,11 +10316,11 @@ var Qm, Um, Vo, Qn, tc, nc, Ca = class extends (Vo = nr, Um = [Ie], Qm = [Ie], V
|
|
|
10307
10316
|
const { manager: c } = this;
|
|
10308
10317
|
if (!c)
|
|
10309
10318
|
return;
|
|
10310
|
-
const { dragOperation: d } = c, { status: u } = d, h =
|
|
10319
|
+
const { dragOperation: d } = c, { status: u } = d, h = Hr(() => d.source);
|
|
10311
10320
|
if (u.initialized) {
|
|
10312
10321
|
if ((h == null ? void 0 : h.type) != null && !this.accepts(h))
|
|
10313
10322
|
return;
|
|
10314
|
-
|
|
10323
|
+
Ur.schedule(this.refreshShape);
|
|
10315
10324
|
}
|
|
10316
10325
|
},
|
|
10317
10326
|
() => {
|
|
@@ -10348,8 +10357,8 @@ var Qm, Um, Vo, Qn, tc, nc, Ca = class extends (Vo = nr, Um = [Ie], Qm = [Ie], V
|
|
|
10348
10357
|
Qn = wa(Vo);
|
|
10349
10358
|
tc = /* @__PURE__ */ new WeakMap();
|
|
10350
10359
|
nc = /* @__PURE__ */ new WeakMap();
|
|
10351
|
-
|
|
10352
|
-
|
|
10360
|
+
sr(Qn, 4, "visible", Um, Ca, tc);
|
|
10361
|
+
sr(Qn, 4, "placeholder", Qm, Ca, nc);
|
|
10353
10362
|
Sa(Qn, Ca);
|
|
10354
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) => {
|
|
10355
10364
|
throw TypeError(e);
|
|
@@ -10384,7 +10393,7 @@ var O1 = Object.create, Km = Object.defineProperty, F1 = Object.defineProperties
|
|
|
10384
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));
|
|
10385
10394
|
return z && Km(s, n, z), s;
|
|
10386
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);
|
|
10387
|
-
function
|
|
10396
|
+
function Yr(e) {
|
|
10388
10397
|
return e instanceof sc || e instanceof sf;
|
|
10389
10398
|
}
|
|
10390
10399
|
var vs = 10, X1 = class extends Wt {
|
|
@@ -10392,7 +10401,7 @@ var vs = 10, X1 = class extends Wt {
|
|
|
10392
10401
|
super(e);
|
|
10393
10402
|
const t = bt(() => {
|
|
10394
10403
|
const { dragOperation: i } = e;
|
|
10395
|
-
if (Zs(i.activatorEvent) &&
|
|
10404
|
+
if (Zs(i.activatorEvent) && Yr(i.source) && i.status.initialized) {
|
|
10396
10405
|
const s = e.registry.plugins.get(ka);
|
|
10397
10406
|
if (s)
|
|
10398
10407
|
return s.disable(), () => s.enable();
|
|
@@ -10404,7 +10413,7 @@ var vs = 10, X1 = class extends Wt {
|
|
|
10404
10413
|
if (this.disabled || i.defaultPrevented)
|
|
10405
10414
|
return;
|
|
10406
10415
|
const { dragOperation: a } = s;
|
|
10407
|
-
if (!Zs(a.activatorEvent) || !
|
|
10416
|
+
if (!Zs(a.activatorEvent) || !Yr(a.source) || !a.shape)
|
|
10408
10417
|
return;
|
|
10409
10418
|
const { actions: o, collisionObserver: l, registry: c } = s, { by: d } = i;
|
|
10410
10419
|
if (!d)
|
|
@@ -10412,7 +10421,7 @@ var vs = 10, X1 = class extends Wt {
|
|
|
10412
10421
|
const u = J1(d), { source: h } = a, { center: p } = a.shape.current, m = [];
|
|
10413
10422
|
for (const k of c.droppables) {
|
|
10414
10423
|
const { shape: z, id: L } = k;
|
|
10415
|
-
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)))
|
|
10416
10425
|
switch (u) {
|
|
10417
10426
|
case "down":
|
|
10418
10427
|
p.y + vs < z.center.y && m.push(k);
|
|
@@ -10444,7 +10453,7 @@ var vs = 10, X1 = class extends Wt {
|
|
|
10444
10453
|
if (!(z != null && z.element))
|
|
10445
10454
|
return;
|
|
10446
10455
|
const { element: L } = z;
|
|
10447
|
-
wm(L),
|
|
10456
|
+
wm(L), Ur.schedule(() => {
|
|
10448
10457
|
const $ = z.refreshShape();
|
|
10449
10458
|
$ && (o.move({
|
|
10450
10459
|
to: {
|
|
@@ -10505,7 +10514,7 @@ var ek = class extends Wt {
|
|
|
10505
10514
|
if (this.disabled || i.defaultPrevented)
|
|
10506
10515
|
return;
|
|
10507
10516
|
const { dragOperation: a } = s, { source: o, target: l } = a;
|
|
10508
|
-
if (!
|
|
10517
|
+
if (!Yr(o) || !Yr(l) || o.sortable === l.sortable || o.sortable.group !== l.sortable.group)
|
|
10509
10518
|
return;
|
|
10510
10519
|
const c = t(o.sortable.group);
|
|
10511
10520
|
s.renderer.rendering.then(() => {
|
|
@@ -10531,7 +10540,7 @@ var ek = class extends Wt {
|
|
|
10531
10540
|
if (!i.canceled)
|
|
10532
10541
|
return;
|
|
10533
10542
|
const { dragOperation: a } = s, { source: o } = a;
|
|
10534
|
-
|
|
10543
|
+
Yr(o) && o.sortable.initialIndex !== o.sortable.index && queueMicrotask(() => {
|
|
10535
10544
|
const l = t(o.sortable.group);
|
|
10536
10545
|
s.renderer.rendering.then(() => {
|
|
10537
10546
|
var c;
|
|
@@ -10627,12 +10636,12 @@ var Ia = class {
|
|
|
10627
10636
|
};
|
|
10628
10637
|
}
|
|
10629
10638
|
animate() {
|
|
10630
|
-
|
|
10639
|
+
Hr(() => {
|
|
10631
10640
|
const { manager: e, transition: t } = this, { shape: n } = this.droppable;
|
|
10632
10641
|
if (!e)
|
|
10633
10642
|
return;
|
|
10634
10643
|
const { idle: i } = e.dragOperation.status;
|
|
10635
|
-
!n || !t || i && !t.idle ||
|
|
10644
|
+
!n || !t || i && !t.idle || Ur.schedule(() => {
|
|
10636
10645
|
const { element: s } = this.droppable;
|
|
10637
10646
|
if (!s)
|
|
10638
10647
|
return;
|
|
@@ -10787,7 +10796,7 @@ var sf = class extends as {
|
|
|
10787
10796
|
}
|
|
10788
10797
|
};
|
|
10789
10798
|
function af(e) {
|
|
10790
|
-
const t =
|
|
10799
|
+
const t = Yn();
|
|
10791
10800
|
return t.current || (t.current = e()), t.current;
|
|
10792
10801
|
}
|
|
10793
10802
|
var nk = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", of = nk ? xg : W;
|
|
@@ -10814,7 +10823,7 @@ function ik(e, t) {
|
|
|
10814
10823
|
e();
|
|
10815
10824
|
}
|
|
10816
10825
|
function st(e, t, n = W, i = Object.is) {
|
|
10817
|
-
const s =
|
|
10826
|
+
const s = Yn(e);
|
|
10818
10827
|
n(() => {
|
|
10819
10828
|
const a = s.current;
|
|
10820
10829
|
i(e, a) || (s.current = e, t(e, a));
|
|
@@ -10941,7 +10950,7 @@ const hk = ({
|
|
|
10941
10950
|
};
|
|
10942
10951
|
return /* @__PURE__ */ r.jsxs(_.List, { children: [
|
|
10943
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)) }),
|
|
10944
|
-
/* @__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" }) }) }) })
|
|
10945
10954
|
] });
|
|
10946
10955
|
}, mk = {
|
|
10947
10956
|
tab: {
|
|
@@ -11033,7 +11042,7 @@ const hk = ({
|
|
|
11033
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) }) }) })
|
|
11034
11043
|
] })
|
|
11035
11044
|
] });
|
|
11036
|
-
}),
|
|
11045
|
+
}), ar = re(({
|
|
11037
11046
|
label: e,
|
|
11038
11047
|
value: t,
|
|
11039
11048
|
onChange: n,
|
|
@@ -11072,7 +11081,7 @@ const hk = ({
|
|
|
11072
11081
|
}, checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }) }),
|
|
11073
11082
|
/* @__PURE__ */ r.jsx(b, { children: /* @__PURE__ */ r.jsx(g, { name: "legend", control: e, render: ({
|
|
11074
11083
|
field: a
|
|
11075
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
11084
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
11076
11085
|
flex: 1
|
|
11077
11086
|
}, value: a.value.orient, onChange: (o) => {
|
|
11078
11087
|
s(o, a.onChange);
|
|
@@ -11258,7 +11267,7 @@ function wk({
|
|
|
11258
11267
|
t
|
|
11259
11268
|
} = v(), [n, {
|
|
11260
11269
|
toggle: i
|
|
11261
|
-
}] =
|
|
11270
|
+
}] = tr(!1);
|
|
11262
11271
|
return /* @__PURE__ */ r.jsxs(A, { children: [
|
|
11263
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") }),
|
|
11264
11273
|
/* @__PURE__ */ r.jsx(qi, { in: n, children: n && /* @__PURE__ */ r.jsxs(Ge, { highlightOnHover: !0, sx: {
|
|
@@ -11435,7 +11444,7 @@ function Ck({
|
|
|
11435
11444
|
] }) });
|
|
11436
11445
|
}
|
|
11437
11446
|
function Ik(e) {
|
|
11438
|
-
return
|
|
11447
|
+
return Sr(e, "variables");
|
|
11439
11448
|
}
|
|
11440
11449
|
function Tk(e) {
|
|
11441
11450
|
const {
|
|
@@ -11737,7 +11746,7 @@ const ac = {
|
|
|
11737
11746
|
n.runInteraction(y.id, {});
|
|
11738
11747
|
});
|
|
11739
11748
|
};
|
|
11740
|
-
return /* @__PURE__ */ r.jsx(
|
|
11749
|
+
return /* @__PURE__ */ r.jsx(er, { sx: {
|
|
11741
11750
|
width: h,
|
|
11742
11751
|
height: p,
|
|
11743
11752
|
justifyContent: Vk[c],
|
|
@@ -11827,7 +11836,7 @@ function Gk({
|
|
|
11827
11836
|
field: p
|
|
11828
11837
|
}) => /* @__PURE__ */ r.jsx(E, { label: "Content Template", description: "Filter values & context entries are supported", ...p, required: !0 }) }),
|
|
11829
11838
|
/* @__PURE__ */ r.jsx(P, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
11830
|
-
/* @__PURE__ */ r.jsxs(
|
|
11839
|
+
/* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
11831
11840
|
/* @__PURE__ */ r.jsx(
|
|
11832
11841
|
g,
|
|
11833
11842
|
{
|
|
@@ -11842,7 +11851,7 @@ function Gk({
|
|
|
11842
11851
|
field: p
|
|
11843
11852
|
}) => /* @__PURE__ */ r.jsx(Bk, { label: "Theme", ...p }) })
|
|
11844
11853
|
] }),
|
|
11845
|
-
/* @__PURE__ */ r.jsxs(
|
|
11854
|
+
/* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
11846
11855
|
/* @__PURE__ */ r.jsx(g, { control: a, name: "size", render: ({
|
|
11847
11856
|
field: p
|
|
11848
11857
|
}) => /* @__PURE__ */ r.jsx(qo, { label: "Size", ...p }) }),
|
|
@@ -11850,7 +11859,7 @@ function Gk({
|
|
|
11850
11859
|
field: p
|
|
11851
11860
|
}) => /* @__PURE__ */ r.jsx(te, { label: "Compact", checked: p.value, onChange: (m) => p.onChange(m.currentTarget.checked), mt: 26 }) })
|
|
11852
11861
|
] }),
|
|
11853
|
-
/* @__PURE__ */ r.jsxs(
|
|
11862
|
+
/* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
11854
11863
|
/* @__PURE__ */ r.jsx(g, { control: a, name: "horizontal_align", render: ({
|
|
11855
11864
|
field: p
|
|
11856
11865
|
}) => /* @__PURE__ */ r.jsx(Cl, { ...p }) }),
|
|
@@ -11997,7 +12006,7 @@ const lc = {
|
|
|
11997
12006
|
}],
|
|
11998
12007
|
reference_lines: [],
|
|
11999
12008
|
reference_areas: [],
|
|
12000
|
-
dataZoom:
|
|
12009
|
+
dataZoom: Er
|
|
12001
12010
|
};
|
|
12002
12011
|
function Zk(e) {
|
|
12003
12012
|
const t = e.y_axes.some((s) => !!s.name);
|
|
@@ -12247,7 +12256,7 @@ function hC({
|
|
|
12247
12256
|
variables: s
|
|
12248
12257
|
}, {
|
|
12249
12258
|
lodash: C,
|
|
12250
|
-
interpolate:
|
|
12259
|
+
interpolate: zr
|
|
12251
12260
|
});
|
|
12252
12261
|
} catch (p) {
|
|
12253
12262
|
return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${p.message}`), 10;
|
|
@@ -12546,7 +12555,7 @@ function kC({
|
|
|
12546
12555
|
interactionManager: s,
|
|
12547
12556
|
variables: a
|
|
12548
12557
|
}) {
|
|
12549
|
-
const o =
|
|
12558
|
+
const o = Lr(t, e.x_axis_data_key), l = Et(s.triggerManager, oc.id), c = Ee((m) => {
|
|
12550
12559
|
const f = C.get(o, m.name, {
|
|
12551
12560
|
error: "rowData is not found"
|
|
12552
12561
|
});
|
|
@@ -12764,7 +12773,7 @@ function zC({
|
|
|
12764
12773
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
12765
12774
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
|
|
12766
12775
|
field: l
|
|
12767
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12776
|
+
}) => /* @__PURE__ */ r.jsx(ar, { label: a("chart.orientation.label"), sx: {
|
|
12768
12777
|
flex: 1
|
|
12769
12778
|
}, ...l }) }),
|
|
12770
12779
|
o === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: a("chart.reference_line.orientation.vertical_hint") })
|
|
@@ -13052,7 +13061,7 @@ const LC = ({
|
|
|
13052
13061
|
/* @__PURE__ */ r.jsx(P, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
|
|
13053
13062
|
/* @__PURE__ */ r.jsx(LC, { value: o.func_content, onChange: u }),
|
|
13054
13063
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
13055
|
-
/* @__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") }),
|
|
13056
13065
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
13057
13066
|
/* @__PURE__ */ r.jsx(M, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
13058
13067
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
@@ -13095,7 +13104,7 @@ const LC = ({
|
|
|
13095
13104
|
...uc[c]
|
|
13096
13105
|
});
|
|
13097
13106
|
};
|
|
13098
|
-
return /* @__PURE__ */ r.jsxs(
|
|
13107
|
+
return /* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
13099
13108
|
/* @__PURE__ */ r.jsx(N, { ref: i, label: e ?? s("chart.symbol_size.label"), data: o, value: t.type, onChange: l, sx: {
|
|
13100
13109
|
flexGrow: 1
|
|
13101
13110
|
} }),
|
|
@@ -13527,7 +13536,7 @@ function qC({
|
|
|
13527
13536
|
t: n
|
|
13528
13537
|
} = v(), i = () => ({
|
|
13529
13538
|
type: "bar",
|
|
13530
|
-
name:
|
|
13539
|
+
name: kr(),
|
|
13531
13540
|
showSymbol: !1,
|
|
13532
13541
|
symbolSize: uc.static,
|
|
13533
13542
|
y_axis_data_key: "value",
|
|
@@ -13646,7 +13655,7 @@ const QC = () => {
|
|
|
13646
13655
|
/* @__PURE__ */ r.jsxs(Pe, { width: 340, shadow: "md", position: "top", children: [
|
|
13647
13656
|
/* @__PURE__ */ r.jsx(Pe.Target, { children: /* @__PURE__ */ r.jsx(J, { size: "xs", sx: {
|
|
13648
13657
|
transform: "none !important"
|
|
13649
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
13658
|
+
}, children: /* @__PURE__ */ r.jsx(Dr, {}) }) }),
|
|
13650
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: [
|
|
13651
13660
|
"Click",
|
|
13652
13661
|
/* @__PURE__ */ r.jsx(As, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 3, children: "here" }),
|
|
@@ -13714,7 +13723,7 @@ function UC({
|
|
|
13714
13723
|
}) => /* @__PURE__ */ r.jsx(ln, { ...a }) })
|
|
13715
13724
|
] });
|
|
13716
13725
|
}
|
|
13717
|
-
const
|
|
13726
|
+
const or = re(({
|
|
13718
13727
|
label: e,
|
|
13719
13728
|
value: t,
|
|
13720
13729
|
onChange: n,
|
|
@@ -13772,7 +13781,7 @@ function KC({
|
|
|
13772
13781
|
}, ...i }) }),
|
|
13773
13782
|
/* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
13774
13783
|
field: i
|
|
13775
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
13784
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
13776
13785
|
flex: 1
|
|
13777
13786
|
}, ...i }) })
|
|
13778
13787
|
] }),
|
|
@@ -13893,8 +13902,8 @@ function XC({
|
|
|
13893
13902
|
] }) });
|
|
13894
13903
|
}
|
|
13895
13904
|
function JC(e) {
|
|
13896
|
-
const t = Ze(
|
|
13897
|
-
return t.stats =
|
|
13905
|
+
const t = Ze(Sr(e, "variables"));
|
|
13906
|
+
return t.stats = Sr(t.stats, "variables"), t;
|
|
13898
13907
|
}
|
|
13899
13908
|
function ZC(e) {
|
|
13900
13909
|
const {
|
|
@@ -13914,7 +13923,7 @@ function ZC(e) {
|
|
|
13914
13923
|
}
|
|
13915
13924
|
function eI(e) {
|
|
13916
13925
|
const {
|
|
13917
|
-
dataZoom: t =
|
|
13926
|
+
dataZoom: t = Er,
|
|
13918
13927
|
...n
|
|
13919
13928
|
} = e;
|
|
13920
13929
|
return {
|
|
@@ -14639,7 +14648,7 @@ const EI = ({
|
|
|
14639
14648
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
14640
14649
|
/* @__PURE__ */ r.jsx(g, { name: `series.${n}.orient`, control: t, render: ({
|
|
14641
14650
|
field: h
|
|
14642
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
14651
|
+
}) => /* @__PURE__ */ r.jsx(ar, { ...h }) }),
|
|
14643
14652
|
/* @__PURE__ */ r.jsx(
|
|
14644
14653
|
g,
|
|
14645
14654
|
{
|
|
@@ -14654,7 +14663,7 @@ const EI = ({
|
|
|
14654
14663
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
14655
14664
|
/* @__PURE__ */ r.jsx(g, { name: `series.${n}.funnelAlign`, control: t, render: ({
|
|
14656
14665
|
field: h
|
|
14657
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
14666
|
+
}) => /* @__PURE__ */ r.jsx(or, { label: s("viz.funnel_chart.align"), disabled: c === "horizontal", ...h }) }),
|
|
14658
14667
|
/* @__PURE__ */ r.jsx(
|
|
14659
14668
|
g,
|
|
14660
14669
|
{
|
|
@@ -14705,7 +14714,7 @@ const EI = ({
|
|
|
14705
14714
|
}, children: [
|
|
14706
14715
|
/* @__PURE__ */ r.jsxs(_.List, { children: [
|
|
14707
14716
|
o.map((u, h) => /* @__PURE__ */ r.jsx(_.Tab, { value: u.id, children: u.name }, u.id)),
|
|
14708
|
-
/* @__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" }) }) }) })
|
|
14709
14718
|
] }),
|
|
14710
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))
|
|
14711
14720
|
] });
|
|
@@ -15180,7 +15189,7 @@ const XI = ({
|
|
|
15180
15189
|
/* @__PURE__ */ r.jsx(P, { mt: 10, mb: -10, label: n("chart.number_or_dynamic_value.dynamic.guide"), labelPosition: "center", variant: "dashed" }),
|
|
15181
15190
|
/* @__PURE__ */ r.jsx(XI, { value: o.value, onChange: u }),
|
|
15182
15191
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
15183
|
-
/* @__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") }),
|
|
15184
15193
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
15185
15194
|
/* @__PURE__ */ r.jsx(M, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
15186
15195
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
@@ -15223,7 +15232,7 @@ const XI = ({
|
|
|
15223
15232
|
label: s("chart.number_or_dynamic_value.type.dynamic"),
|
|
15224
15233
|
value: "dynamic"
|
|
15225
15234
|
}], [a.language]);
|
|
15226
|
-
return /* @__PURE__ */ r.jsxs(
|
|
15235
|
+
return /* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
15227
15236
|
/* @__PURE__ */ r.jsx(N, { ref: i, label: e, data: l, value: t.type, onChange: o, sx: {
|
|
15228
15237
|
flexGrow: 1
|
|
15229
15238
|
} }),
|
|
@@ -15248,7 +15257,7 @@ function nu(e, t, n) {
|
|
|
15248
15257
|
variables: t
|
|
15249
15258
|
}, {
|
|
15250
15259
|
lodash: C,
|
|
15251
|
-
interpolate:
|
|
15260
|
+
interpolate: zr
|
|
15252
15261
|
});
|
|
15253
15262
|
return Number(s);
|
|
15254
15263
|
} catch (s) {
|
|
@@ -15262,7 +15271,7 @@ const _s = ({
|
|
|
15262
15271
|
const {
|
|
15263
15272
|
t: n
|
|
15264
15273
|
} = v();
|
|
15265
|
-
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: () => {
|
|
15266
15275
|
t.onChange("");
|
|
15267
15276
|
} }) : null, ...t });
|
|
15268
15277
|
}, tT = ({
|
|
@@ -15307,7 +15316,7 @@ function hf(e) {
|
|
|
15307
15316
|
itemHeight: 140,
|
|
15308
15317
|
show: !0,
|
|
15309
15318
|
inRange: {
|
|
15310
|
-
color: e ?? Object.values(
|
|
15319
|
+
color: e ?? Object.values(_r.graphics.depth)
|
|
15311
15320
|
},
|
|
15312
15321
|
skipRange: {
|
|
15313
15322
|
lt_min: "",
|
|
@@ -15347,9 +15356,9 @@ function An() {
|
|
|
15347
15356
|
}
|
|
15348
15357
|
function rT() {
|
|
15349
15358
|
return {
|
|
15350
|
-
compared: Object.values(
|
|
15351
|
-
level: Object.values(
|
|
15352
|
-
depth: Object.values(
|
|
15359
|
+
compared: Object.values(_r.graphics.compared),
|
|
15360
|
+
level: Object.values(_r.graphics.level),
|
|
15361
|
+
depth: Object.values(_r.graphics.depth),
|
|
15353
15362
|
yellow_blue: ["#8f531d", "#ffd347", "#e3efe3", "#eefaee", "#4ecbbf", "#003f94"],
|
|
15354
15363
|
blue: ["#f9fcff", "#48b3e9", "#003f94"],
|
|
15355
15364
|
darkgreen_pink: ["#0c525a", "#f21f99"],
|
|
@@ -15391,17 +15400,17 @@ function Da(e, t) {
|
|
|
15391
15400
|
return h.upper.value === "" ? p[h.upper.symbol] = a : Number.isFinite(f) && (p[h.upper.symbol] = f), p;
|
|
15392
15401
|
}) : o === "categories" && (u.categories = c), u;
|
|
15393
15402
|
}
|
|
15394
|
-
const
|
|
15403
|
+
const Fr = (e) => ({
|
|
15395
15404
|
followVisualMap: !e,
|
|
15396
15405
|
color: e
|
|
15397
15406
|
});
|
|
15398
15407
|
function fc(e, t, n, i) {
|
|
15399
15408
|
if (i.type !== "continuous")
|
|
15400
|
-
return
|
|
15409
|
+
return Fr("");
|
|
15401
15410
|
const {
|
|
15402
15411
|
skipRange: s
|
|
15403
15412
|
} = i;
|
|
15404
|
-
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("");
|
|
15405
15414
|
}
|
|
15406
15415
|
function pf() {
|
|
15407
15416
|
return {
|
|
@@ -15483,14 +15492,14 @@ const iT = rT(), sT = ({
|
|
|
15483
15492
|
index: t
|
|
15484
15493
|
});
|
|
15485
15494
|
return /* @__PURE__ */ r.jsxs(qt, { ref: l, gap: "sm", justify: "flex-start", align: "center", direction: "row", wrap: "nowrap", onMouseEnter: a, onMouseLeave: o, children: [
|
|
15486
|
-
/* @__PURE__ */ r.jsx(
|
|
15495
|
+
/* @__PURE__ */ r.jsx(er, { style: {
|
|
15487
15496
|
minWidth: "30px",
|
|
15488
15497
|
maxWidth: "30px",
|
|
15489
15498
|
flex: 0
|
|
15490
|
-
}, 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 }) }),
|
|
15491
15500
|
/* @__PURE__ */ r.jsx("div", { style: {
|
|
15492
15501
|
flex: 1
|
|
15493
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
15502
|
+
}, children: /* @__PURE__ */ r.jsx(Zn, { styles: {
|
|
15494
15503
|
root: {
|
|
15495
15504
|
flexGrow: 1
|
|
15496
15505
|
}
|
|
@@ -15499,7 +15508,7 @@ const iT = rT(), sT = ({
|
|
|
15499
15508
|
minWidth: "40px",
|
|
15500
15509
|
maxWidth: "40px",
|
|
15501
15510
|
flex: 0
|
|
15502
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
15511
|
+
}, children: /* @__PURE__ */ r.jsx(jr, { onClick: i }) })
|
|
15503
15512
|
] });
|
|
15504
15513
|
}, oT = re(({
|
|
15505
15514
|
value: e,
|
|
@@ -15540,7 +15549,7 @@ const iT = rT(), sT = ({
|
|
|
15540
15549
|
} }),
|
|
15541
15550
|
/* @__PURE__ */ r.jsx("div", { style: {
|
|
15542
15551
|
flex: 1
|
|
15543
|
-
}, 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" }) }),
|
|
15544
15553
|
/* @__PURE__ */ r.jsx("div", { style: {
|
|
15545
15554
|
minWidth: "40px",
|
|
15546
15555
|
maxWidth: "40px",
|
|
@@ -15572,7 +15581,7 @@ const iT = rT(), sT = ({
|
|
|
15572
15581
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
15573
15582
|
/* @__PURE__ */ r.jsx(g, { name: "visualMap.orient", control: i, render: ({
|
|
15574
15583
|
field: d
|
|
15575
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15584
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
15576
15585
|
flex: 1
|
|
15577
15586
|
}, ...d }) }),
|
|
15578
15587
|
/* @__PURE__ */ r.jsx(g, { name: "visualMap.calculable", control: i, render: ({
|
|
@@ -15691,10 +15700,10 @@ const iT = rT(), sT = ({
|
|
|
15691
15700
|
}) => /* @__PURE__ */ r.jsx(E, { size: "xs", placeholder: "", ...a, onChange: (o) => a.onChange(o.currentTarget.value) }) }) }),
|
|
15692
15701
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(g, { name: `visualMap.pieces.${t}.color`, control: i, render: ({
|
|
15693
15702
|
field: a
|
|
15694
|
-
}) => /* @__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: () => {
|
|
15695
15704
|
a.onChange("");
|
|
15696
15705
|
} }) : null, ...a }) }) }),
|
|
15697
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
15706
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(jr, { onClick: () => n(t) }) })
|
|
15698
15707
|
] });
|
|
15699
15708
|
}, hT = ({
|
|
15700
15709
|
form: e
|
|
@@ -15763,7 +15772,7 @@ const iT = rT(), sT = ({
|
|
|
15763
15772
|
}) => /* @__PURE__ */ r.jsx(ne, { label: t("chart.visual_map.precision"), ...d, onChange: c(d.onChange) }) }),
|
|
15764
15773
|
/* @__PURE__ */ r.jsx(g, { name: "visualMap.orient", control: i, render: ({
|
|
15765
15774
|
field: d
|
|
15766
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15775
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
15767
15776
|
flex: 1
|
|
15768
15777
|
}, ...d }) }),
|
|
15769
15778
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
@@ -16125,7 +16134,7 @@ function kT({
|
|
|
16125
16134
|
] }),
|
|
16126
16135
|
/* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "y_axis.nameAlignment", control: e, render: ({
|
|
16127
16136
|
field: i
|
|
16128
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16137
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
16129
16138
|
flex: 1
|
|
16130
16139
|
}, ...i }) }) }),
|
|
16131
16140
|
/* @__PURE__ */ r.jsx(P, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
|
|
@@ -16459,7 +16468,7 @@ const xf = {
|
|
|
16459
16468
|
nameAlignment: "right",
|
|
16460
16469
|
color: "red"
|
|
16461
16470
|
},
|
|
16462
|
-
dataZoom:
|
|
16471
|
+
dataZoom: Er,
|
|
16463
16472
|
markLine: xf,
|
|
16464
16473
|
reference_lines: []
|
|
16465
16474
|
};
|
|
@@ -16760,7 +16769,7 @@ function ZT({
|
|
|
16760
16769
|
} = e.viewport, l = je({}, i, bc), c = JT(l, s, n), d = Lt({
|
|
16761
16770
|
vizManager: e.vizManager,
|
|
16762
16771
|
instance: t
|
|
16763
|
-
}), 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) => {
|
|
16764
16773
|
const y = C.get(h, f.name, {
|
|
16765
16774
|
error: "rowData is not found"
|
|
16766
16775
|
});
|
|
@@ -16791,7 +16800,7 @@ function ez({
|
|
|
16791
16800
|
}, ...i }) }),
|
|
16792
16801
|
/* @__PURE__ */ r.jsx(g, { name: "bar.nameAlignment", control: e, render: ({
|
|
16793
16802
|
field: i
|
|
16794
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16803
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
16795
16804
|
flex: 1
|
|
16796
16805
|
}, ...i }) })
|
|
16797
16806
|
] }),
|
|
@@ -16825,7 +16834,7 @@ function tz({
|
|
|
16825
16834
|
}, ...i }) }),
|
|
16826
16835
|
/* @__PURE__ */ r.jsx(g, { name: "line.nameAlignment", control: e, render: ({
|
|
16827
16836
|
field: i
|
|
16828
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16837
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
16829
16838
|
flex: 1
|
|
16830
16839
|
}, ...i }) })
|
|
16831
16840
|
] }),
|
|
@@ -16867,7 +16876,7 @@ const nz = (e, t) => `
|
|
|
16867
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]);
|
|
16868
16877
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
16869
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") }),
|
|
16870
|
-
/* @__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 }) })
|
|
16871
16880
|
] });
|
|
16872
16881
|
};
|
|
16873
16882
|
function iz({
|
|
@@ -16979,7 +16988,7 @@ function oz({
|
|
|
16979
16988
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
|
|
16980
16989
|
/* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
|
|
16981
16990
|
field: l
|
|
16982
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16991
|
+
}) => /* @__PURE__ */ r.jsx(ar, { label: a("chart.orientation.label"), sx: {
|
|
16983
16992
|
flex: 1
|
|
16984
16993
|
}, ...l }) }) }),
|
|
16985
16994
|
o === "horizontal" && /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
|
|
@@ -17114,7 +17123,7 @@ function cz({
|
|
|
17114
17123
|
}
|
|
17115
17124
|
function dz(e) {
|
|
17116
17125
|
const {
|
|
17117
|
-
dataZoom: t =
|
|
17126
|
+
dataZoom: t = Er,
|
|
17118
17127
|
...n
|
|
17119
17128
|
} = e;
|
|
17120
17129
|
return {
|
|
@@ -17404,7 +17413,7 @@ function Sz({
|
|
|
17404
17413
|
height: i,
|
|
17405
17414
|
interactionManager: s
|
|
17406
17415
|
}) {
|
|
17407
|
-
const a =
|
|
17416
|
+
const a = Lr(t, e.label_field), o = Et(s.triggerManager, gf.id), l = R.useCallback((u) => {
|
|
17408
17417
|
const h = C.get(a, u.name, {
|
|
17409
17418
|
error: "rowData is not found"
|
|
17410
17419
|
});
|
|
@@ -17892,7 +17901,7 @@ function Qz({
|
|
|
17892
17901
|
color_key: ""
|
|
17893
17902
|
}), s = (a, o) => o + 1;
|
|
17894
17903
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
17895
|
-
/* @__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: [
|
|
17896
17905
|
"By setting ",
|
|
17897
17906
|
/* @__PURE__ */ r.jsx(Au, { children: "Series Name Key" }),
|
|
17898
17907
|
", you may add series from more queries to the chart."
|
|
@@ -18635,7 +18644,7 @@ function SD({
|
|
|
18635
18644
|
t: n
|
|
18636
18645
|
} = v();
|
|
18637
18646
|
return /* @__PURE__ */ r.jsxs(Pe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
18638
|
-
/* @__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") }) }),
|
|
18639
18648
|
/* @__PURE__ */ r.jsx(Pe.Dropdown, { children: /* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsx(wD, { conf: e, queryData: t }) }) })
|
|
18640
18649
|
] });
|
|
18641
18650
|
}
|
|
@@ -18704,7 +18713,7 @@ function CD({
|
|
|
18704
18713
|
...f,
|
|
18705
18714
|
[p.columnKey]: Number(f[p.columnKey])
|
|
18706
18715
|
});
|
|
18707
|
-
}, [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) => {
|
|
18708
18717
|
o.current = c;
|
|
18709
18718
|
};
|
|
18710
18719
|
return !n || !i || !t ? null : /* @__PURE__ */ r.jsxs(jt, { width: n, height: i, children: [
|
|
@@ -19021,7 +19030,7 @@ function FD({
|
|
|
19021
19030
|
l("content"), W(() => {
|
|
19022
19031
|
c(s);
|
|
19023
19032
|
}, [s]);
|
|
19024
|
-
const d =
|
|
19033
|
+
const d = Yn(null), u = () => {
|
|
19025
19034
|
var h;
|
|
19026
19035
|
return (h = d.current) == null ? void 0 : h.click();
|
|
19027
19036
|
};
|
|
@@ -19198,7 +19207,7 @@ const _c = {
|
|
|
19198
19207
|
},
|
|
19199
19208
|
reference_lines: [],
|
|
19200
19209
|
reference_areas: [],
|
|
19201
|
-
dataZoom:
|
|
19210
|
+
dataZoom: Er
|
|
19202
19211
|
};
|
|
19203
19212
|
function QD(e, t) {
|
|
19204
19213
|
if (!e.x_axis.data_key)
|
|
@@ -19279,7 +19288,7 @@ function XD({
|
|
|
19279
19288
|
variables: n
|
|
19280
19289
|
}, {
|
|
19281
19290
|
lodash: C,
|
|
19282
|
-
interpolate:
|
|
19291
|
+
interpolate: zr
|
|
19283
19292
|
});
|
|
19284
19293
|
} catch (l) {
|
|
19285
19294
|
return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${l.message}`), 10;
|
|
@@ -19310,7 +19319,7 @@ function JD({
|
|
|
19310
19319
|
variables: n
|
|
19311
19320
|
}, {
|
|
19312
19321
|
lodash: C,
|
|
19313
|
-
interpolate:
|
|
19322
|
+
interpolate: zr
|
|
19314
19323
|
});
|
|
19315
19324
|
} catch (a) {
|
|
19316
19325
|
return console.error(`[getSeriesColor] failed parsing custom function, error: ${a.message}`), 10;
|
|
@@ -19574,7 +19583,7 @@ function cM({
|
|
|
19574
19583
|
interactionManager: s,
|
|
19575
19584
|
variables: a
|
|
19576
19585
|
}) {
|
|
19577
|
-
const o =
|
|
19586
|
+
const o = Lr(t, e.x_axis.data_key), l = Et(s.triggerManager, wf.id), c = Ee((h) => {
|
|
19578
19587
|
const p = h.data;
|
|
19579
19588
|
l.forEach((m) => {
|
|
19580
19589
|
s.runInteraction(m.id, {
|
|
@@ -19767,7 +19776,7 @@ function mM({
|
|
|
19767
19776
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
19768
19777
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
|
|
19769
19778
|
field: l
|
|
19770
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19779
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
19771
19780
|
flex: 1
|
|
19772
19781
|
}, ...l }) }),
|
|
19773
19782
|
o === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: a("chart.reference_line.orientation.vertical_hint") })
|
|
@@ -19898,7 +19907,7 @@ const xM = ({
|
|
|
19898
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: [
|
|
19899
19908
|
/* @__PURE__ */ r.jsx(xM, { value: o.func_content, onChange: u }),
|
|
19900
19909
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
19901
|
-
/* @__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") }),
|
|
19902
19911
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
19903
19912
|
/* @__PURE__ */ r.jsx(M, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
19904
19913
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
@@ -19921,7 +19930,7 @@ const xM = ({
|
|
|
19921
19930
|
color: i
|
|
19922
19931
|
});
|
|
19923
19932
|
};
|
|
19924
|
-
return /* @__PURE__ */ r.jsx(
|
|
19933
|
+
return /* @__PURE__ */ r.jsx(Zn, { label: " ", format: "rgb", value: e.color, onChange: n });
|
|
19925
19934
|
}, vM = re(({
|
|
19926
19935
|
label: e = "Color",
|
|
19927
19936
|
value: t,
|
|
@@ -19941,7 +19950,7 @@ const xM = ({
|
|
|
19941
19950
|
...ls[c]
|
|
19942
19951
|
});
|
|
19943
19952
|
};
|
|
19944
|
-
return /* @__PURE__ */ r.jsxs(
|
|
19953
|
+
return /* @__PURE__ */ r.jsxs(yr, { cols: 2, children: [
|
|
19945
19954
|
/* @__PURE__ */ r.jsx(N, { ref: i, label: e, data: o, value: t.type, onChange: l, sx: {
|
|
19946
19955
|
flexGrow: 1
|
|
19947
19956
|
} }),
|
|
@@ -20159,7 +20168,7 @@ function TM({
|
|
|
20159
20168
|
}, ...i }) }),
|
|
20160
20169
|
/* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
20161
20170
|
field: i
|
|
20162
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
20171
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
20163
20172
|
flex: 1
|
|
20164
20173
|
}, ...i }) })
|
|
20165
20174
|
] }),
|
|
@@ -20339,7 +20348,7 @@ const LM = {
|
|
|
20339
20348
|
}];
|
|
20340
20349
|
function RM(e) {
|
|
20341
20350
|
const {
|
|
20342
|
-
dataZoom: t =
|
|
20351
|
+
dataZoom: t = Er,
|
|
20343
20352
|
...n
|
|
20344
20353
|
} = e;
|
|
20345
20354
|
return {
|
|
@@ -20587,7 +20596,7 @@ function GM(e) {
|
|
|
20587
20596
|
};
|
|
20588
20597
|
}
|
|
20589
20598
|
function HM(e) {
|
|
20590
|
-
return
|
|
20599
|
+
return Sr(e, ["variables"]);
|
|
20591
20600
|
}
|
|
20592
20601
|
function QM(e) {
|
|
20593
20602
|
const {
|
|
@@ -21066,7 +21075,7 @@ const _E = ({
|
|
|
21066
21075
|
) }),
|
|
21067
21076
|
/* @__PURE__ */ r.jsx(g, { name: `levels.${t}.label.align`, control: e, render: ({
|
|
21068
21077
|
field: a
|
|
21069
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21078
|
+
}) => /* @__PURE__ */ r.jsx(or, { ...a }) })
|
|
21070
21079
|
] }),
|
|
21071
21080
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
21072
21081
|
/* @__PURE__ */ r.jsx(g, { name: `levels.${t}.label.position`, control: e, render: ({
|
|
@@ -21450,7 +21459,7 @@ const Cf = ["function text({ value, row_data }, utils) {", " return value", "
|
|
|
21450
21459
|
}
|
|
21451
21460
|
}));
|
|
21452
21461
|
function PE(e) {
|
|
21453
|
-
return e ?
|
|
21462
|
+
return e ? Jr(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
|
|
21454
21463
|
}
|
|
21455
21464
|
function Df(e) {
|
|
21456
21465
|
const t = e.tableCellContext.bgColor;
|
|
@@ -21459,7 +21468,7 @@ function Df(e) {
|
|
|
21459
21468
|
color: PE(t)
|
|
21460
21469
|
};
|
|
21461
21470
|
}
|
|
21462
|
-
function
|
|
21471
|
+
function ni(e) {
|
|
21463
21472
|
const t = e.tableCellContext.isClickable(), n = zf({
|
|
21464
21473
|
clickable: t,
|
|
21465
21474
|
align: e.align
|
|
@@ -21469,7 +21478,7 @@ function ti(e) {
|
|
|
21469
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 }) }) });
|
|
21470
21479
|
}
|
|
21471
21480
|
function OE(e) {
|
|
21472
|
-
return /* @__PURE__ */ r.jsx(
|
|
21481
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: e.value });
|
|
21473
21482
|
}
|
|
21474
21483
|
function FE(e) {
|
|
21475
21484
|
const t = zf({
|
|
@@ -21488,7 +21497,7 @@ function VE(e) {
|
|
|
21488
21497
|
trimMantissa: !0,
|
|
21489
21498
|
absolute: !1
|
|
21490
21499
|
});
|
|
21491
|
-
return /* @__PURE__ */ r.jsx(
|
|
21500
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: t });
|
|
21492
21501
|
}
|
|
21493
21502
|
function NE(e) {
|
|
21494
21503
|
const t = oe(e.value, {
|
|
@@ -21497,7 +21506,7 @@ function NE(e) {
|
|
|
21497
21506
|
thousandSeparated: !0,
|
|
21498
21507
|
absolute: !1
|
|
21499
21508
|
});
|
|
21500
|
-
return /* @__PURE__ */ r.jsx(
|
|
21509
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: t });
|
|
21501
21510
|
}
|
|
21502
21511
|
function qE(e) {
|
|
21503
21512
|
const t = oe(e.value, {
|
|
@@ -21506,7 +21515,7 @@ function qE(e) {
|
|
|
21506
21515
|
trimMantissa: !0,
|
|
21507
21516
|
absolute: !1
|
|
21508
21517
|
});
|
|
21509
|
-
return /* @__PURE__ */ r.jsx(
|
|
21518
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: t });
|
|
21510
21519
|
}
|
|
21511
21520
|
function BE(e) {
|
|
21512
21521
|
const {
|
|
@@ -21515,12 +21524,12 @@ function BE(e) {
|
|
|
21515
21524
|
func_content: i
|
|
21516
21525
|
} = e;
|
|
21517
21526
|
if (!i)
|
|
21518
|
-
return /* @__PURE__ */ r.jsx(
|
|
21527
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: t });
|
|
21519
21528
|
const s = new Function(`return ${i}`)()({
|
|
21520
21529
|
value: t,
|
|
21521
21530
|
row_data: n
|
|
21522
21531
|
}, rn);
|
|
21523
|
-
return /* @__PURE__ */ r.jsx(
|
|
21532
|
+
return /* @__PURE__ */ r.jsx(ni, { ...e, children: s });
|
|
21524
21533
|
}
|
|
21525
21534
|
function WE(e) {
|
|
21526
21535
|
switch (e.type) {
|
|
@@ -21969,7 +21978,7 @@ const sL = re((e, t) => {
|
|
|
21969
21978
|
}
|
|
21970
21979
|
} }) }),
|
|
21971
21980
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
21972
|
-
/* @__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") }),
|
|
21973
21982
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
21974
21983
|
/* @__PURE__ */ r.jsx(M, { onClick: u, variant: "subtle", children: i("common.actions.cancel") }),
|
|
21975
21984
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: d, children: i("common.actions.save") })
|
|
@@ -22030,7 +22039,7 @@ const sL = re((e, t) => {
|
|
|
22030
22039
|
const {
|
|
22031
22040
|
t: n
|
|
22032
22041
|
} = v(), i = () => {
|
|
22033
|
-
const o =
|
|
22042
|
+
const o = kr();
|
|
22034
22043
|
return {
|
|
22035
22044
|
id: o,
|
|
22036
22045
|
label: o,
|
|
@@ -22111,7 +22120,7 @@ function uL({
|
|
|
22111
22120
|
id: n,
|
|
22112
22121
|
...i
|
|
22113
22122
|
}) => ({
|
|
22114
|
-
id: n ??
|
|
22123
|
+
id: n ?? kr(),
|
|
22115
22124
|
...i
|
|
22116
22125
|
}))
|
|
22117
22126
|
};
|
|
@@ -22358,7 +22367,7 @@ class _L extends $e {
|
|
|
22358
22367
|
id: a,
|
|
22359
22368
|
...o
|
|
22360
22369
|
}) => ({
|
|
22361
|
-
id: a ??
|
|
22370
|
+
id: a ?? kr(),
|
|
22362
22371
|
...o
|
|
22363
22372
|
}))
|
|
22364
22373
|
}
|
|
@@ -22501,7 +22510,7 @@ const Af = R.forwardRef(wL), SL = ({
|
|
|
22501
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: [
|
|
22502
22511
|
/* @__PURE__ */ r.jsx(SL, { value: l, onChange: c }),
|
|
22503
22512
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
22504
|
-
/* @__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") }),
|
|
22505
22514
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
22506
22515
|
/* @__PURE__ */ r.jsx(M, { onClick: u, variant: "subtle", children: i("common.actions.cancel") }),
|
|
22507
22516
|
/* @__PURE__ */ r.jsx(M, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Qe, { size: 16 }), onClick: d, children: i("common.actions.save_changes") })
|
|
@@ -22699,7 +22708,7 @@ const $L = ({
|
|
|
22699
22708
|
if (i.startsWith("<"))
|
|
22700
22709
|
return /* @__PURE__ */ r.jsx(fu, { message: i });
|
|
22701
22710
|
const a = n - 25 - 20 - 30;
|
|
22702
|
-
return /* @__PURE__ */ r.jsx(
|
|
22711
|
+
return /* @__PURE__ */ r.jsx(er, { sx: {
|
|
22703
22712
|
width: "100%",
|
|
22704
22713
|
height: a
|
|
22705
22714
|
}, children: /* @__PURE__ */ r.jsxs(S, { align: "center", spacing: 20, children: [
|
|
@@ -22719,7 +22728,7 @@ function RL({
|
|
|
22719
22728
|
data: o,
|
|
22720
22729
|
error: l,
|
|
22721
22730
|
loading: c
|
|
22722
|
-
} =
|
|
22731
|
+
} = wr($L({
|
|
22723
22732
|
conf: n,
|
|
22724
22733
|
panelData: a
|
|
22725
22734
|
}), {
|
|
@@ -22728,7 +22737,7 @@ function RL({
|
|
|
22728
22737
|
return !i || !s || !n ? null : c ? /* @__PURE__ */ r.jsx(A, { sx: {
|
|
22729
22738
|
position: "relative",
|
|
22730
22739
|
height: s
|
|
22731
|
-
}, 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: {
|
|
22732
22741
|
__html: d.interpretation.html
|
|
22733
22742
|
} }, u)) });
|
|
22734
22743
|
}
|
|
@@ -23195,7 +23204,7 @@ function c$({
|
|
|
23195
23204
|
interactionManager: s,
|
|
23196
23205
|
variables: a
|
|
23197
23206
|
}) {
|
|
23198
|
-
const o =
|
|
23207
|
+
const o = Lr(t, e.calendar.data_key), l = Et(s.triggerManager, Rf.id), c = Ee((h) => {
|
|
23199
23208
|
const [p, m] = h.value, f = C.get(o, p, {
|
|
23200
23209
|
error: "rowData is not found"
|
|
23201
23210
|
});
|
|
@@ -23836,7 +23845,7 @@ function V$({
|
|
|
23836
23845
|
interactionManager: s,
|
|
23837
23846
|
variables: a
|
|
23838
23847
|
}) {
|
|
23839
|
-
const o =
|
|
23848
|
+
const o = Lr(t, e.y_axis.data_key), l = Et(s.triggerManager, oc.id), c = Ee((h) => {
|
|
23840
23849
|
const p = C.get(o, h.name, {
|
|
23841
23850
|
error: "rowData is not found"
|
|
23842
23851
|
});
|
|
@@ -23908,7 +23917,7 @@ function q$({
|
|
|
23908
23917
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
23909
23918
|
/* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
|
|
23910
23919
|
field: l
|
|
23911
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
23920
|
+
}) => /* @__PURE__ */ r.jsx(ar, { sx: {
|
|
23912
23921
|
flex: 1
|
|
23913
23922
|
}, ...l }) }),
|
|
23914
23923
|
o === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: a("chart.reference_line.orientation.vertical_hint") })
|
|
@@ -24501,7 +24510,7 @@ function oA(e, t, n, i) {
|
|
|
24501
24510
|
const s = t.map((u) => {
|
|
24502
24511
|
const h = n[u], p = C.sumBy(h, (m) => m.level.diff);
|
|
24503
24512
|
return [u, p / h.length];
|
|
24504
|
-
}), 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"]);
|
|
24505
24514
|
return {
|
|
24506
24515
|
type: "bar",
|
|
24507
24516
|
name: "平均偏差",
|
|
@@ -24604,7 +24613,7 @@ function cA(e, t, n, i) {
|
|
|
24604
24613
|
s[m].push([u, y, f, p]);
|
|
24605
24614
|
});
|
|
24606
24615
|
});
|
|
24607
|
-
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"]);
|
|
24608
24617
|
return a.map((u) => ({
|
|
24609
24618
|
type: "bar",
|
|
24610
24619
|
name: u,
|
|
@@ -24987,7 +24996,7 @@ const _A = {
|
|
|
24987
24996
|
};
|
|
24988
24997
|
function SA() {
|
|
24989
24998
|
return /* @__PURE__ */ r.jsxs(Pe, { width: 400, shadow: "md", children: [
|
|
24990
|
-
/* @__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: "指标说明" }) }),
|
|
24991
25000
|
/* @__PURE__ */ r.jsx(Pe.Dropdown, { children: /* @__PURE__ */ r.jsx(Ge, { fontSize: 14, sx: wA, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
24992
25001
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
24993
25002
|
/* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
|
|
@@ -25809,7 +25818,7 @@ function iR({
|
|
|
25809
25818
|
] }),
|
|
25810
25819
|
/* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "y_axis.nameAlignment", control: e, render: ({
|
|
25811
25820
|
field: i
|
|
25812
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
25821
|
+
}) => /* @__PURE__ */ r.jsx(or, { sx: {
|
|
25813
25822
|
flex: 1
|
|
25814
25823
|
}, ...i }) }) }),
|
|
25815
25824
|
/* @__PURE__ */ r.jsx(P, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
|
|
@@ -26415,7 +26424,7 @@ const TR = ({
|
|
|
26415
26424
|
}, withArrow: !0, children: /* @__PURE__ */ r.jsx(A, { sx: {
|
|
26416
26425
|
height: "16px",
|
|
26417
26426
|
alignSelf: "center"
|
|
26418
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
26427
|
+
}, children: /* @__PURE__ */ r.jsx(Dr, { size: 16, color: "gray" }) }) }), zR = D(({
|
|
26419
26428
|
label: e,
|
|
26420
26429
|
config: {
|
|
26421
26430
|
default_value: t,
|
|
@@ -26473,7 +26482,7 @@ const TR = ({
|
|
|
26473
26482
|
const s = i === 1 ? n("filter.widget.date_range.one_day") : n("filter.widget.date_range.x_days", {
|
|
26474
26483
|
count: i
|
|
26475
26484
|
});
|
|
26476
|
-
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 }) });
|
|
26477
26486
|
}, ER = ({
|
|
26478
26487
|
max_days: e
|
|
26479
26488
|
}) => {
|
|
@@ -26481,7 +26490,7 @@ const TR = ({
|
|
|
26481
26490
|
t
|
|
26482
26491
|
} = v();
|
|
26483
26492
|
return e ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
26484
|
-
/* @__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", {
|
|
26485
26494
|
max_days: e
|
|
26486
26495
|
}) }) }),
|
|
26487
26496
|
/* @__PURE__ */ r.jsx(P, { variant: "dashed", my: 10 })
|
|
@@ -26698,7 +26707,7 @@ const LR = ({
|
|
|
26698
26707
|
} = v(), [c, {
|
|
26699
26708
|
open: d,
|
|
26700
26709
|
close: u
|
|
26701
|
-
}] =
|
|
26710
|
+
}] = tr(!1), [h, p] = n, m = h ? V(h).format(o) : "", f = p ? V(p).format(o) : "";
|
|
26702
26711
|
return /* @__PURE__ */ r.jsxs(Ft, { opened: c, onClose: u, position: "bottom-start", shadow: "md", children: [
|
|
26703
26712
|
/* @__PURE__ */ r.jsxs(b, { position: "left", grow: !0, noWrap: !0, spacing: 0, w: "288px", sx: {
|
|
26704
26713
|
marginTop: "3px"
|
|
@@ -26990,9 +26999,9 @@ const LR = ({
|
|
|
26990
26999
|
] }),
|
|
26991
27000
|
z && /* @__PURE__ */ r.jsx(de, { label: p("filter.widget.common.x_selected", {
|
|
26992
27001
|
count: l.length
|
|
26993
|
-
}), children: /* @__PURE__ */ r.jsx(
|
|
27002
|
+
}), children: /* @__PURE__ */ r.jsx(Xn, { children: l.length }) })
|
|
26994
27003
|
] }),
|
|
26995
|
-
/* @__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", {
|
|
26996
27005
|
count: Q.length
|
|
26997
27006
|
}), searchValue: L, onSearch: $, filterOption: !1, children: O.map((Q) => /* @__PURE__ */ r.jsxs(Ey, { title: Q.label, children: [
|
|
26998
27007
|
/* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: Q.label }),
|
|
@@ -27384,7 +27393,7 @@ const NR = ({
|
|
|
27384
27393
|
] }),
|
|
27385
27394
|
L && /* @__PURE__ */ r.jsx(de, { label: m("filter.widget.common.x_selected", {
|
|
27386
27395
|
count: l.length
|
|
27387
|
-
}), children: /* @__PURE__ */ r.jsx(
|
|
27396
|
+
}), children: /* @__PURE__ */ r.jsx(Xn, { children: l.length }) })
|
|
27388
27397
|
] }),
|
|
27389
27398
|
/* @__PURE__ */ r.jsx(
|
|
27390
27399
|
Ly,
|
|
@@ -27401,7 +27410,7 @@ const NR = ({
|
|
|
27401
27410
|
style: a,
|
|
27402
27411
|
listHeight: 510,
|
|
27403
27412
|
treeLine: !0,
|
|
27404
|
-
clearIcon: () => /* @__PURE__ */ r.jsx(
|
|
27413
|
+
clearIcon: () => /* @__PURE__ */ r.jsx(jr, {}),
|
|
27405
27414
|
switcherIcon: qR,
|
|
27406
27415
|
treeIcon: WR,
|
|
27407
27416
|
maxTagTextLength: 10,
|
|
@@ -27500,7 +27509,7 @@ const JR = ({
|
|
|
27500
27509
|
}) {
|
|
27501
27510
|
const [n, {
|
|
27502
27511
|
toggle: i
|
|
27503
|
-
}] =
|
|
27512
|
+
}] = tr(!0), s = Ue(), {
|
|
27504
27513
|
control: a,
|
|
27505
27514
|
handleSubmit: o,
|
|
27506
27515
|
reset: l
|
|
@@ -27787,7 +27796,7 @@ const aP = x.model("QueryMeta", {
|
|
|
27787
27796
|
post_process: d,
|
|
27788
27797
|
dep_query_ids: u
|
|
27789
27798
|
} = e;
|
|
27790
|
-
return
|
|
27799
|
+
return ti({
|
|
27791
27800
|
id: t,
|
|
27792
27801
|
key: s,
|
|
27793
27802
|
sql: a,
|
|
@@ -27924,7 +27933,7 @@ const aP = x.model("QueryMeta", {
|
|
|
27924
27933
|
id: t,
|
|
27925
27934
|
name: n,
|
|
27926
27935
|
breakpoint: i,
|
|
27927
|
-
list: s.map((a) =>
|
|
27936
|
+
list: s.map((a) => ti(a.json))
|
|
27928
27937
|
};
|
|
27929
27938
|
},
|
|
27930
27939
|
jsonByPanelIDSet(t) {
|
|
@@ -27938,7 +27947,7 @@ const aP = x.model("QueryMeta", {
|
|
|
27938
27947
|
id: n,
|
|
27939
27948
|
name: i,
|
|
27940
27949
|
breakpoint: s,
|
|
27941
|
-
list: a.filter((o) => t.has(o.panelID)).map((o) =>
|
|
27950
|
+
list: a.filter((o) => t.has(o.panelID)).map((o) => ti(o.json))
|
|
27942
27951
|
};
|
|
27943
27952
|
},
|
|
27944
27953
|
findByID(t) {
|
|
@@ -28216,7 +28225,7 @@ const uP = x.model("FilterDateRangeConfigMeta", {
|
|
|
28216
28225
|
options_query_id: o,
|
|
28217
28226
|
default_selection_count: l
|
|
28218
28227
|
} = e;
|
|
28219
|
-
return
|
|
28228
|
+
return ti({
|
|
28220
28229
|
_name: t,
|
|
28221
28230
|
required: !!i,
|
|
28222
28231
|
min_width: s,
|
|
@@ -28273,7 +28282,7 @@ const uP = x.model("FilterDateRangeConfigMeta", {
|
|
|
28273
28282
|
options_query_id: l,
|
|
28274
28283
|
default_selection_count: c
|
|
28275
28284
|
} = e;
|
|
28276
|
-
return
|
|
28285
|
+
return ti({
|
|
28277
28286
|
_name: t,
|
|
28278
28287
|
width: a,
|
|
28279
28288
|
required: s,
|
|
@@ -28760,7 +28769,7 @@ const nx = x.model("ViewDivisionConfig", {
|
|
|
28760
28769
|
e.tabs.length = 0, e.tabs = yn(t);
|
|
28761
28770
|
},
|
|
28762
28771
|
addTab() {
|
|
28763
|
-
const t =
|
|
28772
|
+
const t = kr(), n = {
|
|
28764
28773
|
id: t,
|
|
28765
28774
|
name: t,
|
|
28766
28775
|
view_id: ""
|
|
@@ -28825,7 +28834,7 @@ const nx = x.model("ViewDivisionConfig", {
|
|
|
28825
28834
|
const n = e.panelIDs.filter((i) => i !== t);
|
|
28826
28835
|
e.panelIDs.length = 0, e.panelIDs.push(...n);
|
|
28827
28836
|
}
|
|
28828
|
-
})),
|
|
28837
|
+
})), lr = "11.10.0", g3 = {
|
|
28829
28838
|
definition: {
|
|
28830
28839
|
sqlSnippets: [],
|
|
28831
28840
|
queries: [],
|
|
@@ -28840,7 +28849,7 @@ const nx = x.model("ViewDivisionConfig", {
|
|
|
28840
28849
|
}],
|
|
28841
28850
|
panels: [],
|
|
28842
28851
|
filters: [],
|
|
28843
|
-
version:
|
|
28852
|
+
version: lr,
|
|
28844
28853
|
layouts: [{
|
|
28845
28854
|
id: "basis",
|
|
28846
28855
|
name: "basis",
|
|
@@ -28985,7 +28994,7 @@ const lx = x.compose("ViewRenderModel", SP, x.model({
|
|
|
28985
28994
|
visibleViewIDs: x.array(x.string)
|
|
28986
28995
|
}).views((e) => ({
|
|
28987
28996
|
get json() {
|
|
28988
|
-
return e.current.map((t) =>
|
|
28997
|
+
return e.current.map((t) => ti(t.json));
|
|
28989
28998
|
},
|
|
28990
28999
|
get idMap() {
|
|
28991
29000
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -29189,7 +29198,7 @@ const ux = sP.views((e) => ({
|
|
|
29189
29198
|
queries: n
|
|
29190
29199
|
},
|
|
29191
29200
|
layouts: i,
|
|
29192
|
-
version:
|
|
29201
|
+
version: lr
|
|
29193
29202
|
}, null, 2), o = e.name;
|
|
29194
29203
|
ui(o, a);
|
|
29195
29204
|
}
|
|
@@ -29365,7 +29374,7 @@ const xx = x.model("FiltersRenderModel", {
|
|
|
29365
29374
|
...a.json,
|
|
29366
29375
|
visibleInViewsIDs: n ? a.json.visibleInViewsIDs : []
|
|
29367
29376
|
})),
|
|
29368
|
-
version:
|
|
29377
|
+
version: lr
|
|
29369
29378
|
};
|
|
29370
29379
|
},
|
|
29371
29380
|
downloadSchema(t) {
|
|
@@ -29558,13 +29567,13 @@ const EP = aP.views((e) => ({
|
|
|
29558
29567
|
})).volatile(() => ({
|
|
29559
29568
|
controller: new AbortController()
|
|
29560
29569
|
})).actions((e) => ({
|
|
29561
|
-
runSQL:
|
|
29570
|
+
runSQL: Br(function* () {
|
|
29562
29571
|
var t;
|
|
29563
29572
|
if (e.valid && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
29564
29573
|
e.controller = new AbortController(), e.state = "loading";
|
|
29565
29574
|
try {
|
|
29566
29575
|
const n = e.payload;
|
|
29567
|
-
e.data = yield*
|
|
29576
|
+
e.data = yield* mr(ow({
|
|
29568
29577
|
payload: n,
|
|
29569
29578
|
name: e.name,
|
|
29570
29579
|
query: e.json,
|
|
@@ -29579,7 +29588,7 @@ const EP = aP.views((e) => ({
|
|
|
29579
29588
|
}
|
|
29580
29589
|
}
|
|
29581
29590
|
}),
|
|
29582
|
-
runHTTP:
|
|
29591
|
+
runHTTP: Br(function* () {
|
|
29583
29592
|
var t;
|
|
29584
29593
|
if (!(!e.valid || !e.datasource) && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
|
|
29585
29594
|
e.controller = new AbortController(), e.state = "loading";
|
|
@@ -29591,7 +29600,7 @@ const EP = aP.views((e) => ({
|
|
|
29591
29600
|
} = e.json;
|
|
29592
29601
|
let a = JSON.parse(e.httpConfigString);
|
|
29593
29602
|
a = ew(e.datasource, a);
|
|
29594
|
-
const o = yield*
|
|
29603
|
+
const o = yield* mr(lw({
|
|
29595
29604
|
type: n,
|
|
29596
29605
|
key: i,
|
|
29597
29606
|
configString: JSON.stringify(a),
|
|
@@ -29737,7 +29746,7 @@ const EP = aP.views((e) => ({
|
|
|
29737
29746
|
definition: {
|
|
29738
29747
|
queries: e.findByIDSet(new Set(t)).map((s) => s.json)
|
|
29739
29748
|
},
|
|
29740
|
-
version:
|
|
29749
|
+
version: lr
|
|
29741
29750
|
};
|
|
29742
29751
|
},
|
|
29743
29752
|
downloadSchema(t) {
|
|
@@ -29892,7 +29901,7 @@ const vx = x.model("LayoutsRenderModel", {
|
|
|
29892
29901
|
definition: {
|
|
29893
29902
|
sqlSnippets: e.findByKeySet(new Set(t)).map((s) => s.json)
|
|
29894
29903
|
},
|
|
29895
|
-
version:
|
|
29904
|
+
version: lr
|
|
29896
29905
|
};
|
|
29897
29906
|
},
|
|
29898
29907
|
downloadSchema(t) {
|
|
@@ -29995,7 +30004,7 @@ const PP = (e) => new RP(e), OP = D(() => {
|
|
|
29995
30004
|
/* @__PURE__ */ r.jsxs(ee.Dropdown, { children: [
|
|
29996
30005
|
/* @__PURE__ */ r.jsx(ee.Item, { onClick: o.refreshData, icon: /* @__PURE__ */ r.jsx(nl, { size: 14 }), children: n("common.actions.refresh") }),
|
|
29997
30006
|
/* @__PURE__ */ r.jsx(ee.Item, { onClick: o.downloadData, icon: /* @__PURE__ */ r.jsx(rl, { size: 14 }), children: n("common.actions.download_data") }),
|
|
29998
|
-
/* @__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") }),
|
|
29999
30008
|
/* @__PURE__ */ r.jsx(ee.Item, { onClick: l, icon: /* @__PURE__ */ r.jsx(oa, { size: 14 }), children: n("common.actions.download_screenshot") }),
|
|
30000
30009
|
y && /* @__PURE__ */ r.jsx(ee.Item, { onClick: f, icon: /* @__PURE__ */ r.jsx(bh, { size: 14 }), disabled: !0, children: n("common.actions.enter_fullscreen") }),
|
|
30001
30010
|
/* @__PURE__ */ r.jsx(OP, {}),
|
|
@@ -30046,7 +30055,7 @@ const NP = D(function() {
|
|
|
30046
30055
|
}, children: /* @__PURE__ */ r.jsx(w, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
|
|
30047
30056
|
});
|
|
30048
30057
|
function qP(e) {
|
|
30049
|
-
const t =
|
|
30058
|
+
const t = Yn(null);
|
|
30050
30059
|
return {
|
|
30051
30060
|
ref: t,
|
|
30052
30061
|
downloadPanelScreenshot: () => {
|
|
@@ -30156,7 +30165,7 @@ function WP({
|
|
|
30156
30165
|
const {
|
|
30157
30166
|
panel: n
|
|
30158
30167
|
} = t, i = Cx(e, n), s = kx(() => {
|
|
30159
|
-
|
|
30168
|
+
Zr({
|
|
30160
30169
|
title: `${n.name} - Updated`,
|
|
30161
30170
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
30162
30171
|
});
|
|
@@ -30175,7 +30184,7 @@ function GP(e) {
|
|
|
30175
30184
|
inEditMode: i
|
|
30176
30185
|
} = Rn(_l);
|
|
30177
30186
|
return kx(() => {
|
|
30178
|
-
i &&
|
|
30187
|
+
i && Zr({
|
|
30179
30188
|
title: `${t.name} - Updated`,
|
|
30180
30189
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
30181
30190
|
});
|
|
@@ -30237,7 +30246,7 @@ const QP = D(function({
|
|
|
30237
30246
|
position: "relative",
|
|
30238
30247
|
width: "100%"
|
|
30239
30248
|
}, children: [
|
|
30240
|
-
/* @__PURE__ */ r.jsx(
|
|
30249
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: e.dataLoading, exitTransitionDuration: 0 }),
|
|
30241
30250
|
!e.canRenderViz && /* @__PURE__ */ r.jsx(UP, { panel: e }),
|
|
30242
30251
|
e.canRenderViz && /* @__PURE__ */ r.jsx(QP, { data: e.data })
|
|
30243
30252
|
] })), KP = {
|
|
@@ -30421,7 +30430,7 @@ const s2 = R.forwardRef(({
|
|
|
30421
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)) });
|
|
30422
30431
|
});
|
|
30423
30432
|
function Rc(e) {
|
|
30424
|
-
const t =
|
|
30433
|
+
const t = Yn(null);
|
|
30425
30434
|
return {
|
|
30426
30435
|
ref: t,
|
|
30427
30436
|
downloadScreenshot: () => {
|
|
@@ -30460,7 +30469,7 @@ const u2 = D(({
|
|
|
30460
30469
|
/* @__PURE__ */ r.jsx(ee.Item, { icon: /* @__PURE__ */ r.jsx(oa, { size: 14 }), onClick: e, children: t("common.actions.download_screenshot") }),
|
|
30461
30470
|
/* @__PURE__ */ r.jsx(ee.Divider, {}),
|
|
30462
30471
|
/* @__PURE__ */ r.jsx(ee.Item, { icon: /* @__PURE__ */ r.jsx(sb, { size: 14 }), onClick: o.queries.downloadAllData, children: t("common.actions.download_data") }),
|
|
30463
|
-
/* @__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") })
|
|
30464
30473
|
] })
|
|
30465
30474
|
] });
|
|
30466
30475
|
}), Dx = D(({
|
|
@@ -30720,7 +30729,7 @@ const g2 = D(({
|
|
|
30720
30729
|
bottom: 0,
|
|
30721
30730
|
zIndex: 200
|
|
30722
30731
|
}, children: [
|
|
30723
|
-
/* @__PURE__ */ r.jsx(
|
|
30732
|
+
/* @__PURE__ */ r.jsx(Ir, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
|
|
30724
30733
|
/* @__PURE__ */ r.jsxs(S, { mx: "auto", mt: 100, sx: {
|
|
30725
30734
|
width: "300px",
|
|
30726
30735
|
position: "relative",
|
|
@@ -30729,7 +30738,7 @@ const g2 = D(({
|
|
|
30729
30738
|
/* @__PURE__ */ r.jsx(E, { label: t("view.component.tabs.tab.name"), required: !0, value: c.name, onChange: (h) => c.setName(h.currentTarget.value) }),
|
|
30730
30739
|
/* @__PURE__ */ r.jsx(N, { label: "View", value: c.view_id, onChange: c.setViewID, data: s }),
|
|
30731
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 }),
|
|
30732
|
-
/* @__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" }),
|
|
30733
30742
|
u && /* @__PURE__ */ r.jsx(M, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(ab, { size: 18 }), gradient: {
|
|
30734
30743
|
from: "cyan",
|
|
30735
30744
|
to: "indigo"
|
|
@@ -31132,11 +31141,11 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31132
31141
|
e.setKeywords(t, n);
|
|
31133
31142
|
}
|
|
31134
31143
|
})).actions((e) => {
|
|
31135
|
-
const t =
|
|
31144
|
+
const t = Br(function* () {
|
|
31136
31145
|
var n;
|
|
31137
31146
|
(n = e.controllers.tables) == null || n.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
|
|
31138
31147
|
try {
|
|
31139
|
-
const i = yield*
|
|
31148
|
+
const i = yield* mr(zn.structure(e.controllers.tables.signal)({
|
|
31140
31149
|
query_type: "TABLES",
|
|
31141
31150
|
type: e.sqlDataSourceType,
|
|
31142
31151
|
key: e.key,
|
|
@@ -31161,11 +31170,11 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31161
31170
|
loadTablesIfEmpty() {
|
|
31162
31171
|
e.tables.empty && t();
|
|
31163
31172
|
},
|
|
31164
|
-
loadColumns:
|
|
31173
|
+
loadColumns: Br(function* () {
|
|
31165
31174
|
var n;
|
|
31166
31175
|
(n = e.controllers.columns) == null || n.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
|
|
31167
31176
|
try {
|
|
31168
|
-
e.columns.data = yield*
|
|
31177
|
+
e.columns.data = yield* mr(zn.structure(e.controllers.columns.signal)({
|
|
31169
31178
|
query_type: "COLUMNS",
|
|
31170
31179
|
type: e.sqlDataSourceType,
|
|
31171
31180
|
key: e.key,
|
|
@@ -31186,11 +31195,11 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31186
31195
|
}
|
|
31187
31196
|
}
|
|
31188
31197
|
}),
|
|
31189
|
-
loadIndexes:
|
|
31198
|
+
loadIndexes: Br(function* () {
|
|
31190
31199
|
var n;
|
|
31191
31200
|
(n = e.controllers.indexes) == null || n.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
|
|
31192
31201
|
try {
|
|
31193
|
-
e.indexes.data = yield*
|
|
31202
|
+
e.indexes.data = yield* mr(zn.structure(e.controllers.indexes.signal)({
|
|
31194
31203
|
query_type: "INDEXES",
|
|
31195
31204
|
type: e.sqlDataSourceType,
|
|
31196
31205
|
key: e.key,
|
|
@@ -31211,13 +31220,13 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31211
31220
|
}
|
|
31212
31221
|
}
|
|
31213
31222
|
}),
|
|
31214
|
-
loadTableData:
|
|
31223
|
+
loadTableData: Br(function* () {
|
|
31215
31224
|
var i;
|
|
31216
31225
|
(i = e.controllers.tableData) == null || i.abort(), e.controllers.tableData = new AbortController();
|
|
31217
31226
|
const n = e.tableData;
|
|
31218
31227
|
n.state = "loading";
|
|
31219
31228
|
try {
|
|
31220
|
-
n.data = yield*
|
|
31229
|
+
n.data = yield* mr(zn.structure(e.controllers.tableData.signal)({
|
|
31221
31230
|
query_type: "DATA",
|
|
31222
31231
|
type: e.sqlDataSourceType,
|
|
31223
31232
|
key: e.key,
|
|
@@ -31232,7 +31241,7 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31232
31241
|
}));
|
|
31233
31242
|
const [{
|
|
31234
31243
|
total: s
|
|
31235
|
-
}] = yield*
|
|
31244
|
+
}] = yield* mr(zn.structure(e.controllers.tableData.signal)({
|
|
31236
31245
|
query_type: "COUNT",
|
|
31237
31246
|
type: e.sqlDataSourceType,
|
|
31238
31247
|
key: e.key,
|
|
@@ -31292,7 +31301,7 @@ const C2 = x.compose("FiltersModel", xx, x.model("FiltersModel", {
|
|
|
31292
31301
|
e.list.length = 0, e.list.push(...t);
|
|
31293
31302
|
}
|
|
31294
31303
|
}));
|
|
31295
|
-
function
|
|
31304
|
+
function hr(e) {
|
|
31296
31305
|
return {
|
|
31297
31306
|
label: e,
|
|
31298
31307
|
value: e,
|
|
@@ -31350,25 +31359,25 @@ const P2 = x.model("EditorModel", {
|
|
|
31350
31359
|
label: "filter.labels",
|
|
31351
31360
|
value: "_FILTERS_",
|
|
31352
31361
|
Icon: Zu,
|
|
31353
|
-
children: [
|
|
31362
|
+
children: [hr("_FILTERS_SETTINGS_"), ...n.options, hr("_Add_A_Filter_")],
|
|
31354
31363
|
_type: "GROUP"
|
|
31355
31364
|
}, {
|
|
31356
31365
|
label: "sql_snippet.labels",
|
|
31357
31366
|
value: "_SQL_SNIPPETS_",
|
|
31358
31367
|
Icon: lb,
|
|
31359
|
-
children: [
|
|
31368
|
+
children: [hr("_SQL_SNIPPETS_SETTINGS_"), ...s.options, hr("_Add_A_SQL_SNIPPET_")],
|
|
31360
31369
|
_type: "GROUP"
|
|
31361
31370
|
}, {
|
|
31362
31371
|
label: "query.labels",
|
|
31363
31372
|
value: "_QUERIES_",
|
|
31364
31373
|
Icon: Hi,
|
|
31365
|
-
children: [
|
|
31374
|
+
children: [hr("_QUERIES_SETTINGS_"), ...a.options, hr("_Add_A_QUERY_")],
|
|
31366
31375
|
_type: "GROUP"
|
|
31367
31376
|
}, {
|
|
31368
31377
|
label: "view.labels",
|
|
31369
31378
|
value: "_VIEWS_",
|
|
31370
31379
|
Icon: eh,
|
|
31371
|
-
children: [...i.editorOptions,
|
|
31380
|
+
children: [...i.editorOptions, hr("_Add_A_VIEW_")],
|
|
31372
31381
|
_type: "GROUP"
|
|
31373
31382
|
}];
|
|
31374
31383
|
},
|
|
@@ -31644,7 +31653,7 @@ const P2 = x.model("EditorModel", {
|
|
|
31644
31653
|
queries: C.uniqBy(i, (o) => o.id)
|
|
31645
31654
|
},
|
|
31646
31655
|
layouts: s,
|
|
31647
|
-
version:
|
|
31656
|
+
version: lr
|
|
31648
31657
|
};
|
|
31649
31658
|
},
|
|
31650
31659
|
downloadSchema() {
|
|
@@ -34400,7 +34409,7 @@ const K2 = D(({
|
|
|
34400
34409
|
} = v(), [t, {
|
|
34401
34410
|
open: n,
|
|
34402
34411
|
close: i
|
|
34403
|
-
}] =
|
|
34412
|
+
}] = tr(!1), s = le(), a = s.layouts.currentBreakpoint, o = s.layouts.currentLayoutRange, l = () => {
|
|
34404
34413
|
setTimeout(() => {
|
|
34405
34414
|
window.dispatchEvent(new Event("resize"));
|
|
34406
34415
|
}, 32);
|
|
@@ -34448,10 +34457,10 @@ const K2 = D(({
|
|
|
34448
34457
|
var a;
|
|
34449
34458
|
return (a = t.views.VIE) == null ? void 0 : a.downloadSchema();
|
|
34450
34459
|
};
|
|
34451
|
-
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: {
|
|
34452
34461
|
...Su,
|
|
34453
34462
|
transform: "none !important"
|
|
34454
|
-
}, 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: {
|
|
34455
34464
|
...Su
|
|
34456
34465
|
// background: 'rgb(231, 245, 255)',
|
|
34457
34466
|
}, children: e("view.download_schema") });
|
|
@@ -34593,7 +34602,7 @@ function lO(e) {
|
|
|
34593
34602
|
if (typeof e.target.result != "string")
|
|
34594
34603
|
throw new Error(`Unparsable file content of type: ${typeof e.target.result}`);
|
|
34595
34604
|
let t = JSON.parse(e.target.result);
|
|
34596
|
-
if ("content" in t && (t = t.content), t.version !==
|
|
34605
|
+
if ("content" in t && (t = t.content), t.version !== lr)
|
|
34597
34606
|
throw new Error("Schema version mismatch");
|
|
34598
34607
|
return t;
|
|
34599
34608
|
}
|
|
@@ -34624,13 +34633,13 @@ const cO = D(({
|
|
|
34624
34633
|
try {
|
|
34625
34634
|
if (!L)
|
|
34626
34635
|
throw new Error("please use a valid json file");
|
|
34627
|
-
s.applyJSONSchema(L),
|
|
34636
|
+
s.applyJSONSchema(L), Zr({
|
|
34628
34637
|
title: "Successful",
|
|
34629
34638
|
message: "",
|
|
34630
34639
|
color: "green"
|
|
34631
34640
|
}), e();
|
|
34632
34641
|
} catch ($) {
|
|
34633
|
-
console.error($),
|
|
34642
|
+
console.error($), Zr({
|
|
34634
34643
|
title: "Failed",
|
|
34635
34644
|
message: $.message,
|
|
34636
34645
|
color: "red"
|
|
@@ -34670,7 +34679,7 @@ const cO = D(({
|
|
|
34670
34679
|
T ? /* @__PURE__ */ r.jsx(Ge, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
34671
34680
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
34672
34681
|
/* @__PURE__ */ r.jsx("th", { children: i("import.this_dashboard") }),
|
|
34673
|
-
/* @__PURE__ */ r.jsx("td", { children:
|
|
34682
|
+
/* @__PURE__ */ r.jsx("td", { children: lr })
|
|
34674
34683
|
] }),
|
|
34675
34684
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
34676
34685
|
/* @__PURE__ */ r.jsx("th", { children: i("import.this_file") }),
|
|
@@ -34696,7 +34705,7 @@ const cO = D(({
|
|
|
34696
34705
|
} = v(), [t, {
|
|
34697
34706
|
open: n,
|
|
34698
34707
|
close: i
|
|
34699
|
-
}] =
|
|
34708
|
+
}] = tr(!1), [s, {
|
|
34700
34709
|
setTrue: a,
|
|
34701
34710
|
setFalse: o
|
|
34702
34711
|
}] = nt(!1), c = ((d = pe().content.views.VIE) == null ? void 0 : d.type) === H.Tabs;
|
|
@@ -35378,7 +35387,7 @@ const FO = D(() => {
|
|
|
35378
35387
|
} = v(), [t, n] = U(!1);
|
|
35379
35388
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
35380
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") }),
|
|
35381
|
-
/* @__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 }) })
|
|
35382
35391
|
] });
|
|
35383
35392
|
}, QO = D(function({
|
|
35384
35393
|
filter: t
|
|
@@ -35403,13 +35412,13 @@ const FO = D(() => {
|
|
|
35403
35412
|
minHeight: "50px"
|
|
35404
35413
|
}, children: [
|
|
35405
35414
|
i.usingQuery && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
35406
|
-
/* @__PURE__ */ r.jsx(
|
|
35415
|
+
/* @__PURE__ */ r.jsx(Ir, { opacity: 0.8, color: "#000", sx: {
|
|
35407
35416
|
left: "-5px",
|
|
35408
35417
|
right: "-5px",
|
|
35409
35418
|
top: "-5px",
|
|
35410
35419
|
bottom: "-5px"
|
|
35411
35420
|
} }),
|
|
35412
|
-
/* @__PURE__ */ r.jsx(
|
|
35421
|
+
/* @__PURE__ */ r.jsx(er, { sx: {
|
|
35413
35422
|
position: "absolute",
|
|
35414
35423
|
top: 0,
|
|
35415
35424
|
left: 0,
|
|
@@ -35418,7 +35427,7 @@ const FO = D(() => {
|
|
|
35418
35427
|
width: "100%"
|
|
35419
35428
|
}, children: /* @__PURE__ */ r.jsx(w, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
|
|
35420
35429
|
] }),
|
|
35421
|
-
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 }),
|
|
35422
35431
|
a.map((l, c) => /* @__PURE__ */ r.jsxs(qt, { gap: 10, sx: {
|
|
35423
35432
|
position: "relative"
|
|
35424
35433
|
}, pr: "40px", children: [
|
|
@@ -35475,13 +35484,13 @@ const FO = D(() => {
|
|
|
35475
35484
|
minHeight: "50px"
|
|
35476
35485
|
}, children: [
|
|
35477
35486
|
s.usingQuery && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
35478
|
-
/* @__PURE__ */ r.jsx(
|
|
35487
|
+
/* @__PURE__ */ r.jsx(Ir, { opacity: 0.8, color: "#000", sx: {
|
|
35479
35488
|
left: "-5px",
|
|
35480
35489
|
right: "-5px",
|
|
35481
35490
|
top: "-5px",
|
|
35482
35491
|
bottom: "-5px"
|
|
35483
35492
|
} }),
|
|
35484
|
-
/* @__PURE__ */ r.jsx(
|
|
35493
|
+
/* @__PURE__ */ r.jsx(er, { sx: {
|
|
35485
35494
|
position: "absolute",
|
|
35486
35495
|
top: 0,
|
|
35487
35496
|
left: 0,
|
|
@@ -35550,7 +35559,7 @@ const FO = D(() => {
|
|
|
35550
35559
|
} = v(), [t, n] = U(!1);
|
|
35551
35560
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
35552
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") }),
|
|
35553
|
-
/* @__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 }) })
|
|
35554
35563
|
] });
|
|
35555
35564
|
}, JO = D(function({
|
|
35556
35565
|
filter: t
|
|
@@ -35580,7 +35589,7 @@ const FO = D(() => {
|
|
|
35580
35589
|
maxWidth: "480px"
|
|
35581
35590
|
}, children: [
|
|
35582
35591
|
/* @__PURE__ */ r.jsx(w, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
|
|
35583
|
-
/* @__PURE__ */ r.jsx(
|
|
35592
|
+
/* @__PURE__ */ r.jsx(Jn, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t, null, 4) })
|
|
35584
35593
|
] });
|
|
35585
35594
|
}), eF = {
|
|
35586
35595
|
select: UO,
|
|
@@ -35589,7 +35598,7 @@ const FO = D(() => {
|
|
|
35589
35598
|
"text-input": KO,
|
|
35590
35599
|
checkbox: BO,
|
|
35591
35600
|
"date-range": GO
|
|
35592
|
-
},
|
|
35601
|
+
}, pr = {
|
|
35593
35602
|
select: "filter.widget.names.select",
|
|
35594
35603
|
"multi-select": "filter.widget.names.multi_select",
|
|
35595
35604
|
"tree-select": "filter.widget.names.tree_select",
|
|
@@ -35603,22 +35612,22 @@ const FO = D(() => {
|
|
|
35603
35612
|
t: n,
|
|
35604
35613
|
i18n: i
|
|
35605
35614
|
} = v(), s = le(), a = R.useMemo(() => eF[t.type], [t.type]), o = I(() => [{
|
|
35606
|
-
label: n(
|
|
35615
|
+
label: n(pr.select),
|
|
35607
35616
|
value: "select"
|
|
35608
35617
|
}, {
|
|
35609
|
-
label: n(
|
|
35618
|
+
label: n(pr["multi-select"]),
|
|
35610
35619
|
value: "multi-select"
|
|
35611
35620
|
}, {
|
|
35612
|
-
label: n(
|
|
35621
|
+
label: n(pr["tree-select"]),
|
|
35613
35622
|
value: "tree-select"
|
|
35614
35623
|
}, {
|
|
35615
|
-
label: n(
|
|
35624
|
+
label: n(pr["text-input"]),
|
|
35616
35625
|
value: "text-input"
|
|
35617
35626
|
}, {
|
|
35618
|
-
label: n(
|
|
35627
|
+
label: n(pr.checkbox),
|
|
35619
35628
|
value: "checkbox"
|
|
35620
35629
|
}, {
|
|
35621
|
-
label: n(
|
|
35630
|
+
label: n(pr["date-range"]),
|
|
35622
35631
|
value: "date-range"
|
|
35623
35632
|
}], [i.language]);
|
|
35624
35633
|
return /* @__PURE__ */ r.jsxs(b, { grow: !0, spacing: 20, align: "top", children: [
|
|
@@ -35643,7 +35652,7 @@ const FO = D(() => {
|
|
|
35643
35652
|
),
|
|
35644
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 })
|
|
35645
35654
|
] }),
|
|
35646
|
-
/* @__PURE__ */ r.jsx(
|
|
35655
|
+
/* @__PURE__ */ r.jsx(Xr, { label: n("filter.field.visible_in"), data: s.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
|
|
35647
35656
|
/* @__PURE__ */ r.jsx(E, { label: n("common.key"), placeholder: n("filter.field.key_placeholder"), required: !0, value: t.key, onChange: (l) => {
|
|
35648
35657
|
t.setKey(l.currentTarget.value);
|
|
35649
35658
|
} }),
|
|
@@ -35733,7 +35742,7 @@ const FO = D(() => {
|
|
|
35733
35742
|
{
|
|
35734
35743
|
size: "xs",
|
|
35735
35744
|
color: "blue",
|
|
35736
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
35745
|
+
leftIcon: /* @__PURE__ */ r.jsx(Cr, { size: 14 }),
|
|
35737
35746
|
disabled: t.length === 0,
|
|
35738
35747
|
onClick: a,
|
|
35739
35748
|
children: e("common.actions.download_schema")
|
|
@@ -35770,7 +35779,7 @@ const FO = D(() => {
|
|
|
35770
35779
|
} }) }),
|
|
35771
35780
|
/* @__PURE__ */ r.jsx("td", { children: d.label }),
|
|
35772
35781
|
/* @__PURE__ */ r.jsx("td", { children: d.key }),
|
|
35773
|
-
/* @__PURE__ */ r.jsx("td", { children: e(
|
|
35782
|
+
/* @__PURE__ */ r.jsx("td", { children: e(pr[d.type]) }),
|
|
35774
35783
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "xs", onClick: () => s(d.id), children: e("common.actions.open") }) })
|
|
35775
35784
|
] }, d.id)) })
|
|
35776
35785
|
] }) }) })
|
|
@@ -35782,7 +35791,7 @@ const FO = D(() => {
|
|
|
35782
35791
|
try {
|
|
35783
35792
|
t.mock_context.replace(JSON.parse(n));
|
|
35784
35793
|
} catch (o) {
|
|
35785
|
-
|
|
35794
|
+
Zr({
|
|
35786
35795
|
title: "Failed",
|
|
35787
35796
|
// @ts-expect-error error's type
|
|
35788
35797
|
message: o.message,
|
|
@@ -36067,7 +36076,7 @@ const hF = [{
|
|
|
36067
36076
|
overflow: "auto",
|
|
36068
36077
|
position: "relative"
|
|
36069
36078
|
}, children: [
|
|
36070
|
-
/* @__PURE__ */ r.jsx(
|
|
36079
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: t, overlayBlur: 2 }),
|
|
36071
36080
|
/* @__PURE__ */ r.jsx(qx, { data: o })
|
|
36072
36081
|
] })
|
|
36073
36082
|
] });
|
|
@@ -36272,7 +36281,7 @@ function _F({
|
|
|
36272
36281
|
/* @__PURE__ */ r.jsx(J, { mr: 5, variant: "filled", color: "blue", disabled: !c, onClick: d, children: /* @__PURE__ */ r.jsx($n, { size: 20 }) })
|
|
36273
36282
|
] }),
|
|
36274
36283
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
36275
|
-
s.map((p, m) => /* @__PURE__ */ r.jsx(
|
|
36284
|
+
s.map((p, m) => /* @__PURE__ */ r.jsx(Zn, { value: p, onChange: (f) => {
|
|
36276
36285
|
a((y) => (y.splice(m, 1, f), [...y]));
|
|
36277
36286
|
}, swatches: h, rightSection: /* @__PURE__ */ r.jsx(J, { onClick: () => l(m), color: "red", children: /* @__PURE__ */ r.jsx(Fn, { size: 14 }) }), sx: {
|
|
36278
36287
|
width: "45%"
|
|
@@ -36422,7 +36431,7 @@ const TF = D(({
|
|
|
36422
36431
|
const {
|
|
36423
36432
|
t
|
|
36424
36433
|
} = v();
|
|
36425
|
-
return /* @__PURE__ */ r.jsx(
|
|
36434
|
+
return /* @__PURE__ */ r.jsx(Ir, { color: "#fff", opacity: 1, sx: {
|
|
36426
36435
|
position: "absolute"
|
|
36427
36436
|
}, children: /* @__PURE__ */ r.jsx(M, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(nn, { size: 16 }), onClick: e.addNew, sx: {
|
|
36428
36437
|
flexGrow: 0,
|
|
@@ -36458,7 +36467,7 @@ const TF = D(({
|
|
|
36458
36467
|
} = wt();
|
|
36459
36468
|
return Object.keys(t.variableStrings).length === 0 ? null : /* @__PURE__ */ r.jsxs(S, { mt: 22, spacing: 4, children: [
|
|
36460
36469
|
/* @__PURE__ */ r.jsx(w, { size: "sm", fw: 500, color: "dimmed", children: e("panel.variable.labels") }),
|
|
36461
|
-
/* @__PURE__ */ r.jsx(
|
|
36470
|
+
/* @__PURE__ */ r.jsx(Jn, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t.variableStrings, null, 4) })
|
|
36462
36471
|
] });
|
|
36463
36472
|
});
|
|
36464
36473
|
function MF() {
|
|
@@ -36578,7 +36587,7 @@ const AF = D(() => {
|
|
|
36578
36587
|
const [o, {
|
|
36579
36588
|
open: l,
|
|
36580
36589
|
close: c
|
|
36581
|
-
}] =
|
|
36590
|
+
}] = tr(!1), d = () => {
|
|
36582
36591
|
e.moveToView(t, s), c();
|
|
36583
36592
|
};
|
|
36584
36593
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -36694,7 +36703,7 @@ const FF = D(({
|
|
|
36694
36703
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Interactions", children: t("interactions.label") })
|
|
36695
36704
|
] }),
|
|
36696
36705
|
/* @__PURE__ */ r.jsxs(_.Panel, { value: "Data", children: [
|
|
36697
|
-
/* @__PURE__ */ r.jsx(
|
|
36706
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: d, exitTransitionDuration: 0 }),
|
|
36698
36707
|
/* @__PURE__ */ r.jsx(gF, {})
|
|
36699
36708
|
] }),
|
|
36700
36709
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(ho, { children: /* @__PURE__ */ r.jsx(dF, {}) }) }),
|
|
@@ -36767,7 +36776,7 @@ const FF = D(({
|
|
|
36767
36776
|
{
|
|
36768
36777
|
size: "xs",
|
|
36769
36778
|
color: "blue",
|
|
36770
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
36779
|
+
leftIcon: /* @__PURE__ */ r.jsx(Cr, { size: 14 }),
|
|
36771
36780
|
disabled: t.length === 0,
|
|
36772
36781
|
onClick: l,
|
|
36773
36782
|
children: e("common.actions.download_schema")
|
|
@@ -36870,14 +36879,14 @@ const FF = D(({
|
|
|
36870
36879
|
/* @__PURE__ */ r.jsx(id, { width: t, height: n, radius: "xs" })
|
|
36871
36880
|
] }), Li = ({
|
|
36872
36881
|
value: e
|
|
36873
|
-
}) => 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 = ({
|
|
36874
36883
|
column: e
|
|
36875
36884
|
}) => {
|
|
36876
36885
|
const {
|
|
36877
36886
|
column_key: t,
|
|
36878
36887
|
column_key_text: n
|
|
36879
36888
|
} = e;
|
|
36880
|
-
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;
|
|
36881
36890
|
}, GF = D(({
|
|
36882
36891
|
dataSource: e
|
|
36883
36892
|
}) => {
|
|
@@ -37082,7 +37091,7 @@ const XF = D(({
|
|
|
37082
37091
|
height: "100%",
|
|
37083
37092
|
overflow: "hidden",
|
|
37084
37093
|
position: "relative"
|
|
37085
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
37094
|
+
}, children: /* @__PURE__ */ r.jsx(Tr, { visible: e }) }), ZF = [{
|
|
37086
37095
|
label: "10",
|
|
37087
37096
|
value: "10"
|
|
37088
37097
|
}, {
|
|
@@ -37151,7 +37160,7 @@ const XF = D(({
|
|
|
37151
37160
|
overflow: "auto",
|
|
37152
37161
|
position: "relative"
|
|
37153
37162
|
}, children: [
|
|
37154
|
-
/* @__PURE__ */ r.jsx(
|
|
37163
|
+
/* @__PURE__ */ r.jsx(Tr, { visible: t.loading, overlayBlur: 2 }),
|
|
37155
37164
|
/* @__PURE__ */ r.jsx(qx, { data: t.data })
|
|
37156
37165
|
] })
|
|
37157
37166
|
] });
|
|
@@ -37228,11 +37237,11 @@ const XF = D(({
|
|
|
37228
37237
|
}, children: [
|
|
37229
37238
|
/* @__PURE__ */ r.jsx(w, { fw: 500, children: n("data_source.explorer") }),
|
|
37230
37239
|
/* @__PURE__ */ r.jsxs(b, { spacing: 7, children: [
|
|
37231
|
-
/* @__PURE__ */ r.jsx(
|
|
37240
|
+
/* @__PURE__ */ r.jsx(Xn, { variant: "gradient", gradient: {
|
|
37232
37241
|
from: "indigo",
|
|
37233
37242
|
to: "cyan"
|
|
37234
37243
|
}, children: e.key }),
|
|
37235
|
-
/* @__PURE__ */ r.jsx(
|
|
37244
|
+
/* @__PURE__ */ r.jsx(Xn, { variant: "gradient", gradient: {
|
|
37236
37245
|
from: "orange",
|
|
37237
37246
|
to: "red"
|
|
37238
37247
|
}, children: e.type })
|
|
@@ -37274,7 +37283,7 @@ const XF = D(({
|
|
|
37274
37283
|
} = v(), i = pe(), {
|
|
37275
37284
|
data: s = [],
|
|
37276
37285
|
loading: a
|
|
37277
|
-
} =
|
|
37286
|
+
} = wr(bl, {
|
|
37278
37287
|
refreshDeps: []
|
|
37279
37288
|
}, []), o = I(() => {
|
|
37280
37289
|
const u = s.map((h) => ({
|
|
@@ -37324,7 +37333,7 @@ const XF = D(({
|
|
|
37324
37333
|
} = v(), [n, i] = U(e.name);
|
|
37325
37334
|
return W(() => {
|
|
37326
37335
|
i(e.name);
|
|
37327
|
-
}, [e.name]), /* @__PURE__ */ r.jsx(
|
|
37336
|
+
}, [e.name]), /* @__PURE__ */ r.jsx(er, { ml: 20, mt: 20, sx: {
|
|
37328
37337
|
maxWidth: "600px"
|
|
37329
37338
|
}, children: /* @__PURE__ */ r.jsxs(S, { spacing: 10, sx: {
|
|
37330
37339
|
width: "100%"
|
|
@@ -37347,8 +37356,8 @@ const XF = D(({
|
|
|
37347
37356
|
e.setKey(a), e.setType(s);
|
|
37348
37357
|
} }),
|
|
37349
37358
|
/* @__PURE__ */ r.jsx(P, { mt: 10, mb: -10, variant: "dashed", label: t("query.conditions"), labelPosition: "center" }),
|
|
37350
|
-
/* @__PURE__ */ r.jsx(
|
|
37351
|
-
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 }),
|
|
37352
37361
|
/* @__PURE__ */ r.jsx(P, { mt: 20, mb: 10, variant: "dashed" }),
|
|
37353
37362
|
/* @__PURE__ */ r.jsx(BF, { queryModel: e })
|
|
37354
37363
|
] }) });
|
|
@@ -37358,7 +37367,7 @@ function cV({
|
|
|
37358
37367
|
}) {
|
|
37359
37368
|
return /* @__PURE__ */ r.jsxs(Pe, { width: "60vw", shadow: "md", children: [
|
|
37360
37369
|
/* @__PURE__ */ r.jsx(Pe.Target, { children: /* @__PURE__ */ r.jsx(J, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(nh, {}) }) }),
|
|
37361
|
-
/* @__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 }) })
|
|
37362
37371
|
] });
|
|
37363
37372
|
}
|
|
37364
37373
|
const dV = D(() => {
|
|
@@ -37417,10 +37426,10 @@ WHERE
|
|
|
37417
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") }),
|
|
37418
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") })
|
|
37419
37428
|
] }),
|
|
37420
|
-
/* @__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: {
|
|
37421
37430
|
width: "100%"
|
|
37422
37431
|
}, noCopy: !0, colorScheme: "dark", children: uV }) }),
|
|
37423
|
-
/* @__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: {
|
|
37424
37433
|
width: "100%"
|
|
37425
37434
|
}, noCopy: !0, colorScheme: "dark", children: l }) }),
|
|
37426
37435
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(S, { spacing: 10, children: [
|
|
@@ -37461,8 +37470,8 @@ WHERE
|
|
|
37461
37470
|
] }),
|
|
37462
37471
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "pre_process", sx: {
|
|
37463
37472
|
position: "relative"
|
|
37464
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(
|
|
37465
|
-
/* @__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 }) })
|
|
37466
37475
|
] }) : null;
|
|
37467
37476
|
}), pV = D(({
|
|
37468
37477
|
queryID: e,
|
|
@@ -37614,8 +37623,8 @@ WHERE
|
|
|
37614
37623
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ r.jsx(bV, { value: e.sql }) }),
|
|
37615
37624
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "pre_process", sx: {
|
|
37616
37625
|
position: "relative"
|
|
37617
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(
|
|
37618
|
-
/* @__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 }) })
|
|
37619
37628
|
] }) : null;
|
|
37620
37629
|
}), vV = {
|
|
37621
37630
|
pre: ["function transform(queries, state, utils) {", " // use queries & dashboar state to build new data", " const data = []", " return data", "}"].join(`
|
|
@@ -37631,11 +37640,11 @@ WHERE
|
|
|
37631
37640
|
height: "100%"
|
|
37632
37641
|
}, children: [
|
|
37633
37642
|
/* @__PURE__ */ r.jsx(w, { size: "sm", children: t("query.transform.guide.pick_queries") }),
|
|
37634
|
-
/* @__PURE__ */ r.jsx(
|
|
37643
|
+
/* @__PURE__ */ r.jsx(Xr, { data: n.queries.optionsWithoutTransform, value: [...e.dep_query_ids], onChange: e.setDependantQueryIDs, maxDropdownHeight: 800 }),
|
|
37635
37644
|
/* @__PURE__ */ r.jsx(w, { size: "sm", children: t("query.transform.guide.write_function") }),
|
|
37636
37645
|
/* @__PURE__ */ r.jsx(A, { sx: {
|
|
37637
37646
|
flexGrow: 1
|
|
37638
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
37647
|
+
}, children: /* @__PURE__ */ r.jsx(ei, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: vV.pre }) })
|
|
37639
37648
|
] }) : null;
|
|
37640
37649
|
}), vi = {
|
|
37641
37650
|
height: "calc(100% - 44px)",
|
|
@@ -37835,7 +37844,7 @@ WHERE
|
|
|
37835
37844
|
{
|
|
37836
37845
|
size: "xs",
|
|
37837
37846
|
color: "blue",
|
|
37838
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
37847
|
+
leftIcon: /* @__PURE__ */ r.jsx(Cr, { size: 14 }),
|
|
37839
37848
|
disabled: t.length === 0,
|
|
37840
37849
|
onClick: l,
|
|
37841
37850
|
children: e("common.actions.download_schema")
|
|
@@ -37928,7 +37937,7 @@ WHERE
|
|
|
37928
37937
|
return /* @__PURE__ */ r.jsxs(A, { sx: {
|
|
37929
37938
|
position: "relative"
|
|
37930
37939
|
}, children: [
|
|
37931
|
-
e && /* @__PURE__ */ r.jsx(
|
|
37940
|
+
e && /* @__PURE__ */ r.jsx(Ir, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
37932
37941
|
/* @__PURE__ */ r.jsx(jn, { height: "500px", defaultLanguage: "javascript", value: t, onChange: i, theme: "vs-dark", options: {
|
|
37933
37942
|
minimap: {
|
|
37934
37943
|
enabled: !1
|
|
@@ -37978,7 +37987,7 @@ WHERE
|
|
|
37978
37987
|
/* @__PURE__ */ r.jsx(te, { mt: 10, label: n("common.enabled"), checked: o.enabled, onChange: (m) => c(m.currentTarget.checked) }),
|
|
37979
37988
|
/* @__PURE__ */ r.jsx(DV, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
37980
37989
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
37981
|
-
/* @__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") }),
|
|
37982
37991
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
37983
37992
|
/* @__PURE__ */ r.jsx(M, { onClick: u, variant: "subtle", children: n("common.actions.cancel") }),
|
|
37984
37993
|
/* @__PURE__ */ r.jsx(M, { onClick: d, children: n("common.actions.save") })
|
|
@@ -38382,9 +38391,9 @@ const dN = {
|
|
|
38382
38391
|
cN(a.monacoPath), Dh(a);
|
|
38383
38392
|
const {
|
|
38384
38393
|
data: m = []
|
|
38385
|
-
} =
|
|
38394
|
+
} = wr(bl), {
|
|
38386
38395
|
data: f = []
|
|
38387
|
-
} =
|
|
38396
|
+
} = wr(cp), y = R.useMemo(() => H2(t, n, m, f, e, c ?? {}), [t, n]);
|
|
38388
38397
|
R.useImperativeHandle(p, () => y, [y]), Ax(y.content, !0), R.useEffect(() => {
|
|
38389
38398
|
y.context.replace(e);
|
|
38390
38399
|
}, [e]), R.useEffect(() => {
|
|
@@ -38621,9 +38630,9 @@ const fN = ({
|
|
|
38621
38630
|
Dh(s);
|
|
38622
38631
|
const {
|
|
38623
38632
|
data: p = []
|
|
38624
|
-
} =
|
|
38633
|
+
} = wr(bl), {
|
|
38625
38634
|
data: m = []
|
|
38626
|
-
} =
|
|
38635
|
+
} = wr(cp), f = R.useMemo(() => mN(t, n, p, m, e, l ?? {}, d ?? null), [t, n, d]);
|
|
38627
38636
|
Ax(f.content, !1), R.useEffect(() => {
|
|
38628
38637
|
f.context.replace(e);
|
|
38629
38638
|
}, [e]), R.useEffect(() => {
|
|
@@ -38704,7 +38713,7 @@ const w3 = () => Promise.resolve().then(() => vw).then(({
|
|
|
38704
38713
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
38705
38714
|
export {
|
|
38706
38715
|
zn as APIClient,
|
|
38707
|
-
|
|
38716
|
+
lr as CURRENT_SCHEMA_VERSION,
|
|
38708
38717
|
Lx as ContentModel,
|
|
38709
38718
|
vp as ContentModelContextProvider,
|
|
38710
38719
|
Qx as ContentRenderModel,
|