@devtable/dashboard 13.4.1 → 13.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard-editor/model/layouts/layouts.d.ts +1 -0
- package/dist/dashboard.es.js +691 -686
- package/dist/dashboard.umd.js +36 -36
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -2,23 +2,23 @@ var sh = Object.defineProperty;
|
|
|
2
2
|
var ih = (t, e, n) => e in t ? sh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var N = (t, e, n) => (ih(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
4
|
import L, { forwardRef as ne, useState as Q, useEffect as B, useCallback as We, useMemo as C, createElement as ls, useContext as Ht, useRef as cs, createContext as rl, memo as ah } from "react";
|
|
5
|
-
import { TextInput as D, Text as w, Box as M, Button as
|
|
5
|
+
import { TextInput as D, Text as w, Box as M, Button as z, HoverCard as Ie, Group as b, Select as F, Stack as k, Overlay as Kn, Modal as je, Checkbox as ee, Divider as R, NumberInput as ae, Switch as Ve, Table as Re, ActionIcon as J, MultiSelect as Nn, Paper as oh, Code as eo, Tabs as _, LoadingOverlay as In, Alert as ds, ColorSwatch as ai, createStyles as yr, Popover as Vn, Tooltip as ge, Center as sn, Collapse as _r, useMantineTheme as sl, CheckIcon as lh, MANTINE_SIZES as ch, SimpleGrid as _n, NativeSelect as il, SegmentedControl as dh, Anchor as oi, Menu as Y, UnstyledButton as al, Badge as nn, ColorInput as Bn, CloseButton as us, Textarea as uh, Mark as hh, Slider as mh, Flex as Ut, Affix as ph, Header as xh, List as ot, FileInput as gh, ThemeIcon as Gs, Navbar as Vt, JsonInput as ol, Pagination as ll, Drawer as fh, Accordion as Rr, Radio as to, Skeleton as no, NavLink as li, AppShell as cl } from "@mantine/core";
|
|
6
6
|
import { useModals as Et, ModalsProvider as dl } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as rt, useCreation as vt, useAsyncEffect as vr, useRequest as wn, useWhyDidYouUpdate as bh, useLatest as ro, usePrevious as yh } from "ahooks";
|
|
8
8
|
import { toJS as Yt, observable as ul, runInAction as cr, reaction as et, makeAutoObservable as jr } from "mobx";
|
|
9
|
-
import { observer as
|
|
9
|
+
import { observer as I } from "mobx-react-lite";
|
|
10
10
|
import { faker as _h } from "@faker-js/faker";
|
|
11
11
|
import * as vh from "crypto-js";
|
|
12
12
|
import jh from "crypto-js";
|
|
13
13
|
import * as wh from "d3-array";
|
|
14
14
|
import { quantile as Nr } from "d3-array";
|
|
15
15
|
import $ from "dayjs";
|
|
16
|
-
import S, { cloneDeepWith as hl, unset as Sh, get as se, isObject as ml, set as ki, omit as Sn, isFunction as kh, orderBy as Ch, last as pl, defaults as ve, minBy as
|
|
16
|
+
import S, { cloneDeepWith as hl, unset as Sh, get as se, isObject as ml, set as ki, omit as Sn, isFunction as kh, orderBy as Ch, last as pl, defaults as ve, minBy as Ih, maxBy as zh, cloneDeep as qe, values as xl, template as Ci, throttle as Th, range as Dh, isEqual as xe, defaultsDeep as we, keyBy as Mh, isEmpty as gl, isNumber as Lh, findLastIndex as Eh, isString as fl, pick as bl } from "lodash";
|
|
17
17
|
import * as qn from "mathjs";
|
|
18
18
|
import Kr from "numbro";
|
|
19
19
|
import Nt from "axios";
|
|
20
20
|
import { useClipboard as Ah, randomId as kn, useDisclosure as an, useElementSize as mr, useResizeObserver as Rh, useInputState as yl } from "@mantine/hooks";
|
|
21
|
-
import { interpolate as
|
|
21
|
+
import { interpolate as zn } from "popmotion";
|
|
22
22
|
import * as Ye from "echarts/core";
|
|
23
23
|
import { use as $h } from "echarts/core";
|
|
24
24
|
import { BarChart as Ph, BoxplotChart as Oh, CustomChart as Fh, FunnelChart as Vh, HeatmapChart as qh, LineChart as Nh, PieChart as Bh, RadarChart as Wh, ScatterChart as Gh, SunburstChart as Qh } from "echarts/charts";
|
|
@@ -31,10 +31,10 @@ import Xe from "echarts-for-react/lib/core";
|
|
|
31
31
|
import "echarts-gl";
|
|
32
32
|
import { useForm as ye, Controller as g, useFieldArray as ms, useWatch as sm } from "react-hook-form";
|
|
33
33
|
import { DatesProvider as im, DatePicker as am } from "@mantine/dates";
|
|
34
|
-
import { useTranslation as y, Trans as
|
|
35
|
-
import { DeviceFloppy as Gt, Recycle as Tn, Trash as At, AlertCircle as cm, InfoCircle as Kt, Plus as _l, Refresh as
|
|
34
|
+
import { useTranslation as y, Trans as Ii, initReactI18next as om, I18nextProvider as lm } from "react-i18next";
|
|
35
|
+
import { DeviceFloppy as Gt, Recycle as Tn, Trash as At, AlertCircle as cm, InfoCircle as Kt, Plus as _l, Refresh as zi, Download as Ti, ArrowsMaximize as vl, Settings as jl, Copy as dm, ArrowLeft as um, ArrowsMove as hm, ChevronDownRight as mm, ChevronsUpRight as pm, PlaylistAdd as ps, ArrowBarToRight as xm } from "tabler-icons-react";
|
|
36
36
|
import Rt, { loader as Qs } from "@monaco-editor/react";
|
|
37
|
-
import { IconMathFunction as on, IconDeviceFloppy as $e, IconPlus as jt, IconTrash as Qt, IconChevronUp as gm, IconChevronDown as fm, IconTextSize as Di, IconInfoCircle as Dn, IconPlayerSkipBack as wl, IconRecycle as wr, IconSelector as bm, IconBorderAll as ym, IconArrowDown as _m, IconArrowUp as vm, IconCalendar as jm, IconMinus as wm, IconChevronsUp as Sm, IconChevronsDown as km, IconCode as Cn, IconCamera as xs, IconShare3 as Cm, IconDownload as
|
|
37
|
+
import { IconMathFunction as on, IconDeviceFloppy as $e, IconPlus as jt, IconTrash as Qt, IconChevronUp as gm, IconChevronDown as fm, IconTextSize as Di, IconInfoCircle as Dn, IconPlayerSkipBack as wl, IconRecycle as wr, IconSelector as bm, IconBorderAll as ym, IconArrowDown as _m, IconArrowUp as vm, IconCalendar as jm, IconMinus as wm, IconChevronsUp as Sm, IconChevronsDown as km, IconCode as Cn, IconCamera as xs, IconShare3 as Cm, IconDownload as Im, IconArrowsLeftRight as zm, IconVariable as Sl, IconCodeDots as Tm, IconFilter as kl, IconCopy as Dm, IconDatabase as gs, IconBoxMultiple as Cl, IconCaretDown as Mm, IconAlertTriangle as Il, IconArrowLeft as Lm, IconPlaylistAdd as io, IconDevices as Em, IconSettings as Sr, IconPointFilled as Mi, IconFileImport as ao, IconCircleDashed as Am, IconCircleDot as Rm, IconCircleOff as $m, IconAdjustments as Pm, IconLink as Om, IconArrowCurveRight as ci, IconLine as Fm, IconX as zl, IconEye as Tl, IconTable as Vm, IconColumns as qm, IconVectorTriangle as Nm, IconAlertCircle as oo, IconVariablePlus as Bm, IconHierarchy as Wm, IconDiscountCheckFilled as Gm } from "@tabler/icons-react";
|
|
38
38
|
import { showNotification as Wn, notifications as Dl } from "@mantine/notifications";
|
|
39
39
|
import * as tn from "d3-regression";
|
|
40
40
|
import { RichTextEditor as te, Link as Ml, useRichTextEditorContext as Qm } from "@mantine/tiptap";
|
|
@@ -62,7 +62,7 @@ import { useVirtual as mp } from "react-virtual";
|
|
|
62
62
|
import pp, { Option as xp } from "rc-select";
|
|
63
63
|
import gp, { SHOW_PARENT as fp } from "rc-tree-select";
|
|
64
64
|
import { WidthProvider as Yl, Responsive as Kl } from "react-grid-layout";
|
|
65
|
-
import { types as p, cast as Dt, getRoot as Be, getParent as Me, addDisposer as ut, isAlive as co, flow as On, toGenerator as xn, clone as bp, getSnapshot as
|
|
65
|
+
import { types as p, cast as Dt, getRoot as Be, getParent as Me, addDisposer as ut, isAlive as co, flow as On, toGenerator as xn, clone as bp, getSnapshot as zt, applySnapshot as Ge, addMiddleware as yp, getType as _p, detach as di, castToSnapshot as Jl } from "mobx-state-tree";
|
|
66
66
|
import { arrayToTree as vp } from "performant-array-to-tree";
|
|
67
67
|
import { saveAs as fs } from "file-saver";
|
|
68
68
|
import Xl from "dom-to-image-more";
|
|
@@ -72,8 +72,8 @@ import wp from "dayjs/plugin/advancedFormat";
|
|
|
72
72
|
import Sp from "dayjs/plugin/arraySupport";
|
|
73
73
|
import kp from "dayjs/plugin/buddhistEra";
|
|
74
74
|
import Cp from "dayjs/plugin/calendar";
|
|
75
|
-
import
|
|
76
|
-
import
|
|
75
|
+
import Ip from "dayjs/plugin/customParseFormat";
|
|
76
|
+
import zp from "dayjs/plugin/dayOfYear";
|
|
77
77
|
import Tp from "dayjs/plugin/duration";
|
|
78
78
|
import Dp from "dayjs/plugin/isBetween";
|
|
79
79
|
import Mp from "dayjs/plugin/isLeapYear";
|
|
@@ -366,18 +366,18 @@ function cx() {
|
|
|
366
366
|
if (Ot && U && typeof Ot.stack == "string") {
|
|
367
367
|
for (var re = Ot.stack.split(`
|
|
368
368
|
`), Ke = U.stack.split(`
|
|
369
|
-
`), Ce = re.length - 1,
|
|
370
|
-
|
|
371
|
-
for (; Ce >= 1 &&
|
|
372
|
-
if (re[Ce] !== Ke[
|
|
373
|
-
if (Ce !== 1 ||
|
|
369
|
+
`), Ce = re.length - 1, ze = Ke.length - 1; Ce >= 1 && ze >= 0 && re[Ce] !== Ke[ze]; )
|
|
370
|
+
ze--;
|
|
371
|
+
for (; Ce >= 1 && ze >= 0; Ce--, ze--)
|
|
372
|
+
if (re[Ce] !== Ke[ze]) {
|
|
373
|
+
if (Ce !== 1 || ze !== 1)
|
|
374
374
|
do
|
|
375
|
-
if (Ce--,
|
|
375
|
+
if (Ce--, ze--, ze < 0 || re[Ce] !== Ke[ze]) {
|
|
376
376
|
var ct = `
|
|
377
377
|
` + re[Ce].replace(" at new ", " at ");
|
|
378
378
|
return v.displayName && ct.includes("<anonymous>") && (ct = ct.replace("<anonymous>", v.displayName)), typeof v == "function" && Mr.set(v, ct), ct;
|
|
379
379
|
}
|
|
380
|
-
while (Ce >= 1 &&
|
|
380
|
+
while (Ce >= 1 && ze >= 0);
|
|
381
381
|
break;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
@@ -566,8 +566,8 @@ function cx() {
|
|
|
566
566
|
ce[be] === void 0 && (ce[be] = Ce[be]);
|
|
567
567
|
}
|
|
568
568
|
if (re || Ke) {
|
|
569
|
-
var
|
|
570
|
-
re && Qu(ce,
|
|
569
|
+
var ze = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
|
|
570
|
+
re && Qu(ce, ze), Ke && Hu(ce, ze);
|
|
571
571
|
}
|
|
572
572
|
return Uu(v, re, Ke, ue, U, sr.current, ce);
|
|
573
573
|
}
|
|
@@ -701,9 +701,9 @@ Check the top-level render call using <` + V + ">.");
|
|
|
701
701
|
var Ce;
|
|
702
702
|
v === null ? Ce = "null" : Vs(v) ? Ce = "array" : v !== void 0 && v.$$typeof === e ? (Ce = "<" + (Pt(v.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : Ce = typeof v, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ce, re);
|
|
703
703
|
}
|
|
704
|
-
var
|
|
705
|
-
if (
|
|
706
|
-
return
|
|
704
|
+
var ze = Yu(v, A, V, ue, be);
|
|
705
|
+
if (ze == null)
|
|
706
|
+
return ze;
|
|
707
707
|
if (ce) {
|
|
708
708
|
var ct = A.children;
|
|
709
709
|
if (ct !== void 0)
|
|
@@ -717,7 +717,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
717
717
|
else
|
|
718
718
|
Ja(ct, v);
|
|
719
719
|
}
|
|
720
|
-
return v === s ? Zu(
|
|
720
|
+
return v === s ? Zu(ze) : Xu(ze), ze;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
function eh(v, A, V) {
|
|
@@ -1088,7 +1088,7 @@ class Cx {
|
|
|
1088
1088
|
colorRange: n
|
|
1089
1089
|
}) {
|
|
1090
1090
|
N(this, "mapper");
|
|
1091
|
-
this.mapper =
|
|
1091
|
+
this.mapper = zn(e, n);
|
|
1092
1092
|
}
|
|
1093
1093
|
getColor(e) {
|
|
1094
1094
|
return this.mapper(e);
|
|
@@ -1116,7 +1116,7 @@ function ie(t, {
|
|
|
1116
1116
|
return console.debug(s), String(t);
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function Ix(t) {
|
|
1120
1120
|
return t === null ? "null" : t === void 0 ? "undefined" : Array.isArray(t) ? `Array(${t.length})` : t.toString();
|
|
1121
1121
|
}
|
|
1122
1122
|
function Xt({
|
|
@@ -1130,7 +1130,7 @@ function mt({
|
|
|
1130
1130
|
aggregation: e
|
|
1131
1131
|
}, n) {
|
|
1132
1132
|
if (typeof n != "string" && typeof n != "number")
|
|
1133
|
-
return
|
|
1133
|
+
return Ix(n);
|
|
1134
1134
|
if (e.type === "custom")
|
|
1135
1135
|
return n;
|
|
1136
1136
|
try {
|
|
@@ -1139,7 +1139,7 @@ function mt({
|
|
|
1139
1139
|
return console.error(s), n;
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function zx(t, e) {
|
|
1143
1143
|
if (t.type === "static")
|
|
1144
1144
|
return t.staticColor;
|
|
1145
1145
|
if (t.type === "continuous")
|
|
@@ -1163,7 +1163,7 @@ function Tx(t, e) {
|
|
|
1163
1163
|
return /* @__PURE__ */ r.jsx(w, { sx: {
|
|
1164
1164
|
fontSize: a,
|
|
1165
1165
|
display: "inline"
|
|
1166
|
-
}, color:
|
|
1166
|
+
}, color: zx(n, l), weight: o, children: c });
|
|
1167
1167
|
}
|
|
1168
1168
|
function Dx(t, e) {
|
|
1169
1169
|
const n = {};
|
|
@@ -1364,7 +1364,7 @@ class Qe extends L.Component {
|
|
|
1364
1364
|
};
|
|
1365
1365
|
return /* @__PURE__ */ r.jsxs(M, { children: [
|
|
1366
1366
|
/* @__PURE__ */ r.jsx(w, { size: "xs", children: (e = this.state.error) == null ? void 0 : e.message }),
|
|
1367
|
-
/* @__PURE__ */ r.jsx(
|
|
1367
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", size: "xs", mx: "auto", compact: !0, sx: {
|
|
1368
1368
|
display: "block"
|
|
1369
1369
|
}, onClick: n, children: "Retry" })
|
|
1370
1370
|
] });
|
|
@@ -1731,7 +1731,7 @@ class Pi {
|
|
|
1731
1731
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
const lc = "13.4.
|
|
1734
|
+
const lc = "13.4.2", ng = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1735
1735
|
__proto__: null,
|
|
1736
1736
|
version: lc
|
|
1737
1737
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1928,7 +1928,7 @@ function ag({
|
|
|
1928
1928
|
min: j,
|
|
1929
1929
|
max: T
|
|
1930
1930
|
} = C(() => {
|
|
1931
|
-
const P =
|
|
1931
|
+
const P = Ih(h, (X) => X[f.columnKey]), q = zh(h, (X) => X[f.columnKey]);
|
|
1932
1932
|
return {
|
|
1933
1933
|
min: se(P, f.columnKey),
|
|
1934
1934
|
max: se(q, f.columnKey)
|
|
@@ -2035,7 +2035,7 @@ function vc({
|
|
|
2035
2035
|
firstDayOfWeek: 1
|
|
2036
2036
|
}, children: t });
|
|
2037
2037
|
}
|
|
2038
|
-
const G =
|
|
2038
|
+
const G = I(ne(({
|
|
2039
2039
|
label: t,
|
|
2040
2040
|
required: e,
|
|
2041
2041
|
description: n,
|
|
@@ -2051,9 +2051,9 @@ const G = z(ne(({
|
|
|
2051
2051
|
} = pt(), h = L.useMemo(() => u.dataFieldOptions(s, o, a), [s, o, a]);
|
|
2052
2052
|
if (h.length === 0) {
|
|
2053
2053
|
const m = u.explainDataKey(s);
|
|
2054
|
-
return /* @__PURE__ */ r.jsxs(
|
|
2055
|
-
/* @__PURE__ */ r.jsx(
|
|
2056
|
-
/* @__PURE__ */ r.jsx(
|
|
2054
|
+
return /* @__PURE__ */ r.jsxs(Ie, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
|
|
2055
|
+
/* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(D, { label: t, required: e, defaultValue: m.columnKey, readOnly: !0, disabled: !0 }) }) }),
|
|
2056
|
+
/* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsxs(b, { position: "left", spacing: 0, children: [
|
|
2057
2057
|
/* @__PURE__ */ r.jsx(w, { size: "xs", color: m.queryName ? "black" : "red", sx: {
|
|
2058
2058
|
fontFamily: "monospace"
|
|
2059
2059
|
}, children: m.queryName ?? m.queryID }),
|
|
@@ -2128,7 +2128,7 @@ function mg({
|
|
|
2128
2128
|
] }),
|
|
2129
2129
|
/* @__PURE__ */ r.jsx(b, { position: "center", mt: "xl", grow: !0, sx: {
|
|
2130
2130
|
width: "60%"
|
|
2131
|
-
}, mx: "auto", children: /* @__PURE__ */ r.jsxs(
|
|
2131
|
+
}, mx: "auto", children: /* @__PURE__ */ r.jsxs(z, { color: "blue", type: "submit", children: [
|
|
2132
2132
|
/* @__PURE__ */ r.jsx(Gt, { size: 20 }),
|
|
2133
2133
|
/* @__PURE__ */ r.jsx(w, { ml: "md", children: "Save" })
|
|
2134
2134
|
] }) })
|
|
@@ -2288,17 +2288,17 @@ const kt = ne(({
|
|
|
2288
2288
|
x(He().func_content);
|
|
2289
2289
|
}, j = n ?? i("chart.axis.customize_label");
|
|
2290
2290
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2291
|
-
/* @__PURE__ */ r.jsx(
|
|
2291
|
+
/* @__PURE__ */ r.jsx(z, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(on, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
2292
2292
|
flexGrow: 0
|
|
2293
2293
|
}, children: j }),
|
|
2294
2294
|
/* @__PURE__ */ r.jsx(je, { size: 800, title: j, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(k, { children: [
|
|
2295
2295
|
/* @__PURE__ */ r.jsx(ee, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (T) => u(T.currentTarget.checked) }),
|
|
2296
2296
|
/* @__PURE__ */ r.jsx(_g, { value: c.func_content, onChange: x, disabled: !c.enabled }),
|
|
2297
2297
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
2298
|
-
/* @__PURE__ */ r.jsx(
|
|
2298
|
+
/* @__PURE__ */ r.jsx(z, { onClick: f, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: i("common.actions.reset_to_default") }),
|
|
2299
2299
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
2300
|
-
/* @__PURE__ */ r.jsx(
|
|
2301
|
-
/* @__PURE__ */ r.jsx(
|
|
2300
|
+
/* @__PURE__ */ r.jsx(z, { onClick: m, variant: "subtle", children: i("common.actions.cancel") }),
|
|
2301
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), onClick: h, children: i("common.actions.save") })
|
|
2302
2302
|
] })
|
|
2303
2303
|
] })
|
|
2304
2304
|
] }) })
|
|
@@ -2594,7 +2594,7 @@ function Cg(t, e) {
|
|
|
2594
2594
|
commit: o
|
|
2595
2595
|
};
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2597
|
+
function Ig(t) {
|
|
2598
2598
|
const {
|
|
2599
2599
|
t: e
|
|
2600
2600
|
} = y(), {
|
|
@@ -2623,7 +2623,7 @@ function zg(t) {
|
|
|
2623
2623
|
/* @__PURE__ */ r.jsx(Ve, { label: e("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => o(c.currentTarget.checked) })
|
|
2624
2624
|
] });
|
|
2625
2625
|
}
|
|
2626
|
-
async function
|
|
2626
|
+
async function zg(t, e) {
|
|
2627
2627
|
const {
|
|
2628
2628
|
urlTemplate: n,
|
|
2629
2629
|
openInNewTab: s
|
|
@@ -2648,8 +2648,8 @@ class Tg extends Se {
|
|
|
2648
2648
|
const Dg = {
|
|
2649
2649
|
displayName: "interactions.operation.open_link.label",
|
|
2650
2650
|
id: "builtin:op:open-link",
|
|
2651
|
-
configRender:
|
|
2652
|
-
run:
|
|
2651
|
+
configRender: Ig,
|
|
2652
|
+
run: zg,
|
|
2653
2653
|
migrator: new Tg(),
|
|
2654
2654
|
createDefaultConfig: () => ({
|
|
2655
2655
|
version: 1,
|
|
@@ -2683,7 +2683,7 @@ const Ag = {
|
|
|
2683
2683
|
id: "builtin:op:debug",
|
|
2684
2684
|
configRender: Lg,
|
|
2685
2685
|
run: Eg
|
|
2686
|
-
}, Rg =
|
|
2686
|
+
}, Rg = I((t) => {
|
|
2687
2687
|
const {
|
|
2688
2688
|
t: e
|
|
2689
2689
|
} = y(), n = oe(), {
|
|
@@ -2736,7 +2736,7 @@ const Pg = {
|
|
|
2736
2736
|
}, rightSection: /* @__PURE__ */ r.jsx(J, { color: "green", size: "xs", onClick: i, disabled: n === t, children: /* @__PURE__ */ r.jsx($e, {}) }) });
|
|
2737
2737
|
}, Vg = {
|
|
2738
2738
|
dictionary: {}
|
|
2739
|
-
}, qg =
|
|
2739
|
+
}, qg = I((t) => {
|
|
2740
2740
|
const {
|
|
2741
2741
|
t: e
|
|
2742
2742
|
} = y(), n = oe(), {
|
|
@@ -2801,7 +2801,7 @@ const Bg = {
|
|
|
2801
2801
|
run: Ng
|
|
2802
2802
|
}, Wg = {
|
|
2803
2803
|
filter_keys: []
|
|
2804
|
-
}, Gg =
|
|
2804
|
+
}, Gg = I((t) => {
|
|
2805
2805
|
const {
|
|
2806
2806
|
t: e
|
|
2807
2807
|
} = y(), n = oe(), {
|
|
@@ -3098,7 +3098,7 @@ class Kg {
|
|
|
3098
3098
|
function Jg(t) {
|
|
3099
3099
|
return !!t.operationId;
|
|
3100
3100
|
}
|
|
3101
|
-
const Xg =
|
|
3101
|
+
const Xg = I(({
|
|
3102
3102
|
model: t,
|
|
3103
3103
|
onClick: e
|
|
3104
3104
|
}) => {
|
|
@@ -3106,8 +3106,8 @@ const Xg = z(({
|
|
|
3106
3106
|
const {
|
|
3107
3107
|
t: n
|
|
3108
3108
|
} = y(), s = (i = t.operationSchema) == null ? void 0 : i.displayName;
|
|
3109
|
-
return /* @__PURE__ */ r.jsx(
|
|
3110
|
-
}), Zg =
|
|
3109
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "outline", onClick: e, children: n(s) });
|
|
3110
|
+
}), Zg = I(({
|
|
3111
3111
|
model: t
|
|
3112
3112
|
}) => {
|
|
3113
3113
|
const e = {
|
|
@@ -3116,7 +3116,7 @@ const Xg = z(({
|
|
|
3116
3116
|
variables: []
|
|
3117
3117
|
};
|
|
3118
3118
|
return ls(t.operationSchema.configRender, e);
|
|
3119
|
-
}), ef =
|
|
3119
|
+
}), ef = I(({
|
|
3120
3120
|
model: t
|
|
3121
3121
|
}) => {
|
|
3122
3122
|
const {
|
|
@@ -3130,7 +3130,7 @@ const Xg = z(({
|
|
|
3130
3130
|
await t.changeSchema(s.find((l) => l.id === o));
|
|
3131
3131
|
}
|
|
3132
3132
|
return /* @__PURE__ */ r.jsx(F, { label: e("interactions.operation.label"), data: i, onChange: a, value: t.operationSchema.id, withinPortal: !0, zIndex: 340 });
|
|
3133
|
-
}), tf =
|
|
3133
|
+
}), tf = I((t) => {
|
|
3134
3134
|
const {
|
|
3135
3135
|
t: e
|
|
3136
3136
|
} = y(), [n, {
|
|
@@ -3189,7 +3189,7 @@ function rf(t) {
|
|
|
3189
3189
|
function sf(t, e) {
|
|
3190
3190
|
return vt(() => new nf(t, e), [t, e]);
|
|
3191
3191
|
}
|
|
3192
|
-
const af =
|
|
3192
|
+
const af = I(({
|
|
3193
3193
|
model: t,
|
|
3194
3194
|
onClick: e
|
|
3195
3195
|
}) => {
|
|
@@ -3198,8 +3198,8 @@ const af = z(({
|
|
|
3198
3198
|
instance: t.instance,
|
|
3199
3199
|
sampleData: t.sampleData
|
|
3200
3200
|
};
|
|
3201
|
-
return /* @__PURE__ */ r.jsx(
|
|
3202
|
-
}), of =
|
|
3201
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "outline", onClick: e, children: ls(n, s) });
|
|
3202
|
+
}), of = I(({
|
|
3203
3203
|
model: t
|
|
3204
3204
|
}) => {
|
|
3205
3205
|
const {
|
|
@@ -3213,7 +3213,7 @@ const af = z(({
|
|
|
3213
3213
|
await t.changeSchema(s.find((l) => l.id === o));
|
|
3214
3214
|
}
|
|
3215
3215
|
return /* @__PURE__ */ r.jsx(F, { label: e("interactions.trigger.label"), data: i, value: t.triggerSchema.id, onChange: a });
|
|
3216
|
-
}), lf =
|
|
3216
|
+
}), lf = I(({
|
|
3217
3217
|
model: t
|
|
3218
3218
|
}) => {
|
|
3219
3219
|
const e = {
|
|
@@ -3222,7 +3222,7 @@ const af = z(({
|
|
|
3222
3222
|
sampleData: t.sampleData
|
|
3223
3223
|
};
|
|
3224
3224
|
return ls(t.triggerSchema.configRender, e);
|
|
3225
|
-
}), cf =
|
|
3225
|
+
}), cf = I((t) => {
|
|
3226
3226
|
const {
|
|
3227
3227
|
t: e
|
|
3228
3228
|
} = y(), [n, {
|
|
@@ -3245,7 +3245,7 @@ function df(t, e) {
|
|
|
3245
3245
|
s(i);
|
|
3246
3246
|
}, [e, t]), n;
|
|
3247
3247
|
}
|
|
3248
|
-
const uf =
|
|
3248
|
+
const uf = I(({
|
|
3249
3249
|
item: t,
|
|
3250
3250
|
manager: e,
|
|
3251
3251
|
instance: n,
|
|
@@ -3294,10 +3294,10 @@ const uf = z(({
|
|
|
3294
3294
|
}
|
|
3295
3295
|
});
|
|
3296
3296
|
return /* @__PURE__ */ r.jsxs(k, { children: [
|
|
3297
|
-
/* @__PURE__ */ r.jsx(
|
|
3297
|
+
/* @__PURE__ */ r.jsx(In, { visible: m }),
|
|
3298
3298
|
h === 0 && /* @__PURE__ */ r.jsx(ds, { icon: /* @__PURE__ */ r.jsx(cm, { size: 16 }), title: e("interactions.unavailable"), color: "gray", children: e("interactions.unavailable_reason") }),
|
|
3299
3299
|
c.map((x) => /* @__PURE__ */ r.jsx(uf, { onRemove: u, instance: a, sampleData: o, variables: l, item: x, manager: t.interactionManager }, x.id)),
|
|
3300
|
-
/* @__PURE__ */ r.jsx(
|
|
3300
|
+
/* @__PURE__ */ r.jsx(z, { style: {
|
|
3301
3301
|
width: "fit-content"
|
|
3302
3302
|
}, onClick: () => d(), disabled: h === 0, children: e("interactions.add") })
|
|
3303
3303
|
] });
|
|
@@ -3377,17 +3377,17 @@ const bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3377
3377
|
__proto__: null,
|
|
3378
3378
|
getYAxis: ff,
|
|
3379
3379
|
yAxis: Cc
|
|
3380
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3380
|
+
}, Symbol.toStringTag, { value: "Module" })), Ic = {
|
|
3381
3381
|
confine: !0,
|
|
3382
3382
|
appendToBody: !0
|
|
3383
3383
|
};
|
|
3384
3384
|
function yf(t) {
|
|
3385
|
-
return S.defaultsDeep({}, t,
|
|
3385
|
+
return S.defaultsDeep({}, t, Ic);
|
|
3386
3386
|
}
|
|
3387
3387
|
const _f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3388
3388
|
__proto__: null,
|
|
3389
3389
|
getTooltip: yf,
|
|
3390
|
-
tooltip:
|
|
3390
|
+
tooltip: Ic
|
|
3391
3391
|
}, Symbol.toStringTag, { value: "Module" })), me = {
|
|
3392
3392
|
...gf,
|
|
3393
3393
|
...bf,
|
|
@@ -3600,7 +3600,7 @@ function Cf(t, e, n) {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
}), T;
|
|
3602
3602
|
}
|
|
3603
|
-
function
|
|
3603
|
+
function If(t, e) {
|
|
3604
3604
|
const {
|
|
3605
3605
|
color: n
|
|
3606
3606
|
} = e, s = {
|
|
@@ -3619,7 +3619,7 @@ function zf(t, e) {
|
|
|
3619
3619
|
};
|
|
3620
3620
|
return s.renderItem = (i, a) => Cf(t, a, s), s;
|
|
3621
3621
|
}
|
|
3622
|
-
function
|
|
3622
|
+
function zf(t) {
|
|
3623
3623
|
const e = Bi(t), n = e[0].width, s = t.value(0), i = t.value(1), [a, o] = t.coord([s, i]), c = a + e[0].offset + Math.random() * n;
|
|
3624
3624
|
return {
|
|
3625
3625
|
type: "circle",
|
|
@@ -3649,7 +3649,7 @@ function Tf() {
|
|
|
3649
3649
|
},
|
|
3650
3650
|
datasetIndex: 2
|
|
3651
3651
|
};
|
|
3652
|
-
return t.renderItem = (e, n) =>
|
|
3652
|
+
return t.renderItem = (e, n) => zf(n), t;
|
|
3653
3653
|
}
|
|
3654
3654
|
function Df(t, e) {
|
|
3655
3655
|
const n = Bi(t), s = n[0].width, i = t.value(0), a = t.value(1), [o, l] = t.coord([i, a]), d = o + n[0].offset + Math.random() * s;
|
|
@@ -3683,7 +3683,7 @@ function Mf() {
|
|
|
3683
3683
|
return t.renderItem = (e, n) => Df(n), t;
|
|
3684
3684
|
}
|
|
3685
3685
|
function Lf(t, e) {
|
|
3686
|
-
const n = e[0], s =
|
|
3686
|
+
const n = e[0], s = If(n, t), i = Tf(), a = Mf();
|
|
3687
3687
|
return [{
|
|
3688
3688
|
name: "Placeholder Box",
|
|
3689
3689
|
type: "boxplot",
|
|
@@ -3743,7 +3743,7 @@ const Ef = (t, e) => {
|
|
|
3743
3743
|
mantissa: 2,
|
|
3744
3744
|
absolute: !1
|
|
3745
3745
|
});
|
|
3746
|
-
function
|
|
3746
|
+
function zc(t, e) {
|
|
3747
3747
|
return t.tooltip.metrics.map((n) => {
|
|
3748
3748
|
const s = O(n.data_key);
|
|
3749
3749
|
return `
|
|
@@ -3758,7 +3758,7 @@ function Rf(t, e) {
|
|
|
3758
3758
|
<th style="text-align: right; padding: 0 1em;">${t.y_axis.name}</th>
|
|
3759
3759
|
<td style="text-align: left; padding: 0 1em;">${e[1]}</td>
|
|
3760
3760
|
</tr>
|
|
3761
|
-
`], i =
|
|
3761
|
+
`], i = zc(t, e[2]);
|
|
3762
3762
|
return s.push(...i), `
|
|
3763
3763
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
3764
3764
|
<div style="${n}">${e[0]}</div>
|
|
@@ -3775,7 +3775,7 @@ function $f(t, e) {
|
|
|
3775
3775
|
<th style="text-align: right; padding: 0 1em;">${t.y_axis.name}</th>
|
|
3776
3776
|
<td style="text-align: left; padding: 0 1em;">${e[1]}</td>
|
|
3777
3777
|
</tr>
|
|
3778
|
-
`], i =
|
|
3778
|
+
`], i = zc(t, e[2]);
|
|
3779
3779
|
return s.push(...i), `
|
|
3780
3780
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
3781
3781
|
<div style="${n}">${e[0]}</div>
|
|
@@ -4150,8 +4150,8 @@ function Qf(t) {
|
|
|
4150
4150
|
typeof q == "number" && c(q);
|
|
4151
4151
|
} }),
|
|
4152
4152
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
4153
|
-
/* @__PURE__ */ r.jsx(
|
|
4154
|
-
/* @__PURE__ */ r.jsx(
|
|
4153
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", size: "xs", onClick: T, children: e("common.actions.cancel") }),
|
|
4154
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), "data-testid": "palette-item-ok", size: "xs", onClick: E, children: e("common.actions.save") })
|
|
4155
4155
|
] })
|
|
4156
4156
|
] }) })
|
|
4157
4157
|
] }),
|
|
@@ -4160,14 +4160,14 @@ function Qf(t) {
|
|
|
4160
4160
|
}, color: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: P })
|
|
4161
4161
|
] });
|
|
4162
4162
|
}
|
|
4163
|
-
const Hf =
|
|
4163
|
+
const Hf = I(({
|
|
4164
4164
|
model: t
|
|
4165
4165
|
}) => {
|
|
4166
4166
|
const {
|
|
4167
4167
|
classes: e
|
|
4168
4168
|
} = Dc(), n = Dh(0, 13, 1).map((s) => 100 / 12 * s).map((s) => [t.interpolation.getColor(s), s]);
|
|
4169
4169
|
return /* @__PURE__ */ r.jsx("div", { className: e.palette, children: n.map(([s, i], a) => /* @__PURE__ */ r.jsx(Qf, { index: a, color: s, value: t.getStepFromValue(i), onChange: (o) => t.changeStep(o, i) }, s)) });
|
|
4170
|
-
}), Uf =
|
|
4170
|
+
}), Uf = I(function(e) {
|
|
4171
4171
|
const n = vt(() => new Gf(), []);
|
|
4172
4172
|
return B(() => {
|
|
4173
4173
|
n.fromProps(e);
|
|
@@ -4207,13 +4207,13 @@ const Hf = z(({
|
|
|
4207
4207
|
m(), c(s);
|
|
4208
4208
|
};
|
|
4209
4209
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4210
|
-
/* @__PURE__ */ r.jsx(
|
|
4210
|
+
/* @__PURE__ */ r.jsx(z, { variant: "outline", onClick: h, children: e(d == null ? void 0 : d.displayName) }),
|
|
4211
4211
|
/* @__PURE__ */ r.jsx(je, { size: 508, title: e("style.color.interpolation.setup"), opened: u, onClose: m, zIndex: 320, children: u && /* @__PURE__ */ r.jsxs(k, { "data-testid": "color-interpolation-modal", children: [
|
|
4212
4212
|
/* @__PURE__ */ r.jsx(F, { label: e("style.color.interpolation.palette.label"), value: l.interpolation, data: x, onChange: f, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
|
|
4213
4213
|
/* @__PURE__ */ r.jsx(Uf, { steps: l.steps, interpolation: d, onChange: T }),
|
|
4214
4214
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
4215
|
-
/* @__PURE__ */ r.jsx(
|
|
4216
|
-
/* @__PURE__ */ r.jsx(
|
|
4215
|
+
/* @__PURE__ */ r.jsx(z, { onClick: E, variant: "subtle", children: e("common.actions.cancel") }),
|
|
4216
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), onClick: j, children: e("common.actions.save") })
|
|
4217
4217
|
] })
|
|
4218
4218
|
] }) })
|
|
4219
4219
|
] });
|
|
@@ -4332,7 +4332,7 @@ const Hf = z(({
|
|
|
4332
4332
|
index: T
|
|
4333
4333
|
}),
|
|
4334
4334
|
/* @__PURE__ */ r.jsx(R, { mb: -10, mt: 10, variant: "dashed" }),
|
|
4335
|
-
/* @__PURE__ */ r.jsx(
|
|
4335
|
+
/* @__PURE__ */ r.jsx(z, { leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 16 }), color: "red", variant: "light", onClick: () => h(T), sx: {
|
|
4336
4336
|
top: 15,
|
|
4337
4337
|
right: 5
|
|
4338
4338
|
}, disabled: c == null ? void 0 : c({
|
|
@@ -4601,7 +4601,7 @@ function lb({
|
|
|
4601
4601
|
toggle: s
|
|
4602
4602
|
}] = an(!1);
|
|
4603
4603
|
return /* @__PURE__ */ r.jsxs(M, { children: [
|
|
4604
|
-
/* @__PURE__ */ r.jsx(
|
|
4604
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", w: "100%", compact: !0, onClick: s, leftIcon: n ? /* @__PURE__ */ r.jsx(gm, { size: 14 }) : /* @__PURE__ */ r.jsx(fm, { size: 14 }), children: e(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
|
|
4605
4605
|
/* @__PURE__ */ r.jsx(_r, { in: n, children: n && /* @__PURE__ */ r.jsxs(Re, { highlightOnHover: !0, sx: {
|
|
4606
4606
|
tableLayout: "fixed"
|
|
4607
4607
|
}, children: [
|
|
@@ -5056,7 +5056,7 @@ const Wi = {
|
|
|
5056
5056
|
top: "flex-start",
|
|
5057
5057
|
center: "center",
|
|
5058
5058
|
bottom: "flex-end"
|
|
5059
|
-
},
|
|
5059
|
+
}, Ib = I(({
|
|
5060
5060
|
context: t,
|
|
5061
5061
|
instance: e
|
|
5062
5062
|
}) => {
|
|
@@ -5083,8 +5083,8 @@ const Wi = {
|
|
|
5083
5083
|
height: m,
|
|
5084
5084
|
justifyContent: kb[c],
|
|
5085
5085
|
alignItems: Cb[d]
|
|
5086
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
5087
|
-
}),
|
|
5086
|
+
}, children: /* @__PURE__ */ r.jsx(z, { ...u, onClick: f, children: Ci(l)(x) }) });
|
|
5087
|
+
}), zb = ({
|
|
5088
5088
|
value: t,
|
|
5089
5089
|
onChange: e,
|
|
5090
5090
|
label: n
|
|
@@ -5181,7 +5181,7 @@ function Db({
|
|
|
5181
5181
|
),
|
|
5182
5182
|
/* @__PURE__ */ r.jsx(g, { control: a, name: "color", render: ({
|
|
5183
5183
|
field: m
|
|
5184
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
5184
|
+
}) => /* @__PURE__ */ r.jsx(zb, { label: "Theme", ...m }) })
|
|
5185
5185
|
] }),
|
|
5186
5186
|
/* @__PURE__ */ r.jsxs(_n, { cols: 2, children: [
|
|
5187
5187
|
/* @__PURE__ */ r.jsx(g, { control: a, name: "size", render: ({
|
|
@@ -5255,7 +5255,7 @@ const Rb = {
|
|
|
5255
5255
|
displayGroup: "chart.groups.others",
|
|
5256
5256
|
migrator: new Ab(),
|
|
5257
5257
|
name: "button",
|
|
5258
|
-
viewRender:
|
|
5258
|
+
viewRender: Ib,
|
|
5259
5259
|
configRender: Db,
|
|
5260
5260
|
createConfig() {
|
|
5261
5261
|
return {
|
|
@@ -5588,7 +5588,7 @@ function Jb({
|
|
|
5588
5588
|
variables: i
|
|
5589
5589
|
}, {
|
|
5590
5590
|
lodash: S,
|
|
5591
|
-
interpolate:
|
|
5591
|
+
interpolate: zn
|
|
5592
5592
|
});
|
|
5593
5593
|
} catch (m) {
|
|
5594
5594
|
return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${m.message}`), 10;
|
|
@@ -6383,17 +6383,17 @@ const by = ({
|
|
|
6383
6383
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
6384
6384
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
6385
6385
|
width: "50%"
|
|
6386
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
6386
|
+
}, children: /* @__PURE__ */ r.jsx(z, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
|
|
6387
6387
|
flexGrow: 0
|
|
6388
6388
|
}, leftIcon: /* @__PURE__ */ r.jsx(on, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
|
|
6389
6389
|
/* @__PURE__ */ r.jsx(je, { size: 800, title: n("chart.symbol_size.setup.title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
|
|
6390
6390
|
/* @__PURE__ */ r.jsx(R, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
|
|
6391
6391
|
/* @__PURE__ */ r.jsx(by, { value: o.func_content, onChange: u }),
|
|
6392
6392
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
6393
|
-
/* @__PURE__ */ r.jsx(
|
|
6393
|
+
/* @__PURE__ */ r.jsx(z, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
6394
6394
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
6395
|
-
/* @__PURE__ */ r.jsx(
|
|
6396
|
-
/* @__PURE__ */ r.jsx(
|
|
6395
|
+
/* @__PURE__ */ r.jsx(z, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
6396
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
6397
6397
|
] })
|
|
6398
6398
|
] })
|
|
6399
6399
|
] }) })
|
|
@@ -7242,7 +7242,7 @@ class Pr {
|
|
|
7242
7242
|
applyPending(e) {
|
|
7243
7243
|
for (let n = 0, s = this.pendingMarks; n < s.length; n++) {
|
|
7244
7244
|
let i = s[n];
|
|
7245
|
-
(this.type ? this.type.allowsMarkType(i.type) :
|
|
7245
|
+
(this.type ? this.type.allowsMarkType(i.type) : Iy(i.type, e)) && !i.isInSet(this.activeMarks) && (this.activeMarks = i.addToSet(this.activeMarks), this.pendingMarks = i.removeFromSet(this.pendingMarks));
|
|
7246
7246
|
}
|
|
7247
7247
|
}
|
|
7248
7248
|
inlineContext(e) {
|
|
@@ -7516,7 +7516,7 @@ class _o {
|
|
|
7516
7516
|
}
|
|
7517
7517
|
}
|
|
7518
7518
|
addPendingMark(e) {
|
|
7519
|
-
let n =
|
|
7519
|
+
let n = zy(e, this.top.pendingMarks);
|
|
7520
7520
|
n && this.top.stashMarks.push(n), this.top.pendingMarks = e.addToSet(this.top.pendingMarks);
|
|
7521
7521
|
}
|
|
7522
7522
|
removePendingMark(e, n) {
|
|
@@ -7555,7 +7555,7 @@ function vo(t) {
|
|
|
7555
7555
|
e[n] = t[n];
|
|
7556
7556
|
return e;
|
|
7557
7557
|
}
|
|
7558
|
-
function
|
|
7558
|
+
function Iy(t, e) {
|
|
7559
7559
|
let n = e.schema.nodes;
|
|
7560
7560
|
for (let s in n) {
|
|
7561
7561
|
let i = n[s];
|
|
@@ -7573,7 +7573,7 @@ function zy(t, e) {
|
|
|
7573
7573
|
return !0;
|
|
7574
7574
|
}
|
|
7575
7575
|
}
|
|
7576
|
-
function
|
|
7576
|
+
function zy(t, e) {
|
|
7577
7577
|
for (let n = 0; n < e.length; n++)
|
|
7578
7578
|
if (t.eq(e[n]))
|
|
7579
7579
|
return e[n];
|
|
@@ -7963,7 +7963,7 @@ class fr extends it {
|
|
|
7963
7963
|
}
|
|
7964
7964
|
}
|
|
7965
7965
|
it.jsonID("removeNodeMark", fr);
|
|
7966
|
-
class
|
|
7966
|
+
class It extends it {
|
|
7967
7967
|
/**
|
|
7968
7968
|
The given `slice` should fit the 'gap' between `from` and
|
|
7969
7969
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -7983,21 +7983,21 @@ class zt extends it {
|
|
|
7983
7983
|
return new dt([this.from, this.to - this.from, this.slice.size]);
|
|
7984
7984
|
}
|
|
7985
7985
|
invert(e) {
|
|
7986
|
-
return new
|
|
7986
|
+
return new It(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
7987
7987
|
}
|
|
7988
7988
|
map(e) {
|
|
7989
7989
|
let n = e.mapResult(this.from, 1), s = e.mapResult(this.to, -1);
|
|
7990
|
-
return n.deletedAcross && s.deletedAcross ? null : new
|
|
7990
|
+
return n.deletedAcross && s.deletedAcross ? null : new It(n.pos, Math.max(n.pos, s.pos), this.slice);
|
|
7991
7991
|
}
|
|
7992
7992
|
merge(e) {
|
|
7993
|
-
if (!(e instanceof
|
|
7993
|
+
if (!(e instanceof It) || e.structure || this.structure)
|
|
7994
7994
|
return null;
|
|
7995
7995
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
7996
7996
|
let n = this.slice.size + e.slice.size == 0 ? fe.empty : new fe(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
7997
|
-
return new
|
|
7997
|
+
return new It(this.from, this.to + (e.to - e.from), n, this.structure);
|
|
7998
7998
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
7999
7999
|
let n = this.slice.size + e.slice.size == 0 ? fe.empty : new fe(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
8000
|
-
return new
|
|
8000
|
+
return new It(e.from, this.to, n, this.structure);
|
|
8001
8001
|
} else
|
|
8002
8002
|
return null;
|
|
8003
8003
|
}
|
|
@@ -8011,10 +8011,10 @@ class zt extends it {
|
|
|
8011
8011
|
static fromJSON(e, n) {
|
|
8012
8012
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
8013
8013
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
8014
|
-
return new
|
|
8014
|
+
return new It(n.from, n.to, fe.fromJSON(e, n.slice), !!n.structure);
|
|
8015
8015
|
}
|
|
8016
8016
|
}
|
|
8017
|
-
it.jsonID("replace",
|
|
8017
|
+
it.jsonID("replace", It);
|
|
8018
8018
|
class jn extends it {
|
|
8019
8019
|
/**
|
|
8020
8020
|
Create a replace-around step with the given range and gap.
|
|
@@ -8381,7 +8381,7 @@ class Ae extends _e {
|
|
|
8381
8381
|
return e instanceof Ae && e.anchor == this.anchor && e.head == this.head;
|
|
8382
8382
|
}
|
|
8383
8383
|
getBookmark() {
|
|
8384
|
-
return new
|
|
8384
|
+
return new Is(this.anchor, this.head);
|
|
8385
8385
|
}
|
|
8386
8386
|
toJSON() {
|
|
8387
8387
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -8422,12 +8422,12 @@ class Ae extends _e {
|
|
|
8422
8422
|
}
|
|
8423
8423
|
}
|
|
8424
8424
|
_e.jsonID("text", Ae);
|
|
8425
|
-
class
|
|
8425
|
+
class Is {
|
|
8426
8426
|
constructor(e, n) {
|
|
8427
8427
|
this.anchor = e, this.head = n;
|
|
8428
8428
|
}
|
|
8429
8429
|
map(e) {
|
|
8430
|
-
return new
|
|
8430
|
+
return new Is(e.map(this.anchor), e.map(this.head));
|
|
8431
8431
|
}
|
|
8432
8432
|
resolve(e) {
|
|
8433
8433
|
return Ae.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
@@ -8488,7 +8488,7 @@ class Xi {
|
|
|
8488
8488
|
}
|
|
8489
8489
|
map(e) {
|
|
8490
8490
|
let { deleted: n, pos: s } = e.mapResult(this.anchor);
|
|
8491
|
-
return n ? new
|
|
8491
|
+
return n ? new Is(s, s) : new Xi(s);
|
|
8492
8492
|
}
|
|
8493
8493
|
resolve(e) {
|
|
8494
8494
|
let n = e.resolve(this.anchor), s = n.nodeAfter;
|
|
@@ -8560,19 +8560,19 @@ function Co(t, e, n) {
|
|
|
8560
8560
|
if (s < e)
|
|
8561
8561
|
return;
|
|
8562
8562
|
let i = t.steps[s];
|
|
8563
|
-
if (!(i instanceof
|
|
8563
|
+
if (!(i instanceof It || i instanceof jn))
|
|
8564
8564
|
return;
|
|
8565
8565
|
let a = t.mapping.maps[s], o;
|
|
8566
8566
|
a.forEach((l, c, d, u) => {
|
|
8567
8567
|
o == null && (o = u);
|
|
8568
8568
|
}), t.setSelection(_e.near(t.doc.resolve(o), n));
|
|
8569
8569
|
}
|
|
8570
|
-
function
|
|
8570
|
+
function Io(t, e) {
|
|
8571
8571
|
return !e || !t ? t : t.bind(e);
|
|
8572
8572
|
}
|
|
8573
8573
|
class Or {
|
|
8574
8574
|
constructor(e, n, s) {
|
|
8575
|
-
this.name = e, this.init =
|
|
8575
|
+
this.name = e, this.init = Io(n.init, s), this.apply = Io(n.apply, s);
|
|
8576
8576
|
}
|
|
8577
8577
|
}
|
|
8578
8578
|
new Or("doc", {
|
|
@@ -8611,7 +8611,7 @@ function Gc(t, e, n) {
|
|
|
8611
8611
|
}
|
|
8612
8612
|
return n;
|
|
8613
8613
|
}
|
|
8614
|
-
class
|
|
8614
|
+
class Ir {
|
|
8615
8615
|
/**
|
|
8616
8616
|
Create a plugin.
|
|
8617
8617
|
*/
|
|
@@ -8629,7 +8629,7 @@ const Xs = /* @__PURE__ */ Object.create(null);
|
|
|
8629
8629
|
function Qc(t) {
|
|
8630
8630
|
return t in Xs ? t + "$" + ++Xs[t] : (Xs[t] = 0, t + "$");
|
|
8631
8631
|
}
|
|
8632
|
-
class
|
|
8632
|
+
class zr {
|
|
8633
8633
|
/**
|
|
8634
8634
|
Create a plugin key.
|
|
8635
8635
|
*/
|
|
@@ -8840,8 +8840,8 @@ Lt.create({
|
|
|
8840
8840
|
name: "clipboardTextSerializer",
|
|
8841
8841
|
addProseMirrorPlugins() {
|
|
8842
8842
|
return [
|
|
8843
|
-
new
|
|
8844
|
-
key: new
|
|
8843
|
+
new Ir({
|
|
8844
|
+
key: new zr("clipboardTextSerializer"),
|
|
8845
8845
|
props: {
|
|
8846
8846
|
clipboardTextSerializer: () => {
|
|
8847
8847
|
const { editor: t } = this, { state: e, schema: n } = t, { doc: s, selection: i } = e, { ranges: a } = i, o = Math.min(...a.map((u) => u.$from.pos)), l = Math.max(...a.map((u) => u.$to.pos)), c = Ny(n);
|
|
@@ -9001,7 +9001,7 @@ const s_ = (t = null, e = {}) => ({ editor: n, view: s, tr: i, dispatch: a }) =>
|
|
|
9001
9001
|
const l = r_(i.doc, t) || n.state.selection, c = n.state.selection.eq(l);
|
|
9002
9002
|
return a && (c || i.setSelection(l), c && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
|
|
9003
9003
|
}, i_ = (t, e) => (n) => t.every((s, i) => e(s, { ...n, index: i })), a_ = (t, e) => ({ tr: n, commands: s }) => s.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e);
|
|
9004
|
-
function
|
|
9004
|
+
function zo(t) {
|
|
9005
9005
|
const e = `<body>${t}</body>`;
|
|
9006
9006
|
return new window.DOMParser().parseFromString(e, "text/html").body;
|
|
9007
9007
|
}
|
|
@@ -9018,7 +9018,7 @@ function rs(t, e, n) {
|
|
|
9018
9018
|
}
|
|
9019
9019
|
if (typeof t == "string") {
|
|
9020
9020
|
const s = Zr.fromSchema(e);
|
|
9021
|
-
return n.slice ? s.parseSlice(
|
|
9021
|
+
return n.slice ? s.parseSlice(zo(t), n.parseOptions).content : s.parse(zo(t), n.parseOptions);
|
|
9022
9022
|
}
|
|
9023
9023
|
return rs("", e, n);
|
|
9024
9024
|
}
|
|
@@ -9027,7 +9027,7 @@ function o_(t, e, n) {
|
|
|
9027
9027
|
if (s < e)
|
|
9028
9028
|
return;
|
|
9029
9029
|
const i = t.steps[s];
|
|
9030
|
-
if (!(i instanceof
|
|
9030
|
+
if (!(i instanceof It || i instanceof jn))
|
|
9031
9031
|
return;
|
|
9032
9032
|
const a = t.mapping.maps[s];
|
|
9033
9033
|
let o = 0;
|
|
@@ -9145,12 +9145,12 @@ const __ = (t, e) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
9145
9145
|
}, v_ = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), j_ = () => ({ tr: t, commands: e }) => e.setTextSelection({
|
|
9146
9146
|
from: 0,
|
|
9147
9147
|
to: t.doc.content.size
|
|
9148
|
-
}), w_ = () => ({ state: t, dispatch: e }) => rp(t, e), S_ = () => ({ state: t, dispatch: e }) => sp(t, e), k_ = () => ({ state: t, dispatch: e }) => ip(t, e), C_ = () => ({ state: t, dispatch: e }) => ap(t, e),
|
|
9149
|
-
function
|
|
9148
|
+
}), w_ = () => ({ state: t, dispatch: e }) => rp(t, e), S_ = () => ({ state: t, dispatch: e }) => sp(t, e), k_ = () => ({ state: t, dispatch: e }) => ip(t, e), C_ = () => ({ state: t, dispatch: e }) => ap(t, e), I_ = () => ({ state: t, dispatch: e }) => op(t, e);
|
|
9149
|
+
function z_(t, e, n = {}) {
|
|
9150
9150
|
return rs(t, e, { slice: !1, parseOptions: n });
|
|
9151
9151
|
}
|
|
9152
9152
|
const T_ = (t, e = !1, n = {}) => ({ tr: s, editor: i, dispatch: a }) => {
|
|
9153
|
-
const { doc: o } = s, l =
|
|
9153
|
+
const { doc: o } = s, l = z_(t, i.schema, n);
|
|
9154
9154
|
return a && s.replaceWith(0, o.content.size, l).setMeta("preventUpdate", !e), !0;
|
|
9155
9155
|
};
|
|
9156
9156
|
function D_(t) {
|
|
@@ -9512,7 +9512,7 @@ var Z_ = /* @__PURE__ */ Object.freeze({
|
|
|
9512
9512
|
selectNodeForward: S_,
|
|
9513
9513
|
selectParentNode: k_,
|
|
9514
9514
|
selectTextblockEnd: C_,
|
|
9515
|
-
selectTextblockStart:
|
|
9515
|
+
selectTextblockStart: I_,
|
|
9516
9516
|
setContent: T_,
|
|
9517
9517
|
setMark: R_,
|
|
9518
9518
|
setMeta: $_,
|
|
@@ -9545,8 +9545,8 @@ Lt.create({
|
|
|
9545
9545
|
name: "editable",
|
|
9546
9546
|
addProseMirrorPlugins() {
|
|
9547
9547
|
return [
|
|
9548
|
-
new
|
|
9549
|
-
key: new
|
|
9548
|
+
new Ir({
|
|
9549
|
+
key: new zr("editable"),
|
|
9550
9550
|
props: {
|
|
9551
9551
|
editable: () => this.editor.options.editable
|
|
9552
9552
|
}
|
|
@@ -9559,8 +9559,8 @@ Lt.create({
|
|
|
9559
9559
|
addProseMirrorPlugins() {
|
|
9560
9560
|
const { editor: t } = this;
|
|
9561
9561
|
return [
|
|
9562
|
-
new
|
|
9563
|
-
key: new
|
|
9562
|
+
new Ir({
|
|
9563
|
+
key: new zr("focusEvents"),
|
|
9564
9564
|
props: {
|
|
9565
9565
|
handleDOMEvents: {
|
|
9566
9566
|
focus: (e, n) => {
|
|
@@ -9633,8 +9633,8 @@ Lt.create({
|
|
|
9633
9633
|
// to a paragraph if necessary.
|
|
9634
9634
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
9635
9635
|
// with many other commands.
|
|
9636
|
-
new
|
|
9637
|
-
key: new
|
|
9636
|
+
new Ir({
|
|
9637
|
+
key: new zr("clearDocument"),
|
|
9638
9638
|
appendTransaction: (t, e, n) => {
|
|
9639
9639
|
if (!(t.some((f) => f.docChanged) && !e.doc.eq(n.doc)))
|
|
9640
9640
|
return;
|
|
@@ -9659,8 +9659,8 @@ Lt.create({
|
|
|
9659
9659
|
name: "tabindex",
|
|
9660
9660
|
addProseMirrorPlugins() {
|
|
9661
9661
|
return [
|
|
9662
|
-
new
|
|
9663
|
-
key: new
|
|
9662
|
+
new Ir({
|
|
9663
|
+
key: new zr("tabindex"),
|
|
9664
9664
|
props: {
|
|
9665
9665
|
attributes: this.editor.isEditable ? { tabindex: "0" } : {}
|
|
9666
9666
|
}
|
|
@@ -9724,7 +9724,7 @@ const Zc = Lt.create({
|
|
|
9724
9724
|
const s = n.currentTarget.value;
|
|
9725
9725
|
s ? t.chain().focus().setFontSize(s).run() : t.chain().focus().unsetFontSize().run();
|
|
9726
9726
|
} }) });
|
|
9727
|
-
},
|
|
9727
|
+
}, zs = ({
|
|
9728
9728
|
value: t,
|
|
9729
9729
|
styles: e = {},
|
|
9730
9730
|
sx: n = {}
|
|
@@ -9760,7 +9760,7 @@ function sv() {
|
|
|
9760
9760
|
close: s
|
|
9761
9761
|
}] = an(!1);
|
|
9762
9762
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
9763
|
-
/* @__PURE__ */ r.jsx(je, { opened: e, onClose: s, title: t("function_utils.modal_title"), zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r.jsx(
|
|
9763
|
+
/* @__PURE__ */ r.jsx(je, { opened: e, onClose: s, title: t("function_utils.modal_title"), zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r.jsx(zs, { value: hx(t), styles: {
|
|
9764
9764
|
root: {
|
|
9765
9765
|
border: "none"
|
|
9766
9766
|
},
|
|
@@ -9771,7 +9771,7 @@ function sv() {
|
|
|
9771
9771
|
}
|
|
9772
9772
|
}
|
|
9773
9773
|
} }) }),
|
|
9774
|
-
/* @__PURE__ */ r.jsx(
|
|
9774
|
+
/* @__PURE__ */ r.jsx(z, { variant: "light", color: "violet", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 16 }), children: t("function_utils.trigger_text") })
|
|
9775
9775
|
] });
|
|
9776
9776
|
}
|
|
9777
9777
|
const iv = ({
|
|
@@ -9826,9 +9826,9 @@ const iv = ({
|
|
|
9826
9826
|
}, children: [
|
|
9827
9827
|
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(sv, {}) }),
|
|
9828
9828
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
9829
|
-
/* @__PURE__ */ r.jsx(
|
|
9830
|
-
/* @__PURE__ */ r.jsx(
|
|
9831
|
-
/* @__PURE__ */ r.jsx(
|
|
9829
|
+
/* @__PURE__ */ r.jsx(z, { onClick: u, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(wl, { size: 16 }), children: a("common.actions.reset_to_default") }),
|
|
9830
|
+
/* @__PURE__ */ r.jsx(z, { onClick: d, color: "red", size: "xs", disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(wr, { size: 16 }), children: a("common.actions.revert_changes") }),
|
|
9831
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", size: "xs", onClick: c, disabled: !h, leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), children: a("common.actions.save_changes") })
|
|
9832
9832
|
] })
|
|
9833
9833
|
] }),
|
|
9834
9834
|
/* @__PURE__ */ r.jsx(w, { size: 14, children: n }),
|
|
@@ -9853,7 +9853,7 @@ const iv = ({
|
|
|
9853
9853
|
i,
|
|
9854
9854
|
/* @__PURE__ */ r.jsx(M, { h: 600, children: /* @__PURE__ */ r.jsx(Qn, { value: e, onChange: n, defaultValue: l, label: s }) })
|
|
9855
9855
|
] }),
|
|
9856
|
-
/* @__PURE__ */ r.jsx(
|
|
9856
|
+
/* @__PURE__ */ r.jsx(z, { onClick: u, ...o, children: a })
|
|
9857
9857
|
] });
|
|
9858
9858
|
});
|
|
9859
9859
|
function av({
|
|
@@ -10363,11 +10363,11 @@ const gv = () => {
|
|
|
10363
10363
|
display: "inline-flex"
|
|
10364
10364
|
}, spacing: 6, mr: 14, children: [
|
|
10365
10365
|
/* @__PURE__ */ r.jsx(w, { children: t("chart.x_axis.x_axis_type") }),
|
|
10366
|
-
/* @__PURE__ */ r.jsxs(
|
|
10367
|
-
/* @__PURE__ */ r.jsx(
|
|
10366
|
+
/* @__PURE__ */ r.jsxs(Ie, { width: 340, shadow: "md", position: "top", children: [
|
|
10367
|
+
/* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(J, { size: "xs", sx: {
|
|
10368
10368
|
transform: "none !important"
|
|
10369
10369
|
}, children: /* @__PURE__ */ r.jsx(Dn, {}) }) }),
|
|
10370
|
-
/* @__PURE__ */ r.jsx(
|
|
10370
|
+
/* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: /* @__PURE__ */ r.jsxs(Ii, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
|
|
10371
10371
|
"Click",
|
|
10372
10372
|
/* @__PURE__ */ r.jsx(oi, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 3, children: "here" }),
|
|
10373
10373
|
"to learn more about these options"
|
|
@@ -10699,7 +10699,7 @@ function Cv(t) {
|
|
|
10699
10699
|
reference_lines: e
|
|
10700
10700
|
};
|
|
10701
10701
|
}
|
|
10702
|
-
function
|
|
10702
|
+
function Iv(t) {
|
|
10703
10703
|
const e = t.series.map((n) => {
|
|
10704
10704
|
const {
|
|
10705
10705
|
aggregation_on_group: s = Jn
|
|
@@ -10714,7 +10714,7 @@ function zv(t) {
|
|
|
10714
10714
|
series: e
|
|
10715
10715
|
};
|
|
10716
10716
|
}
|
|
10717
|
-
function
|
|
10717
|
+
function zv(t) {
|
|
10718
10718
|
const e = t.series.map((n) => {
|
|
10719
10719
|
const {
|
|
10720
10720
|
aggregation_on_value: s = Jn
|
|
@@ -11015,11 +11015,11 @@ class Nv extends Se {
|
|
|
11015
11015
|
})), this.version(8, (n) => ({
|
|
11016
11016
|
...n,
|
|
11017
11017
|
version: 8,
|
|
11018
|
-
config:
|
|
11018
|
+
config: Iv(n.config)
|
|
11019
11019
|
})), this.version(9, (n) => ({
|
|
11020
11020
|
...n,
|
|
11021
11021
|
version: 9,
|
|
11022
|
-
config:
|
|
11022
|
+
config: zv(n.config)
|
|
11023
11023
|
})), this.version(10, (n) => ({
|
|
11024
11024
|
...n,
|
|
11025
11025
|
version: 10,
|
|
@@ -11893,17 +11893,17 @@ const _j = ({
|
|
|
11893
11893
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
11894
11894
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
11895
11895
|
width: "50%"
|
|
11896
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
11896
|
+
}, children: /* @__PURE__ */ r.jsx(z, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(on, { size: 16 }), mt: 24, onClick: i, sx: {
|
|
11897
11897
|
flexGrow: 0
|
|
11898
11898
|
}, children: n("chart.number_or_dynamic_value.dynamic.setup") }) }),
|
|
11899
11899
|
/* @__PURE__ */ r.jsx(je, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
|
|
11900
11900
|
/* @__PURE__ */ r.jsx(R, { mt: 10, mb: -10, label: n("chart.number_or_dynamic_value.dynamic.guide"), labelPosition: "center", variant: "dashed" }),
|
|
11901
11901
|
/* @__PURE__ */ r.jsx(_j, { value: o.value, onChange: u }),
|
|
11902
11902
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
11903
|
-
/* @__PURE__ */ r.jsx(
|
|
11903
|
+
/* @__PURE__ */ r.jsx(z, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
11904
11904
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
11905
|
-
/* @__PURE__ */ r.jsx(
|
|
11906
|
-
/* @__PURE__ */ r.jsx(
|
|
11905
|
+
/* @__PURE__ */ r.jsx(z, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
11906
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
11907
11907
|
] })
|
|
11908
11908
|
] })
|
|
11909
11909
|
] }) })
|
|
@@ -11968,7 +11968,7 @@ function Un(t, e, n) {
|
|
|
11968
11968
|
variables: e
|
|
11969
11969
|
}, {
|
|
11970
11970
|
lodash: S,
|
|
11971
|
-
interpolate:
|
|
11971
|
+
interpolate: zn
|
|
11972
11972
|
});
|
|
11973
11973
|
} catch (i) {
|
|
11974
11974
|
return console.error(`[getNumberOrDynamicValue] failed parsing custom function, error: ${i.message}`), 10;
|
|
@@ -12038,7 +12038,7 @@ function Cj(t, e) {
|
|
|
12038
12038
|
max: s
|
|
12039
12039
|
};
|
|
12040
12040
|
}
|
|
12041
|
-
function
|
|
12041
|
+
function Ij(t, e, n, s) {
|
|
12042
12042
|
if (s.type !== "continuous")
|
|
12043
12043
|
return {
|
|
12044
12044
|
followVisualMap: !0,
|
|
@@ -12064,7 +12064,7 @@ function zj(t, e, n, s) {
|
|
|
12064
12064
|
color: ""
|
|
12065
12065
|
};
|
|
12066
12066
|
}
|
|
12067
|
-
const
|
|
12067
|
+
const zj = kj(), Tj = ({
|
|
12068
12068
|
colors: t,
|
|
12069
12069
|
applyPalette: e
|
|
12070
12070
|
}) => {
|
|
@@ -12099,7 +12099,7 @@ const Ij = kj(), Tj = ({
|
|
|
12099
12099
|
/* @__PURE__ */ r.jsxs(Y.Dropdown, { children: [
|
|
12100
12100
|
/* @__PURE__ */ r.jsx(Y.Label, { children: n("chart.visual_map.built_in_palettes") }),
|
|
12101
12101
|
/* @__PURE__ */ r.jsx(Y.Divider, {}),
|
|
12102
|
-
Object.entries(
|
|
12102
|
+
Object.entries(zj).map(([i, a]) => /* @__PURE__ */ r.jsx(ge, { label: n("chart.visual_map.use_palette_x", {
|
|
12103
12103
|
x: i
|
|
12104
12104
|
}), children: /* @__PURE__ */ r.jsx(Y.Item, { children: /* @__PURE__ */ r.jsx(M, { style: {
|
|
12105
12105
|
height: "20px",
|
|
@@ -12273,7 +12273,7 @@ function Aj(t, e, n, s, i) {
|
|
|
12273
12273
|
}, {
|
|
12274
12274
|
followVisualMap: de,
|
|
12275
12275
|
color: Fe
|
|
12276
|
-
} =
|
|
12276
|
+
} = Ij(Z, l, c, t.visualMap);
|
|
12277
12277
|
return de || (K.visualMap = !1, K.itemStyle = {
|
|
12278
12278
|
color: Fe
|
|
12279
12279
|
}), K;
|
|
@@ -13263,7 +13263,7 @@ const yw = (t, e) => `
|
|
|
13263
13263
|
i18n: e
|
|
13264
13264
|
} = y(), [n, s] = Q(!1), i = C(() => yw(t("viz.pareto_chart.line_80_20.param_section_note_1"), t("viz.pareto_chart.line_80_20.param_section_note_2")), [e.language]);
|
|
13265
13265
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
13266
|
-
/* @__PURE__ */ r.jsx(
|
|
13266
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", compact: !0, onClick: () => s((a) => !a), children: t(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
|
|
13267
13267
|
/* @__PURE__ */ r.jsx(_r, { in: n, children: /* @__PURE__ */ r.jsx(rn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: i }) })
|
|
13268
13268
|
] });
|
|
13269
13269
|
};
|
|
@@ -13412,7 +13412,7 @@ function Cw(t) {
|
|
|
13412
13412
|
markLine: e
|
|
13413
13413
|
};
|
|
13414
13414
|
}
|
|
13415
|
-
function
|
|
13415
|
+
function Iw(t) {
|
|
13416
13416
|
const e = S.defaultsDeep({}, t.x_axis.axisLabel, {
|
|
13417
13417
|
rotate: 0,
|
|
13418
13418
|
formatter: He()
|
|
@@ -13425,7 +13425,7 @@ function zw(t) {
|
|
|
13425
13425
|
}
|
|
13426
13426
|
};
|
|
13427
13427
|
}
|
|
13428
|
-
function
|
|
13428
|
+
function zw(t) {
|
|
13429
13429
|
const {
|
|
13430
13430
|
label_formatter: e = Ne
|
|
13431
13431
|
} = t.bar;
|
|
@@ -13530,11 +13530,11 @@ class Ew extends Se {
|
|
|
13530
13530
|
})), this.version(4, (n) => ({
|
|
13531
13531
|
...n,
|
|
13532
13532
|
version: 4,
|
|
13533
|
-
config:
|
|
13533
|
+
config: Iw(n.config)
|
|
13534
13534
|
})), this.version(5, (n) => ({
|
|
13535
13535
|
...n,
|
|
13536
13536
|
version: 5,
|
|
13537
|
-
config:
|
|
13537
|
+
config: zw(n.config)
|
|
13538
13538
|
})), this.version(6, (n) => ({
|
|
13539
13539
|
...n,
|
|
13540
13540
|
version: 6,
|
|
@@ -14172,7 +14172,7 @@ function l0({
|
|
|
14172
14172
|
color_key: ""
|
|
14173
14173
|
}), i = (a, o) => o + 1;
|
|
14174
14174
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
14175
|
-
/* @__PURE__ */ r.jsx(ds, { icon: /* @__PURE__ */ r.jsx(Dn, { size: 16 }), title: n("viz.radar_chart.additional_series.label"), children: /* @__PURE__ */ r.jsxs(
|
|
14175
|
+
/* @__PURE__ */ r.jsx(ds, { icon: /* @__PURE__ */ r.jsx(Dn, { size: 16 }), title: n("viz.radar_chart.additional_series.label"), children: /* @__PURE__ */ r.jsxs(Ii, { i18nKey: "viz.radar_chart.additional_series.intro", children: [
|
|
14176
14176
|
"By setting ",
|
|
14177
14177
|
/* @__PURE__ */ r.jsx(hh, { children: "Series Name Key" }),
|
|
14178
14178
|
", you may add series from more queries to the chart."
|
|
@@ -14608,7 +14608,7 @@ function C0(t, e) {
|
|
|
14608
14608
|
} = t.regression;
|
|
14609
14609
|
return n ? k0(t, e) : S0(t, e);
|
|
14610
14610
|
}
|
|
14611
|
-
function
|
|
14611
|
+
function I0(t) {
|
|
14612
14612
|
return Array.isArray(t) || (t = [t]), t.map((e) => ({
|
|
14613
14613
|
marker: e.marker,
|
|
14614
14614
|
label: e.seriesName,
|
|
@@ -14616,11 +14616,11 @@ function z0(t) {
|
|
|
14616
14616
|
y: e.value[1]
|
|
14617
14617
|
}));
|
|
14618
14618
|
}
|
|
14619
|
-
function
|
|
14619
|
+
function z0(t) {
|
|
14620
14620
|
return me.getTooltip({
|
|
14621
14621
|
trigger: "axis",
|
|
14622
14622
|
formatter: (e) => {
|
|
14623
|
-
const n =
|
|
14623
|
+
const n = I0(e);
|
|
14624
14624
|
return n.length === 0 ? "" : `
|
|
14625
14625
|
<table style="width: auto">
|
|
14626
14626
|
<thead>
|
|
@@ -14708,7 +14708,7 @@ function M0(t, e) {
|
|
|
14708
14708
|
nameGap: 5
|
|
14709
14709
|
}),
|
|
14710
14710
|
series: [...n, ...s],
|
|
14711
|
-
tooltip:
|
|
14711
|
+
tooltip: z0(t),
|
|
14712
14712
|
legend: {
|
|
14713
14713
|
show: !0,
|
|
14714
14714
|
type: "scroll",
|
|
@@ -14914,9 +14914,9 @@ function F0({
|
|
|
14914
14914
|
const {
|
|
14915
14915
|
t: n
|
|
14916
14916
|
} = y();
|
|
14917
|
-
return /* @__PURE__ */ r.jsxs(
|
|
14918
|
-
/* @__PURE__ */ r.jsx(
|
|
14919
|
-
/* @__PURE__ */ r.jsx(
|
|
14917
|
+
return /* @__PURE__ */ r.jsxs(Ie, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
14918
|
+
/* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(z, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
|
|
14919
|
+
/* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(Qe, { children: /* @__PURE__ */ r.jsx(O0, { conf: t, queryData: e }) }) })
|
|
14920
14920
|
] });
|
|
14921
14921
|
}
|
|
14922
14922
|
function V0(t) {
|
|
@@ -15302,7 +15302,7 @@ function nS(t, e, n, s) {
|
|
|
15302
15302
|
return `${tS(d, i, n)}${l[2]}`;
|
|
15303
15303
|
}).join("");
|
|
15304
15304
|
}
|
|
15305
|
-
const rS =
|
|
15305
|
+
const rS = I(({
|
|
15306
15306
|
context: t
|
|
15307
15307
|
}) => {
|
|
15308
15308
|
const e = Pe(), {
|
|
@@ -15314,7 +15314,7 @@ const rS = z(({
|
|
|
15314
15314
|
const o = ve({}, n, Ms);
|
|
15315
15315
|
return o.content ? nS(o.content, s, e.payloadForViz, i) : "";
|
|
15316
15316
|
}, [n, s, e.payloadForViz]);
|
|
15317
|
-
return a ? /* @__PURE__ */ r.jsx(
|
|
15317
|
+
return a ? /* @__PURE__ */ r.jsx(zs, { value: a, styles: {
|
|
15318
15318
|
root: {
|
|
15319
15319
|
border: "none",
|
|
15320
15320
|
height: "100%"
|
|
@@ -15703,7 +15703,7 @@ function fS({
|
|
|
15703
15703
|
variables: n
|
|
15704
15704
|
}, {
|
|
15705
15705
|
lodash: S,
|
|
15706
|
-
interpolate:
|
|
15706
|
+
interpolate: zn
|
|
15707
15707
|
});
|
|
15708
15708
|
} catch (l) {
|
|
15709
15709
|
return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${l.message}`), 10;
|
|
@@ -15734,7 +15734,7 @@ function bS({
|
|
|
15734
15734
|
variables: n
|
|
15735
15735
|
}, {
|
|
15736
15736
|
lodash: S,
|
|
15737
|
-
interpolate:
|
|
15737
|
+
interpolate: zn
|
|
15738
15738
|
});
|
|
15739
15739
|
} catch (a) {
|
|
15740
15740
|
return console.error(`[getSeriesColor] failed parsing custom function, error: ${a.message}`), 10;
|
|
@@ -15932,7 +15932,7 @@ function CS(t, e) {
|
|
|
15932
15932
|
});
|
|
15933
15933
|
});
|
|
15934
15934
|
}
|
|
15935
|
-
const
|
|
15935
|
+
const IS = {
|
|
15936
15936
|
xAxis: [{
|
|
15937
15937
|
type: "category",
|
|
15938
15938
|
nameGap: 25,
|
|
@@ -15956,7 +15956,7 @@ const zS = {
|
|
|
15956
15956
|
containLabel: !0
|
|
15957
15957
|
}
|
|
15958
15958
|
};
|
|
15959
|
-
function
|
|
15959
|
+
function zS(t, e, n) {
|
|
15960
15960
|
const s = n.reduce((c, d) => {
|
|
15961
15961
|
const u = Xt(d, e);
|
|
15962
15962
|
return c[d.name] = mt(d, u), c;
|
|
@@ -15985,7 +15985,7 @@ function IS(t, e, n) {
|
|
|
15985
15985
|
legend: xS(),
|
|
15986
15986
|
dataZoom: ws(t.dataZoom)
|
|
15987
15987
|
};
|
|
15988
|
-
return we({}, l,
|
|
15988
|
+
return we({}, l, IS);
|
|
15989
15989
|
}
|
|
15990
15990
|
function $o(t) {
|
|
15991
15991
|
return t.trim().length > 0;
|
|
@@ -16008,7 +16008,7 @@ function TS({
|
|
|
16008
16008
|
});
|
|
16009
16009
|
}, [o, l, i]), d = C(() => ({
|
|
16010
16010
|
click: c
|
|
16011
|
-
}), [c]), u = L.useMemo(() =>
|
|
16011
|
+
}), [c]), u = L.useMemo(() => zS(t, e, a), [t, e]);
|
|
16012
16012
|
return /* @__PURE__ */ r.jsx(Xe, { echarts: Ye, option: u, style: {
|
|
16013
16013
|
width: n,
|
|
16014
16014
|
height: s
|
|
@@ -16316,16 +16316,16 @@ const $S = ({
|
|
|
16316
16316
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
16317
16317
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
16318
16318
|
width: "50%"
|
|
16319
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
16319
|
+
}, children: /* @__PURE__ */ r.jsx(z, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(on, { size: 16 }), mt: 24, onClick: i, sx: {
|
|
16320
16320
|
flexGrow: 0
|
|
16321
16321
|
}, children: n("viz.scatter_chart.color.dynamic.setup") }) }),
|
|
16322
16322
|
/* @__PURE__ */ r.jsx(je, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
|
|
16323
16323
|
/* @__PURE__ */ r.jsx($S, { value: o.func_content, onChange: u }),
|
|
16324
16324
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
16325
|
-
/* @__PURE__ */ r.jsx(
|
|
16325
|
+
/* @__PURE__ */ r.jsx(z, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
16326
16326
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
16327
|
-
/* @__PURE__ */ r.jsx(
|
|
16328
|
-
/* @__PURE__ */ r.jsx(
|
|
16327
|
+
/* @__PURE__ */ r.jsx(z, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
16328
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
16329
16329
|
] })
|
|
16330
16330
|
] })
|
|
16331
16331
|
] }) })
|
|
@@ -17071,7 +17071,7 @@ const gk = {
|
|
|
17071
17071
|
top: "flex-start",
|
|
17072
17072
|
center: "center",
|
|
17073
17073
|
bottom: "flex-end"
|
|
17074
|
-
}, bk =
|
|
17074
|
+
}, bk = I(({
|
|
17075
17075
|
context: t
|
|
17076
17076
|
}) => {
|
|
17077
17077
|
const e = Pe(), {
|
|
@@ -17211,7 +17211,7 @@ function Ck(t, e) {
|
|
|
17211
17211
|
}));
|
|
17212
17212
|
return i ? kk(c) : c;
|
|
17213
17213
|
}
|
|
17214
|
-
const
|
|
17214
|
+
const Ik = (t) => ({
|
|
17215
17215
|
treePathInfo: e,
|
|
17216
17216
|
name: n,
|
|
17217
17217
|
value: s
|
|
@@ -17226,7 +17226,7 @@ const zk = (t) => ({
|
|
|
17226
17226
|
return n;
|
|
17227
17227
|
}
|
|
17228
17228
|
};
|
|
17229
|
-
function
|
|
17229
|
+
function zk(t) {
|
|
17230
17230
|
const {
|
|
17231
17231
|
levels: e
|
|
17232
17232
|
} = t;
|
|
@@ -17239,7 +17239,7 @@ function Ik(t) {
|
|
|
17239
17239
|
...n,
|
|
17240
17240
|
label: {
|
|
17241
17241
|
...i,
|
|
17242
|
-
formatter:
|
|
17242
|
+
formatter: Ik(s)
|
|
17243
17243
|
}
|
|
17244
17244
|
};
|
|
17245
17245
|
});
|
|
@@ -17311,7 +17311,7 @@ function Lk(t, e, n) {
|
|
|
17311
17311
|
const i = {
|
|
17312
17312
|
series: {
|
|
17313
17313
|
data: Ck(t, e),
|
|
17314
|
-
levels:
|
|
17314
|
+
levels: zk(t)
|
|
17315
17315
|
},
|
|
17316
17316
|
tooltip: Dk()
|
|
17317
17317
|
};
|
|
@@ -18122,7 +18122,7 @@ function x1({
|
|
|
18122
18122
|
} = H(t.instanceData, "config");
|
|
18123
18123
|
return a ? /* @__PURE__ */ r.jsx(p1, { data: n, width: i, height: s, conf: a, context: t, instance: e }) : null;
|
|
18124
18124
|
}
|
|
18125
|
-
const g1 =
|
|
18125
|
+
const g1 = I(ne(({
|
|
18126
18126
|
label: t,
|
|
18127
18127
|
required: e,
|
|
18128
18128
|
description: n,
|
|
@@ -18208,7 +18208,7 @@ const _1 = ne((t, e) => {
|
|
|
18208
18208
|
return B(() => {
|
|
18209
18209
|
c(t);
|
|
18210
18210
|
}, [t]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
18211
|
-
/* @__PURE__ */ r.jsx(
|
|
18211
|
+
/* @__PURE__ */ r.jsx(z, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(on, { size: 16 }), mt: 24, onClick: a, sx: {
|
|
18212
18212
|
flexGrow: 0
|
|
18213
18213
|
}, children: s("viz.table.column.custom_cell_content") }),
|
|
18214
18214
|
/* @__PURE__ */ r.jsx(je, { size: 800, title: s("viz.table.column.custom_cell_content"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
|
|
@@ -18220,10 +18220,10 @@ const _1 = ne((t, e) => {
|
|
|
18220
18220
|
}
|
|
18221
18221
|
} }) }),
|
|
18222
18222
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
18223
|
-
/* @__PURE__ */ r.jsx(
|
|
18223
|
+
/* @__PURE__ */ r.jsx(z, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: s("common.actions.reset_to_default") }),
|
|
18224
18224
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
18225
|
-
/* @__PURE__ */ r.jsx(
|
|
18226
|
-
/* @__PURE__ */ r.jsx(
|
|
18225
|
+
/* @__PURE__ */ r.jsx(z, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
|
|
18226
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), onClick: d, children: s("common.actions.save") })
|
|
18227
18227
|
] })
|
|
18228
18228
|
] })
|
|
18229
18229
|
] }) })
|
|
@@ -18276,7 +18276,7 @@ const _1 = ne((t, e) => {
|
|
|
18276
18276
|
field: c
|
|
18277
18277
|
}) => /* @__PURE__ */ r.jsx(_1, { ...c }) }),
|
|
18278
18278
|
/* @__PURE__ */ r.jsx(R, { mb: 4, mt: 12, variant: "dashed" }),
|
|
18279
|
-
/* @__PURE__ */ r.jsx(
|
|
18279
|
+
/* @__PURE__ */ r.jsx(z, { leftIcon: /* @__PURE__ */ r.jsx(At, { size: 16 }), color: "red", variant: "light", onClick: () => s(e), children: a("viz.table.column.delete") })
|
|
18280
18280
|
] });
|
|
18281
18281
|
}, S1 = ({
|
|
18282
18282
|
control: t,
|
|
@@ -18385,7 +18385,7 @@ function C1({
|
|
|
18385
18385
|
}))
|
|
18386
18386
|
};
|
|
18387
18387
|
}
|
|
18388
|
-
function
|
|
18388
|
+
function I1({
|
|
18389
18389
|
context: t
|
|
18390
18390
|
}) {
|
|
18391
18391
|
const {
|
|
@@ -18437,7 +18437,7 @@ function z1({
|
|
|
18437
18437
|
] })
|
|
18438
18438
|
] });
|
|
18439
18439
|
}
|
|
18440
|
-
const
|
|
18440
|
+
const z1 = {
|
|
18441
18441
|
table: {
|
|
18442
18442
|
viz_name: "Table",
|
|
18443
18443
|
column: {
|
|
@@ -18511,7 +18511,7 @@ const I1 = {
|
|
|
18511
18511
|
}
|
|
18512
18512
|
}, D1 = [{
|
|
18513
18513
|
lang: "en",
|
|
18514
|
-
resources:
|
|
18514
|
+
resources: z1
|
|
18515
18515
|
}, {
|
|
18516
18516
|
lang: "zh",
|
|
18517
18517
|
resources: T1
|
|
@@ -18639,7 +18639,7 @@ const yi = {
|
|
|
18639
18639
|
migrator: new R1(),
|
|
18640
18640
|
name: "table",
|
|
18641
18641
|
viewRender: x1,
|
|
18642
|
-
configRender:
|
|
18642
|
+
configRender: I1,
|
|
18643
18643
|
triggers: [ha],
|
|
18644
18644
|
translation: D1
|
|
18645
18645
|
}, yd = ["function text({ data, variables, filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
|
|
@@ -18648,7 +18648,7 @@ const yi = {
|
|
|
18648
18648
|
horizontal_align: "left",
|
|
18649
18649
|
font_size: "14px",
|
|
18650
18650
|
font_weight: "normal"
|
|
18651
|
-
}, $1 =
|
|
18651
|
+
}, $1 = I(({
|
|
18652
18652
|
context: t
|
|
18653
18653
|
}) => {
|
|
18654
18654
|
const e = Pe(), {
|
|
@@ -18736,16 +18736,16 @@ const _d = L.forwardRef(P1), O1 = ({
|
|
|
18736
18736
|
return B(() => {
|
|
18737
18737
|
c(t);
|
|
18738
18738
|
}, [t]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
18739
|
-
/* @__PURE__ */ r.jsx(
|
|
18739
|
+
/* @__PURE__ */ r.jsx(z, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(on, { size: 16 }), mt: 24, onClick: a, sx: {
|
|
18740
18740
|
flexGrow: 0
|
|
18741
18741
|
}, children: s("viz.text.content.edit") }),
|
|
18742
18742
|
/* @__PURE__ */ r.jsx(je, { size: 800, title: s("viz.text.content.label"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
|
|
18743
18743
|
/* @__PURE__ */ r.jsx(O1, { value: l, onChange: c }),
|
|
18744
18744
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
18745
|
-
/* @__PURE__ */ r.jsx(
|
|
18745
|
+
/* @__PURE__ */ r.jsx(z, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: s("common.actions.reset_to_default") }),
|
|
18746
18746
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
18747
|
-
/* @__PURE__ */ r.jsx(
|
|
18748
|
-
/* @__PURE__ */ r.jsx(
|
|
18747
|
+
/* @__PURE__ */ r.jsx(z, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
|
|
18748
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), onClick: d, children: s("common.actions.save_changes") })
|
|
18749
18749
|
] })
|
|
18750
18750
|
] })
|
|
18751
18751
|
] }) })
|
|
@@ -18969,7 +18969,7 @@ function K1({
|
|
|
18969
18969
|
return !s || !i || !n ? null : c ? /* @__PURE__ */ r.jsx(M, { sx: {
|
|
18970
18970
|
position: "relative",
|
|
18971
18971
|
height: i
|
|
18972
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
18972
|
+
}, children: /* @__PURE__ */ r.jsx(In, { visible: !0 }) }) : l ? /* @__PURE__ */ r.jsx(M, { sx: _i, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r.jsx(Y1, { error: l, width: s, height: i }) }) : !o || !Array.isArray(o.replies) || o.replies.length === 0 ? null : /* @__PURE__ */ r.jsx(M, { sx: _i, "data-enable-scrollbar": !0, children: o.replies.map((d, u) => /* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: {
|
|
18973
18973
|
__html: d.interpretation.html
|
|
18974
18974
|
} }, u)) });
|
|
18975
18975
|
}
|
|
@@ -19010,7 +19010,7 @@ function J1({
|
|
|
19010
19010
|
}) => /* @__PURE__ */ r.jsx(D, { label: "Question", required: !0, ...h }) })
|
|
19011
19011
|
] }),
|
|
19012
19012
|
/* @__PURE__ */ r.jsx(R, { variant: "dashed", mt: 16, mb: 8 }),
|
|
19013
|
-
/* @__PURE__ */ r.jsx(
|
|
19013
|
+
/* @__PURE__ */ r.jsx(z, { type: "submit", variant: "filled", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Gt, { size: 20 }), disabled: !u, sx: {
|
|
19014
19014
|
alignSelf: "flex-end"
|
|
19015
19015
|
}, children: "Submit Changes" })
|
|
19016
19016
|
] }) });
|
|
@@ -19487,7 +19487,7 @@ function CC({
|
|
|
19487
19487
|
) })
|
|
19488
19488
|
] });
|
|
19489
19489
|
}
|
|
19490
|
-
function
|
|
19490
|
+
function IC({
|
|
19491
19491
|
context: t
|
|
19492
19492
|
}) {
|
|
19493
19493
|
const {
|
|
@@ -19535,7 +19535,7 @@ function zC({
|
|
|
19535
19535
|
] })
|
|
19536
19536
|
] }) });
|
|
19537
19537
|
}
|
|
19538
|
-
const
|
|
19538
|
+
const zC = {
|
|
19539
19539
|
calendar_heatmap: {
|
|
19540
19540
|
viz_name: "Heatmap(Calendar)",
|
|
19541
19541
|
calendar: {
|
|
@@ -19563,7 +19563,7 @@ const IC = {
|
|
|
19563
19563
|
}
|
|
19564
19564
|
}, DC = [{
|
|
19565
19565
|
lang: "en",
|
|
19566
|
-
resources:
|
|
19566
|
+
resources: zC
|
|
19567
19567
|
}, {
|
|
19568
19568
|
lang: "zh",
|
|
19569
19569
|
resources: TC
|
|
@@ -19652,7 +19652,7 @@ const AC = {
|
|
|
19652
19652
|
migrator: new EC(),
|
|
19653
19653
|
name: "calendarHeatmap",
|
|
19654
19654
|
viewRender: _C,
|
|
19655
|
-
configRender:
|
|
19655
|
+
configRender: IC,
|
|
19656
19656
|
createConfig: () => ({
|
|
19657
19657
|
version: 3,
|
|
19658
19658
|
config: xa
|
|
@@ -20044,7 +20044,7 @@ function ZC(t, e) {
|
|
|
20044
20044
|
z: 5
|
|
20045
20045
|
})];
|
|
20046
20046
|
}
|
|
20047
|
-
function
|
|
20047
|
+
function eI(t, e, n) {
|
|
20048
20048
|
if (!t.y_axis.data_key)
|
|
20049
20049
|
return {};
|
|
20050
20050
|
const s = JC(e, n), i = KC(t), a = O(t.y_axis.data_key), o = S.uniq(e[a.queryID].map((u) => u[a.columnKey])), l = o.every((u) => !Number.isNaN(Number(u))), c = HC(t, o, l, e, i, n, s);
|
|
@@ -20057,7 +20057,7 @@ function ez(t, e, n) {
|
|
|
20057
20057
|
legend: VC(c)
|
|
20058
20058
|
};
|
|
20059
20059
|
}
|
|
20060
|
-
function
|
|
20060
|
+
function tI({
|
|
20061
20061
|
conf: t,
|
|
20062
20062
|
data: e,
|
|
20063
20063
|
width: n,
|
|
@@ -20077,13 +20077,13 @@ function tz({
|
|
|
20077
20077
|
});
|
|
20078
20078
|
}, [o, l, i]), d = C(() => ({
|
|
20079
20079
|
click: c
|
|
20080
|
-
}), [c]), u = L.useMemo(() =>
|
|
20080
|
+
}), [c]), u = L.useMemo(() => eI(t, e, a), [t, e]);
|
|
20081
20081
|
return /* @__PURE__ */ r.jsx(Xe, { echarts: Ye, option: u, style: {
|
|
20082
20082
|
width: n,
|
|
20083
20083
|
height: s
|
|
20084
20084
|
}, onEvents: d, notMerge: !0, theme: "merico-light" });
|
|
20085
20085
|
}
|
|
20086
|
-
function
|
|
20086
|
+
function nI({
|
|
20087
20087
|
context: t,
|
|
20088
20088
|
instance: e
|
|
20089
20089
|
}) {
|
|
@@ -20098,9 +20098,9 @@ function nz({
|
|
|
20098
20098
|
width: l,
|
|
20099
20099
|
height: c
|
|
20100
20100
|
} = t.viewport;
|
|
20101
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(
|
|
20101
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(tI, { variables: i, width: wt(l), height: St(c), data: o, conf: a, interactionManager: n }) });
|
|
20102
20102
|
}
|
|
20103
|
-
function
|
|
20103
|
+
function rI({
|
|
20104
20104
|
control: t,
|
|
20105
20105
|
index: e,
|
|
20106
20106
|
watch: n,
|
|
@@ -20179,7 +20179,7 @@ function rz({
|
|
|
20179
20179
|
}) => /* @__PURE__ */ r.jsx(ee, { label: a("chart.legend.show_in_legend"), checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) })
|
|
20180
20180
|
] });
|
|
20181
20181
|
}
|
|
20182
|
-
function
|
|
20182
|
+
function sI({
|
|
20183
20183
|
control: t,
|
|
20184
20184
|
watch: e,
|
|
20185
20185
|
variables: n
|
|
@@ -20201,9 +20201,9 @@ function sz({
|
|
|
20201
20201
|
return /* @__PURE__ */ r.jsx(ke, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: c, children: ({
|
|
20202
20202
|
field: d,
|
|
20203
20203
|
index: u
|
|
20204
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
20204
|
+
}) => /* @__PURE__ */ r.jsx(rI, { control: t, index: u, watch: e, variableOptions: a, xAxisOptions: l }) });
|
|
20205
20205
|
}
|
|
20206
|
-
function
|
|
20206
|
+
function iI({
|
|
20207
20207
|
control: t,
|
|
20208
20208
|
index: e,
|
|
20209
20209
|
seriesItem: n
|
|
@@ -20253,7 +20253,7 @@ function iz({
|
|
|
20253
20253
|
] })
|
|
20254
20254
|
] });
|
|
20255
20255
|
}
|
|
20256
|
-
function
|
|
20256
|
+
function aI({
|
|
20257
20257
|
control: t,
|
|
20258
20258
|
index: e,
|
|
20259
20259
|
seriesItem: n,
|
|
@@ -20295,7 +20295,7 @@ function az({
|
|
|
20295
20295
|
}) => /* @__PURE__ */ r.jsx(G, { label: i("chart.series.group_by.label"), clearable: !0, sx: {
|
|
20296
20296
|
flex: 1
|
|
20297
20297
|
}, ...a }) }) }),
|
|
20298
|
-
/* @__PURE__ */ r.jsx(
|
|
20298
|
+
/* @__PURE__ */ r.jsx(iI, { index: e, control: t, seriesItem: n }),
|
|
20299
20299
|
/* @__PURE__ */ r.jsx(R, { mb: -10, mt: 10, variant: "dashed", label: i("chart.style.label"), labelPosition: "center" }),
|
|
20300
20300
|
/* @__PURE__ */ r.jsx(g, { name: `series.${e}.label_position`, control: t, render: ({
|
|
20301
20301
|
field: a
|
|
@@ -20317,7 +20317,7 @@ function az({
|
|
|
20317
20317
|
}) => /* @__PURE__ */ r.jsx(ee, { label: i("chart.behavior.invisible"), checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) })
|
|
20318
20318
|
] });
|
|
20319
20319
|
}
|
|
20320
|
-
function
|
|
20320
|
+
function oI({
|
|
20321
20321
|
control: t,
|
|
20322
20322
|
watch: e
|
|
20323
20323
|
}) {
|
|
@@ -20335,9 +20335,9 @@ function oz({
|
|
|
20335
20335
|
return /* @__PURE__ */ r.jsx(ke, { control: t, watch: e, name: "series", getItem: s, addButtonText: n("chart.series.add"), deleteButtonText: n("chart.series.delete"), renderTabName: i, children: ({
|
|
20336
20336
|
field: l,
|
|
20337
20337
|
index: c
|
|
20338
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
20338
|
+
}) => /* @__PURE__ */ r.jsx(aI, { control: t, index: c, seriesItem: l, xAxisOptions: o }) });
|
|
20339
20339
|
}
|
|
20340
|
-
const
|
|
20340
|
+
const lI = ne(({
|
|
20341
20341
|
label: t,
|
|
20342
20342
|
value: e,
|
|
20343
20343
|
onChange: n,
|
|
@@ -20355,7 +20355,7 @@ const lz = ne(({
|
|
|
20355
20355
|
}], [o.language]);
|
|
20356
20356
|
return /* @__PURE__ */ r.jsx(F, { ref: i, label: t ?? a("chart.x_axis.position.label"), data: l, value: e, onChange: n, sx: s });
|
|
20357
20357
|
});
|
|
20358
|
-
function
|
|
20358
|
+
function cI({
|
|
20359
20359
|
control: t,
|
|
20360
20360
|
index: e
|
|
20361
20361
|
}) {
|
|
@@ -20373,7 +20373,7 @@ function cz({
|
|
|
20373
20373
|
}, ...s }) }),
|
|
20374
20374
|
/* @__PURE__ */ r.jsx(g, { name: `x_axes.${e}.position`, control: t, render: ({
|
|
20375
20375
|
field: s
|
|
20376
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
20376
|
+
}) => /* @__PURE__ */ r.jsx(lI, { sx: {
|
|
20377
20377
|
flex: 1
|
|
20378
20378
|
}, ...s }) })
|
|
20379
20379
|
] }),
|
|
@@ -20400,7 +20400,7 @@ function cz({
|
|
|
20400
20400
|
}) => /* @__PURE__ */ r.jsx(ee, { label: n("chart.x_axis.visible"), checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) })
|
|
20401
20401
|
] });
|
|
20402
20402
|
}
|
|
20403
|
-
function
|
|
20403
|
+
function dI({
|
|
20404
20404
|
control: t,
|
|
20405
20405
|
watch: e
|
|
20406
20406
|
}) {
|
|
@@ -20413,9 +20413,9 @@ function dz({
|
|
|
20413
20413
|
return /* @__PURE__ */ r.jsx(ke, { control: t, watch: e, name: "x_axes", getItem: s, addButtonText: n("chart.x_axis.add"), deleteButtonText: n("chart.x_axis.delete"), renderTabName: i, children: ({
|
|
20414
20414
|
field: a,
|
|
20415
20415
|
index: o
|
|
20416
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
20416
|
+
}) => /* @__PURE__ */ r.jsx(cI, { control: t, index: o }) });
|
|
20417
20417
|
}
|
|
20418
|
-
function
|
|
20418
|
+
function uI({
|
|
20419
20419
|
control: t,
|
|
20420
20420
|
watch: e
|
|
20421
20421
|
}) {
|
|
@@ -20444,7 +20444,7 @@ function uz({
|
|
|
20444
20444
|
}) => /* @__PURE__ */ r.jsx(Ct, { ...s }) })
|
|
20445
20445
|
] });
|
|
20446
20446
|
}
|
|
20447
|
-
function
|
|
20447
|
+
function hI({
|
|
20448
20448
|
context: t
|
|
20449
20449
|
}) {
|
|
20450
20450
|
const {
|
|
@@ -20485,14 +20485,14 @@ function hz({
|
|
|
20485
20485
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Series", children: e("chart.series.label") }),
|
|
20486
20486
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Reference Lines", children: e("chart.reference_line.labels") })
|
|
20487
20487
|
] }),
|
|
20488
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "X Axes", children: /* @__PURE__ */ r.jsx(
|
|
20489
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Y Axis", children: /* @__PURE__ */ r.jsx(
|
|
20490
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Series", children: /* @__PURE__ */ r.jsx(
|
|
20491
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(
|
|
20488
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "X Axes", children: /* @__PURE__ */ r.jsx(dI, { control: o, watch: c }) }),
|
|
20489
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Y Axis", children: /* @__PURE__ */ r.jsx(uI, { control: o, watch: c }) }),
|
|
20490
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Series", children: /* @__PURE__ */ r.jsx(oI, { control: o, watch: c }) }),
|
|
20491
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(sI, { variables: i, control: o, watch: c }) })
|
|
20492
20492
|
] })
|
|
20493
20493
|
] }) });
|
|
20494
20494
|
}
|
|
20495
|
-
const
|
|
20495
|
+
const mI = {
|
|
20496
20496
|
horizontal_bar_chart: {
|
|
20497
20497
|
viz_name: "Horizontal Bar Chart",
|
|
20498
20498
|
series: {
|
|
@@ -20501,7 +20501,7 @@ const mz = {
|
|
|
20501
20501
|
}
|
|
20502
20502
|
}
|
|
20503
20503
|
}
|
|
20504
|
-
},
|
|
20504
|
+
}, pI = {
|
|
20505
20505
|
horizontal_bar_chart: {
|
|
20506
20506
|
viz_name: "水平方向柱图",
|
|
20507
20507
|
series: {
|
|
@@ -20510,14 +20510,14 @@ const mz = {
|
|
|
20510
20510
|
}
|
|
20511
20511
|
}
|
|
20512
20512
|
}
|
|
20513
|
-
},
|
|
20513
|
+
}, xI = [{
|
|
20514
20514
|
lang: "en",
|
|
20515
|
-
resources:
|
|
20515
|
+
resources: mI
|
|
20516
20516
|
}, {
|
|
20517
20517
|
lang: "zh",
|
|
20518
|
-
resources:
|
|
20518
|
+
resources: pI
|
|
20519
20519
|
}];
|
|
20520
|
-
function
|
|
20520
|
+
function gI(t, {
|
|
20521
20521
|
panelModel: e
|
|
20522
20522
|
}) {
|
|
20523
20523
|
try {
|
|
@@ -20550,7 +20550,7 @@ function gz(t, {
|
|
|
20550
20550
|
throw console.error("[Migration failed]", n), n;
|
|
20551
20551
|
}
|
|
20552
20552
|
}
|
|
20553
|
-
class
|
|
20553
|
+
class fI extends Se {
|
|
20554
20554
|
constructor() {
|
|
20555
20555
|
super(...arguments);
|
|
20556
20556
|
N(this, "VERSION", 2);
|
|
@@ -20566,23 +20566,23 @@ class fz extends Se {
|
|
|
20566
20566
|
return {
|
|
20567
20567
|
...n,
|
|
20568
20568
|
version: 2,
|
|
20569
|
-
config:
|
|
20569
|
+
config: gI(i, s)
|
|
20570
20570
|
};
|
|
20571
20571
|
});
|
|
20572
20572
|
}
|
|
20573
20573
|
}
|
|
20574
|
-
const
|
|
20574
|
+
const bI = {
|
|
20575
20575
|
displayName: "viz.horizontal_bar_chart.viz_name",
|
|
20576
20576
|
displayGroup: "chart.groups.echarts_based_charts",
|
|
20577
|
-
migrator: new
|
|
20577
|
+
migrator: new fI(),
|
|
20578
20578
|
name: "horizontalBarChart",
|
|
20579
|
-
viewRender:
|
|
20580
|
-
configRender:
|
|
20579
|
+
viewRender: nI,
|
|
20580
|
+
configRender: hI,
|
|
20581
20581
|
createConfig: () => ({
|
|
20582
20582
|
version: 2,
|
|
20583
20583
|
config: ga
|
|
20584
20584
|
}),
|
|
20585
|
-
translation:
|
|
20585
|
+
translation: xI
|
|
20586
20586
|
}, fa = {
|
|
20587
20587
|
x_axis: {
|
|
20588
20588
|
name: "",
|
|
@@ -20601,7 +20601,7 @@ const bz = {
|
|
|
20601
20601
|
},
|
|
20602
20602
|
metrics: []
|
|
20603
20603
|
};
|
|
20604
|
-
function
|
|
20604
|
+
function yI() {
|
|
20605
20605
|
return [{
|
|
20606
20606
|
top: 20,
|
|
20607
20607
|
left: 30,
|
|
@@ -20653,7 +20653,7 @@ const No = ({
|
|
|
20653
20653
|
return console.error(e), t;
|
|
20654
20654
|
}
|
|
20655
20655
|
};
|
|
20656
|
-
function
|
|
20656
|
+
function _I(t, e, n) {
|
|
20657
20657
|
return {
|
|
20658
20658
|
type: "heatmap",
|
|
20659
20659
|
name: "准确估算比例",
|
|
@@ -20709,7 +20709,7 @@ function jd(t) {
|
|
|
20709
20709
|
const e = [`background-color: ${t}`];
|
|
20710
20710
|
return t === "rgba(255, 255, 255, 1)" && e.push("box-shadow: 0px 0px 1px 0px rgba(0,0,0,.5)"), e.join(";");
|
|
20711
20711
|
}
|
|
20712
|
-
function
|
|
20712
|
+
function vI([t, e]) {
|
|
20713
20713
|
const n = {
|
|
20714
20714
|
x: t,
|
|
20715
20715
|
v: `${e}`
|
|
@@ -20725,12 +20725,12 @@ function vz([t, e]) {
|
|
|
20725
20725
|
}
|
|
20726
20726
|
return n;
|
|
20727
20727
|
}
|
|
20728
|
-
function
|
|
20728
|
+
function jI(t, e, n, s) {
|
|
20729
20729
|
var c, d;
|
|
20730
20730
|
const i = e.map((u) => {
|
|
20731
20731
|
const h = n[u], m = S.sumBy(h, (x) => x.level.diff);
|
|
20732
20732
|
return [u, m / h.length];
|
|
20733
|
-
}), a = Number(((c = S.maxBy(i, (u) => u[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = S.minBy(i, (u) => u[1])) == null ? void 0 : d[1]) ?? 0), l =
|
|
20733
|
+
}), a = Number(((c = S.maxBy(i, (u) => u[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = S.minBy(i, (u) => u[1])) == null ? void 0 : d[1]) ?? 0), l = zn([a, 0, o], ["#D15A40", "#FFF", "#418AAF"]);
|
|
20734
20734
|
return {
|
|
20735
20735
|
type: "bar",
|
|
20736
20736
|
name: "平均偏差",
|
|
@@ -20776,7 +20776,7 @@ function jz(t, e, n, s) {
|
|
|
20776
20776
|
const {
|
|
20777
20777
|
x: m,
|
|
20778
20778
|
v: x
|
|
20779
|
-
} =
|
|
20779
|
+
} = vI(h);
|
|
20780
20780
|
return `
|
|
20781
20781
|
<table style="width: auto">
|
|
20782
20782
|
<thead>
|
|
@@ -20805,7 +20805,7 @@ function jz(t, e, n, s) {
|
|
|
20805
20805
|
show_in_legend: !1
|
|
20806
20806
|
};
|
|
20807
20807
|
}
|
|
20808
|
-
function
|
|
20808
|
+
function wI([t, e, n, s]) {
|
|
20809
20809
|
const i = {
|
|
20810
20810
|
x: t,
|
|
20811
20811
|
percentage: `${e}`,
|
|
@@ -20823,7 +20823,7 @@ function wz([t, e, n, s]) {
|
|
|
20823
20823
|
}
|
|
20824
20824
|
return i;
|
|
20825
20825
|
}
|
|
20826
|
-
function
|
|
20826
|
+
function SI(t, e, n, s) {
|
|
20827
20827
|
const i = {};
|
|
20828
20828
|
e.forEach((u) => {
|
|
20829
20829
|
const h = S.countBy(n[u], (x) => x.level.diff), m = S.sum(Object.values(h));
|
|
@@ -20833,7 +20833,7 @@ function Sz(t, e, n, s) {
|
|
|
20833
20833
|
i[x].push([u, j, f, m]);
|
|
20834
20834
|
});
|
|
20835
20835
|
});
|
|
20836
|
-
const a = Object.entries(i).map(([u]) => Number(u)).sort((u, h) => u - h), o = Math.max(...a), l = Math.min(...a), c =
|
|
20836
|
+
const a = Object.entries(i).map(([u]) => Number(u)).sort((u, h) => u - h), o = Math.max(...a), l = Math.min(...a), c = zn([o, 0, l], ["#D15A40", "#FFF", "#418AAF"]);
|
|
20837
20837
|
return a.map((u) => ({
|
|
20838
20838
|
type: "bar",
|
|
20839
20839
|
name: u,
|
|
@@ -20854,7 +20854,7 @@ function Sz(t, e, n, s) {
|
|
|
20854
20854
|
percentage: f,
|
|
20855
20855
|
count: j,
|
|
20856
20856
|
sum: T
|
|
20857
|
-
} =
|
|
20857
|
+
} = wI(m);
|
|
20858
20858
|
return `
|
|
20859
20859
|
<table style="width: auto">
|
|
20860
20860
|
<thead>
|
|
@@ -20896,7 +20896,7 @@ function Sz(t, e, n, s) {
|
|
|
20896
20896
|
show_in_legend: !0
|
|
20897
20897
|
}));
|
|
20898
20898
|
}
|
|
20899
|
-
function
|
|
20899
|
+
function kI(t, e, n, s) {
|
|
20900
20900
|
const i = O(e.data_key), a = e.name, o = n.map((l) => {
|
|
20901
20901
|
const c = S.sumBy(s[l], i.columnKey);
|
|
20902
20902
|
return [l, c];
|
|
@@ -20911,14 +20911,14 @@ function kz(t, e, n, s) {
|
|
|
20911
20911
|
show_in_legend: !1
|
|
20912
20912
|
};
|
|
20913
20913
|
}
|
|
20914
|
-
function
|
|
20914
|
+
function CI(t, e, n, s) {
|
|
20915
20915
|
const o = {
|
|
20916
20916
|
barMinWidth: 5,
|
|
20917
20917
|
barMaxWidth: 20
|
|
20918
20918
|
};
|
|
20919
|
-
return [
|
|
20919
|
+
return [_I(t, n, s), jI(t, n, s, o), ...SI(t, n, s, o), kI(t, e, n, s)];
|
|
20920
20920
|
}
|
|
20921
|
-
function
|
|
20921
|
+
function II(t, e) {
|
|
20922
20922
|
const {
|
|
20923
20923
|
axisLabel: n
|
|
20924
20924
|
} = t.x_axis;
|
|
@@ -20985,7 +20985,7 @@ function zz(t, e) {
|
|
|
20985
20985
|
}
|
|
20986
20986
|
}];
|
|
20987
20987
|
}
|
|
20988
|
-
function
|
|
20988
|
+
function zI(t) {
|
|
20989
20989
|
return [{
|
|
20990
20990
|
type: "category",
|
|
20991
20991
|
name: "准确估算比例",
|
|
@@ -21094,11 +21094,11 @@ function Iz(t) {
|
|
|
21094
21094
|
function vi(t) {
|
|
21095
21095
|
return t == 1 || t == 2 ? 1 : vi(t - 2) + vi(t - 1);
|
|
21096
21096
|
}
|
|
21097
|
-
const
|
|
21097
|
+
const TI = Array.from(new Array(20), (t, e) => vi(e + 1));
|
|
21098
21098
|
function Bo(t) {
|
|
21099
|
-
return t <= 1 ? t :
|
|
21099
|
+
return t <= 1 ? t : TI.findIndex((e) => t <= e) - 1;
|
|
21100
21100
|
}
|
|
21101
|
-
function
|
|
21101
|
+
function DI(t, e) {
|
|
21102
21102
|
const {
|
|
21103
21103
|
x_axis: n,
|
|
21104
21104
|
deviation: s
|
|
@@ -21115,13 +21115,13 @@ function Dz(t, e) {
|
|
|
21115
21115
|
};
|
|
21116
21116
|
});
|
|
21117
21117
|
}
|
|
21118
|
-
function
|
|
21118
|
+
function MI(t) {
|
|
21119
21119
|
return t === "rgba(255, 255, 255, 1)" ? {
|
|
21120
21120
|
borderColor: "rgba(0,0,0,.1)",
|
|
21121
21121
|
borderWidth: 1
|
|
21122
21122
|
} : {};
|
|
21123
21123
|
}
|
|
21124
|
-
function
|
|
21124
|
+
function LI(t) {
|
|
21125
21125
|
return {
|
|
21126
21126
|
show: !0,
|
|
21127
21127
|
orient: "vertical",
|
|
@@ -21130,7 +21130,7 @@ function Lz(t) {
|
|
|
21130
21130
|
data: t.filter((n) => n.show_in_legend).reverse().map((n) => ({
|
|
21131
21131
|
name: `${n.name}`,
|
|
21132
21132
|
color: n.color,
|
|
21133
|
-
itemStyle:
|
|
21133
|
+
itemStyle: MI(n.color)
|
|
21134
21134
|
})),
|
|
21135
21135
|
tooltip: {
|
|
21136
21136
|
show: !0,
|
|
@@ -21138,12 +21138,12 @@ function Lz(t) {
|
|
|
21138
21138
|
}
|
|
21139
21139
|
};
|
|
21140
21140
|
}
|
|
21141
|
-
const
|
|
21141
|
+
const EI = {
|
|
21142
21142
|
tooltip: {
|
|
21143
21143
|
trigger: "axis"
|
|
21144
21144
|
}
|
|
21145
21145
|
};
|
|
21146
|
-
function
|
|
21146
|
+
function AI(t, e) {
|
|
21147
21147
|
const {
|
|
21148
21148
|
deviation: n,
|
|
21149
21149
|
metrics: s
|
|
@@ -21157,12 +21157,12 @@ function Az(t, e) {
|
|
|
21157
21157
|
data_key: a
|
|
21158
21158
|
};
|
|
21159
21159
|
}
|
|
21160
|
-
function
|
|
21161
|
-
const s =
|
|
21162
|
-
xAxis:
|
|
21163
|
-
yAxis:
|
|
21160
|
+
function RI(t, e, n) {
|
|
21161
|
+
const s = DI(t, n), i = O(t.x_axis.data_key), a = S.uniqBy(n[i.queryID], i.columnKey).map((u) => u[i.columnKey]), o = S.groupBy(s, i.columnKey), l = AI(t, e), c = CI(t, l, a, o), d = {
|
|
21162
|
+
xAxis: II(t, a),
|
|
21163
|
+
yAxis: zI(l),
|
|
21164
21164
|
series: c,
|
|
21165
|
-
grid:
|
|
21165
|
+
grid: yI(),
|
|
21166
21166
|
visualMap: [{
|
|
21167
21167
|
min: 0,
|
|
21168
21168
|
max: 1,
|
|
@@ -21171,17 +21171,17 @@ function Rz(t, e, n) {
|
|
|
21171
21171
|
seriesIndex: 0,
|
|
21172
21172
|
color: ["#F0F0F0", "#418AAF"]
|
|
21173
21173
|
}],
|
|
21174
|
-
legend:
|
|
21174
|
+
legend: LI(c)
|
|
21175
21175
|
};
|
|
21176
|
-
return we({}, d,
|
|
21176
|
+
return we({}, d, EI);
|
|
21177
21177
|
}
|
|
21178
|
-
const $
|
|
21178
|
+
const $I = {
|
|
21179
21179
|
input: {
|
|
21180
21180
|
border: "none !important",
|
|
21181
21181
|
paddingLeft: 0,
|
|
21182
21182
|
lineHeight: "1.55 !important"
|
|
21183
21183
|
}
|
|
21184
|
-
},
|
|
21184
|
+
}, PI = ({
|
|
21185
21185
|
conf: t,
|
|
21186
21186
|
metricKey: e,
|
|
21187
21187
|
setMetricKey: n
|
|
@@ -21204,9 +21204,9 @@ const $z = {
|
|
|
21204
21204
|
cursor: "default",
|
|
21205
21205
|
userSelect: "none"
|
|
21206
21206
|
}, children: "基线指标" }),
|
|
21207
|
-
/* @__PURE__ */ r.jsx(il, { size: "xs", data: a, value: e, onChange: (o) => n(o.currentTarget.value), styles: $
|
|
21207
|
+
/* @__PURE__ */ r.jsx(il, { size: "xs", data: a, value: e, onChange: (o) => n(o.currentTarget.value), styles: $I })
|
|
21208
21208
|
] });
|
|
21209
|
-
},
|
|
21209
|
+
}, OI = {
|
|
21210
21210
|
"tbody th, tbody td": {
|
|
21211
21211
|
padding: "7px 10px"
|
|
21212
21212
|
},
|
|
@@ -21214,10 +21214,10 @@ const $z = {
|
|
|
21214
21214
|
borderTop: "1px solid #dee2e6"
|
|
21215
21215
|
}
|
|
21216
21216
|
};
|
|
21217
|
-
function
|
|
21218
|
-
return /* @__PURE__ */ r.jsxs(
|
|
21219
|
-
/* @__PURE__ */ r.jsx(
|
|
21220
|
-
/* @__PURE__ */ r.jsx(
|
|
21217
|
+
function FI() {
|
|
21218
|
+
return /* @__PURE__ */ r.jsxs(Ie, { width: 400, shadow: "md", children: [
|
|
21219
|
+
/* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(z, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 14 }), children: "指标说明" }) }),
|
|
21220
|
+
/* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(Re, { fontSize: 14, sx: OI, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
21221
21221
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
21222
21222
|
/* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
|
|
21223
21223
|
/* @__PURE__ */ r.jsx("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
|
|
@@ -21229,26 +21229,26 @@ function Fz() {
|
|
|
21229
21229
|
] }) }) })
|
|
21230
21230
|
] });
|
|
21231
21231
|
}
|
|
21232
|
-
function
|
|
21232
|
+
function VI(t) {
|
|
21233
21233
|
return /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
21234
|
-
/* @__PURE__ */ r.jsx(
|
|
21235
|
-
/* @__PURE__ */ r.jsx(
|
|
21234
|
+
/* @__PURE__ */ r.jsx(FI, {}),
|
|
21235
|
+
/* @__PURE__ */ r.jsx(PI, { ...t })
|
|
21236
21236
|
] });
|
|
21237
21237
|
}
|
|
21238
|
-
function
|
|
21238
|
+
function qI({
|
|
21239
21239
|
conf: t,
|
|
21240
21240
|
data: e,
|
|
21241
21241
|
width: n,
|
|
21242
21242
|
height: s,
|
|
21243
21243
|
metricKey: i
|
|
21244
21244
|
}) {
|
|
21245
|
-
const a = L.useMemo(() =>
|
|
21245
|
+
const a = L.useMemo(() => RI(t, i, e), [t, e, i]);
|
|
21246
21246
|
return /* @__PURE__ */ r.jsx(Xe, { echarts: Ye, option: a, style: {
|
|
21247
21247
|
width: n,
|
|
21248
21248
|
height: s
|
|
21249
21249
|
}, notMerge: !0, theme: "merico-light" });
|
|
21250
21250
|
}
|
|
21251
|
-
function
|
|
21251
|
+
function NI({
|
|
21252
21252
|
context: t
|
|
21253
21253
|
}) {
|
|
21254
21254
|
const {
|
|
@@ -21273,11 +21273,11 @@ function Nz({
|
|
|
21273
21273
|
height: a,
|
|
21274
21274
|
width: i
|
|
21275
21275
|
}, children: [
|
|
21276
|
-
/* @__PURE__ */ r.jsx(
|
|
21277
|
-
/* @__PURE__ */ r.jsx(
|
|
21276
|
+
/* @__PURE__ */ r.jsx(VI, { conf: n, metricKey: u, setMetricKey: h }),
|
|
21277
|
+
/* @__PURE__ */ r.jsx(qI, { width: m, height: x - 30, data: s, conf: n, metricKey: u })
|
|
21278
21278
|
] });
|
|
21279
21279
|
}
|
|
21280
|
-
function
|
|
21280
|
+
function BI({
|
|
21281
21281
|
control: t,
|
|
21282
21282
|
watch: e
|
|
21283
21283
|
}) {
|
|
@@ -21301,7 +21301,7 @@ function Bz({
|
|
|
21301
21301
|
] })
|
|
21302
21302
|
] });
|
|
21303
21303
|
}
|
|
21304
|
-
const
|
|
21304
|
+
const WI = ({
|
|
21305
21305
|
control: t,
|
|
21306
21306
|
index: e
|
|
21307
21307
|
}) => {
|
|
@@ -21320,7 +21320,7 @@ const Wz = ({
|
|
|
21320
21320
|
flex: 1
|
|
21321
21321
|
}, ...s }) })
|
|
21322
21322
|
] }) });
|
|
21323
|
-
},
|
|
21323
|
+
}, GI = ({
|
|
21324
21324
|
control: t,
|
|
21325
21325
|
watch: e
|
|
21326
21326
|
}) => {
|
|
@@ -21346,10 +21346,10 @@ const Wz = ({
|
|
|
21346
21346
|
/* @__PURE__ */ r.jsx(ke, { control: t, watch: e, name: "metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
|
|
21347
21347
|
field: a,
|
|
21348
21348
|
index: o
|
|
21349
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21349
|
+
}) => /* @__PURE__ */ r.jsx(WI, { control: t, index: o }) })
|
|
21350
21350
|
] });
|
|
21351
21351
|
};
|
|
21352
|
-
function
|
|
21352
|
+
function QI({
|
|
21353
21353
|
control: t,
|
|
21354
21354
|
watch: e
|
|
21355
21355
|
}) {
|
|
@@ -21379,7 +21379,7 @@ function Qz({
|
|
|
21379
21379
|
] })
|
|
21380
21380
|
] });
|
|
21381
21381
|
}
|
|
21382
|
-
function
|
|
21382
|
+
function HI({
|
|
21383
21383
|
context: t
|
|
21384
21384
|
}) {
|
|
21385
21385
|
const {
|
|
@@ -21415,28 +21415,28 @@ function Hz({
|
|
|
21415
21415
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Deviation", children: "偏差" }),
|
|
21416
21416
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Additional Metrics", children: "指标" })
|
|
21417
21417
|
] }),
|
|
21418
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "X Axis", children: /* @__PURE__ */ r.jsx(
|
|
21419
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Deviation", children: /* @__PURE__ */ r.jsx(
|
|
21420
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Additional Metrics", children: /* @__PURE__ */ r.jsx(
|
|
21418
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "X Axis", children: /* @__PURE__ */ r.jsx(QI, { control: i, watch: o }) }),
|
|
21419
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Deviation", children: /* @__PURE__ */ r.jsx(BI, { control: i, watch: o }) }),
|
|
21420
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Additional Metrics", children: /* @__PURE__ */ r.jsx(GI, { control: i, watch: o }) })
|
|
21421
21421
|
] })
|
|
21422
21422
|
] }) });
|
|
21423
21423
|
}
|
|
21424
|
-
const
|
|
21424
|
+
const UI = {
|
|
21425
21425
|
merico_estimation_chart: {
|
|
21426
21426
|
viz_name: "Merico Estimation Chart"
|
|
21427
21427
|
}
|
|
21428
|
-
},
|
|
21428
|
+
}, YI = {
|
|
21429
21429
|
merico_estimation_chart: {
|
|
21430
21430
|
viz_name: "思码逸估算分析图"
|
|
21431
21431
|
}
|
|
21432
|
-
},
|
|
21432
|
+
}, KI = [{
|
|
21433
21433
|
lang: "en",
|
|
21434
|
-
resources:
|
|
21434
|
+
resources: UI
|
|
21435
21435
|
}, {
|
|
21436
21436
|
lang: "zh",
|
|
21437
|
-
resources:
|
|
21437
|
+
resources: YI
|
|
21438
21438
|
}];
|
|
21439
|
-
function
|
|
21439
|
+
function JI(t, {
|
|
21440
21440
|
panelModel: e
|
|
21441
21441
|
}) {
|
|
21442
21442
|
try {
|
|
@@ -21471,7 +21471,7 @@ function Jz(t, {
|
|
|
21471
21471
|
throw console.error("[Migration failed]", n), n;
|
|
21472
21472
|
}
|
|
21473
21473
|
}
|
|
21474
|
-
class
|
|
21474
|
+
class XI extends Se {
|
|
21475
21475
|
constructor() {
|
|
21476
21476
|
super(...arguments);
|
|
21477
21477
|
N(this, "VERSION", 2);
|
|
@@ -21487,23 +21487,23 @@ class Xz extends Se {
|
|
|
21487
21487
|
return {
|
|
21488
21488
|
...n,
|
|
21489
21489
|
version: 2,
|
|
21490
|
-
config:
|
|
21490
|
+
config: JI(i, s)
|
|
21491
21491
|
};
|
|
21492
21492
|
});
|
|
21493
21493
|
}
|
|
21494
21494
|
}
|
|
21495
|
-
const
|
|
21495
|
+
const ZI = {
|
|
21496
21496
|
displayName: "viz.merico_estimation_chart.viz_name",
|
|
21497
21497
|
displayGroup: "chart.groups.merico_suite",
|
|
21498
|
-
migrator: new
|
|
21498
|
+
migrator: new XI(),
|
|
21499
21499
|
name: "mericoEstimationChart",
|
|
21500
|
-
viewRender:
|
|
21501
|
-
configRender:
|
|
21500
|
+
viewRender: NI,
|
|
21501
|
+
configRender: HI,
|
|
21502
21502
|
createConfig: () => ({
|
|
21503
21503
|
version: 2,
|
|
21504
21504
|
config: fa
|
|
21505
21505
|
}),
|
|
21506
|
-
translation:
|
|
21506
|
+
translation: KI
|
|
21507
21507
|
}, ba = {
|
|
21508
21508
|
styles: {
|
|
21509
21509
|
justify: "space-around",
|
|
@@ -21511,7 +21511,7 @@ const Zz = {
|
|
|
21511
21511
|
},
|
|
21512
21512
|
metrics: []
|
|
21513
21513
|
};
|
|
21514
|
-
function
|
|
21514
|
+
function ez() {
|
|
21515
21515
|
return {
|
|
21516
21516
|
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
21517
21517
|
names: {
|
|
@@ -21538,7 +21538,7 @@ const Wo = ({
|
|
|
21538
21538
|
/* @__PURE__ */ r.jsx(w, { size: "12px", color: "#818388", sx: {
|
|
21539
21539
|
lineHeight: 1
|
|
21540
21540
|
}, children: t })
|
|
21541
|
-
] }) : null,
|
|
21541
|
+
] }) : null, tz = I(({
|
|
21542
21542
|
metric: t,
|
|
21543
21543
|
variableValueMap: e
|
|
21544
21544
|
}) => {
|
|
@@ -21576,7 +21576,7 @@ const Wo = ({
|
|
|
21576
21576
|
] })
|
|
21577
21577
|
] })
|
|
21578
21578
|
] });
|
|
21579
|
-
}),
|
|
21579
|
+
}), nz = I(({
|
|
21580
21580
|
context: t,
|
|
21581
21581
|
instance: e
|
|
21582
21582
|
}) => {
|
|
@@ -21590,8 +21590,8 @@ const Wo = ({
|
|
|
21590
21590
|
} = t.viewport;
|
|
21591
21591
|
return !l || !c || !i ? null : /* @__PURE__ */ r.jsx(Ut, { w: `${l}px`, h: `${c}px`, justify: i.styles.justify, align: i.styles.align, direction: "row", wrap: "nowrap", sx: {
|
|
21592
21592
|
overflow: "hidden"
|
|
21593
|
-
}, children: i.metrics.map((d) => /* @__PURE__ */ r.jsx(
|
|
21594
|
-
}),
|
|
21593
|
+
}, children: i.metrics.map((d) => /* @__PURE__ */ r.jsx(tz, { metric: d, variableValueMap: o }, d.id)) });
|
|
21594
|
+
}), rz = I(ne(({
|
|
21595
21595
|
value: t,
|
|
21596
21596
|
onChange: e
|
|
21597
21597
|
}, n) => {
|
|
@@ -21623,7 +21623,7 @@ const Wo = ({
|
|
|
21623
21623
|
t.type === "filter-option-label" && /* @__PURE__ */ r.jsx(F, { label: s("viz.merico_stats.metric.postfix_filter"), value: t.value, onChange: c, data: o })
|
|
21624
21624
|
] });
|
|
21625
21625
|
}));
|
|
21626
|
-
function
|
|
21626
|
+
function sz({
|
|
21627
21627
|
control: t,
|
|
21628
21628
|
index: e,
|
|
21629
21629
|
watch: n,
|
|
@@ -21673,17 +21673,17 @@ function sI({
|
|
|
21673
21673
|
/* @__PURE__ */ r.jsx(R, { mb: -15, variant: "dashed", label: i("viz.merico_stats.metric.others"), labelPosition: "center" }),
|
|
21674
21674
|
/* @__PURE__ */ r.jsx(g, { name: `metrics.${e}.postfix`, control: t, render: ({
|
|
21675
21675
|
field: a
|
|
21676
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21676
|
+
}) => /* @__PURE__ */ r.jsx(rz, { ...a }) })
|
|
21677
21677
|
] });
|
|
21678
21678
|
}
|
|
21679
|
-
const
|
|
21679
|
+
const iz = ({
|
|
21680
21680
|
control: t,
|
|
21681
21681
|
watch: e,
|
|
21682
21682
|
variables: n
|
|
21683
21683
|
}) => {
|
|
21684
21684
|
const {
|
|
21685
21685
|
t: s
|
|
21686
|
-
} = y(), i = () =>
|
|
21686
|
+
} = y(), i = () => ez(), a = (c, d) => {
|
|
21687
21687
|
const u = c.names.value.trim();
|
|
21688
21688
|
return u || d + 1;
|
|
21689
21689
|
}, o = ({
|
|
@@ -21699,10 +21699,10 @@ const iI = ({
|
|
|
21699
21699
|
/* @__PURE__ */ r.jsx(ke, { control: t, watch: e, name: "metrics", getItem: i, addButtonText: s("chart.tooltip.additional_metrics.add"), deleteButtonText: s("chart.tooltip.additional_metrics.delete"), renderTabName: a, deleteDisalbed: o, children: ({
|
|
21700
21700
|
field: c,
|
|
21701
21701
|
index: d
|
|
21702
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21702
|
+
}) => /* @__PURE__ */ r.jsx(sz, { control: t, index: d, variableOptions: l, watch: e }) })
|
|
21703
21703
|
] });
|
|
21704
21704
|
};
|
|
21705
|
-
function
|
|
21705
|
+
function az({
|
|
21706
21706
|
control: t,
|
|
21707
21707
|
watch: e
|
|
21708
21708
|
}) {
|
|
@@ -21725,7 +21725,7 @@ function aI({
|
|
|
21725
21725
|
] })
|
|
21726
21726
|
] });
|
|
21727
21727
|
}
|
|
21728
|
-
function
|
|
21728
|
+
function oz({
|
|
21729
21729
|
context: t
|
|
21730
21730
|
}) {
|
|
21731
21731
|
const {
|
|
@@ -21748,11 +21748,11 @@ function oI({
|
|
|
21748
21748
|
const u = c(), h = C(() => !xe(u, i), [u, i]);
|
|
21749
21749
|
return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
|
|
21750
21750
|
/* @__PURE__ */ r.jsx(Oe, { canSubmit: h }),
|
|
21751
|
-
/* @__PURE__ */ r.jsx(
|
|
21752
|
-
/* @__PURE__ */ r.jsx(
|
|
21751
|
+
/* @__PURE__ */ r.jsx(az, { control: a, watch: l }),
|
|
21752
|
+
/* @__PURE__ */ r.jsx(iz, { control: a, watch: l, variables: s })
|
|
21753
21753
|
] }) });
|
|
21754
21754
|
}
|
|
21755
|
-
function
|
|
21755
|
+
function lz(t) {
|
|
21756
21756
|
const {
|
|
21757
21757
|
metrics: e,
|
|
21758
21758
|
...n
|
|
@@ -21768,7 +21768,7 @@ function lI(t) {
|
|
|
21768
21768
|
}))
|
|
21769
21769
|
};
|
|
21770
21770
|
}
|
|
21771
|
-
const
|
|
21771
|
+
const cz = {
|
|
21772
21772
|
merico_stats: {
|
|
21773
21773
|
viz_name: "Merico Stats",
|
|
21774
21774
|
align_items: {
|
|
@@ -21790,7 +21790,7 @@ const cI = {
|
|
|
21790
21790
|
postfix_filter: "Postfix Filter"
|
|
21791
21791
|
}
|
|
21792
21792
|
}
|
|
21793
|
-
},
|
|
21793
|
+
}, dz = {
|
|
21794
21794
|
merico_stats: {
|
|
21795
21795
|
viz_name: "思码逸数据指标",
|
|
21796
21796
|
align_items: {
|
|
@@ -21812,14 +21812,14 @@ const cI = {
|
|
|
21812
21812
|
postfix_filter: "筛选器"
|
|
21813
21813
|
}
|
|
21814
21814
|
}
|
|
21815
|
-
},
|
|
21815
|
+
}, uz = [{
|
|
21816
21816
|
lang: "en",
|
|
21817
|
-
resources:
|
|
21817
|
+
resources: cz
|
|
21818
21818
|
}, {
|
|
21819
21819
|
lang: "zh",
|
|
21820
|
-
resources:
|
|
21820
|
+
resources: dz
|
|
21821
21821
|
}];
|
|
21822
|
-
class
|
|
21822
|
+
class hz extends Se {
|
|
21823
21823
|
constructor() {
|
|
21824
21824
|
super(...arguments);
|
|
21825
21825
|
N(this, "VERSION", 2);
|
|
@@ -21832,22 +21832,22 @@ class hI extends Se {
|
|
|
21832
21832
|
})), this.version(2, (n) => ({
|
|
21833
21833
|
...n,
|
|
21834
21834
|
version: 2,
|
|
21835
|
-
config:
|
|
21835
|
+
config: lz(n.config)
|
|
21836
21836
|
}));
|
|
21837
21837
|
}
|
|
21838
21838
|
}
|
|
21839
|
-
const
|
|
21839
|
+
const mz = {
|
|
21840
21840
|
displayName: "viz.merico_stats.viz_name",
|
|
21841
21841
|
displayGroup: "chart.groups.merico_suite",
|
|
21842
|
-
migrator: new
|
|
21842
|
+
migrator: new hz(),
|
|
21843
21843
|
name: "merico-stats",
|
|
21844
|
-
viewRender:
|
|
21845
|
-
configRender:
|
|
21844
|
+
viewRender: nz,
|
|
21845
|
+
configRender: oz,
|
|
21846
21846
|
createConfig: () => ({
|
|
21847
21847
|
version: 2,
|
|
21848
21848
|
config: ba
|
|
21849
21849
|
}),
|
|
21850
|
-
translation:
|
|
21850
|
+
translation: uz
|
|
21851
21851
|
}, ya = {
|
|
21852
21852
|
x_axis: {
|
|
21853
21853
|
name: "",
|
|
@@ -21889,7 +21889,7 @@ const mI = {
|
|
|
21889
21889
|
metrics: []
|
|
21890
21890
|
}
|
|
21891
21891
|
};
|
|
21892
|
-
function
|
|
21892
|
+
function pz({
|
|
21893
21893
|
control: t,
|
|
21894
21894
|
watch: e
|
|
21895
21895
|
}) {
|
|
@@ -21939,7 +21939,7 @@ function pI({
|
|
|
21939
21939
|
] })
|
|
21940
21940
|
] });
|
|
21941
21941
|
}
|
|
21942
|
-
const
|
|
21942
|
+
const xz = ({
|
|
21943
21943
|
control: t,
|
|
21944
21944
|
index: e
|
|
21945
21945
|
}) => {
|
|
@@ -21958,7 +21958,7 @@ const xI = ({
|
|
|
21958
21958
|
flex: 1
|
|
21959
21959
|
}, ...s }) })
|
|
21960
21960
|
] }) });
|
|
21961
|
-
},
|
|
21961
|
+
}, gz = ({
|
|
21962
21962
|
control: t,
|
|
21963
21963
|
watch: e
|
|
21964
21964
|
}) => {
|
|
@@ -21984,16 +21984,16 @@ const xI = ({
|
|
|
21984
21984
|
/* @__PURE__ */ r.jsx(ke, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
|
|
21985
21985
|
field: a,
|
|
21986
21986
|
index: o
|
|
21987
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21987
|
+
}) => /* @__PURE__ */ r.jsx(xz, { control: t, index: o }) })
|
|
21988
21988
|
] });
|
|
21989
21989
|
};
|
|
21990
|
-
function
|
|
21990
|
+
function fz({
|
|
21991
21991
|
control: t,
|
|
21992
21992
|
watch: e
|
|
21993
21993
|
}) {
|
|
21994
|
-
return /* @__PURE__ */ r.jsx(
|
|
21994
|
+
return /* @__PURE__ */ r.jsx(gz, { control: t, watch: e });
|
|
21995
21995
|
}
|
|
21996
|
-
function
|
|
21996
|
+
function bz({
|
|
21997
21997
|
control: t,
|
|
21998
21998
|
watch: e
|
|
21999
21999
|
}) {
|
|
@@ -22029,7 +22029,7 @@ function bI({
|
|
|
22029
22029
|
] })
|
|
22030
22030
|
] });
|
|
22031
22031
|
}
|
|
22032
|
-
function
|
|
22032
|
+
function yz({
|
|
22033
22033
|
control: t,
|
|
22034
22034
|
watch: e
|
|
22035
22035
|
}) {
|
|
@@ -22072,7 +22072,7 @@ function yI({
|
|
|
22072
22072
|
] })
|
|
22073
22073
|
] });
|
|
22074
22074
|
}
|
|
22075
|
-
function
|
|
22075
|
+
function _z({
|
|
22076
22076
|
context: t
|
|
22077
22077
|
}) {
|
|
22078
22078
|
const {
|
|
@@ -22123,17 +22123,17 @@ function _I({
|
|
|
22123
22123
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Heat Block", children: e("chart.heatmap.heatblock.label") }),
|
|
22124
22124
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Tooltip", children: e("chart.tooltip.label") })
|
|
22125
22125
|
] }),
|
|
22126
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "X Axis", children: /* @__PURE__ */ r.jsx(
|
|
22127
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Y Axis", children: /* @__PURE__ */ r.jsx(
|
|
22128
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Heat Block", children: /* @__PURE__ */ r.jsx(
|
|
22129
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Tooltip", children: /* @__PURE__ */ r.jsx(
|
|
22126
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "X Axis", children: /* @__PURE__ */ r.jsx(bz, { control: o, watch: c }) }),
|
|
22127
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Y Axis", children: /* @__PURE__ */ r.jsx(yz, { control: o, watch: c }) }),
|
|
22128
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Heat Block", children: /* @__PURE__ */ r.jsx(pz, { control: o, watch: c }) }),
|
|
22129
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Tooltip", children: /* @__PURE__ */ r.jsx(fz, { control: o, watch: c }) })
|
|
22130
22130
|
] })
|
|
22131
22131
|
] }) });
|
|
22132
22132
|
}
|
|
22133
|
-
function
|
|
22133
|
+
function vz(t) {
|
|
22134
22134
|
return /* @__PURE__ */ r.jsx(r.Fragment, {});
|
|
22135
22135
|
}
|
|
22136
|
-
function
|
|
22136
|
+
function jz(t) {
|
|
22137
22137
|
const {
|
|
22138
22138
|
t: e
|
|
22139
22139
|
} = y();
|
|
@@ -22142,8 +22142,8 @@ function jI(t) {
|
|
|
22142
22142
|
const wd = {
|
|
22143
22143
|
id: "builtin:echarts:click-heatmap:heat-block",
|
|
22144
22144
|
displayName: "viz.merico_heatmap.click_heatmap.heatblock.label",
|
|
22145
|
-
nameRender:
|
|
22146
|
-
configRender:
|
|
22145
|
+
nameRender: jz,
|
|
22146
|
+
configRender: vz,
|
|
22147
22147
|
payload: [{
|
|
22148
22148
|
name: "seriesType",
|
|
22149
22149
|
description: "'heatmap'",
|
|
@@ -22170,14 +22170,14 @@ const wd = {
|
|
|
22170
22170
|
valueType: "object"
|
|
22171
22171
|
}]
|
|
22172
22172
|
};
|
|
22173
|
-
function
|
|
22173
|
+
function wz(t) {
|
|
22174
22174
|
const e = tt(t.x_axis.axisLabel.formatter), n = tt(t.y_axis.axisLabel.formatter);
|
|
22175
22175
|
return {
|
|
22176
22176
|
x_axis: e,
|
|
22177
22177
|
y_axis: n
|
|
22178
22178
|
};
|
|
22179
22179
|
}
|
|
22180
|
-
function
|
|
22180
|
+
function Sz(t) {
|
|
22181
22181
|
return {
|
|
22182
22182
|
heat_block: function(s) {
|
|
22183
22183
|
if (!t.heat_block.value_formatter)
|
|
@@ -22190,7 +22190,7 @@ function SI(t) {
|
|
|
22190
22190
|
}
|
|
22191
22191
|
};
|
|
22192
22192
|
}
|
|
22193
|
-
function
|
|
22193
|
+
function kz(t) {
|
|
22194
22194
|
let e = 0;
|
|
22195
22195
|
return t.x_axis.name && (e += 20), {
|
|
22196
22196
|
top: 45,
|
|
@@ -22203,7 +22203,7 @@ function kI(t) {
|
|
|
22203
22203
|
z: 1
|
|
22204
22204
|
};
|
|
22205
22205
|
}
|
|
22206
|
-
function
|
|
22206
|
+
function Cz(t, e) {
|
|
22207
22207
|
const {
|
|
22208
22208
|
x_axis: n,
|
|
22209
22209
|
y_axis: s,
|
|
@@ -22226,13 +22226,13 @@ function CI(t, e) {
|
|
|
22226
22226
|
z: 2
|
|
22227
22227
|
};
|
|
22228
22228
|
}
|
|
22229
|
-
const
|
|
22229
|
+
const Iz = (t) => ie(t, {
|
|
22230
22230
|
output: "number",
|
|
22231
22231
|
trimMantissa: !0,
|
|
22232
22232
|
mantissa: 2,
|
|
22233
22233
|
absolute: !1
|
|
22234
22234
|
});
|
|
22235
|
-
function
|
|
22235
|
+
function zz({
|
|
22236
22236
|
conf: t,
|
|
22237
22237
|
labelFormatters: e,
|
|
22238
22238
|
valueFormatters: n,
|
|
@@ -22268,7 +22268,7 @@ function II({
|
|
|
22268
22268
|
const T = O(j.data_key);
|
|
22269
22269
|
x.push({
|
|
22270
22270
|
label: j.name,
|
|
22271
|
-
value:
|
|
22271
|
+
value: Iz(S.get(f, T.columnKey, "")),
|
|
22272
22272
|
style: {
|
|
22273
22273
|
label: "",
|
|
22274
22274
|
value: ""
|
|
@@ -22276,7 +22276,7 @@ function II({
|
|
|
22276
22276
|
});
|
|
22277
22277
|
}), x;
|
|
22278
22278
|
}
|
|
22279
|
-
function
|
|
22279
|
+
function Tz(t, e, n, s) {
|
|
22280
22280
|
const {
|
|
22281
22281
|
x_axis: i,
|
|
22282
22282
|
y_axis: a,
|
|
@@ -22286,7 +22286,7 @@ function TI(t, e, n, s) {
|
|
|
22286
22286
|
const d = S.keyBy(e[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
|
|
22287
22287
|
return me.getTooltip({
|
|
22288
22288
|
formatter: function(u) {
|
|
22289
|
-
const m =
|
|
22289
|
+
const m = zz({
|
|
22290
22290
|
conf: t,
|
|
22291
22291
|
labelFormatters: n,
|
|
22292
22292
|
valueFormatters: s,
|
|
@@ -22318,7 +22318,7 @@ function TI(t, e, n, s) {
|
|
|
22318
22318
|
}
|
|
22319
22319
|
});
|
|
22320
22320
|
}
|
|
22321
|
-
function
|
|
22321
|
+
function Dz(t, e) {
|
|
22322
22322
|
const n = Un(t.heat_block.min, e), s = Un(t.heat_block.max, e);
|
|
22323
22323
|
return {
|
|
22324
22324
|
min: n,
|
|
@@ -22330,7 +22330,7 @@ function DI(t, e) {
|
|
|
22330
22330
|
itemWidth: 15
|
|
22331
22331
|
};
|
|
22332
22332
|
}
|
|
22333
|
-
function
|
|
22333
|
+
function Mz(t, e, n) {
|
|
22334
22334
|
const s = O(t.x_axis.data_key), i = S.uniq(e[s.queryID].map((c) => c[s.columnKey])), {
|
|
22335
22335
|
overflow: a,
|
|
22336
22336
|
rotate: o
|
|
@@ -22368,7 +22368,7 @@ function MI(t, e, n) {
|
|
|
22368
22368
|
z: 3
|
|
22369
22369
|
});
|
|
22370
22370
|
}
|
|
22371
|
-
function
|
|
22371
|
+
function Lz(t, e, n) {
|
|
22372
22372
|
const s = O(t.x_axis.data_key), i = O(t.y_axis.data_key), {
|
|
22373
22373
|
nameAlignment: a,
|
|
22374
22374
|
data_key: o,
|
|
@@ -22414,23 +22414,23 @@ function LI(t, e, n) {
|
|
|
22414
22414
|
z: 3
|
|
22415
22415
|
});
|
|
22416
22416
|
}
|
|
22417
|
-
function
|
|
22417
|
+
function Ez(t, e, n) {
|
|
22418
22418
|
if (!t.x_axis.data_key || !t.y_axis.data_key || !t.heat_block.data_key)
|
|
22419
22419
|
return {};
|
|
22420
22420
|
const s = n.reduce((l, c) => {
|
|
22421
22421
|
const d = Xt(c, e);
|
|
22422
22422
|
return l[c.name] = mt(c, d), l;
|
|
22423
|
-
}, {}), i =
|
|
22423
|
+
}, {}), i = wz(t), a = Sz(t);
|
|
22424
22424
|
return {
|
|
22425
|
-
xAxis:
|
|
22426
|
-
yAxis:
|
|
22427
|
-
series:
|
|
22428
|
-
tooltip:
|
|
22429
|
-
grid:
|
|
22430
|
-
visualMap:
|
|
22425
|
+
xAxis: Mz(t, e, i.x_axis),
|
|
22426
|
+
yAxis: Lz(t, e, i.y_axis),
|
|
22427
|
+
series: Cz(t, e),
|
|
22428
|
+
tooltip: Tz(t, e, i, a),
|
|
22429
|
+
grid: kz(t),
|
|
22430
|
+
visualMap: Dz(t, s)
|
|
22431
22431
|
};
|
|
22432
22432
|
}
|
|
22433
|
-
function
|
|
22433
|
+
function Az({
|
|
22434
22434
|
conf: t,
|
|
22435
22435
|
data: e,
|
|
22436
22436
|
width: n,
|
|
@@ -22453,13 +22453,13 @@ function AI({
|
|
|
22453
22453
|
});
|
|
22454
22454
|
}, [o, l, i]), d = C(() => ({
|
|
22455
22455
|
click: c
|
|
22456
|
-
}), [c]), u = L.useMemo(() =>
|
|
22456
|
+
}), [c]), u = L.useMemo(() => Ez(t, e, a), [t, e]);
|
|
22457
22457
|
return /* @__PURE__ */ r.jsx(Xe, { echarts: Ye, option: u, style: {
|
|
22458
22458
|
width: n,
|
|
22459
22459
|
height: s
|
|
22460
22460
|
}, onEvents: d, notMerge: !0, theme: "merico-light" });
|
|
22461
22461
|
}
|
|
22462
|
-
function
|
|
22462
|
+
function Rz({
|
|
22463
22463
|
context: t,
|
|
22464
22464
|
instance: e
|
|
22465
22465
|
}) {
|
|
@@ -22474,9 +22474,9 @@ function RI({
|
|
|
22474
22474
|
width: l,
|
|
22475
22475
|
height: c
|
|
22476
22476
|
} = t.viewport;
|
|
22477
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(
|
|
22477
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(Az, { variables: i, width: wt(l), height: St(c), data: o, conf: a, interactionManager: n }) });
|
|
22478
22478
|
}
|
|
22479
|
-
const $
|
|
22479
|
+
const $z = {
|
|
22480
22480
|
merico_heatmap: {
|
|
22481
22481
|
viz_name: "Merico Heatmap",
|
|
22482
22482
|
click_heatmap: {
|
|
@@ -22485,7 +22485,7 @@ const $I = {
|
|
|
22485
22485
|
}
|
|
22486
22486
|
}
|
|
22487
22487
|
}
|
|
22488
|
-
},
|
|
22488
|
+
}, Pz = {
|
|
22489
22489
|
merico_heatmap: {
|
|
22490
22490
|
viz_name: "思码逸热力图",
|
|
22491
22491
|
click_heatmap: {
|
|
@@ -22494,14 +22494,14 @@ const $I = {
|
|
|
22494
22494
|
}
|
|
22495
22495
|
}
|
|
22496
22496
|
}
|
|
22497
|
-
},
|
|
22497
|
+
}, Oz = [{
|
|
22498
22498
|
lang: "en",
|
|
22499
|
-
resources: $
|
|
22499
|
+
resources: $z
|
|
22500
22500
|
}, {
|
|
22501
22501
|
lang: "zh",
|
|
22502
|
-
resources:
|
|
22502
|
+
resources: Pz
|
|
22503
22503
|
}];
|
|
22504
|
-
class
|
|
22504
|
+
class Fz extends Se {
|
|
22505
22505
|
constructor() {
|
|
22506
22506
|
super(...arguments);
|
|
22507
22507
|
N(this, "VERSION", 1);
|
|
@@ -22513,20 +22513,20 @@ class FI extends Se {
|
|
|
22513
22513
|
}));
|
|
22514
22514
|
}
|
|
22515
22515
|
}
|
|
22516
|
-
const
|
|
22516
|
+
const Vz = {
|
|
22517
22517
|
displayName: "viz.merico_heatmap.viz_name",
|
|
22518
22518
|
displayGroup: "chart.groups.merico_suite",
|
|
22519
|
-
migrator: new
|
|
22519
|
+
migrator: new Fz(),
|
|
22520
22520
|
name: "merico-heatmap",
|
|
22521
|
-
viewRender:
|
|
22522
|
-
configRender:
|
|
22521
|
+
viewRender: Rz,
|
|
22522
|
+
configRender: _z,
|
|
22523
22523
|
createConfig: () => ({
|
|
22524
22524
|
version: 1,
|
|
22525
22525
|
config: ya
|
|
22526
22526
|
}),
|
|
22527
22527
|
triggers: [wd],
|
|
22528
|
-
translation:
|
|
22529
|
-
},
|
|
22528
|
+
translation: Oz
|
|
22529
|
+
}, qz = [{
|
|
22530
22530
|
value: "#25262B",
|
|
22531
22531
|
name: "Dark"
|
|
22532
22532
|
}, {
|
|
@@ -22573,12 +22573,12 @@ const VI = {
|
|
|
22573
22573
|
value: t.value,
|
|
22574
22574
|
type: "single",
|
|
22575
22575
|
category: "basic"
|
|
22576
|
-
})),
|
|
22576
|
+
})), Nz = [Yx, Kx, Zx, Xx, Jx, eg], Sd = [yi, wk, G1, dS, Qk, Uw, bI, yg, jb, dj, ew, AC, Aw, Bv, dk, j0, X0, nC, ZI, Vz, mz, Rb], kd = () => ({
|
|
22577
22577
|
id: "dashboard",
|
|
22578
22578
|
version: lc,
|
|
22579
22579
|
manifest: {
|
|
22580
22580
|
viz: Sd,
|
|
22581
|
-
color: [...
|
|
22581
|
+
color: [...qz, ...Nz]
|
|
22582
22582
|
}
|
|
22583
22583
|
}), lr = new sg(), Te = {
|
|
22584
22584
|
pluginManager: Ft("pluginManager"),
|
|
@@ -22616,10 +22616,10 @@ function Es(t) {
|
|
|
22616
22616
|
function Cd() {
|
|
22617
22617
|
return L.useContext(ji);
|
|
22618
22618
|
}
|
|
22619
|
-
const
|
|
22619
|
+
const Bz = ({
|
|
22620
22620
|
description: t,
|
|
22621
22621
|
isDescriptionEmpty: e
|
|
22622
|
-
}) => e ? null : /* @__PURE__ */ r.jsx(ge, { color: "white", label: /* @__PURE__ */ r.jsx(
|
|
22622
|
+
}) => e ? null : /* @__PURE__ */ r.jsx(ge, { color: "white", label: /* @__PURE__ */ r.jsx(zs, { value: t, styles: {
|
|
22623
22623
|
root: {
|
|
22624
22624
|
border: "none"
|
|
22625
22625
|
},
|
|
@@ -22634,7 +22634,7 @@ const BI = ({
|
|
|
22634
22634
|
}, withArrow: !0, children: /* @__PURE__ */ r.jsx(M, { sx: {
|
|
22635
22635
|
height: "16px",
|
|
22636
22636
|
alignSelf: "center"
|
|
22637
|
-
}, children: /* @__PURE__ */ r.jsx(Dn, { size: 16, color: "gray" }) }) }),
|
|
22637
|
+
}, children: /* @__PURE__ */ r.jsx(Dn, { size: 16, color: "gray" }) }) }), Wz = I(({
|
|
22638
22638
|
label: t,
|
|
22639
22639
|
config: {
|
|
22640
22640
|
default_value: e,
|
|
@@ -22650,13 +22650,13 @@ const BI = ({
|
|
|
22650
22650
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
22651
22651
|
flexGrow: 1
|
|
22652
22652
|
}, children: t }),
|
|
22653
|
-
/* @__PURE__ */ r.jsx(
|
|
22653
|
+
/* @__PURE__ */ r.jsx(Bz, { description: n, isDescriptionEmpty: s })
|
|
22654
22654
|
] }), checked: a || !1, onChange: (l) => o(l.currentTarget.checked), ...i, pt: ".4em", styles: {
|
|
22655
22655
|
input: {
|
|
22656
22656
|
borderColor: "#e9ecef"
|
|
22657
22657
|
}
|
|
22658
22658
|
} })
|
|
22659
|
-
] })),
|
|
22659
|
+
] })), Gz = ({
|
|
22660
22660
|
value: t,
|
|
22661
22661
|
onChange: e,
|
|
22662
22662
|
close: n,
|
|
@@ -22676,7 +22676,7 @@ const BI = ({
|
|
|
22676
22676
|
e(m), x && f && n();
|
|
22677
22677
|
};
|
|
22678
22678
|
return /* @__PURE__ */ r.jsx(am, { defaultDate: c, numberOfColumns: 2, type: "range", value: t, onChange: h, onNextMonth: console.log, minDate: d, maxDate: u, allowSingleDateInRange: i, locale: a.language });
|
|
22679
|
-
},
|
|
22679
|
+
}, Qz = ({
|
|
22680
22680
|
begin: t,
|
|
22681
22681
|
end: e
|
|
22682
22682
|
}) => {
|
|
@@ -22693,7 +22693,7 @@ const BI = ({
|
|
|
22693
22693
|
count: s
|
|
22694
22694
|
});
|
|
22695
22695
|
return /* @__PURE__ */ r.jsx(ge, { label: i, children: /* @__PURE__ */ r.jsx(nn, { size: "sm", children: s }) });
|
|
22696
|
-
},
|
|
22696
|
+
}, Hz = ({
|
|
22697
22697
|
max_days: t
|
|
22698
22698
|
}) => {
|
|
22699
22699
|
const {
|
|
@@ -22858,11 +22858,11 @@ const BI = ({
|
|
|
22858
22858
|
return [$(t).startOf("year").toDate(), $(t).toDate()];
|
|
22859
22859
|
}
|
|
22860
22860
|
}];
|
|
22861
|
-
function
|
|
22861
|
+
function Id(t) {
|
|
22862
22862
|
const n = va().find((s) => s.value === t);
|
|
22863
22863
|
return n ? n.getRange() : null;
|
|
22864
22864
|
}
|
|
22865
|
-
const
|
|
22865
|
+
const Uz = ({
|
|
22866
22866
|
onChange: t
|
|
22867
22867
|
}) => {
|
|
22868
22868
|
const {
|
|
@@ -22892,7 +22892,7 @@ const UI = ({
|
|
|
22892
22892
|
key: c,
|
|
22893
22893
|
value: d,
|
|
22894
22894
|
getRange: u
|
|
22895
|
-
}) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
22895
|
+
}) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(z, { compact: !0, size: "xs", variant: "subtle", onClick: s(u), children: e(`filter.widget.date_range.shortcut.${o}.${a ? "full." : ""}${c}`) }) }, c))
|
|
22896
22896
|
] }, o)) }) })
|
|
22897
22897
|
] });
|
|
22898
22898
|
}, Go = (t) => ({
|
|
@@ -22903,7 +22903,7 @@ const UI = ({
|
|
|
22903
22903
|
input: {
|
|
22904
22904
|
borderColor: t ? "#228be6" : "#e9ecef"
|
|
22905
22905
|
}
|
|
22906
|
-
}),
|
|
22906
|
+
}), Yz = ({
|
|
22907
22907
|
label: t,
|
|
22908
22908
|
required: e,
|
|
22909
22909
|
value: n,
|
|
@@ -22929,7 +22929,7 @@ const UI = ({
|
|
|
22929
22929
|
borderBottomRightRadius: 0
|
|
22930
22930
|
}
|
|
22931
22931
|
} }) }),
|
|
22932
|
-
/* @__PURE__ */ r.jsx(D, { label: /* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(
|
|
22932
|
+
/* @__PURE__ */ r.jsx(D, { label: /* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(Qz, { begin: h, end: m }) }), icon: /* @__PURE__ */ r.jsx(wm, { size: 16 }), placeholder: l("filter.widget.date_range.end_date"), readOnly: !0, disabled: !h, value: f, onFocus: d, styles: Go(c), sx: {
|
|
22933
22933
|
".mantine-Input-icon": {
|
|
22934
22934
|
transform: "translateX(-22px)"
|
|
22935
22935
|
},
|
|
@@ -22949,12 +22949,12 @@ const UI = ({
|
|
|
22949
22949
|
} })
|
|
22950
22950
|
] }),
|
|
22951
22951
|
/* @__PURE__ */ r.jsxs(Vn.Dropdown, { p: "sm", children: [
|
|
22952
|
-
/* @__PURE__ */ r.jsx(
|
|
22953
|
-
/* @__PURE__ */ r.jsx(
|
|
22954
|
-
/* @__PURE__ */ r.jsx(
|
|
22952
|
+
/* @__PURE__ */ r.jsx(Hz, { max_days: i }),
|
|
22953
|
+
/* @__PURE__ */ r.jsx(Gz, { value: n, onChange: s, close: u, allowSingleDateInRange: a, max_days: i }),
|
|
22954
|
+
/* @__PURE__ */ r.jsx(Uz, { onChange: s })
|
|
22955
22955
|
] })
|
|
22956
22956
|
] });
|
|
22957
|
-
},
|
|
22957
|
+
}, zd = I(({
|
|
22958
22958
|
label: t,
|
|
22959
22959
|
config: e,
|
|
22960
22960
|
value: n = [null, null],
|
|
@@ -22968,8 +22968,8 @@ const UI = ({
|
|
|
22968
22968
|
} = e, c = Array.isArray(n) ? n.map((u) => u ? $(u).toDate() : null) : [null, null], d = (u) => {
|
|
22969
22969
|
s(u.map((h) => h && $(h).format(i)));
|
|
22970
22970
|
};
|
|
22971
|
-
return /* @__PURE__ */ r.jsx(
|
|
22972
|
-
}),
|
|
22971
|
+
return /* @__PURE__ */ r.jsx(Yz, { label: t, value: c, onChange: d, inputFormat: i, allowSingleDateInRange: l, max_days: o, required: a });
|
|
22972
|
+
}), Kz = yr((t, {
|
|
22973
22973
|
radius: e = 4
|
|
22974
22974
|
}) => ({
|
|
22975
22975
|
root: {
|
|
@@ -23152,7 +23152,7 @@ const UI = ({
|
|
|
23152
23152
|
t: e
|
|
23153
23153
|
} = y();
|
|
23154
23154
|
return t ? /* @__PURE__ */ r.jsx(w, { color: "red", size: 12, children: t }) : /* @__PURE__ */ r.jsx(w, { color: "dimmed", size: 12, children: e("filter.widget.common.selector_option_empty") });
|
|
23155
|
-
},
|
|
23155
|
+
}, Jz = ({
|
|
23156
23156
|
disabled: t,
|
|
23157
23157
|
// styling props
|
|
23158
23158
|
classNames: e,
|
|
@@ -23173,7 +23173,7 @@ const UI = ({
|
|
|
23173
23173
|
} = y(), {
|
|
23174
23174
|
classes: x,
|
|
23175
23175
|
cx: f
|
|
23176
|
-
} =
|
|
23176
|
+
} = Kz({
|
|
23177
23177
|
radius: i
|
|
23178
23178
|
}, {
|
|
23179
23179
|
name: "MultiSelectWidget",
|
|
@@ -23208,7 +23208,7 @@ const UI = ({
|
|
|
23208
23208
|
Z.description && /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", "data-role": "description", children: Z.description })
|
|
23209
23209
|
] }, Z.value)) })
|
|
23210
23210
|
] });
|
|
23211
|
-
},
|
|
23211
|
+
}, Xz = I(({
|
|
23212
23212
|
label: t,
|
|
23213
23213
|
config: e,
|
|
23214
23214
|
value: n,
|
|
@@ -23218,20 +23218,20 @@ const UI = ({
|
|
|
23218
23218
|
state: o,
|
|
23219
23219
|
error: l
|
|
23220
23220
|
} = i.getDataStuffByID(e.options_query_id), c = o === "loading", d = e.min_width ? e.min_width : "200px", u = a ? c : !1, h = (m) => s(m, !1);
|
|
23221
|
-
return /* @__PURE__ */ r.jsx(
|
|
23221
|
+
return /* @__PURE__ */ r.jsx(Jz, { label: t, options: e.options, style: {
|
|
23222
23222
|
minWidth: "160px",
|
|
23223
23223
|
width: d,
|
|
23224
23224
|
maxWidth: u ? d : "unset",
|
|
23225
23225
|
borderColor: "#e9ecef"
|
|
23226
23226
|
}, disabled: u, value: n, onChange: h, errorMessage: l, required: e.required });
|
|
23227
|
-
}),
|
|
23227
|
+
}), Zz = ne(({
|
|
23228
23228
|
label: t,
|
|
23229
23229
|
description: e,
|
|
23230
23230
|
...n
|
|
23231
23231
|
}, s) => /* @__PURE__ */ r.jsx("div", { ref: s, ...n, children: /* @__PURE__ */ r.jsx(b, { noWrap: !0, children: /* @__PURE__ */ r.jsxs("div", { children: [
|
|
23232
23232
|
/* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: t }),
|
|
23233
23233
|
/* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", "data-role": "description", children: e })
|
|
23234
|
-
] }) }) })), eT =
|
|
23234
|
+
] }) }) })), eT = I(({
|
|
23235
23235
|
label: t,
|
|
23236
23236
|
config: e,
|
|
23237
23237
|
value: n,
|
|
@@ -23268,7 +23268,7 @@ const UI = ({
|
|
|
23268
23268
|
padding: "4px 10px"
|
|
23269
23269
|
}
|
|
23270
23270
|
},
|
|
23271
|
-
itemComponent:
|
|
23271
|
+
itemComponent: Zz,
|
|
23272
23272
|
searchable: !l,
|
|
23273
23273
|
nothingFound: /* @__PURE__ */ r.jsx(ja, { errorMessage: l }),
|
|
23274
23274
|
clearable: e.clearable
|
|
@@ -23629,7 +23629,7 @@ const nT = ({
|
|
|
23629
23629
|
}
|
|
23630
23630
|
)
|
|
23631
23631
|
] });
|
|
23632
|
-
}, lT =
|
|
23632
|
+
}, lT = I(({
|
|
23633
23633
|
label: t,
|
|
23634
23634
|
config: e,
|
|
23635
23635
|
value: n,
|
|
@@ -23649,7 +23649,7 @@ const nT = ({
|
|
|
23649
23649
|
maxWidth: h ? d : "unset",
|
|
23650
23650
|
borderColor: "#e9ecef"
|
|
23651
23651
|
}, value: [...c], onChange: l, treeData: i, errorMessage: o, label: t, required: e.required, treeCheckStrictly: e.treeCheckStrictly });
|
|
23652
|
-
}), cT =
|
|
23652
|
+
}), cT = I(({
|
|
23653
23653
|
filter: {
|
|
23654
23654
|
type: t,
|
|
23655
23655
|
config: e,
|
|
@@ -23662,19 +23662,19 @@ const nT = ({
|
|
|
23662
23662
|
case "select":
|
|
23663
23663
|
return /* @__PURE__ */ r.jsx(eT, { ...s, ...i, config: e });
|
|
23664
23664
|
case "multi-select":
|
|
23665
|
-
return /* @__PURE__ */ r.jsx(
|
|
23665
|
+
return /* @__PURE__ */ r.jsx(Xz, { ...s, ...i, config: e });
|
|
23666
23666
|
case "tree-select":
|
|
23667
23667
|
return /* @__PURE__ */ r.jsx(lT, { ...s, ...i, config: e });
|
|
23668
23668
|
case "text-input":
|
|
23669
23669
|
return /* @__PURE__ */ r.jsx(tT, { ...s, ...i, config: e });
|
|
23670
23670
|
case "date-range":
|
|
23671
|
-
return /* @__PURE__ */ r.jsx(
|
|
23671
|
+
return /* @__PURE__ */ r.jsx(zd, { ...s, ...i, config: e });
|
|
23672
23672
|
case "checkbox":
|
|
23673
|
-
return /* @__PURE__ */ r.jsx(
|
|
23673
|
+
return /* @__PURE__ */ r.jsx(Wz, { ...s, ...i, config: e });
|
|
23674
23674
|
default:
|
|
23675
23675
|
return null;
|
|
23676
23676
|
}
|
|
23677
|
-
}), dT =
|
|
23677
|
+
}), dT = I(L.forwardRef(({
|
|
23678
23678
|
filter: t,
|
|
23679
23679
|
...e
|
|
23680
23680
|
}, n) => /* @__PURE__ */ r.jsx("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ r.jsx(Qe, { children: /* @__PURE__ */ r.jsx(cT, { filter: t, formFieldProps: e }) }) }))), uT = ({
|
|
@@ -23687,7 +23687,7 @@ const nT = ({
|
|
|
23687
23687
|
type: s,
|
|
23688
23688
|
...i
|
|
23689
23689
|
} = e;
|
|
23690
|
-
return /* @__PURE__ */ r.jsx(
|
|
23690
|
+
return /* @__PURE__ */ r.jsx(z, { color: "blue", size: "sm", type: "submit", ...i, disabled: t || i.disabled, children: n });
|
|
23691
23691
|
};
|
|
23692
23692
|
function hT(t) {
|
|
23693
23693
|
const e = oe();
|
|
@@ -23703,8 +23703,8 @@ const mT = ({
|
|
|
23703
23703
|
const {
|
|
23704
23704
|
t: n
|
|
23705
23705
|
} = y();
|
|
23706
|
-
return /* @__PURE__ */ r.jsx(b, { position: "right", ml: -4, mt: -4, mb: t ? 4 : 0, children: /* @__PURE__ */ r.jsx(
|
|
23707
|
-
}, Td =
|
|
23706
|
+
return /* @__PURE__ */ r.jsx(b, { position: "right", ml: -4, mt: -4, mb: t ? 4 : 0, children: /* @__PURE__ */ r.jsx(z, { size: "xs", compact: !0, variant: "subtle", color: t ? "gray" : "blue", leftIcon: t ? /* @__PURE__ */ r.jsx(Sm, { size: 14 }) : /* @__PURE__ */ r.jsx(km, { size: 14 }), onClick: e, children: n(t ? "filter.hide_filters" : "filter.show_filters") }) });
|
|
23707
|
+
}, Td = I(function({
|
|
23708
23708
|
view: e
|
|
23709
23709
|
}) {
|
|
23710
23710
|
const [n, {
|
|
@@ -24315,7 +24315,7 @@ const CT = p.model("FilterDateRangeConfigMeta", {
|
|
|
24315
24315
|
setDefaultShortcut(e) {
|
|
24316
24316
|
if (t.default_shortcut = e, !e)
|
|
24317
24317
|
return;
|
|
24318
|
-
const n =
|
|
24318
|
+
const n = Id(t.default_shortcut);
|
|
24319
24319
|
if (console.log(n), n) {
|
|
24320
24320
|
const s = n.map((i) => $(i).format(t.inputFormat));
|
|
24321
24321
|
t.setFilterValue(s);
|
|
@@ -24347,13 +24347,13 @@ const CT = p.model("FilterDateRangeConfigMeta", {
|
|
|
24347
24347
|
default_value: Ed(e, n.inputFormat)
|
|
24348
24348
|
};
|
|
24349
24349
|
}
|
|
24350
|
-
}),
|
|
24350
|
+
}), IT = () => Ad.create({
|
|
24351
24351
|
_name: "date-range",
|
|
24352
24352
|
required: !1,
|
|
24353
24353
|
inputFormat: "YYYY-MM-DD",
|
|
24354
24354
|
clearable: !1,
|
|
24355
24355
|
default_value: [null, null]
|
|
24356
|
-
}),
|
|
24356
|
+
}), zT = p.model({
|
|
24357
24357
|
label: p.string,
|
|
24358
24358
|
value: p.string
|
|
24359
24359
|
}).actions((t) => ({
|
|
@@ -24364,7 +24364,7 @@ const CT = p.model("FilterDateRangeConfigMeta", {
|
|
|
24364
24364
|
t.value = e;
|
|
24365
24365
|
}
|
|
24366
24366
|
})), wa = p.model("FilterConfigModel_BaseSelect", {
|
|
24367
|
-
static_options: p.optional(p.array(
|
|
24367
|
+
static_options: p.optional(p.array(zT), []),
|
|
24368
24368
|
options_query_id: p.optional(p.string, ""),
|
|
24369
24369
|
default_selection_count: p.optional(p.number, 0),
|
|
24370
24370
|
required: p.optional(p.boolean, !1)
|
|
@@ -24779,7 +24779,7 @@ const Fd = p.compose("FilterTreeSelectConfigMeta", p.model({
|
|
|
24779
24779
|
t.config = kT();
|
|
24780
24780
|
break;
|
|
24781
24781
|
case Le.DateRange:
|
|
24782
|
-
t.config =
|
|
24782
|
+
t.config = IT();
|
|
24783
24783
|
break;
|
|
24784
24784
|
}
|
|
24785
24785
|
t.type = e;
|
|
@@ -25407,7 +25407,7 @@ function Xd(t) {
|
|
|
25407
25407
|
if (e._name === "date-range")
|
|
25408
25408
|
try {
|
|
25409
25409
|
if (e.default_shortcut) {
|
|
25410
|
-
const i =
|
|
25410
|
+
const i = Id(e.default_shortcut);
|
|
25411
25411
|
if (i)
|
|
25412
25412
|
return i.map((a) => $(a).format(e.inputFormat));
|
|
25413
25413
|
}
|
|
@@ -26078,19 +26078,19 @@ class JT {
|
|
|
26078
26078
|
});
|
|
26079
26079
|
}
|
|
26080
26080
|
get changed() {
|
|
26081
|
-
return !xe(
|
|
26081
|
+
return !xe(zt(this.origin), zt(this.copy));
|
|
26082
26082
|
}
|
|
26083
26083
|
commit() {
|
|
26084
|
-
Ge(this.origin,
|
|
26084
|
+
Ge(this.origin, zt(this.copy));
|
|
26085
26085
|
}
|
|
26086
26086
|
reset() {
|
|
26087
|
-
Ge(this.copy,
|
|
26087
|
+
Ge(this.copy, zt(this.origin));
|
|
26088
26088
|
}
|
|
26089
26089
|
update(e) {
|
|
26090
26090
|
Ge(this.copy, e);
|
|
26091
26091
|
}
|
|
26092
26092
|
}
|
|
26093
|
-
const XT = (t) => new JT(t), ZT =
|
|
26093
|
+
const XT = (t) => new JT(t), ZT = I(({
|
|
26094
26094
|
view: t
|
|
26095
26095
|
}) => {
|
|
26096
26096
|
const {
|
|
@@ -26133,7 +26133,7 @@ const XT = (t) => new JT(t), ZT = z(({
|
|
|
26133
26133
|
width: "100%"
|
|
26134
26134
|
} }) }),
|
|
26135
26135
|
/* @__PURE__ */ r.jsxs(Y.Dropdown, { children: [
|
|
26136
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick: a.refreshData, icon: /* @__PURE__ */ r.jsx(
|
|
26136
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: a.refreshData, icon: /* @__PURE__ */ r.jsx(zi, { size: 14 }), children: e("common.actions.refresh") }),
|
|
26137
26137
|
/* @__PURE__ */ r.jsx(Y.Item, { onClick: a.downloadData, icon: /* @__PURE__ */ r.jsx(Ti, { size: 14 }), children: e("common.actions.download_data") }),
|
|
26138
26138
|
/* @__PURE__ */ r.jsx(Y.Item, { onClick: a.downloadSchema, icon: /* @__PURE__ */ r.jsx(Cn, { size: 14 }), children: e("common.actions.download_schema") }),
|
|
26139
26139
|
/* @__PURE__ */ r.jsx(Y.Item, { onClick: o, icon: /* @__PURE__ */ r.jsx(xs, { size: 14 }), children: e("common.actions.download_screenshot") }),
|
|
@@ -26148,14 +26148,14 @@ const XT = (t) => new JT(t), ZT = z(({
|
|
|
26148
26148
|
function eD(t) {
|
|
26149
26149
|
return t ? ["<p><br></p>", "<p></p>"].includes(t) : !0;
|
|
26150
26150
|
}
|
|
26151
|
-
const ou =
|
|
26151
|
+
const ou = I(() => {
|
|
26152
26152
|
const {
|
|
26153
26153
|
t
|
|
26154
26154
|
} = y(), [e, n] = L.useState(!1), {
|
|
26155
26155
|
panel: s
|
|
26156
26156
|
} = ln();
|
|
26157
26157
|
return eD(s.description) ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
26158
|
-
/* @__PURE__ */ r.jsx(je, { opened: e, onClose: () => n(!1), title: s.title.show ? s.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(
|
|
26158
|
+
/* @__PURE__ */ r.jsx(je, { opened: e, onClose: () => n(!1), title: s.title.show ? s.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(zs, { value: s.description, styles: {
|
|
26159
26159
|
root: {
|
|
26160
26160
|
border: "none"
|
|
26161
26161
|
},
|
|
@@ -26173,7 +26173,7 @@ const ou = z(() => {
|
|
|
26173
26173
|
}, children: /* @__PURE__ */ r.jsx(Kt, { size: 20 }) }) })
|
|
26174
26174
|
] });
|
|
26175
26175
|
});
|
|
26176
|
-
const tD =
|
|
26176
|
+
const tD = I(function() {
|
|
26177
26177
|
const {
|
|
26178
26178
|
panel: e
|
|
26179
26179
|
} = ln(), {
|
|
@@ -26347,7 +26347,7 @@ function aD(t, e) {
|
|
|
26347
26347
|
return console.info(se(m, "message")), null;
|
|
26348
26348
|
}
|
|
26349
26349
|
}
|
|
26350
|
-
const oD =
|
|
26350
|
+
const oD = I(function({
|
|
26351
26351
|
data: e
|
|
26352
26352
|
}) {
|
|
26353
26353
|
const {
|
|
@@ -26363,25 +26363,25 @@ const oD = z(function({
|
|
|
26363
26363
|
height: i,
|
|
26364
26364
|
overflow: "hidden"
|
|
26365
26365
|
}, children: o && /* @__PURE__ */ r.jsx(Qe, { children: a }) }) });
|
|
26366
|
-
}), lD =
|
|
26366
|
+
}), lD = I(({
|
|
26367
26367
|
panel: t
|
|
26368
26368
|
}) => /* @__PURE__ */ r.jsxs(k, { children: [
|
|
26369
26369
|
t.queryErrors.map((e, n) => /* @__PURE__ */ r.jsx(w, { color: "red", size: "sm", align: "center", sx: {
|
|
26370
26370
|
fontFamily: "monospace"
|
|
26371
26371
|
}, children: e }, `${n}-${e}`)),
|
|
26372
26372
|
/* @__PURE__ */ r.jsx(w, { color: "gray", align: "center", size: "sm", children: t.queryStateMessages })
|
|
26373
|
-
] })), hu =
|
|
26373
|
+
] })), hu = I(({
|
|
26374
26374
|
panel: t
|
|
26375
26375
|
}) => /* @__PURE__ */ r.jsxs(Ut, { className: "panel-viz-section", direction: "column", sx: {
|
|
26376
26376
|
position: "relative",
|
|
26377
26377
|
width: "100%"
|
|
26378
26378
|
}, children: [
|
|
26379
|
-
/* @__PURE__ */ r.jsx(
|
|
26379
|
+
/* @__PURE__ */ r.jsx(In, { visible: t.dataLoading, exitTransitionDuration: 0 }),
|
|
26380
26380
|
!t.canRenderViz && /* @__PURE__ */ r.jsx(lD, { panel: t }),
|
|
26381
26381
|
t.canRenderViz && /* @__PURE__ */ r.jsx(oD, { data: t.data })
|
|
26382
26382
|
] })), cD = {
|
|
26383
26383
|
border: "1px solid #e9ecef"
|
|
26384
|
-
}, mu =
|
|
26384
|
+
}, mu = I(({
|
|
26385
26385
|
panel: t,
|
|
26386
26386
|
panelStyle: e,
|
|
26387
26387
|
dropdownContent: n
|
|
@@ -26415,7 +26415,7 @@ const oD = z(function({
|
|
|
26415
26415
|
function uD(t) {
|
|
26416
26416
|
return t.style.border.enabled ? {} : dD;
|
|
26417
26417
|
}
|
|
26418
|
-
const hD =
|
|
26418
|
+
const hD = I(function({
|
|
26419
26419
|
panel: e,
|
|
26420
26420
|
view: n
|
|
26421
26421
|
}) {
|
|
@@ -26425,7 +26425,7 @@ const hD = z(function({
|
|
|
26425
26425
|
function mD(t) {
|
|
26426
26426
|
return !["richText", "button"].includes(t);
|
|
26427
26427
|
}
|
|
26428
|
-
const pD =
|
|
26428
|
+
const pD = I(({
|
|
26429
26429
|
view: t
|
|
26430
26430
|
}) => {
|
|
26431
26431
|
const {
|
|
@@ -26450,7 +26450,7 @@ const pD = z(({
|
|
|
26450
26450
|
}, children: /* @__PURE__ */ r.jsxs(Y, { withinPortal: !0, children: [
|
|
26451
26451
|
/* @__PURE__ */ r.jsx(Y.Target, { children: /* @__PURE__ */ r.jsx(M, { className: "panel-dropdown-target" }) }),
|
|
26452
26452
|
/* @__PURE__ */ r.jsxs(Y.Dropdown, { children: [
|
|
26453
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick: n.refreshData, icon: /* @__PURE__ */ r.jsx(
|
|
26453
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: n.refreshData, icon: /* @__PURE__ */ r.jsx(zi, { size: 14 }), children: e("common.actions.refresh") }),
|
|
26454
26454
|
/* @__PURE__ */ r.jsx(Y.Item, { onClick: n.downloadData, icon: /* @__PURE__ */ r.jsx(Ti, { size: 14 }), children: e("common.actions.download_data") }),
|
|
26455
26455
|
/* @__PURE__ */ r.jsx(Y.Item, { onClick: s, icon: /* @__PURE__ */ r.jsx(xs, { size: 14 }), children: e("common.actions.download_screenshot") }),
|
|
26456
26456
|
c && /* @__PURE__ */ r.jsx(Y.Item, { onClick: l, icon: /* @__PURE__ */ r.jsx(vl, { size: 14 }), children: e("common.actions.enter_fullscreen") })
|
|
@@ -26462,7 +26462,7 @@ function xD(t) {
|
|
|
26462
26462
|
border: "1px dashed transparent"
|
|
26463
26463
|
};
|
|
26464
26464
|
}
|
|
26465
|
-
const pu =
|
|
26465
|
+
const pu = I(({
|
|
26466
26466
|
panel: t,
|
|
26467
26467
|
view: e
|
|
26468
26468
|
}) => {
|
|
@@ -26478,12 +26478,12 @@ const pu = z(({
|
|
|
26478
26478
|
display: "flex",
|
|
26479
26479
|
height: "calc(100vh - 88px)"
|
|
26480
26480
|
}
|
|
26481
|
-
}, fD =
|
|
26481
|
+
}, fD = I(function({
|
|
26482
26482
|
view: e,
|
|
26483
26483
|
panel: n,
|
|
26484
26484
|
exitFullScreen: s
|
|
26485
26485
|
}) {
|
|
26486
|
-
return /* @__PURE__ */ r.jsx(je, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(
|
|
26486
|
+
return /* @__PURE__ */ r.jsx(je, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(z, { color: "blue", size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(um, { size: 20 }), children: "Exit fullscreen" }), styles: gD, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
|
|
26487
26487
|
flexGrow: 1,
|
|
26488
26488
|
flexShrink: 0
|
|
26489
26489
|
}, children: /* @__PURE__ */ r.jsx(pu, { view: e, panel: n }) }) });
|
|
@@ -26528,7 +26528,7 @@ const yD = L.forwardRef(({
|
|
|
26528
26528
|
"&:hover": {
|
|
26529
26529
|
color: "#228be6"
|
|
26530
26530
|
}
|
|
26531
|
-
}, variant: "transparent", ...e, children: /* @__PURE__ */ r.jsx(mm, { size: 16 }) })), vD = Yl(Kl), jD =
|
|
26531
|
+
}, variant: "transparent", ...e, children: /* @__PURE__ */ r.jsx(mm, { size: 16 }) })), vD = Yl(Kl), jD = I(({
|
|
26532
26532
|
view: t,
|
|
26533
26533
|
className: e = "layout"
|
|
26534
26534
|
}) => {
|
|
@@ -26545,13 +26545,13 @@ const yD = L.forwardRef(({
|
|
|
26545
26545
|
layouts: d,
|
|
26546
26546
|
oldItem: u,
|
|
26547
26547
|
newItem: h
|
|
26548
|
-
}), s.
|
|
26548
|
+
}), s.updateCurrentLayoutItems(d);
|
|
26549
26549
|
};
|
|
26550
26550
|
return /* @__PURE__ */ r.jsx(vD, { className: `dashboard-layout ${e}`, rowHeight: 1, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, cols: s.cols, layouts: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ r.jsx(_D, {}), onResize: o, breakpoints: s.breakpoints, onBreakpointChange: s.setCurrentBreakpoint, onResizeStop: l, onDragStop: c, width: s.currentLayoutPreviewWidth, children: i.map((d) => /* @__PURE__ */ r.jsxs("div", { "data-grid": d.layoutProperies, className: "panel-grid-item", children: [
|
|
26551
26551
|
/* @__PURE__ */ r.jsx(yD, { h: d.h }),
|
|
26552
26552
|
/* @__PURE__ */ r.jsx(hD, { view: t, panel: d.panel })
|
|
26553
26553
|
] }, d.id)) });
|
|
26554
|
-
}), wD = Yl(Kl), SD =
|
|
26554
|
+
}), wD = Yl(Kl), SD = I(({
|
|
26555
26555
|
view: t,
|
|
26556
26556
|
className: e = "layout"
|
|
26557
26557
|
}) => {
|
|
@@ -26569,7 +26569,7 @@ function ka(t) {
|
|
|
26569
26569
|
}
|
|
26570
26570
|
};
|
|
26571
26571
|
}
|
|
26572
|
-
const kD =
|
|
26572
|
+
const kD = I(({
|
|
26573
26573
|
downloadScreenshot: t
|
|
26574
26574
|
}) => {
|
|
26575
26575
|
const {
|
|
@@ -26597,11 +26597,11 @@ const kD = z(({
|
|
|
26597
26597
|
/* @__PURE__ */ r.jsxs(Y.Dropdown, { children: [
|
|
26598
26598
|
/* @__PURE__ */ r.jsx(Y.Item, { icon: /* @__PURE__ */ r.jsx(xs, { size: 14 }), onClick: t, children: e("common.actions.download_screenshot") }),
|
|
26599
26599
|
/* @__PURE__ */ r.jsx(Y.Divider, {}),
|
|
26600
|
-
/* @__PURE__ */ r.jsx(Y.Item, { icon: /* @__PURE__ */ r.jsx(
|
|
26600
|
+
/* @__PURE__ */ r.jsx(Y.Item, { icon: /* @__PURE__ */ r.jsx(Im, { size: 14 }), onClick: o.queries.downloadAllData, children: e("common.actions.download_data") }),
|
|
26601
26601
|
/* @__PURE__ */ r.jsx(Y.Item, { icon: /* @__PURE__ */ r.jsx(Cn, { size: 14 }), onClick: l, children: e("common.actions.download_schema") })
|
|
26602
26602
|
] })
|
|
26603
26603
|
] });
|
|
26604
|
-
}), xu =
|
|
26604
|
+
}), xu = I(({
|
|
26605
26605
|
children: t,
|
|
26606
26606
|
view: e,
|
|
26607
26607
|
sx: n = {}
|
|
@@ -26614,9 +26614,9 @@ const kD = z(({
|
|
|
26614
26614
|
/* @__PURE__ */ r.jsx(M, { ref: s, pt: 10, pb: 10, sx: n, children: t }),
|
|
26615
26615
|
/* @__PURE__ */ r.jsx(kD, { downloadScreenshot: i })
|
|
26616
26616
|
] });
|
|
26617
|
-
}), gu =
|
|
26617
|
+
}), gu = I(({
|
|
26618
26618
|
downloadScreenshot: t
|
|
26619
|
-
}) => /* @__PURE__ */ r.jsx(J, { className: "download-screenshot-button", color: "blue", onClick: t, children: /* @__PURE__ */ r.jsx(xs, { size: 14 }) })), CD =
|
|
26619
|
+
}) => /* @__PURE__ */ r.jsx(J, { className: "download-screenshot-button", color: "blue", onClick: t, children: /* @__PURE__ */ r.jsx(xs, { size: 14 }) })), CD = I(({
|
|
26620
26620
|
children: t,
|
|
26621
26621
|
view: e
|
|
26622
26622
|
}) => {
|
|
@@ -26662,11 +26662,11 @@ const kD = z(({
|
|
|
26662
26662
|
}, transitionProps: {
|
|
26663
26663
|
duration: 0
|
|
26664
26664
|
}, children: /* @__PURE__ */ r.jsx(M, { ref: o, children: t }) });
|
|
26665
|
-
}),
|
|
26665
|
+
}), ID = (t) => t.color ? {
|
|
26666
26666
|
"&[data-active], &[data-active]:hover": {
|
|
26667
26667
|
borderColor: t.color ? t.color : "..."
|
|
26668
26668
|
}
|
|
26669
|
-
} : {},
|
|
26669
|
+
} : {}, zD = I(({
|
|
26670
26670
|
view: t
|
|
26671
26671
|
}) => {
|
|
26672
26672
|
const e = Pe(), n = t.config;
|
|
@@ -26681,13 +26681,13 @@ const kD = z(({
|
|
|
26681
26681
|
overflow: "auto"
|
|
26682
26682
|
}
|
|
26683
26683
|
}, keepMounted: !1, children: [
|
|
26684
|
-
/* @__PURE__ */ r.jsx(_.List, { grow: n.grow, children: n.tabsInOrder.map((s) => /* @__PURE__ */ r.jsx(_.Tab, { value: s.id, sx:
|
|
26684
|
+
/* @__PURE__ */ r.jsx(_.List, { grow: n.grow, children: n.tabsInOrder.map((s) => /* @__PURE__ */ r.jsx(_.Tab, { value: s.id, sx: ID(s), disabled: !s.view_id, children: s.name ?? s.id }, s.id)) }),
|
|
26685
26685
|
n.tabsInOrder.map((s) => {
|
|
26686
26686
|
const i = e.views.findByID(s.view_id);
|
|
26687
26687
|
return i ? /* @__PURE__ */ r.jsx(_.Panel, { value: s.id, children: /* @__PURE__ */ r.jsx(Ca, { view: i }) }, s.id) : null;
|
|
26688
26688
|
})
|
|
26689
26689
|
] });
|
|
26690
|
-
}), TD =
|
|
26690
|
+
}), TD = I(({
|
|
26691
26691
|
view: t,
|
|
26692
26692
|
children: e
|
|
26693
26693
|
}) => {
|
|
@@ -26695,12 +26695,12 @@ const kD = z(({
|
|
|
26695
26695
|
case W.Modal:
|
|
26696
26696
|
return /* @__PURE__ */ r.jsx(CD, { view: t, children: e });
|
|
26697
26697
|
case W.Tabs:
|
|
26698
|
-
return /* @__PURE__ */ r.jsx(
|
|
26698
|
+
return /* @__PURE__ */ r.jsx(zD, { view: t });
|
|
26699
26699
|
case W.Division:
|
|
26700
26700
|
default:
|
|
26701
26701
|
return /* @__PURE__ */ r.jsx(xu, { view: t, children: e });
|
|
26702
26702
|
}
|
|
26703
|
-
}), DD =
|
|
26703
|
+
}), DD = I(({
|
|
26704
26704
|
children: t,
|
|
26705
26705
|
view: e
|
|
26706
26706
|
}) => {
|
|
@@ -26730,7 +26730,7 @@ const kD = z(({
|
|
|
26730
26730
|
function Uo(t) {
|
|
26731
26731
|
return t.replace(/(vw|vh)/, "%");
|
|
26732
26732
|
}
|
|
26733
|
-
const MD =
|
|
26733
|
+
const MD = I(({
|
|
26734
26734
|
children: t,
|
|
26735
26735
|
view: e
|
|
26736
26736
|
}) => {
|
|
@@ -26820,7 +26820,7 @@ const MD = z(({
|
|
|
26820
26820
|
"&[data-active], &[data-active]:hover": {
|
|
26821
26821
|
borderColor: t.color ? t.color : "..."
|
|
26822
26822
|
}
|
|
26823
|
-
} : {}, AD =
|
|
26823
|
+
} : {}, AD = I(({
|
|
26824
26824
|
view: t
|
|
26825
26825
|
}) => {
|
|
26826
26826
|
const {
|
|
@@ -26868,20 +26868,20 @@ const MD = z(({
|
|
|
26868
26868
|
/* @__PURE__ */ r.jsx(F, { label: "View", value: c.view_id, onChange: c.setViewID, data: i }),
|
|
26869
26869
|
/* @__PURE__ */ r.jsx(ae, { label: e("view.component.tabs.tab.order"), required: !0, value: c.order, onChange: (h) => c.setOrder(h || 0), min: 0, max: 1e3, step: 1 }),
|
|
26870
26870
|
/* @__PURE__ */ r.jsx(Bn, { label: e("view.component.tabs.tab.color"), value: c.color, onChange: c.setColor, disabled: a.variant !== "default" }),
|
|
26871
|
-
u && /* @__PURE__ */ r.jsx(
|
|
26871
|
+
u && /* @__PURE__ */ r.jsx(z, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(zm, { size: 18 }), gradient: {
|
|
26872
26872
|
from: "cyan",
|
|
26873
26873
|
to: "indigo"
|
|
26874
26874
|
}, onClick: () => s.views.setIDOfVIE(u.id), children: e("view.component.tabs.tab.switch_to_view", {
|
|
26875
26875
|
name: u.name
|
|
26876
26876
|
}) }),
|
|
26877
|
-
/* @__PURE__ */ r.jsx(
|
|
26877
|
+
/* @__PURE__ */ r.jsx(z, { mt: 20, variant: "subtle", color: "red", onClick: () => o(d), disabled: l, leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 14 }), children: e("view.component.tabs.tab.delete") })
|
|
26878
26878
|
] })
|
|
26879
26879
|
] }),
|
|
26880
26880
|
u && /* @__PURE__ */ r.jsx(Ca, { view: u })
|
|
26881
26881
|
] }, c.id);
|
|
26882
26882
|
})
|
|
26883
26883
|
] });
|
|
26884
|
-
}), RD =
|
|
26884
|
+
}), RD = I(({
|
|
26885
26885
|
view: t,
|
|
26886
26886
|
children: e
|
|
26887
26887
|
}) => {
|
|
@@ -26894,7 +26894,7 @@ const MD = z(({
|
|
|
26894
26894
|
default:
|
|
26895
26895
|
return /* @__PURE__ */ r.jsx(DD, { view: t, children: e });
|
|
26896
26896
|
}
|
|
26897
|
-
}), $D =
|
|
26897
|
+
}), $D = I(function({
|
|
26898
26898
|
view: e
|
|
26899
26899
|
}) {
|
|
26900
26900
|
const s = oe().layouts.divisionPreviewScale !== 1;
|
|
@@ -26912,7 +26912,7 @@ const MD = z(({
|
|
|
26912
26912
|
}, children: /* @__PURE__ */ r.jsx(Td, { view: e }) }),
|
|
26913
26913
|
/* @__PURE__ */ r.jsx(jD, { view: e })
|
|
26914
26914
|
] }) }) }) });
|
|
26915
|
-
}), Ca =
|
|
26915
|
+
}), Ca = I(function({
|
|
26916
26916
|
view: e
|
|
26917
26917
|
}) {
|
|
26918
26918
|
const {
|
|
@@ -27604,6 +27604,11 @@ const JD = p.model("EditorModel", {
|
|
|
27604
27604
|
updateCurrentLayoutItem(e) {
|
|
27605
27605
|
t.currentLayoutSet.updateLayoutItem(e);
|
|
27606
27606
|
},
|
|
27607
|
+
updateCurrentLayoutItems(e) {
|
|
27608
|
+
e.forEach((n) => {
|
|
27609
|
+
t.currentLayoutSet.updateLayoutItem(n);
|
|
27610
|
+
});
|
|
27611
|
+
},
|
|
27607
27612
|
append(e) {
|
|
27608
27613
|
t.list.push(e);
|
|
27609
27614
|
},
|
|
@@ -27928,15 +27933,15 @@ const rM = p.model({
|
|
|
27928
27933
|
},
|
|
27929
27934
|
get filtersChanged() {
|
|
27930
27935
|
const e = "filters.current";
|
|
27931
|
-
return !xe(
|
|
27936
|
+
return !xe(zt(se(t, e)), se(t.origin, e));
|
|
27932
27937
|
},
|
|
27933
27938
|
get queriesChanged() {
|
|
27934
|
-
const e = "queries.current", n =
|
|
27939
|
+
const e = "queries.current", n = zt(se(t, e)).map((s) => bl(s, ["id", "name", "key", "type", "sql", "run_by", "react_to", "pre_process", "post_process", "dep_query_ids"]));
|
|
27935
27940
|
return !xe(n, se(t.origin, e));
|
|
27936
27941
|
},
|
|
27937
27942
|
get sqlSnippetsChanged() {
|
|
27938
27943
|
const e = "sqlSnippets.current";
|
|
27939
|
-
return !xe(
|
|
27944
|
+
return !xe(zt(se(t, e)), se(t.origin, e));
|
|
27940
27945
|
},
|
|
27941
27946
|
get viewsChanged() {
|
|
27942
27947
|
const e = "views.current";
|
|
@@ -27944,11 +27949,11 @@ const rM = p.model({
|
|
|
27944
27949
|
},
|
|
27945
27950
|
get panelsChanged() {
|
|
27946
27951
|
const e = "panels.list";
|
|
27947
|
-
return !xe(
|
|
27952
|
+
return !xe(zt(se(t, e)), se(t.origin, e));
|
|
27948
27953
|
},
|
|
27949
27954
|
get layoutsChanged() {
|
|
27950
27955
|
const e = "layouts.list";
|
|
27951
|
-
return !xe(
|
|
27956
|
+
return !xe(zt(se(t, e)), se(t.origin, e));
|
|
27952
27957
|
},
|
|
27953
27958
|
get mockContextChanged() {
|
|
27954
27959
|
const e = "mock_context.current";
|
|
@@ -30250,7 +30255,7 @@ function _u(t, e) {
|
|
|
30250
30255
|
function vu(t) {
|
|
30251
30256
|
return L.useCallback((e) => e.provideValue(Te.pluginManager, t.pluginManager).provideValue(Te.vizManager, t.vizManager).provideValue(Te.colorManager, t.colorManager), []);
|
|
30252
30257
|
}
|
|
30253
|
-
const cM =
|
|
30258
|
+
const cM = I(({
|
|
30254
30259
|
saveDashboardChanges: t
|
|
30255
30260
|
}) => {
|
|
30256
30261
|
const {
|
|
@@ -30258,7 +30263,7 @@ const cM = z(({
|
|
|
30258
30263
|
} = y(), n = Et(), s = oe(), i = () => {
|
|
30259
30264
|
n.openConfirmModal({
|
|
30260
30265
|
title: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
30261
|
-
/* @__PURE__ */ r.jsx(
|
|
30266
|
+
/* @__PURE__ */ r.jsx(Il, { size: 18, color: "red" }),
|
|
30262
30267
|
/* @__PURE__ */ r.jsx(w, { children: "You are reverting changes" })
|
|
30263
30268
|
] }),
|
|
30264
30269
|
labels: {
|
|
@@ -30275,7 +30280,7 @@ const cM = z(({
|
|
|
30275
30280
|
});
|
|
30276
30281
|
}, a = s.changed;
|
|
30277
30282
|
return /* @__PURE__ */ r.jsxs(b, { spacing: 0, children: [
|
|
30278
|
-
/* @__PURE__ */ r.jsx(
|
|
30283
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 18 }), onClick: t, disabled: !a, sx: {
|
|
30279
30284
|
borderTopRightRadius: 0,
|
|
30280
30285
|
borderBottomRightRadius: 0
|
|
30281
30286
|
}, children: e("common.actions.save_changes") }),
|
|
@@ -30292,7 +30297,7 @@ const cM = z(({
|
|
|
30292
30297
|
/* @__PURE__ */ r.jsx(Y.Dropdown, { children: /* @__PURE__ */ r.jsx(Y.Item, { icon: /* @__PURE__ */ r.jsx(wr, { size: 14, color: "red" }), disabled: !a, onClick: i, children: e("common.actions.revert_changes") }) })
|
|
30293
30298
|
] })
|
|
30294
30299
|
] });
|
|
30295
|
-
}), dM =
|
|
30300
|
+
}), dM = I(({
|
|
30296
30301
|
saveDashboardChanges: t,
|
|
30297
30302
|
onExit: e,
|
|
30298
30303
|
headerSlot: n = null
|
|
@@ -30312,7 +30317,7 @@ const cM = z(({
|
|
|
30312
30317
|
position: "relative"
|
|
30313
30318
|
}, children: [
|
|
30314
30319
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
30315
|
-
/* @__PURE__ */ r.jsx(
|
|
30320
|
+
/* @__PURE__ */ r.jsx(z, { size: "xs", color: i ? "red" : "green", leftIcon: /* @__PURE__ */ r.jsx(Lm, { size: 20 }), onClick: a, children: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(Ii, { i18nKey: "common.actions.end_editing", values: {
|
|
30316
30321
|
name: s.name
|
|
30317
30322
|
}, children: [
|
|
30318
30323
|
"End Editing ",
|
|
@@ -30330,19 +30335,19 @@ const cM = z(({
|
|
|
30330
30335
|
borderTop: "none",
|
|
30331
30336
|
borderRight: "1px solid #e9ecef",
|
|
30332
30337
|
borderBottom: "1px solid #e9ecef"
|
|
30333
|
-
}, uM =
|
|
30338
|
+
}, uM = I(() => {
|
|
30334
30339
|
var i;
|
|
30335
30340
|
const {
|
|
30336
30341
|
t
|
|
30337
30342
|
} = y(), e = oe(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === W.Tabs, s = () => e.addANewPanel(e.views.idOfVIE);
|
|
30338
|
-
return n ? /* @__PURE__ */ r.jsx(ge, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(
|
|
30343
|
+
return n ? /* @__PURE__ */ r.jsx(ge, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(z, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(io, { size: 20 }), sx: {
|
|
30339
30344
|
...Yo,
|
|
30340
30345
|
transform: "none !important"
|
|
30341
|
-
}, children: t("panel.add") }) }) : /* @__PURE__ */ r.jsx(
|
|
30346
|
+
}, children: t("panel.add") }) }) : /* @__PURE__ */ r.jsx(z, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(io, { size: 20 }), sx: {
|
|
30342
30347
|
...Yo,
|
|
30343
30348
|
background: "rgb(231, 245, 255)"
|
|
30344
30349
|
}, children: t("panel.add") });
|
|
30345
|
-
}), hM =
|
|
30350
|
+
}), hM = I(({
|
|
30346
30351
|
done: t
|
|
30347
30352
|
}) => {
|
|
30348
30353
|
var le, Z;
|
|
@@ -30444,11 +30449,11 @@ const cM = z(({
|
|
|
30444
30449
|
] }),
|
|
30445
30450
|
/* @__PURE__ */ r.jsx(w, { mt: 6, ta: "right", size: "xs", color: "red", children: X ?? " " }),
|
|
30446
30451
|
/* @__PURE__ */ r.jsxs(b, { mt: 6, position: "apart", children: [
|
|
30447
|
-
/* @__PURE__ */ r.jsx(
|
|
30448
|
-
/* @__PURE__ */ r.jsx(
|
|
30452
|
+
/* @__PURE__ */ r.jsx(z, { color: "orange", size: "xs", onClick: () => d(), leftIcon: /* @__PURE__ */ r.jsx(wr, { size: 18 }), disabled: !q, children: e("common.actions.revert") }),
|
|
30453
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", size: "xs", type: "submit", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 18 }), disabled: !q, children: e("common.actions.save_changes") })
|
|
30449
30454
|
] })
|
|
30450
30455
|
] }) });
|
|
30451
|
-
}), mM =
|
|
30456
|
+
}), mM = I(() => {
|
|
30452
30457
|
const {
|
|
30453
30458
|
t
|
|
30454
30459
|
} = y(), [e, {
|
|
@@ -30464,7 +30469,7 @@ const cM = z(({
|
|
|
30464
30469
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30465
30470
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
30466
30471
|
/* @__PURE__ */ r.jsxs(Y, { withArrow: !0, withinPortal: !0, zIndex: 320, trigger: "hover", children: [
|
|
30467
|
-
/* @__PURE__ */ r.jsx(Y.Target, { children: /* @__PURE__ */ r.jsx(
|
|
30472
|
+
/* @__PURE__ */ r.jsx(Y.Target, { children: /* @__PURE__ */ r.jsx(z, { size: "xs", variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Em, { size: 16 }), sx: {
|
|
30468
30473
|
borderRadius: 0
|
|
30469
30474
|
}, children: /* @__PURE__ */ r.jsxs(b, { spacing: 6, children: [
|
|
30470
30475
|
/* @__PURE__ */ r.jsx(w, { size: "xs", fw: "normal", children: o.name }),
|
|
@@ -30494,7 +30499,7 @@ const cM = z(({
|
|
|
30494
30499
|
borderTop: "none",
|
|
30495
30500
|
borderLeft: "1px solid #e9ecef",
|
|
30496
30501
|
borderBottom: "1px solid #e9ecef"
|
|
30497
|
-
}, pM =
|
|
30502
|
+
}, pM = I(() => {
|
|
30498
30503
|
var i;
|
|
30499
30504
|
const {
|
|
30500
30505
|
t
|
|
@@ -30502,10 +30507,10 @@ const cM = z(({
|
|
|
30502
30507
|
var a;
|
|
30503
30508
|
return (a = e.views.VIE) == null ? void 0 : a.downloadSchema();
|
|
30504
30509
|
};
|
|
30505
|
-
return n ? /* @__PURE__ */ r.jsx(ge, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(
|
|
30510
|
+
return n ? /* @__PURE__ */ r.jsx(ge, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(z, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Cn, { size: 16 }), sx: {
|
|
30506
30511
|
...Ko,
|
|
30507
30512
|
transform: "none !important"
|
|
30508
|
-
}, children: t("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(
|
|
30513
|
+
}, children: t("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(z, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(Cn, { size: 16 }), sx: {
|
|
30509
30514
|
...Ko
|
|
30510
30515
|
// background: 'rgb(231, 245, 255)',
|
|
30511
30516
|
}, children: t("view.download_schema") });
|
|
@@ -30651,7 +30656,7 @@ function jM(t) {
|
|
|
30651
30656
|
throw new Error("Schema version mismatch");
|
|
30652
30657
|
return e;
|
|
30653
30658
|
}
|
|
30654
|
-
const wM =
|
|
30659
|
+
const wM = I(({
|
|
30655
30660
|
onSuccess: t,
|
|
30656
30661
|
stretchModal: e,
|
|
30657
30662
|
shrinkModal: n
|
|
@@ -30734,7 +30739,7 @@ const wM = z(({
|
|
|
30734
30739
|
] })
|
|
30735
30740
|
] }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30736
30741
|
/* @__PURE__ */ r.jsx(vM, { content: f }),
|
|
30737
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(
|
|
30742
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(z, { type: "submit", color: "green", disabled: j, children: s("common.actions.confirm") }) })
|
|
30738
30743
|
] })
|
|
30739
30744
|
] }) });
|
|
30740
30745
|
}), Jo = {
|
|
@@ -30743,7 +30748,7 @@ const wM = z(({
|
|
|
30743
30748
|
borderTop: "none",
|
|
30744
30749
|
borderRight: "1px solid #e9ecef",
|
|
30745
30750
|
borderBottom: "1px solid #e9ecef"
|
|
30746
|
-
}, SM =
|
|
30751
|
+
}, SM = I(() => {
|
|
30747
30752
|
var d;
|
|
30748
30753
|
const {
|
|
30749
30754
|
t
|
|
@@ -30754,11 +30759,11 @@ const wM = z(({
|
|
|
30754
30759
|
setTrue: a,
|
|
30755
30760
|
setFalse: o
|
|
30756
30761
|
}] = rt(!1), c = ((d = pe().content.views.VIE) == null ? void 0 : d.type) === W.Tabs;
|
|
30757
|
-
return c ? /* @__PURE__ */ r.jsx(ge, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(
|
|
30762
|
+
return c ? /* @__PURE__ */ r.jsx(ge, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(z, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(ao, { size: 16 }), sx: {
|
|
30758
30763
|
...Jo,
|
|
30759
30764
|
transform: "none !important"
|
|
30760
30765
|
}, children: t("import.label") }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30761
|
-
/* @__PURE__ */ r.jsx(
|
|
30766
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", color: "blue", radius: 0, size: "xs", disabled: c || e, onClick: n, leftIcon: /* @__PURE__ */ r.jsx(ao, { size: 16 }), sx: {
|
|
30762
30767
|
...Jo
|
|
30763
30768
|
// background: 'rgb(231, 245, 255)',
|
|
30764
30769
|
}, children: t("import.label") }),
|
|
@@ -30776,7 +30781,7 @@ const wM = z(({
|
|
|
30776
30781
|
zIndex: 299,
|
|
30777
30782
|
borderBottom: "1px solid #e9ecef",
|
|
30778
30783
|
background: "rgba(233,236,239, 0.15)"
|
|
30779
|
-
}, CM =
|
|
30784
|
+
}, CM = I(() => /* @__PURE__ */ r.jsx(M, { sx: kM, pl: {
|
|
30780
30785
|
base: 200,
|
|
30781
30786
|
xs: 200,
|
|
30782
30787
|
sm: 200,
|
|
@@ -30792,11 +30797,11 @@ const wM = z(({
|
|
|
30792
30797
|
] }),
|
|
30793
30798
|
/* @__PURE__ */ r.jsx(mM, {}),
|
|
30794
30799
|
/* @__PURE__ */ r.jsx(b, { position: "right", spacing: 0, children: /* @__PURE__ */ r.jsx(pM, {}) })
|
|
30795
|
-
] }) })),
|
|
30800
|
+
] }) })), IM = I((t) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30796
30801
|
/* @__PURE__ */ r.jsx(dM, { ...t }),
|
|
30797
30802
|
/* @__PURE__ */ r.jsx(CM, {})
|
|
30798
30803
|
] }));
|
|
30799
|
-
function
|
|
30804
|
+
function zM(t, e, n) {
|
|
30800
30805
|
const s = [];
|
|
30801
30806
|
return t.filter((i) => "__INTERACTIONS" in i.viz.conf).forEach((i, a) => {
|
|
30802
30807
|
const o = e[i.id];
|
|
@@ -30861,7 +30866,7 @@ function IM(t, e, n) {
|
|
|
30861
30866
|
function TM(t, e) {
|
|
30862
30867
|
const n = t.filters.keyLabelMap;
|
|
30863
30868
|
return {
|
|
30864
|
-
edges:
|
|
30869
|
+
edges: zM(t.panels.list, e, n),
|
|
30865
30870
|
edgeNodes: []
|
|
30866
30871
|
};
|
|
30867
30872
|
}
|
|
@@ -30871,12 +30876,12 @@ function ju(t, e, n) {
|
|
|
30871
30876
|
function DM(t, e, n) {
|
|
30872
30877
|
return t * e + (t - 1) * n;
|
|
30873
30878
|
}
|
|
30874
|
-
const os = 25,
|
|
30879
|
+
const os = 25, Ia = 40, wu = 25, za = 350, MM = 150, LM = 150, Su = 150, Xo = 300, Yr = 40, ku = 25, EM = 300;
|
|
30875
30880
|
function AM(t, e) {
|
|
30876
30881
|
const n = S.keyBy(e, (i) => i.id), s = [];
|
|
30877
30882
|
return t.current.forEach((i, a) => {
|
|
30878
30883
|
i.panelIDs.forEach((o, l) => {
|
|
30879
|
-
const c = ju(l, Yr, ku) +
|
|
30884
|
+
const c = ju(l, Yr, ku) + Ia, d = n[o];
|
|
30880
30885
|
if (!d) {
|
|
30881
30886
|
s.push({
|
|
30882
30887
|
id: o,
|
|
@@ -30927,7 +30932,7 @@ const RM = {
|
|
|
30927
30932
|
}, $M = OD;
|
|
30928
30933
|
function PM(t) {
|
|
30929
30934
|
return t.current.map((n, s) => {
|
|
30930
|
-
const i = DM(n.panelIDs.length, Yr, ku) +
|
|
30935
|
+
const i = DM(n.panelIDs.length, Yr, ku) + Ia + wu;
|
|
30931
30936
|
let a = [];
|
|
30932
30937
|
return n.type === W.Tabs && (a = n.config.tabsInOrder.map((l) => l.view_id)), {
|
|
30933
30938
|
id: n.id,
|
|
@@ -30948,7 +30953,7 @@ function PM(t) {
|
|
|
30948
30953
|
className: "light",
|
|
30949
30954
|
style: {
|
|
30950
30955
|
backgroundColor: $M[n.type],
|
|
30951
|
-
width:
|
|
30956
|
+
width: za,
|
|
30952
30957
|
height: i
|
|
30953
30958
|
}
|
|
30954
30959
|
};
|
|
@@ -30974,12 +30979,12 @@ function VM({
|
|
|
30974
30979
|
edges: n
|
|
30975
30980
|
}) {
|
|
30976
30981
|
e.forEach((s) => {
|
|
30977
|
-
s._node_type !== "view-root" || s._view_type !== W.Tabs || (s.sourcePosition = _t.Bottom, s.style.width =
|
|
30982
|
+
s._node_type !== "view-root" || s._view_type !== W.Tabs || (s.sourcePosition = _t.Bottom, s.style.width = za + os * 2, s.style.height = wu + s._tab_view_ids.reduce((i, a) => {
|
|
30978
30983
|
const o = t[a];
|
|
30979
30984
|
o.position.y = i, o.position.x = os;
|
|
30980
30985
|
const l = o.style.height;
|
|
30981
30986
|
return i + l + 20;
|
|
30982
|
-
},
|
|
30987
|
+
}, Ia));
|
|
30983
30988
|
});
|
|
30984
30989
|
}
|
|
30985
30990
|
function qM({
|
|
@@ -31022,7 +31027,7 @@ function BM({
|
|
|
31022
31027
|
n.forEach((o) => {
|
|
31023
31028
|
s.add(o.source), i.add(o.target);
|
|
31024
31029
|
}), e.filter((o) => o._node_type !== "view-root" || o.id === "Main" || o.parentNode ? !1 : !s.has(o.id) && !i.has(o.id)).forEach((o, l) => {
|
|
31025
|
-
o.position.x = ju(l,
|
|
31030
|
+
o.position.x = ju(l, za, LM), o.position.y = 0 - MM - Su;
|
|
31026
31031
|
});
|
|
31027
31032
|
}
|
|
31028
31033
|
function WM({
|
|
@@ -31118,16 +31123,16 @@ const HM = ah(({
|
|
|
31118
31123
|
top: 0,
|
|
31119
31124
|
right: 0
|
|
31120
31125
|
}, children: /* @__PURE__ */ r.jsx(pm, { size: 12 }) }),
|
|
31121
|
-
/* @__PURE__ */ r.jsxs(
|
|
31122
|
-
/* @__PURE__ */ r.jsx(
|
|
31123
|
-
/* @__PURE__ */ r.jsx(
|
|
31126
|
+
/* @__PURE__ */ r.jsxs(Ie, { shadow: "xl", withinPortal: !0, children: [
|
|
31127
|
+
/* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(w, { children: t.label }) }),
|
|
31128
|
+
/* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(ot, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(ot.Item, { icon: o.icon, children: o.text }, o.key)) }) })
|
|
31124
31129
|
] }),
|
|
31125
31130
|
/* @__PURE__ */ r.jsx(uo, { type: "source", position: n, isConnectable: e })
|
|
31126
31131
|
] });
|
|
31127
31132
|
});
|
|
31128
31133
|
const UM = {
|
|
31129
31134
|
interaction: HM
|
|
31130
|
-
}, YM =
|
|
31135
|
+
}, YM = I(() => {
|
|
31131
31136
|
const t = Pe(), {
|
|
31132
31137
|
edges: e,
|
|
31133
31138
|
nodes: n
|
|
@@ -31137,7 +31142,7 @@ const UM = {
|
|
|
31137
31142
|
/* @__PURE__ */ r.jsx(ax, {}),
|
|
31138
31143
|
/* @__PURE__ */ r.jsx(ox, {})
|
|
31139
31144
|
] });
|
|
31140
|
-
}), KM =
|
|
31145
|
+
}), KM = I(({
|
|
31141
31146
|
opened: t,
|
|
31142
31147
|
close: e
|
|
31143
31148
|
}) => {
|
|
@@ -31223,7 +31228,7 @@ function XM({
|
|
|
31223
31228
|
}, children: /* @__PURE__ */ r.jsx(Pm, { size: 16 }) }) })
|
|
31224
31229
|
] });
|
|
31225
31230
|
}
|
|
31226
|
-
const ZM =
|
|
31231
|
+
const ZM = I(() => {
|
|
31227
31232
|
const {
|
|
31228
31233
|
t
|
|
31229
31234
|
} = y(), e = pe(), n = oe(), s = We((a) => () => n.views.setIDOfVIE(a), [n]), i = (a) => {
|
|
@@ -31234,7 +31239,7 @@ const ZM = z(() => {
|
|
|
31234
31239
|
}, children: [
|
|
31235
31240
|
n.views.options.map((a) => /* @__PURE__ */ r.jsx(XM, { active: n.views.idOfVIE === a.value, name: a.label, onClick: s(a.value), openSettings: () => i(a.value) }, a.value)),
|
|
31236
31241
|
/* @__PURE__ */ r.jsx(R, { variant: "dashed" }),
|
|
31237
|
-
/* @__PURE__ */ r.jsx(
|
|
31242
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(jt, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: n.views.addARandomNewView, sx: {
|
|
31238
31243
|
width: "100%",
|
|
31239
31244
|
borderRadius: 0
|
|
31240
31245
|
}, styles: {
|
|
@@ -31243,7 +31248,7 @@ const ZM = z(() => {
|
|
|
31243
31248
|
}
|
|
31244
31249
|
}, children: t("view.add") })
|
|
31245
31250
|
] });
|
|
31246
|
-
}), eL =
|
|
31251
|
+
}), eL = I(() => {
|
|
31247
31252
|
const {
|
|
31248
31253
|
t
|
|
31249
31254
|
} = y(), e = pe(), n = oe(), s = () => {
|
|
@@ -31299,10 +31304,10 @@ const ZM = z(() => {
|
|
|
31299
31304
|
}, children: /* @__PURE__ */ r.jsx(ZM, {}) }),
|
|
31300
31305
|
/* @__PURE__ */ r.jsx(Vt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
|
|
31301
31306
|
borderTop: "1px solid #eee"
|
|
31302
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
31307
|
+
}, children: /* @__PURE__ */ r.jsx(z, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Sr, { size: 20 }), onClick: () => e.editor.open([]), children: t("common.titles.settings") }) }) })
|
|
31303
31308
|
] });
|
|
31304
31309
|
}), tL = ["function getDefaultValue(filter, utils, context) {", ' return "";', "}"].join(`
|
|
31305
|
-
`), tr =
|
|
31310
|
+
`), tr = I(({
|
|
31306
31311
|
filter: t
|
|
31307
31312
|
}) => {
|
|
31308
31313
|
const {
|
|
@@ -31320,7 +31325,7 @@ const ZM = z(() => {
|
|
|
31320
31325
|
/* @__PURE__ */ r.jsx(ot.Item, { children: e("filter.field.custom_default_value.tip_1") }),
|
|
31321
31326
|
/* @__PURE__ */ r.jsx(ot.Item, { children: e("filter.field.custom_default_value.tip_2") })
|
|
31322
31327
|
] }) }) });
|
|
31323
|
-
}), nL =
|
|
31328
|
+
}), nL = I(function({
|
|
31324
31329
|
filter: e
|
|
31325
31330
|
}) {
|
|
31326
31331
|
const {
|
|
@@ -31353,7 +31358,7 @@ const ZM = z(() => {
|
|
|
31353
31358
|
}, {
|
|
31354
31359
|
label: "2022-01-01",
|
|
31355
31360
|
value: "YYYY-MM-DD"
|
|
31356
|
-
}], sL =
|
|
31361
|
+
}], sL = I(function({
|
|
31357
31362
|
filter: e
|
|
31358
31363
|
}) {
|
|
31359
31364
|
const {
|
|
@@ -31378,7 +31383,7 @@ const ZM = z(() => {
|
|
|
31378
31383
|
] }),
|
|
31379
31384
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
31380
31385
|
/* @__PURE__ */ r.jsx(
|
|
31381
|
-
|
|
31386
|
+
zd,
|
|
31382
31387
|
{
|
|
31383
31388
|
label: n("filter.widget.date_range.default_value"),
|
|
31384
31389
|
config: s,
|
|
@@ -31393,7 +31398,7 @@ const ZM = z(() => {
|
|
|
31393
31398
|
] }),
|
|
31394
31399
|
/* @__PURE__ */ r.jsx(tr, { filter: e })
|
|
31395
31400
|
] });
|
|
31396
|
-
}), Ta =
|
|
31401
|
+
}), Ta = I(({
|
|
31397
31402
|
value: t,
|
|
31398
31403
|
onChange: e
|
|
31399
31404
|
}) => {
|
|
@@ -31404,7 +31409,7 @@ const ZM = z(() => {
|
|
|
31404
31409
|
};
|
|
31405
31410
|
return /* @__PURE__ */ r.jsx(F, { label: /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
31406
31411
|
/* @__PURE__ */ r.jsx(w, { children: n("filter.widget.common.use_query_data_as_options") }),
|
|
31407
|
-
t && /* @__PURE__ */ r.jsx(
|
|
31412
|
+
t && /* @__PURE__ */ r.jsx(z, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(ci, { size: 16 }), variant: "subtle", color: "blue", onClick: () => l(t), children: n("query.open") })
|
|
31408
31413
|
] }), data: a, value: t, onChange: e, allowDeselect: !1, clearable: !0, sx: {
|
|
31409
31414
|
flexGrow: 1
|
|
31410
31415
|
}, disabled: o, error: o ? "You need to add a query in Data Settings" : void 0, styles: {
|
|
@@ -31424,10 +31429,10 @@ const ZM = z(() => {
|
|
|
31424
31429
|
t
|
|
31425
31430
|
} = y(), [e, n] = Q(!1);
|
|
31426
31431
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
31427
|
-
/* @__PURE__ */ r.jsx(
|
|
31432
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
31428
31433
|
/* @__PURE__ */ r.jsx(_r, { in: e, children: /* @__PURE__ */ r.jsx(rn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: iL }) })
|
|
31429
31434
|
] });
|
|
31430
|
-
}, aL =
|
|
31435
|
+
}, aL = I(function({
|
|
31431
31436
|
filter: e
|
|
31432
31437
|
}) {
|
|
31433
31438
|
const {
|
|
@@ -31485,7 +31490,7 @@ const ZM = z(() => {
|
|
|
31485
31490
|
right: 5
|
|
31486
31491
|
}, children: /* @__PURE__ */ r.jsx(At, { size: 16 }) })
|
|
31487
31492
|
] }, c)),
|
|
31488
|
-
/* @__PURE__ */ r.jsx(
|
|
31493
|
+
/* @__PURE__ */ r.jsx(z, { mt: 10, size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(ps, { size: 20 }), onClick: i, sx: {
|
|
31489
31494
|
width: "50%"
|
|
31490
31495
|
}, mx: "auto", children: n("common.actions.add_an_option") })
|
|
31491
31496
|
] }),
|
|
@@ -31494,7 +31499,7 @@ const ZM = z(() => {
|
|
|
31494
31499
|
/* @__PURE__ */ r.jsx(Ta, { value: s.options_query_id, onChange: s.setOptionsQueryID }),
|
|
31495
31500
|
/* @__PURE__ */ r.jsx(Cu, {})
|
|
31496
31501
|
] });
|
|
31497
|
-
}), oL =
|
|
31502
|
+
}), oL = I(function({
|
|
31498
31503
|
filter: e
|
|
31499
31504
|
}) {
|
|
31500
31505
|
const {
|
|
@@ -31557,7 +31562,7 @@ const ZM = z(() => {
|
|
|
31557
31562
|
right: 5
|
|
31558
31563
|
}, children: /* @__PURE__ */ r.jsx(At, { size: 16 }) })
|
|
31559
31564
|
] }, d)),
|
|
31560
|
-
/* @__PURE__ */ r.jsx(
|
|
31565
|
+
/* @__PURE__ */ r.jsx(z, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(ps, { size: 20 }), onClick: a, sx: {
|
|
31561
31566
|
width: "50%"
|
|
31562
31567
|
}, mx: "auto", children: n("common.actions.add_an_option") })
|
|
31563
31568
|
] }),
|
|
@@ -31566,7 +31571,7 @@ const ZM = z(() => {
|
|
|
31566
31571
|
/* @__PURE__ */ r.jsx(Ta, { value: i.options_query_id, onChange: i.setOptionsQueryID }),
|
|
31567
31572
|
/* @__PURE__ */ r.jsx(Cu, {})
|
|
31568
31573
|
] });
|
|
31569
|
-
}), lL =
|
|
31574
|
+
}), lL = I(function({
|
|
31570
31575
|
filter: e
|
|
31571
31576
|
}) {
|
|
31572
31577
|
const {
|
|
@@ -31596,10 +31601,10 @@ const ZM = z(() => {
|
|
|
31596
31601
|
t
|
|
31597
31602
|
} = y(), [e, n] = Q(!1);
|
|
31598
31603
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
31599
|
-
/* @__PURE__ */ r.jsx(
|
|
31604
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
31600
31605
|
/* @__PURE__ */ r.jsx(_r, { in: e, children: /* @__PURE__ */ r.jsx(rn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: cL }) })
|
|
31601
31606
|
] });
|
|
31602
|
-
}, uL =
|
|
31607
|
+
}, uL = I(function({
|
|
31603
31608
|
filter: e
|
|
31604
31609
|
}) {
|
|
31605
31610
|
const {
|
|
@@ -31617,7 +31622,7 @@ const ZM = z(() => {
|
|
|
31617
31622
|
/* @__PURE__ */ r.jsx(Ta, { value: s.options_query_id, onChange: s.setOptionsQueryID }),
|
|
31618
31623
|
/* @__PURE__ */ r.jsx(dL, {})
|
|
31619
31624
|
] });
|
|
31620
|
-
}), hL =
|
|
31625
|
+
}), hL = I(function({
|
|
31621
31626
|
filter: e
|
|
31622
31627
|
}) {
|
|
31623
31628
|
const {
|
|
@@ -31643,7 +31648,7 @@ const ZM = z(() => {
|
|
|
31643
31648
|
"text-input": "filter.widget.names.text_input",
|
|
31644
31649
|
checkbox: "filter.widget.names.checkbox",
|
|
31645
31650
|
"date-range": "filter.widget.names.date_range"
|
|
31646
|
-
}, pL =
|
|
31651
|
+
}, pL = I(function({
|
|
31647
31652
|
filter: e
|
|
31648
31653
|
}) {
|
|
31649
31654
|
const {
|
|
@@ -31704,7 +31709,7 @@ const ZM = z(() => {
|
|
|
31704
31709
|
] }),
|
|
31705
31710
|
/* @__PURE__ */ r.jsx(hL, { filter: e })
|
|
31706
31711
|
] });
|
|
31707
|
-
}), xL =
|
|
31712
|
+
}), xL = I(({
|
|
31708
31713
|
id: t
|
|
31709
31714
|
}) => {
|
|
31710
31715
|
const {
|
|
@@ -31742,14 +31747,14 @@ const ZM = z(() => {
|
|
|
31742
31747
|
maxWidth: "1100px",
|
|
31743
31748
|
height: "100vh"
|
|
31744
31749
|
}, spacing: "sm", pb: 30, children: [
|
|
31745
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(
|
|
31750
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(z, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(At, { size: 16 }), onClick: l, children: e("filter.delete") }) }),
|
|
31746
31751
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
31747
31752
|
flexGrow: 1,
|
|
31748
31753
|
maxHeight: "calc(100% - 52px)",
|
|
31749
31754
|
overflow: "auto"
|
|
31750
31755
|
}, children: /* @__PURE__ */ r.jsx(pL, { filter: a }) })
|
|
31751
31756
|
] });
|
|
31752
|
-
}), gL =
|
|
31757
|
+
}), gL = I(() => {
|
|
31753
31758
|
const {
|
|
31754
31759
|
t
|
|
31755
31760
|
} = y(), [e, n] = Q([]), s = pe(), i = (d) => {
|
|
@@ -31771,12 +31776,12 @@ const ZM = z(() => {
|
|
|
31771
31776
|
cursor: "default"
|
|
31772
31777
|
}, children: t("filter.manage") }) }),
|
|
31773
31778
|
/* @__PURE__ */ r.jsx(Ut, { justify: "space-between", align: "center", px: 12, children: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
31774
|
-
/* @__PURE__ */ r.jsxs(
|
|
31775
|
-
/* @__PURE__ */ r.jsx(
|
|
31776
|
-
/* @__PURE__ */ r.jsx(
|
|
31779
|
+
/* @__PURE__ */ r.jsxs(z.Group, { children: [
|
|
31780
|
+
/* @__PURE__ */ r.jsx(z, { variant: "default", size: "xs", onClick: l, children: t("common.actions.select_all") }),
|
|
31781
|
+
/* @__PURE__ */ r.jsx(z, { variant: "default", size: "xs", onClick: c, children: t("common.actions.clear_selection") })
|
|
31777
31782
|
] }),
|
|
31778
31783
|
/* @__PURE__ */ r.jsx(
|
|
31779
|
-
|
|
31784
|
+
z,
|
|
31780
31785
|
{
|
|
31781
31786
|
size: "xs",
|
|
31782
31787
|
color: "blue",
|
|
@@ -31818,11 +31823,11 @@ const ZM = z(() => {
|
|
|
31818
31823
|
/* @__PURE__ */ r.jsx("td", { children: d.label }),
|
|
31819
31824
|
/* @__PURE__ */ r.jsx("td", { children: d.key }),
|
|
31820
31825
|
/* @__PURE__ */ r.jsx("td", { children: t(pn[d.type]) }),
|
|
31821
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
31826
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(z, { variant: "subtle", size: "xs", onClick: () => i(d.id), children: t("common.actions.open") }) })
|
|
31822
31827
|
] }, d.id)) })
|
|
31823
31828
|
] }) }) })
|
|
31824
31829
|
] });
|
|
31825
|
-
}), fL =
|
|
31830
|
+
}), fL = I(() => {
|
|
31826
31831
|
const {
|
|
31827
31832
|
t
|
|
31828
31833
|
} = y(), e = oe(), [n, s] = Q(() => JSON.stringify(e.mock_context.current, null, 4)), i = () => {
|
|
@@ -31875,7 +31880,7 @@ const ZM = z(() => {
|
|
|
31875
31880
|
}, disabled: !a, onClick: i, children: /* @__PURE__ */ r.jsx(Gt, { size: 20 }) })
|
|
31876
31881
|
] })
|
|
31877
31882
|
] });
|
|
31878
|
-
}), bL =
|
|
31883
|
+
}), bL = I(() => {
|
|
31879
31884
|
const {
|
|
31880
31885
|
t
|
|
31881
31886
|
} = y(), {
|
|
@@ -31886,7 +31891,7 @@ const ZM = z(() => {
|
|
|
31886
31891
|
flexGrow: 1
|
|
31887
31892
|
}
|
|
31888
31893
|
} });
|
|
31889
|
-
}), yL =
|
|
31894
|
+
}), yL = I(() => {
|
|
31890
31895
|
const {
|
|
31891
31896
|
t
|
|
31892
31897
|
} = y(), {
|
|
@@ -31922,7 +31927,7 @@ const ZM = z(() => {
|
|
|
31922
31927
|
}), _L = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
|
|
31923
31928
|
" ",
|
|
31924
31929
|
"*"
|
|
31925
|
-
] }), vL =
|
|
31930
|
+
] }), vL = I(() => {
|
|
31926
31931
|
const {
|
|
31927
31932
|
t
|
|
31928
31933
|
} = y(), {
|
|
@@ -31946,7 +31951,7 @@ const ZM = z(() => {
|
|
|
31946
31951
|
] }),
|
|
31947
31952
|
/* @__PURE__ */ r.jsx(D, { value: s, onChange: i, required: !0 })
|
|
31948
31953
|
] });
|
|
31949
|
-
}), jL =
|
|
31954
|
+
}), jL = I(() => {
|
|
31950
31955
|
const {
|
|
31951
31956
|
t
|
|
31952
31957
|
} = y(), {
|
|
@@ -32009,7 +32014,7 @@ const SL = {
|
|
|
32009
32014
|
}
|
|
32010
32015
|
}
|
|
32011
32016
|
};
|
|
32012
|
-
function
|
|
32017
|
+
function Iu({
|
|
32013
32018
|
data: t
|
|
32014
32019
|
}) {
|
|
32015
32020
|
const e = C(() => {
|
|
@@ -32059,7 +32064,7 @@ const kL = [{
|
|
|
32059
32064
|
paddingLeft: "80px"
|
|
32060
32065
|
}
|
|
32061
32066
|
}
|
|
32062
|
-
},
|
|
32067
|
+
}, IL = ({
|
|
32063
32068
|
data: t,
|
|
32064
32069
|
page: e,
|
|
32065
32070
|
setPage: n,
|
|
@@ -32097,7 +32102,7 @@ const kL = [{
|
|
|
32097
32102
|
total: o
|
|
32098
32103
|
}) }) })
|
|
32099
32104
|
] });
|
|
32100
|
-
},
|
|
32105
|
+
}, zL = $x(({
|
|
32101
32106
|
data: t,
|
|
32102
32107
|
loading: e
|
|
32103
32108
|
}) => {
|
|
@@ -32106,15 +32111,15 @@ const kL = [{
|
|
|
32106
32111
|
return t.slice(l, c);
|
|
32107
32112
|
}, [t, n, i]);
|
|
32108
32113
|
return /* @__PURE__ */ r.jsxs(Qe, { children: [
|
|
32109
|
-
/* @__PURE__ */ r.jsx(
|
|
32114
|
+
/* @__PURE__ */ r.jsx(IL, { data: t, page: n, setPage: s, limit: i, setLimit: a }),
|
|
32110
32115
|
/* @__PURE__ */ r.jsxs(M, { py: 10, sx: {
|
|
32111
32116
|
width: "100%",
|
|
32112
32117
|
height: "calc(100% - 42px)",
|
|
32113
32118
|
overflow: "auto",
|
|
32114
32119
|
position: "relative"
|
|
32115
32120
|
}, children: [
|
|
32116
|
-
/* @__PURE__ */ r.jsx(
|
|
32117
|
-
/* @__PURE__ */ r.jsx(
|
|
32121
|
+
/* @__PURE__ */ r.jsx(In, { visible: e, overlayBlur: 2 }),
|
|
32122
|
+
/* @__PURE__ */ r.jsx(Iu, { data: o })
|
|
32118
32123
|
] })
|
|
32119
32124
|
] });
|
|
32120
32125
|
}), TL = ({
|
|
@@ -32127,7 +32132,7 @@ const kL = [{
|
|
|
32127
32132
|
return n === "loading" ? null : s ? /* @__PURE__ */ r.jsx(w, { mt: 10, color: "red", size: "md", align: "center", sx: {
|
|
32128
32133
|
fontFamily: "monospace"
|
|
32129
32134
|
}, children: s }) : i != null && i.stateMessage ? /* @__PURE__ */ r.jsx(w, { mt: 10, color: "gray", align: "center", children: i.stateMessage }) : null;
|
|
32130
|
-
}, Si =
|
|
32135
|
+
}, Si = I(({
|
|
32131
32136
|
id: t,
|
|
32132
32137
|
moreActions: e,
|
|
32133
32138
|
refreshOnMount: n
|
|
@@ -32157,7 +32162,7 @@ const kL = [{
|
|
|
32157
32162
|
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(w, { weight: 500, children: s("data.preview_data") }) }),
|
|
32158
32163
|
/* @__PURE__ */ r.jsxs(b, { pr: 15, children: [
|
|
32159
32164
|
e,
|
|
32160
|
-
/* @__PURE__ */ r.jsx(J, { variant: "subtle", color: "blue", disabled: l, onClick: c, children: /* @__PURE__ */ r.jsx(
|
|
32165
|
+
/* @__PURE__ */ r.jsx(J, { variant: "subtle", color: "blue", disabled: l, onClick: c, children: /* @__PURE__ */ r.jsx(zi, { size: 16 }) }),
|
|
32161
32166
|
/* @__PURE__ */ r.jsx(J, { variant: "subtle", color: "blue", disabled: l || u, onClick: d, children: /* @__PURE__ */ r.jsx(Ti, { size: 16 }) })
|
|
32162
32167
|
] })
|
|
32163
32168
|
] }),
|
|
@@ -32167,10 +32172,10 @@ const kL = [{
|
|
|
32167
32172
|
overflow: "auto"
|
|
32168
32173
|
}, children: [
|
|
32169
32174
|
/* @__PURE__ */ r.jsx(TL, { queryID: t }),
|
|
32170
|
-
/* @__PURE__ */ r.jsx(
|
|
32175
|
+
/* @__PURE__ */ r.jsx(zL, { data: a, loading: l })
|
|
32171
32176
|
] })
|
|
32172
32177
|
] });
|
|
32173
|
-
}), DL =
|
|
32178
|
+
}), DL = I(function() {
|
|
32174
32179
|
const {
|
|
32175
32180
|
t: e
|
|
32176
32181
|
} = y(), n = pe(), s = oe(), {
|
|
@@ -32181,7 +32186,7 @@ const kL = [{
|
|
|
32181
32186
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
32182
32187
|
/* @__PURE__ */ r.jsx(fh, { opened: a, onClose: () => o(!1), title: e("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(ee.Group, { value: [...i.queryIDs], onChange: i.setQueryIDs, children: /* @__PURE__ */ r.jsx(k, { spacing: "lg", children: s.queries.options.map((d) => /* @__PURE__ */ r.jsx(ee, { label: d.label, value: d.value }, d.value)) }) }) }),
|
|
32183
32188
|
/* @__PURE__ */ r.jsxs(k, { spacing: 6, children: [
|
|
32184
|
-
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(
|
|
32189
|
+
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(z, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(Fm, { size: 16 }), onClick: () => o(!0), children: e(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
|
|
32185
32190
|
c === 1 && /* @__PURE__ */ r.jsx(Si, { id: i.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(ge, { label: e("query.open"), children: /* @__PURE__ */ r.jsx(J, { variant: "subtle", color: "blue", onClick: () => l(i.queryIDs[0]), children: /* @__PURE__ */ r.jsx(ci, { size: 16 }) }) }) }),
|
|
32186
32191
|
c > 1 && /* @__PURE__ */ r.jsxs(_, { defaultValue: i.queryIDs[0], children: [
|
|
32187
32192
|
/* @__PURE__ */ r.jsx(_.List, { children: i.queries.map((d) => /* @__PURE__ */ r.jsx(_.Tab, { value: d.id, children: d.name }, d.id)) }),
|
|
@@ -32189,7 +32194,7 @@ const kL = [{
|
|
|
32189
32194
|
] })
|
|
32190
32195
|
] })
|
|
32191
32196
|
] });
|
|
32192
|
-
}), ML =
|
|
32197
|
+
}), ML = I(() => {
|
|
32193
32198
|
const {
|
|
32194
32199
|
panel: t
|
|
32195
32200
|
} = ln();
|
|
@@ -32442,27 +32447,27 @@ const PL = L.forwardRef($L), OL = L.forwardRef(function({
|
|
|
32442
32447
|
/* @__PURE__ */ r.jsx(Rr.Control, { icon: /* @__PURE__ */ r.jsx(w, { size: "xl", children: "🖼️" }), children: o("style.label") }),
|
|
32443
32448
|
/* @__PURE__ */ r.jsx(Rr.Panel, { children: /* @__PURE__ */ r.jsx(OL, { value: e, onChange: n }) })
|
|
32444
32449
|
] }) }),
|
|
32445
|
-
/* @__PURE__ */ r.jsx(
|
|
32450
|
+
/* @__PURE__ */ r.jsx(z, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 16 }), color: "red", variant: "light", onClick: i, children: o("panel.variable.delete") })
|
|
32446
32451
|
] });
|
|
32447
|
-
}), VL =
|
|
32452
|
+
}), VL = I((t) => {
|
|
32448
32453
|
const {
|
|
32449
32454
|
t: e
|
|
32450
32455
|
} = y(), n = vt(() => XT(t.variable), [t.variable]), s = () => t.uiModel.remove(t.variable);
|
|
32451
32456
|
return /* @__PURE__ */ r.jsxs(k, { "data-testid": "variable-editor", align: "stretch", children: [
|
|
32452
32457
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
32453
|
-
/* @__PURE__ */ r.jsx(
|
|
32454
|
-
/* @__PURE__ */ r.jsx(
|
|
32458
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(wr, { size: 18 }), children: e("common.actions.revert_changes") }),
|
|
32459
|
+
/* @__PURE__ */ r.jsx(z, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx($e, { size: 18 }), children: e("common.actions.save_changes") })
|
|
32455
32460
|
] }),
|
|
32456
|
-
/* @__PURE__ */ r.jsx(FL, { value:
|
|
32461
|
+
/* @__PURE__ */ r.jsx(FL, { value: zt(n.copy), onChange: n.update, remove: s })
|
|
32457
32462
|
] });
|
|
32458
32463
|
});
|
|
32459
|
-
|
|
32464
|
+
I((t) => {
|
|
32460
32465
|
const {
|
|
32461
32466
|
uiModel: e
|
|
32462
32467
|
} = t;
|
|
32463
|
-
return /* @__PURE__ */ r.jsx(k, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ r.jsx(
|
|
32468
|
+
return /* @__PURE__ */ r.jsx(k, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ r.jsx(z, { variant: e.selected === n ? "filled" : "subtle", color: "gray", onClick: () => e.select(n), children: n.name }, n.name)) });
|
|
32464
32469
|
});
|
|
32465
|
-
const qL =
|
|
32470
|
+
const qL = I(({
|
|
32466
32471
|
model: t
|
|
32467
32472
|
}) => {
|
|
32468
32473
|
const {
|
|
@@ -32470,13 +32475,13 @@ const qL = z(({
|
|
|
32470
32475
|
} = y();
|
|
32471
32476
|
return /* @__PURE__ */ r.jsx(Kn, { color: "#fff", opacity: 1, sx: {
|
|
32472
32477
|
position: "absolute"
|
|
32473
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
32478
|
+
}, children: /* @__PURE__ */ r.jsx(z, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(jt, { size: 16 }), onClick: t.addNew, sx: {
|
|
32474
32479
|
flexGrow: 0,
|
|
32475
32480
|
flexShrink: 0,
|
|
32476
32481
|
alignSelf: "flex-end",
|
|
32477
32482
|
height: "38px"
|
|
32478
32483
|
}, children: e("panel.variable.add") }) });
|
|
32479
|
-
}), NL =
|
|
32484
|
+
}), NL = I(() => {
|
|
32480
32485
|
var n;
|
|
32481
32486
|
const {
|
|
32482
32487
|
t
|
|
@@ -32486,7 +32491,7 @@ const qL = z(({
|
|
|
32486
32491
|
/* @__PURE__ */ r.jsx(F, { label: t("panel.variable.labels"), data: e.variableOptions, value: (n = e.selected) == null ? void 0 : n.name, onChange: e.selectByName, maxDropdownHeight: 600, sx: {
|
|
32487
32492
|
flexGrow: 1
|
|
32488
32493
|
} }),
|
|
32489
|
-
/* @__PURE__ */ r.jsx(
|
|
32494
|
+
/* @__PURE__ */ r.jsx(z, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(jt, { size: 16 }), onClick: e.addNew, sx: {
|
|
32490
32495
|
flexGrow: 0,
|
|
32491
32496
|
flexShrink: 0,
|
|
32492
32497
|
alignSelf: "flex-end",
|
|
@@ -32496,7 +32501,7 @@ const qL = z(({
|
|
|
32496
32501
|
/* @__PURE__ */ r.jsx(R, { variant: "dashed" }),
|
|
32497
32502
|
e.selected ? /* @__PURE__ */ r.jsx(VL, { uiModel: e, variable: e.selected }) : /* @__PURE__ */ r.jsx("span", { children: "Select or create a new variable on right side" })
|
|
32498
32503
|
] });
|
|
32499
|
-
}), BL =
|
|
32504
|
+
}), BL = I(() => {
|
|
32500
32505
|
const {
|
|
32501
32506
|
t
|
|
32502
32507
|
} = y(), {
|
|
@@ -32522,7 +32527,7 @@ function WL() {
|
|
|
32522
32527
|
return S.orderBy(n, [(s) => s.group, (s) => s.label], ["asc", "asc"]);
|
|
32523
32528
|
}, [e]);
|
|
32524
32529
|
}
|
|
32525
|
-
const GL =
|
|
32530
|
+
const GL = I(({
|
|
32526
32531
|
value: t,
|
|
32527
32532
|
submit: e
|
|
32528
32533
|
}) => {
|
|
@@ -32570,7 +32575,7 @@ function HL() {
|
|
|
32570
32575
|
return console.info(se(h, "message")), null;
|
|
32571
32576
|
}
|
|
32572
32577
|
}
|
|
32573
|
-
const UL =
|
|
32578
|
+
const UL = I(() => {
|
|
32574
32579
|
const {
|
|
32575
32580
|
data: t,
|
|
32576
32581
|
panel: {
|
|
@@ -32611,7 +32616,7 @@ const UL = z(() => {
|
|
|
32611
32616
|
!c && /* @__PURE__ */ r.jsx(ol, { minRows: 20, label: "Config", value: JSON.stringify(e.conf, null, 2), onChange: i })
|
|
32612
32617
|
] })
|
|
32613
32618
|
] });
|
|
32614
|
-
}), YL =
|
|
32619
|
+
}), YL = I(({
|
|
32615
32620
|
panel: t,
|
|
32616
32621
|
sourceViewID: e
|
|
32617
32622
|
}) => {
|
|
@@ -32628,7 +32633,7 @@ const UL = z(() => {
|
|
|
32628
32633
|
t.moveToView(e, i), c();
|
|
32629
32634
|
};
|
|
32630
32635
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
32631
|
-
/* @__PURE__ */ r.jsx(
|
|
32636
|
+
/* @__PURE__ */ r.jsx(z, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ r.jsx(Cl, { size: 14 }), children: n("panel.settings.change_view") }),
|
|
32632
32637
|
/* @__PURE__ */ r.jsx(je, { opened: o, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { sx: {
|
|
32633
32638
|
maxHeight: "calc(100vh - 185px)",
|
|
32634
32639
|
overflow: "hidden"
|
|
@@ -32642,8 +32647,8 @@ const UL = z(() => {
|
|
|
32642
32647
|
flexGrow: 0,
|
|
32643
32648
|
flexShrink: 0
|
|
32644
32649
|
}, children: [
|
|
32645
|
-
/* @__PURE__ */ r.jsx(
|
|
32646
|
-
/* @__PURE__ */ r.jsx(
|
|
32650
|
+
/* @__PURE__ */ r.jsx(z, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(zl, { size: 14 }), onClick: c, children: n("common.actions.cancel") }),
|
|
32651
|
+
/* @__PURE__ */ r.jsx(z, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx($e, { size: 14 }), onClick: d, disabled: i === e, children: n("common.actions.confirm") })
|
|
32647
32652
|
] })
|
|
32648
32653
|
] }) })
|
|
32649
32654
|
] });
|
|
@@ -32688,7 +32693,7 @@ const UL = z(() => {
|
|
|
32688
32693
|
function JL(t) {
|
|
32689
32694
|
return !["richText", "button"].includes(t);
|
|
32690
32695
|
}
|
|
32691
|
-
const XL =
|
|
32696
|
+
const XL = I(({
|
|
32692
32697
|
panel: t
|
|
32693
32698
|
}) => {
|
|
32694
32699
|
const {
|
|
@@ -32728,7 +32733,7 @@ const XL = z(({
|
|
|
32728
32733
|
/* @__PURE__ */ r.jsx(w, { pt: 9, pb: 8, children: t.name }),
|
|
32729
32734
|
/* @__PURE__ */ r.jsxs(b, { position: "right", noWrap: !0, children: [
|
|
32730
32735
|
/* @__PURE__ */ r.jsx(YL, { panel: t, sourceViewID: h }),
|
|
32731
|
-
/* @__PURE__ */ r.jsx(
|
|
32736
|
+
/* @__PURE__ */ r.jsx(z, { size: "xs", variant: "subtle", color: "red", onClick: x, leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 14 }), children: e("panel.delete") })
|
|
32732
32737
|
] })
|
|
32733
32738
|
] }),
|
|
32734
32739
|
/* @__PURE__ */ r.jsxs(_, { value: a, onTabChange: o, keepMounted: !1, styles: KL, children: [
|
|
@@ -32740,7 +32745,7 @@ const XL = z(({
|
|
|
32740
32745
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Interactions", children: e("interactions.label") })
|
|
32741
32746
|
] }),
|
|
32742
32747
|
/* @__PURE__ */ r.jsxs(_.Panel, { value: "Data", children: [
|
|
32743
|
-
/* @__PURE__ */ r.jsx(
|
|
32748
|
+
/* @__PURE__ */ r.jsx(In, { visible: d, exitTransitionDuration: 0 }),
|
|
32744
32749
|
/* @__PURE__ */ r.jsx(DL, {})
|
|
32745
32750
|
] }),
|
|
32746
32751
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(ii, { children: /* @__PURE__ */ r.jsx(wL, {}) }) }),
|
|
@@ -32749,7 +32754,7 @@ const XL = z(({
|
|
|
32749
32754
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Interactions", children: /* @__PURE__ */ r.jsx(Qe, { children: /* @__PURE__ */ r.jsx(pf, {}) }) })
|
|
32750
32755
|
] })
|
|
32751
32756
|
] });
|
|
32752
|
-
}), ZL =
|
|
32757
|
+
}), ZL = I(({
|
|
32753
32758
|
viewID: t,
|
|
32754
32759
|
panelID: e
|
|
32755
32760
|
}) => {
|
|
@@ -32766,7 +32771,7 @@ const XL = z(({
|
|
|
32766
32771
|
e,
|
|
32767
32772
|
"] is not found"
|
|
32768
32773
|
] });
|
|
32769
|
-
}), eE =
|
|
32774
|
+
}), eE = I(() => {
|
|
32770
32775
|
const {
|
|
32771
32776
|
t
|
|
32772
32777
|
} = y(), [e, n] = Q([]), s = Et(), i = pe(), a = (m) => {
|
|
@@ -32804,12 +32809,12 @@ const XL = z(({
|
|
|
32804
32809
|
}, children: t("query.manage") }) }),
|
|
32805
32810
|
/* @__PURE__ */ r.jsxs(Ut, { justify: "space-between", align: "center", px: 12, children: [
|
|
32806
32811
|
/* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
32807
|
-
/* @__PURE__ */ r.jsxs(
|
|
32808
|
-
/* @__PURE__ */ r.jsx(
|
|
32809
|
-
/* @__PURE__ */ r.jsx(
|
|
32812
|
+
/* @__PURE__ */ r.jsxs(z.Group, { children: [
|
|
32813
|
+
/* @__PURE__ */ r.jsx(z, { variant: "default", size: "xs", onClick: d, children: t("common.actions.select_all") }),
|
|
32814
|
+
/* @__PURE__ */ r.jsx(z, { variant: "default", size: "xs", onClick: u, children: t("common.actions.clear_selection") })
|
|
32810
32815
|
] }),
|
|
32811
32816
|
/* @__PURE__ */ r.jsx(
|
|
32812
|
-
|
|
32817
|
+
z,
|
|
32813
32818
|
{
|
|
32814
32819
|
size: "xs",
|
|
32815
32820
|
color: "blue",
|
|
@@ -32820,7 +32825,7 @@ const XL = z(({
|
|
|
32820
32825
|
}
|
|
32821
32826
|
)
|
|
32822
32827
|
] }),
|
|
32823
|
-
/* @__PURE__ */ r.jsx(
|
|
32828
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 14 }), disabled: !i.content.hasUnusedQueries, onClick: o, children: t("query.delete_unused") })
|
|
32824
32829
|
] }),
|
|
32825
32830
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
32826
32831
|
flexGrow: 1,
|
|
@@ -32868,7 +32873,7 @@ const XL = z(({
|
|
|
32868
32873
|
fontWeight: x === 0 ? "bold" : "normal",
|
|
32869
32874
|
textAlign: "center"
|
|
32870
32875
|
}, children: x }),
|
|
32871
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
32876
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(z, { variant: "subtle", size: "xs", onClick: () => a(m.id), children: t("common.actions.open") }) })
|
|
32872
32877
|
] }, m.id);
|
|
32873
32878
|
}) })
|
|
32874
32879
|
] }) }) })
|
|
@@ -32901,10 +32906,10 @@ const XL = z(({
|
|
|
32901
32906
|
touch: !1
|
|
32902
32907
|
}, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r.jsx(M, { sx: {
|
|
32903
32908
|
alignSelf: "flex-end"
|
|
32904
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
32909
|
+
}, children: /* @__PURE__ */ r.jsx(z, { disabled: !0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 16 }), children: e("query.delete") }) }) }) : /* @__PURE__ */ r.jsx(z, { color: "red", size: "xs", onClick: c, leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 16 }), sx: {
|
|
32905
32910
|
alignSelf: "flex-end"
|
|
32906
32911
|
}, children: e("query.delete") });
|
|
32907
|
-
}, nE =
|
|
32912
|
+
}, nE = I(tE), zu = ({
|
|
32908
32913
|
width: t = "calc(100% - 32px)",
|
|
32909
32914
|
lastWidth: e = "50%",
|
|
32910
32915
|
height: n,
|
|
@@ -32924,13 +32929,13 @@ const XL = z(({
|
|
|
32924
32929
|
column_key_text: n
|
|
32925
32930
|
} = t;
|
|
32926
32931
|
return e ? /* @__PURE__ */ r.jsx(ge, { label: n, disabled: !n, children: /* @__PURE__ */ r.jsx(nn, { children: e }) }) : null;
|
|
32927
|
-
}, sE =
|
|
32932
|
+
}, sE = I(({
|
|
32928
32933
|
dataSource: t
|
|
32929
32934
|
}) => {
|
|
32930
32935
|
const {
|
|
32931
32936
|
columns: e
|
|
32932
32937
|
} = t;
|
|
32933
|
-
return e.loading ? /* @__PURE__ */ r.jsx(
|
|
32938
|
+
return e.loading ? /* @__PURE__ */ r.jsx(zu, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : e.empty ? null : /* @__PURE__ */ r.jsxs(Re, { highlightOnHover: !0, fontSize: 14, sx: {
|
|
32934
32939
|
width: "auto",
|
|
32935
32940
|
minWidth: "1000px",
|
|
32936
32941
|
alignSelf: "flex-start",
|
|
@@ -32984,7 +32989,7 @@ const XL = z(({
|
|
|
32984
32989
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(hr, { value: n.column_default }) })
|
|
32985
32990
|
] }, n.column_name)) })
|
|
32986
32991
|
] });
|
|
32987
|
-
}), iE =
|
|
32992
|
+
}), iE = I(({
|
|
32988
32993
|
dataSource: t
|
|
32989
32994
|
}) => {
|
|
32990
32995
|
const {
|
|
@@ -33032,7 +33037,7 @@ const XL = z(({
|
|
|
33032
33037
|
/* @__PURE__ */ r.jsx("td", { children: s.column_name })
|
|
33033
33038
|
] }, s.index_name)) })
|
|
33034
33039
|
] });
|
|
33035
|
-
}), aE =
|
|
33040
|
+
}), aE = I(({
|
|
33036
33041
|
dataSource: t
|
|
33037
33042
|
}) => {
|
|
33038
33043
|
const {
|
|
@@ -33085,14 +33090,14 @@ const XL = z(({
|
|
|
33085
33090
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(hr, { value: s.comment }) })
|
|
33086
33091
|
] }, s.index_name)) })
|
|
33087
33092
|
] });
|
|
33088
|
-
}), oE =
|
|
33093
|
+
}), oE = I(({
|
|
33089
33094
|
dataSource: t
|
|
33090
33095
|
}) => {
|
|
33091
33096
|
const {
|
|
33092
33097
|
indexes: e
|
|
33093
33098
|
} = t;
|
|
33094
33099
|
return e.loading || e.empty ? null : t.type === De.MySQL ? /* @__PURE__ */ r.jsx(iE, { dataSource: t }) : t.type === De.Postgresql ? /* @__PURE__ */ r.jsx(aE, { dataSource: t }) : null;
|
|
33095
|
-
}), lE =
|
|
33100
|
+
}), lE = I(({
|
|
33096
33101
|
dataSource: t
|
|
33097
33102
|
}) => /* @__PURE__ */ r.jsxs(k, { spacing: 40, pt: 10, sx: {
|
|
33098
33103
|
flexGrow: 1,
|
|
@@ -33107,13 +33112,13 @@ function cE({
|
|
|
33107
33112
|
}) {
|
|
33108
33113
|
return t === "VIEW" ? /* @__PURE__ */ r.jsx(Tl, { size: 14 }) : t === "BASE TABLE" ? /* @__PURE__ */ r.jsx(Vm, { size: 14 }) : null;
|
|
33109
33114
|
}
|
|
33110
|
-
const dE =
|
|
33115
|
+
const dE = I(({
|
|
33111
33116
|
dataSource: t
|
|
33112
33117
|
}) => {
|
|
33113
33118
|
const {
|
|
33114
33119
|
tables: e
|
|
33115
33120
|
} = t;
|
|
33116
|
-
return e.loading ? /* @__PURE__ */ r.jsx(
|
|
33121
|
+
return e.loading ? /* @__PURE__ */ r.jsx(zu, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ r.jsx(M, { h: "100%", sx: {
|
|
33117
33122
|
overflow: "auto",
|
|
33118
33123
|
".mantine-NavLink-label": {
|
|
33119
33124
|
fontFamily: "monospace"
|
|
@@ -33128,7 +33133,7 @@ const dE = z(({
|
|
|
33128
33133
|
height: "100%",
|
|
33129
33134
|
overflow: "hidden",
|
|
33130
33135
|
position: "relative"
|
|
33131
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
33136
|
+
}, children: /* @__PURE__ */ r.jsx(In, { visible: t }) }), hE = [{
|
|
33132
33137
|
label: "10",
|
|
33133
33138
|
value: "10"
|
|
33134
33139
|
}, {
|
|
@@ -33150,7 +33155,7 @@ const dE = z(({
|
|
|
33150
33155
|
paddingLeft: "50px"
|
|
33151
33156
|
}
|
|
33152
33157
|
}
|
|
33153
|
-
}, pE =
|
|
33158
|
+
}, pE = I(({
|
|
33154
33159
|
dataSource: t
|
|
33155
33160
|
}) => {
|
|
33156
33161
|
const {
|
|
@@ -33181,7 +33186,7 @@ const dE = z(({
|
|
|
33181
33186
|
total: n.total
|
|
33182
33187
|
}) }) })
|
|
33183
33188
|
] });
|
|
33184
|
-
}), xE =
|
|
33189
|
+
}), xE = I(({
|
|
33185
33190
|
dataSource: t
|
|
33186
33191
|
}) => {
|
|
33187
33192
|
const e = t.tableData;
|
|
@@ -33197,8 +33202,8 @@ const dE = z(({
|
|
|
33197
33202
|
overflow: "auto",
|
|
33198
33203
|
position: "relative"
|
|
33199
33204
|
}, children: [
|
|
33200
|
-
/* @__PURE__ */ r.jsx(
|
|
33201
|
-
/* @__PURE__ */ r.jsx(
|
|
33205
|
+
/* @__PURE__ */ r.jsx(In, { visible: e.loading, overlayBlur: 2 }),
|
|
33206
|
+
/* @__PURE__ */ r.jsx(Iu, { data: e.data })
|
|
33202
33207
|
] })
|
|
33203
33208
|
] });
|
|
33204
33209
|
}), gE = {
|
|
@@ -33213,7 +33218,7 @@ const dE = z(({
|
|
|
33213
33218
|
tab: {
|
|
33214
33219
|
minWidth: 120
|
|
33215
33220
|
}
|
|
33216
|
-
}, fE =
|
|
33221
|
+
}, fE = I(({
|
|
33217
33222
|
dataSource: t
|
|
33218
33223
|
}) => {
|
|
33219
33224
|
const {
|
|
@@ -33261,7 +33266,7 @@ const dE = z(({
|
|
|
33261
33266
|
body: {
|
|
33262
33267
|
padding: "0 0 0 20px"
|
|
33263
33268
|
}
|
|
33264
|
-
}, Tu =
|
|
33269
|
+
}, Tu = I(({
|
|
33265
33270
|
dataSource: t,
|
|
33266
33271
|
triggerButtonProps: e = {}
|
|
33267
33272
|
}) => {
|
|
@@ -33286,7 +33291,7 @@ const dE = z(({
|
|
|
33286
33291
|
] }), zIndex: 320, size: "96vw", styles: bE, children: /* @__PURE__ */ r.jsx(M, { sx: {
|
|
33287
33292
|
height: "calc(100vh - 220px)"
|
|
33288
33293
|
}, children: /* @__PURE__ */ r.jsx(fE, { dataSource: t }) }) }),
|
|
33289
|
-
/* @__PURE__ */ r.jsx(
|
|
33294
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
|
|
33290
33295
|
inner: {
|
|
33291
33296
|
justifyContent: "flex-start"
|
|
33292
33297
|
}
|
|
@@ -33311,7 +33316,7 @@ const dE = z(({
|
|
|
33311
33316
|
] }) : /* @__PURE__ */ r.jsxs(b, { position: "apart", ref: s, ...n, children: [
|
|
33312
33317
|
/* @__PURE__ */ r.jsx(w, { children: t }),
|
|
33313
33318
|
/* @__PURE__ */ r.jsx(w, { children: e })
|
|
33314
|
-
] })), _E =
|
|
33319
|
+
] })), _E = I(({
|
|
33315
33320
|
value: t,
|
|
33316
33321
|
onChange: e
|
|
33317
33322
|
}) => {
|
|
@@ -33372,7 +33377,7 @@ const dE = z(({
|
|
|
33372
33377
|
/* @__PURE__ */ r.jsx(w, { children: n }),
|
|
33373
33378
|
/* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: s })
|
|
33374
33379
|
] }) });
|
|
33375
|
-
}), vE =
|
|
33380
|
+
}), vE = I(({
|
|
33376
33381
|
queryModel: t
|
|
33377
33382
|
}) => {
|
|
33378
33383
|
const {
|
|
@@ -33412,12 +33417,12 @@ const dE = z(({
|
|
|
33412
33417
|
function jE({
|
|
33413
33418
|
content: t
|
|
33414
33419
|
}) {
|
|
33415
|
-
return /* @__PURE__ */ r.jsxs(
|
|
33416
|
-
/* @__PURE__ */ r.jsx(
|
|
33417
|
-
/* @__PURE__ */ r.jsx(
|
|
33420
|
+
return /* @__PURE__ */ r.jsxs(Ie, { width: "60vw", shadow: "md", children: [
|
|
33421
|
+
/* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(J, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(Tl, {}) }) }),
|
|
33422
|
+
/* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(rn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: t }) })
|
|
33418
33423
|
] });
|
|
33419
33424
|
}
|
|
33420
|
-
const wE =
|
|
33425
|
+
const wE = I(() => {
|
|
33421
33426
|
const e = [...pe().globalSQLSnippets.list];
|
|
33422
33427
|
return e.length === 0 ? null : /* @__PURE__ */ r.jsxs(Re, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
|
|
33423
33428
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
@@ -33448,7 +33453,7 @@ WHERE
|
|
|
33448
33453
|
AND \${sql_snippets.author_email_condition}
|
|
33449
33454
|
-- Global SQL snippets (shared between dashboards)
|
|
33450
33455
|
AND \${global_sql_snippets.account_condition}
|
|
33451
|
-
`, Du =
|
|
33456
|
+
`, Du = I(function({
|
|
33452
33457
|
showSQLSnippets: e = !0,
|
|
33453
33458
|
sx: n = {}
|
|
33454
33459
|
}) {
|
|
@@ -33484,13 +33489,13 @@ WHERE
|
|
|
33484
33489
|
/* @__PURE__ */ r.jsx(wE, {})
|
|
33485
33490
|
] }) })
|
|
33486
33491
|
] }) });
|
|
33487
|
-
}), Da =
|
|
33492
|
+
}), Da = I(() => {
|
|
33488
33493
|
const {
|
|
33489
33494
|
t
|
|
33490
33495
|
} = y(), [e, n] = Q(!1);
|
|
33491
33496
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
33492
33497
|
/* @__PURE__ */ r.jsx(je, { opened: e, onClose: () => n(!1), title: t("query_variable.labels"), zIndex: 320, size: "800px", children: /* @__PURE__ */ r.jsx(Du, {}) }),
|
|
33493
|
-
/* @__PURE__ */ r.jsx(
|
|
33498
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", onClick: () => n(!0), px: 16, styles: {
|
|
33494
33499
|
inner: {
|
|
33495
33500
|
justifyContent: "flex-start"
|
|
33496
33501
|
}
|
|
@@ -33501,7 +33506,7 @@ WHERE
|
|
|
33501
33506
|
`),
|
|
33502
33507
|
post: ["function process_result(res, utils, state) {", " // your code goes here", " return data", "}"].join(`
|
|
33503
33508
|
`)
|
|
33504
|
-
}, kE =
|
|
33509
|
+
}, kE = I(({
|
|
33505
33510
|
queryModel: t
|
|
33506
33511
|
}) => {
|
|
33507
33512
|
const {
|
|
@@ -33520,7 +33525,7 @@ WHERE
|
|
|
33520
33525
|
}, p: "sm", children: /* @__PURE__ */ r.jsx(Qn, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: tl.pre }) }),
|
|
33521
33526
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(Qn, { label: "", value: t.post_process, onChange: t.setPostProcess, defaultValue: tl.post }) })
|
|
33522
33527
|
] }) : null;
|
|
33523
|
-
}), CE =
|
|
33528
|
+
}), CE = I(({
|
|
33524
33529
|
queryID: t,
|
|
33525
33530
|
usage: e
|
|
33526
33531
|
}) => {
|
|
@@ -33582,15 +33587,15 @@ WHERE
|
|
|
33582
33587
|
readOnly: o || !e,
|
|
33583
33588
|
"semanticHighlighting.enabled": !0
|
|
33584
33589
|
} });
|
|
33585
|
-
},
|
|
33590
|
+
}, IE = I(({
|
|
33586
33591
|
queryModel: t
|
|
33587
33592
|
}) => {
|
|
33588
33593
|
const {
|
|
33589
33594
|
t: e
|
|
33590
33595
|
} = y(), n = C(() => S.groupBy(t.dependencies, "type"), [t.dependencies]), s = C(() => t.dependencies.some((a) => !a.valid), [t.dependencies]), i = t.dependencies.length > 0;
|
|
33591
|
-
return i ? /* @__PURE__ */ r.jsxs(
|
|
33592
|
-
/* @__PURE__ */ r.jsx(
|
|
33593
|
-
/* @__PURE__ */ r.jsx(
|
|
33596
|
+
return i ? /* @__PURE__ */ r.jsxs(Ie, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !i, children: [
|
|
33597
|
+
/* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(z, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(Il, { size: 16 }) : /* @__PURE__ */ r.jsx(Gm, { size: 16 }), children: e("query.dependency.label") }) }),
|
|
33598
|
+
/* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(ot, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(ot.Item, { children: [
|
|
33594
33599
|
/* @__PURE__ */ r.jsx(w, { fw: "bold", ff: "monospace", children: e(`${a}.label`) }),
|
|
33595
33600
|
/* @__PURE__ */ r.jsx(ot, { withPadding: !0, size: 14, sx: {
|
|
33596
33601
|
fontFamily: "monospace",
|
|
@@ -33603,12 +33608,12 @@ WHERE
|
|
|
33603
33608
|
}
|
|
33604
33609
|
}, children: /* @__PURE__ */ r.jsx(Mi, { size: 12 }) }), children: l.key }, l.key)) })
|
|
33605
33610
|
] }, a)) }) })
|
|
33606
|
-
] }) : /* @__PURE__ */ r.jsx(ge, { label: e("query.dependency.has_none"), children: /* @__PURE__ */ r.jsx(
|
|
33611
|
+
] }) : /* @__PURE__ */ r.jsx(ge, { label: e("query.dependency.has_none"), children: /* @__PURE__ */ r.jsx(z, { size: "xs", variant: "subtle", color: "gray", leftIcon: /* @__PURE__ */ r.jsx(Wm, { size: 16, style: {
|
|
33607
33612
|
transform: "rotate(180deg)"
|
|
33608
33613
|
} }), sx: {
|
|
33609
33614
|
transform: "none !important"
|
|
33610
33615
|
}, children: e("query.dependency.label") }) });
|
|
33611
|
-
}),
|
|
33616
|
+
}), zE = "SELECT 1", TE = I(({
|
|
33612
33617
|
queryModel: t
|
|
33613
33618
|
}) => {
|
|
33614
33619
|
const {
|
|
@@ -33618,7 +33623,7 @@ WHERE
|
|
|
33618
33623
|
}, a = () => {
|
|
33619
33624
|
s(t.sql);
|
|
33620
33625
|
}, o = () => {
|
|
33621
|
-
s(
|
|
33626
|
+
s(zE);
|
|
33622
33627
|
};
|
|
33623
33628
|
B(() => {
|
|
33624
33629
|
s(t.sql);
|
|
@@ -33631,11 +33636,11 @@ WHERE
|
|
|
33631
33636
|
flexShrink: 0,
|
|
33632
33637
|
flexGrow: 0
|
|
33633
33638
|
}, children: [
|
|
33634
|
-
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(
|
|
33639
|
+
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(IE, { queryModel: t }) }),
|
|
33635
33640
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
33636
|
-
/* @__PURE__ */ r.jsx(
|
|
33637
|
-
/* @__PURE__ */ r.jsx(
|
|
33638
|
-
/* @__PURE__ */ r.jsx(
|
|
33641
|
+
/* @__PURE__ */ r.jsx(z, { onClick: o, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(wl, { size: 16 }), children: e("common.actions.reset_to_default") }),
|
|
33642
|
+
/* @__PURE__ */ r.jsx(z, { onClick: a, color: "red", size: "xs", disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(wr, { size: 16 }), children: e("common.actions.revert_changes") }),
|
|
33643
|
+
/* @__PURE__ */ r.jsx(z, { color: "green", size: "xs", onClick: i, disabled: !l, leftIcon: /* @__PURE__ */ r.jsx($e, { size: 16 }), children: e("common.actions.save_changes") })
|
|
33639
33644
|
] })
|
|
33640
33645
|
] }),
|
|
33641
33646
|
/* @__PURE__ */ r.jsx(Ma, { height: "100%", value: n, onChange: s, theme: "sql-dark", defaultLanguage: "sql" })
|
|
@@ -33653,7 +33658,7 @@ WHERE
|
|
|
33653
33658
|
enabled: !1
|
|
33654
33659
|
},
|
|
33655
33660
|
readOnly: !0
|
|
33656
|
-
} }), ME =
|
|
33661
|
+
} }), ME = I(({
|
|
33657
33662
|
value: t
|
|
33658
33663
|
}) => {
|
|
33659
33664
|
const n = Pe().payloadForSQL, s = L.useMemo(() => Ei(t, n), [t, n]);
|
|
@@ -33663,7 +33668,7 @@ WHERE
|
|
|
33663
33668
|
`),
|
|
33664
33669
|
post: ["function process_result(data, utils, state) {", " // process data and return the result", " return data", "}"].join(`
|
|
33665
33670
|
`)
|
|
33666
|
-
}, LE =
|
|
33671
|
+
}, LE = I(({
|
|
33667
33672
|
queryModel: t
|
|
33668
33673
|
}) => {
|
|
33669
33674
|
const {
|
|
@@ -33699,7 +33704,7 @@ WHERE
|
|
|
33699
33704
|
pre: ["function transform(queries, state, utils) {", " // use queries & dashboar state to build new data", " const data = []", " return data", "}"].join(`
|
|
33700
33705
|
`),
|
|
33701
33706
|
post: ""
|
|
33702
|
-
}, AE =
|
|
33707
|
+
}, AE = I(({
|
|
33703
33708
|
queryModel: t
|
|
33704
33709
|
}) => {
|
|
33705
33710
|
const {
|
|
@@ -33719,7 +33724,7 @@ WHERE
|
|
|
33719
33724
|
height: "calc(100% - 44px)",
|
|
33720
33725
|
// Tabs.List
|
|
33721
33726
|
padding: 0
|
|
33722
|
-
}, RE =
|
|
33727
|
+
}, RE = I(({
|
|
33723
33728
|
queryModel: t
|
|
33724
33729
|
}) => {
|
|
33725
33730
|
const {
|
|
@@ -33759,17 +33764,17 @@ WHERE
|
|
|
33759
33764
|
overflow: "hidden"
|
|
33760
33765
|
}, children: /* @__PURE__ */ r.jsx(CE, { queryID: t.id, usage: o }) })
|
|
33761
33766
|
] });
|
|
33762
|
-
}), $E =
|
|
33767
|
+
}), $E = I(({
|
|
33763
33768
|
id: t
|
|
33764
33769
|
}) => {
|
|
33765
33770
|
const n = oe().queries.findByID(t);
|
|
33766
33771
|
return t === "" ? null : n ? /* @__PURE__ */ r.jsx(RE, { queryModel: n }) : /* @__PURE__ */ r.jsx(w, { size: 14, color: "red", children: "Invalid Query ID" });
|
|
33767
|
-
}), PE =
|
|
33772
|
+
}), PE = I(({
|
|
33768
33773
|
value: t
|
|
33769
33774
|
}) => {
|
|
33770
33775
|
const n = Pe().payloadForSQL, s = C(() => Ei(t, n), [t, n]);
|
|
33771
33776
|
return /* @__PURE__ */ r.jsx(Ma, { height: "100%", value: s });
|
|
33772
|
-
}), OE =
|
|
33777
|
+
}), OE = I(({
|
|
33773
33778
|
item: t,
|
|
33774
33779
|
remove: e,
|
|
33775
33780
|
onKeyChanged: n
|
|
@@ -33821,7 +33826,7 @@ WHERE
|
|
|
33821
33826
|
error: u
|
|
33822
33827
|
}
|
|
33823
33828
|
),
|
|
33824
|
-
/* @__PURE__ */ r.jsx(
|
|
33829
|
+
/* @__PURE__ */ r.jsx(z, { leftIcon: /* @__PURE__ */ r.jsx(At, { size: 16 }), color: "red", variant: "light", onClick: T, children: s("sql_snippet.delete") })
|
|
33825
33830
|
] }),
|
|
33826
33831
|
/* @__PURE__ */ r.jsxs(_, { value: i, onTabChange: a, sx: {
|
|
33827
33832
|
flexGrow: 1
|
|
@@ -33846,7 +33851,7 @@ WHERE
|
|
|
33846
33851
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ r.jsx(PE, { value: h }) })
|
|
33847
33852
|
] })
|
|
33848
33853
|
] });
|
|
33849
|
-
}), FE =
|
|
33854
|
+
}), FE = I(({
|
|
33850
33855
|
id: t
|
|
33851
33856
|
}) => {
|
|
33852
33857
|
const e = pe(), n = oe(), s = C(() => n.sqlSnippets.findByKey(t), [t]);
|
|
@@ -33866,7 +33871,7 @@ WHERE
|
|
|
33866
33871
|
e.editor.setPath(["_SQL_SNIPPETS_", l]);
|
|
33867
33872
|
};
|
|
33868
33873
|
return /* @__PURE__ */ r.jsx(OE, { item: s, remove: a, onKeyChanged: o });
|
|
33869
|
-
}), VE =
|
|
33874
|
+
}), VE = I(() => {
|
|
33870
33875
|
const {
|
|
33871
33876
|
t
|
|
33872
33877
|
} = y(), [e, n] = Q([]), s = Et(), i = pe(), a = (m) => {
|
|
@@ -33904,12 +33909,12 @@ WHERE
|
|
|
33904
33909
|
}, children: t("sql_snippet.manage") }) }),
|
|
33905
33910
|
/* @__PURE__ */ r.jsxs(Ut, { justify: "space-between", align: "center", px: 12, children: [
|
|
33906
33911
|
/* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
33907
|
-
/* @__PURE__ */ r.jsxs(
|
|
33908
|
-
/* @__PURE__ */ r.jsx(
|
|
33909
|
-
/* @__PURE__ */ r.jsx(
|
|
33912
|
+
/* @__PURE__ */ r.jsxs(z.Group, { children: [
|
|
33913
|
+
/* @__PURE__ */ r.jsx(z, { variant: "default", size: "xs", onClick: d, children: t("common.actions.select_all") }),
|
|
33914
|
+
/* @__PURE__ */ r.jsx(z, { variant: "default", size: "xs", onClick: u, children: t("common.actions.clear_selection") })
|
|
33910
33915
|
] }),
|
|
33911
33916
|
/* @__PURE__ */ r.jsx(
|
|
33912
|
-
|
|
33917
|
+
z,
|
|
33913
33918
|
{
|
|
33914
33919
|
size: "xs",
|
|
33915
33920
|
color: "blue",
|
|
@@ -33920,7 +33925,7 @@ WHERE
|
|
|
33920
33925
|
}
|
|
33921
33926
|
)
|
|
33922
33927
|
] }),
|
|
33923
|
-
/* @__PURE__ */ r.jsx(
|
|
33928
|
+
/* @__PURE__ */ r.jsx(z, { variant: "subtle", size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 14 }), disabled: !i.content.hasUnusedSQLSnippets, onClick: o, children: t("sql_snippet.delete_unused") })
|
|
33924
33929
|
] }),
|
|
33925
33930
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
33926
33931
|
flexGrow: 1,
|
|
@@ -33957,14 +33962,14 @@ WHERE
|
|
|
33957
33962
|
fontWeight: x === 0 ? "bold" : "normal",
|
|
33958
33963
|
textAlign: "center"
|
|
33959
33964
|
}, children: x }),
|
|
33960
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
33965
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(z, { variant: "subtle", size: "xs", onClick: () => a(m.key), children: t("common.actions.open") }) })
|
|
33961
33966
|
] }, m.key);
|
|
33962
33967
|
}) })
|
|
33963
33968
|
] }) }) })
|
|
33964
33969
|
] });
|
|
33965
|
-
}), qE =
|
|
33970
|
+
}), qE = I(({
|
|
33966
33971
|
view: t
|
|
33967
|
-
}) => !t || t.type !== W.Division ? null : /* @__PURE__ */ r.jsx(k, {})), NE =
|
|
33972
|
+
}) => !t || t.type !== W.Division ? null : /* @__PURE__ */ r.jsx(k, {})), NE = I(({
|
|
33968
33973
|
view: t
|
|
33969
33974
|
}) => {
|
|
33970
33975
|
const {
|
|
@@ -34056,15 +34061,15 @@ WHERE
|
|
|
34056
34061
|
/* @__PURE__ */ r.jsx(ee, { mt: 10, label: n("common.enabled"), checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
|
|
34057
34062
|
/* @__PURE__ */ r.jsx(BE, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
34058
34063
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
34059
|
-
/* @__PURE__ */ r.jsx(
|
|
34064
|
+
/* @__PURE__ */ r.jsx(z, { onClick: m, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: n("common.actions.revert") }),
|
|
34060
34065
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
34061
|
-
/* @__PURE__ */ r.jsx(
|
|
34062
|
-
/* @__PURE__ */ r.jsx(
|
|
34066
|
+
/* @__PURE__ */ r.jsx(z, { onClick: u, variant: "subtle", children: n("common.actions.cancel") }),
|
|
34067
|
+
/* @__PURE__ */ r.jsx(z, { onClick: d, children: n("common.actions.save") })
|
|
34063
34068
|
] })
|
|
34064
34069
|
] })
|
|
34065
34070
|
] }) })
|
|
34066
34071
|
] });
|
|
34067
|
-
}, GE =
|
|
34072
|
+
}, GE = I(({
|
|
34068
34073
|
view: t
|
|
34069
34074
|
}) => {
|
|
34070
34075
|
const {
|
|
@@ -34086,13 +34091,13 @@ WHERE
|
|
|
34086
34091
|
/* @__PURE__ */ r.jsx(D, { label: e("view.component.modal.height"), value: n.height, onChange: (i) => n.setHeight(i.currentTarget.value), placeholder: "600px / 50vw" })
|
|
34087
34092
|
] })
|
|
34088
34093
|
] });
|
|
34089
|
-
}), QE =
|
|
34094
|
+
}), QE = I(({
|
|
34090
34095
|
view: t
|
|
34091
34096
|
}) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
34092
34097
|
/* @__PURE__ */ r.jsx(qE, { view: t }),
|
|
34093
34098
|
/* @__PURE__ */ r.jsx(GE, { view: t }),
|
|
34094
34099
|
/* @__PURE__ */ r.jsx(NE, { view: t })
|
|
34095
|
-
] })), HE =
|
|
34100
|
+
] })), HE = I(({
|
|
34096
34101
|
view: t
|
|
34097
34102
|
}) => {
|
|
34098
34103
|
const {
|
|
@@ -34117,7 +34122,7 @@ WHERE
|
|
|
34117
34122
|
/* @__PURE__ */ r.jsx(F, { label: e("common.type"), withinPortal: !0, zIndex: 320, value: t.type, onChange: t.setType, data: s }),
|
|
34118
34123
|
/* @__PURE__ */ r.jsx(QE, { view: t })
|
|
34119
34124
|
] }) : null;
|
|
34120
|
-
}), UE =
|
|
34125
|
+
}), UE = I(({
|
|
34121
34126
|
id: t
|
|
34122
34127
|
}) => {
|
|
34123
34128
|
const {
|
|
@@ -34152,7 +34157,7 @@ WHERE
|
|
|
34152
34157
|
maxWidth: "600px",
|
|
34153
34158
|
height: "100%"
|
|
34154
34159
|
}, spacing: "sm", children: [
|
|
34155
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(
|
|
34160
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(z, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(At, { size: 16 }), onClick: l, children: e("view.delete") }) }),
|
|
34156
34161
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
34157
34162
|
flexGrow: 1,
|
|
34158
34163
|
maxHeight: "calc(100% - 52px)",
|
|
@@ -34190,12 +34195,12 @@ function rA(t) {
|
|
|
34190
34195
|
function sA(t) {
|
|
34191
34196
|
return t.length === 4 && t[0] === "_VIEWS_" && t[2] === "_PANELS_";
|
|
34192
34197
|
}
|
|
34193
|
-
const iA =
|
|
34198
|
+
const iA = I(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
34194
34199
|
height: "100%"
|
|
34195
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(Du, {}) })), aA =
|
|
34200
|
+
}, p: "sm", children: /* @__PURE__ */ r.jsx(Du, {}) })), aA = I(() => {
|
|
34196
34201
|
const t = pe().editor, e = t.path;
|
|
34197
34202
|
return YE(e) ? /* @__PURE__ */ r.jsx(iA, {}) : KE(e) ? /* @__PURE__ */ r.jsx(fL, {}) : JE(e) ? /* @__PURE__ */ r.jsx(gL, {}) : XE(e) ? /* @__PURE__ */ r.jsx(M, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(xL, { id: e[1] }) }) : ZE(e) ? /* @__PURE__ */ r.jsx(VE, {}) : eA(e) ? /* @__PURE__ */ r.jsx(FE, { id: e[1] }) : nA(e) ? /* @__PURE__ */ r.jsx(eE, {}) : tA(e) ? /* @__PURE__ */ r.jsx($E, { id: e[1] }) : rA(e) ? /* @__PURE__ */ r.jsx(M, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(UE, { id: e[1] }) }) : sA(e) ? /* @__PURE__ */ r.jsx(ZL, { viewID: e[1], panelID: e[3] }) : /* @__PURE__ */ r.jsx(M, { children: t.path });
|
|
34198
|
-
}), oA =
|
|
34203
|
+
}), oA = I(() => /* @__PURE__ */ r.jsx(aA, {})), lA = I(() => {
|
|
34199
34204
|
const {
|
|
34200
34205
|
t
|
|
34201
34206
|
} = y(), e = pe(), n = () => {
|
|
@@ -34211,7 +34216,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34211
34216
|
};
|
|
34212
34217
|
e.content.filters.append(i), e.editor.setPath(["_FILTERS_", s]);
|
|
34213
34218
|
};
|
|
34214
|
-
return /* @__PURE__ */ r.jsx(
|
|
34219
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(jt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
|
|
34215
34220
|
width: "100%",
|
|
34216
34221
|
borderRadius: 0
|
|
34217
34222
|
}, styles: {
|
|
@@ -34219,7 +34224,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34219
34224
|
justifyContent: "flex-start"
|
|
34220
34225
|
}
|
|
34221
34226
|
}, children: t("filter.add") });
|
|
34222
|
-
}), cA =
|
|
34227
|
+
}), cA = I(({
|
|
34223
34228
|
parentID: t
|
|
34224
34229
|
}) => {
|
|
34225
34230
|
const {
|
|
@@ -34228,7 +34233,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34228
34233
|
if (!t)
|
|
34229
34234
|
return null;
|
|
34230
34235
|
const s = n.views.findByID(t);
|
|
34231
|
-
return !s || s.type === W.Tabs ? null : /* @__PURE__ */ r.jsx(
|
|
34236
|
+
return !s || s.type === W.Tabs ? null : /* @__PURE__ */ r.jsx(z, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(jt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => n.addANewPanel(s.id), sx: {
|
|
34232
34237
|
width: "100%",
|
|
34233
34238
|
borderRadius: 0
|
|
34234
34239
|
}, styles: {
|
|
@@ -34236,7 +34241,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34236
34241
|
justifyContent: "flex-start"
|
|
34237
34242
|
}
|
|
34238
34243
|
}, children: e("panel.add") });
|
|
34239
|
-
}), dA =
|
|
34244
|
+
}), dA = I(() => {
|
|
34240
34245
|
const {
|
|
34241
34246
|
t
|
|
34242
34247
|
} = y(), e = pe(), n = () => {
|
|
@@ -34249,7 +34254,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34249
34254
|
};
|
|
34250
34255
|
e.content.queries.append(i), e.editor.setPath(["_QUERIES_", s]);
|
|
34251
34256
|
};
|
|
34252
|
-
return /* @__PURE__ */ r.jsx(
|
|
34257
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(jt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
|
|
34253
34258
|
width: "100%",
|
|
34254
34259
|
borderRadius: 0
|
|
34255
34260
|
}, styles: {
|
|
@@ -34257,7 +34262,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34257
34262
|
justifyContent: "flex-start"
|
|
34258
34263
|
}
|
|
34259
34264
|
}, children: t("query.add") });
|
|
34260
|
-
}), uA =
|
|
34265
|
+
}), uA = I(() => {
|
|
34261
34266
|
const {
|
|
34262
34267
|
t
|
|
34263
34268
|
} = y(), e = pe(), n = () => {
|
|
@@ -34267,7 +34272,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34267
34272
|
};
|
|
34268
34273
|
e.content.sqlSnippets.append(i), e.editor.setPath(["_SQL_SNIPPETS_", s]);
|
|
34269
34274
|
};
|
|
34270
|
-
return /* @__PURE__ */ r.jsx(
|
|
34275
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(jt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
|
|
34271
34276
|
width: "100%",
|
|
34272
34277
|
borderRadius: 0
|
|
34273
34278
|
}, styles: {
|
|
@@ -34275,11 +34280,11 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34275
34280
|
justifyContent: "flex-start"
|
|
34276
34281
|
}
|
|
34277
34282
|
}, children: t("sql_snippet.add") });
|
|
34278
|
-
}), hA =
|
|
34283
|
+
}), hA = I(() => {
|
|
34279
34284
|
const {
|
|
34280
34285
|
t
|
|
34281
34286
|
} = y(), e = oe();
|
|
34282
|
-
return /* @__PURE__ */ r.jsx(
|
|
34287
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(jt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: e.views.addARandomNewView, sx: {
|
|
34283
34288
|
width: "100%",
|
|
34284
34289
|
borderRadius: 0
|
|
34285
34290
|
}, styles: {
|
|
@@ -34287,11 +34292,11 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34287
34292
|
justifyContent: "flex-start"
|
|
34288
34293
|
}
|
|
34289
34294
|
}, children: t("view.add") });
|
|
34290
|
-
}), mA =
|
|
34295
|
+
}), mA = I(() => {
|
|
34291
34296
|
const {
|
|
34292
34297
|
t
|
|
34293
34298
|
} = y(), e = pe();
|
|
34294
|
-
return /* @__PURE__ */ r.jsx(
|
|
34299
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Sr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_QUERIES_"]), sx: {
|
|
34295
34300
|
width: "100%",
|
|
34296
34301
|
borderRadius: 0,
|
|
34297
34302
|
fontWeight: "normal"
|
|
@@ -34300,11 +34305,11 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34300
34305
|
justifyContent: "space-between"
|
|
34301
34306
|
}
|
|
34302
34307
|
}, children: t("query.manage") });
|
|
34303
|
-
}), pA =
|
|
34308
|
+
}), pA = I(() => {
|
|
34304
34309
|
const {
|
|
34305
34310
|
t
|
|
34306
34311
|
} = y(), e = pe();
|
|
34307
|
-
return /* @__PURE__ */ r.jsx(
|
|
34312
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Sr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_SQL_SNIPPETS_"]), sx: {
|
|
34308
34313
|
width: "100%",
|
|
34309
34314
|
borderRadius: 0,
|
|
34310
34315
|
fontWeight: "normal"
|
|
@@ -34313,11 +34318,11 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34313
34318
|
justifyContent: "space-between"
|
|
34314
34319
|
}
|
|
34315
34320
|
}, children: t("sql_snippet.manage") });
|
|
34316
|
-
}), xA =
|
|
34321
|
+
}), xA = I(() => {
|
|
34317
34322
|
const {
|
|
34318
34323
|
t
|
|
34319
34324
|
} = y(), e = pe();
|
|
34320
|
-
return /* @__PURE__ */ r.jsx(
|
|
34325
|
+
return /* @__PURE__ */ r.jsx(z, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Sr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_FILTERS_"]), sx: {
|
|
34321
34326
|
width: "100%",
|
|
34322
34327
|
borderRadius: 0,
|
|
34323
34328
|
fontWeight: "normal"
|
|
@@ -34326,10 +34331,10 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34326
34331
|
justifyContent: "space-between"
|
|
34327
34332
|
}
|
|
34328
34333
|
}, children: t("filter.manage") });
|
|
34329
|
-
}), gA =
|
|
34334
|
+
}), gA = I(({
|
|
34330
34335
|
action_type: t,
|
|
34331
34336
|
parentID: e
|
|
34332
|
-
}) => t === "_Add_A_Filter_" ? /* @__PURE__ */ r.jsx(lA, {}) : t === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ r.jsx(uA, {}) : t === "_Add_A_QUERY_" ? /* @__PURE__ */ r.jsx(dA, {}) : t === "_Add_A_VIEW_" ? /* @__PURE__ */ r.jsx(hA, {}) : t === "_Add_A_PANEL_" ? /* @__PURE__ */ r.jsx(cA, { parentID: e }) : t === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ r.jsx(mA, {}) : t === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ r.jsx(pA, {}) : t === "_FILTERS_SETTINGS_" ? /* @__PURE__ */ r.jsx(xA, {}) : null), Mu =
|
|
34337
|
+
}) => t === "_Add_A_Filter_" ? /* @__PURE__ */ r.jsx(lA, {}) : t === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ r.jsx(uA, {}) : t === "_Add_A_QUERY_" ? /* @__PURE__ */ r.jsx(dA, {}) : t === "_Add_A_VIEW_" ? /* @__PURE__ */ r.jsx(hA, {}) : t === "_Add_A_PANEL_" ? /* @__PURE__ */ r.jsx(cA, { parentID: e }) : t === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ r.jsx(mA, {}) : t === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ r.jsx(pA, {}) : t === "_FILTERS_SETTINGS_" ? /* @__PURE__ */ r.jsx(xA, {}) : null), Mu = I(({
|
|
34333
34338
|
option: t
|
|
34334
34339
|
}) => {
|
|
34335
34340
|
var u;
|
|
@@ -34339,12 +34344,12 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34339
34344
|
return B(() => {
|
|
34340
34345
|
d(l);
|
|
34341
34346
|
}, [l]), /* @__PURE__ */ r.jsx(li, { active: i, defaultOpened: l, opened: c, onChange: d, label: e(t.label), onClick: () => o(t), icon: t.Icon ? /* @__PURE__ */ r.jsx(t.Icon, { size: 18 }) : null, children: (u = t.children) == null ? void 0 : u.map((h) => h._type === "ACTION" ? /* @__PURE__ */ r.jsx(gA, { action_type: h._action_type, parentID: h.parentID }, `_ADD_${h.value}_`) : /* @__PURE__ */ r.jsx(Mu, { option: h }, h.value)) }, t.label);
|
|
34342
|
-
}), fA =
|
|
34347
|
+
}), fA = I(() => {
|
|
34343
34348
|
const t = pe();
|
|
34344
34349
|
return /* @__PURE__ */ r.jsx(M, { sx: {
|
|
34345
34350
|
position: "relative"
|
|
34346
34351
|
}, children: t.editor.navOptions.map((e) => /* @__PURE__ */ r.jsx(Mu, { option: e }, e.value)) });
|
|
34347
|
-
}), bA =
|
|
34352
|
+
}), bA = I(() => {
|
|
34348
34353
|
const {
|
|
34349
34354
|
t
|
|
34350
34355
|
} = y(), e = pe();
|
|
@@ -34372,7 +34377,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34372
34377
|
}, children: /* @__PURE__ */ r.jsx(fA, {}) }),
|
|
34373
34378
|
/* @__PURE__ */ r.jsx(Vt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
|
|
34374
34379
|
borderTop: "1px solid #eee"
|
|
34375
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
34380
|
+
}, children: /* @__PURE__ */ r.jsx(z, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(zl, { size: 18 }), onClick: () => e.editor.close(), children: t("common.actions.close") }) }) })
|
|
34376
34381
|
] });
|
|
34377
34382
|
}), yA = {
|
|
34378
34383
|
root: {
|
|
@@ -34396,7 +34401,7 @@ const iA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
|
|
|
34396
34401
|
paddingTop: 0,
|
|
34397
34402
|
height: "100vh"
|
|
34398
34403
|
}
|
|
34399
|
-
}, _A =
|
|
34404
|
+
}, _A = I(() => {
|
|
34400
34405
|
const t = pe().editor;
|
|
34401
34406
|
return /* @__PURE__ */ r.jsx(je, { onClose: () => t.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: t.settings_open, fullScreen: !0, title: null, transitionProps: {
|
|
34402
34407
|
duration: 0
|
|
@@ -34484,12 +34489,12 @@ const wA = {
|
|
|
34484
34489
|
}, children: /* @__PURE__ */ r.jsx(dc, { value: j, children: /* @__PURE__ */ r.jsx(xc, { value: j.content, children: /* @__PURE__ */ r.jsx(Fi.Provider, { value: {
|
|
34485
34490
|
inEditMode: !0
|
|
34486
34491
|
}, children: /* @__PURE__ */ r.jsx($t.Provider, { value: E, children: /* @__PURE__ */ r.jsxs(Es, { configure: P, children: [
|
|
34487
|
-
/* @__PURE__ */ r.jsx(cl, { padding: 0, header: /* @__PURE__ */ r.jsx(
|
|
34492
|
+
/* @__PURE__ */ r.jsx(cl, { padding: 0, header: /* @__PURE__ */ r.jsx(IM, { onExit: u, saveDashboardChanges: T, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(eL, {}), styles: wA, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
|
|
34488
34493
|
position: "relative"
|
|
34489
34494
|
}, children: j.content.views.visibleViews.map((q) => /* @__PURE__ */ r.jsx($D, { view: q }, q.id)) }) }),
|
|
34490
34495
|
/* @__PURE__ */ r.jsx(_A, {})
|
|
34491
34496
|
] }) }) }) }) }) }) }) }) });
|
|
34492
|
-
}, C2 =
|
|
34497
|
+
}, C2 = I(ne(SA));
|
|
34493
34498
|
const Lu = p.model({
|
|
34494
34499
|
id: p.string,
|
|
34495
34500
|
name: p.string,
|
|
@@ -34646,7 +34651,7 @@ const CA = p.model({
|
|
|
34646
34651
|
globalSQLSnippets: Gd,
|
|
34647
34652
|
context: Sa
|
|
34648
34653
|
});
|
|
34649
|
-
function
|
|
34654
|
+
function IA({
|
|
34650
34655
|
id: t,
|
|
34651
34656
|
name: e,
|
|
34652
34657
|
group: n,
|
|
@@ -34669,7 +34674,7 @@ function zA({
|
|
|
34669
34674
|
}
|
|
34670
34675
|
nc();
|
|
34671
34676
|
rc();
|
|
34672
|
-
const
|
|
34677
|
+
const zA = ({
|
|
34673
34678
|
context: t,
|
|
34674
34679
|
dashboard: e,
|
|
34675
34680
|
content: n,
|
|
@@ -34686,7 +34691,7 @@ const IA = ({
|
|
|
34686
34691
|
data: u = []
|
|
34687
34692
|
} = wn($i), {
|
|
34688
34693
|
data: h = []
|
|
34689
|
-
} = wn(sc), m = L.useMemo(() =>
|
|
34694
|
+
} = wn(sc), m = L.useMemo(() => IA(e, n, u, h, t, l ?? {}), [e, n]);
|
|
34690
34695
|
_u(m.content, !1), L.useEffect(() => {
|
|
34691
34696
|
m.context.replace(t);
|
|
34692
34697
|
}, [t]), L.useEffect(() => {
|
|
@@ -34707,13 +34712,13 @@ const IA = ({
|
|
|
34707
34712
|
}, children: /* @__PURE__ */ r.jsx(Fi.Provider, { value: {
|
|
34708
34713
|
inEditMode: !1
|
|
34709
34714
|
}, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx($t.Provider, { value: x, children: /* @__PURE__ */ r.jsx(Es, { configure: f, children: m.content.views.visibleViews.map((j) => /* @__PURE__ */ r.jsx(Ca, { view: j }, j.id)) }) }) }) }) }) }) }) }) }) }) });
|
|
34710
|
-
},
|
|
34715
|
+
}, I2 = I(zA);
|
|
34711
34716
|
$.extend(wp);
|
|
34712
34717
|
$.extend(Sp);
|
|
34713
34718
|
$.extend(kp);
|
|
34714
34719
|
$.extend(Cp);
|
|
34715
|
-
$.extend(zp);
|
|
34716
34720
|
$.extend(Ip);
|
|
34721
|
+
$.extend(zp);
|
|
34717
34722
|
$.extend(Tp);
|
|
34718
34723
|
$.extend(Dp);
|
|
34719
34724
|
$.extend(Mp);
|
|
@@ -34745,7 +34750,7 @@ $.tz.setDefault("UTC");
|
|
|
34745
34750
|
$.updateLocale("en", {
|
|
34746
34751
|
weekStart: 1
|
|
34747
34752
|
});
|
|
34748
|
-
const
|
|
34753
|
+
const z2 = () => Promise.resolve().then(() => ng).then(({
|
|
34749
34754
|
version: t
|
|
34750
34755
|
}) => (console.log(`[@devtable/dashboard] version: ${t}`), t));
|
|
34751
34756
|
export {
|
|
@@ -34813,7 +34818,7 @@ export {
|
|
|
34813
34818
|
vT as QueryMeta,
|
|
34814
34819
|
qD as QueryModel,
|
|
34815
34820
|
ru as QueryRenderModel,
|
|
34816
|
-
|
|
34821
|
+
I2 as ReadOnlyDashboard,
|
|
34817
34822
|
ST as SQLSnippetMeta,
|
|
34818
34823
|
YT as SQLSnippetRenderModel,
|
|
34819
34824
|
BD as SQLSnippetsModel,
|
|
@@ -34836,10 +34841,10 @@ export {
|
|
|
34836
34841
|
kA as createContentRenderModel,
|
|
34837
34842
|
Qd as createContextMeta,
|
|
34838
34843
|
aM as createDashboardModel,
|
|
34839
|
-
|
|
34844
|
+
IA as createDashboardRenderModel,
|
|
34840
34845
|
XT as createDraft,
|
|
34841
34846
|
kT as createFilterCheckboxConfig,
|
|
34842
|
-
|
|
34847
|
+
IT as createFilterDateRangeConfig,
|
|
34843
34848
|
TT as createFilterMultiSelectConfig,
|
|
34844
34849
|
DT as createFilterSelectConfig,
|
|
34845
34850
|
Od as createFilterTextInputConfig,
|
|
@@ -34856,7 +34861,7 @@ export {
|
|
|
34856
34861
|
KT as getInitialSQLSnippetsRenderModel,
|
|
34857
34862
|
NT as getInitialViewsRenderModel,
|
|
34858
34863
|
GT as getNewPanel,
|
|
34859
|
-
|
|
34864
|
+
z2 as getVersion,
|
|
34860
34865
|
j2 as initialDashboardContent,
|
|
34861
34866
|
uc as useDashboardContext,
|
|
34862
34867
|
lg as useDashboardThemeContext,
|