@devtable/dashboard 13.16.0 → 13.17.1
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/views/index.d.ts +2196 -37
- package/dist/dashboard-editor/model/views/view.d.ts +83 -2
- package/dist/dashboard-render/dashboard-render.d.ts +4 -2
- package/dist/dashboard.es.js +509 -480
- package/dist/dashboard.umd.js +21 -21
- package/dist/model/meta-model/dashboard/content/view/widgets/tabs.d.ts +4 -0
- package/dist/model/render-model/dashboard/content/views/view.d.ts +84 -3
- package/dist/model/render-model/dashboard/content/views/views.d.ts +2226 -309
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -2,10 +2,10 @@ var xh = Object.defineProperty;
|
|
|
2
2
|
var gh = (t, e, n) => e in t ? xh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var N = (t, e, n) => (gh(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
4
|
import L, { forwardRef as re, useState as H, useEffect as B, useCallback as Ne, useMemo as C, createElement as gs, useContext as Kt, useRef as fs, createContext as ol, memo as fh } 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 T, HoverCard as Te, Group as b, Select as O, Stack as S, Overlay as Zn, Modal as Se, Checkbox as ee, Divider as E, NumberInput as oe, Switch as qe, Table as Pe, ActionIcon as X, MultiSelect as Gn, Paper as bh, Code as so, Tabs as _, LoadingOverlay as In, Alert as vr, ColorSwatch as di, createStyles as jr, Popover as Bn, Tooltip as me, CloseButton as wr, Center as an, Collapse as kr, useMantineTheme as ll, CheckIcon as yh, MANTINE_SIZES as _h, SimpleGrid as vn, NativeSelect as cl, SegmentedControl as vh, Anchor as rs, Menu as J, UnstyledButton as dl, Badge as rn, ColorInput as Qn, Textarea as ul, Mark as hl, Slider as jh, Flex as Jt, Affix as wh, Header as kh, List as lt, FileInput as Sh, ThemeIcon as Ys, Navbar as Gt, JsonInput as ml, Pagination as pl, Drawer as Ch, Accordion as qr, Radio as io, Skeleton as ao, NavLink as ui, AppShell as xl } from "@mantine/core";
|
|
6
6
|
import { useModals as Pt, ModalsProvider as gl } from "@mantine/modals";
|
|
7
|
-
import { useBoolean as
|
|
8
|
-
import { toJS as Xt, observable as bl, runInAction as ur, reaction as
|
|
7
|
+
import { useBoolean as rt, useCreation as kt, useAsyncEffect as Sr, useRequest as kn, useLatest as oo, usePrevious as zh, useWhyDidYouUpdate as fl } from "ahooks";
|
|
8
|
+
import { toJS as Xt, observable as bl, runInAction as ur, reaction as dt, makeAutoObservable as Cr } from "mobx";
|
|
9
9
|
import { observer as z } from "mobx-react-lite";
|
|
10
10
|
import { faker as Ih } from "@faker-js/faker";
|
|
11
11
|
import * as Th from "crypto-js";
|
|
@@ -62,7 +62,7 @@ import { useVirtual as jp } from "react-virtual";
|
|
|
62
62
|
import wp, { Option as kp } from "rc-select";
|
|
63
63
|
import Sp, { SHOW_PARENT as Cp } from "rc-tree-select";
|
|
64
64
|
import { WidthProvider as nc, Responsive as rc } from "react-grid-layout";
|
|
65
|
-
import { types as p, cast as At, getRoot as Ge, getParent as Re, addDisposer as
|
|
65
|
+
import { types as p, cast as At, getRoot as Ge, getParent as Re, addDisposer as wt, isAlive as mo, flow as qn, toGenerator as gn, clone as zp, getSnapshot as Lt, applySnapshot as Qe, addMiddleware as Ip, getType as Tp, detach as pi, castToSnapshot as sc } from "mobx-state-tree";
|
|
66
66
|
import { arrayToTree as Dp } from "performant-array-to-tree";
|
|
67
67
|
import { saveAs as ws } from "file-saver";
|
|
68
68
|
import ic from "dom-to-image-more";
|
|
@@ -104,7 +104,7 @@ import dx from "dayjs/plugin/weekYear";
|
|
|
104
104
|
import { createInstance as ux } from "i18next";
|
|
105
105
|
import hx from "i18next-browser-languagedetector";
|
|
106
106
|
import "intl-pluralrules";
|
|
107
|
-
import mx, { Position as
|
|
107
|
+
import mx, { Position as jt, Handle as po, MiniMap as px, Controls as xx, Background as gx } from "reactflow";
|
|
108
108
|
var xi = { exports: {} }, or = {};
|
|
109
109
|
/**
|
|
110
110
|
* @license React
|
|
@@ -147,7 +147,7 @@ var go;
|
|
|
147
147
|
function bx() {
|
|
148
148
|
return go || (go = 1, process.env.NODE_ENV !== "production" && function() {
|
|
149
149
|
var t = L, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), f = Symbol.iterator, v = "@@iterator";
|
|
150
|
-
function
|
|
150
|
+
function I(j) {
|
|
151
151
|
if (j === null || typeof j != "object")
|
|
152
152
|
return null;
|
|
153
153
|
var A = f && j[f] || j[v];
|
|
@@ -190,7 +190,7 @@ function bx() {
|
|
|
190
190
|
function Ar(j) {
|
|
191
191
|
return j.displayName || "Context";
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function at(j) {
|
|
194
194
|
if (j == null)
|
|
195
195
|
return null;
|
|
196
196
|
if (typeof j.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof j == "function")
|
|
@@ -223,11 +223,11 @@ function bx() {
|
|
|
223
223
|
return Ee(j, j.render, "ForwardRef");
|
|
224
224
|
case h:
|
|
225
225
|
var U = j.displayName || null;
|
|
226
|
-
return U !== null ? U :
|
|
226
|
+
return U !== null ? U : at(j.type) || "Memo";
|
|
227
227
|
case m: {
|
|
228
228
|
var de = j, fe = de._payload, ce = de._init;
|
|
229
229
|
try {
|
|
230
|
-
return
|
|
230
|
+
return at(ce(fe));
|
|
231
231
|
} catch {
|
|
232
232
|
return null;
|
|
233
233
|
}
|
|
@@ -499,8 +499,8 @@ function bx() {
|
|
|
499
499
|
}
|
|
500
500
|
function nh(j, A) {
|
|
501
501
|
if (typeof j.ref == "string" && ar.current && A && ar.current.stateNode !== A) {
|
|
502
|
-
var q =
|
|
503
|
-
Gs[q] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
502
|
+
var q = at(ar.current.type);
|
|
503
|
+
Gs[q] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', at(ar.current.type), j.ref), Gs[q] = !0);
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
function rh(j, A) {
|
|
@@ -588,7 +588,7 @@ function bx() {
|
|
|
588
588
|
function Xa() {
|
|
589
589
|
{
|
|
590
590
|
if (Qs.current) {
|
|
591
|
-
var j =
|
|
591
|
+
var j = at(Qs.current.type);
|
|
592
592
|
if (j)
|
|
593
593
|
return `
|
|
594
594
|
|
|
@@ -631,7 +631,7 @@ Check the top-level render call using <` + q + ">.");
|
|
|
631
631
|
return;
|
|
632
632
|
Za[q] = !0;
|
|
633
633
|
var U = "";
|
|
634
|
-
j && j._owner && j._owner !== Qs.current && (U = " It was passed a child from " +
|
|
634
|
+
j && j._owner && j._owner !== Qs.current && (U = " It was passed a child from " + at(j._owner.type) + "."), An(j), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', q, U), An(null);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
function to(j, A) {
|
|
@@ -646,7 +646,7 @@ Check the top-level render call using <` + q + ">.");
|
|
|
646
646
|
else if (Us(j))
|
|
647
647
|
j._store && (j._store.validated = !0);
|
|
648
648
|
else if (j) {
|
|
649
|
-
var de =
|
|
649
|
+
var de = I(j);
|
|
650
650
|
if (typeof de == "function" && de !== j.entries)
|
|
651
651
|
for (var fe = de.call(j), ce; !(ce = fe.next()).done; )
|
|
652
652
|
Us(ce.value) && eo(ce.value, A);
|
|
@@ -668,11 +668,11 @@ Check the top-level render call using <` + q + ">.");
|
|
|
668
668
|
else
|
|
669
669
|
return;
|
|
670
670
|
if (q) {
|
|
671
|
-
var U =
|
|
671
|
+
var U = at(A);
|
|
672
672
|
Yu(q, j.props, "prop", U, j);
|
|
673
673
|
} else if (A.PropTypes !== void 0 && !Hs) {
|
|
674
674
|
Hs = !0;
|
|
675
|
-
var de =
|
|
675
|
+
var de = at(A);
|
|
676
676
|
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", de || "Unknown");
|
|
677
677
|
}
|
|
678
678
|
typeof A.getDefaultProps == "function" && !A.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -699,7 +699,7 @@ Check the top-level render call using <` + q + ">.");
|
|
|
699
699
|
var Xe = oh(de);
|
|
700
700
|
Xe ? se += Xe : se += Xa();
|
|
701
701
|
var Ie;
|
|
702
|
-
j === null ? Ie = "null" : Ws(j) ? Ie = "array" : j !== void 0 && j.$$typeof === e ? (Ie = "<" + (
|
|
702
|
+
j === null ? Ie = "null" : Ws(j) ? Ie = "array" : j !== void 0 && j.$$typeof === e ? (Ie = "<" + (at(j.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof j, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, se);
|
|
703
703
|
}
|
|
704
704
|
var De = ah(j, A, q, de, fe);
|
|
705
705
|
if (De == null)
|
|
@@ -1376,7 +1376,7 @@ class He extends L.Component {
|
|
|
1376
1376
|
};
|
|
1377
1377
|
return /* @__PURE__ */ r.jsxs(M, { children: [
|
|
1378
1378
|
/* @__PURE__ */ r.jsx(w, { size: "xs", children: (e = this.state.error) == null ? void 0 : e.message }),
|
|
1379
|
-
/* @__PURE__ */ r.jsx(
|
|
1379
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", mx: "auto", compact: !0, sx: {
|
|
1380
1380
|
display: "block"
|
|
1381
1381
|
}, onClick: n, children: "Retry" })
|
|
1382
1382
|
] });
|
|
@@ -1553,7 +1553,7 @@ class hc {
|
|
|
1553
1553
|
return Promise.resolve(this.getItem(e));
|
|
1554
1554
|
}
|
|
1555
1555
|
watchItem(e, n, s) {
|
|
1556
|
-
return
|
|
1556
|
+
return dt(() => this.getValueFromRoot(e), (i, a) => {
|
|
1557
1557
|
n(i, a);
|
|
1558
1558
|
}, {
|
|
1559
1559
|
requiresObservable: !0,
|
|
@@ -1743,7 +1743,7 @@ class Vi {
|
|
|
1743
1743
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
|
-
const xc = "13.
|
|
1746
|
+
const xc = "13.17.1", hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
version: xc
|
|
1749
1749
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1865,7 +1865,7 @@ class ze extends xg {
|
|
|
1865
1865
|
const Q = (t, e) => {
|
|
1866
1866
|
const [n, {
|
|
1867
1867
|
setFalse: s
|
|
1868
|
-
}] =
|
|
1868
|
+
}] = rt(!0), [i, a] = H();
|
|
1869
1869
|
B(() => (t.getItem(e).then((l) => {
|
|
1870
1870
|
a(l), s();
|
|
1871
1871
|
}), t.watchItem(e, (l) => {
|
|
@@ -1887,7 +1887,7 @@ const Q = (t, e) => {
|
|
|
1887
1887
|
}, zt = (t) => Math.max(0, t - et.left - et.right), It = (t) => Math.max(0, t - et.top - et.bottom), Mr = (t, e) => ({
|
|
1888
1888
|
width: zt(t),
|
|
1889
1889
|
height: It(e)
|
|
1890
|
-
}),
|
|
1890
|
+
}), st = ({
|
|
1891
1891
|
width: t,
|
|
1892
1892
|
height: e,
|
|
1893
1893
|
children: n
|
|
@@ -1938,7 +1938,7 @@ function gg({
|
|
|
1938
1938
|
z: F(l)
|
|
1939
1939
|
}), [a, o, l]), {
|
|
1940
1940
|
min: v,
|
|
1941
|
-
max:
|
|
1941
|
+
max: I
|
|
1942
1942
|
} = C(() => {
|
|
1943
1943
|
const P = Ah(h, (Y) => Y[f.columnKey]), V = $h(h, (Y) => Y[f.columnKey]);
|
|
1944
1944
|
return {
|
|
@@ -1952,7 +1952,7 @@ function gg({
|
|
|
1952
1952
|
show: !0,
|
|
1953
1953
|
dimension: 2,
|
|
1954
1954
|
min: v,
|
|
1955
|
-
max:
|
|
1955
|
+
max: I,
|
|
1956
1956
|
inRange: {
|
|
1957
1957
|
color: ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"]
|
|
1958
1958
|
}
|
|
@@ -1981,7 +1981,7 @@ function gg({
|
|
|
1981
1981
|
data: h.map((P) => [P[m.columnKey], P[x.columnKey], P[f.columnKey]])
|
|
1982
1982
|
}]
|
|
1983
1983
|
};
|
|
1984
|
-
return e ? /* @__PURE__ */ r.jsx(
|
|
1984
|
+
return e ? /* @__PURE__ */ r.jsx(st, { width: s, height: i, children: /* @__PURE__ */ r.jsx(Ze, { echarts: Je, option: R, style: Mr(s, i), notMerge: !0, theme: "merico-light" }) }) : null;
|
|
1985
1985
|
}
|
|
1986
1986
|
const gc = L.createContext(null), fc = gc.Provider;
|
|
1987
1987
|
function bc() {
|
|
@@ -2140,7 +2140,7 @@ function wg({
|
|
|
2140
2140
|
] }),
|
|
2141
2141
|
/* @__PURE__ */ r.jsx(b, { position: "center", mt: "xl", grow: !0, sx: {
|
|
2142
2142
|
width: "60%"
|
|
2143
|
-
}, mx: "auto", children: /* @__PURE__ */ r.jsxs(
|
|
2143
|
+
}, mx: "auto", children: /* @__PURE__ */ r.jsxs(T, { color: "blue", type: "submit", children: [
|
|
2144
2144
|
/* @__PURE__ */ r.jsx(Yt, { size: 20 }),
|
|
2145
2145
|
/* @__PURE__ */ r.jsx(w, { ml: "md", children: "Save" })
|
|
2146
2146
|
] }) })
|
|
@@ -2239,7 +2239,7 @@ const Tg = {
|
|
|
2239
2239
|
} })
|
|
2240
2240
|
] });
|
|
2241
2241
|
};
|
|
2242
|
-
function
|
|
2242
|
+
function tt({
|
|
2243
2243
|
enabled: t,
|
|
2244
2244
|
func_content: e
|
|
2245
2245
|
}) {
|
|
@@ -2270,47 +2270,47 @@ const Tt = re(({
|
|
|
2270
2270
|
} = y(), [a, {
|
|
2271
2271
|
setTrue: o,
|
|
2272
2272
|
setFalse: l
|
|
2273
|
-
}] =
|
|
2273
|
+
}] = rt(), [c, d] = H(t);
|
|
2274
2274
|
B(() => {
|
|
2275
2275
|
d(t);
|
|
2276
2276
|
}, [t]);
|
|
2277
|
-
const u = (
|
|
2277
|
+
const u = (I) => {
|
|
2278
2278
|
d({
|
|
2279
2279
|
...c,
|
|
2280
|
-
enabled:
|
|
2280
|
+
enabled: I
|
|
2281
2281
|
});
|
|
2282
2282
|
}, h = () => {
|
|
2283
2283
|
l();
|
|
2284
2284
|
const {
|
|
2285
|
-
enabled:
|
|
2285
|
+
enabled: I,
|
|
2286
2286
|
func_content: R
|
|
2287
2287
|
} = c, P = {
|
|
2288
|
-
enabled:
|
|
2288
|
+
enabled: I,
|
|
2289
2289
|
func_content: R
|
|
2290
2290
|
};
|
|
2291
2291
|
d(P), e(P);
|
|
2292
2292
|
}, m = () => {
|
|
2293
2293
|
l(), d(t);
|
|
2294
|
-
}, x = (
|
|
2294
|
+
}, x = (I) => {
|
|
2295
2295
|
d((R) => ({
|
|
2296
2296
|
...R,
|
|
2297
|
-
func_content:
|
|
2297
|
+
func_content: I
|
|
2298
2298
|
}));
|
|
2299
2299
|
}, f = () => {
|
|
2300
2300
|
x(Ue().func_content);
|
|
2301
2301
|
}, v = n ?? i("chart.axis.customize_label");
|
|
2302
2302
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2303
|
-
/* @__PURE__ */ r.jsx(
|
|
2303
|
+
/* @__PURE__ */ r.jsx(T, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
2304
2304
|
flexGrow: 0
|
|
2305
2305
|
}, children: v }),
|
|
2306
2306
|
/* @__PURE__ */ r.jsx(Se, { size: 800, title: v, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(S, { children: [
|
|
2307
|
-
/* @__PURE__ */ r.jsx(ee, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (
|
|
2307
|
+
/* @__PURE__ */ r.jsx(ee, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (I) => u(I.currentTarget.checked) }),
|
|
2308
2308
|
/* @__PURE__ */ r.jsx(Dg, { value: c.func_content, onChange: x, disabled: !c.enabled }),
|
|
2309
2309
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
2310
|
-
/* @__PURE__ */ r.jsx(
|
|
2310
|
+
/* @__PURE__ */ r.jsx(T, { onClick: f, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: i("common.actions.reset_to_default") }),
|
|
2311
2311
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
2312
|
-
/* @__PURE__ */ r.jsx(
|
|
2313
|
-
/* @__PURE__ */ r.jsx(
|
|
2312
|
+
/* @__PURE__ */ r.jsx(T, { onClick: m, variant: "subtle", children: i("common.actions.cancel") }),
|
|
2313
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: h, children: i("common.actions.save") })
|
|
2314
2314
|
] })
|
|
2315
2315
|
] })
|
|
2316
2316
|
] }) })
|
|
@@ -2451,7 +2451,7 @@ const as = re(({
|
|
|
2451
2451
|
/* @__PURE__ */ r.jsx(as, { sectionTitle: s("chart.axis.overflow.section_title.in_tooltip"), value: t.in_tooltip, onChange: a })
|
|
2452
2452
|
] });
|
|
2453
2453
|
});
|
|
2454
|
-
function
|
|
2454
|
+
function nt() {
|
|
2455
2455
|
return {
|
|
2456
2456
|
on_axis: {
|
|
2457
2457
|
width: 80,
|
|
@@ -2465,7 +2465,7 @@ function rt() {
|
|
|
2465
2465
|
}
|
|
2466
2466
|
};
|
|
2467
2467
|
}
|
|
2468
|
-
function
|
|
2468
|
+
function bt({
|
|
2469
2469
|
overflow: t,
|
|
2470
2470
|
width: e
|
|
2471
2471
|
}) {
|
|
@@ -2486,7 +2486,7 @@ function yt({
|
|
|
2486
2486
|
text-overflow: ${i};
|
|
2487
2487
|
`;
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2489
|
+
function yt(t) {
|
|
2490
2490
|
return {
|
|
2491
2491
|
width: t.width,
|
|
2492
2492
|
overflow: t.overflow,
|
|
@@ -2500,7 +2500,7 @@ const Bi = {
|
|
|
2500
2500
|
axisLabel: {
|
|
2501
2501
|
rotate: 0,
|
|
2502
2502
|
formatter: Ue(),
|
|
2503
|
-
overflow:
|
|
2503
|
+
overflow: nt()
|
|
2504
2504
|
}
|
|
2505
2505
|
},
|
|
2506
2506
|
y_axis: {
|
|
@@ -3124,7 +3124,7 @@ const df = z(({
|
|
|
3124
3124
|
const {
|
|
3125
3125
|
t: n
|
|
3126
3126
|
} = y(), s = (i = t.operationSchema) == null ? void 0 : i.displayName;
|
|
3127
|
-
return /* @__PURE__ */ r.jsx(
|
|
3127
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "outline", onClick: e, children: n(s) });
|
|
3128
3128
|
}), uf = z(({
|
|
3129
3129
|
model: t
|
|
3130
3130
|
}) => {
|
|
@@ -3154,7 +3154,7 @@ const df = z(({
|
|
|
3154
3154
|
} = y(), [n, {
|
|
3155
3155
|
setTrue: s,
|
|
3156
3156
|
setFalse: i
|
|
3157
|
-
}] =
|
|
3157
|
+
}] = rt(!1), {
|
|
3158
3158
|
operationManager: a,
|
|
3159
3159
|
operationId: o,
|
|
3160
3160
|
instance: l,
|
|
@@ -3216,7 +3216,7 @@ const ff = z(({
|
|
|
3216
3216
|
instance: t.instance,
|
|
3217
3217
|
sampleData: t.sampleData
|
|
3218
3218
|
};
|
|
3219
|
-
return /* @__PURE__ */ r.jsx(
|
|
3219
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "outline", onClick: e, children: gs(n, s) });
|
|
3220
3220
|
}), bf = z(({
|
|
3221
3221
|
model: t
|
|
3222
3222
|
}) => {
|
|
@@ -3246,7 +3246,7 @@ const ff = z(({
|
|
|
3246
3246
|
} = y(), [n, {
|
|
3247
3247
|
setTrue: s,
|
|
3248
3248
|
setFalse: i
|
|
3249
|
-
}] =
|
|
3249
|
+
}] = rt(!1), a = t.model;
|
|
3250
3250
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3251
3251
|
/* @__PURE__ */ r.jsx(Se, { opened: n, onClose: i, title: e("interactions.trigger.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(S, { children: [
|
|
3252
3252
|
/* @__PURE__ */ r.jsx(bf, { model: a }),
|
|
@@ -3315,7 +3315,7 @@ const jf = z(({
|
|
|
3315
3315
|
/* @__PURE__ */ r.jsx(In, { visible: m }),
|
|
3316
3316
|
h === 0 && /* @__PURE__ */ r.jsx(vr, { icon: /* @__PURE__ */ r.jsx(fm, { size: 16 }), title: e("interactions.unavailable"), color: "gray", children: e("interactions.unavailable_reason") }),
|
|
3317
3317
|
c.map((x) => /* @__PURE__ */ r.jsx(jf, { onRemove: u, instance: a, sampleData: o, variables: l, item: x, manager: t.interactionManager }, x.id)),
|
|
3318
|
-
/* @__PURE__ */ r.jsx(
|
|
3318
|
+
/* @__PURE__ */ r.jsx(T, { style: {
|
|
3319
3319
|
width: "fit-content"
|
|
3320
3320
|
}, onClick: () => d(), disabled: h === 0, children: e("interactions.add") })
|
|
3321
3321
|
] });
|
|
@@ -3555,7 +3555,7 @@ function Pf(t, e, n) {
|
|
|
3555
3555
|
left: o[1].offset,
|
|
3556
3556
|
center: (o[1].offset + o[1].width) / 2,
|
|
3557
3557
|
right: o[1].width
|
|
3558
|
-
},
|
|
3558
|
+
}, I = {
|
|
3559
3559
|
type: "group",
|
|
3560
3560
|
children: []
|
|
3561
3561
|
}, R = [
|
|
@@ -3598,12 +3598,12 @@ function Pf(t, e, n) {
|
|
|
3598
3598
|
lineWidth: a
|
|
3599
3599
|
};
|
|
3600
3600
|
return R.forEach((V) => {
|
|
3601
|
-
|
|
3601
|
+
I.children.push({
|
|
3602
3602
|
type: "line",
|
|
3603
3603
|
shape: V,
|
|
3604
3604
|
style: P
|
|
3605
3605
|
});
|
|
3606
|
-
}),
|
|
3606
|
+
}), I.children.push({
|
|
3607
3607
|
type: "rect",
|
|
3608
3608
|
shape: {
|
|
3609
3609
|
x: f.q1[0] + v.left,
|
|
@@ -3616,7 +3616,7 @@ function Pf(t, e, n) {
|
|
|
3616
3616
|
stroke: i,
|
|
3617
3617
|
lineWidth: a
|
|
3618
3618
|
}
|
|
3619
|
-
}),
|
|
3619
|
+
}), I;
|
|
3620
3620
|
}
|
|
3621
3621
|
function Of(t, e) {
|
|
3622
3622
|
const {
|
|
@@ -3747,7 +3747,7 @@ const Wf = (t, e) => {
|
|
|
3747
3747
|
</tr>`);
|
|
3748
3748
|
return `
|
|
3749
3749
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
3750
|
-
<div style="${
|
|
3750
|
+
<div style="${bt(t.x_axis.axisLabel.overflow.in_tooltip)}">${e.name}</div>
|
|
3751
3751
|
</div>
|
|
3752
3752
|
<table style="width: auto">
|
|
3753
3753
|
<tbody>
|
|
@@ -3772,7 +3772,7 @@ function Ac(t, e) {
|
|
|
3772
3772
|
});
|
|
3773
3773
|
}
|
|
3774
3774
|
function Qf(t, e) {
|
|
3775
|
-
const n =
|
|
3775
|
+
const n = bt(t.x_axis.axisLabel.overflow.in_tooltip), s = [`<tr>
|
|
3776
3776
|
<th style="text-align: right; padding: 0 1em;">${t.y_axis.name}</th>
|
|
3777
3777
|
<td style="text-align: left; padding: 0 1em;">${e[1]}</td>
|
|
3778
3778
|
</tr>
|
|
@@ -3789,7 +3789,7 @@ function Qf(t, e) {
|
|
|
3789
3789
|
`;
|
|
3790
3790
|
}
|
|
3791
3791
|
function Hf(t, e) {
|
|
3792
|
-
const n =
|
|
3792
|
+
const n = bt(t.x_axis.axisLabel.overflow.in_tooltip), s = [`<tr>
|
|
3793
3793
|
<th style="text-align: right; padding: 0 1em;">${t.y_axis.name}</th>
|
|
3794
3794
|
<td style="text-align: left; padding: 0 1em;">${e[1]}</td>
|
|
3795
3795
|
</tr>
|
|
@@ -3881,7 +3881,7 @@ function Xf({
|
|
|
3881
3881
|
x_axis: i,
|
|
3882
3882
|
y_axis: a,
|
|
3883
3883
|
reference_lines: o
|
|
3884
|
-
} = t, l = Rf(t, e), c =
|
|
3884
|
+
} = t, l = Rf(t, e), c = yt(i.axisLabel.overflow.on_axis), d = Jf(s), u = Bf(t, l).map((h) => ({
|
|
3885
3885
|
...h,
|
|
3886
3886
|
name: k.get(d, h.name, h.name)
|
|
3887
3887
|
}));
|
|
@@ -3908,7 +3908,7 @@ function Xf({
|
|
|
3908
3908
|
axisLabel: {
|
|
3909
3909
|
...i.axisLabel,
|
|
3910
3910
|
...c,
|
|
3911
|
-
formatter:
|
|
3911
|
+
formatter: tt(i.axisLabel.formatter)
|
|
3912
3912
|
}
|
|
3913
3913
|
})],
|
|
3914
3914
|
yAxis: [pe.getYAxis({
|
|
@@ -3941,13 +3941,13 @@ function Zf({
|
|
|
3941
3941
|
vizManager: t.vizManager,
|
|
3942
3942
|
instance: e
|
|
3943
3943
|
}), u = mt(d.triggerManager, Dc.id), h = Rn(a, c.x_axis.data_key), m = Ne((v) => {
|
|
3944
|
-
const
|
|
3944
|
+
const I = k.get(h, v.name, {
|
|
3945
3945
|
error: "rowData is not found"
|
|
3946
3946
|
});
|
|
3947
3947
|
u.forEach((R) => {
|
|
3948
3948
|
d.runInteraction(R.id, {
|
|
3949
3949
|
...v,
|
|
3950
|
-
rowData:
|
|
3950
|
+
rowData: I
|
|
3951
3951
|
});
|
|
3952
3952
|
});
|
|
3953
3953
|
}, [h, u, d]), x = C(() => ({
|
|
@@ -3958,7 +3958,7 @@ function Zf({
|
|
|
3958
3958
|
variables: i,
|
|
3959
3959
|
t: n
|
|
3960
3960
|
}), [c, a, i, n]);
|
|
3961
|
-
return !s || !o || !l ? null : /* @__PURE__ */ r.jsx(
|
|
3961
|
+
return !s || !o || !l ? null : /* @__PURE__ */ r.jsx(st, { width: o, height: l, children: /* @__PURE__ */ r.jsx(Ze, { echarts: Je, option: f, style: Mr(o, l), onEvents: x, notMerge: !0, theme: "merico-light" }) });
|
|
3962
3962
|
}
|
|
3963
3963
|
function eb({
|
|
3964
3964
|
value: t,
|
|
@@ -4106,7 +4106,7 @@ class nb {
|
|
|
4106
4106
|
steps: bl
|
|
4107
4107
|
}, {
|
|
4108
4108
|
deep: !1
|
|
4109
|
-
}),
|
|
4109
|
+
}), dt(() => Xt(this.steps), () => {
|
|
4110
4110
|
this.notifyStepChange();
|
|
4111
4111
|
});
|
|
4112
4112
|
}
|
|
@@ -4148,7 +4148,7 @@ function rb(t) {
|
|
|
4148
4148
|
} = Pc(), [l, c] = H(_o(a)), [d, {
|
|
4149
4149
|
setTrue: u,
|
|
4150
4150
|
setFalse: h
|
|
4151
|
-
}] =
|
|
4151
|
+
}] = rt(!1), m = i % 2 === 1, x = m && a != null, f = !m && a != null, v = `map ${a} to color ${i}`, I = () => {
|
|
4152
4152
|
c(_o(a)), h();
|
|
4153
4153
|
}, R = () => {
|
|
4154
4154
|
h(), n == null || n(Number(l));
|
|
@@ -4171,7 +4171,7 @@ function rb(t) {
|
|
|
4171
4171
|
backgroundColor: s
|
|
4172
4172
|
} }) }),
|
|
4173
4173
|
/* @__PURE__ */ r.jsxs(Bn.Dropdown, { children: [
|
|
4174
|
-
/* @__PURE__ */ r.jsx(me, { withinPortal: !0, zIndex: 340, label: e("common.actions.close"), children: /* @__PURE__ */ r.jsx(wr, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick:
|
|
4174
|
+
/* @__PURE__ */ r.jsx(me, { withinPortal: !0, zIndex: 340, label: e("common.actions.close"), children: /* @__PURE__ */ r.jsx(wr, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: I, style: {
|
|
4175
4175
|
position: "absolute",
|
|
4176
4176
|
top: "0.5em",
|
|
4177
4177
|
right: "0.8em"
|
|
@@ -4182,8 +4182,8 @@ function rb(t) {
|
|
|
4182
4182
|
c(K);
|
|
4183
4183
|
}, error: l && Y }),
|
|
4184
4184
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
4185
|
-
/* @__PURE__ */ r.jsx(
|
|
4186
|
-
/* @__PURE__ */ r.jsx(
|
|
4185
|
+
/* @__PURE__ */ r.jsx(T, { variant: "light", color: "red", size: "xs", onClick: P, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), children: e("common.actions.delete") }),
|
|
4186
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), "data-testid": "palette-item-ok", size: "xs", onClick: R, disabled: Y, children: e("common.actions.save") })
|
|
4187
4187
|
] })
|
|
4188
4188
|
] })
|
|
4189
4189
|
] })
|
|
@@ -4216,7 +4216,7 @@ const sb = z(({
|
|
|
4216
4216
|
} = t, o = a.getColorInterpolations(), [l, c] = H(s), d = a.decodeInterpolation(l.interpolation) || o[0], [u, {
|
|
4217
4217
|
setTrue: h,
|
|
4218
4218
|
setFalse: m
|
|
4219
|
-
}] =
|
|
4219
|
+
}] = rt(), x = C(() => o.map((P) => ({
|
|
4220
4220
|
label: e(P.displayName),
|
|
4221
4221
|
value: a.encodeColor(P),
|
|
4222
4222
|
group: e(`style.color.interpolation.palette.category.${P.category}`)
|
|
@@ -4230,7 +4230,7 @@ const sb = z(({
|
|
|
4230
4230
|
const v = () => {
|
|
4231
4231
|
m(), i == null || i(Xt(l));
|
|
4232
4232
|
};
|
|
4233
|
-
function
|
|
4233
|
+
function I(P) {
|
|
4234
4234
|
c((V) => ({
|
|
4235
4235
|
...V,
|
|
4236
4236
|
steps: P
|
|
@@ -4240,13 +4240,13 @@ const sb = z(({
|
|
|
4240
4240
|
m(), c(s);
|
|
4241
4241
|
};
|
|
4242
4242
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4243
|
-
/* @__PURE__ */ r.jsx(
|
|
4243
|
+
/* @__PURE__ */ r.jsx(T, { variant: "outline", onClick: h, children: e(d == null ? void 0 : d.displayName) }),
|
|
4244
4244
|
/* @__PURE__ */ r.jsx(Se, { size: 508, title: e("style.color.interpolation.setup"), opened: u, onClose: m, zIndex: 320, children: u && /* @__PURE__ */ r.jsxs(S, { "data-testid": "color-interpolation-modal", children: [
|
|
4245
4245
|
/* @__PURE__ */ r.jsx(O, { label: e("style.color.interpolation.palette.label"), value: l.interpolation, data: x, onChange: f, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
|
|
4246
|
-
/* @__PURE__ */ r.jsx(ib, { steps: l.steps, interpolation: d, onChange:
|
|
4246
|
+
/* @__PURE__ */ r.jsx(ib, { steps: l.steps, interpolation: d, onChange: I }),
|
|
4247
4247
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
4248
|
-
/* @__PURE__ */ r.jsx(
|
|
4249
|
-
/* @__PURE__ */ r.jsx(
|
|
4248
|
+
/* @__PURE__ */ r.jsx(T, { onClick: R, variant: "subtle", children: e("common.actions.cancel") }),
|
|
4249
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: v, children: e("common.actions.save") })
|
|
4250
4250
|
] })
|
|
4251
4251
|
] }) })
|
|
4252
4252
|
] });
|
|
@@ -4348,29 +4348,29 @@ const sb = z(({
|
|
|
4348
4348
|
} = ys({
|
|
4349
4349
|
control: t,
|
|
4350
4350
|
name: n
|
|
4351
|
-
}), m = e(n), x = d.map((v,
|
|
4351
|
+
}), m = e(n), x = d.map((v, I) => ({
|
|
4352
4352
|
...v,
|
|
4353
|
-
...m[
|
|
4353
|
+
...m[I]
|
|
4354
4354
|
})), f = () => {
|
|
4355
4355
|
u(s());
|
|
4356
4356
|
};
|
|
4357
4357
|
return /* @__PURE__ */ r.jsxs(_, { defaultValue: "0", styles: db, children: [
|
|
4358
4358
|
/* @__PURE__ */ r.jsxs(_.List, { children: [
|
|
4359
|
-
x.map((v,
|
|
4359
|
+
x.map((v, I) => /* @__PURE__ */ r.jsx(_.Tab, { value: I.toString(), children: l(v, I) }, v.id)),
|
|
4360
4360
|
/* @__PURE__ */ r.jsx(_.Tab, { onClick: f, value: "add", children: /* @__PURE__ */ r.jsx(me, { label: a, children: /* @__PURE__ */ r.jsx(an, { children: /* @__PURE__ */ r.jsx(Ct, { size: 18, color: "#228be6" }) }) }) })
|
|
4361
4361
|
] }),
|
|
4362
|
-
x.map((v,
|
|
4362
|
+
x.map((v, I) => /* @__PURE__ */ r.jsx(_.Panel, { value: I.toString(), children: /* @__PURE__ */ r.jsxs(S, { children: [
|
|
4363
4363
|
i({
|
|
4364
4364
|
field: v,
|
|
4365
|
-
index:
|
|
4365
|
+
index: I
|
|
4366
4366
|
}),
|
|
4367
4367
|
/* @__PURE__ */ r.jsx(E, { mb: -10, mt: 10, variant: "dashed" }),
|
|
4368
|
-
/* @__PURE__ */ r.jsx(
|
|
4368
|
+
/* @__PURE__ */ r.jsx(T, { leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), color: "red", variant: "light", onClick: () => h(I), sx: {
|
|
4369
4369
|
top: 15,
|
|
4370
4370
|
right: 5
|
|
4371
4371
|
}, disabled: c == null ? void 0 : c({
|
|
4372
4372
|
field: v,
|
|
4373
|
-
index:
|
|
4373
|
+
index: I,
|
|
4374
4374
|
fields: x
|
|
4375
4375
|
}), children: o })
|
|
4376
4376
|
] }) }, v.id))
|
|
@@ -4634,7 +4634,7 @@ function yb({
|
|
|
4634
4634
|
toggle: s
|
|
4635
4635
|
}] = on(!1);
|
|
4636
4636
|
return /* @__PURE__ */ r.jsxs(M, { children: [
|
|
4637
|
-
/* @__PURE__ */ r.jsx(
|
|
4637
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", w: "100%", compact: !0, onClick: s, leftIcon: n ? /* @__PURE__ */ r.jsx(km, { size: 14 }) : /* @__PURE__ */ r.jsx(Sm, { size: 14 }), children: e(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
|
|
4638
4638
|
/* @__PURE__ */ r.jsx(kr, { in: n, children: n && /* @__PURE__ */ r.jsxs(Pe, { highlightOnHover: !0, sx: {
|
|
4639
4639
|
tableLayout: "fixed"
|
|
4640
4640
|
}, children: [
|
|
@@ -4719,7 +4719,7 @@ function _b({
|
|
|
4719
4719
|
/* @__PURE__ */ r.jsx(yb, { format: t })
|
|
4720
4720
|
] });
|
|
4721
4721
|
}
|
|
4722
|
-
const
|
|
4722
|
+
const _t = L.forwardRef(_b), vb = ({
|
|
4723
4723
|
control: t,
|
|
4724
4724
|
watch: e
|
|
4725
4725
|
}) => {
|
|
@@ -4743,7 +4743,7 @@ const vt = L.forwardRef(_b), vb = ({
|
|
|
4743
4743
|
/* @__PURE__ */ r.jsx(E, { mt: 10, mb: -15, variant: "dashed", label: n("chart.axis.section_title.label_format"), labelPosition: "center" }),
|
|
4744
4744
|
/* @__PURE__ */ r.jsx(g, { name: "y_axis.label_formatter", control: t, render: ({
|
|
4745
4745
|
field: s
|
|
4746
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
4746
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...s }) })
|
|
4747
4747
|
] })
|
|
4748
4748
|
] });
|
|
4749
4749
|
};
|
|
@@ -5116,7 +5116,7 @@ const Hi = {
|
|
|
5116
5116
|
height: m,
|
|
5117
5117
|
justifyContent: $b[c],
|
|
5118
5118
|
alignItems: Pb[d]
|
|
5119
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
5119
|
+
}, children: /* @__PURE__ */ r.jsx(T, { ...u, onClick: f, children: Di(l)(x) }) });
|
|
5120
5120
|
}), Fb = ({
|
|
5121
5121
|
value: t,
|
|
5122
5122
|
onChange: e,
|
|
@@ -5352,7 +5352,7 @@ const Yi = {
|
|
|
5352
5352
|
axisLabel: {
|
|
5353
5353
|
rotate: 0,
|
|
5354
5354
|
formatter: Ue(),
|
|
5355
|
-
overflow:
|
|
5355
|
+
overflow: nt()
|
|
5356
5356
|
}
|
|
5357
5357
|
},
|
|
5358
5358
|
tooltip: {
|
|
@@ -5644,7 +5644,7 @@ function cy({
|
|
|
5644
5644
|
symbolSize: h,
|
|
5645
5645
|
hide_in_legend: m,
|
|
5646
5646
|
...x
|
|
5647
|
-
}, f, v,
|
|
5647
|
+
}, f, v, I, R) {
|
|
5648
5648
|
const P = e.type !== "category", V = {
|
|
5649
5649
|
label: {
|
|
5650
5650
|
show: !!i,
|
|
@@ -5656,7 +5656,7 @@ function cy({
|
|
|
5656
5656
|
yAxisIndex: s,
|
|
5657
5657
|
stack: c,
|
|
5658
5658
|
color: d,
|
|
5659
|
-
symbolSize: ly(h, v, t,
|
|
5659
|
+
symbolSize: ly(h, v, t, I),
|
|
5660
5660
|
hide_in_legend: m,
|
|
5661
5661
|
labelLayout: {
|
|
5662
5662
|
hideOverlap: !0
|
|
@@ -5705,7 +5705,7 @@ function uy(t, e) {
|
|
|
5705
5705
|
axisValue: s,
|
|
5706
5706
|
axisIndex: i
|
|
5707
5707
|
} = n;
|
|
5708
|
-
return
|
|
5708
|
+
return tt(e.x_axis.axisLabel.formatter)(s, i);
|
|
5709
5709
|
}
|
|
5710
5710
|
const hy = (t) => ae(t, {
|
|
5711
5711
|
output: "number",
|
|
@@ -5752,7 +5752,7 @@ function my(t, e, n, s) {
|
|
|
5752
5752
|
</tr>`;
|
|
5753
5753
|
});
|
|
5754
5754
|
l.push(...c);
|
|
5755
|
-
const d =
|
|
5755
|
+
const d = bt(t.x_axis.axisLabel.overflow.in_tooltip), u = uy(o, t);
|
|
5756
5756
|
return `
|
|
5757
5757
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
5758
5758
|
<div style="${d}">${u}</div>
|
|
@@ -5795,7 +5795,7 @@ function xy(t, e) {
|
|
|
5795
5795
|
const {
|
|
5796
5796
|
overflow: n,
|
|
5797
5797
|
...s
|
|
5798
|
-
} = t.x_axis.axisLabel, i =
|
|
5798
|
+
} = t.x_axis.axisLabel, i = yt(n.on_axis), a = e.length === 0;
|
|
5799
5799
|
return [pe.getXAxis({
|
|
5800
5800
|
data: e,
|
|
5801
5801
|
name: t.x_axis_name ?? "",
|
|
@@ -5805,7 +5805,7 @@ function xy(t, e) {
|
|
|
5805
5805
|
axisLabel: {
|
|
5806
5806
|
...s,
|
|
5807
5807
|
...i,
|
|
5808
|
-
formatter:
|
|
5808
|
+
formatter: tt(s.formatter)
|
|
5809
5809
|
}
|
|
5810
5810
|
})];
|
|
5811
5811
|
}
|
|
@@ -5962,22 +5962,22 @@ function jy({
|
|
|
5962
5962
|
} = xr(), x = L.useMemo(() => {
|
|
5963
5963
|
const {
|
|
5964
5964
|
stats: {
|
|
5965
|
-
templates:
|
|
5965
|
+
templates: I
|
|
5966
5966
|
}
|
|
5967
5967
|
} = a;
|
|
5968
5968
|
return {
|
|
5969
|
-
top: br(
|
|
5970
|
-
bottom: br(
|
|
5969
|
+
top: br(I.top, i, o),
|
|
5970
|
+
bottom: br(I.bottom, i, o)
|
|
5971
5971
|
};
|
|
5972
5972
|
}, [a, o]), f = Math.max(0, It(c) - u - m), v = zt(l);
|
|
5973
|
-
return /* @__PURE__ */ r.jsxs(
|
|
5973
|
+
return /* @__PURE__ */ r.jsxs(st, { width: l, height: c, children: [
|
|
5974
5974
|
/* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
5975
5975
|
display: jo(a.stats.templates.top) ? "block" : "none"
|
|
5976
|
-
}, children: Object.values(x.top).map((
|
|
5976
|
+
}, children: Object.values(x.top).map((I, R) => /* @__PURE__ */ r.jsx(L.Fragment, { children: I }, R)) }),
|
|
5977
5977
|
/* @__PURE__ */ r.jsx(vy, { variables: i, width: v, height: f, data: o, conf: a, interactionManager: n }),
|
|
5978
5978
|
/* @__PURE__ */ r.jsx(w, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
|
|
5979
5979
|
display: jo(a.stats.templates.bottom) ? "block" : "none"
|
|
5980
|
-
}, children: Object.values(x.bottom).map((
|
|
5980
|
+
}, children: Object.values(x.bottom).map((I, R) => /* @__PURE__ */ r.jsx(L.Fragment, { children: I }, R)) })
|
|
5981
5981
|
] });
|
|
5982
5982
|
}
|
|
5983
5983
|
function wy({
|
|
@@ -6393,7 +6393,7 @@ const Ty = ({
|
|
|
6393
6393
|
} = y(), [s, {
|
|
6394
6394
|
setTrue: i,
|
|
6395
6395
|
setFalse: a
|
|
6396
|
-
}] =
|
|
6396
|
+
}] = rt(), [o, l] = H(t), c = () => {
|
|
6397
6397
|
a();
|
|
6398
6398
|
const {
|
|
6399
6399
|
type: m,
|
|
@@ -6416,17 +6416,17 @@ const Ty = ({
|
|
|
6416
6416
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
6417
6417
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
6418
6418
|
width: "50%"
|
|
6419
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
6419
|
+
}, children: /* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
|
|
6420
6420
|
flexGrow: 0
|
|
6421
6421
|
}, leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
|
|
6422
6422
|
/* @__PURE__ */ r.jsx(Se, { size: 800, title: n("chart.symbol_size.setup.title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(S, { children: [
|
|
6423
6423
|
/* @__PURE__ */ r.jsx(E, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
|
|
6424
6424
|
/* @__PURE__ */ r.jsx(Ty, { value: o.func_content, onChange: u }),
|
|
6425
6425
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
6426
|
-
/* @__PURE__ */ r.jsx(
|
|
6426
|
+
/* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
6427
6427
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
6428
|
-
/* @__PURE__ */ r.jsx(
|
|
6429
|
-
/* @__PURE__ */ r.jsx(
|
|
6428
|
+
/* @__PURE__ */ r.jsx(T, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
6429
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
6430
6430
|
] })
|
|
6431
6431
|
] })
|
|
6432
6432
|
] }) })
|
|
@@ -6880,7 +6880,7 @@ function yi(t, e) {
|
|
|
6880
6880
|
}
|
|
6881
6881
|
return !0;
|
|
6882
6882
|
}
|
|
6883
|
-
class
|
|
6883
|
+
class ot {
|
|
6884
6884
|
/**
|
|
6885
6885
|
@internal
|
|
6886
6886
|
*/
|
|
@@ -6977,14 +6977,14 @@ class lt {
|
|
|
6977
6977
|
*/
|
|
6978
6978
|
static setFrom(e) {
|
|
6979
6979
|
if (!e || Array.isArray(e) && e.length == 0)
|
|
6980
|
-
return
|
|
6981
|
-
if (e instanceof
|
|
6980
|
+
return ot.none;
|
|
6981
|
+
if (e instanceof ot)
|
|
6982
6982
|
return [e];
|
|
6983
6983
|
let n = e.slice();
|
|
6984
6984
|
return n.sort((s, i) => s.type.rank - i.type.rank), n;
|
|
6985
6985
|
}
|
|
6986
6986
|
}
|
|
6987
|
-
|
|
6987
|
+
ot.none = [];
|
|
6988
6988
|
class Ry extends Error {
|
|
6989
6989
|
}
|
|
6990
6990
|
class ge {
|
|
@@ -7240,7 +7240,7 @@ function wo(t, e, n) {
|
|
|
7240
7240
|
}
|
|
7241
7241
|
class Br {
|
|
7242
7242
|
constructor(e, n, s, i, a, o, l) {
|
|
7243
|
-
this.type = e, this.attrs = n, this.marks = s, this.pendingMarks = i, this.solid = a, this.options = l, this.content = [], this.activeMarks =
|
|
7243
|
+
this.type = e, this.attrs = n, this.marks = s, this.pendingMarks = i, this.solid = a, this.options = l, this.content = [], this.activeMarks = ot.none, this.stashMarks = [], this.match = o || (l & hr ? null : e.contentMatch);
|
|
7244
7244
|
}
|
|
7245
7245
|
findWrapping(e) {
|
|
7246
7246
|
if (!this.match) {
|
|
@@ -7286,7 +7286,7 @@ class ko {
|
|
|
7286
7286
|
constructor(e, n, s) {
|
|
7287
7287
|
this.parser = e, this.options = n, this.isOpen = s, this.open = 0;
|
|
7288
7288
|
let i = n.topNode, a, o = wo(null, n.preserveWhitespace, 0) | (s ? hr : 0);
|
|
7289
|
-
i ? a = new Br(i.type, i.attrs,
|
|
7289
|
+
i ? a = new Br(i.type, i.attrs, ot.none, ot.none, !0, n.topMatch || i.type.contentMatch, o) : s ? a = new Br(null, null, ot.none, ot.none, !0, null, o) : a = new Br(e.schema.topNodeType, null, ot.none, ot.none, !0, null, o), this.nodes = [a], this.find = n.findPositions, this.needsBlock = !1;
|
|
7290
7290
|
}
|
|
7291
7291
|
get top() {
|
|
7292
7292
|
return this.nodes[this.open];
|
|
@@ -7366,7 +7366,7 @@ class ko {
|
|
|
7366
7366
|
// return an array of marks, or null to indicate some of the styles
|
|
7367
7367
|
// had a rule with `ignore` set.
|
|
7368
7368
|
readStyles(e) {
|
|
7369
|
-
let n =
|
|
7369
|
+
let n = ot.none, s = ot.none;
|
|
7370
7370
|
for (let i = 0; i < e.length; i += 2)
|
|
7371
7371
|
for (let a = void 0; ; ) {
|
|
7372
7372
|
let o = this.parser.matchStyle(e[i], e[i + 1], this, a);
|
|
@@ -7756,7 +7756,7 @@ class ft {
|
|
|
7756
7756
|
}
|
|
7757
7757
|
ft.empty = new ft([]);
|
|
7758
7758
|
const ei = /* @__PURE__ */ Object.create(null);
|
|
7759
|
-
class
|
|
7759
|
+
class it {
|
|
7760
7760
|
/**
|
|
7761
7761
|
Get the step map that represents the changes made by this step,
|
|
7762
7762
|
and which can be used to transform between positions in the old
|
|
@@ -7839,7 +7839,7 @@ function ta(t, e, n) {
|
|
|
7839
7839
|
}
|
|
7840
7840
|
return ue.fromArray(s);
|
|
7841
7841
|
}
|
|
7842
|
-
class fn extends
|
|
7842
|
+
class fn extends it {
|
|
7843
7843
|
/**
|
|
7844
7844
|
Create a mark step.
|
|
7845
7845
|
*/
|
|
@@ -7877,8 +7877,8 @@ class fn extends at {
|
|
|
7877
7877
|
return new fn(n.from, n.to, e.markFromJSON(n.mark));
|
|
7878
7878
|
}
|
|
7879
7879
|
}
|
|
7880
|
-
|
|
7881
|
-
class bn extends
|
|
7880
|
+
it.jsonID("addMark", fn);
|
|
7881
|
+
class bn extends it {
|
|
7882
7882
|
/**
|
|
7883
7883
|
Create a mark-removing step.
|
|
7884
7884
|
*/
|
|
@@ -7916,8 +7916,8 @@ class bn extends at {
|
|
|
7916
7916
|
return new bn(n.from, n.to, e.markFromJSON(n.mark));
|
|
7917
7917
|
}
|
|
7918
7918
|
}
|
|
7919
|
-
|
|
7920
|
-
class yn extends
|
|
7919
|
+
it.jsonID("removeMark", bn);
|
|
7920
|
+
class yn extends it {
|
|
7921
7921
|
/**
|
|
7922
7922
|
Create a node mark step.
|
|
7923
7923
|
*/
|
|
@@ -7960,8 +7960,8 @@ class yn extends at {
|
|
|
7960
7960
|
return new yn(n.pos, e.markFromJSON(n.mark));
|
|
7961
7961
|
}
|
|
7962
7962
|
}
|
|
7963
|
-
|
|
7964
|
-
class yr extends
|
|
7963
|
+
it.jsonID("addNodeMark", yn);
|
|
7964
|
+
class yr extends it {
|
|
7965
7965
|
/**
|
|
7966
7966
|
Create a mark-removing step.
|
|
7967
7967
|
*/
|
|
@@ -7995,8 +7995,8 @@ class yr extends at {
|
|
|
7995
7995
|
return new yr(n.pos, e.markFromJSON(n.mark));
|
|
7996
7996
|
}
|
|
7997
7997
|
}
|
|
7998
|
-
|
|
7999
|
-
class Mt extends
|
|
7998
|
+
it.jsonID("removeNodeMark", yr);
|
|
7999
|
+
class Mt extends it {
|
|
8000
8000
|
/**
|
|
8001
8001
|
The given `slice` should fit the 'gap' between `from` and
|
|
8002
8002
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -8047,8 +8047,8 @@ class Mt extends at {
|
|
|
8047
8047
|
return new Mt(n.from, n.to, ge.fromJSON(e, n.slice), !!n.structure);
|
|
8048
8048
|
}
|
|
8049
8049
|
}
|
|
8050
|
-
|
|
8051
|
-
class wn extends
|
|
8050
|
+
it.jsonID("replace", Mt);
|
|
8051
|
+
class wn extends it {
|
|
8052
8052
|
/**
|
|
8053
8053
|
Create a replace-around step with the given range and gap.
|
|
8054
8054
|
`insert` should be the point in the slice into which the content
|
|
@@ -8105,7 +8105,7 @@ class wn extends at {
|
|
|
8105
8105
|
return new wn(n.from, n.to, n.gapFrom, n.gapTo, ge.fromJSON(e, n.slice), n.insert, !!n.structure);
|
|
8106
8106
|
}
|
|
8107
8107
|
}
|
|
8108
|
-
|
|
8108
|
+
it.jsonID("replaceAround", wn);
|
|
8109
8109
|
function _i(t, e, n) {
|
|
8110
8110
|
let s = t.resolve(e), i = n - e, a = s.depth;
|
|
8111
8111
|
for (; i > 0 && a > 0 && s.indexAfter(a) == s.node(a).childCount; )
|
|
@@ -8158,7 +8158,7 @@ function Kc(t, e) {
|
|
|
8158
8158
|
function Wy(t, e) {
|
|
8159
8159
|
return !!(t && e && !t.isLeaf && t.canAppend(e));
|
|
8160
8160
|
}
|
|
8161
|
-
class mr extends
|
|
8161
|
+
class mr extends it {
|
|
8162
8162
|
/**
|
|
8163
8163
|
Construct an attribute step.
|
|
8164
8164
|
*/
|
|
@@ -8195,7 +8195,7 @@ class mr extends at {
|
|
|
8195
8195
|
return new mr(n.pos, n.attr, n.value);
|
|
8196
8196
|
}
|
|
8197
8197
|
}
|
|
8198
|
-
|
|
8198
|
+
it.jsonID("attr", mr);
|
|
8199
8199
|
let _r = class extends Error {
|
|
8200
8200
|
};
|
|
8201
8201
|
_r = function t(e) {
|
|
@@ -8466,7 +8466,7 @@ class Ls {
|
|
|
8466
8466
|
return $e.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
8467
8467
|
}
|
|
8468
8468
|
}
|
|
8469
|
-
class
|
|
8469
|
+
class ct extends ve {
|
|
8470
8470
|
/**
|
|
8471
8471
|
Create a node selection. Does not verify the validity of its
|
|
8472
8472
|
argument.
|
|
@@ -8477,13 +8477,13 @@ class dt extends ve {
|
|
|
8477
8477
|
}
|
|
8478
8478
|
map(e, n) {
|
|
8479
8479
|
let { deleted: s, pos: i } = n.mapResult(this.anchor), a = e.resolve(i);
|
|
8480
|
-
return s ? ve.near(a) : new
|
|
8480
|
+
return s ? ve.near(a) : new ct(a);
|
|
8481
8481
|
}
|
|
8482
8482
|
content() {
|
|
8483
8483
|
return new ge(ue.from(this.node), 0, 0);
|
|
8484
8484
|
}
|
|
8485
8485
|
eq(e) {
|
|
8486
|
-
return e instanceof
|
|
8486
|
+
return e instanceof ct && e.anchor == this.anchor;
|
|
8487
8487
|
}
|
|
8488
8488
|
toJSON() {
|
|
8489
8489
|
return { type: "node", anchor: this.anchor };
|
|
@@ -8497,13 +8497,13 @@ class dt extends ve {
|
|
|
8497
8497
|
static fromJSON(e, n) {
|
|
8498
8498
|
if (typeof n.anchor != "number")
|
|
8499
8499
|
throw new RangeError("Invalid input for NodeSelection.fromJSON");
|
|
8500
|
-
return new
|
|
8500
|
+
return new ct(e.resolve(n.anchor));
|
|
8501
8501
|
}
|
|
8502
8502
|
/**
|
|
8503
8503
|
Create a node selection from non-resolved positions.
|
|
8504
8504
|
*/
|
|
8505
8505
|
static create(e, n) {
|
|
8506
|
-
return new
|
|
8506
|
+
return new ct(e.resolve(n));
|
|
8507
8507
|
}
|
|
8508
8508
|
/**
|
|
8509
8509
|
Determines whether the given node may be selected as a node
|
|
@@ -8513,8 +8513,8 @@ class dt extends ve {
|
|
|
8513
8513
|
return !e.isText && e.type.spec.selectable !== !1;
|
|
8514
8514
|
}
|
|
8515
8515
|
}
|
|
8516
|
-
|
|
8517
|
-
ve.jsonID("node",
|
|
8516
|
+
ct.prototype.visible = !1;
|
|
8517
|
+
ve.jsonID("node", ct);
|
|
8518
8518
|
class na {
|
|
8519
8519
|
constructor(e) {
|
|
8520
8520
|
this.anchor = e;
|
|
@@ -8525,7 +8525,7 @@ class na {
|
|
|
8525
8525
|
}
|
|
8526
8526
|
resolve(e) {
|
|
8527
8527
|
let n = e.resolve(this.anchor), s = n.nodeAfter;
|
|
8528
|
-
return s &&
|
|
8528
|
+
return s && ct.isSelectable(s) ? new ct(n) : ve.near(n);
|
|
8529
8529
|
}
|
|
8530
8530
|
}
|
|
8531
8531
|
class Ut extends ve {
|
|
@@ -8577,8 +8577,8 @@ function Fn(t, e, n, s, i, a = !1) {
|
|
|
8577
8577
|
for (let o = s - (i > 0 ? 0 : 1); i > 0 ? o < e.childCount : o >= 0; o += i) {
|
|
8578
8578
|
let l = e.child(o);
|
|
8579
8579
|
if (l.isAtom) {
|
|
8580
|
-
if (!a &&
|
|
8581
|
-
return
|
|
8580
|
+
if (!a && ct.isSelectable(l))
|
|
8581
|
+
return ct.create(t, n - (i < 0 ? l.nodeSize : 0));
|
|
8582
8582
|
} else {
|
|
8583
8583
|
let c = Fn(t, l, n + i, i < 0 ? l.childCount : 0, i, a);
|
|
8584
8584
|
if (c)
|
|
@@ -8735,7 +8735,7 @@ class Hy {
|
|
|
8735
8735
|
createChain(e, n = !0) {
|
|
8736
8736
|
const { rawCommands: s, editor: i, state: a } = this, { view: o } = i, l = [], c = !!e, d = e || a.tr, u = () => (!c && n && !d.getMeta("preventDispatch") && !this.hasCustomState && o.dispatch(d), l.every((m) => m === !0)), h = {
|
|
8737
8737
|
...Object.fromEntries(Object.entries(s).map(([m, x]) => [m, (...v) => {
|
|
8738
|
-
const
|
|
8738
|
+
const I = this.buildProps(d, n), R = x(...v)(I);
|
|
8739
8739
|
return l.push(R), h;
|
|
8740
8740
|
}])),
|
|
8741
8741
|
run: u
|
|
@@ -9231,10 +9231,10 @@ function W_(t, e, n = {}) {
|
|
|
9231
9231
|
const l = [];
|
|
9232
9232
|
if (i.forEach(({ $from: h, $to: m }) => {
|
|
9233
9233
|
const x = h.pos, f = m.pos;
|
|
9234
|
-
t.doc.nodesBetween(x, f, (v,
|
|
9234
|
+
t.doc.nodesBetween(x, f, (v, I) => {
|
|
9235
9235
|
if (!v.isText && !v.marks.length)
|
|
9236
9236
|
return;
|
|
9237
|
-
const R = Math.max(x,
|
|
9237
|
+
const R = Math.max(x, I), P = Math.min(f, I + v.nodeSize), V = P - R;
|
|
9238
9238
|
o += V, l.push(...v.marks.map((Y) => ({
|
|
9239
9239
|
mark: Y,
|
|
9240
9240
|
from: R,
|
|
@@ -9307,7 +9307,7 @@ const Q_ = (t, e = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
9307
9307
|
return a.isTextblock ? i().command(({ commands: o }) => ho(a, e)(n) ? !0 : o.clearNodes()).command(({ state: o }) => ho(a, e)(o, s)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
9308
9308
|
}, Y_ = (t) => ({ tr: e, dispatch: n }) => {
|
|
9309
9309
|
if (n) {
|
|
9310
|
-
const { doc: s } = e, i = _n(t, 0, s.content.size), a =
|
|
9310
|
+
const { doc: s } = e, i = _n(t, 0, s.content.size), a = ct.create(s, i);
|
|
9311
9311
|
e.setSelection(a);
|
|
9312
9312
|
}
|
|
9313
9313
|
return !0;
|
|
@@ -9330,7 +9330,7 @@ function Ao(t, e) {
|
|
|
9330
9330
|
}
|
|
9331
9331
|
const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, editor: i }) => {
|
|
9332
9332
|
const { selection: a, doc: o } = e, { $from: l, $to: c } = a, d = i.extensionManager.attributes, u = es(d, l.node().type.name, l.node().attrs);
|
|
9333
|
-
if (a instanceof
|
|
9333
|
+
if (a instanceof ct && a.node.isBlock)
|
|
9334
9334
|
return !l.parentOffset || !Zr(o, l.pos) ? !1 : (s && (t && Ao(n, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
|
|
9335
9335
|
if (!l.parent.isBlock)
|
|
9336
9336
|
return !1;
|
|
@@ -9350,8 +9350,8 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9350
9350
|
attrs: u
|
|
9351
9351
|
}
|
|
9352
9352
|
] : void 0), f && (e.split(e.mapping.map(l.pos), 1, x), m && !h && !l.parentOffset && l.parent.type !== m)) {
|
|
9353
|
-
const v = e.mapping.map(l.before()),
|
|
9354
|
-
l.node(-1).canReplaceWith(
|
|
9353
|
+
const v = e.mapping.map(l.before()), I = e.doc.resolve(v);
|
|
9354
|
+
l.node(-1).canReplaceWith(I.index(), I.index() + 1, m) && e.setNodeMarkup(e.mapping.map(l.before()), m);
|
|
9355
9355
|
}
|
|
9356
9356
|
t && Ao(n, i.extensionManager.splittableMarks), e.scrollIntoView();
|
|
9357
9357
|
}
|
|
@@ -9369,14 +9369,14 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9369
9369
|
if (l.depth === 2 || l.node(-3).type !== o || l.index(-2) !== l.node(-2).childCount - 1)
|
|
9370
9370
|
return !1;
|
|
9371
9371
|
if (s) {
|
|
9372
|
-
let
|
|
9372
|
+
let I = ue.empty;
|
|
9373
9373
|
const R = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
9374
9374
|
for (let Z = l.depth - R; Z >= l.depth - 3; Z -= 1)
|
|
9375
|
-
|
|
9375
|
+
I = ue.from(l.node(Z).copy(I));
|
|
9376
9376
|
const P = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, V = es(h, l.node().type.name, l.node().attrs), Y = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(V)) || void 0;
|
|
9377
|
-
|
|
9377
|
+
I = I.append(ue.from(o.createAndFill(null, Y) || void 0));
|
|
9378
9378
|
const te = l.before(l.depth - (R - 1));
|
|
9379
|
-
e.replace(te, l.after(-P), new ge(
|
|
9379
|
+
e.replace(te, l.after(-P), new ge(I, 4 - R, 0));
|
|
9380
9380
|
let K = -1;
|
|
9381
9381
|
e.doc.nodesBetween(te, e.doc.content.size, (Z, we) => {
|
|
9382
9382
|
if (K > -1)
|
|
@@ -9395,7 +9395,7 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9395
9395
|
if (!Zr(e.doc, l.pos, 2))
|
|
9396
9396
|
return !1;
|
|
9397
9397
|
if (s) {
|
|
9398
|
-
const { selection:
|
|
9398
|
+
const { selection: I, storedMarks: R } = n, { splittableMarks: P } = i.extensionManager, V = R || I.$to.parentOffset && I.$from.marks();
|
|
9399
9399
|
if (e.split(l.pos, 2, v).scrollIntoView(), !V || !s)
|
|
9400
9400
|
return !0;
|
|
9401
9401
|
const Y = V.filter((te) => P.includes(te.type.name));
|
|
@@ -9421,7 +9421,7 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9421
9421
|
const i = t.doc.nodeAt(s);
|
|
9422
9422
|
return n.node.type === (i == null ? void 0 : i.type) && Kc(t.doc, s) && t.join(s), !0;
|
|
9423
9423
|
}, ev = (t, e, n, s = {}) => ({ editor: i, tr: a, state: o, dispatch: l, chain: c, commands: d, can: u }) => {
|
|
9424
|
-
const { extensions: h, splittableMarks: m } = i.extensionManager, x = Ke(t, o.schema), f = Ke(e, o.schema), { selection: v, storedMarks:
|
|
9424
|
+
const { extensions: h, splittableMarks: m } = i.extensionManager, x = Ke(t, o.schema), f = Ke(e, o.schema), { selection: v, storedMarks: I } = o, { $from: R, $to: P } = v, V = R.blockRange(P), Y = I || v.$to.parentOffset && v.$from.marks();
|
|
9425
9425
|
if (!V)
|
|
9426
9426
|
return !1;
|
|
9427
9427
|
const te = ia((K) => Eo(K.type.name, h))(v);
|
|
@@ -9476,7 +9476,7 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9476
9476
|
return !0;
|
|
9477
9477
|
if (u && o) {
|
|
9478
9478
|
let { from: m, to: x } = l;
|
|
9479
|
-
const f = (a = d.marks().find((
|
|
9479
|
+
const f = (a = d.marks().find((I) => I.type === c)) === null || a === void 0 ? void 0 : a.attrs, v = td(d, c, f);
|
|
9480
9480
|
v && (m = v.from, x = v.to), n.removeMark(m, x, c);
|
|
9481
9481
|
} else
|
|
9482
9482
|
h.forEach((m) => {
|
|
@@ -9804,7 +9804,7 @@ function ad() {
|
|
|
9804
9804
|
}
|
|
9805
9805
|
}
|
|
9806
9806
|
} }) }),
|
|
9807
|
-
/* @__PURE__ */ r.jsx(
|
|
9807
|
+
/* @__PURE__ */ r.jsx(T, { variant: "light", color: "violet", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 16 }), children: t("function_utils.trigger_text") })
|
|
9808
9808
|
] });
|
|
9809
9809
|
}
|
|
9810
9810
|
const xv = ({
|
|
@@ -9859,9 +9859,9 @@ const xv = ({
|
|
|
9859
9859
|
}, children: [
|
|
9860
9860
|
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(ad, {}) }),
|
|
9861
9861
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
9862
|
-
/* @__PURE__ */ r.jsx(
|
|
9863
|
-
/* @__PURE__ */ r.jsx(
|
|
9864
|
-
/* @__PURE__ */ r.jsx(
|
|
9862
|
+
/* @__PURE__ */ r.jsx(T, { onClick: u, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(Dl, { size: 16 }), children: a("common.actions.reset_to_default") }),
|
|
9863
|
+
/* @__PURE__ */ r.jsx(T, { onClick: d, color: "red", size: "xs", disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 16 }), children: a("common.actions.revert_changes") }),
|
|
9864
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", size: "xs", onClick: c, disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), children: a("common.actions.save_changes") })
|
|
9865
9865
|
] })
|
|
9866
9866
|
] }),
|
|
9867
9867
|
/* @__PURE__ */ r.jsx(w, { size: 14, children: n }),
|
|
@@ -9886,7 +9886,7 @@ const xv = ({
|
|
|
9886
9886
|
i,
|
|
9887
9887
|
/* @__PURE__ */ r.jsx(M, { h: 600, children: /* @__PURE__ */ r.jsx(Yn, { value: e, onChange: n, defaultValue: l, label: s }) })
|
|
9888
9888
|
] }),
|
|
9889
|
-
/* @__PURE__ */ r.jsx(
|
|
9889
|
+
/* @__PURE__ */ r.jsx(T, { onClick: u, ...o, children: a })
|
|
9890
9890
|
] });
|
|
9891
9891
|
});
|
|
9892
9892
|
function gv({
|
|
@@ -10572,7 +10572,7 @@ function Iv({
|
|
|
10572
10572
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("chart.y_axis.label_format"), labelPosition: "center" }),
|
|
10573
10573
|
/* @__PURE__ */ r.jsx(g, { name: `y_axes.${e}.label_formatter`, control: t, render: ({
|
|
10574
10574
|
field: s
|
|
10575
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
10575
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...s }) })
|
|
10576
10576
|
] }),
|
|
10577
10577
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
10578
10578
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("chart.y_axis.value_range"), labelPosition: "center" }),
|
|
@@ -11179,7 +11179,7 @@ function rj(t, e) {
|
|
|
11179
11179
|
const h = F(s), m = F(i), x = e[h.queryID].map((v) => ({
|
|
11180
11180
|
name: v[h.columnKey],
|
|
11181
11181
|
value: v[m.columnKey]
|
|
11182
|
-
})), f =
|
|
11182
|
+
})), f = yt(a.overflow.on_axis);
|
|
11183
11183
|
return {
|
|
11184
11184
|
type: "funnel",
|
|
11185
11185
|
...nj(n),
|
|
@@ -11288,7 +11288,7 @@ function lj(t) {
|
|
|
11288
11288
|
axisLabel: {
|
|
11289
11289
|
show: !0,
|
|
11290
11290
|
position: "inside",
|
|
11291
|
-
overflow:
|
|
11291
|
+
overflow: nt()
|
|
11292
11292
|
},
|
|
11293
11293
|
sort: "descending",
|
|
11294
11294
|
orient: "vertical",
|
|
@@ -11319,7 +11319,7 @@ function dj({
|
|
|
11319
11319
|
width: i,
|
|
11320
11320
|
height: a
|
|
11321
11321
|
} = t.viewport;
|
|
11322
|
-
return !i || !a ? null : /* @__PURE__ */ r.jsx(
|
|
11322
|
+
return !i || !a ? null : /* @__PURE__ */ r.jsx(st, { width: i, height: a, children: /* @__PURE__ */ r.jsx(cj, { width: zt(i), height: It(a), data: s, conf: n }) });
|
|
11323
11323
|
}
|
|
11324
11324
|
const uj = ({
|
|
11325
11325
|
item: t,
|
|
@@ -11664,7 +11664,7 @@ const _j = {
|
|
|
11664
11664
|
translation: gj
|
|
11665
11665
|
};
|
|
11666
11666
|
function vj(t) {
|
|
11667
|
-
const e =
|
|
11667
|
+
const e = tt(t.x_axis.axisLabel.formatter), n = tt(t.y_axis.axisLabel.formatter);
|
|
11668
11668
|
return {
|
|
11669
11669
|
x_axis: e,
|
|
11670
11670
|
y_axis: n
|
|
@@ -11740,14 +11740,14 @@ function Cj({
|
|
|
11740
11740
|
value: e.x_axis(l, o),
|
|
11741
11741
|
style: {
|
|
11742
11742
|
label: "",
|
|
11743
|
-
value:
|
|
11743
|
+
value: bt(t.x_axis.axisLabel.overflow.in_tooltip)
|
|
11744
11744
|
}
|
|
11745
11745
|
}, h = {
|
|
11746
11746
|
label: t.y_axis.name ? t.y_axis.name : "Y Axis",
|
|
11747
11747
|
value: e.y_axis(c, o),
|
|
11748
11748
|
style: {
|
|
11749
11749
|
label: "",
|
|
11750
|
-
value:
|
|
11750
|
+
value: bt(t.y_axis.axisLabel.overflow.in_tooltip)
|
|
11751
11751
|
}
|
|
11752
11752
|
}, m = {
|
|
11753
11753
|
label: t.heat_block.name,
|
|
@@ -11758,10 +11758,10 @@ function Cj({
|
|
|
11758
11758
|
}
|
|
11759
11759
|
}, x = [u, h, m], f = s[`${l}---${c}`];
|
|
11760
11760
|
return f && t.tooltip.metrics.forEach((v) => {
|
|
11761
|
-
const
|
|
11761
|
+
const I = F(v.data_key);
|
|
11762
11762
|
x.push({
|
|
11763
11763
|
label: v.name,
|
|
11764
|
-
value: Sj(k.get(f,
|
|
11764
|
+
value: Sj(k.get(f, I.columnKey, "")),
|
|
11765
11765
|
style: {
|
|
11766
11766
|
label: "",
|
|
11767
11767
|
value: ""
|
|
@@ -11815,7 +11815,7 @@ function Ij(t, e, n, s) {
|
|
|
11815
11815
|
const {
|
|
11816
11816
|
overflow: i,
|
|
11817
11817
|
rotate: a
|
|
11818
|
-
} = t.x_axis.axisLabel, o =
|
|
11818
|
+
} = t.x_axis.axisLabel, o = yt(i.on_axis);
|
|
11819
11819
|
return pe.getXAxis({
|
|
11820
11820
|
id: "main-x-axis",
|
|
11821
11821
|
type: "category",
|
|
@@ -11862,7 +11862,7 @@ function Tj(t, e, n, s) {
|
|
|
11862
11862
|
} = t.y_axis, {
|
|
11863
11863
|
overflow: l,
|
|
11864
11864
|
rotate: c
|
|
11865
|
-
} = t.y_axis.axisLabel, d =
|
|
11865
|
+
} = t.y_axis.axisLabel, d = yt(l.on_axis);
|
|
11866
11866
|
return pe.getYAxis({
|
|
11867
11867
|
...o,
|
|
11868
11868
|
type: "category",
|
|
@@ -11936,7 +11936,7 @@ const Dj = ({
|
|
|
11936
11936
|
} = y(), [s, {
|
|
11937
11937
|
setTrue: i,
|
|
11938
11938
|
setFalse: a
|
|
11939
|
-
}] =
|
|
11939
|
+
}] = rt(), [o, l] = H(t), c = () => {
|
|
11940
11940
|
a();
|
|
11941
11941
|
const {
|
|
11942
11942
|
type: m,
|
|
@@ -11959,17 +11959,17 @@ const Dj = ({
|
|
|
11959
11959
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
11960
11960
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
11961
11961
|
width: "50%"
|
|
11962
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
11962
|
+
}, children: /* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: i, sx: {
|
|
11963
11963
|
flexGrow: 0
|
|
11964
11964
|
}, children: n("chart.number_or_dynamic_value.dynamic.setup") }) }),
|
|
11965
11965
|
/* @__PURE__ */ r.jsx(Se, { 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(S, { children: [
|
|
11966
11966
|
/* @__PURE__ */ r.jsx(E, { mt: 10, mb: -10, label: n("chart.number_or_dynamic_value.dynamic.guide"), labelPosition: "center", variant: "dashed" }),
|
|
11967
11967
|
/* @__PURE__ */ r.jsx(Dj, { value: o.value, onChange: u }),
|
|
11968
11968
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
11969
|
-
/* @__PURE__ */ r.jsx(
|
|
11969
|
+
/* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
11970
11970
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
11971
|
-
/* @__PURE__ */ r.jsx(
|
|
11972
|
-
/* @__PURE__ */ r.jsx(
|
|
11971
|
+
/* @__PURE__ */ r.jsx(T, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
11972
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
11973
11973
|
] })
|
|
11974
11974
|
] })
|
|
11975
11975
|
] }) })
|
|
@@ -12319,7 +12319,7 @@ function Wj(t, e, n, s, i) {
|
|
|
12319
12319
|
}, {}), o = $j(t.visualMap, a), {
|
|
12320
12320
|
min: l,
|
|
12321
12321
|
max: c
|
|
12322
|
-
} = o, d = vj(t), u = jj(t), h = F(t.x_axis.data_key), m = F(t.y_axis.data_key), x = F(t.heat_block.data_key), f = k.uniq(e[h.queryID].map((V) => V[h.columnKey])), v = k.uniq(e[h.queryID].map((V) => V[m.columnKey])),
|
|
12322
|
+
} = o, d = vj(t), u = jj(t), h = F(t.x_axis.data_key), m = F(t.y_axis.data_key), x = F(t.heat_block.data_key), f = k.uniq(e[h.queryID].map((V) => V[h.columnKey])), v = k.uniq(e[h.queryID].map((V) => V[m.columnKey])), I = e[h.queryID].map((V) => {
|
|
12323
12323
|
const Y = k.get(V, h.columnKey), te = k.get(V, m.columnKey), K = k.get(V, x.columnKey), Z = {
|
|
12324
12324
|
value: [Y, te, K]
|
|
12325
12325
|
}, {
|
|
@@ -12333,7 +12333,7 @@ function Wj(t, e, n, s, i) {
|
|
|
12333
12333
|
return {
|
|
12334
12334
|
xAxis: Ij(t, f, d.x_axis, R),
|
|
12335
12335
|
yAxis: Tj(t, v, d.y_axis, R),
|
|
12336
|
-
series: kj(t,
|
|
12336
|
+
series: kj(t, I, R),
|
|
12337
12337
|
tooltip: zj(t, e, d, u),
|
|
12338
12338
|
grid: wj(t),
|
|
12339
12339
|
visualMap: o
|
|
@@ -12384,7 +12384,7 @@ const dd = {
|
|
|
12384
12384
|
data_key: "",
|
|
12385
12385
|
axisLabel: {
|
|
12386
12386
|
rotate: 0,
|
|
12387
|
-
overflow:
|
|
12387
|
+
overflow: nt(),
|
|
12388
12388
|
formatter: Ue()
|
|
12389
12389
|
}
|
|
12390
12390
|
},
|
|
@@ -12394,7 +12394,7 @@ const dd = {
|
|
|
12394
12394
|
nameAlignment: "center",
|
|
12395
12395
|
axisLabel: {
|
|
12396
12396
|
rotate: 0,
|
|
12397
|
-
overflow:
|
|
12397
|
+
overflow: nt(),
|
|
12398
12398
|
formatter: Ue()
|
|
12399
12399
|
}
|
|
12400
12400
|
},
|
|
@@ -12456,7 +12456,7 @@ function Uj({
|
|
|
12456
12456
|
width: l,
|
|
12457
12457
|
height: c
|
|
12458
12458
|
} = t.viewport;
|
|
12459
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(
|
|
12459
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(Hj, { variables: i, width: zt(l), height: It(c), data: o, conf: a, interactionManager: n }) });
|
|
12460
12460
|
}
|
|
12461
12461
|
function Yj({
|
|
12462
12462
|
control: t,
|
|
@@ -12483,7 +12483,7 @@ function Yj({
|
|
|
12483
12483
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
|
|
12484
12484
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.value_formatter", control: t, render: ({
|
|
12485
12485
|
field: i
|
|
12486
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12486
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...i }) }),
|
|
12487
12487
|
/* @__PURE__ */ r.jsx(E, { mb: -5, variant: "dashed", label: n("chart.label.label"), labelPosition: "center" }),
|
|
12488
12488
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
12489
12489
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.label.show", control: t, render: ({
|
|
@@ -12933,7 +12933,7 @@ const hd = {
|
|
|
12933
12933
|
axisLabel: {
|
|
12934
12934
|
rotate: 0,
|
|
12935
12935
|
formatter: Ue(),
|
|
12936
|
-
overflow:
|
|
12936
|
+
overflow: nt()
|
|
12937
12937
|
}
|
|
12938
12938
|
},
|
|
12939
12939
|
data_key: "value",
|
|
@@ -13114,7 +13114,7 @@ const vw = (t, e) => (n) => {
|
|
|
13114
13114
|
<td style="text-align: left; padding: 0 1em;">${m(h)}</td>
|
|
13115
13115
|
</tr>
|
|
13116
13116
|
`;
|
|
13117
|
-
}), a =
|
|
13117
|
+
}), a = bt(t.x_axis.axisLabel.overflow.in_tooltip), o = s[0].name;
|
|
13118
13118
|
return `
|
|
13119
13119
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
13120
13120
|
<div style="${a}">${o}</div>
|
|
@@ -13136,7 +13136,7 @@ function ww(t) {
|
|
|
13136
13136
|
const {
|
|
13137
13137
|
name: e,
|
|
13138
13138
|
axisLabel: n
|
|
13139
|
-
} = t.x_axis, s =
|
|
13139
|
+
} = t.x_axis, s = yt(n.overflow.on_axis);
|
|
13140
13140
|
return [pe.getXAxis({
|
|
13141
13141
|
type: "category",
|
|
13142
13142
|
id: "main-x-axis",
|
|
@@ -13149,7 +13149,7 @@ function ww(t) {
|
|
|
13149
13149
|
axisLabel: {
|
|
13150
13150
|
...n,
|
|
13151
13151
|
...s,
|
|
13152
|
-
formatter:
|
|
13152
|
+
formatter: tt(n.formatter)
|
|
13153
13153
|
}
|
|
13154
13154
|
})];
|
|
13155
13155
|
}
|
|
@@ -13253,8 +13253,8 @@ function Iw({
|
|
|
13253
13253
|
const v = k.get(h, f.name, {
|
|
13254
13254
|
error: "rowData is not found"
|
|
13255
13255
|
});
|
|
13256
|
-
u.forEach((
|
|
13257
|
-
d.runInteraction(
|
|
13256
|
+
u.forEach((I) => {
|
|
13257
|
+
d.runInteraction(I.id, {
|
|
13258
13258
|
...f,
|
|
13259
13259
|
rowData: v
|
|
13260
13260
|
});
|
|
@@ -13262,7 +13262,7 @@ function Iw({
|
|
|
13262
13262
|
}, [h, u, d]), x = C(() => ({
|
|
13263
13263
|
click: m
|
|
13264
13264
|
}), [m]);
|
|
13265
|
-
return !l || !a || !o ? null : /* @__PURE__ */ r.jsx(
|
|
13265
|
+
return !l || !a || !o ? null : /* @__PURE__ */ r.jsx(st, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ze, { echarts: Je, option: c, style: Mr(a, o), onEvents: x, notMerge: !0, theme: "merico-light" }) });
|
|
13266
13266
|
}
|
|
13267
13267
|
function Tw({
|
|
13268
13268
|
control: t,
|
|
@@ -13294,7 +13294,7 @@ function Tw({
|
|
|
13294
13294
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("chart.label.label_format"), labelPosition: "center" }),
|
|
13295
13295
|
/* @__PURE__ */ r.jsx(g, { name: "bar.label_formatter", control: t, render: ({
|
|
13296
13296
|
field: s
|
|
13297
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
13297
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...s }) })
|
|
13298
13298
|
] })
|
|
13299
13299
|
] });
|
|
13300
13300
|
}
|
|
@@ -13355,7 +13355,7 @@ const Mw = (t, e) => `
|
|
|
13355
13355
|
i18n: e
|
|
13356
13356
|
} = y(), [n, s] = H(!1), i = C(() => Mw(t("viz.pareto_chart.line_80_20.param_section_note_1"), t("viz.pareto_chart.line_80_20.param_section_note_2")), [e.language]);
|
|
13357
13357
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
13358
|
-
/* @__PURE__ */ r.jsx(
|
|
13358
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", compact: !0, onClick: () => s((a) => !a), children: t(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
|
|
13359
13359
|
/* @__PURE__ */ r.jsx(kr, { in: n, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: i }) })
|
|
13360
13360
|
] });
|
|
13361
13361
|
};
|
|
@@ -13924,7 +13924,7 @@ function e0({
|
|
|
13924
13924
|
width: o,
|
|
13925
13925
|
height: l
|
|
13926
13926
|
} = t.viewport;
|
|
13927
|
-
return !o || !l ? null : /* @__PURE__ */ r.jsx(
|
|
13927
|
+
return !o || !l ? null : /* @__PURE__ */ r.jsx(st, { width: o, height: l, children: /* @__PURE__ */ r.jsx(Zw, { conf: i, width: zt(o), height: It(l), data: a, interactionManager: n }) });
|
|
13928
13928
|
}
|
|
13929
13929
|
function t0({
|
|
13930
13930
|
context: t
|
|
@@ -14300,8 +14300,8 @@ function y0({
|
|
|
14300
14300
|
const {
|
|
14301
14301
|
queryID: h,
|
|
14302
14302
|
columnKey: m
|
|
14303
|
-
} = F(t.series_name_key), x = k.keyBy(e[h], m), f = t.additional_series.reduce((v,
|
|
14304
|
-
const R = F(
|
|
14303
|
+
} = F(t.series_name_key), x = k.keyBy(e[h], m), f = t.additional_series.reduce((v, I) => {
|
|
14304
|
+
const R = F(I.name_key), P = k.keyBy(e[R.queryID], R.columnKey);
|
|
14305
14305
|
return {
|
|
14306
14306
|
...v,
|
|
14307
14307
|
...P
|
|
@@ -14344,7 +14344,7 @@ function _0({
|
|
|
14344
14344
|
width: l,
|
|
14345
14345
|
height: c
|
|
14346
14346
|
} = t.viewport;
|
|
14347
|
-
return !l || !c || !a || wl(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ r.jsx(
|
|
14347
|
+
return !l || !c || !a || wl(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(y0, { variables: i, width: zt(l), height: It(c), data: o, conf: a, interactionManager: n }) });
|
|
14348
14348
|
}
|
|
14349
14349
|
function v0({
|
|
14350
14350
|
control: t,
|
|
@@ -14433,7 +14433,7 @@ function w0({
|
|
|
14433
14433
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("viz.radar_chart.metric.value_formatter"), labelPosition: "center" }),
|
|
14434
14434
|
/* @__PURE__ */ r.jsx(g, { name: `dimensions.${e}.formatter`, control: t, render: ({
|
|
14435
14435
|
field: s
|
|
14436
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
14436
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...s }) })
|
|
14437
14437
|
] })
|
|
14438
14438
|
] });
|
|
14439
14439
|
}
|
|
@@ -14866,7 +14866,7 @@ function B0(t) {
|
|
|
14866
14866
|
format: n,
|
|
14867
14867
|
formatter: s,
|
|
14868
14868
|
...i
|
|
14869
|
-
} = t.x_axis.axisLabel, a =
|
|
14869
|
+
} = t.x_axis.axisLabel, a = yt(e.on_axis);
|
|
14870
14870
|
return pe.getXAxis({
|
|
14871
14871
|
type: "value",
|
|
14872
14872
|
name: t.x_axis.name ?? "",
|
|
@@ -14881,7 +14881,7 @@ function B0(t) {
|
|
|
14881
14881
|
c = ae(o, n);
|
|
14882
14882
|
} catch {
|
|
14883
14883
|
}
|
|
14884
|
-
return
|
|
14884
|
+
return tt(s)(c, l);
|
|
14885
14885
|
}
|
|
14886
14886
|
}
|
|
14887
14887
|
});
|
|
@@ -15124,7 +15124,7 @@ function Z0({
|
|
|
15124
15124
|
t: n
|
|
15125
15125
|
} = y();
|
|
15126
15126
|
return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
15127
|
-
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(
|
|
15127
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
|
|
15128
15128
|
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(X0, { conf: t, queryData: e }) }) })
|
|
15129
15129
|
] });
|
|
15130
15130
|
}
|
|
@@ -15145,7 +15145,7 @@ const ua = {
|
|
|
15145
15145
|
axisLabel: {
|
|
15146
15146
|
rotate: 0,
|
|
15147
15147
|
format: We,
|
|
15148
|
-
overflow:
|
|
15148
|
+
overflow: nt(),
|
|
15149
15149
|
formatter: Ue()
|
|
15150
15150
|
}
|
|
15151
15151
|
},
|
|
@@ -15196,7 +15196,7 @@ function tk({
|
|
|
15196
15196
|
}, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = C(() => G0(Ce({}, e, ua), i), [e, i]), o = fs(null), l = (c) => {
|
|
15197
15197
|
o.current = c;
|
|
15198
15198
|
};
|
|
15199
|
-
return !n || !s || !e ? null : /* @__PURE__ */ r.jsxs(
|
|
15199
|
+
return !n || !s || !e ? null : /* @__PURE__ */ r.jsxs(st, { width: n, height: s, children: [
|
|
15200
15200
|
/* @__PURE__ */ r.jsx(ek, { conf: e, queryData: i }),
|
|
15201
15201
|
/* @__PURE__ */ r.jsx(Ze, { echarts: Je, onChartReady: l, option: a, style: Mr(n, s), notMerge: !0, theme: "merico-light" })
|
|
15202
15202
|
] });
|
|
@@ -15280,7 +15280,7 @@ function rk({
|
|
|
15280
15280
|
/* @__PURE__ */ r.jsx(E, { variant: "dashed", labelPosition: "center", label: "格式化数据" }),
|
|
15281
15281
|
/* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.format", control: t, render: ({
|
|
15282
15282
|
field: n
|
|
15283
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15283
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...n }) }) }),
|
|
15284
15284
|
/* @__PURE__ */ r.jsx(E, { variant: "dashed", labelPosition: "center", label: "标签文案样式" }),
|
|
15285
15285
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
15286
15286
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: t, render: ({
|
|
@@ -15367,7 +15367,7 @@ function ak(t) {
|
|
|
15367
15367
|
axisLabel: {
|
|
15368
15368
|
rotate: 0,
|
|
15369
15369
|
format: We,
|
|
15370
|
-
overflow:
|
|
15370
|
+
overflow: nt(),
|
|
15371
15371
|
formatter: Ue()
|
|
15372
15372
|
}
|
|
15373
15373
|
},
|
|
@@ -15783,7 +15783,7 @@ function _d() {
|
|
|
15783
15783
|
const {
|
|
15784
15784
|
on_axis: t,
|
|
15785
15785
|
in_tooltip: e
|
|
15786
|
-
} =
|
|
15786
|
+
} = nt();
|
|
15787
15787
|
return {
|
|
15788
15788
|
label: t,
|
|
15789
15789
|
tooltip: e
|
|
@@ -15813,7 +15813,7 @@ const ma = {
|
|
|
15813
15813
|
axisLabel: {
|
|
15814
15814
|
rotate: 0,
|
|
15815
15815
|
formatter: Ue(),
|
|
15816
|
-
overflow:
|
|
15816
|
+
overflow: nt()
|
|
15817
15817
|
}
|
|
15818
15818
|
},
|
|
15819
15819
|
y_axes: [{
|
|
@@ -15987,7 +15987,7 @@ function Ek({
|
|
|
15987
15987
|
label: {
|
|
15988
15988
|
show: !!e.label_position,
|
|
15989
15989
|
position: e.label_position,
|
|
15990
|
-
...
|
|
15990
|
+
...yt(e.label_overflow.label),
|
|
15991
15991
|
formatter: ({
|
|
15992
15992
|
value: o
|
|
15993
15993
|
}) => o[a.columnKey]
|
|
@@ -16017,7 +16017,7 @@ function Fo(t, e, n) {
|
|
|
16017
16017
|
const {
|
|
16018
16018
|
x_axis: s
|
|
16019
16019
|
} = n;
|
|
16020
|
-
return s.axisLabel.formatter.enabled ?
|
|
16020
|
+
return s.axisLabel.formatter.enabled ? tt(s.axisLabel.formatter)(t, e) : t;
|
|
16021
16021
|
}
|
|
16022
16022
|
function $k(t, e) {
|
|
16023
16023
|
const {
|
|
@@ -16054,7 +16054,7 @@ function Ok(t, e) {
|
|
|
16054
16054
|
const a = e[0] ?? e.default, o = Array.isArray(i) ? i : [i];
|
|
16055
16055
|
if (o.length === 0)
|
|
16056
16056
|
return "";
|
|
16057
|
-
const l = $k(o, t), c =
|
|
16057
|
+
const l = $k(o, t), c = bt(t.scatter.label_overflow.tooltip), d = o.map(
|
|
16058
16058
|
// @ts-expect-error type of value
|
|
16059
16059
|
({
|
|
16060
16060
|
value: f
|
|
@@ -16065,7 +16065,7 @@ function Ok(t, e) {
|
|
|
16065
16065
|
`
|
|
16066
16066
|
);
|
|
16067
16067
|
d.unshift("<th></th>");
|
|
16068
|
-
const u =
|
|
16068
|
+
const u = bt(t.x_axis.axisLabel.overflow.in_tooltip), h = [`<tr>
|
|
16069
16069
|
<th style="text-align: right;">${t.x_axis.name}</th>
|
|
16070
16070
|
${o.map((f) => `<td style="text-align: right; padding: 0 1em;"><div style="${u}">${l}</div></td>`).join("")}
|
|
16071
16071
|
</tr>`, `<tr>
|
|
@@ -16095,7 +16095,7 @@ function Fk(t, e) {
|
|
|
16095
16095
|
const n = e.every((l) => !Number.isNaN(Number(l))), {
|
|
16096
16096
|
overflow: s,
|
|
16097
16097
|
...i
|
|
16098
|
-
} = t.x_axis.axisLabel, a =
|
|
16098
|
+
} = t.x_axis.axisLabel, a = yt(s.on_axis), o = e.length === 0;
|
|
16099
16099
|
return [pe.getXAxis({
|
|
16100
16100
|
data: e,
|
|
16101
16101
|
name: t.x_axis.name ?? "",
|
|
@@ -16105,7 +16105,7 @@ function Fk(t, e) {
|
|
|
16105
16105
|
axisLabel: {
|
|
16106
16106
|
...i,
|
|
16107
16107
|
...a,
|
|
16108
|
-
formatter:
|
|
16108
|
+
formatter: tt(i.formatter)
|
|
16109
16109
|
}
|
|
16110
16110
|
})];
|
|
16111
16111
|
}
|
|
@@ -16254,7 +16254,7 @@ function Wk({
|
|
|
16254
16254
|
bottom: br(v.bottom, i, o)
|
|
16255
16255
|
};
|
|
16256
16256
|
}, [a, o]), f = Math.max(0, It(c) - u - m);
|
|
16257
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsxs(
|
|
16257
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsxs(st, { width: l, height: c, children: [
|
|
16258
16258
|
/* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
16259
16259
|
display: Vo(a.stats.templates.top) ? "block" : "none"
|
|
16260
16260
|
}, children: Object.values(x.top).map((v) => v) }),
|
|
@@ -16502,7 +16502,7 @@ const Kk = ({
|
|
|
16502
16502
|
} = y(), [s, {
|
|
16503
16503
|
setTrue: i,
|
|
16504
16504
|
setFalse: a
|
|
16505
|
-
}] =
|
|
16505
|
+
}] = rt(), [o, l] = H(t), c = () => {
|
|
16506
16506
|
a();
|
|
16507
16507
|
const {
|
|
16508
16508
|
type: m,
|
|
@@ -16525,16 +16525,16 @@ const Kk = ({
|
|
|
16525
16525
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
16526
16526
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
16527
16527
|
width: "50%"
|
|
16528
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
16528
|
+
}, children: /* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: i, sx: {
|
|
16529
16529
|
flexGrow: 0
|
|
16530
16530
|
}, children: n("viz.scatter_chart.color.dynamic.setup") }) }),
|
|
16531
16531
|
/* @__PURE__ */ r.jsx(Se, { 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(S, { children: [
|
|
16532
16532
|
/* @__PURE__ */ r.jsx(Kk, { value: o.func_content, onChange: u }),
|
|
16533
16533
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
16534
|
-
/* @__PURE__ */ r.jsx(
|
|
16534
|
+
/* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
|
|
16535
16535
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
16536
|
-
/* @__PURE__ */ r.jsx(
|
|
16537
|
-
/* @__PURE__ */ r.jsx(
|
|
16536
|
+
/* @__PURE__ */ r.jsx(T, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
|
|
16537
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
|
|
16538
16538
|
] })
|
|
16539
16539
|
] })
|
|
16540
16540
|
] }) })
|
|
@@ -16806,7 +16806,7 @@ function lS({
|
|
|
16806
16806
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("chart.y_axis.label_format"), labelPosition: "center" }),
|
|
16807
16807
|
/* @__PURE__ */ r.jsx(g, { name: `y_axes.${e}.label_formatter`, control: t, render: ({
|
|
16808
16808
|
field: s
|
|
16809
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
16809
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...s }) })
|
|
16810
16810
|
] }),
|
|
16811
16811
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
16812
16812
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("chart.y_axis.value_range"), labelPosition: "center" }),
|
|
@@ -17074,7 +17074,7 @@ function jS(t) {
|
|
|
17074
17074
|
const e = {
|
|
17075
17075
|
x_axis: {
|
|
17076
17076
|
axisLabel: {
|
|
17077
|
-
overflow:
|
|
17077
|
+
overflow: nt()
|
|
17078
17078
|
}
|
|
17079
17079
|
}
|
|
17080
17080
|
};
|
|
@@ -17328,7 +17328,7 @@ const LS = {
|
|
|
17328
17328
|
}, [i.payloadForSQL, c]), f = C(() => br(x, l, t.data), [x, l, t.data, t]), v = C(() => l.reduce((P, V) => {
|
|
17329
17329
|
const Y = qt(V, o);
|
|
17330
17330
|
return P[V.name] = ut(V, Y), P;
|
|
17331
|
-
}, {}), [o, l]),
|
|
17331
|
+
}, {}), [o, l]), I = Ne(() => {
|
|
17332
17332
|
s.forEach((P) => {
|
|
17333
17333
|
n.runInteraction(P.id, {
|
|
17334
17334
|
variables: v
|
|
@@ -17345,7 +17345,7 @@ const LS = {
|
|
|
17345
17345
|
height: m,
|
|
17346
17346
|
justifyContent: LS[d],
|
|
17347
17347
|
alignItems: RS[u]
|
|
17348
|
-
}, children: /* @__PURE__ */ r.jsx(M, { sx: R, onClick:
|
|
17348
|
+
}, children: /* @__PURE__ */ r.jsx(M, { sx: R, onClick: I, children: Object.values(f).map((P, V) => /* @__PURE__ */ r.jsx(L.Fragment, { children: P }, V)) }) });
|
|
17349
17349
|
});
|
|
17350
17350
|
function AS({
|
|
17351
17351
|
context: t
|
|
@@ -17583,7 +17583,7 @@ function YS({
|
|
|
17583
17583
|
width: a,
|
|
17584
17584
|
height: o
|
|
17585
17585
|
} = t.viewport, l = C(() => US(s, i, e), [s, i, e]);
|
|
17586
|
-
return !a || !o ? null : /* @__PURE__ */ r.jsx(
|
|
17586
|
+
return !a || !o ? null : /* @__PURE__ */ r.jsx(st, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ze, { echarts: Je, option: l, style: Mr(a, o), notMerge: !0, theme: "merico-light" }) });
|
|
17587
17587
|
}
|
|
17588
17588
|
function KS({
|
|
17589
17589
|
control: t,
|
|
@@ -17892,7 +17892,7 @@ const l1 = {
|
|
|
17892
17892
|
},
|
|
17893
17893
|
translation: n1
|
|
17894
17894
|
};
|
|
17895
|
-
var
|
|
17895
|
+
var vt = /* @__PURE__ */ ((t) => (t.string = "string", t.number = "number", t.eloc = "eloc", t.percentage = "percentage", t.url = "url", t.custom = "custom", t))(vt || {});
|
|
17896
17896
|
const jd = ["function text({ value, row_data }, utils) {", " return value", "}"].join(`
|
|
17897
17897
|
`), wd = {
|
|
17898
17898
|
columns: [],
|
|
@@ -18104,17 +18104,17 @@ function y1(t) {
|
|
|
18104
18104
|
}
|
|
18105
18105
|
function _1(t) {
|
|
18106
18106
|
switch (t.type) {
|
|
18107
|
-
case
|
|
18107
|
+
case vt.string:
|
|
18108
18108
|
return /* @__PURE__ */ r.jsx(p1, { ...t });
|
|
18109
|
-
case
|
|
18109
|
+
case vt.eloc:
|
|
18110
18110
|
return /* @__PURE__ */ r.jsx(g1, { ...t });
|
|
18111
|
-
case
|
|
18111
|
+
case vt.number:
|
|
18112
18112
|
return /* @__PURE__ */ r.jsx(f1, { ...t });
|
|
18113
|
-
case
|
|
18113
|
+
case vt.percentage:
|
|
18114
18114
|
return /* @__PURE__ */ r.jsx(b1, { ...t });
|
|
18115
|
-
case
|
|
18115
|
+
case vt.url:
|
|
18116
18116
|
return /* @__PURE__ */ r.jsx(x1, { ...t });
|
|
18117
|
-
case
|
|
18117
|
+
case vt.custom:
|
|
18118
18118
|
return /* @__PURE__ */ r.jsx(y1, { ...t });
|
|
18119
18119
|
}
|
|
18120
18120
|
}
|
|
@@ -18342,7 +18342,7 @@ function No({
|
|
|
18342
18342
|
id: Ee,
|
|
18343
18343
|
label: Ee,
|
|
18344
18344
|
value_field: Ee,
|
|
18345
|
-
value_type:
|
|
18345
|
+
value_type: vt.string,
|
|
18346
18346
|
align: "left",
|
|
18347
18347
|
width: "",
|
|
18348
18348
|
cellBackgroundColor: ""
|
|
@@ -18356,7 +18356,7 @@ function No({
|
|
|
18356
18356
|
return x.map((Ee) => {
|
|
18357
18357
|
const Ar = Dx(Ee.value_field);
|
|
18358
18358
|
return _e.accessor(Ar.columnKey, {
|
|
18359
|
-
cell: (
|
|
18359
|
+
cell: (at) => /* @__PURE__ */ r.jsx(_1, { tableCellContext: f(at.cell), value: at.getValue(), type: Ee.value_type, row_data: at.row.original, ...Ee }),
|
|
18360
18360
|
header: Ee.label,
|
|
18361
18361
|
enableSorting: !0,
|
|
18362
18362
|
meta: Ee,
|
|
@@ -18364,10 +18364,10 @@ function No({
|
|
|
18364
18364
|
minSize: typeof Ee.width == "number" ? Ee.width : void 0
|
|
18365
18365
|
});
|
|
18366
18366
|
});
|
|
18367
|
-
}, [x, f]), [
|
|
18367
|
+
}, [x, f]), [I, R] = H([]), P = ec({
|
|
18368
18368
|
data: t,
|
|
18369
18369
|
state: {
|
|
18370
|
-
sorting:
|
|
18370
|
+
sorting: I
|
|
18371
18371
|
},
|
|
18372
18372
|
onSortingChange: R,
|
|
18373
18373
|
columns: v,
|
|
@@ -18490,14 +18490,14 @@ const A1 = re((t, e) => {
|
|
|
18490
18490
|
} = y(), {
|
|
18491
18491
|
colorManager: s
|
|
18492
18492
|
} = Kt(Nt), [i, a] = H(Td(t.value)), [o, l] = H(R1(s, t.value)), c = oo(o), [d, u] = H(E1(s, t.value)), h = oo(d), m = (v) => {
|
|
18493
|
-
var
|
|
18494
|
-
a(v || "none"), v === "static" ? (
|
|
18493
|
+
var I, R, P;
|
|
18494
|
+
a(v || "none"), v === "static" ? (I = t.onChange) == null || I.call(t, c.current) : v === "none" || !v ? (R = t.onChange) == null || R.call(t, "none") : (P = t.onChange) == null || P.call(t, h.current);
|
|
18495
18495
|
}, x = (v) => {
|
|
18496
|
-
var
|
|
18497
|
-
l(v), (
|
|
18496
|
+
var I;
|
|
18497
|
+
l(v), (I = t.onChange) == null || I.call(t, v);
|
|
18498
18498
|
}, f = (v) => {
|
|
18499
|
-
var
|
|
18500
|
-
u(v), (
|
|
18499
|
+
var I;
|
|
18500
|
+
u(v), (I = t.onChange) == null || I.call(t, v);
|
|
18501
18501
|
};
|
|
18502
18502
|
return /* @__PURE__ */ r.jsxs(S, { align: "stretch", children: [
|
|
18503
18503
|
/* @__PURE__ */ r.jsx(ob, { label: n("viz.table.column.cell_background"), value: i || "none", onChange: m }),
|
|
@@ -18512,7 +18512,7 @@ const A1 = re((t, e) => {
|
|
|
18512
18512
|
const {
|
|
18513
18513
|
t: i,
|
|
18514
18514
|
i18n: a
|
|
18515
|
-
} = y(), o = C(() => Object.values(
|
|
18515
|
+
} = y(), o = C(() => Object.values(vt).map((l) => ({
|
|
18516
18516
|
label: i(`viz.table.column.value_type.${l}`),
|
|
18517
18517
|
value: l
|
|
18518
18518
|
})), [a.language]);
|
|
@@ -18526,7 +18526,7 @@ const A1 = re((t, e) => {
|
|
|
18526
18526
|
} = y(), [i, {
|
|
18527
18527
|
setTrue: a,
|
|
18528
18528
|
setFalse: o
|
|
18529
|
-
}] =
|
|
18529
|
+
}] = rt(), [l, c] = H(t), d = () => {
|
|
18530
18530
|
o(), e(l);
|
|
18531
18531
|
}, u = () => {
|
|
18532
18532
|
o(), c(t);
|
|
@@ -18536,7 +18536,7 @@ const A1 = re((t, e) => {
|
|
|
18536
18536
|
return B(() => {
|
|
18537
18537
|
c(t);
|
|
18538
18538
|
}, [t]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
18539
|
-
/* @__PURE__ */ r.jsx(
|
|
18539
|
+
/* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: a, sx: {
|
|
18540
18540
|
flexGrow: 0
|
|
18541
18541
|
}, children: s("viz.table.column.custom_cell_content") }),
|
|
18542
18542
|
/* @__PURE__ */ r.jsx(Se, { 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(S, { children: [
|
|
@@ -18549,10 +18549,10 @@ const A1 = re((t, e) => {
|
|
|
18549
18549
|
}
|
|
18550
18550
|
} }) }),
|
|
18551
18551
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
18552
|
-
/* @__PURE__ */ r.jsx(
|
|
18552
|
+
/* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: s("common.actions.reset_to_default") }),
|
|
18553
18553
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
18554
|
-
/* @__PURE__ */ r.jsx(
|
|
18555
|
-
/* @__PURE__ */ r.jsx(
|
|
18554
|
+
/* @__PURE__ */ r.jsx(T, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
|
|
18555
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: d, children: s("common.actions.save") })
|
|
18556
18556
|
] })
|
|
18557
18557
|
] })
|
|
18558
18558
|
] }) })
|
|
@@ -18586,7 +18586,7 @@ const A1 = re((t, e) => {
|
|
|
18586
18586
|
}) => /* @__PURE__ */ r.jsx($1, { sx: {
|
|
18587
18587
|
flex: 1
|
|
18588
18588
|
}, ...c }) }),
|
|
18589
|
-
o ===
|
|
18589
|
+
o === vt.custom && /* @__PURE__ */ r.jsx(g, { name: `columns.${e}.func_content`, control: t, render: ({
|
|
18590
18590
|
field: c
|
|
18591
18591
|
}) => /* @__PURE__ */ r.jsx(P1, { value: c.value ?? jd, onChange: (d) => c.onChange(d ?? "") }) })
|
|
18592
18592
|
] }),
|
|
@@ -18605,7 +18605,7 @@ const A1 = re((t, e) => {
|
|
|
18605
18605
|
field: c
|
|
18606
18606
|
}) => /* @__PURE__ */ r.jsx(A1, { ...c }) }),
|
|
18607
18607
|
/* @__PURE__ */ r.jsx(E, { mb: 4, mt: 12, variant: "dashed" }),
|
|
18608
|
-
/* @__PURE__ */ r.jsx(
|
|
18608
|
+
/* @__PURE__ */ r.jsx(T, { leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), color: "red", variant: "light", onClick: () => s(e), children: a("viz.table.column.delete") })
|
|
18609
18609
|
] });
|
|
18610
18610
|
}, F1 = ({
|
|
18611
18611
|
control: t,
|
|
@@ -18628,7 +18628,7 @@ const A1 = re((t, e) => {
|
|
|
18628
18628
|
label: d,
|
|
18629
18629
|
align: "center",
|
|
18630
18630
|
value_field: "",
|
|
18631
|
-
value_type:
|
|
18631
|
+
value_type: vt.string,
|
|
18632
18632
|
width: ""
|
|
18633
18633
|
});
|
|
18634
18634
|
};
|
|
@@ -19084,7 +19084,7 @@ const Md = L.forwardRef(Z1), eC = ({
|
|
|
19084
19084
|
} = y(), [i, {
|
|
19085
19085
|
setTrue: a,
|
|
19086
19086
|
setFalse: o
|
|
19087
|
-
}] =
|
|
19087
|
+
}] = rt(), [l, c] = H(t), d = () => {
|
|
19088
19088
|
o(), e(l);
|
|
19089
19089
|
}, u = () => {
|
|
19090
19090
|
o(), c(t);
|
|
@@ -19094,16 +19094,16 @@ const Md = L.forwardRef(Z1), eC = ({
|
|
|
19094
19094
|
return B(() => {
|
|
19095
19095
|
c(t);
|
|
19096
19096
|
}, [t]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
19097
|
-
/* @__PURE__ */ r.jsx(
|
|
19097
|
+
/* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: a, sx: {
|
|
19098
19098
|
flexGrow: 0
|
|
19099
19099
|
}, children: s("viz.text.content.edit") }),
|
|
19100
19100
|
/* @__PURE__ */ r.jsx(Se, { size: 800, title: s("viz.text.content.label"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(S, { children: [
|
|
19101
19101
|
/* @__PURE__ */ r.jsx(eC, { value: l, onChange: c }),
|
|
19102
19102
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
19103
|
-
/* @__PURE__ */ r.jsx(
|
|
19103
|
+
/* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: s("common.actions.reset_to_default") }),
|
|
19104
19104
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
19105
|
-
/* @__PURE__ */ r.jsx(
|
|
19106
|
-
/* @__PURE__ */ r.jsx(
|
|
19105
|
+
/* @__PURE__ */ r.jsx(T, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
|
|
19106
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: d, children: s("common.actions.save_changes") })
|
|
19107
19107
|
] })
|
|
19108
19108
|
] })
|
|
19109
19109
|
] }) })
|
|
@@ -19122,13 +19122,13 @@ function nC({
|
|
|
19122
19122
|
func_content: x,
|
|
19123
19123
|
horizontal_align: f,
|
|
19124
19124
|
font_size: v,
|
|
19125
|
-
font_weight:
|
|
19125
|
+
font_weight: I
|
|
19126
19126
|
} = i;
|
|
19127
19127
|
return {
|
|
19128
19128
|
func_content: x,
|
|
19129
19129
|
horizontal_align: f,
|
|
19130
19130
|
font_size: v,
|
|
19131
|
-
font_weight:
|
|
19131
|
+
font_weight: I
|
|
19132
19132
|
};
|
|
19133
19133
|
}, [i]);
|
|
19134
19134
|
B(() => {
|
|
@@ -19368,7 +19368,7 @@ function mC({
|
|
|
19368
19368
|
}) => /* @__PURE__ */ r.jsx(D, { label: "Question", required: !0, ...h }) })
|
|
19369
19369
|
] }),
|
|
19370
19370
|
/* @__PURE__ */ r.jsx(E, { variant: "dashed", mt: 16, mb: 8 }),
|
|
19371
|
-
/* @__PURE__ */ r.jsx(
|
|
19371
|
+
/* @__PURE__ */ r.jsx(T, { type: "submit", variant: "filled", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Yt, { size: 20 }), disabled: !u, sx: {
|
|
19372
19372
|
alignSelf: "flex-end"
|
|
19373
19373
|
}, children: "Submit Changes" })
|
|
19374
19374
|
] }) });
|
|
@@ -19725,7 +19725,7 @@ function $C({
|
|
|
19725
19725
|
width: l,
|
|
19726
19726
|
height: c
|
|
19727
19727
|
} = t.viewport;
|
|
19728
|
-
return !a.calendar.data_key || !a.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ r.jsx(
|
|
19728
|
+
return !a.calendar.data_key || !a.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(AC, { variables: i, width: zt(l), height: It(c), data: o, conf: a, interactionManager: n }) });
|
|
19729
19729
|
}
|
|
19730
19730
|
function PC({
|
|
19731
19731
|
control: t,
|
|
@@ -19758,7 +19758,7 @@ function PC({
|
|
|
19758
19758
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
|
|
19759
19759
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.value_formatter", control: t, render: ({
|
|
19760
19760
|
field: s
|
|
19761
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
19761
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...s }) })
|
|
19762
19762
|
] });
|
|
19763
19763
|
}
|
|
19764
19764
|
const OC = ({
|
|
@@ -20033,7 +20033,7 @@ const KC = {
|
|
|
20033
20033
|
data_key: "",
|
|
20034
20034
|
axisLabel: {
|
|
20035
20035
|
formatter: Ue(),
|
|
20036
|
-
overflow:
|
|
20036
|
+
overflow: nt()
|
|
20037
20037
|
},
|
|
20038
20038
|
nameAlignment: "center"
|
|
20039
20039
|
},
|
|
@@ -20229,7 +20229,7 @@ function lz({
|
|
|
20229
20229
|
invisible: u,
|
|
20230
20230
|
id: h,
|
|
20231
20231
|
...m
|
|
20232
|
-
}, x, f, v,
|
|
20232
|
+
}, x, f, v, I, R) {
|
|
20233
20233
|
const P = {
|
|
20234
20234
|
label: {
|
|
20235
20235
|
show: !!s,
|
|
@@ -20284,7 +20284,7 @@ function dz(t, e) {
|
|
|
20284
20284
|
axisValue: a,
|
|
20285
20285
|
axisIndex: o
|
|
20286
20286
|
} = n;
|
|
20287
|
-
return i === "yAxis.category" ? s :
|
|
20287
|
+
return i === "yAxis.category" ? s : tt(e.y_axis.axisLabel.formatter)(a, o);
|
|
20288
20288
|
}
|
|
20289
20289
|
function uz(t, e, n) {
|
|
20290
20290
|
const s = e.reduce((i, {
|
|
@@ -20317,7 +20317,7 @@ function uz(t, e, n) {
|
|
|
20317
20317
|
})}</td>
|
|
20318
20318
|
</tr>
|
|
20319
20319
|
`;
|
|
20320
|
-
}), l =
|
|
20320
|
+
}), l = bt(t.y_axis.axisLabel.overflow.in_tooltip), c = dz(a, t);
|
|
20321
20321
|
return `
|
|
20322
20322
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
20323
20323
|
<div style="${l}">${c}</div>
|
|
@@ -20383,7 +20383,7 @@ function xz(t, e) {
|
|
|
20383
20383
|
const n = e.every((o) => !Number.isNaN(Number(o))), {
|
|
20384
20384
|
overflow: s,
|
|
20385
20385
|
...i
|
|
20386
|
-
} = t.y_axis.axisLabel, a =
|
|
20386
|
+
} = t.y_axis.axisLabel, a = yt(s.on_axis);
|
|
20387
20387
|
return [pe.getXAxis({
|
|
20388
20388
|
data: e,
|
|
20389
20389
|
name: t.y_axis.name ?? "",
|
|
@@ -20397,7 +20397,7 @@ function xz(t, e) {
|
|
|
20397
20397
|
axisLabel: {
|
|
20398
20398
|
...i,
|
|
20399
20399
|
...a,
|
|
20400
|
-
formatter:
|
|
20400
|
+
formatter: tt(i.formatter)
|
|
20401
20401
|
},
|
|
20402
20402
|
z: 5
|
|
20403
20403
|
})];
|
|
@@ -20456,7 +20456,7 @@ function bz({
|
|
|
20456
20456
|
width: l,
|
|
20457
20457
|
height: c
|
|
20458
20458
|
} = t.viewport;
|
|
20459
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(
|
|
20459
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(fz, { variables: i, width: zt(l), height: It(c), data: o, conf: a, interactionManager: n }) });
|
|
20460
20460
|
}
|
|
20461
20461
|
function yz({
|
|
20462
20462
|
control: t,
|
|
@@ -20739,7 +20739,7 @@ function Sz({
|
|
|
20739
20739
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("chart.x_axis.label_format"), labelPosition: "center" }),
|
|
20740
20740
|
/* @__PURE__ */ r.jsx(g, { name: `x_axes.${e}.label_formatter`, control: t, render: ({
|
|
20741
20741
|
field: s
|
|
20742
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
20742
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...s }) })
|
|
20743
20743
|
] }),
|
|
20744
20744
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
20745
20745
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("chart.x_axis.value_range"), labelPosition: "center" }),
|
|
@@ -21211,7 +21211,7 @@ function Vz(t, e, n, s) {
|
|
|
21211
21211
|
x,
|
|
21212
21212
|
percentage: f,
|
|
21213
21213
|
count: v,
|
|
21214
|
-
sum:
|
|
21214
|
+
sum: I
|
|
21215
21215
|
} = Fz(m);
|
|
21216
21216
|
return `
|
|
21217
21217
|
<table style="width: auto">
|
|
@@ -21244,7 +21244,7 @@ function Vz(t, e, n, s) {
|
|
|
21244
21244
|
</tr>
|
|
21245
21245
|
<tr>
|
|
21246
21246
|
<th style="text-align: right;">总数</th>
|
|
21247
|
-
<td style="text-align: left; padding: 0 1em;">${
|
|
21247
|
+
<td style="text-align: left; padding: 0 1em;">${I}</td>
|
|
21248
21248
|
</tr>
|
|
21249
21249
|
</tbody>
|
|
21250
21250
|
</table>
|
|
@@ -21336,7 +21336,7 @@ function Bz(t, e) {
|
|
|
21336
21336
|
type: "category",
|
|
21337
21337
|
axisLabel: {
|
|
21338
21338
|
...n,
|
|
21339
|
-
formatter:
|
|
21339
|
+
formatter: tt(n.formatter)
|
|
21340
21340
|
},
|
|
21341
21341
|
axisLine: {
|
|
21342
21342
|
show: !1
|
|
@@ -21574,7 +21574,7 @@ const Xz = {
|
|
|
21574
21574
|
};
|
|
21575
21575
|
function tI() {
|
|
21576
21576
|
return /* @__PURE__ */ r.jsxs(Te, { width: 400, shadow: "md", children: [
|
|
21577
|
-
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(
|
|
21577
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: "指标说明" }) }),
|
|
21578
21578
|
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Pe, { fontSize: 14, sx: eI, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
21579
21579
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
21580
21580
|
/* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
|
|
@@ -22027,7 +22027,7 @@ function _I({
|
|
|
22027
22027
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: i("numbro.format.label"), labelPosition: "center" }),
|
|
22028
22028
|
/* @__PURE__ */ r.jsx(g, { name: `metrics.${e}.formatter`, control: t, render: ({
|
|
22029
22029
|
field: a
|
|
22030
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
22030
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...a }) }),
|
|
22031
22031
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: i("viz.merico_stats.metric.others"), labelPosition: "center" }),
|
|
22032
22032
|
/* @__PURE__ */ r.jsx(g, { name: `metrics.${e}.postfix`, control: t, render: ({
|
|
22033
22033
|
field: a
|
|
@@ -22212,7 +22212,7 @@ const TI = {
|
|
|
22212
22212
|
data_key: "",
|
|
22213
22213
|
axisLabel: {
|
|
22214
22214
|
rotate: 0,
|
|
22215
|
-
overflow:
|
|
22215
|
+
overflow: nt(),
|
|
22216
22216
|
formatter: Ue()
|
|
22217
22217
|
}
|
|
22218
22218
|
},
|
|
@@ -22222,7 +22222,7 @@ const TI = {
|
|
|
22222
22222
|
nameAlignment: "center",
|
|
22223
22223
|
axisLabel: {
|
|
22224
22224
|
rotate: 0,
|
|
22225
|
-
overflow:
|
|
22225
|
+
overflow: nt(),
|
|
22226
22226
|
formatter: Ue()
|
|
22227
22227
|
}
|
|
22228
22228
|
},
|
|
@@ -22280,7 +22280,7 @@ function DI({
|
|
|
22280
22280
|
/* @__PURE__ */ r.jsx(E, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
|
|
22281
22281
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.value_formatter", control: t, render: ({
|
|
22282
22282
|
field: i
|
|
22283
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
22283
|
+
}) => /* @__PURE__ */ r.jsx(_t, { ...i }) }),
|
|
22284
22284
|
/* @__PURE__ */ r.jsx(E, { mb: -5, variant: "dashed", label: n("chart.label.label"), labelPosition: "center" }),
|
|
22285
22285
|
/* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
|
|
22286
22286
|
/* @__PURE__ */ r.jsx(g, { name: "heat_block.label.show", control: t, render: ({
|
|
@@ -22529,7 +22529,7 @@ const Ed = {
|
|
|
22529
22529
|
}]
|
|
22530
22530
|
};
|
|
22531
22531
|
function FI(t) {
|
|
22532
|
-
const e =
|
|
22532
|
+
const e = tt(t.x_axis.axisLabel.formatter), n = tt(t.y_axis.axisLabel.formatter);
|
|
22533
22533
|
return {
|
|
22534
22534
|
x_axis: e,
|
|
22535
22535
|
y_axis: n
|
|
@@ -22605,14 +22605,14 @@ function WI({
|
|
|
22605
22605
|
value: e.x_axis(l, o),
|
|
22606
22606
|
style: {
|
|
22607
22607
|
label: "",
|
|
22608
|
-
value:
|
|
22608
|
+
value: bt(t.x_axis.axisLabel.overflow.in_tooltip)
|
|
22609
22609
|
}
|
|
22610
22610
|
}, h = {
|
|
22611
22611
|
label: t.y_axis.name ? t.y_axis.name : "Y Axis",
|
|
22612
22612
|
value: e.y_axis(c, o),
|
|
22613
22613
|
style: {
|
|
22614
22614
|
label: "",
|
|
22615
|
-
value:
|
|
22615
|
+
value: bt(t.y_axis.axisLabel.overflow.in_tooltip)
|
|
22616
22616
|
}
|
|
22617
22617
|
}, m = {
|
|
22618
22618
|
label: t.heat_block.name,
|
|
@@ -22623,10 +22623,10 @@ function WI({
|
|
|
22623
22623
|
}
|
|
22624
22624
|
}, x = [u, h, m], f = s[`${l}---${c}`];
|
|
22625
22625
|
return f && t.tooltip.metrics.forEach((v) => {
|
|
22626
|
-
const
|
|
22626
|
+
const I = F(v.data_key);
|
|
22627
22627
|
x.push({
|
|
22628
22628
|
label: v.name,
|
|
22629
|
-
value: BI(k.get(f,
|
|
22629
|
+
value: BI(k.get(f, I.columnKey, "")),
|
|
22630
22630
|
style: {
|
|
22631
22631
|
label: "",
|
|
22632
22632
|
value: ""
|
|
@@ -22692,7 +22692,7 @@ function HI(t, e, n) {
|
|
|
22692
22692
|
const s = F(t.x_axis.data_key), i = k.uniq(e[s.queryID].map((c) => c[s.columnKey])), {
|
|
22693
22693
|
overflow: a,
|
|
22694
22694
|
rotate: o
|
|
22695
|
-
} = t.x_axis.axisLabel, l =
|
|
22695
|
+
} = t.x_axis.axisLabel, l = yt(a.on_axis);
|
|
22696
22696
|
return pe.getXAxis({
|
|
22697
22697
|
id: "main-x-axis",
|
|
22698
22698
|
type: "category",
|
|
@@ -22734,7 +22734,7 @@ function UI(t, e, n) {
|
|
|
22734
22734
|
} = t.y_axis, c = k.uniq(e[s.queryID].map((m) => m[i.columnKey])), {
|
|
22735
22735
|
overflow: d,
|
|
22736
22736
|
rotate: u
|
|
22737
|
-
} = t.y_axis.axisLabel, h =
|
|
22737
|
+
} = t.y_axis.axisLabel, h = yt(d.on_axis);
|
|
22738
22738
|
return pe.getYAxis({
|
|
22739
22739
|
...l,
|
|
22740
22740
|
type: "category",
|
|
@@ -22832,7 +22832,7 @@ function JI({
|
|
|
22832
22832
|
width: l,
|
|
22833
22833
|
height: c
|
|
22834
22834
|
} = t.viewport;
|
|
22835
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(
|
|
22835
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(st, { width: l, height: c, children: /* @__PURE__ */ r.jsx(KI, { variables: i, width: zt(l), height: It(c), data: o, conf: a, interactionManager: n }) });
|
|
22836
22836
|
}
|
|
22837
22837
|
const XI = {
|
|
22838
22838
|
merico_heatmap: {
|
|
@@ -23250,7 +23250,7 @@ const dT = ({
|
|
|
23250
23250
|
key: c,
|
|
23251
23251
|
value: d,
|
|
23252
23252
|
getRange: u
|
|
23253
|
-
}) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
23253
|
+
}) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(T, { compact: !0, size: "xs", variant: "subtle", onClick: s(u), children: e(`filter.widget.date_range.shortcut.${o}.${a ? "full." : ""}${c}`) }) }, c))
|
|
23254
23254
|
] }, o)) }) })
|
|
23255
23255
|
] });
|
|
23256
23256
|
}, Yo = (t) => ({
|
|
@@ -23548,8 +23548,8 @@ const dT = ({
|
|
|
23548
23548
|
classNames: e,
|
|
23549
23549
|
styles: n,
|
|
23550
23550
|
unstyled: s
|
|
23551
|
-
}), [v,
|
|
23552
|
-
|
|
23551
|
+
}), [v, I] = H(!1), R = (K) => {
|
|
23552
|
+
I(K);
|
|
23553
23553
|
}, P = v && (l == null ? void 0 : l.length) > 0, [V, Y] = H(""), te = C(() => {
|
|
23554
23554
|
if (!V)
|
|
23555
23555
|
return d;
|
|
@@ -23950,9 +23950,9 @@ const bT = ({
|
|
|
23950
23950
|
classNames: e,
|
|
23951
23951
|
styles: n,
|
|
23952
23952
|
unstyled: s
|
|
23953
|
-
}), [
|
|
23953
|
+
}), [I, R] = H(!1), P = (Y) => {
|
|
23954
23954
|
R(Y);
|
|
23955
|
-
}, V =
|
|
23955
|
+
}, V = I && (l == null ? void 0 : l.length) > 0;
|
|
23956
23956
|
return /* @__PURE__ */ r.jsxs(S, { spacing: 3, children: [
|
|
23957
23957
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
23958
23958
|
/* @__PURE__ */ r.jsxs(w, { className: f.label, children: [
|
|
@@ -24055,7 +24055,7 @@ const bT = ({
|
|
|
24055
24055
|
type: s,
|
|
24056
24056
|
...i
|
|
24057
24057
|
} = e;
|
|
24058
|
-
return /* @__PURE__ */ r.jsx(
|
|
24058
|
+
return /* @__PURE__ */ r.jsx(T, { color: "blue", size: "sm", type: "submit", ...i, disabled: t || i.disabled, children: n });
|
|
24059
24059
|
};
|
|
24060
24060
|
function IT(t) {
|
|
24061
24061
|
const e = le();
|
|
@@ -24071,7 +24071,7 @@ const TT = ({
|
|
|
24071
24071
|
const {
|
|
24072
24072
|
t: n
|
|
24073
24073
|
} = y();
|
|
24074
|
-
return /* @__PURE__ */ r.jsx(b, { position: "right", ml: -4, mt: -4, mb: t ? 4 : 0, children: /* @__PURE__ */ r.jsx(
|
|
24074
|
+
return /* @__PURE__ */ r.jsx(b, { position: "right", ml: -4, mt: -4, mb: t ? 4 : 0, children: /* @__PURE__ */ r.jsx(T, { size: "xs", compact: !0, variant: "subtle", color: t ? "gray" : "blue", leftIcon: t ? /* @__PURE__ */ r.jsx(Rm, { size: 14 }) : /* @__PURE__ */ r.jsx(Em, { size: 14 }), onClick: e, children: n(t ? "filter.hide_filters" : "filter.show_filters") }) });
|
|
24075
24075
|
}, Vd = z(function({
|
|
24076
24076
|
view: e
|
|
24077
24077
|
}) {
|
|
@@ -24094,8 +24094,8 @@ const TT = ({
|
|
|
24094
24094
|
const d = i.filters.visibleInView(e.id), u = C(() => d.every((f) => f.should_auto_submit), [d]), h = C(() => d.filter((f) => k.get(f, "config.required", !1)), [d]), m = C(() => h.length === 0 ? !1 : h.some((f) => !f.requiredAndPass(c[f.key])), [c, h]);
|
|
24095
24095
|
if (d.length === 0)
|
|
24096
24096
|
return null;
|
|
24097
|
-
const x = (f, v) => (
|
|
24098
|
-
v(
|
|
24097
|
+
const x = (f, v) => (I, R) => {
|
|
24098
|
+
v(I), (f.should_auto_submit || R) && i.filters.setValueByKey(f.key, I);
|
|
24099
24099
|
};
|
|
24100
24100
|
return /* @__PURE__ */ r.jsxs("form", { onSubmit: o(i.filters.setValues), children: [
|
|
24101
24101
|
/* @__PURE__ */ r.jsx(TT, { opened: n, toggle: s }),
|
|
@@ -24822,7 +24822,7 @@ const NT = p.model("FilterDateRangeConfigMeta", {
|
|
|
24822
24822
|
}
|
|
24823
24823
|
})).actions((t) => ({
|
|
24824
24824
|
afterCreate() {
|
|
24825
|
-
|
|
24825
|
+
wt(t, dt(() => Xt(t.default_selection), t.setDefaultSelection, {
|
|
24826
24826
|
fireImmediately: !0,
|
|
24827
24827
|
delay: 0
|
|
24828
24828
|
}));
|
|
@@ -24887,7 +24887,7 @@ const NT = p.model("FilterDateRangeConfigMeta", {
|
|
|
24887
24887
|
}
|
|
24888
24888
|
})).actions((t) => ({
|
|
24889
24889
|
afterCreate() {
|
|
24890
|
-
|
|
24890
|
+
wt(t, dt(() => Xt(t.default_selection), t.setDefaultSelection, {
|
|
24891
24891
|
fireImmediately: !1,
|
|
24892
24892
|
delay: 0
|
|
24893
24893
|
}));
|
|
@@ -25046,7 +25046,7 @@ const Kd = p.compose("FilterTreeSelectConfigMeta", p.model({
|
|
|
25046
25046
|
a.length > 0 ? n.setValueByKey(e, a) : n.setValueByKey(e, t.defaultSelection);
|
|
25047
25047
|
},
|
|
25048
25048
|
afterCreate() {
|
|
25049
|
-
|
|
25049
|
+
wt(t, dt(() => JSON.stringify(t.defaultSelection), this.applyDefaultSelection, {
|
|
25050
25050
|
fireImmediately: !0,
|
|
25051
25051
|
delay: 0
|
|
25052
25052
|
}));
|
|
@@ -25499,15 +25499,21 @@ const su = p.compose("ViewRenderModel", tD, p.model({
|
|
|
25499
25499
|
tab: p.optional(p.string, "")
|
|
25500
25500
|
// FIXME: manage this state in a better way
|
|
25501
25501
|
})).views((t) => ({
|
|
25502
|
-
get
|
|
25503
|
-
|
|
25504
|
-
|
|
25505
|
-
|
|
25506
|
-
|
|
25502
|
+
get tabs() {
|
|
25503
|
+
return t.config.tabs;
|
|
25504
|
+
},
|
|
25505
|
+
get tabInfo() {
|
|
25506
|
+
const e = this.tabs.find((n) => n.id === t.tab);
|
|
25507
|
+
return e ? {
|
|
25508
|
+
id: e.id,
|
|
25509
|
+
name: e.name
|
|
25510
|
+
} : null;
|
|
25511
|
+
},
|
|
25512
|
+
get tabView() {
|
|
25513
|
+
return t.type !== W.Tabs ? null : this.tabs.find((e) => e.id === t.tab);
|
|
25507
25514
|
},
|
|
25508
25515
|
get tabViewID() {
|
|
25509
|
-
|
|
25510
|
-
return t.type !== W.Tabs ? "" : ((n = t.config.tabs.find((s) => s.id === t.tab)) == null ? void 0 : n.view_id) ?? "";
|
|
25516
|
+
return this.tabView ? this.tabView.view_id ?? "" : "";
|
|
25511
25517
|
},
|
|
25512
25518
|
get contentModel() {
|
|
25513
25519
|
return Re(t, 3);
|
|
@@ -25548,11 +25554,8 @@ const su = p.compose("ViewRenderModel", tD, p.model({
|
|
|
25548
25554
|
setTab(e) {
|
|
25549
25555
|
t.tab = e ?? "";
|
|
25550
25556
|
},
|
|
25551
|
-
|
|
25552
|
-
|
|
25553
|
-
fireImmediately: !0,
|
|
25554
|
-
delay: 0
|
|
25555
|
-
}));
|
|
25557
|
+
setTabByTabInfo(e) {
|
|
25558
|
+
t.tab = e.id ?? "";
|
|
25556
25559
|
}
|
|
25557
25560
|
})), iu = p.model("ViewsRenderModel", {
|
|
25558
25561
|
current: p.optional(p.array(su), []),
|
|
@@ -25581,6 +25584,13 @@ const su = p.compose("ViewRenderModel", tD, p.model({
|
|
|
25581
25584
|
return t.current.filter(({
|
|
25582
25585
|
id: n
|
|
25583
25586
|
}) => e.has(n));
|
|
25587
|
+
},
|
|
25588
|
+
get firstVisibleTabsView() {
|
|
25589
|
+
return this.visibleViews.find((e) => e.type === W.Tabs);
|
|
25590
|
+
},
|
|
25591
|
+
get firstVisibleTabsViewActiveTab() {
|
|
25592
|
+
const e = this.firstVisibleTabsView;
|
|
25593
|
+
return e ? e.tabInfo : null;
|
|
25584
25594
|
}
|
|
25585
25595
|
})).actions((t) => ({
|
|
25586
25596
|
appendToVisibles(e) {
|
|
@@ -25589,25 +25599,36 @@ const su = p.compose("ViewRenderModel", tD, p.model({
|
|
|
25589
25599
|
rmVisibleViewID(e) {
|
|
25590
25600
|
const n = t.visibleViewIDs.findIndex((s) => s === e);
|
|
25591
25601
|
n !== -1 && t.visibleViewIDs.splice(n, 1);
|
|
25602
|
+
},
|
|
25603
|
+
setFirstVisibleTabsViewActiveTab(e) {
|
|
25604
|
+
if (!e)
|
|
25605
|
+
return;
|
|
25606
|
+
const n = t.firstVisibleTabsView;
|
|
25607
|
+
n == null || n.setTabByTabInfo(e);
|
|
25592
25608
|
}
|
|
25593
25609
|
}));
|
|
25594
|
-
function sD(t) {
|
|
25595
|
-
const
|
|
25596
|
-
|
|
25597
|
-
|
|
25598
|
-
|
|
25599
|
-
|
|
25600
|
-
|
|
25601
|
-
|
|
25602
|
-
...
|
|
25603
|
-
|
|
25604
|
-
|
|
25605
|
-
|
|
25606
|
-
|
|
25607
|
-
|
|
25608
|
-
|
|
25609
|
-
|
|
25610
|
-
|
|
25610
|
+
function sD(t, e) {
|
|
25611
|
+
const n = t.length > 0 ? [t[0].id] : [], s = t.map((i) => {
|
|
25612
|
+
const {
|
|
25613
|
+
_name: a = i.type
|
|
25614
|
+
} = i.config, o = {
|
|
25615
|
+
...i,
|
|
25616
|
+
tab: "",
|
|
25617
|
+
config: {
|
|
25618
|
+
...i.config,
|
|
25619
|
+
_name: a
|
|
25620
|
+
},
|
|
25621
|
+
panelIDs: i.panelIDs
|
|
25622
|
+
};
|
|
25623
|
+
if (i.type === W.Tabs) {
|
|
25624
|
+
const l = k.minBy(i.config.tabs, (c) => c.order);
|
|
25625
|
+
o.tab = (l == null ? void 0 : l.id) ?? "";
|
|
25626
|
+
}
|
|
25627
|
+
return o;
|
|
25628
|
+
});
|
|
25629
|
+
return e && (s[0].tab = e.id), {
|
|
25630
|
+
current: s,
|
|
25631
|
+
visibleViewIDs: n
|
|
25611
25632
|
};
|
|
25612
25633
|
}
|
|
25613
25634
|
const iD = new Mp({
|
|
@@ -26168,7 +26189,7 @@ const cD = PT.views((t) => ({
|
|
|
26168
26189
|
}
|
|
26169
26190
|
})).actions((t) => ({
|
|
26170
26191
|
afterCreate() {
|
|
26171
|
-
|
|
26192
|
+
wt(t, dt(() => {
|
|
26172
26193
|
var n;
|
|
26173
26194
|
return t.isTransform ? [t.inUse, t.id, t.key, t.dep_query_ids.toString(), t.pre_process, t.depQueryModelStatesString].join("--") : t.typedAsHTTP ? `${t.inUse}--${t.id}--${t.key}--${t.reQueryKey}--${(n = t.datasource) == null ? void 0 : n.id}` : [t.inUse, t.id, t.key, t.formattedSQL, t.pre_process, t.post_process].join("--");
|
|
26174
26195
|
}, () => t.fetchData(!1), {
|
|
@@ -26384,7 +26405,7 @@ const gu = p.model("LayoutsRenderModel", {
|
|
|
26384
26405
|
console.log("🔴 onBreakpointChange:", e), t.currentBreakpoint = e;
|
|
26385
26406
|
},
|
|
26386
26407
|
afterCreate() {
|
|
26387
|
-
|
|
26408
|
+
wt(t, dt(() => t.currentBreakpoint, () => {
|
|
26388
26409
|
setTimeout(() => {
|
|
26389
26410
|
window.dispatchEvent(new Event("resize"));
|
|
26390
26411
|
}, 32);
|
|
@@ -26878,7 +26899,7 @@ const Su = z(({
|
|
|
26878
26899
|
panel: n,
|
|
26879
26900
|
exitFullScreen: s
|
|
26880
26901
|
}) {
|
|
26881
|
-
return /* @__PURE__ */ r.jsx(Se, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(
|
|
26902
|
+
return /* @__PURE__ */ r.jsx(Se, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(T, { color: "blue", size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(ym, { size: 20 }), children: "Exit fullscreen" }), styles: RD, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
|
|
26882
26903
|
flexGrow: 1,
|
|
26883
26904
|
flexShrink: 0
|
|
26884
26905
|
}, children: /* @__PURE__ */ r.jsx(Su, { view: e, panel: n }) }) });
|
|
@@ -26972,7 +26993,7 @@ const ND = z(({
|
|
|
26972
26993
|
} = y(), [n, {
|
|
26973
26994
|
setTrue: s,
|
|
26974
26995
|
setFalse: i
|
|
26975
|
-
}] =
|
|
26996
|
+
}] = rt(!1), a = fg(), o = Fe(), l = () => {
|
|
26976
26997
|
const c = JSON.stringify(o.contentJSON, null, 2), d = `${a.name}__${o.name}`;
|
|
26977
26998
|
rr(d, c);
|
|
26978
26999
|
};
|
|
@@ -27263,13 +27284,13 @@ const UD = z(({
|
|
|
27263
27284
|
/* @__PURE__ */ r.jsx(O, { label: "View", value: c.view_id, onChange: c.setViewID, data: i }),
|
|
27264
27285
|
/* @__PURE__ */ r.jsx(oe, { label: e("view.component.tabs.tab.order"), required: !0, value: c.order, onChange: (h) => c.setOrder(h || 0), min: 0, max: 1e3, step: 1 }),
|
|
27265
27286
|
/* @__PURE__ */ r.jsx(Qn, { label: e("view.component.tabs.tab.color"), value: c.color, onChange: c.setColor, disabled: a.variant !== "default" }),
|
|
27266
|
-
u && /* @__PURE__ */ r.jsx(
|
|
27287
|
+
u && /* @__PURE__ */ r.jsx(T, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(Pm, { size: 18 }), gradient: {
|
|
27267
27288
|
from: "cyan",
|
|
27268
27289
|
to: "indigo"
|
|
27269
27290
|
}, onClick: () => s.views.setIDOfVIE(u.id), children: e("view.component.tabs.tab.switch_to_view", {
|
|
27270
27291
|
name: u.name
|
|
27271
27292
|
}) }),
|
|
27272
|
-
/* @__PURE__ */ r.jsx(
|
|
27293
|
+
/* @__PURE__ */ r.jsx(T, { mt: 20, variant: "subtle", color: "red", onClick: () => o(d), disabled: l, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), children: e("view.component.tabs.tab.delete") })
|
|
27273
27294
|
] })
|
|
27274
27295
|
] }),
|
|
27275
27296
|
u && /* @__PURE__ */ r.jsx(Da, { view: u })
|
|
@@ -27352,7 +27373,7 @@ const q2 = {
|
|
|
27352
27373
|
[W.Tabs]: "#ffad18"
|
|
27353
27374
|
};
|
|
27354
27375
|
function nM(t, e, n) {
|
|
27355
|
-
|
|
27376
|
+
wt(t, Ip(t, (s, i) => {
|
|
27356
27377
|
i(s, () => {
|
|
27357
27378
|
Tp(s.context) === e && s.type === "action" && n(s.name, s.context);
|
|
27358
27379
|
});
|
|
@@ -27608,10 +27629,10 @@ const rM = p.compose("FiltersModel", hu, p.model("FiltersModel", {
|
|
|
27608
27629
|
}
|
|
27609
27630
|
})).actions((t) => ({
|
|
27610
27631
|
afterCreate() {
|
|
27611
|
-
|
|
27632
|
+
wt(t, dt(() => t.keywordString, t.resetPage, {
|
|
27612
27633
|
fireImmediately: !1,
|
|
27613
27634
|
delay: 0
|
|
27614
|
-
})),
|
|
27635
|
+
})), wt(t, dt(() => t.limit, t.resetPage, {
|
|
27615
27636
|
fireImmediately: !1,
|
|
27616
27637
|
delay: 0
|
|
27617
27638
|
}));
|
|
@@ -27790,17 +27811,17 @@ const rM = p.compose("FiltersModel", hu, p.model("FiltersModel", {
|
|
|
27790
27811
|
};
|
|
27791
27812
|
}).actions((t) => ({
|
|
27792
27813
|
afterCreate() {
|
|
27793
|
-
|
|
27814
|
+
wt(t, dt(() => t.reloadConditionString, t.loadColumns, {
|
|
27794
27815
|
fireImmediately: !1,
|
|
27795
27816
|
delay: 500
|
|
27796
27817
|
}));
|
|
27797
27818
|
}
|
|
27798
27819
|
})).actions((t) => ({
|
|
27799
27820
|
afterCreate() {
|
|
27800
|
-
|
|
27821
|
+
wt(t, dt(() => t.reloadConditionString, t.loadIndexes, {
|
|
27801
27822
|
fireImmediately: !1,
|
|
27802
27823
|
delay: 500
|
|
27803
|
-
})),
|
|
27824
|
+
})), wt(t, dt(() => `${t.reloadConditionString};limit:${t.tableData.limit};offset:${t.tableData.offset}`, t.loadTableData, {
|
|
27804
27825
|
fireImmediately: !1,
|
|
27805
27826
|
delay: 0
|
|
27806
27827
|
}));
|
|
@@ -28558,23 +28579,23 @@ const _M = p.model({
|
|
|
28558
28579
|
t.views.appendMultiple(m);
|
|
28559
28580
|
}
|
|
28560
28581
|
if (Array.isArray(o)) {
|
|
28561
|
-
const m = (v,
|
|
28582
|
+
const m = (v, I) => t.layouts.breakpointNameRecord[v] === I;
|
|
28562
28583
|
let x = [];
|
|
28563
28584
|
const f = o.filter((v) => m(v.name, v.breakpoint));
|
|
28564
28585
|
f.forEach((v) => {
|
|
28565
|
-
v.id === "basis" && (x = v.list), v.list.forEach((
|
|
28566
|
-
const R = u.get(
|
|
28567
|
-
|
|
28586
|
+
v.id === "basis" && (x = v.list), v.list.forEach((I) => {
|
|
28587
|
+
const R = u.get(I.panelID);
|
|
28588
|
+
I.id = Ht(), I.panelID = R;
|
|
28568
28589
|
});
|
|
28569
28590
|
}), t.layouts.list.forEach((v) => {
|
|
28570
|
-
const
|
|
28571
|
-
if (!
|
|
28591
|
+
const I = f.find((R) => R.name === v.name && R.breakpoint === v.breakpoint);
|
|
28592
|
+
if (!I) {
|
|
28572
28593
|
x.forEach((R) => {
|
|
28573
28594
|
v.addLayout(R);
|
|
28574
28595
|
});
|
|
28575
28596
|
return;
|
|
28576
28597
|
}
|
|
28577
|
-
|
|
28598
|
+
I.list.forEach((R) => {
|
|
28578
28599
|
v.addLayout(R);
|
|
28579
28600
|
});
|
|
28580
28601
|
});
|
|
@@ -30696,7 +30717,7 @@ const CM = z(({
|
|
|
30696
30717
|
});
|
|
30697
30718
|
}, a = s.changed;
|
|
30698
30719
|
return /* @__PURE__ */ r.jsxs(b, { spacing: 0, children: [
|
|
30699
|
-
/* @__PURE__ */ r.jsx(
|
|
30720
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), onClick: t, disabled: !a, sx: {
|
|
30700
30721
|
borderTopRightRadius: 0,
|
|
30701
30722
|
borderBottomRightRadius: 0
|
|
30702
30723
|
}, children: e("common.actions.save_changes") }),
|
|
@@ -30733,7 +30754,7 @@ const CM = z(({
|
|
|
30733
30754
|
position: "relative"
|
|
30734
30755
|
}, children: [
|
|
30735
30756
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
30736
|
-
/* @__PURE__ */ r.jsx(
|
|
30757
|
+
/* @__PURE__ */ r.jsx(T, { size: "xs", color: i ? "red" : "green", leftIcon: /* @__PURE__ */ r.jsx(qm, { size: 20 }), onClick: a, children: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(_s, { i18nKey: "common.actions.end_editing", values: {
|
|
30737
30758
|
name: s.name
|
|
30738
30759
|
}, children: [
|
|
30739
30760
|
"End Editing ",
|
|
@@ -30756,10 +30777,10 @@ const CM = z(({
|
|
|
30756
30777
|
const {
|
|
30757
30778
|
t
|
|
30758
30779
|
} = y(), e = le(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === W.Tabs, s = () => e.addANewPanel(e.views.idOfVIE);
|
|
30759
|
-
return n ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(
|
|
30780
|
+
return n ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(co, { size: 20 }), sx: {
|
|
30760
30781
|
...Zo,
|
|
30761
30782
|
transform: "none !important"
|
|
30762
|
-
}, children: t("panel.add") }) }) : /* @__PURE__ */ r.jsx(
|
|
30783
|
+
}, children: t("panel.add") }) }) : /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(co, { size: 20 }), sx: {
|
|
30763
30784
|
...Zo,
|
|
30764
30785
|
background: "rgb(231, 245, 255)"
|
|
30765
30786
|
}, children: t("panel.add") });
|
|
@@ -30798,7 +30819,7 @@ const CM = z(({
|
|
|
30798
30819
|
}), f = l("list"), v = h.map((Z, we) => ({
|
|
30799
30820
|
...Z,
|
|
30800
30821
|
...f[we]
|
|
30801
|
-
})),
|
|
30822
|
+
})), I = () => {
|
|
30802
30823
|
m({
|
|
30803
30824
|
id: Ht(),
|
|
30804
30825
|
name: "",
|
|
@@ -30858,15 +30879,15 @@ const CM = z(({
|
|
|
30858
30879
|
backgroundColor: "transparent"
|
|
30859
30880
|
}, children: /* @__PURE__ */ r.jsx("td", { colSpan: 3, style: {
|
|
30860
30881
|
padding: "0"
|
|
30861
|
-
}, children: /* @__PURE__ */ r.jsx(me, { label: e("breakpoint.add"), children: /* @__PURE__ */ r.jsx(X, { variant: "subtle", size: "md", color: "blue", onClick:
|
|
30882
|
+
}, children: /* @__PURE__ */ r.jsx(me, { label: e("breakpoint.add"), children: /* @__PURE__ */ r.jsx(X, { variant: "subtle", size: "md", color: "blue", onClick: I, sx: {
|
|
30862
30883
|
width: "100%"
|
|
30863
30884
|
}, children: /* @__PURE__ */ r.jsx(Ct, { size: 18 }) }) }) }) })
|
|
30864
30885
|
] })
|
|
30865
30886
|
] }),
|
|
30866
30887
|
/* @__PURE__ */ r.jsx(w, { mt: 6, ta: "right", size: "xs", color: "red", children: Y ?? " " }),
|
|
30867
30888
|
/* @__PURE__ */ r.jsxs(b, { mt: 6, position: "apart", children: [
|
|
30868
|
-
/* @__PURE__ */ r.jsx(
|
|
30869
|
-
/* @__PURE__ */ r.jsx(
|
|
30889
|
+
/* @__PURE__ */ r.jsx(T, { color: "orange", size: "xs", onClick: () => d(), leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 18 }), disabled: !V, children: e("common.actions.revert") }),
|
|
30890
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", size: "xs", type: "submit", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), disabled: !V, children: e("common.actions.save_changes") })
|
|
30870
30891
|
] })
|
|
30871
30892
|
] }) });
|
|
30872
30893
|
}), DM = z(() => {
|
|
@@ -30885,7 +30906,7 @@ const CM = z(({
|
|
|
30885
30906
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30886
30907
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
30887
30908
|
/* @__PURE__ */ r.jsxs(J, { withArrow: !0, withinPortal: !0, zIndex: 320, trigger: "hover", children: [
|
|
30888
|
-
/* @__PURE__ */ r.jsx(J.Target, { children: /* @__PURE__ */ r.jsx(
|
|
30909
|
+
/* @__PURE__ */ r.jsx(J.Target, { children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Nm, { size: 16 }), sx: {
|
|
30889
30910
|
borderRadius: 0
|
|
30890
30911
|
}, children: /* @__PURE__ */ r.jsxs(b, { spacing: 6, children: [
|
|
30891
30912
|
/* @__PURE__ */ r.jsx(w, { size: "xs", fw: "normal", children: o.name }),
|
|
@@ -30923,10 +30944,10 @@ const CM = z(({
|
|
|
30923
30944
|
var a;
|
|
30924
30945
|
return (a = e.views.VIE) == null ? void 0 : a.downloadSchema();
|
|
30925
30946
|
};
|
|
30926
|
-
return n ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(
|
|
30947
|
+
return n ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(zn, { size: 16 }), sx: {
|
|
30927
30948
|
...el,
|
|
30928
30949
|
transform: "none !important"
|
|
30929
|
-
}, children: t("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(
|
|
30950
|
+
}, children: t("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(zn, { size: 16 }), sx: {
|
|
30930
30951
|
...el
|
|
30931
30952
|
// background: 'rgb(231, 245, 255)',
|
|
30932
30953
|
}, children: t("view.download_schema") });
|
|
@@ -31035,7 +31056,7 @@ const CM = z(({
|
|
|
31035
31056
|
} = y(), n = (s = t.definition) == null ? void 0 : s.sqlSnippets;
|
|
31036
31057
|
return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ r.jsxs(M, { children: [
|
|
31037
31058
|
/* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("sql_snippet.labels") }),
|
|
31038
|
-
/* @__PURE__ */ r.jsx(
|
|
31059
|
+
/* @__PURE__ */ r.jsx(lt, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r.jsx(Ei, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r.jsx(lt.Item, { children: i.key }, i.key)) })
|
|
31039
31060
|
] });
|
|
31040
31061
|
}, PM = ({
|
|
31041
31062
|
content: t
|
|
@@ -31046,7 +31067,7 @@ const CM = z(({
|
|
|
31046
31067
|
} = y(), n = Object.keys(((s = t.definition) == null ? void 0 : s.mock_context) ?? {});
|
|
31047
31068
|
return n.length === 0 ? null : /* @__PURE__ */ r.jsxs(M, { children: [
|
|
31048
31069
|
/* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("mock_context.label") }),
|
|
31049
|
-
/* @__PURE__ */ r.jsx(
|
|
31070
|
+
/* @__PURE__ */ r.jsx(lt, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r.jsx(Ei, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r.jsx(lt.Item, { children: i }, i)) })
|
|
31050
31071
|
] });
|
|
31051
31072
|
}, OM = ({
|
|
31052
31073
|
content: t
|
|
@@ -31133,16 +31154,16 @@ const VM = z(({
|
|
|
31133
31154
|
}));
|
|
31134
31155
|
};
|
|
31135
31156
|
}, [m]);
|
|
31136
|
-
const [f] = c(["content"]), v = !f,
|
|
31157
|
+
const [f] = c(["content"]), v = !f, I = (R = o == null ? void 0 : o.content) == null ? void 0 : R.message;
|
|
31137
31158
|
return B(() => {
|
|
31138
|
-
!f ||
|
|
31139
|
-
}, [f,
|
|
31159
|
+
!f || I ? n() : e();
|
|
31160
|
+
}, [f, I]), /* @__PURE__ */ r.jsx(M, { mx: "auto", sx: {
|
|
31140
31161
|
position: "relative"
|
|
31141
31162
|
}, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(h), children: [
|
|
31142
31163
|
/* @__PURE__ */ r.jsx(Sh, { label: s("import.json_file"), required: !0, value: m, onChange: x, error: (P = o == null ? void 0 : o.content) == null ? void 0 : P.message, sx: {
|
|
31143
31164
|
maxWidth: 500
|
|
31144
31165
|
} }),
|
|
31145
|
-
|
|
31166
|
+
I ? /* @__PURE__ */ r.jsx(Pe, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
31146
31167
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
31147
31168
|
/* @__PURE__ */ r.jsx("th", { children: s("import.this_dashboard") }),
|
|
31148
31169
|
/* @__PURE__ */ r.jsx("td", { children: hn })
|
|
@@ -31155,7 +31176,7 @@ const VM = z(({
|
|
|
31155
31176
|
] })
|
|
31156
31177
|
] }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
31157
31178
|
/* @__PURE__ */ r.jsx(OM, { content: f }),
|
|
31158
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(
|
|
31179
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(T, { type: "submit", color: "green", disabled: v, children: s("common.actions.confirm") }) })
|
|
31159
31180
|
] })
|
|
31160
31181
|
] }) });
|
|
31161
31182
|
}), tl = {
|
|
@@ -31174,12 +31195,12 @@ const VM = z(({
|
|
|
31174
31195
|
}] = on(!1), [i, {
|
|
31175
31196
|
setTrue: a,
|
|
31176
31197
|
setFalse: o
|
|
31177
|
-
}] =
|
|
31178
|
-
return c ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(
|
|
31198
|
+
}] = rt(!1), c = ((d = he().content.views.VIE) == null ? void 0 : d.type) === W.Tabs;
|
|
31199
|
+
return c ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(uo, { size: 16 }), sx: {
|
|
31179
31200
|
...tl,
|
|
31180
31201
|
transform: "none !important"
|
|
31181
31202
|
}, children: t("import.label") }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
31182
|
-
/* @__PURE__ */ r.jsx(
|
|
31203
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", color: "blue", radius: 0, size: "xs", disabled: c || e, onClick: n, leftIcon: /* @__PURE__ */ r.jsx(uo, { size: 16 }), sx: {
|
|
31183
31204
|
...tl
|
|
31184
31205
|
// background: 'rgb(231, 245, 255)',
|
|
31185
31206
|
}, children: t("import.label") }),
|
|
@@ -31258,18 +31279,18 @@ function GM(t, e, n) {
|
|
|
31258
31279
|
case "builtin:op:set_filter_values":
|
|
31259
31280
|
o.type = "interaction", o.data.interactions.push({
|
|
31260
31281
|
schemaRef: m,
|
|
31261
|
-
filters: Object.keys(f.dictionary).map((
|
|
31262
|
-
key:
|
|
31263
|
-
label: n[
|
|
31282
|
+
filters: Object.keys(f.dictionary).map((I) => ({
|
|
31283
|
+
key: I,
|
|
31284
|
+
label: n[I]
|
|
31264
31285
|
}))
|
|
31265
31286
|
});
|
|
31266
31287
|
return;
|
|
31267
31288
|
case "builtin:op:clear_filter_values":
|
|
31268
31289
|
o.type = "interaction", o.data.interactions.push({
|
|
31269
31290
|
schemaRef: m,
|
|
31270
|
-
filters: f.filter_keys.map((
|
|
31271
|
-
key:
|
|
31272
|
-
label: n[
|
|
31291
|
+
filters: f.filter_keys.map((I) => ({
|
|
31292
|
+
key: I,
|
|
31293
|
+
label: n[I]
|
|
31273
31294
|
}))
|
|
31274
31295
|
});
|
|
31275
31296
|
return;
|
|
@@ -31310,8 +31331,8 @@ function JM(t, e) {
|
|
|
31310
31331
|
x: xs,
|
|
31311
31332
|
y: c
|
|
31312
31333
|
},
|
|
31313
|
-
sourcePosition:
|
|
31314
|
-
targetPosition:
|
|
31334
|
+
sourcePosition: jt.Right,
|
|
31335
|
+
targetPosition: jt.Left,
|
|
31315
31336
|
style: {
|
|
31316
31337
|
width: nl,
|
|
31317
31338
|
height: ns
|
|
@@ -31331,8 +31352,8 @@ function JM(t, e) {
|
|
|
31331
31352
|
x: xs,
|
|
31332
31353
|
y: c
|
|
31333
31354
|
},
|
|
31334
|
-
sourcePosition:
|
|
31335
|
-
targetPosition:
|
|
31355
|
+
sourcePosition: jt.Right,
|
|
31356
|
+
targetPosition: jt.Left,
|
|
31336
31357
|
style: {
|
|
31337
31358
|
width: nl,
|
|
31338
31359
|
height: ns
|
|
@@ -31364,8 +31385,8 @@ function eL(t) {
|
|
|
31364
31385
|
x: 0,
|
|
31365
31386
|
y: 0
|
|
31366
31387
|
},
|
|
31367
|
-
sourcePosition:
|
|
31368
|
-
targetPosition:
|
|
31388
|
+
sourcePosition: jt.Right,
|
|
31389
|
+
targetPosition: jt.Left,
|
|
31369
31390
|
className: "light",
|
|
31370
31391
|
style: {
|
|
31371
31392
|
backgroundColor: ZM[n.type],
|
|
@@ -31395,7 +31416,7 @@ function rL({
|
|
|
31395
31416
|
edges: n
|
|
31396
31417
|
}) {
|
|
31397
31418
|
e.forEach((s) => {
|
|
31398
|
-
s._node_type !== "view-root" || s._view_type !== W.Tabs || (s.sourcePosition =
|
|
31419
|
+
s._node_type !== "view-root" || s._view_type !== W.Tabs || (s.sourcePosition = jt.Bottom, s.style.width = La + xs * 2, s.style.height = Eu + s._tab_view_ids.reduce((i, a) => {
|
|
31399
31420
|
const o = t[a];
|
|
31400
31421
|
o.position.y = i, o.position.x = xs;
|
|
31401
31422
|
const l = o.style.height;
|
|
@@ -31428,7 +31449,7 @@ function iL({
|
|
|
31428
31449
|
const a = t[i.source], o = t[i.target];
|
|
31429
31450
|
if (a && o && a.parentNode) {
|
|
31430
31451
|
const l = t[a.parentNode], c = l.position.x, d = Number(k.get(o, "style.height", 0)), u = Number(l.style.width);
|
|
31431
|
-
o.position.x = c + u + KM, l._view_level === 0 && o._sub_view_ids.length === 0 && (a.sourcePosition =
|
|
31452
|
+
o.position.x = c + u + KM, l._view_level === 0 && o._sub_view_ids.length === 0 && (a.sourcePosition = jt.Left, o.targetPosition = jt.Right, o.position.x *= -1);
|
|
31432
31453
|
const m = o.position.x, x = k.get(s, m, 0);
|
|
31433
31454
|
o.position.y = x, s[m] = x + d + Au;
|
|
31434
31455
|
}
|
|
@@ -31527,8 +31548,8 @@ function cL(t) {
|
|
|
31527
31548
|
const dL = fh(({
|
|
31528
31549
|
data: t,
|
|
31529
31550
|
isConnectable: e,
|
|
31530
|
-
sourcePosition: n =
|
|
31531
|
-
targetPosition: s =
|
|
31551
|
+
sourcePosition: n = jt.Right,
|
|
31552
|
+
targetPosition: s = jt.Left,
|
|
31532
31553
|
...i
|
|
31533
31554
|
}) => {
|
|
31534
31555
|
const a = C(() => cL(t.interactions), [t.interactions]);
|
|
@@ -31541,7 +31562,7 @@ const dL = fh(({
|
|
|
31541
31562
|
}, children: /* @__PURE__ */ r.jsx(jm, { size: 12 }) }),
|
|
31542
31563
|
/* @__PURE__ */ r.jsxs(Te, { shadow: "xl", withinPortal: !0, children: [
|
|
31543
31564
|
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(w, { children: t.label }) }),
|
|
31544
|
-
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(
|
|
31565
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(lt, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(lt.Item, { icon: o.icon, children: o.text }, o.key)) }) })
|
|
31545
31566
|
] }),
|
|
31546
31567
|
/* @__PURE__ */ r.jsx(po, { type: "source", position: n, isConnectable: e })
|
|
31547
31568
|
] });
|
|
@@ -31655,7 +31676,7 @@ const gL = z(() => {
|
|
|
31655
31676
|
}, children: [
|
|
31656
31677
|
n.views.options.map((a) => /* @__PURE__ */ r.jsx(xL, { active: n.views.idOfVIE === a.value, name: a.label, onClick: s(a.value), openSettings: () => i(a.value) }, a.value)),
|
|
31657
31678
|
/* @__PURE__ */ r.jsx(E, { variant: "dashed" }),
|
|
31658
|
-
/* @__PURE__ */ r.jsx(
|
|
31679
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: n.views.addARandomNewView, sx: {
|
|
31659
31680
|
width: "100%",
|
|
31660
31681
|
borderRadius: 0
|
|
31661
31682
|
}, styles: {
|
|
@@ -31720,7 +31741,7 @@ const gL = z(() => {
|
|
|
31720
31741
|
}, children: /* @__PURE__ */ r.jsx(gL, {}) }),
|
|
31721
31742
|
/* @__PURE__ */ r.jsx(Gt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
|
|
31722
31743
|
borderTop: "1px solid #eee"
|
|
31723
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
31744
|
+
}, children: /* @__PURE__ */ r.jsx(T, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Tr, { size: 20 }), onClick: () => e.editor.open([]), children: t("common.titles.settings") }) }) })
|
|
31724
31745
|
] });
|
|
31725
31746
|
}), bL = {
|
|
31726
31747
|
[be.Checkbox]: "true",
|
|
@@ -31744,9 +31765,9 @@ const gL = z(() => {
|
|
|
31744
31765
|
alignSelf: "flex-start"
|
|
31745
31766
|
},
|
|
31746
31767
|
leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 })
|
|
31747
|
-
}, description: /* @__PURE__ */ r.jsx(vr, { title: e("filter.field.custom_default_value.tips"), color: "gray", mb: 16, children: /* @__PURE__ */ r.jsxs(
|
|
31748
|
-
/* @__PURE__ */ r.jsx(
|
|
31749
|
-
/* @__PURE__ */ r.jsx(
|
|
31768
|
+
}, description: /* @__PURE__ */ r.jsx(vr, { title: e("filter.field.custom_default_value.tips"), color: "gray", mb: 16, children: /* @__PURE__ */ r.jsxs(lt, { size: 13, type: "ordered", children: [
|
|
31769
|
+
/* @__PURE__ */ r.jsx(lt.Item, { children: e("filter.field.custom_default_value.tip_1") }),
|
|
31770
|
+
/* @__PURE__ */ r.jsx(lt.Item, { children: e("filter.field.custom_default_value.tip_2") })
|
|
31750
31771
|
] }) }) });
|
|
31751
31772
|
}), _L = z(function({
|
|
31752
31773
|
filter: e
|
|
@@ -31832,7 +31853,7 @@ const gL = z(() => {
|
|
|
31832
31853
|
};
|
|
31833
31854
|
return /* @__PURE__ */ r.jsx(O, { label: /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
31834
31855
|
/* @__PURE__ */ r.jsx(w, { children: n("filter.widget.common.use_query_data_as_options") }),
|
|
31835
|
-
t && /* @__PURE__ */ r.jsx(
|
|
31856
|
+
t && /* @__PURE__ */ r.jsx(T, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(mi, { size: 16 }), variant: "subtle", color: "blue", onClick: () => l(t), children: n("query.open") })
|
|
31836
31857
|
] }), data: a, value: t, onChange: e, allowDeselect: !1, clearable: !0, sx: {
|
|
31837
31858
|
flexGrow: 1
|
|
31838
31859
|
}, disabled: o, error: o ? "You need to add a query in Data Settings" : void 0, styles: {
|
|
@@ -31852,7 +31873,7 @@ const gL = z(() => {
|
|
|
31852
31873
|
t
|
|
31853
31874
|
} = y(), [e, n] = H(!1);
|
|
31854
31875
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
31855
|
-
/* @__PURE__ */ r.jsx(
|
|
31876
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
31856
31877
|
/* @__PURE__ */ r.jsx(kr, { in: e, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: wL }) })
|
|
31857
31878
|
] });
|
|
31858
31879
|
}, kL = z(function({
|
|
@@ -31913,7 +31934,7 @@ const gL = z(() => {
|
|
|
31913
31934
|
right: 5
|
|
31914
31935
|
}, children: /* @__PURE__ */ r.jsx(Ot, { size: 16 }) })
|
|
31915
31936
|
] }, c)),
|
|
31916
|
-
/* @__PURE__ */ r.jsx(
|
|
31937
|
+
/* @__PURE__ */ r.jsx(T, { mt: 10, size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(vs, { size: 20 }), onClick: i, sx: {
|
|
31917
31938
|
width: "50%"
|
|
31918
31939
|
}, mx: "auto", children: n("common.actions.add_an_option") })
|
|
31919
31940
|
] }),
|
|
@@ -31985,7 +32006,7 @@ const gL = z(() => {
|
|
|
31985
32006
|
right: 5
|
|
31986
32007
|
}, children: /* @__PURE__ */ r.jsx(Ot, { size: 16 }) })
|
|
31987
32008
|
] }, d)),
|
|
31988
|
-
/* @__PURE__ */ r.jsx(
|
|
32009
|
+
/* @__PURE__ */ r.jsx(T, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(vs, { size: 20 }), onClick: a, sx: {
|
|
31989
32010
|
width: "50%"
|
|
31990
32011
|
}, mx: "auto", children: n("common.actions.add_an_option") })
|
|
31991
32012
|
] }),
|
|
@@ -32024,7 +32045,7 @@ const gL = z(() => {
|
|
|
32024
32045
|
t
|
|
32025
32046
|
} = y(), [e, n] = H(!1);
|
|
32026
32047
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
32027
|
-
/* @__PURE__ */ r.jsx(
|
|
32048
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
32028
32049
|
/* @__PURE__ */ r.jsx(kr, { in: e, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: zL }) })
|
|
32029
32050
|
] });
|
|
32030
32051
|
}, TL = z(function({
|
|
@@ -32170,7 +32191,7 @@ const gL = z(() => {
|
|
|
32170
32191
|
maxWidth: "1100px",
|
|
32171
32192
|
height: "100vh"
|
|
32172
32193
|
}, spacing: "sm", pb: 30, children: [
|
|
32173
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(
|
|
32194
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(T, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), onClick: l, children: e("filter.delete") }) }),
|
|
32174
32195
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
32175
32196
|
flexGrow: 1,
|
|
32176
32197
|
maxHeight: "calc(100% - 52px)",
|
|
@@ -32199,12 +32220,12 @@ const gL = z(() => {
|
|
|
32199
32220
|
cursor: "default"
|
|
32200
32221
|
}, children: t("filter.manage") }) }),
|
|
32201
32222
|
/* @__PURE__ */ r.jsx(Jt, { justify: "space-between", align: "center", px: 12, children: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
32202
|
-
/* @__PURE__ */ r.jsxs(
|
|
32203
|
-
/* @__PURE__ */ r.jsx(
|
|
32204
|
-
/* @__PURE__ */ r.jsx(
|
|
32223
|
+
/* @__PURE__ */ r.jsxs(T.Group, { children: [
|
|
32224
|
+
/* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: l, children: t("common.actions.select_all") }),
|
|
32225
|
+
/* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: c, children: t("common.actions.clear_selection") })
|
|
32205
32226
|
] }),
|
|
32206
32227
|
/* @__PURE__ */ r.jsx(
|
|
32207
|
-
|
|
32228
|
+
T,
|
|
32208
32229
|
{
|
|
32209
32230
|
size: "xs",
|
|
32210
32231
|
color: "blue",
|
|
@@ -32246,7 +32267,7 @@ const gL = z(() => {
|
|
|
32246
32267
|
/* @__PURE__ */ r.jsx("td", { children: d.label }),
|
|
32247
32268
|
/* @__PURE__ */ r.jsx("td", { children: d.key }),
|
|
32248
32269
|
/* @__PURE__ */ r.jsx("td", { children: t(xn[d.type]) }),
|
|
32249
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
32270
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", onClick: () => i(d.id), children: t("common.actions.open") }) })
|
|
32250
32271
|
] }, d.id)) })
|
|
32251
32272
|
] }) }) })
|
|
32252
32273
|
] });
|
|
@@ -32610,7 +32631,7 @@ const BL = [{
|
|
|
32610
32631
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
32611
32632
|
/* @__PURE__ */ r.jsx(Ch, { 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(S, { spacing: "lg", children: s.queries.options.map((d) => /* @__PURE__ */ r.jsx(ee, { label: d.label, value: d.value }, d.value)) }) }) }),
|
|
32612
32633
|
/* @__PURE__ */ r.jsxs(S, { spacing: 6, children: [
|
|
32613
|
-
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(
|
|
32634
|
+
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(T, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(Um, { size: 16 }), onClick: () => o(!0), children: e(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
|
|
32614
32635
|
c === 1 && /* @__PURE__ */ r.jsx(Ii, { id: i.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(me, { label: e("query.open"), children: /* @__PURE__ */ r.jsx(X, { variant: "subtle", color: "blue", onClick: () => l(i.queryIDs[0]), children: /* @__PURE__ */ r.jsx(mi, { size: 16 }) }) }) }),
|
|
32615
32636
|
c > 1 && /* @__PURE__ */ r.jsxs(_, { defaultValue: i.queryIDs[0], children: [
|
|
32616
32637
|
/* @__PURE__ */ r.jsx(_.List, { children: i.queries.map((d) => /* @__PURE__ */ r.jsx(_.Tab, { value: d.id, children: d.name }, d.id)) }),
|
|
@@ -32864,14 +32885,14 @@ const tR = L.forwardRef(eR), nR = L.forwardRef(function({
|
|
|
32864
32885
|
/* @__PURE__ */ r.jsx(aa, { label: o("panel.variable.aggregation.label"), pt: 0, value: e.aggregation, onChange: (c) => l("aggregation", c), withFallback: !0 }),
|
|
32865
32886
|
e.aggregation.type !== "custom" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
32866
32887
|
/* @__PURE__ */ r.jsx(E, { mt: "xl", mb: 0, label: o("numbro.format.label"), labelPosition: "center", variant: "dashed" }),
|
|
32867
|
-
/* @__PURE__ */ r.jsx(
|
|
32888
|
+
/* @__PURE__ */ r.jsx(_t, { value: e.formatter, onChange: (c) => l("formatter", c) })
|
|
32868
32889
|
] })
|
|
32869
32890
|
] }),
|
|
32870
32891
|
s && /* @__PURE__ */ r.jsx(qr, { variant: "contained", children: /* @__PURE__ */ r.jsxs(qr.Item, { value: "Styles", children: [
|
|
32871
32892
|
/* @__PURE__ */ r.jsx(qr.Control, { icon: /* @__PURE__ */ r.jsx(w, { size: "xl", children: "🖼️" }), children: o("style.label") }),
|
|
32872
32893
|
/* @__PURE__ */ r.jsx(qr.Panel, { children: /* @__PURE__ */ r.jsx(nR, { value: e, onChange: n }) })
|
|
32873
32894
|
] }) }),
|
|
32874
|
-
/* @__PURE__ */ r.jsx(
|
|
32895
|
+
/* @__PURE__ */ r.jsx(T, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), color: "red", variant: "light", onClick: i, children: o("panel.variable.delete") })
|
|
32875
32896
|
] });
|
|
32876
32897
|
}), sR = z((t) => {
|
|
32877
32898
|
const {
|
|
@@ -32879,8 +32900,8 @@ const tR = L.forwardRef(eR), nR = L.forwardRef(function({
|
|
|
32879
32900
|
} = y(), n = kt(() => pD(t.variable), [t.variable]), s = () => t.uiModel.remove(t.variable);
|
|
32880
32901
|
return /* @__PURE__ */ r.jsxs(S, { "data-testid": "variable-editor", align: "stretch", children: [
|
|
32881
32902
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
32882
|
-
/* @__PURE__ */ r.jsx(
|
|
32883
|
-
/* @__PURE__ */ r.jsx(
|
|
32903
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 18 }), children: e("common.actions.revert_changes") }),
|
|
32904
|
+
/* @__PURE__ */ r.jsx(T, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), children: e("common.actions.save_changes") })
|
|
32884
32905
|
] }),
|
|
32885
32906
|
/* @__PURE__ */ r.jsx(rR, { value: Lt(n.copy), onChange: n.update, remove: s })
|
|
32886
32907
|
] });
|
|
@@ -32889,7 +32910,7 @@ z((t) => {
|
|
|
32889
32910
|
const {
|
|
32890
32911
|
uiModel: e
|
|
32891
32912
|
} = t;
|
|
32892
|
-
return /* @__PURE__ */ r.jsx(S, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ r.jsx(
|
|
32913
|
+
return /* @__PURE__ */ r.jsx(S, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ r.jsx(T, { variant: e.selected === n ? "filled" : "subtle", color: "gray", onClick: () => e.select(n), children: n.name }, n.name)) });
|
|
32893
32914
|
});
|
|
32894
32915
|
const iR = z(({
|
|
32895
32916
|
model: t
|
|
@@ -32899,7 +32920,7 @@ const iR = z(({
|
|
|
32899
32920
|
} = y();
|
|
32900
32921
|
return /* @__PURE__ */ r.jsx(Zn, { color: "#fff", opacity: 1, sx: {
|
|
32901
32922
|
position: "absolute"
|
|
32902
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
32923
|
+
}, children: /* @__PURE__ */ r.jsx(T, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 16 }), onClick: t.addNew, sx: {
|
|
32903
32924
|
flexGrow: 0,
|
|
32904
32925
|
flexShrink: 0,
|
|
32905
32926
|
alignSelf: "flex-end",
|
|
@@ -32915,7 +32936,7 @@ const iR = z(({
|
|
|
32915
32936
|
/* @__PURE__ */ r.jsx(O, { label: t("panel.variable.labels"), data: e.variableOptions, value: (n = e.selected) == null ? void 0 : n.name, onChange: e.selectByName, maxDropdownHeight: 600, sx: {
|
|
32916
32937
|
flexGrow: 1
|
|
32917
32938
|
} }),
|
|
32918
|
-
/* @__PURE__ */ r.jsx(
|
|
32939
|
+
/* @__PURE__ */ r.jsx(T, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 16 }), onClick: e.addNew, sx: {
|
|
32919
32940
|
flexGrow: 0,
|
|
32920
32941
|
flexShrink: 0,
|
|
32921
32942
|
alignSelf: "flex-end",
|
|
@@ -33057,7 +33078,7 @@ const hR = z(() => {
|
|
|
33057
33078
|
t.moveToView(e, i), c();
|
|
33058
33079
|
};
|
|
33059
33080
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
33060
|
-
/* @__PURE__ */ r.jsx(
|
|
33081
|
+
/* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ r.jsx(Rl, { size: 14 }), children: n("panel.settings.change_view") }),
|
|
33061
33082
|
/* @__PURE__ */ r.jsx(Se, { opened: o, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(S, { sx: {
|
|
33062
33083
|
maxHeight: "calc(100vh - 185px)",
|
|
33063
33084
|
overflow: "hidden"
|
|
@@ -33071,8 +33092,8 @@ const hR = z(() => {
|
|
|
33071
33092
|
flexGrow: 0,
|
|
33072
33093
|
flexShrink: 0
|
|
33073
33094
|
}, children: [
|
|
33074
|
-
/* @__PURE__ */ r.jsx(
|
|
33075
|
-
/* @__PURE__ */ r.jsx(
|
|
33095
|
+
/* @__PURE__ */ r.jsx(T, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Al, { size: 14 }), onClick: c, children: n("common.actions.cancel") }),
|
|
33096
|
+
/* @__PURE__ */ r.jsx(T, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 14 }), onClick: d, disabled: i === e, children: n("common.actions.confirm") })
|
|
33076
33097
|
] })
|
|
33077
33098
|
] }) })
|
|
33078
33099
|
] });
|
|
@@ -33157,7 +33178,7 @@ const gR = z(({
|
|
|
33157
33178
|
/* @__PURE__ */ r.jsx(w, { pt: 9, pb: 8, children: t.name }),
|
|
33158
33179
|
/* @__PURE__ */ r.jsxs(b, { position: "right", noWrap: !0, children: [
|
|
33159
33180
|
/* @__PURE__ */ r.jsx(mR, { panel: t, sourceViewID: h }),
|
|
33160
|
-
/* @__PURE__ */ r.jsx(
|
|
33181
|
+
/* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", color: "red", onClick: x, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), children: e("panel.delete") })
|
|
33161
33182
|
] })
|
|
33162
33183
|
] }),
|
|
33163
33184
|
/* @__PURE__ */ r.jsxs(_, { value: a, onTabChange: o, keepMounted: !1, styles: pR, children: [
|
|
@@ -33233,12 +33254,12 @@ const gR = z(({
|
|
|
33233
33254
|
}, children: t("query.manage") }) }),
|
|
33234
33255
|
/* @__PURE__ */ r.jsxs(Jt, { justify: "space-between", align: "center", px: 12, children: [
|
|
33235
33256
|
/* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
33236
|
-
/* @__PURE__ */ r.jsxs(
|
|
33237
|
-
/* @__PURE__ */ r.jsx(
|
|
33238
|
-
/* @__PURE__ */ r.jsx(
|
|
33257
|
+
/* @__PURE__ */ r.jsxs(T.Group, { children: [
|
|
33258
|
+
/* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: d, children: t("common.actions.select_all") }),
|
|
33259
|
+
/* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: u, children: t("common.actions.clear_selection") })
|
|
33239
33260
|
] }),
|
|
33240
33261
|
/* @__PURE__ */ r.jsx(
|
|
33241
|
-
|
|
33262
|
+
T,
|
|
33242
33263
|
{
|
|
33243
33264
|
size: "xs",
|
|
33244
33265
|
color: "blue",
|
|
@@ -33249,7 +33270,7 @@ const gR = z(({
|
|
|
33249
33270
|
}
|
|
33250
33271
|
)
|
|
33251
33272
|
] }),
|
|
33252
|
-
/* @__PURE__ */ r.jsx(
|
|
33273
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), disabled: !i.content.hasUnusedQueries, onClick: o, children: t("query.delete_unused") })
|
|
33253
33274
|
] }),
|
|
33254
33275
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
33255
33276
|
flexGrow: 1,
|
|
@@ -33297,7 +33318,7 @@ const gR = z(({
|
|
|
33297
33318
|
fontWeight: x === 0 ? "bold" : "normal",
|
|
33298
33319
|
textAlign: "center"
|
|
33299
33320
|
}, children: x }),
|
|
33300
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
33321
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", onClick: () => a(m.id), children: t("common.actions.open") }) })
|
|
33301
33322
|
] }, m.id);
|
|
33302
33323
|
}) })
|
|
33303
33324
|
] }) }) })
|
|
@@ -33330,7 +33351,7 @@ const gR = z(({
|
|
|
33330
33351
|
touch: !1
|
|
33331
33352
|
}, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r.jsx(M, { sx: {
|
|
33332
33353
|
alignSelf: "flex-end"
|
|
33333
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
33354
|
+
}, children: /* @__PURE__ */ r.jsx(T, { disabled: !0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), children: e("query.delete") }) }) }) : /* @__PURE__ */ r.jsx(T, { color: "red", size: "xs", onClick: c, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), sx: {
|
|
33334
33355
|
alignSelf: "flex-end"
|
|
33335
33356
|
}, children: e("query.delete") });
|
|
33336
33357
|
}, _R = z(yR), Fu = ({
|
|
@@ -33715,7 +33736,7 @@ const IR = z(({
|
|
|
33715
33736
|
] }), zIndex: 320, size: "96vw", styles: $R, children: /* @__PURE__ */ r.jsx(M, { sx: {
|
|
33716
33737
|
height: "calc(100vh - 220px)"
|
|
33717
33738
|
}, children: /* @__PURE__ */ r.jsx(AR, { dataSource: t }) }) }),
|
|
33718
|
-
/* @__PURE__ */ r.jsx(
|
|
33739
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
|
|
33719
33740
|
inner: {
|
|
33720
33741
|
justifyContent: "flex-start"
|
|
33721
33742
|
}
|
|
@@ -33919,7 +33940,7 @@ WHERE
|
|
|
33919
33940
|
} = y(), [e, n] = H(!1);
|
|
33920
33941
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
33921
33942
|
/* @__PURE__ */ r.jsx(Se, { opened: e, onClose: () => n(!1), title: t("query_variable.labels"), zIndex: 320, size: "800px", children: /* @__PURE__ */ r.jsx(qu, {}) }),
|
|
33922
|
-
/* @__PURE__ */ r.jsx(
|
|
33943
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", onClick: () => n(!0), px: 16, styles: {
|
|
33923
33944
|
inner: {
|
|
33924
33945
|
justifyContent: "flex-start"
|
|
33925
33946
|
}
|
|
@@ -34018,21 +34039,21 @@ WHERE
|
|
|
34018
34039
|
t: e
|
|
34019
34040
|
} = y(), n = C(() => k.groupBy(t.dependencies, "type"), [t.dependencies]), s = C(() => t.dependencies.some((a) => !a.valid), [t.dependencies]), i = t.dependencies.length > 0;
|
|
34020
34041
|
return i ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !i, children: [
|
|
34021
|
-
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(
|
|
34022
|
-
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(
|
|
34042
|
+
/* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(El, { size: 16 }) : /* @__PURE__ */ r.jsx(ep, { size: 16 }), children: e("query.dependency.label") }) }),
|
|
34043
|
+
/* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(lt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(lt.Item, { children: [
|
|
34023
34044
|
/* @__PURE__ */ r.jsx(w, { fw: "bold", ff: "monospace", children: e(`${a}.label`) }),
|
|
34024
|
-
/* @__PURE__ */ r.jsx(
|
|
34045
|
+
/* @__PURE__ */ r.jsx(lt, { withPadding: !0, size: 14, sx: {
|
|
34025
34046
|
fontFamily: "monospace",
|
|
34026
34047
|
svg: {
|
|
34027
34048
|
verticalAlign: "middle"
|
|
34028
34049
|
}
|
|
34029
|
-
}, children: o.map((l) => /* @__PURE__ */ r.jsx(
|
|
34050
|
+
}, children: o.map((l) => /* @__PURE__ */ r.jsx(lt.Item, { icon: /* @__PURE__ */ r.jsx(M, { sx: {
|
|
34030
34051
|
path: {
|
|
34031
34052
|
fill: l.valid ? "rgb(18, 184, 134)" : "rgb(250, 82, 82)"
|
|
34032
34053
|
}
|
|
34033
34054
|
}, children: /* @__PURE__ */ r.jsx(Ei, { size: 12 }) }), children: l.key }, l.key)) })
|
|
34034
34055
|
] }, a)) }) })
|
|
34035
|
-
] }) : /* @__PURE__ */ r.jsx(me, { label: e("query.dependency.has_none"), children: /* @__PURE__ */ r.jsx(
|
|
34056
|
+
] }) : /* @__PURE__ */ r.jsx(me, { label: e("query.dependency.has_none"), children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", color: "gray", leftIcon: /* @__PURE__ */ r.jsx(Zm, { size: 16, style: {
|
|
34036
34057
|
transform: "rotate(180deg)"
|
|
34037
34058
|
} }), sx: {
|
|
34038
34059
|
transform: "none !important"
|
|
@@ -34062,9 +34083,9 @@ WHERE
|
|
|
34062
34083
|
}, children: [
|
|
34063
34084
|
/* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(GR, { queryModel: t }) }),
|
|
34064
34085
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
34065
|
-
/* @__PURE__ */ r.jsx(
|
|
34066
|
-
/* @__PURE__ */ r.jsx(
|
|
34067
|
-
/* @__PURE__ */ r.jsx(
|
|
34086
|
+
/* @__PURE__ */ r.jsx(T, { onClick: o, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(Dl, { size: 16 }), children: e("common.actions.reset_to_default") }),
|
|
34087
|
+
/* @__PURE__ */ r.jsx(T, { onClick: a, color: "red", size: "xs", disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 16 }), children: e("common.actions.revert_changes") }),
|
|
34088
|
+
/* @__PURE__ */ r.jsx(T, { color: "green", size: "xs", onClick: i, disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), children: e("common.actions.save_changes") })
|
|
34068
34089
|
] })
|
|
34069
34090
|
] }),
|
|
34070
34091
|
/* @__PURE__ */ r.jsx(Aa, { height: "100%", value: n, onChange: s, theme: "sql-dark", defaultLanguage: "sql" })
|
|
@@ -34213,7 +34234,7 @@ WHERE
|
|
|
34213
34234
|
B(() => {
|
|
34214
34235
|
l(t.key), m(t.value);
|
|
34215
34236
|
}, [t]);
|
|
34216
|
-
const f = h !== t.value, v = Pt(),
|
|
34237
|
+
const f = h !== t.value, v = Pt(), I = () => {
|
|
34217
34238
|
v.openConfirmModal({
|
|
34218
34239
|
title: `${s("sql_snippet.delete")}?`,
|
|
34219
34240
|
labels: {
|
|
@@ -34250,7 +34271,7 @@ WHERE
|
|
|
34250
34271
|
error: u
|
|
34251
34272
|
}
|
|
34252
34273
|
),
|
|
34253
|
-
/* @__PURE__ */ r.jsx(
|
|
34274
|
+
/* @__PURE__ */ r.jsx(T, { leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), color: "red", variant: "light", onClick: I, children: s("sql_snippet.delete") })
|
|
34254
34275
|
] }),
|
|
34255
34276
|
/* @__PURE__ */ r.jsxs(_, { value: i, onTabChange: a, sx: {
|
|
34256
34277
|
flexGrow: 1
|
|
@@ -34333,12 +34354,12 @@ WHERE
|
|
|
34333
34354
|
}, children: t("sql_snippet.manage") }) }),
|
|
34334
34355
|
/* @__PURE__ */ r.jsxs(Jt, { justify: "space-between", align: "center", px: 12, children: [
|
|
34335
34356
|
/* @__PURE__ */ r.jsxs(b, { position: "left", children: [
|
|
34336
|
-
/* @__PURE__ */ r.jsxs(
|
|
34337
|
-
/* @__PURE__ */ r.jsx(
|
|
34338
|
-
/* @__PURE__ */ r.jsx(
|
|
34357
|
+
/* @__PURE__ */ r.jsxs(T.Group, { children: [
|
|
34358
|
+
/* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: d, children: t("common.actions.select_all") }),
|
|
34359
|
+
/* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: u, children: t("common.actions.clear_selection") })
|
|
34339
34360
|
] }),
|
|
34340
34361
|
/* @__PURE__ */ r.jsx(
|
|
34341
|
-
|
|
34362
|
+
T,
|
|
34342
34363
|
{
|
|
34343
34364
|
size: "xs",
|
|
34344
34365
|
color: "blue",
|
|
@@ -34349,7 +34370,7 @@ WHERE
|
|
|
34349
34370
|
}
|
|
34350
34371
|
)
|
|
34351
34372
|
] }),
|
|
34352
|
-
/* @__PURE__ */ r.jsx(
|
|
34373
|
+
/* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), disabled: !i.content.hasUnusedSQLSnippets, onClick: o, children: t("sql_snippet.delete_unused") })
|
|
34353
34374
|
] }),
|
|
34354
34375
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
34355
34376
|
flexGrow: 1,
|
|
@@ -34386,7 +34407,7 @@ WHERE
|
|
|
34386
34407
|
fontWeight: x === 0 ? "bold" : "normal",
|
|
34387
34408
|
textAlign: "center"
|
|
34388
34409
|
}, children: x }),
|
|
34389
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
34410
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", onClick: () => a(m.key), children: t("common.actions.open") }) })
|
|
34390
34411
|
] }, m.key);
|
|
34391
34412
|
}) })
|
|
34392
34413
|
] }) }) })
|
|
@@ -34452,7 +34473,7 @@ WHERE
|
|
|
34452
34473
|
} = y(), [s, {
|
|
34453
34474
|
setTrue: i,
|
|
34454
34475
|
setFalse: a
|
|
34455
|
-
}] =
|
|
34476
|
+
}] = rt(), [o, l] = H(t ?? zi), c = (x) => {
|
|
34456
34477
|
l({
|
|
34457
34478
|
...o,
|
|
34458
34479
|
enabled: x
|
|
@@ -34485,10 +34506,10 @@ WHERE
|
|
|
34485
34506
|
/* @__PURE__ */ r.jsx(ee, { mt: 10, label: n("common.enabled"), checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
|
|
34486
34507
|
/* @__PURE__ */ r.jsx(oE, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
34487
34508
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
34488
|
-
/* @__PURE__ */ r.jsx(
|
|
34509
|
+
/* @__PURE__ */ r.jsx(T, { onClick: m, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.revert") }),
|
|
34489
34510
|
/* @__PURE__ */ r.jsxs(b, { position: "right", children: [
|
|
34490
|
-
/* @__PURE__ */ r.jsx(
|
|
34491
|
-
/* @__PURE__ */ r.jsx(
|
|
34511
|
+
/* @__PURE__ */ r.jsx(T, { onClick: u, variant: "subtle", children: n("common.actions.cancel") }),
|
|
34512
|
+
/* @__PURE__ */ r.jsx(T, { onClick: d, children: n("common.actions.save") })
|
|
34492
34513
|
] })
|
|
34493
34514
|
] })
|
|
34494
34515
|
] }) })
|
|
@@ -34581,7 +34602,7 @@ WHERE
|
|
|
34581
34602
|
maxWidth: "600px",
|
|
34582
34603
|
height: "100%"
|
|
34583
34604
|
}, spacing: "sm", children: [
|
|
34584
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(
|
|
34605
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(T, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), onClick: l, children: e("view.delete") }) }),
|
|
34585
34606
|
/* @__PURE__ */ r.jsx(M, { sx: {
|
|
34586
34607
|
flexGrow: 1,
|
|
34587
34608
|
maxHeight: "calc(100% - 52px)",
|
|
@@ -34640,7 +34661,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34640
34661
|
};
|
|
34641
34662
|
e.content.filters.append(i), e.editor.setPath(["_FILTERS_", s]);
|
|
34642
34663
|
};
|
|
34643
|
-
return /* @__PURE__ */ r.jsx(
|
|
34664
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
|
|
34644
34665
|
width: "100%",
|
|
34645
34666
|
borderRadius: 0
|
|
34646
34667
|
}, styles: {
|
|
@@ -34657,7 +34678,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34657
34678
|
if (!t)
|
|
34658
34679
|
return null;
|
|
34659
34680
|
const s = n.views.findByID(t);
|
|
34660
|
-
return !s || s.type === W.Tabs ? null : /* @__PURE__ */ r.jsx(
|
|
34681
|
+
return !s || s.type === W.Tabs ? null : /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => n.addANewPanel(s.id), sx: {
|
|
34661
34682
|
width: "100%",
|
|
34662
34683
|
borderRadius: 0
|
|
34663
34684
|
}, styles: {
|
|
@@ -34678,7 +34699,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34678
34699
|
};
|
|
34679
34700
|
e.content.queries.append(i), e.editor.setPath(["_QUERIES_", s]);
|
|
34680
34701
|
};
|
|
34681
|
-
return /* @__PURE__ */ r.jsx(
|
|
34702
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
|
|
34682
34703
|
width: "100%",
|
|
34683
34704
|
borderRadius: 0
|
|
34684
34705
|
}, styles: {
|
|
@@ -34696,7 +34717,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34696
34717
|
};
|
|
34697
34718
|
e.content.sqlSnippets.append(i), e.editor.setPath(["_SQL_SNIPPETS_", s]);
|
|
34698
34719
|
};
|
|
34699
|
-
return /* @__PURE__ */ r.jsx(
|
|
34720
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
|
|
34700
34721
|
width: "100%",
|
|
34701
34722
|
borderRadius: 0
|
|
34702
34723
|
}, styles: {
|
|
@@ -34708,7 +34729,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34708
34729
|
const {
|
|
34709
34730
|
t
|
|
34710
34731
|
} = y(), e = le();
|
|
34711
|
-
return /* @__PURE__ */ r.jsx(
|
|
34732
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: e.views.addARandomNewView, sx: {
|
|
34712
34733
|
width: "100%",
|
|
34713
34734
|
borderRadius: 0
|
|
34714
34735
|
}, styles: {
|
|
@@ -34720,7 +34741,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34720
34741
|
const {
|
|
34721
34742
|
t
|
|
34722
34743
|
} = y(), e = he();
|
|
34723
|
-
return /* @__PURE__ */ r.jsx(
|
|
34744
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_QUERIES_"]), sx: {
|
|
34724
34745
|
width: "100%",
|
|
34725
34746
|
borderRadius: 0,
|
|
34726
34747
|
fontWeight: "normal"
|
|
@@ -34733,7 +34754,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34733
34754
|
const {
|
|
34734
34755
|
t
|
|
34735
34756
|
} = y(), e = he();
|
|
34736
|
-
return /* @__PURE__ */ r.jsx(
|
|
34757
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_SQL_SNIPPETS_"]), sx: {
|
|
34737
34758
|
width: "100%",
|
|
34738
34759
|
borderRadius: 0,
|
|
34739
34760
|
fontWeight: "normal"
|
|
@@ -34746,7 +34767,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34746
34767
|
const {
|
|
34747
34768
|
t
|
|
34748
34769
|
} = y(), e = he();
|
|
34749
|
-
return /* @__PURE__ */ r.jsx(
|
|
34770
|
+
return /* @__PURE__ */ r.jsx(T, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_FILTERS_"]), sx: {
|
|
34750
34771
|
width: "100%",
|
|
34751
34772
|
borderRadius: 0,
|
|
34752
34773
|
fontWeight: "normal"
|
|
@@ -34801,7 +34822,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
34801
34822
|
}, children: /* @__PURE__ */ r.jsx(AE, {}) }),
|
|
34802
34823
|
/* @__PURE__ */ r.jsx(Gt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
|
|
34803
34824
|
borderTop: "1px solid #eee"
|
|
34804
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
34825
|
+
}, children: /* @__PURE__ */ r.jsx(T, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Al, { size: 18 }), onClick: () => e.editor.close(), children: t("common.actions.close") }) }) })
|
|
34805
34826
|
] });
|
|
34806
34827
|
}), PE = {
|
|
34807
34828
|
root: {
|
|
@@ -34902,10 +34923,10 @@ const qE = {
|
|
|
34902
34923
|
d == null || d(v.content.filters.values);
|
|
34903
34924
|
}, [d, v.content.filters.values]), L.useEffect(() => {
|
|
34904
34925
|
c && v.content.filters.patchValues(c);
|
|
34905
|
-
}, [c, v.content.filters.patchValues]), L.useEffect(() =>
|
|
34926
|
+
}, [c, v.content.filters.patchValues]), L.useEffect(() => dt(() => Xt(v.json), (V) => {
|
|
34906
34927
|
o == null || o(V);
|
|
34907
34928
|
}), [v]);
|
|
34908
|
-
const
|
|
34929
|
+
const I = async () => {
|
|
34909
34930
|
await s(v.json, v.content.json);
|
|
34910
34931
|
}, R = kt(ka, []), P = Lu(R);
|
|
34911
34932
|
return fl("@devtable/dashboard editor", {
|
|
@@ -34926,7 +34947,7 @@ const qE = {
|
|
|
34926
34947
|
}, children: /* @__PURE__ */ r.jsx(fc, { value: v, children: /* @__PURE__ */ r.jsx(jc, { value: v.content, children: /* @__PURE__ */ r.jsx(Ni.Provider, { value: {
|
|
34927
34948
|
inEditMode: !0
|
|
34928
34949
|
}, children: /* @__PURE__ */ r.jsx(Nt.Provider, { value: R, children: /* @__PURE__ */ r.jsxs(Os, { configure: P, children: [
|
|
34929
|
-
/* @__PURE__ */ r.jsx(xl, { padding: 0, header: /* @__PURE__ */ r.jsx(WM, { onExit: u, saveDashboardChanges:
|
|
34950
|
+
/* @__PURE__ */ r.jsx(xl, { padding: 0, header: /* @__PURE__ */ r.jsx(WM, { onExit: u, saveDashboardChanges: I, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(fL, {}), styles: qE, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
|
|
34930
34951
|
position: "relative"
|
|
34931
34952
|
}, children: v.content.views.visibleViews.map((V) => /* @__PURE__ */ r.jsx(ZD, { view: V }, V.id)) }) }),
|
|
34932
34953
|
/* @__PURE__ */ r.jsx(OE, {})
|
|
@@ -35042,19 +35063,19 @@ function BE({
|
|
|
35042
35063
|
create_time: s,
|
|
35043
35064
|
update_time: i,
|
|
35044
35065
|
content: a
|
|
35045
|
-
}, o, l) {
|
|
35066
|
+
}, o, l, c) {
|
|
35046
35067
|
if (!a)
|
|
35047
35068
|
throw new Error("unexpected null content when creating a content model");
|
|
35048
35069
|
const {
|
|
35049
|
-
version:
|
|
35050
|
-
filters:
|
|
35051
|
-
views:
|
|
35052
|
-
panels:
|
|
35053
|
-
layouts:
|
|
35070
|
+
version: d,
|
|
35071
|
+
filters: u,
|
|
35072
|
+
views: h,
|
|
35073
|
+
panels: m,
|
|
35074
|
+
layouts: x,
|
|
35054
35075
|
definition: {
|
|
35055
|
-
queries:
|
|
35056
|
-
sqlSnippets:
|
|
35057
|
-
mock_context:
|
|
35076
|
+
queries: f,
|
|
35077
|
+
sqlSnippets: v,
|
|
35078
|
+
mock_context: I = {}
|
|
35058
35079
|
}
|
|
35059
35080
|
} = a;
|
|
35060
35081
|
return Bu.create({
|
|
@@ -35063,18 +35084,18 @@ function BE({
|
|
|
35063
35084
|
dashboard_id: n,
|
|
35064
35085
|
create_time: s,
|
|
35065
35086
|
update_time: i,
|
|
35066
|
-
version:
|
|
35067
|
-
filters: mu(
|
|
35068
|
-
queries: dD(
|
|
35069
|
-
sqlSnippets: hD(
|
|
35070
|
-
mock_context: Nd(
|
|
35071
|
-
views: sD(
|
|
35087
|
+
version: d,
|
|
35088
|
+
filters: mu(u, o, I, l),
|
|
35089
|
+
queries: dD(f),
|
|
35090
|
+
sqlSnippets: hD(v),
|
|
35091
|
+
mock_context: Nd(I),
|
|
35092
|
+
views: sD(h, c),
|
|
35072
35093
|
panels: {
|
|
35073
|
-
list:
|
|
35094
|
+
list: m
|
|
35074
35095
|
},
|
|
35075
35096
|
layouts: {
|
|
35076
|
-
list:
|
|
35077
|
-
currentBreakpoint:
|
|
35097
|
+
list: x,
|
|
35098
|
+
currentBreakpoint: x[0].id
|
|
35078
35099
|
}
|
|
35079
35100
|
});
|
|
35080
35101
|
}
|
|
@@ -35093,13 +35114,13 @@ function GE({
|
|
|
35093
35114
|
name: e,
|
|
35094
35115
|
group: n,
|
|
35095
35116
|
content_id: s
|
|
35096
|
-
}, i, a, o, l, c) {
|
|
35117
|
+
}, i, a, o, l, c, d) {
|
|
35097
35118
|
return WE.create({
|
|
35098
35119
|
id: t,
|
|
35099
35120
|
name: e,
|
|
35100
35121
|
group: n,
|
|
35101
35122
|
content_id: s,
|
|
35102
|
-
content: BE(i, l, c),
|
|
35123
|
+
content: BE(i, l, c, d),
|
|
35103
35124
|
datasources: {
|
|
35104
35125
|
list: a
|
|
35105
35126
|
},
|
|
@@ -35121,26 +35142,32 @@ const QE = ({
|
|
|
35121
35142
|
setFullScreenPanelID: o,
|
|
35122
35143
|
filterValues: l,
|
|
35123
35144
|
onFilterValuesChange: c,
|
|
35124
|
-
|
|
35145
|
+
activeTab: d,
|
|
35146
|
+
onActiveTabChange: u,
|
|
35147
|
+
lang: h
|
|
35125
35148
|
}) => {
|
|
35126
35149
|
oc(i);
|
|
35127
35150
|
const {
|
|
35128
|
-
data:
|
|
35151
|
+
data: m = []
|
|
35129
35152
|
} = kn(Fi), {
|
|
35130
|
-
data:
|
|
35131
|
-
} = kn(uc),
|
|
35132
|
-
Mu(
|
|
35133
|
-
|
|
35153
|
+
data: x = []
|
|
35154
|
+
} = kn(uc), f = L.useMemo(() => GE(e, n, m, x, t, l ?? {}, d ?? null), [e, n, d]);
|
|
35155
|
+
Mu(f.content, !1), L.useEffect(() => {
|
|
35156
|
+
f.context.replace(t);
|
|
35134
35157
|
}, [t]), L.useEffect(() => {
|
|
35135
|
-
|
|
35136
|
-
}, [
|
|
35137
|
-
|
|
35138
|
-
}, [
|
|
35139
|
-
c == null || c(
|
|
35140
|
-
}, [c,
|
|
35141
|
-
l &&
|
|
35142
|
-
}, [l,
|
|
35143
|
-
|
|
35158
|
+
f.datasources.replace(m);
|
|
35159
|
+
}, [m]), L.useEffect(() => {
|
|
35160
|
+
f.globalSQLSnippets.replace(x);
|
|
35161
|
+
}, [x]), L.useEffect(() => {
|
|
35162
|
+
c == null || c(f.content.filters.values);
|
|
35163
|
+
}, [c, f.content.filters.values]), L.useEffect(() => {
|
|
35164
|
+
l && f.content.filters.patchValues(l);
|
|
35165
|
+
}, [l, f.content.filters.patchValues]), L.useEffect(() => {
|
|
35166
|
+
u == null || u(f.content.views.firstVisibleTabsViewActiveTab);
|
|
35167
|
+
}, [u, f.content.views.firstVisibleTabsViewActiveTab]), L.useEffect(() => {
|
|
35168
|
+
d && f.content.views.setFirstVisibleTabsViewActiveTab(d);
|
|
35169
|
+
}, [d, f.content.views.setFirstVisibleTabsViewActiveTab]);
|
|
35170
|
+
const v = kt(ka, []), I = Lu(v);
|
|
35144
35171
|
return fl("@devtable/dashboard render", {
|
|
35145
35172
|
context: t,
|
|
35146
35173
|
dashboard: e,
|
|
@@ -35151,15 +35178,17 @@ const QE = ({
|
|
|
35151
35178
|
setFullScreenPanelID: o,
|
|
35152
35179
|
filterValues: l,
|
|
35153
35180
|
onFilterValuesChange: c,
|
|
35154
|
-
|
|
35155
|
-
|
|
35181
|
+
activeTab: d,
|
|
35182
|
+
onActiveTabChange: u,
|
|
35183
|
+
lang: h
|
|
35184
|
+
}), /* @__PURE__ */ r.jsx(Du, { lang: h, children: /* @__PURE__ */ r.jsx(gl, { children: /* @__PURE__ */ r.jsx(Ic, { children: /* @__PURE__ */ r.jsx(_c, { value: {
|
|
35156
35185
|
searchButtonProps: i.searchButtonProps
|
|
35157
|
-
}, children: /* @__PURE__ */ r.jsx(fc, { value:
|
|
35186
|
+
}, children: /* @__PURE__ */ r.jsx(fc, { value: f, children: /* @__PURE__ */ r.jsx(jc, { value: f.content, children: /* @__PURE__ */ r.jsx(zc.Provider, { value: {
|
|
35158
35187
|
fullScreenPanelID: a,
|
|
35159
35188
|
setFullScreenPanelID: o
|
|
35160
35189
|
}, children: /* @__PURE__ */ r.jsx(Ni.Provider, { value: {
|
|
35161
35190
|
inEditMode: !1
|
|
35162
|
-
}, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Nt.Provider, { value:
|
|
35191
|
+
}, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Nt.Provider, { value: v, children: /* @__PURE__ */ r.jsx(Os, { configure: I, children: f.content.views.visibleViews.map((R) => /* @__PURE__ */ r.jsx(Da, { view: R }, R.id)) }) }) }) }) }) }) }) }) }) }) });
|
|
35163
35192
|
}, G2 = z(QE);
|
|
35164
35193
|
$.extend(Lp);
|
|
35165
35194
|
$.extend(Rp);
|