@devtable/dashboard 14.1.1 → 14.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/plugins/viz-components/heatmap/type.d.ts +1 -0
- package/dist/dashboard.es.js +146 -127
- package/dist/dashboard.umd.js +45 -45
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/zh.d.ts +1 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var Qg = Object.defineProperty;
|
|
|
2
2
|
var Gg = (e, t, r) => t in e ? Qg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var Y = (e, t, r) => (Gg(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import B, { forwardRef as le, useMemo as z, useRef as qn, useEffect as H, useLayoutEffect as Wg, useState as K, useCallback as fe, createElement as Kr, useContext as sr, createContext as Zd, memo as Ug } from "react";
|
|
5
|
-
import { TextInput as E, Box as R, Group as b, Text as S, Select as N, Button as L, Modal as Ge, Stack as T, Divider as A, NumberInput as ce, SimpleGrid as Xe, Menu as re, UnstyledButton as uo, Tooltip as
|
|
5
|
+
import { TextInput as E, Box as R, Group as b, Text as S, Select as N, Button as L, Modal as Ge, Stack as T, Divider as A, NumberInput as ce, SimpleGrid as Xe, Menu as re, UnstyledButton as uo, Tooltip as he, Flex as tn, ColorInput as Tr, Center as Qn, ActionIcon as oe, Badge as rr, CloseButton as In, Overlay as or, NativeSelect as ho, useMantineTheme as $a, ColorSwatch as pa, Popover as Zt, ColorPicker as vc, HoverCard as He, Checkbox as de, Switch as tt, Table as v, MultiSelect as yr, Paper as Yg, Code as jc, Tabs as j, LoadingOverlay as lr, Alert as Pi, Collapse as Ei, CheckIcon as Kg, SegmentedControl as Jd, Anchor as Ti, Pagination as Aa, Textarea as eu, RangeSlider as Xg, Mark as tu, Slider as Zg, List as Dt, getRadius as po, Affix as Jg, AppShell as $t, FileInput as ef, Highlight as tf, rem as wc, ThemeIcon as sa, JsonInput as nu, Drawer as nf, Radio as Sc, Skeleton as Cc, NavLink as Rs, useCombobox as rf, Loader as mo, Combobox as Yn, InputBase as af, Input as sf } from "@mantine/core";
|
|
6
6
|
import { useModals as fn, ModalsProvider as ru } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as lt, useCreation as mn, useAsyncEffect as Ri, useRequest as _r, useLatest as kc, usePrevious as of, useWhyDidYouUpdate as iu } from "ahooks";
|
|
8
8
|
import { toJS as Ln, observable as au, runInAction as Si, reaction as ft, makeAutoObservable as $i } from "mobx";
|
|
@@ -239,14 +239,14 @@ function Oy() {
|
|
|
239
239
|
}
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
|
-
var ie = Object.assign, ae = 0, xe,
|
|
242
|
+
var ie = Object.assign, ae = 0, xe, ue, De, Ce, ke, dt, at;
|
|
243
243
|
function wn() {
|
|
244
244
|
}
|
|
245
245
|
wn.__reactDisabledLog = !0;
|
|
246
246
|
function Pe() {
|
|
247
247
|
{
|
|
248
248
|
if (ae === 0) {
|
|
249
|
-
xe = console.log,
|
|
249
|
+
xe = console.log, ue = console.info, De = console.warn, Ce = console.error, ke = console.group, dt = console.groupCollapsed, at = console.groupEnd;
|
|
250
250
|
var C = {
|
|
251
251
|
configurable: !0,
|
|
252
252
|
enumerable: !0,
|
|
@@ -279,7 +279,7 @@ function Oy() {
|
|
|
279
279
|
value: xe
|
|
280
280
|
}),
|
|
281
281
|
info: ie({}, C, {
|
|
282
|
-
value:
|
|
282
|
+
value: ue
|
|
283
283
|
}),
|
|
284
284
|
warn: ie({}, C, {
|
|
285
285
|
value: De
|
|
@@ -2959,17 +2959,17 @@ var kv = class extends an {
|
|
|
2959
2959
|
},
|
|
2960
2960
|
vt
|
|
2961
2961
|
), q && x.insertAdjacentElement("afterend", q), Hs(x) && (x.hasAttribute("popover") || x.setAttribute("popover", ""), Ss(x));
|
|
2962
|
-
const xe = new Cn(x, !0),
|
|
2962
|
+
const xe = new Cn(x, !0), ue = {
|
|
2963
2963
|
top: ae.top - xe.top,
|
|
2964
2964
|
left: ae.left - xe.left
|
|
2965
2965
|
};
|
|
2966
|
-
|
|
2966
|
+
ue.left > 0.01 || ue.top > 0.01 ? V.set(
|
|
2967
2967
|
{
|
|
2968
|
-
top: ae.top +
|
|
2969
|
-
left: ae.left +
|
|
2968
|
+
top: ae.top + ue.top,
|
|
2969
|
+
left: ae.left + ue.left
|
|
2970
2970
|
},
|
|
2971
2971
|
vt
|
|
2972
|
-
) : (
|
|
2972
|
+
) : (ue.left = 0, ue.top = 0);
|
|
2973
2973
|
const De = new ResizeObserver(() => {
|
|
2974
2974
|
if (!q)
|
|
2975
2975
|
return;
|
|
@@ -2978,8 +2978,8 @@ var kv = class extends an {
|
|
|
2978
2978
|
{
|
|
2979
2979
|
width: X.width,
|
|
2980
2980
|
height: X.height,
|
|
2981
|
-
top: P + We +
|
|
2982
|
-
left: $ + Te +
|
|
2981
|
+
top: P + We + ue.top,
|
|
2982
|
+
left: $ + Te + ue.left
|
|
2983
2983
|
},
|
|
2984
2984
|
vt
|
|
2985
2985
|
), x instanceof HTMLTableRowElement && q instanceof HTMLTableRowElement) {
|
|
@@ -4564,7 +4564,7 @@ const vj = _j(), jj = ({
|
|
|
4564
4564
|
/* @__PURE__ */ n.jsxs(re.Dropdown, { children: [
|
|
4565
4565
|
/* @__PURE__ */ n.jsx(re.Label, { children: i("chart.visual_map.built_in_palettes") }),
|
|
4566
4566
|
/* @__PURE__ */ n.jsx(re.Divider, {}),
|
|
4567
|
-
Object.entries(vj).map(([s, o]) => /* @__PURE__ */ n.jsx(
|
|
4567
|
+
Object.entries(vj).map(([s, o]) => /* @__PURE__ */ n.jsx(he, { label: i("chart.visual_map.use_palette_x", {
|
|
4568
4568
|
x: s
|
|
4569
4569
|
}), children: /* @__PURE__ */ n.jsx(re.Item, { children: /* @__PURE__ */ n.jsx(R, { style: {
|
|
4570
4570
|
height: "20px",
|
|
@@ -4805,14 +4805,14 @@ const kj = () => /* @__PURE__ */ n.jsx("div", { style: {
|
|
|
4805
4805
|
}
|
|
4806
4806
|
}, children: /* @__PURE__ */ n.jsx(Sj, { defaultValues: d, unset: h, onSubmit: u }) }),
|
|
4807
4807
|
/* @__PURE__ */ n.jsxs(ge.ControlsGroup, { children: [
|
|
4808
|
-
/* @__PURE__ */ n.jsx(
|
|
4808
|
+
/* @__PURE__ */ n.jsx(he, { label: t("rich_text.color_mapping.label"), children: /* @__PURE__ */ n.jsx(oe, { variant: "default", "data-rich-text-editor-control": "true", sx: {
|
|
4809
4809
|
height: "26px",
|
|
4810
4810
|
minHeight: "26px",
|
|
4811
4811
|
lineHeight: "26px",
|
|
4812
4812
|
borderColor: "#ced4da !important",
|
|
4813
4813
|
color: "#000"
|
|
4814
4814
|
}, onClick: a, children: /* @__PURE__ */ n.jsx(kj, {}) }) }),
|
|
4815
|
-
/* @__PURE__ */ n.jsx(
|
|
4815
|
+
/* @__PURE__ */ n.jsx(he, { label: t("rich_text.color_mapping.clear"), children: /* @__PURE__ */ n.jsx(oe, { variant: "default", "data-rich-text-editor-control": "true", sx: {
|
|
4816
4816
|
height: "26px",
|
|
4817
4817
|
minHeight: "26px",
|
|
4818
4818
|
lineHeight: "26px",
|
|
@@ -5033,38 +5033,38 @@ const ji = "data-value", Rj = ji, Yp = "dynamicColor", Kp = Fu.create({
|
|
|
5033
5033
|
break;
|
|
5034
5034
|
case 1:
|
|
5035
5035
|
{
|
|
5036
|
-
let
|
|
5036
|
+
let ue = ae;
|
|
5037
5037
|
const De = ie[0], Ce = q[De - 1].length;
|
|
5038
|
-
if (
|
|
5039
|
-
if (
|
|
5038
|
+
if (ue < 0) {
|
|
5039
|
+
if (ue = Ce - Math.abs(ue), ue < 0)
|
|
5040
5040
|
throw new Error("Provided Start Column(" + ae + ") is out of bounds. Max Column in line " + De + " is " + Ce);
|
|
5041
|
-
} else if (
|
|
5041
|
+
} else if (ue > Ce + 1)
|
|
5042
5042
|
throw new Error("Provided Start Column(" + ae + ") is out of bounds. Max Column in line " + De + " is " + Ce);
|
|
5043
|
-
ie[xe] =
|
|
5043
|
+
ie[xe] = ue;
|
|
5044
5044
|
}
|
|
5045
5045
|
break;
|
|
5046
5046
|
case 2:
|
|
5047
5047
|
{
|
|
5048
|
-
let
|
|
5049
|
-
if (
|
|
5050
|
-
if (
|
|
5048
|
+
let ue = ae;
|
|
5049
|
+
if (ue < 0) {
|
|
5050
|
+
if (ue = Z - Math.abs(ae), ue < 0)
|
|
5051
5051
|
throw new Error("Provided End Line(" + ae + ") is out of bounds. Max Lines in content is " + Z);
|
|
5052
|
-
|
|
5052
|
+
ue < ie[0] && console.warn("Provided End Line(" + ae + ") is less than the start Line, the Restriction may not behave as expected");
|
|
5053
5053
|
} else if (ae > Z)
|
|
5054
5054
|
throw new Error("Provided End Line(" + ae + ") is out of bounds. Max Lines in content is " + Z);
|
|
5055
|
-
ie[xe] =
|
|
5055
|
+
ie[xe] = ue;
|
|
5056
5056
|
}
|
|
5057
5057
|
break;
|
|
5058
5058
|
case 3:
|
|
5059
5059
|
{
|
|
5060
|
-
let
|
|
5060
|
+
let ue = ae;
|
|
5061
5061
|
const De = ie[2], Ce = q[De - 1].length;
|
|
5062
|
-
if (
|
|
5063
|
-
if (
|
|
5062
|
+
if (ue < 0) {
|
|
5063
|
+
if (ue = Ce - Math.abs(ue), ue < 0)
|
|
5064
5064
|
throw new Error("Provided End Column(" + ae + ") is out of bounds. Max Column in line " + De + " is " + Ce);
|
|
5065
|
-
} else if (
|
|
5065
|
+
} else if (ue > Ce + 1)
|
|
5066
5066
|
throw new Error("Provided Start Column(" + ae + ") is out of bounds. Max Column in line " + De + " is " + Ce);
|
|
5067
|
-
ie[xe] =
|
|
5067
|
+
ie[xe] = ue;
|
|
5068
5068
|
}
|
|
5069
5069
|
break;
|
|
5070
5070
|
}
|
|
@@ -5074,8 +5074,8 @@ const ji = "data-value", Rj = ji, Yp = "dynamicColor", Kp = Fu.create({
|
|
|
5074
5074
|
const l = function(G) {
|
|
5075
5075
|
const W = e.getValue();
|
|
5076
5076
|
G.forEach(function(q, Z) {
|
|
5077
|
-
const ie = s(q.range, W), ae = ie[0], xe = ie[1],
|
|
5078
|
-
q._originalRange = ie.slice(), q.range = new i(ae, xe,
|
|
5077
|
+
const ie = s(q.range, W), ae = ie[0], xe = ie[1], ue = ie[2], De = ie[3];
|
|
5078
|
+
q._originalRange = ie.slice(), q.range = new i(ae, xe, ue, De), q.index = Z, q.allowMultiline || (q.allowMultiline = i.spansMultipleLines(q.range)), q.label || (q.label = `[${ae},${xe} -> ${ue}${De}]`);
|
|
5079
5079
|
});
|
|
5080
5080
|
}, c = function() {
|
|
5081
5081
|
return o.reduce(function(G, W) {
|
|
@@ -5142,11 +5142,11 @@ const ji = "data-value", Rj = ji, Yp = "dynamicColor", Kp = Fu.create({
|
|
|
5142
5142
|
}));
|
|
5143
5143
|
});
|
|
5144
5144
|
}, I = function(G, W, q, Z, ie, ae) {
|
|
5145
|
-
let xe = W.endLineNumber,
|
|
5145
|
+
let xe = W.endLineNumber, ue = W.endColumn;
|
|
5146
5146
|
G.prevRange = W, G.range = W.setEndPosition(q, Z);
|
|
5147
5147
|
const De = o.length;
|
|
5148
5148
|
let Ce = ie.length;
|
|
5149
|
-
const ke = Z -
|
|
5149
|
+
const ke = Z - ue, dt = q - xe, at = e._currentCursorPositions || [], wn = at.length;
|
|
5150
5150
|
if (Ce !== wn && (ie = ie.filter(function(Pe) {
|
|
5151
5151
|
const $e = Pe.range;
|
|
5152
5152
|
for (let X = 0; X < wn; X++) {
|
|
@@ -5228,11 +5228,11 @@ const ji = "data-value", Rj = ji, Yp = "dynamicColor", Kp = Fu.create({
|
|
|
5228
5228
|
else {
|
|
5229
5229
|
const q = G.changes.sort(a), Z = {}, ie = o.length;
|
|
5230
5230
|
if (q.every(function(xe) {
|
|
5231
|
-
const
|
|
5231
|
+
const ue = xe.range, De = ue.toString();
|
|
5232
5232
|
Z[De] = null;
|
|
5233
5233
|
for (let Ce = 0; Ce < ie; Ce++) {
|
|
5234
5234
|
const ke = o[Ce];
|
|
5235
|
-
if (ke.range.containsRange(
|
|
5235
|
+
if (ke.range.containsRange(ue))
|
|
5236
5236
|
return ye(ke, xe.text) ? !1 : (Z[De] = ke, !0);
|
|
5237
5237
|
}
|
|
5238
5238
|
return !1;
|
|
@@ -5244,18 +5244,18 @@ const ji = "data-value", Rj = ji, Yp = "dynamicColor", Kp = Fu.create({
|
|
|
5244
5244
|
const Ke = k(De, at);
|
|
5245
5245
|
dt.lastInfo = Ke, (Ke.isAddition || Ke.isReplacement) && (Ke.rangeIsSingleLine && (Pe === 0 ? We += $e : (Te += Pe, Ke.startColumnOfRange ? We += $e : Ke.endColumnOfRange ? We = $e + 1 : We = $e + Lt)), Ke.rangeIsMultiLine && (Te += Pe, Ke.endLineOfRange && (Pe === 0 ? We += $e : We = Lt + $e))), (Ke.isDeletion || Ke.isReplacement) && (Ke.rangeIsSingleLine && (We -= pe), Ke.rangeIsMultiLine && (Ke.endLineOfRange ? (Te -= X, We -= pe) : Te -= X)), I(dt, at, Te, We, q, Ce);
|
|
5246
5246
|
});
|
|
5247
|
-
const xe = e.getValueInEditableRanges(),
|
|
5247
|
+
const xe = e.getValueInEditableRanges(), ue = {};
|
|
5248
5248
|
for (let De in Z) {
|
|
5249
5249
|
const Ce = Z[De], ke = Ce.range, dt = Ce.label || ke.toString(), at = xe[dt];
|
|
5250
5250
|
if (ze(Ce, at, ke)) {
|
|
5251
5251
|
V(Z), _();
|
|
5252
5252
|
return;
|
|
5253
5253
|
}
|
|
5254
|
-
|
|
5254
|
+
ue[dt] = at;
|
|
5255
5255
|
}
|
|
5256
5256
|
e._hasHighlight && e._oldDecorationsSource.forEach(function(De) {
|
|
5257
5257
|
De.range = e.getDecorationRange(De.id);
|
|
5258
|
-
}), x(
|
|
5258
|
+
}), x(ue, xe);
|
|
5259
5259
|
} else
|
|
5260
5260
|
_();
|
|
5261
5261
|
}
|
|
@@ -5506,7 +5506,7 @@ const kr = le(({
|
|
|
5506
5506
|
const {
|
|
5507
5507
|
t
|
|
5508
5508
|
} = y();
|
|
5509
|
-
return /* @__PURE__ */ n.jsx(
|
|
5509
|
+
return /* @__PURE__ */ n.jsx(he, { label: t("rich_text.dynamic_color.label"), children: /* @__PURE__ */ n.jsx(oe, { variant: "default", "data-rich-text-editor-control": "true", sx: {
|
|
5510
5510
|
height: "26px",
|
|
5511
5511
|
minHeight: "26px",
|
|
5512
5512
|
lineHeight: "26px",
|
|
@@ -5523,7 +5523,7 @@ const kr = le(({
|
|
|
5523
5523
|
/* @__PURE__ */ n.jsx(bl, { title: t("rich_text.dynamic_color.edit"), label: "", triggerLabel: "", value: i, onChange: (s) => {
|
|
5524
5524
|
s ? e.chain().focus().setDynamicColor(s).run() : e.chain().focus().unsetDynamicColor().run();
|
|
5525
5525
|
}, defaultValue: Ij, renderTriggerButton: Fj, restrictions: a, zIndex: 340 }),
|
|
5526
|
-
/* @__PURE__ */ n.jsx(
|
|
5526
|
+
/* @__PURE__ */ n.jsx(he, { label: t("rich_text.dynamic_color.clear"), children: /* @__PURE__ */ n.jsx(oe, { variant: "default", "data-rich-text-editor-control": "true", sx: {
|
|
5527
5527
|
height: "26px",
|
|
5528
5528
|
minHeight: "26px",
|
|
5529
5529
|
lineHeight: "26px",
|
|
@@ -6545,7 +6545,7 @@ class jl {
|
|
|
6545
6545
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
6546
6546
|
}
|
|
6547
6547
|
}
|
|
6548
|
-
const um = "14.
|
|
6548
|
+
const um = "14.2.0", C0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6549
6549
|
__proto__: null,
|
|
6550
6550
|
version: um
|
|
6551
6551
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -7036,7 +7036,7 @@ const vn = le(({
|
|
|
7036
7036
|
flexGrow: 0
|
|
7037
7037
|
}, children: _ }),
|
|
7038
7038
|
/* @__PURE__ */ n.jsx(Ge, { size: 800, title: _, opened: s, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ n.jsxs(T, { children: [
|
|
7039
|
-
/* @__PURE__ */ n.jsx(
|
|
7039
|
+
/* @__PURE__ */ n.jsx(de, { mt: 10, label: a("common.enabled"), checked: c.enabled, onChange: (I) => u(I.currentTarget.checked) }),
|
|
7040
7040
|
/* @__PURE__ */ n.jsx(A0, { value: c.func_content, onChange: g, disabled: !c.enabled }),
|
|
7041
7041
|
/* @__PURE__ */ n.jsxs(b, { justify: "space-between", children: [
|
|
7042
7042
|
/* @__PURE__ */ n.jsx(L, { onClick: x, color: "red", leftSection: /* @__PURE__ */ n.jsx(nn, { size: 20 }), children: a("common.actions.reset_to_default") }),
|
|
@@ -8862,7 +8862,7 @@ function l1(e) {
|
|
|
8862
8862
|
backgroundColor: i
|
|
8863
8863
|
} }) }),
|
|
8864
8864
|
/* @__PURE__ */ n.jsxs(Zt.Dropdown, { children: [
|
|
8865
|
-
/* @__PURE__ */ n.jsx(
|
|
8865
|
+
/* @__PURE__ */ n.jsx(he, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ n.jsx(In, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: I, style: {
|
|
8866
8866
|
position: "absolute",
|
|
8867
8867
|
top: "0.5em",
|
|
8868
8868
|
right: "0.8em"
|
|
@@ -9053,7 +9053,7 @@ const c1 = D(({
|
|
|
9053
9053
|
};
|
|
9054
9054
|
return /* @__PURE__ */ n.jsxs(j.List, { children: [
|
|
9055
9055
|
/* @__PURE__ */ n.jsx(Nu, { onDragEnd: s, children: a.map((o, l) => /* @__PURE__ */ n.jsx(x1, { value: o.id, index: l, children: i(o, l) }, o.id)) }),
|
|
9056
|
-
/* @__PURE__ */ n.jsx(j.Tab, { onClick: t, value: "add", children: /* @__PURE__ */ n.jsx(
|
|
9056
|
+
/* @__PURE__ */ n.jsx(j.Tab, { onClick: t, value: "add", children: /* @__PURE__ */ n.jsx(he, { label: r, children: /* @__PURE__ */ n.jsx(Qn, { children: /* @__PURE__ */ n.jsx(rn, { size: 18, color: "#228be6" }) }) }) })
|
|
9057
9057
|
] });
|
|
9058
9058
|
}, f1 = {
|
|
9059
9059
|
tab: {
|
|
@@ -9140,7 +9140,7 @@ const c1 = D(({
|
|
|
9140
9140
|
/* @__PURE__ */ n.jsx(R, { sx: {
|
|
9141
9141
|
flexGrow: 1
|
|
9142
9142
|
}, children: /* @__PURE__ */ n.jsx(tt, { label: i("chart.zooming.slider.x_axis"), checked: e.x_axis_slider, onChange: (s) => a("x_axis_slider")(s.currentTarget.checked) }) }),
|
|
9143
|
-
/* @__PURE__ */ n.jsx(
|
|
9143
|
+
/* @__PURE__ */ n.jsx(he, { label: i("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ n.jsx(R, { sx: {
|
|
9144
9144
|
flexGrow: 1
|
|
9145
9145
|
}, children: /* @__PURE__ */ n.jsx(tt, { label: i("chart.zooming.slider.y_axis"), disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (s) => a("y_axis_slider")(s.currentTarget.checked) }) }) })
|
|
9146
9146
|
] })
|
|
@@ -9947,7 +9947,7 @@ function Y1({
|
|
|
9947
9947
|
}) => /* @__PURE__ */ n.jsx(to, { label: "Size", ...u }) }),
|
|
9948
9948
|
/* @__PURE__ */ n.jsx(f, { control: s, name: "compact", render: ({
|
|
9949
9949
|
field: u
|
|
9950
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
9950
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: "Compact", checked: u.value, onChange: (h) => u.onChange(h.currentTarget.checked), mt: 26 }) })
|
|
9951
9951
|
] }),
|
|
9952
9952
|
/* @__PURE__ */ n.jsxs(Xe, { cols: 2, children: [
|
|
9953
9953
|
/* @__PURE__ */ n.jsx(f, { control: s, name: "horizontal_align", render: ({
|
|
@@ -11495,7 +11495,7 @@ function sC({
|
|
|
11495
11495
|
/* @__PURE__ */ n.jsx(A, { mb: -10, mt: 10, variant: "dashed", label: s("chart.behavior.label"), labelPosition: "center" }),
|
|
11496
11496
|
/* @__PURE__ */ n.jsx(f, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
|
|
11497
11497
|
field: l
|
|
11498
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
11498
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: s("chart.legend.show_in_legend"), checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) })
|
|
11499
11499
|
] });
|
|
11500
11500
|
}
|
|
11501
11501
|
function oC({
|
|
@@ -12184,7 +12184,7 @@ function bC({
|
|
|
12184
12184
|
/* @__PURE__ */ n.jsx(A, { mb: -10, mt: 10, variant: "dashed", label: a("chart.behavior.label"), labelPosition: "center" }),
|
|
12185
12185
|
/* @__PURE__ */ n.jsx(f, { name: `series.${t}.hide_in_legend`, control: e, render: ({
|
|
12186
12186
|
field: o
|
|
12187
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
12187
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: a("chart.legend.hide_in_legend"), checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) })
|
|
12188
12188
|
] });
|
|
12189
12189
|
}
|
|
12190
12190
|
function yC({
|
|
@@ -12475,7 +12475,7 @@ function kC({
|
|
|
12475
12475
|
/* @__PURE__ */ n.jsx(A, { mb: -10, mt: 10, variant: "dashed", label: r("chart.y_axis.behavior"), labelPosition: "center" }),
|
|
12476
12476
|
/* @__PURE__ */ n.jsx(f, { name: `y_axes.${t}.show`, control: e, render: ({
|
|
12477
12477
|
field: i
|
|
12478
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
12478
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: r("chart.y_axis.visible"), checked: i.value, onChange: (a) => i.onChange(a.currentTarget.checked) }) })
|
|
12479
12479
|
] });
|
|
12480
12480
|
}
|
|
12481
12481
|
function TC({
|
|
@@ -12831,9 +12831,9 @@ const qC = ({
|
|
|
12831
12831
|
width: "100%"
|
|
12832
12832
|
}, children: [
|
|
12833
12833
|
/* @__PURE__ */ n.jsx(S, { size: "sm", children: a("viz.funnel_chart.min_value") }),
|
|
12834
|
-
/* @__PURE__ */ n.jsx(
|
|
12834
|
+
/* @__PURE__ */ n.jsx(he, { label: a("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ n.jsx(R, { children: /* @__PURE__ */ n.jsx(f, { name: `series.${r}.min.enable_value`, control: t, render: ({
|
|
12835
12835
|
field: m
|
|
12836
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
12836
|
+
}) => /* @__PURE__ */ n.jsx(de, { size: "xs", checked: m.value, onChange: (g) => m.onChange(g.currentTarget.checked) }) }) }) })
|
|
12837
12837
|
] }), ...h }) }),
|
|
12838
12838
|
/* @__PURE__ */ n.jsx(f, { name: `series.${r}.min.size`, control: t, render: ({
|
|
12839
12839
|
field: h
|
|
@@ -12848,9 +12848,9 @@ const qC = ({
|
|
|
12848
12848
|
width: "100%"
|
|
12849
12849
|
}, children: [
|
|
12850
12850
|
/* @__PURE__ */ n.jsx(S, { size: "sm", children: a("viz.funnel_chart.max_value") }),
|
|
12851
|
-
/* @__PURE__ */ n.jsx(
|
|
12851
|
+
/* @__PURE__ */ n.jsx(he, { label: a("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ n.jsx(R, { children: /* @__PURE__ */ n.jsx(f, { name: `series.${r}.max.enable_value`, control: t, render: ({
|
|
12852
12852
|
field: m
|
|
12853
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
12853
|
+
}) => /* @__PURE__ */ n.jsx(de, { size: "xs", checked: m.value, onChange: (g) => m.onChange(g.currentTarget.checked) }) }) }) })
|
|
12854
12854
|
] }), ...h }) }),
|
|
12855
12855
|
/* @__PURE__ */ n.jsx(f, { name: `series.${r}.max.size`, control: t, render: ({
|
|
12856
12856
|
field: h
|
|
@@ -12908,7 +12908,7 @@ const qC = ({
|
|
|
12908
12908
|
}, children: [
|
|
12909
12909
|
/* @__PURE__ */ n.jsxs(j.List, { children: [
|
|
12910
12910
|
o.map((u, h) => /* @__PURE__ */ n.jsx(j.Tab, { value: u.id, children: u.name }, u.id)),
|
|
12911
|
-
/* @__PURE__ */ n.jsx(j.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ n.jsx(
|
|
12911
|
+
/* @__PURE__ */ n.jsx(j.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ n.jsx(he, { label: "todo", children: /* @__PURE__ */ n.jsx(Qn, { children: /* @__PURE__ */ n.jsx(rn, { size: 18, color: "#228be6" }) }) }) })
|
|
12912
12912
|
] }),
|
|
12913
12913
|
o.map((u, h) => /* @__PURE__ */ n.jsx(j.Panel, { value: u.id, children: /* @__PURE__ */ n.jsx(qC, { item: u, control: e, index: h, remove: a }) }, u.id))
|
|
12914
12914
|
] });
|
|
@@ -13294,17 +13294,18 @@ function ck(e, t, r) {
|
|
|
13294
13294
|
const {
|
|
13295
13295
|
nameAlignment: i,
|
|
13296
13296
|
data_key: a,
|
|
13297
|
-
|
|
13297
|
+
inverse: s,
|
|
13298
|
+
...o
|
|
13298
13299
|
} = e.y_axis, {
|
|
13299
|
-
overflow:
|
|
13300
|
-
rotate:
|
|
13301
|
-
} = e.y_axis.axisLabel,
|
|
13300
|
+
overflow: l,
|
|
13301
|
+
rotate: c
|
|
13302
|
+
} = e.y_axis.axisLabel, d = on(l.on_axis);
|
|
13302
13303
|
return Le.getYAxis({
|
|
13303
|
-
...
|
|
13304
|
+
...o,
|
|
13304
13305
|
type: "category",
|
|
13305
13306
|
axisLabel: {
|
|
13306
|
-
rotate:
|
|
13307
|
-
...
|
|
13307
|
+
rotate: c,
|
|
13308
|
+
...d,
|
|
13308
13309
|
formatter: t
|
|
13309
13310
|
},
|
|
13310
13311
|
axisTick: {
|
|
@@ -13335,8 +13336,9 @@ function ck(e, t, r) {
|
|
|
13335
13336
|
fontWeight: "bold",
|
|
13336
13337
|
align: i
|
|
13337
13338
|
},
|
|
13338
|
-
nameLocation: "end",
|
|
13339
|
+
nameLocation: s ? "start" : "end",
|
|
13339
13340
|
nameGap: 15,
|
|
13341
|
+
inverse: s,
|
|
13340
13342
|
z: 3
|
|
13341
13343
|
});
|
|
13342
13344
|
}
|
|
@@ -13402,7 +13404,7 @@ const na = ({
|
|
|
13402
13404
|
}, ...d }) }),
|
|
13403
13405
|
/* @__PURE__ */ n.jsx(f, { name: "visualMap.calculable", control: i, render: ({
|
|
13404
13406
|
field: d
|
|
13405
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
13407
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: t("chart.visual_map.calculable"), checked: d.value, onChange: (u) => d.onChange(u.currentTarget.checked), styles: {
|
|
13406
13408
|
root: {
|
|
13407
13409
|
transform: "translateY(12px)"
|
|
13408
13410
|
}
|
|
@@ -13764,6 +13766,7 @@ const Ol = {
|
|
|
13764
13766
|
},
|
|
13765
13767
|
y_axis: {
|
|
13766
13768
|
name: "Y Axis",
|
|
13769
|
+
inverse: !1,
|
|
13767
13770
|
data_key: "",
|
|
13768
13771
|
nameAlignment: "center",
|
|
13769
13772
|
axisLabel: {
|
|
@@ -14013,6 +14016,20 @@ function Mk({
|
|
|
14013
14016
|
}) => /* @__PURE__ */ n.jsx(mr, { sx: {
|
|
14014
14017
|
flex: 1
|
|
14015
14018
|
}, ...i }) }) }),
|
|
14019
|
+
/* @__PURE__ */ n.jsx(f, { name: "y_axis.inverse", control: e, render: ({
|
|
14020
|
+
field: i
|
|
14021
|
+
}) => /* @__PURE__ */ n.jsx(de, { size: "sm", checked: i.value, onChange: (a) => i.onChange(a.currentTarget.checked), label: r("chart.y_axis.inverse"), styles: {
|
|
14022
|
+
root: {
|
|
14023
|
+
transform: "translateY(6px)"
|
|
14024
|
+
},
|
|
14025
|
+
label: {
|
|
14026
|
+
cursor: "pointer",
|
|
14027
|
+
userSelect: "none"
|
|
14028
|
+
},
|
|
14029
|
+
input: {
|
|
14030
|
+
cursor: "pointer"
|
|
14031
|
+
}
|
|
14032
|
+
} }) }),
|
|
14016
14033
|
/* @__PURE__ */ n.jsx(A, { mb: -15, variant: "dashed", label: r("chart.axis.tick_label"), labelPosition: "center" }),
|
|
14017
14034
|
/* @__PURE__ */ n.jsx(f, { name: "y_axis.axisLabel.overflow", control: e, render: ({
|
|
14018
14035
|
field: i
|
|
@@ -15950,10 +15967,10 @@ function l3({
|
|
|
15950
15967
|
/* @__PURE__ */ n.jsx(j.Panel, { value: "style", p: "md", children: /* @__PURE__ */ n.jsxs(b, { grow: !0, wrap: "nowrap", children: [
|
|
15951
15968
|
/* @__PURE__ */ n.jsx(f, { name: "background.enabled", control: s, render: ({
|
|
15952
15969
|
field: u
|
|
15953
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
15970
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: t("viz.radar_chart.style.show_background"), checked: u.value, onChange: (h) => u.onChange(h.currentTarget.checked) }) }),
|
|
15954
15971
|
/* @__PURE__ */ n.jsx(f, { name: "label.enabled", control: s, render: ({
|
|
15955
15972
|
field: u
|
|
15956
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
15973
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: t("viz.radar_chart.style.show_value_label"), checked: u.value, onChange: (h) => u.onChange(h.currentTarget.checked) }) })
|
|
15957
15974
|
] }) }),
|
|
15958
15975
|
/* @__PURE__ */ n.jsx(j.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ n.jsx(a3, { control: s, watch: l }) })
|
|
15959
15976
|
] })
|
|
@@ -21834,7 +21851,7 @@ function rD({
|
|
|
21834
21851
|
/* @__PURE__ */ n.jsx(A, { mb: -10, mt: 10, variant: "dashed", label: s("chart.behavior.label"), labelPosition: "center" }),
|
|
21835
21852
|
/* @__PURE__ */ n.jsx(f, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
|
|
21836
21853
|
field: l
|
|
21837
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
21854
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: s("chart.legend.show_in_legend"), checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) })
|
|
21838
21855
|
] });
|
|
21839
21856
|
}
|
|
21840
21857
|
function iD({
|
|
@@ -21960,10 +21977,10 @@ function sD({
|
|
|
21960
21977
|
/* @__PURE__ */ n.jsx(A, { mb: -10, mt: 10, variant: "dashed", label: a("chart.behavior.label"), labelPosition: "center" }),
|
|
21961
21978
|
/* @__PURE__ */ n.jsx(f, { name: `series.${t}.hide_in_legend`, control: e, render: ({
|
|
21962
21979
|
field: s
|
|
21963
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
21980
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: a("chart.legend.hide_in_legend"), checked: s.value, onChange: (o) => s.onChange(o.currentTarget.checked) }) }),
|
|
21964
21981
|
/* @__PURE__ */ n.jsx(f, { name: `series.${t}.invisible`, control: e, render: ({
|
|
21965
21982
|
field: s
|
|
21966
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
21983
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: a("chart.behavior.invisible"), checked: s.value, onChange: (o) => s.onChange(o.currentTarget.checked) }) })
|
|
21967
21984
|
] });
|
|
21968
21985
|
}
|
|
21969
21986
|
function oD({
|
|
@@ -22046,7 +22063,7 @@ function cD({
|
|
|
22046
22063
|
/* @__PURE__ */ n.jsx(A, { mb: -10, mt: 10, variant: "dashed", label: r("chart.x_axis.behavior"), labelPosition: "center" }),
|
|
22047
22064
|
/* @__PURE__ */ n.jsx(f, { name: `x_axes.${t}.show`, control: e, render: ({
|
|
22048
22065
|
field: i
|
|
22049
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
22066
|
+
}) => /* @__PURE__ */ n.jsx(de, { label: r("chart.x_axis.visible"), checked: i.value, onChange: (a) => i.onChange(a.currentTarget.checked) }) })
|
|
22050
22067
|
] });
|
|
22051
22068
|
}
|
|
22052
22069
|
function dD({
|
|
@@ -25669,12 +25686,12 @@ const sI = p.model("FilterDateRangeConfigMeta", {
|
|
|
25669
25686
|
} = y(), i = t.config;
|
|
25670
25687
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
25671
25688
|
/* @__PURE__ */ n.jsxs(b, { justify: "space-between", children: [
|
|
25672
|
-
/* @__PURE__ */ n.jsx(
|
|
25689
|
+
/* @__PURE__ */ n.jsx(de, { checked: i.required, onChange: (a) => i.setRequired(a.currentTarget.checked), label: r("filter.widget.select.required") }),
|
|
25673
25690
|
/* @__PURE__ */ n.jsx(Lr, { filter: t })
|
|
25674
25691
|
] }),
|
|
25675
25692
|
/* @__PURE__ */ n.jsx(E, { label: r("filter.widget.common.min_width"), value: i.min_width, onChange: (a) => i.setMinWidth(a.currentTarget.value), placeholder: "200px" }),
|
|
25676
25693
|
/* @__PURE__ */ n.jsx(A, { label: r("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
25677
|
-
/* @__PURE__ */ n.jsx(
|
|
25694
|
+
/* @__PURE__ */ n.jsx(de, { checked: i.treeCheckStrictly, onChange: (a) => i.setTreeCheckStrictly(a.currentTarget.checked), label: r("filter.widget.tree_select.strictly") }),
|
|
25678
25695
|
/* @__PURE__ */ n.jsx(ce, { value: i.default_selection_count, onChange: i.setDefaultSelectionCount, label: r("filter.widget.common.default_selection_count") }),
|
|
25679
25696
|
/* @__PURE__ */ n.jsx(us, { value: i.options_query_id, onChange: i.setOptionsQueryID }),
|
|
25680
25697
|
/* @__PURE__ */ n.jsx(xx, {})
|
|
@@ -26001,7 +26018,7 @@ const sI = p.model("FilterDateRangeConfigMeta", {
|
|
|
26001
26018
|
i,
|
|
26002
26019
|
c && /* @__PURE__ */ n.jsx("span", { className: h.required, "aria-hidden": "true", children: "*" })
|
|
26003
26020
|
] }),
|
|
26004
|
-
I && /* @__PURE__ */ n.jsx(
|
|
26021
|
+
I && /* @__PURE__ */ n.jsx(he, { label: u("filter.widget.common.x_selected", {
|
|
26005
26022
|
count: a.length
|
|
26006
26023
|
}), children: /* @__PURE__ */ n.jsx(rr, { variant: "light", children: a.length }) })
|
|
26007
26024
|
] }),
|
|
@@ -26068,12 +26085,12 @@ const sI = p.model("FilterDateRangeConfigMeta", {
|
|
|
26068
26085
|
} = y(), r = e.config;
|
|
26069
26086
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
26070
26087
|
/* @__PURE__ */ n.jsxs(b, { justify: "space-between", children: [
|
|
26071
|
-
/* @__PURE__ */ n.jsx(
|
|
26088
|
+
/* @__PURE__ */ n.jsx(de, { checked: r.required, onChange: (i) => r.setRequired(i.currentTarget.checked), label: t("filter.widget.select.required") }),
|
|
26072
26089
|
/* @__PURE__ */ n.jsx(Lr, { filter: e })
|
|
26073
26090
|
] }),
|
|
26074
26091
|
/* @__PURE__ */ n.jsx(E, { label: t("filter.widget.common.min_width"), value: r.min_width, onChange: (i) => r.setMinWidth(i.currentTarget.value), placeholder: "200px" }),
|
|
26075
26092
|
/* @__PURE__ */ n.jsx(A, { label: t("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
|
|
26076
|
-
/* @__PURE__ */ n.jsx(
|
|
26093
|
+
/* @__PURE__ */ n.jsx(de, { checked: r.default_selection_count === 1, onChange: (i) => r.setDefaultSelectionCount(i.currentTarget.checked ? 1 : 0), label: t("filter.widget.tree_single_select.select_first_option_by_default") }),
|
|
26077
26094
|
/* @__PURE__ */ n.jsx(us, { value: r.options_query_id, onChange: r.setOptionsQueryID }),
|
|
26078
26095
|
/* @__PURE__ */ n.jsx(xx, {})
|
|
26079
26096
|
] });
|
|
@@ -28247,7 +28264,7 @@ class BI {
|
|
|
28247
28264
|
const HI = (e) => new BI(e), QI = ({
|
|
28248
28265
|
description: e,
|
|
28249
28266
|
isDescriptionEmpty: t
|
|
28250
|
-
}) => t ? null : /* @__PURE__ */ n.jsx(
|
|
28267
|
+
}) => t ? null : /* @__PURE__ */ n.jsx(he, { color: "white", label: /* @__PURE__ */ n.jsx(si, { value: e, styles: {
|
|
28251
28268
|
root: {
|
|
28252
28269
|
border: "none"
|
|
28253
28270
|
},
|
|
@@ -28274,7 +28291,7 @@ const HI = (e) => new BI(e), QI = ({
|
|
|
28274
28291
|
onChange: o
|
|
28275
28292
|
}) => /* @__PURE__ */ n.jsxs(R, { children: [
|
|
28276
28293
|
/* @__PURE__ */ n.jsx(S, { size: "sm", children: " " }),
|
|
28277
|
-
/* @__PURE__ */ n.jsx(
|
|
28294
|
+
/* @__PURE__ */ n.jsx(de, { label: /* @__PURE__ */ n.jsxs(b, { wrap: "nowrap", justify: "space-between", align: "middle", gap: 6, children: [
|
|
28278
28295
|
/* @__PURE__ */ n.jsx(R, { sx: {
|
|
28279
28296
|
flexGrow: 1
|
|
28280
28297
|
}, children: e }),
|
|
@@ -28323,7 +28340,7 @@ const HI = (e) => new BI(e), QI = ({
|
|
|
28323
28340
|
const a = i === 1 ? r("filter.widget.date_range.one_day") : r("filter.widget.date_range.x_days", {
|
|
28324
28341
|
count: i
|
|
28325
28342
|
});
|
|
28326
|
-
return /* @__PURE__ */ n.jsx(
|
|
28343
|
+
return /* @__PURE__ */ n.jsx(he, { label: a, children: /* @__PURE__ */ n.jsx(rr, { size: "sm", variant: "light", children: i }) });
|
|
28327
28344
|
}, YI = ({
|
|
28328
28345
|
max_days: e
|
|
28329
28346
|
}) => {
|
|
@@ -28689,7 +28706,7 @@ const HI = (e) => new BI(e), QI = ({
|
|
|
28689
28706
|
i,
|
|
28690
28707
|
c && /* @__PURE__ */ n.jsx("span", { className: u.required, "aria-hidden": "true", children: "*" })
|
|
28691
28708
|
] }),
|
|
28692
|
-
_ && /* @__PURE__ */ n.jsx(
|
|
28709
|
+
_ && /* @__PURE__ */ n.jsx(he, { label: d("filter.widget.common.x_selected", {
|
|
28693
28710
|
count: a.length
|
|
28694
28711
|
}), children: /* @__PURE__ */ n.jsx(rr, { variant: "light", children: a.length }) })
|
|
28695
28712
|
] }),
|
|
@@ -28998,7 +29015,7 @@ const p8 = D(() => {
|
|
|
28998
29015
|
} = Nt();
|
|
28999
29016
|
return h8(i.description) ? null : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
29000
29017
|
/* @__PURE__ */ n.jsx(Ge, { opened: t, onClose: () => r(!1), title: i.title.show ? i.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ n.jsx(p8, {}) }),
|
|
29001
|
-
/* @__PURE__ */ n.jsx(
|
|
29018
|
+
/* @__PURE__ */ n.jsx(he, { label: e("panel.panel_description_click"), position: "top-start", withinPortal: !0, children: /* @__PURE__ */ n.jsx(oe, { variant: "subtle", color: "blue", onClick: () => r((a) => !a), sx: {
|
|
29002
29019
|
verticalAlign: "baseline",
|
|
29003
29020
|
cursor: "pointer"
|
|
29004
29021
|
}, children: /* @__PURE__ */ n.jsx(mt, { size: 20 }) }) })
|
|
@@ -32525,6 +32542,7 @@ Variable: {{ your_var }}`,
|
|
|
32525
32542
|
y_axis_name: "Y Axis Name",
|
|
32526
32543
|
y_axis_name_anchor: "Name Anchor",
|
|
32527
32544
|
y_axis_data_field: "Y Axis Data Field",
|
|
32545
|
+
inverse: "Inverse",
|
|
32528
32546
|
layout: "Layout",
|
|
32529
32547
|
position: {
|
|
32530
32548
|
label: "Position",
|
|
@@ -33531,6 +33549,7 @@ Variable: {{ your_var }}`,
|
|
|
33531
33549
|
y_axis_name: "Y轴名称",
|
|
33532
33550
|
y_axis_name_anchor: "名称贴靠侧",
|
|
33533
33551
|
y_axis_data_field: "Y轴数据字段",
|
|
33552
|
+
inverse: "反向坐标轴",
|
|
33534
33553
|
layout: "布局",
|
|
33535
33554
|
position: {
|
|
33536
33555
|
label: "位置",
|
|
@@ -33877,7 +33896,7 @@ const VM = D(({
|
|
|
33877
33896
|
const {
|
|
33878
33897
|
t: e
|
|
33879
33898
|
} = y(), t = je(), r = ((a = t.views.VIE) == null ? void 0 : a.type) === J.Tabs, i = () => t.addANewPanel(t.views.idOfVIE);
|
|
33880
|
-
return r ? /* @__PURE__ */ n.jsx(
|
|
33899
|
+
return r ? /* @__PURE__ */ n.jsx(he, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ n.jsx(L, { variant: "outline", color: "gray", radius: 0, size: "xs", leftSection: /* @__PURE__ */ n.jsx(Di, { size: 20 }), sx: {
|
|
33881
33900
|
...$d,
|
|
33882
33901
|
transform: "none !important"
|
|
33883
33902
|
}, children: e("panel.add") }) }) : /* @__PURE__ */ n.jsx(L, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: i, leftSection: /* @__PURE__ */ n.jsx(Di, { size: 20 }), sx: {
|
|
@@ -33976,7 +33995,7 @@ const VM = D(({
|
|
|
33976
33995
|
backgroundColor: "transparent"
|
|
33977
33996
|
}, children: /* @__PURE__ */ n.jsx(v.Td, { colSpan: 3, style: {
|
|
33978
33997
|
padding: "0"
|
|
33979
|
-
}, children: /* @__PURE__ */ n.jsx(
|
|
33998
|
+
}, children: /* @__PURE__ */ n.jsx(he, { label: t("breakpoint.add"), children: /* @__PURE__ */ n.jsx(oe, { variant: "subtle", size: "md", color: "blue", onClick: I, sx: {
|
|
33980
33999
|
width: "100%"
|
|
33981
34000
|
}, children: /* @__PURE__ */ n.jsx(rn, { size: 18 }) }) }) }) })
|
|
33982
34001
|
] })
|
|
@@ -34041,7 +34060,7 @@ const VM = D(({
|
|
|
34041
34060
|
var s;
|
|
34042
34061
|
return (s = t.views.VIE) == null ? void 0 : s.downloadSchema();
|
|
34043
34062
|
};
|
|
34044
|
-
return r ? /* @__PURE__ */ n.jsx(
|
|
34063
|
+
return r ? /* @__PURE__ */ n.jsx(he, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ n.jsx(L, { variant: "outline", color: "gray", radius: 0, size: "xs", leftSection: /* @__PURE__ */ n.jsx(wr, { size: 16 }), sx: {
|
|
34045
34064
|
...Ad,
|
|
34046
34065
|
transform: "none !important"
|
|
34047
34066
|
}, children: e("view.download_schema") }) }) : /* @__PURE__ */ n.jsx(L, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: i, leftSection: /* @__PURE__ */ n.jsx(wr, { size: 16 }), sx: {
|
|
@@ -34293,7 +34312,7 @@ const JM = D(({
|
|
|
34293
34312
|
setTrue: s,
|
|
34294
34313
|
setFalse: o
|
|
34295
34314
|
}] = lt(!1), c = ((d = we().content.views.VIE) == null ? void 0 : d.type) === J.Tabs;
|
|
34296
|
-
return c ? /* @__PURE__ */ n.jsx(
|
|
34315
|
+
return c ? /* @__PURE__ */ n.jsx(he, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ n.jsx(L, { variant: "outline", color: "gray", radius: 0, size: "xs", leftSection: /* @__PURE__ */ n.jsx(Tc, { size: 16 }), sx: {
|
|
34297
34316
|
...Od,
|
|
34298
34317
|
transform: "none !important"
|
|
34299
34318
|
}, children: e("import.label") }) }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -34426,7 +34445,7 @@ const tL = ({
|
|
|
34426
34445
|
const {
|
|
34427
34446
|
t: e
|
|
34428
34447
|
} = y();
|
|
34429
|
-
return /* @__PURE__ */ n.jsx(
|
|
34448
|
+
return /* @__PURE__ */ n.jsx(he, { label: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
34430
34449
|
Fd && /* @__PURE__ */ n.jsx(Vd, { children: "⌘ + K" }),
|
|
34431
34450
|
!Fd && /* @__PURE__ */ n.jsx(Vd, { children: "Ctrl + K" })
|
|
34432
34451
|
] }), children: /* @__PURE__ */ n.jsx(uo, { onClick: () => Ly.open(), style: {
|
|
@@ -34899,7 +34918,7 @@ function EL({
|
|
|
34899
34918
|
}), children: /* @__PURE__ */ n.jsx(b, { sx: {
|
|
34900
34919
|
width: "calc(100% - 28px)"
|
|
34901
34920
|
}, onClick: e, children: /* @__PURE__ */ n.jsx(S, { size: "sm", children: t }) }) }),
|
|
34902
|
-
r && /* @__PURE__ */ n.jsx(
|
|
34921
|
+
r && /* @__PURE__ */ n.jsx(he, { label: "Edit", position: "right", withinPortal: !0, children: /* @__PURE__ */ n.jsx(oe, { onClick: i, variant: "light", color: "blue", sx: {
|
|
34903
34922
|
position: "absolute",
|
|
34904
34923
|
top: 0,
|
|
34905
34924
|
bottom: 0,
|
|
@@ -34956,13 +34975,13 @@ const RL = D(() => {
|
|
|
34956
34975
|
borderColor: "#e9ecef"
|
|
34957
34976
|
}
|
|
34958
34977
|
}, children: [
|
|
34959
|
-
/* @__PURE__ */ n.jsx(
|
|
34978
|
+
/* @__PURE__ */ n.jsx(he, { label: e("filter.labels"), withinPortal: !0, children: /* @__PURE__ */ n.jsx(oe, { variant: "default", radius: 0, size: "md", sx: {
|
|
34960
34979
|
height: "30px"
|
|
34961
34980
|
}, onClick: a, children: /* @__PURE__ */ n.jsx(So, { size: 18 }) }) }),
|
|
34962
|
-
/* @__PURE__ */ n.jsx(
|
|
34981
|
+
/* @__PURE__ */ n.jsx(he, { label: e("query.labels"), withinPortal: !0, children: /* @__PURE__ */ n.jsx(oe, { variant: "default", radius: 0, size: "md", sx: {
|
|
34963
34982
|
height: "30px"
|
|
34964
34983
|
}, onClick: i, children: /* @__PURE__ */ n.jsx(ir, { size: 18 }) }) }),
|
|
34965
|
-
/* @__PURE__ */ n.jsx(
|
|
34984
|
+
/* @__PURE__ */ n.jsx(he, { label: e("interactions.interactions_viewer"), withinPortal: !0, children: /* @__PURE__ */ n.jsx(oe, { variant: "default", radius: 0, size: "md", sx: {
|
|
34966
34985
|
height: "30px"
|
|
34967
34986
|
}, onClick: l, children: /* @__PURE__ */ n.jsx(jo, { size: 18 }) }) })
|
|
34968
34987
|
] }),
|
|
@@ -34989,7 +35008,7 @@ const RL = D(() => {
|
|
|
34989
35008
|
} = y(), r = e.config;
|
|
34990
35009
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
34991
35010
|
/* @__PURE__ */ n.jsxs(b, { justify: "space-between", children: [
|
|
34992
|
-
/* @__PURE__ */ n.jsx(
|
|
35011
|
+
/* @__PURE__ */ n.jsx(de, { checked: r.default_value, onChange: (i) => r.setDefaultValue(i.currentTarget.checked), label: t("filter.widget.checkbox.default_checked") }),
|
|
34993
35012
|
/* @__PURE__ */ n.jsx(Lr, { filter: e })
|
|
34994
35013
|
] }),
|
|
34995
35014
|
/* @__PURE__ */ n.jsx(ar, { label: t("filter.widget.checkbox.description"), value: r.description, onChange: r.setDescription, styles: {
|
|
@@ -35034,8 +35053,8 @@ const RL = D(() => {
|
|
|
35034
35053
|
}, []), s = [...i.default_value];
|
|
35035
35054
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
35036
35055
|
/* @__PURE__ */ n.jsxs(b, { children: [
|
|
35037
|
-
/* @__PURE__ */ n.jsx(
|
|
35038
|
-
/* @__PURE__ */ n.jsx(
|
|
35056
|
+
/* @__PURE__ */ n.jsx(de, { checked: i.required, onChange: (o) => i.setRequired(o.currentTarget.checked), label: r("filter.widget.date_range.required") }),
|
|
35057
|
+
/* @__PURE__ */ n.jsx(de, { checked: i.allowSingleDateInRange, onChange: (o) => i.setAllowSingleDateInRange(o.currentTarget.checked), label: r("filter.widget.date_range.allow_single_date") })
|
|
35039
35058
|
] }),
|
|
35040
35059
|
/* @__PURE__ */ n.jsxs(b, { grow: !0, children: [
|
|
35041
35060
|
/* @__PURE__ */ n.jsx(N, { data: OL, label: r("filter.widget.date_range.display_format"), value: i.inputFormat, onChange: i.setInputFormat }),
|
|
@@ -35080,7 +35099,7 @@ const RL = D(() => {
|
|
|
35080
35099
|
}, s = i.static_options, o = [...s];
|
|
35081
35100
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
35082
35101
|
/* @__PURE__ */ n.jsxs(b, { justify: "space-between", children: [
|
|
35083
|
-
/* @__PURE__ */ n.jsx(
|
|
35102
|
+
/* @__PURE__ */ n.jsx(de, { checked: i.required, onChange: (l) => i.setRequired(l.currentTarget.checked), label: r("filter.widget.select.required") }),
|
|
35084
35103
|
/* @__PURE__ */ n.jsx(Lr, { filter: t })
|
|
35085
35104
|
] }),
|
|
35086
35105
|
/* @__PURE__ */ n.jsx(E, { label: r("filter.widget.select.width"), description: r("filter.widget.multi_select.width_description"), value: i.min_width, onChange: (l) => i.setMinWidth(l.currentTarget.value), placeholder: "200px" }),
|
|
@@ -35240,8 +35259,8 @@ const RL = D(() => {
|
|
|
35240
35259
|
} = y(), r = e.config;
|
|
35241
35260
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
35242
35261
|
/* @__PURE__ */ n.jsxs(b, { justify: "space-between", children: [
|
|
35243
|
-
/* @__PURE__ */ n.jsx(
|
|
35244
|
-
/* @__PURE__ */ n.jsx(
|
|
35262
|
+
/* @__PURE__ */ n.jsx(de, { checked: r.required, onChange: (i) => r.setRequired(i.currentTarget.checked), label: t("filter.widget.select.required") }),
|
|
35263
|
+
/* @__PURE__ */ n.jsx(de, { checked: r.clearable, onChange: (i) => r.setClearable(i.currentTarget.checked), label: t("filter.widget.select.clearable") }),
|
|
35245
35264
|
/* @__PURE__ */ n.jsx(Lr, { filter: e })
|
|
35246
35265
|
] }),
|
|
35247
35266
|
/* @__PURE__ */ n.jsx(E, { label: t("filter.widget.select.width"), value: r.width, onChange: (i) => r.setWidth(i.currentTarget.value), placeholder: "200px" }),
|
|
@@ -35269,7 +35288,7 @@ const RL = D(() => {
|
|
|
35269
35288
|
/* @__PURE__ */ n.jsx(qL, { config: r })
|
|
35270
35289
|
] }),
|
|
35271
35290
|
/* @__PURE__ */ n.jsx(A, { label: t("filter.widget.common.or_fetch_options_from_datasource"), labelPosition: "center" }),
|
|
35272
|
-
/* @__PURE__ */ n.jsx(
|
|
35291
|
+
/* @__PURE__ */ n.jsx(de, { checked: r.default_selection_count === 1, onChange: (i) => r.setDefaultSelectionCount(i.currentTarget.checked ? 1 : 0), label: t("filter.widget.select.select_first_option_by_default") }),
|
|
35273
35292
|
/* @__PURE__ */ n.jsx(us, { value: r.options_query_id, onChange: r.setOptionsQueryID }),
|
|
35274
35293
|
/* @__PURE__ */ n.jsx(hg, {})
|
|
35275
35294
|
] });
|
|
@@ -35288,7 +35307,7 @@ const RL = D(() => {
|
|
|
35288
35307
|
} }),
|
|
35289
35308
|
/* @__PURE__ */ n.jsx(R, { mt: 22, children: /* @__PURE__ */ n.jsx(Lr, { filter: t }) })
|
|
35290
35309
|
] }),
|
|
35291
|
-
/* @__PURE__ */ n.jsx(
|
|
35310
|
+
/* @__PURE__ */ n.jsx(de, { checked: i.required, onChange: (a) => i.setRequired(a.currentTarget.checked), label: r("filter.widget.text_input.required") })
|
|
35292
35311
|
] });
|
|
35293
35312
|
}), QL = D(function({
|
|
35294
35313
|
filter: t
|
|
@@ -35356,7 +35375,7 @@ const RL = D(() => {
|
|
|
35356
35375
|
/* @__PURE__ */ n.jsx(ce, { label: r("filter.field.order"), required: !0, value: t.order, onChange: t.setOrder, hideControls: !0, sx: {
|
|
35357
35376
|
flexGrow: "1 !important"
|
|
35358
35377
|
} }),
|
|
35359
|
-
t.auto_submit_supported && /* @__PURE__ */ n.jsx(
|
|
35378
|
+
t.auto_submit_supported && /* @__PURE__ */ n.jsx(de, { label: r("filter.field.auto_submit"), checked: t.auto_submit, onChange: (l) => t.setAutoSubmit(l.currentTarget.checked), mt: 22 })
|
|
35360
35379
|
] }),
|
|
35361
35380
|
/* @__PURE__ */ n.jsx(yr, { label: r("filter.field.visible_in"), data: a.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
|
|
35362
35381
|
/* @__PURE__ */ n.jsx(E, { label: r("common.key"), placeholder: r("filter.field.key_placeholder"), required: !0, value: t.key, onChange: (l) => {
|
|
@@ -35458,7 +35477,7 @@ const RL = D(() => {
|
|
|
35458
35477
|
/* @__PURE__ */ n.jsx(R, { sx: {
|
|
35459
35478
|
flexGrow: 1,
|
|
35460
35479
|
overflow: "auto"
|
|
35461
|
-
}, children: /* @__PURE__ */ n.jsx(
|
|
35480
|
+
}, children: /* @__PURE__ */ n.jsx(de.Group, { size: "xs", value: t, onChange: r, children: /* @__PURE__ */ n.jsxs(v, { fz: "sm", highlightOnHover: !0, sx: {
|
|
35462
35481
|
tableLayout: "fixed"
|
|
35463
35482
|
}, children: [
|
|
35464
35483
|
/* @__PURE__ */ n.jsx(v.Thead, { children: /* @__PURE__ */ n.jsxs(v.Tr, { children: [
|
|
@@ -35478,7 +35497,7 @@ const RL = D(() => {
|
|
|
35478
35497
|
}, children: e("common.action") })
|
|
35479
35498
|
] }) }),
|
|
35480
35499
|
/* @__PURE__ */ n.jsx(v.Tbody, { children: i.content.filters.sortedList.map((d) => /* @__PURE__ */ n.jsxs(v.Tr, { children: [
|
|
35481
|
-
/* @__PURE__ */ n.jsx(v.Td, { children: /* @__PURE__ */ n.jsx(
|
|
35500
|
+
/* @__PURE__ */ n.jsx(v.Td, { children: /* @__PURE__ */ n.jsx(de, { value: d.id, styles: {
|
|
35482
35501
|
input: {
|
|
35483
35502
|
cursor: "pointer"
|
|
35484
35503
|
}
|
|
@@ -35578,7 +35597,7 @@ const RL = D(() => {
|
|
|
35578
35597
|
typeof a != "string" && r.setHeight(a);
|
|
35579
35598
|
} })
|
|
35580
35599
|
] }),
|
|
35581
|
-
/* @__PURE__ */ n.jsx(
|
|
35600
|
+
/* @__PURE__ */ n.jsx(de, { ml: 6, label: e("panel.style.border"), checked: i.border.enabled, onChange: (a) => i.border.setEnabled(a.currentTarget.checked) })
|
|
35582
35601
|
] }) });
|
|
35583
35602
|
}), JL = () => /* @__PURE__ */ n.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
|
|
35584
35603
|
" ",
|
|
@@ -35614,10 +35633,10 @@ const RL = D(() => {
|
|
|
35614
35633
|
panel: t
|
|
35615
35634
|
} = xt();
|
|
35616
35635
|
return /* @__PURE__ */ n.jsx(T, { gap: 6, mb: 10, children: /* @__PURE__ */ n.jsxs(b, { pl: 6, justify: "flex-start", gap: 20, children: [
|
|
35617
|
-
/* @__PURE__ */ n.jsx(
|
|
35636
|
+
/* @__PURE__ */ n.jsx(de, { size: "sm", checked: t.title.show, onChange: (r) => t.title.setShow(r.currentTarget.checked), label: e("panel.show_title"), sx: {
|
|
35618
35637
|
userSelect: "none"
|
|
35619
35638
|
} }),
|
|
35620
|
-
/* @__PURE__ */ n.jsx(
|
|
35639
|
+
/* @__PURE__ */ n.jsx(de, { size: "sm", checked: !0, disabled: !0, label: e("panel.use_name_as_title") })
|
|
35621
35640
|
] }) });
|
|
35622
35641
|
});
|
|
35623
35642
|
function n9() {
|
|
@@ -35847,13 +35866,13 @@ const i9 = [{
|
|
|
35847
35866
|
r.editor.setPath(["_QUERIES_", d]);
|
|
35848
35867
|
}, c = a.queryIDs.length;
|
|
35849
35868
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
35850
|
-
/* @__PURE__ */ n.jsx(nf, { opened: s, onClose: () => o(!1), title: t("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ n.jsx(
|
|
35869
|
+
/* @__PURE__ */ n.jsx(nf, { opened: s, onClose: () => o(!1), title: t("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ n.jsx(de.Group, { value: [...a.queryIDs], onChange: a.setQueryIDs, children: /* @__PURE__ */ n.jsx(T, { gap: "lg", children: i.queries.options.map((d) => /* @__PURE__ */ n.jsx(de, { label: d.label, value: d.value }, d.value)) }) }) }),
|
|
35851
35870
|
/* @__PURE__ */ n.jsxs(T, { gap: 6, children: [
|
|
35852
35871
|
/* @__PURE__ */ n.jsx(b, { justify: "flex-start", children: /* @__PURE__ */ n.jsx(L, { variant: "light", size: "sm", leftSection: /* @__PURE__ */ n.jsx(Xf, { size: 16 }), onClick: () => o(!0), children: t(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
|
|
35853
|
-
c === 1 && /* @__PURE__ */ n.jsx(lo, { id: a.queryIDs[0], moreActions: /* @__PURE__ */ n.jsx(
|
|
35872
|
+
c === 1 && /* @__PURE__ */ n.jsx(lo, { id: a.queryIDs[0], moreActions: /* @__PURE__ */ n.jsx(he, { label: t("query.open"), children: /* @__PURE__ */ n.jsx(oe, { variant: "subtle", color: "blue", onClick: () => l(a.queryIDs[0]), children: /* @__PURE__ */ n.jsx($s, { size: 16 }) }) }) }),
|
|
35854
35873
|
c > 1 && /* @__PURE__ */ n.jsxs(j, { defaultValue: a.queryIDs[0], children: [
|
|
35855
35874
|
/* @__PURE__ */ n.jsx(j.List, { children: a.queries.map((d) => /* @__PURE__ */ n.jsx(j.Tab, { value: d.id, children: d.name }, d.id)) }),
|
|
35856
|
-
a.queries.map((d) => /* @__PURE__ */ n.jsx(j.Panel, { value: d.id, children: /* @__PURE__ */ n.jsx(lo, { id: d.id, moreActions: /* @__PURE__ */ n.jsx(
|
|
35875
|
+
a.queries.map((d) => /* @__PURE__ */ n.jsx(j.Panel, { value: d.id, children: /* @__PURE__ */ n.jsx(lo, { id: d.id, moreActions: /* @__PURE__ */ n.jsx(he, { label: t("query.open"), children: /* @__PURE__ */ n.jsx(oe, { variant: "subtle", color: "blue", onClick: () => l(d.id), children: /* @__PURE__ */ n.jsx($s, { size: 16 }) }) }) }) }, d.id))
|
|
35857
35876
|
] })
|
|
35858
35877
|
] })
|
|
35859
35878
|
] });
|
|
@@ -36302,8 +36321,8 @@ const T9 = D(({
|
|
|
36302
36321
|
/* @__PURE__ */ n.jsxs(j.List, { children: [
|
|
36303
36322
|
/* @__PURE__ */ n.jsx(j.Tab, { value: "Data", leftSection: /* @__PURE__ */ n.jsx(ir, { size: 14 }), disabled: d, children: t("data.label") }),
|
|
36304
36323
|
/* @__PURE__ */ n.jsx(j.Tab, { value: "Panel", leftSection: /* @__PURE__ */ n.jsx(vo, { size: 14 }), children: t("panel.label") }),
|
|
36305
|
-
/* @__PURE__ */ n.jsx(j.Tab, { value: "Variables", leftSection: /* @__PURE__ */ n.jsx(Xr, { size: 14 }), disabled: u, children: /* @__PURE__ */ n.jsx(
|
|
36306
|
-
/* @__PURE__ */ n.jsx(j.Tab, { value: "Visualization", leftSection: /* @__PURE__ */ n.jsx(yu, { size: 14 }), disabled: u, children: /* @__PURE__ */ n.jsx(
|
|
36324
|
+
/* @__PURE__ */ n.jsx(j.Tab, { value: "Variables", leftSection: /* @__PURE__ */ n.jsx(Xr, { size: 14 }), disabled: u, children: /* @__PURE__ */ n.jsx(he, { label: t("data.requires_data"), disabled: !u, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ n.jsx(S, { size: "sm", children: t("panel.variable.labels") }) }) }),
|
|
36325
|
+
/* @__PURE__ */ n.jsx(j.Tab, { value: "Visualization", leftSection: /* @__PURE__ */ n.jsx(yu, { size: 14 }), disabled: u, children: /* @__PURE__ */ n.jsx(he, { label: t("data.requires_data"), disabled: !u, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ n.jsx(S, { size: "sm", children: t("visualization.label") }) }) }),
|
|
36307
36326
|
/* @__PURE__ */ n.jsx(j.Tab, { value: "Interactions", leftSection: /* @__PURE__ */ n.jsx(jo, { size: 14 }), children: t("interactions.label") })
|
|
36308
36327
|
] }),
|
|
36309
36328
|
/* @__PURE__ */ n.jsxs(j.Panel, { value: "Data", children: [
|
|
@@ -36394,7 +36413,7 @@ const T9 = D(({
|
|
|
36394
36413
|
/* @__PURE__ */ n.jsx(R, { sx: {
|
|
36395
36414
|
flexGrow: 1,
|
|
36396
36415
|
overflow: "auto"
|
|
36397
|
-
}, children: /* @__PURE__ */ n.jsx(
|
|
36416
|
+
}, children: /* @__PURE__ */ n.jsx(de.Group, { size: "xs", value: t, onChange: r, children: /* @__PURE__ */ n.jsxs(v, { fz: "sm", highlightOnHover: !0, sx: {
|
|
36398
36417
|
tableLayout: "fixed"
|
|
36399
36418
|
}, children: [
|
|
36400
36419
|
/* @__PURE__ */ n.jsx(v.Thead, { children: /* @__PURE__ */ n.jsxs(v.Tr, { children: [
|
|
@@ -36422,7 +36441,7 @@ const T9 = D(({
|
|
|
36422
36441
|
var x;
|
|
36423
36442
|
const g = ((x = h[m.id]) == null ? void 0 : x.length) ?? 0;
|
|
36424
36443
|
return /* @__PURE__ */ n.jsxs(v.Tr, { children: [
|
|
36425
|
-
/* @__PURE__ */ n.jsx(v.Td, { children: /* @__PURE__ */ n.jsx(
|
|
36444
|
+
/* @__PURE__ */ n.jsx(v.Td, { children: /* @__PURE__ */ n.jsx(de, { value: m.id, styles: {
|
|
36426
36445
|
input: {
|
|
36427
36446
|
cursor: "pointer"
|
|
36428
36447
|
}
|
|
@@ -36464,7 +36483,7 @@ const T9 = D(({
|
|
|
36464
36483
|
zIndex: 320
|
|
36465
36484
|
});
|
|
36466
36485
|
};
|
|
36467
|
-
return o ? /* @__PURE__ */ n.jsx(
|
|
36486
|
+
return o ? /* @__PURE__ */ n.jsx(he, { label: t("query.cant_delete"), withArrow: !0, events: {
|
|
36468
36487
|
hover: !0,
|
|
36469
36488
|
focus: !1,
|
|
36470
36489
|
touch: !1
|
|
@@ -36485,14 +36504,14 @@ const T9 = D(({
|
|
|
36485
36504
|
/* @__PURE__ */ n.jsx(Cc, { width: t, height: r, radius: "xs" })
|
|
36486
36505
|
] }), ki = ({
|
|
36487
36506
|
value: e
|
|
36488
|
-
}) => e === null || e === "" ? null : /* @__PURE__ */ n.jsx(
|
|
36507
|
+
}) => e === null || e === "" ? null : /* @__PURE__ */ n.jsx(he, { label: e, disabled: !e, multiline: !0, zIndex: 340, children: /* @__PURE__ */ n.jsx(oe, { variant: "subtle", children: /* @__PURE__ */ n.jsx(mt, { size: 14 }) }) }), L9 = ({
|
|
36489
36508
|
column: e
|
|
36490
36509
|
}) => {
|
|
36491
36510
|
const {
|
|
36492
36511
|
column_key: t,
|
|
36493
36512
|
column_key_text: r
|
|
36494
36513
|
} = e;
|
|
36495
|
-
return t ? /* @__PURE__ */ n.jsx(
|
|
36514
|
+
return t ? /* @__PURE__ */ n.jsx(he, { label: r, disabled: !r, children: /* @__PURE__ */ n.jsx(rr, { variant: "light", children: t }) }) : null;
|
|
36496
36515
|
}, P9 = D(({
|
|
36497
36516
|
dataSource: e
|
|
36498
36517
|
}) => {
|
|
@@ -37135,7 +37154,7 @@ WHERE
|
|
|
37135
37154
|
}
|
|
37136
37155
|
}, children: /* @__PURE__ */ n.jsx(Va, { size: 12 }) }), children: l.key }, l.key)) })
|
|
37137
37156
|
] }, s)) }) })
|
|
37138
|
-
] }) : /* @__PURE__ */ n.jsx(
|
|
37157
|
+
] }) : /* @__PURE__ */ n.jsx(he, { label: t("query.dependency.has_none"), children: /* @__PURE__ */ n.jsx(L, { size: "xs", variant: "subtle", color: "gray", leftSection: /* @__PURE__ */ n.jsx(nb, { size: 16, style: {
|
|
37139
37158
|
transform: "rotate(180deg)"
|
|
37140
37159
|
} }), sx: {
|
|
37141
37160
|
transform: "none !important"
|
|
@@ -37275,8 +37294,8 @@ WHERE
|
|
|
37275
37294
|
e.typedAsSQL && /* @__PURE__ */ n.jsx(j.Tab, { value: "SQL", children: t("query.request") }),
|
|
37276
37295
|
e.typedAsHTTP && /* @__PURE__ */ n.jsx(j.Tab, { value: "HTTP", children: t("query.request") }),
|
|
37277
37296
|
e.isTransform && /* @__PURE__ */ n.jsx(j.Tab, { value: "Transform", children: t("query.transform.label") }),
|
|
37278
|
-
/* @__PURE__ */ n.jsx(j.Tab, { value: "Data", disabled: !e.canPreviewData, children: /* @__PURE__ */ n.jsx(
|
|
37279
|
-
/* @__PURE__ */ n.jsx(j.Tab, { value: "Usage", disabled: l, children: /* @__PURE__ */ n.jsx(
|
|
37297
|
+
/* @__PURE__ */ n.jsx(j.Tab, { value: "Data", disabled: !e.canPreviewData, children: /* @__PURE__ */ n.jsx(he, { label: e.guideToPreviewData, disabled: e.canPreviewData, withinPortal: !0, children: /* @__PURE__ */ n.jsx(S, { size: "sm", children: t("data.preview_data") }) }) }),
|
|
37298
|
+
/* @__PURE__ */ n.jsx(j.Tab, { value: "Usage", disabled: l, children: /* @__PURE__ */ n.jsx(he, { label: t("query.usage.unused_description"), disabled: !l, withinPortal: !0, children: /* @__PURE__ */ n.jsx(S, { size: "sm", children: t("query.usage.label") }) }) })
|
|
37280
37299
|
] }),
|
|
37281
37300
|
/* @__PURE__ */ n.jsx(j.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ n.jsx(Y9, { queryModel: e }) }),
|
|
37282
37301
|
e.typedAsSQL && /* @__PURE__ */ n.jsx(j.Panel, { value: "SQL", sx: xi, children: /* @__PURE__ */ n.jsx(T, { sx: {
|
|
@@ -37347,7 +37366,7 @@ WHERE
|
|
|
37347
37366
|
zIndex: 320
|
|
37348
37367
|
});
|
|
37349
37368
|
};
|
|
37350
|
-
return s ? /* @__PURE__ */ n.jsx(
|
|
37369
|
+
return s ? /* @__PURE__ */ n.jsx(he, { label: "此查询在使用中,不能删除。请查看“使用情况”标签页以了解详情", withArrow: !0, events: {
|
|
37351
37370
|
hover: !0,
|
|
37352
37371
|
focus: !1,
|
|
37353
37372
|
touch: !1
|
|
@@ -37710,7 +37729,7 @@ const xP = [{
|
|
|
37710
37729
|
return /* @__PURE__ */ n.jsxs(Yn, { store: c, onOptionSubmit: (h) => {
|
|
37711
37730
|
r(h), c.closeDropdown();
|
|
37712
37731
|
}, styles: TP, children: [
|
|
37713
|
-
/* @__PURE__ */ n.jsx(Yn.Target, { children: o ? /* @__PURE__ */ n.jsx(
|
|
37732
|
+
/* @__PURE__ */ n.jsx(Yn.Target, { children: o ? /* @__PURE__ */ n.jsx(he, { label: o, children: u }) : u }),
|
|
37714
37733
|
/* @__PURE__ */ n.jsx(Yn.Dropdown, { miw: 300, children: /* @__PURE__ */ n.jsx(Yn.Options, { children: l.map(({
|
|
37715
37734
|
group: h,
|
|
37716
37735
|
items: m
|
|
@@ -37845,7 +37864,7 @@ const xP = [{
|
|
|
37845
37864
|
}, [t.id, i]), /* @__PURE__ */ n.jsxs(T, { gap: 7, children: [
|
|
37846
37865
|
/* @__PURE__ */ n.jsxs(b, { justify: "flex-start", gap: 8, children: [
|
|
37847
37866
|
/* @__PURE__ */ n.jsx(S, { size: "sm", children: "看板变量与指标维度关联" }),
|
|
37848
|
-
/* @__PURE__ */ n.jsx(
|
|
37867
|
+
/* @__PURE__ */ n.jsx(he, { label: "将看板的筛选器参数与指标的查询维度关联上,使指标可以按照看板的筛选条件和背景变量进行关联展示。", children: /* @__PURE__ */ n.jsx(oe, { size: "xs", variant: "subtle", color: "gray", children: /* @__PURE__ */ n.jsx(mt, {}) }) })
|
|
37849
37868
|
] }),
|
|
37850
37869
|
/* @__PURE__ */ n.jsxs(v, { withTableBorder: !0, withColumnBorders: !0, layout: "fixed", styles: _g, children: [
|
|
37851
37870
|
/* @__PURE__ */ n.jsxs("colgroup", { children: [
|
|
@@ -37872,7 +37891,7 @@ const xP = [{
|
|
|
37872
37891
|
/* @__PURE__ */ n.jsx(co, { variable: a.variable }),
|
|
37873
37892
|
/* @__PURE__ */ n.jsx(Ra, { queryModel: e, value: a.variable, onChange: a.setVariable, usedKeys: t.usedFilterVariableSet })
|
|
37874
37893
|
] }) }),
|
|
37875
|
-
/* @__PURE__ */ n.jsx(v.Td, { children: /* @__PURE__ */ n.jsx(
|
|
37894
|
+
/* @__PURE__ */ n.jsx(v.Td, { children: /* @__PURE__ */ n.jsx(de, { size: "xs", checked: e.keyInRunBy(a.variable), onChange: (s) => e.changeRunByRecord(a.variable, s.currentTarget.checked), color: "red" }) })
|
|
37876
37895
|
] }, a.dimension)),
|
|
37877
37896
|
/* @__PURE__ */ n.jsxs(v.Tr, { className: "add-a-row", children: [
|
|
37878
37897
|
/* @__PURE__ */ n.jsx(v.Td, { pr: 0, children: /* @__PURE__ */ n.jsx(Kd, { mmInfo: i, value: null, onChange: (a) => a && t.addFilter(a, ""), usedKeys: t.usedFilterDimensionKeys }) }),
|
|
@@ -37889,7 +37908,7 @@ const xP = [{
|
|
|
37889
37908
|
const r = e.keyInRunBy(t), i = (a) => {
|
|
37890
37909
|
e.changeRunByRecord(t, a.currentTarget.checked);
|
|
37891
37910
|
};
|
|
37892
|
-
return /* @__PURE__ */ n.jsx(
|
|
37911
|
+
return /* @__PURE__ */ n.jsx(de, { size: "xs", checked: r, onChange: i, color: "red" });
|
|
37893
37912
|
}), Xd = ({
|
|
37894
37913
|
queryModel: e,
|
|
37895
37914
|
variable: t
|
|
@@ -37944,8 +37963,8 @@ const xP = [{
|
|
|
37944
37963
|
return /* @__PURE__ */ n.jsxs(T, { gap: 7, children: [
|
|
37945
37964
|
/* @__PURE__ */ n.jsxs(b, { justify: "flex-start", gap: 8, children: [
|
|
37946
37965
|
/* @__PURE__ */ n.jsx(S, { size: "sm", children: "按时间序列展示" }),
|
|
37947
|
-
/* @__PURE__ */ n.jsx(
|
|
37948
|
-
s ? /* @__PURE__ */ n.jsx(tt, { size: "xs", color: "red", checked: t.timeQuery.enabled, onChange: (o) => t.setTimeQueryEnabled(o.currentTarget.checked) }) : /* @__PURE__ */ n.jsx(
|
|
37966
|
+
/* @__PURE__ */ n.jsx(he, { label: "将看板的时间&步长筛选器与相应的查询维度关联上。", children: /* @__PURE__ */ n.jsx(oe, { size: "xs", variant: "subtle", color: "gray", children: /* @__PURE__ */ n.jsx(mt, {}) }) }),
|
|
37967
|
+
s ? /* @__PURE__ */ n.jsx(tt, { size: "xs", color: "red", checked: t.timeQuery.enabled, onChange: (o) => t.setTimeQueryEnabled(o.currentTarget.checked) }) : /* @__PURE__ */ n.jsx(he, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ n.jsx(R, { children: /* @__PURE__ */ n.jsx(tt, { size: "xs", color: "red", disabled: !s }) }) })
|
|
37949
37968
|
] }),
|
|
37950
37969
|
/* @__PURE__ */ n.jsx(PP, { queryModel: e })
|
|
37951
37970
|
] });
|
|
@@ -38101,7 +38120,7 @@ const xP = [{
|
|
|
38101
38120
|
error: c
|
|
38102
38121
|
} = a;
|
|
38103
38122
|
return /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsxs(b, { justify: "flex-end", gap: 12, align: "flex-end", children: [
|
|
38104
|
-
c ? /* @__PURE__ */ n.jsx(
|
|
38123
|
+
c ? /* @__PURE__ */ n.jsx(he, { label: c, children: /* @__PURE__ */ n.jsx(N, { size: "xs", label: "指标", error: !0, styles: {
|
|
38105
38124
|
root: {
|
|
38106
38125
|
flexGrow: 1
|
|
38107
38126
|
}
|
|
@@ -38110,7 +38129,7 @@ const xP = [{
|
|
|
38110
38129
|
flexGrow: 1
|
|
38111
38130
|
}
|
|
38112
38131
|
}, maxDropdownHeight: 500, value: t.id, onChange: o, rightSection: l ? /* @__PURE__ */ n.jsx(mo, { size: "xs" }) : null }),
|
|
38113
|
-
/* @__PURE__ */ n.jsx(
|
|
38132
|
+
/* @__PURE__ */ n.jsx(he, { label: "跳转到指标明细页查看详情。", disabled: l, children: /* @__PURE__ */ n.jsx(Ti, { size: "md", variant: "subtle", mb: 2, href: `/admin/metrics/detail/${t.id}`, target: "_blank", underline: "never", children: /* @__PURE__ */ n.jsx(cP, { width: 14, height: 14 }) }) })
|
|
38114
38133
|
] }) });
|
|
38115
38134
|
}), QP = D(({
|
|
38116
38135
|
queryModel: e
|
|
@@ -38318,7 +38337,7 @@ const xP = [{
|
|
|
38318
38337
|
/* @__PURE__ */ n.jsx(R, { sx: {
|
|
38319
38338
|
flexGrow: 1,
|
|
38320
38339
|
overflow: "auto"
|
|
38321
|
-
}, children: /* @__PURE__ */ n.jsx(
|
|
38340
|
+
}, children: /* @__PURE__ */ n.jsx(de.Group, { size: "xs", value: t, onChange: r, children: /* @__PURE__ */ n.jsxs(v, { fz: "sm", highlightOnHover: !0, sx: {
|
|
38322
38341
|
tableLayout: "fixed"
|
|
38323
38342
|
}, children: [
|
|
38324
38343
|
/* @__PURE__ */ n.jsx(v.Thead, { children: /* @__PURE__ */ n.jsxs(v.Tr, { children: [
|
|
@@ -38339,7 +38358,7 @@ const xP = [{
|
|
|
38339
38358
|
var x;
|
|
38340
38359
|
const g = ((x = h[m.key]) == null ? void 0 : x.length) ?? 0;
|
|
38341
38360
|
return /* @__PURE__ */ n.jsxs(v.Tr, { children: [
|
|
38342
|
-
/* @__PURE__ */ n.jsx(v.Td, { children: /* @__PURE__ */ n.jsx(
|
|
38361
|
+
/* @__PURE__ */ n.jsx(v.Td, { children: /* @__PURE__ */ n.jsx(de, { value: m.key, styles: {
|
|
38343
38362
|
input: {
|
|
38344
38363
|
cursor: "pointer"
|
|
38345
38364
|
}
|
|
@@ -38446,7 +38465,7 @@ const xP = [{
|
|
|
38446
38465
|
flexGrow: 0
|
|
38447
38466
|
}, children: /* @__PURE__ */ n.jsx(Zr, { size: 14 }) }),
|
|
38448
38467
|
/* @__PURE__ */ n.jsx(Ge, { size: 800, title: r("view.component.modal.custom_title"), opened: i, onClose: s, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ n.jsxs(T, { children: [
|
|
38449
|
-
/* @__PURE__ */ n.jsx(
|
|
38468
|
+
/* @__PURE__ */ n.jsx(de, { mt: 10, label: r("common.enabled"), checked: o.enabled, onChange: (g) => c(g.currentTarget.checked) }),
|
|
38450
38469
|
/* @__PURE__ */ n.jsx(JP, { value: o.func_content, onChange: h, disabled: !o.enabled }),
|
|
38451
38470
|
/* @__PURE__ */ n.jsxs(b, { justify: "space-between", children: [
|
|
38452
38471
|
/* @__PURE__ */ n.jsx(L, { onClick: m, color: "red", leftSection: /* @__PURE__ */ n.jsx(nn, { size: 20 }), children: r("common.actions.revert") }),
|