@devtable/dashboard 13.28.0 → 13.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dashboard.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var zg = Object.defineProperty;
|
|
2
2
|
var Dg = (e, t, n) => t in e ? zg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var U = (e, t, n) => (Dg(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import $, { forwardRef as de, useRef as lr, useEffect as Q, useState as Z, useCallback as
|
|
5
|
-
import { TextInput as E, Stack as C, Group as y, Button as M, Text as w, Box as R, Overlay as Pr, Modal as Ge, Tooltip as ve, ActionIcon as re, NativeSelect as
|
|
4
|
+
import $, { forwardRef as de, useRef as lr, useEffect as Q, useState as Z, useCallback as Fe, useMemo as T, useLayoutEffect as Mg, createElement as ha, useContext as Yn, createContext as Fu, memo as Eg } from "react";
|
|
5
|
+
import { TextInput as E, Stack as C, Group as y, Button as M, Text as w, Box as R, Overlay as Pr, Modal as Ge, Tooltip as ve, ActionIcon as re, NativeSelect as Vu, Select as q, Divider as O, NumberInput as pe, SimpleGrid as zr, Menu as le, UnstyledButton as Nu, Flex as nn, ColorInput as ur, Center as hr, Badge as cr, CloseButton as Mr, useMantineTheme as Hi, Popover as Jt, ColorSwatch as Vs, ColorPicker as ld, HoverCard as Ke, Checkbox as me, Switch as ut, Table as at, MultiSelect as ai, Paper as Lg, Code as cd, Tabs as _, LoadingOverlay as Or, Alert as Qi, createStyles as Ui, Collapse as Yi, CheckIcon as Ag, MANTINE_SIZES as Rg, SegmentedControl as qu, Anchor as Ns, Textarea as Bu, Mark as Wu, Slider as $g, Affix as Pg, Header as Og, List as Wt, FileInput as Fg, ThemeIcon as Ya, Navbar as Vn, JsonInput as Gu, Pagination as Hu, Drawer as Vg, Accordion as ys, Radio as dd, Skeleton as ud, NavLink as vo, AppShell as Qu } from "@mantine/core";
|
|
6
6
|
import { useModals as Ln, ModalsProvider as Uu } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as pt, useCreation as pn, useAsyncEffect as Ki, useRequest as Er, useLatest as hd, usePrevious as Ng, useWhyDidYouUpdate as Yu } from "ahooks";
|
|
8
8
|
import { toJS as Kn, observable as Ku, runInAction as Ai, reaction as Rt, makeAutoObservable as Xi } from "mobx";
|
|
@@ -12,16 +12,16 @@ import * as Bg from "crypto-js";
|
|
|
12
12
|
import Wg from "crypto-js";
|
|
13
13
|
import * as Xu from "d3-array";
|
|
14
14
|
import { quantile as Ms } from "d3-array";
|
|
15
|
-
import
|
|
15
|
+
import V from "dayjs";
|
|
16
16
|
import k, { cloneDeepWith as Ju, unset as Gg, get as xe, isObject as Zu, set as nl, omit as Lr, isFunction as Hg, orderBy as Qg, last as eh, defaults as Pe, minBy as Ug, maxBy as Yg, cloneDeep as mt, values as th, template as rl, throttle as Kg, range as Xg, isEqual as Le, defaultsDeep as ot, keyBy as Jg, isEmpty as nh, isNumber as Zg, findLastIndex as eb, isString as rh, pick as ih } from "lodash";
|
|
17
17
|
import * as ei from "mathjs";
|
|
18
18
|
import qs from "numbro";
|
|
19
19
|
import * as tb from "popmotion";
|
|
20
|
-
import { interpolate as
|
|
20
|
+
import { interpolate as Fr } from "popmotion";
|
|
21
21
|
import zn from "axios";
|
|
22
|
-
import { useDisclosure as pr, useHover as nb, useClipboard as rb, randomId as Ar, useElementSize as
|
|
23
|
-
import { IconPlayerSkipBack as ah, IconRecycle as Ji, IconDeviceFloppy as et, IconMathFunctionOff as sb, IconMathFunction as Xn, IconTextSize as il, IconSelector as ab, IconGripVertical as ob, IconTrash as mn, IconArrowBackUp as lb, IconInfoCircle as
|
|
24
|
-
import { useTranslation as v, Trans as ma, initReactI18next as
|
|
22
|
+
import { useDisclosure as pr, useHover as nb, useClipboard as rb, randomId as Ar, useElementSize as Fi, useResizeObserver as ib, useInputState as sh } from "@mantine/hooks";
|
|
23
|
+
import { IconPlayerSkipBack as ah, IconRecycle as Ji, IconDeviceFloppy as et, IconMathFunctionOff as sb, IconMathFunction as Xn, IconTextSize as il, IconSelector as ab, IconGripVertical as ob, IconTrash as mn, IconArrowBackUp as lb, IconInfoCircle as Vr, IconCircleOff as oh, IconX as sl, IconBorderAll as cb, IconPlus as xn, IconGripHorizontal as db, IconChevronUp as ub, IconChevronDown as hb, IconPlaylistAdd as _o, IconArrowDown as pb, IconArrowUp as mb, IconAlertCircle as jo, IconArrowBarToRight as fb, IconCalendar as xb, IconMinus as gb, IconChevronsUp as bb, IconChevronsDown as yb, IconDatabase as Zi, IconCode as Rr, IconCamera as pa, IconShare3 as vb, IconDownload as _b, IconArrowsLeftRight as jb, IconVariable as lh, IconCodeDots as wb, IconFilter as ch, IconCopy as Sb, IconBoxMultiple as dh, IconCaretDown as kb, IconAlertTriangle as uh, IconArrowLeft as Cb, IconDevices as Ib, IconSettings as es, IconPointFilled as al, IconFileImport as pd, IconCircleDashed as Tb, IconCircleDot as zb, IconAdjustments as Db, IconLink as Mb, IconArrowCurveRight as wo, IconLine as Eb, IconEye as hh, IconTable as Lb, IconColumns as Ab, IconVectorTriangle as Rb, IconVariablePlus as $b, IconHierarchy as Pb, IconDiscountCheckFilled as Ob } from "@tabler/icons-react";
|
|
24
|
+
import { useTranslation as v, Trans as ma, initReactI18next as Fb, I18nextProvider as Vb } from "react-i18next";
|
|
25
25
|
import { RichTextEditor as he, Link as ph, useRichTextEditorContext as Nb } from "@mantine/tiptap";
|
|
26
26
|
import { Color as mh } from "@tiptap/extension-color";
|
|
27
27
|
import fh from "@tiptap/extension-highlight";
|
|
@@ -43,7 +43,7 @@ import { liftListItem as iy, sinkListItem as sy, wrapInList as ay } from "prosem
|
|
|
43
43
|
import * as oy from "d3-scale";
|
|
44
44
|
import * as xt from "echarts/core";
|
|
45
45
|
import { use as ly } from "echarts/core";
|
|
46
|
-
import { useForm as
|
|
46
|
+
import { useForm as Ve, Controller as g, useFieldArray as fa, useWatch as cy } from "react-hook-form";
|
|
47
47
|
import { DatesProvider as dy, DatePicker as uy } from "@mantine/dates";
|
|
48
48
|
import { move as hy } from "@dnd-kit/helpers";
|
|
49
49
|
import { useDragDropManager as py, useInstance as my, DragDropProvider as Th } from "@dnd-kit/react";
|
|
@@ -52,7 +52,7 @@ import { v4 as Bn } from "uuid";
|
|
|
52
52
|
import { Recycle as Nr, DeviceFloppy as Qn, Trash as Jn, AlertCircle as xy, InfoCircle as Zn, Refresh as ol, Download as ll, ArrowsMaximize as zh, Settings as Dh, Copy as gy, ArrowLeft as by, ArrowsMove as yy, ChevronDownRight as vy, Plus as _y, ChevronsUpRight as jy, PlaylistAdd as xa, ArrowBarToRight as wy } from "tabler-icons-react";
|
|
53
53
|
import An, { loader as Ka } from "@monaco-editor/react";
|
|
54
54
|
import { BarChart as Sy, BoxplotChart as ky, CustomChart as Cy, FunnelChart as Iy, HeatmapChart as Ty, LineChart as zy, PieChart as Dy, RadarChart as My, ScatterChart as Ey, SunburstChart as Ly } from "echarts/charts";
|
|
55
|
-
import { CalendarComponent as Ay, DataZoomComponent as Ry, GridComponent as $y, LegendComponent as Py, TooltipComponent as Oy, MarkLineComponent as
|
|
55
|
+
import { CalendarComponent as Ay, DataZoomComponent as Ry, GridComponent as $y, LegendComponent as Py, TooltipComponent as Oy, MarkLineComponent as Fy, MarkAreaComponent as Vy, VisualMapComponent as Ny } from "echarts/components";
|
|
56
56
|
import { CanvasRenderer as qy } from "echarts/renderers";
|
|
57
57
|
import oi, { random as ga } from "chroma-js";
|
|
58
58
|
import { encode as By, decode as Wy } from "js-base64";
|
|
@@ -71,7 +71,7 @@ import { types as x, cast as Mn, getRoot as _t, addDisposer as Zt, getParent as
|
|
|
71
71
|
import { arrayToTree as tv } from "performant-array-to-tree";
|
|
72
72
|
import { saveAs as ba } from "file-saver";
|
|
73
73
|
import Oh from "dom-to-image-more";
|
|
74
|
-
import
|
|
74
|
+
import Fh from "jszip";
|
|
75
75
|
import { AsyncParser as nv } from "@json2csv/whatwg";
|
|
76
76
|
import rv from "dayjs/plugin/advancedFormat";
|
|
77
77
|
import iv from "dayjs/plugin/arraySupport";
|
|
@@ -109,7 +109,7 @@ import Rv from "dayjs/plugin/weekYear";
|
|
|
109
109
|
import { createInstance as $v } from "i18next";
|
|
110
110
|
import Pv from "i18next-browser-languagedetector";
|
|
111
111
|
import "intl-pluralrules";
|
|
112
|
-
import Ov, { Position as hn, Handle as gd, MiniMap as
|
|
112
|
+
import Ov, { Position as hn, Handle as gd, MiniMap as Fv, Controls as Vv, Background as Nv } from "reactflow";
|
|
113
113
|
var ko = { exports: {} }, ji = {};
|
|
114
114
|
/**
|
|
115
115
|
* @license React
|
|
@@ -155,25 +155,25 @@ function Bv() {
|
|
|
155
155
|
function I(j) {
|
|
156
156
|
if (j === null || typeof j != "object")
|
|
157
157
|
return null;
|
|
158
|
-
var
|
|
159
|
-
return typeof
|
|
158
|
+
var F = f && j[f] || j[b];
|
|
159
|
+
return typeof F == "function" ? F : null;
|
|
160
160
|
}
|
|
161
161
|
var S = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
162
162
|
function z(j) {
|
|
163
163
|
{
|
|
164
|
-
for (var
|
|
164
|
+
for (var F = arguments.length, H = new Array(F > 1 ? F - 1 : 0), ae = 1; ae < F; ae++)
|
|
165
165
|
H[ae - 1] = arguments[ae];
|
|
166
166
|
L("error", j, H);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function L(j,
|
|
169
|
+
function L(j, F, H) {
|
|
170
170
|
{
|
|
171
171
|
var ae = S.ReactDebugCurrentFrame, ke = ae.getStackAddendum();
|
|
172
|
-
ke !== "" && (
|
|
172
|
+
ke !== "" && (F += "%s", H = H.concat([ke]));
|
|
173
173
|
var $e = H.map(function(ye) {
|
|
174
174
|
return String(ye);
|
|
175
175
|
});
|
|
176
|
-
$e.unshift("Warning: " +
|
|
176
|
+
$e.unshift("Warning: " + F), Function.prototype.apply.call(console[j], console, $e);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
var A = !1, P = !1, J = !1, ie = !1, Me = !1, Te;
|
|
@@ -185,11 +185,11 @@ function Bv() {
|
|
|
185
185
|
// with.
|
|
186
186
|
j.$$typeof === Te || j.getModuleId !== void 0));
|
|
187
187
|
}
|
|
188
|
-
function G(j,
|
|
188
|
+
function G(j, F, H) {
|
|
189
189
|
var ae = j.displayName;
|
|
190
190
|
if (ae)
|
|
191
191
|
return ae;
|
|
192
|
-
var ke =
|
|
192
|
+
var ke = F.displayName || F.name || "";
|
|
193
193
|
return ke !== "" ? H + "(" + ke + ")" : H;
|
|
194
194
|
}
|
|
195
195
|
function N(j) {
|
|
@@ -219,8 +219,8 @@ function Bv() {
|
|
|
219
219
|
if (typeof j == "object")
|
|
220
220
|
switch (j.$$typeof) {
|
|
221
221
|
case l:
|
|
222
|
-
var
|
|
223
|
-
return N(
|
|
222
|
+
var F = j;
|
|
223
|
+
return N(F) + ".Consumer";
|
|
224
224
|
case o:
|
|
225
225
|
var H = j;
|
|
226
226
|
return N(H._context) + ".Provider";
|
|
@@ -303,7 +303,7 @@ function Bv() {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
var Y = S.ReactCurrentDispatcher, ce;
|
|
306
|
-
function we(j,
|
|
306
|
+
function we(j, F, H) {
|
|
307
307
|
{
|
|
308
308
|
if (ce === void 0)
|
|
309
309
|
try {
|
|
@@ -321,7 +321,7 @@ function Bv() {
|
|
|
321
321
|
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
322
322
|
Dt = new Ue();
|
|
323
323
|
}
|
|
324
|
-
function on(j,
|
|
324
|
+
function on(j, F) {
|
|
325
325
|
if (!j || He)
|
|
326
326
|
return "";
|
|
327
327
|
{
|
|
@@ -336,7 +336,7 @@ function Bv() {
|
|
|
336
336
|
var $e;
|
|
337
337
|
$e = Y.current, Y.current = null, Ee();
|
|
338
338
|
try {
|
|
339
|
-
if (
|
|
339
|
+
if (F) {
|
|
340
340
|
var ye = function() {
|
|
341
341
|
throw Error();
|
|
342
342
|
};
|
|
@@ -392,14 +392,14 @@ function Bv() {
|
|
|
392
392
|
var Hr = j ? j.displayName || j.name : "", od = Hr ? we(Hr) : "";
|
|
393
393
|
return typeof j == "function" && Dt.set(j, od), od;
|
|
394
394
|
}
|
|
395
|
-
function wn(j,
|
|
395
|
+
function wn(j, F, H) {
|
|
396
396
|
return on(j, !1);
|
|
397
397
|
}
|
|
398
398
|
function ln(j) {
|
|
399
|
-
var
|
|
400
|
-
return !!(
|
|
399
|
+
var F = j.prototype;
|
|
400
|
+
return !!(F && F.isReactComponent);
|
|
401
401
|
}
|
|
402
|
-
function xs(j,
|
|
402
|
+
function xs(j, F, H) {
|
|
403
403
|
if (j == null)
|
|
404
404
|
return "";
|
|
405
405
|
if (typeof j == "function")
|
|
@@ -417,11 +417,11 @@ function Bv() {
|
|
|
417
417
|
case c:
|
|
418
418
|
return wn(j.render);
|
|
419
419
|
case u:
|
|
420
|
-
return xs(j.type,
|
|
420
|
+
return xs(j.type, F, H);
|
|
421
421
|
case p: {
|
|
422
422
|
var ae = j, ke = ae._payload, $e = ae._init;
|
|
423
423
|
try {
|
|
424
|
-
return xs($e(ke),
|
|
424
|
+
return xs($e(ke), F, H);
|
|
425
425
|
} catch {
|
|
426
426
|
}
|
|
427
427
|
}
|
|
@@ -431,12 +431,12 @@ function Bv() {
|
|
|
431
431
|
var gs = Object.prototype.hasOwnProperty, Yc = {}, Kc = S.ReactDebugCurrentFrame;
|
|
432
432
|
function bs(j) {
|
|
433
433
|
if (j) {
|
|
434
|
-
var
|
|
434
|
+
var F = j._owner, H = xs(j.type, j._source, F ? F.type : null);
|
|
435
435
|
Kc.setExtraStackFrame(H);
|
|
436
436
|
} else
|
|
437
437
|
Kc.setExtraStackFrame(null);
|
|
438
438
|
}
|
|
439
|
-
function cg(j,
|
|
439
|
+
function cg(j, F, H, ae, ke) {
|
|
440
440
|
{
|
|
441
441
|
var $e = Function.call.bind(gs);
|
|
442
442
|
for (var ye in j)
|
|
@@ -447,7 +447,7 @@ function Bv() {
|
|
|
447
447
|
var Tt = Error((ae || "React class") + ": " + H + " type `" + ye + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof j[ye] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
448
448
|
throw Tt.name = "Invariant Violation", Tt;
|
|
449
449
|
}
|
|
450
|
-
fe = j[ye](
|
|
450
|
+
fe = j[ye](F, ye, ae, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
451
451
|
} catch (Ye) {
|
|
452
452
|
fe = Ye;
|
|
453
453
|
}
|
|
@@ -461,7 +461,7 @@ function Bv() {
|
|
|
461
461
|
}
|
|
462
462
|
function ug(j) {
|
|
463
463
|
{
|
|
464
|
-
var
|
|
464
|
+
var F = typeof Symbol == "function" && Symbol.toStringTag, H = F && j[Symbol.toStringTag] || j.constructor.name || "Object";
|
|
465
465
|
return H;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
@@ -488,30 +488,30 @@ function Bv() {
|
|
|
488
488
|
Ga = {};
|
|
489
489
|
function mg(j) {
|
|
490
490
|
if (gs.call(j, "ref")) {
|
|
491
|
-
var
|
|
492
|
-
if (
|
|
491
|
+
var F = Object.getOwnPropertyDescriptor(j, "ref").get;
|
|
492
|
+
if (F && F.isReactWarning)
|
|
493
493
|
return !1;
|
|
494
494
|
}
|
|
495
495
|
return j.ref !== void 0;
|
|
496
496
|
}
|
|
497
497
|
function fg(j) {
|
|
498
498
|
if (gs.call(j, "key")) {
|
|
499
|
-
var
|
|
500
|
-
if (
|
|
499
|
+
var F = Object.getOwnPropertyDescriptor(j, "key").get;
|
|
500
|
+
if (F && F.isReactWarning)
|
|
501
501
|
return !1;
|
|
502
502
|
}
|
|
503
503
|
return j.key !== void 0;
|
|
504
504
|
}
|
|
505
|
-
function xg(j,
|
|
506
|
-
if (typeof j.ref == "string" && _i.current &&
|
|
505
|
+
function xg(j, F) {
|
|
506
|
+
if (typeof j.ref == "string" && _i.current && F && _i.current.stateNode !== F) {
|
|
507
507
|
var H = K(_i.current.type);
|
|
508
508
|
Ga[H] || (z('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', K(_i.current.type), j.ref), Ga[H] = !0);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
function gg(j,
|
|
511
|
+
function gg(j, F) {
|
|
512
512
|
{
|
|
513
513
|
var H = function() {
|
|
514
|
-
Zc || (Zc = !0, z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
514
|
+
Zc || (Zc = !0, z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", F));
|
|
515
515
|
};
|
|
516
516
|
H.isReactWarning = !0, Object.defineProperty(j, "key", {
|
|
517
517
|
get: H,
|
|
@@ -519,10 +519,10 @@ function Bv() {
|
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function bg(j,
|
|
522
|
+
function bg(j, F) {
|
|
523
523
|
{
|
|
524
524
|
var H = function() {
|
|
525
|
-
ed || (ed = !0, z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
525
|
+
ed || (ed = !0, z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", F));
|
|
526
526
|
};
|
|
527
527
|
H.isReactWarning = !0, Object.defineProperty(j, "ref", {
|
|
528
528
|
get: H,
|
|
@@ -530,13 +530,13 @@ function Bv() {
|
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
var yg = function(j,
|
|
533
|
+
var yg = function(j, F, H, ae, ke, $e, ye) {
|
|
534
534
|
var fe = {
|
|
535
535
|
// This tag allows us to uniquely identify this as a React Element
|
|
536
536
|
$$typeof: t,
|
|
537
537
|
// Built-in properties that belong on the element
|
|
538
538
|
type: j,
|
|
539
|
-
key:
|
|
539
|
+
key: F,
|
|
540
540
|
ref: H,
|
|
541
541
|
props: ye,
|
|
542
542
|
// Record the component responsible for creating this element.
|
|
@@ -559,12 +559,12 @@ function Bv() {
|
|
|
559
559
|
value: ke
|
|
560
560
|
}), Object.freeze && (Object.freeze(fe.props), Object.freeze(fe)), fe;
|
|
561
561
|
};
|
|
562
|
-
function vg(j,
|
|
562
|
+
function vg(j, F, H, ae, ke) {
|
|
563
563
|
{
|
|
564
564
|
var $e, ye = {}, fe = null, Tt = null;
|
|
565
|
-
H !== void 0 && (Jc(H), fe = "" + H), fg(
|
|
566
|
-
for ($e in
|
|
567
|
-
gs.call(
|
|
565
|
+
H !== void 0 && (Jc(H), fe = "" + H), fg(F) && (Jc(F.key), fe = "" + F.key), mg(F) && (Tt = F.ref, xg(F, ke));
|
|
566
|
+
for ($e in F)
|
|
567
|
+
gs.call(F, $e) && !pg.hasOwnProperty($e) && (ye[$e] = F[$e]);
|
|
568
568
|
if (j && j.defaultProps) {
|
|
569
569
|
var Ye = j.defaultProps;
|
|
570
570
|
for ($e in Ye)
|
|
@@ -580,7 +580,7 @@ function Bv() {
|
|
|
580
580
|
var Ha = S.ReactCurrentOwner, td = S.ReactDebugCurrentFrame;
|
|
581
581
|
function Gr(j) {
|
|
582
582
|
if (j) {
|
|
583
|
-
var
|
|
583
|
+
var F = j._owner, H = xs(j.type, j._source, F ? F.type : null);
|
|
584
584
|
td.setExtraStackFrame(H);
|
|
585
585
|
} else
|
|
586
586
|
td.setExtraStackFrame(null);
|
|
@@ -605,10 +605,10 @@ Check the render method of \`` + j + "`.";
|
|
|
605
605
|
function _g(j) {
|
|
606
606
|
{
|
|
607
607
|
if (j !== void 0) {
|
|
608
|
-
var
|
|
608
|
+
var F = j.fileName.replace(/^.*[\\\/]/, ""), H = j.lineNumber;
|
|
609
609
|
return `
|
|
610
610
|
|
|
611
|
-
Check your code at ` +
|
|
611
|
+
Check your code at ` + F + ":" + H + ".";
|
|
612
612
|
}
|
|
613
613
|
return "";
|
|
614
614
|
}
|
|
@@ -616,22 +616,22 @@ Check your code at ` + V + ":" + H + ".";
|
|
|
616
616
|
var rd = {};
|
|
617
617
|
function jg(j) {
|
|
618
618
|
{
|
|
619
|
-
var
|
|
620
|
-
if (!
|
|
619
|
+
var F = nd();
|
|
620
|
+
if (!F) {
|
|
621
621
|
var H = typeof j == "string" ? j : j.displayName || j.name;
|
|
622
|
-
H && (
|
|
622
|
+
H && (F = `
|
|
623
623
|
|
|
624
624
|
Check the top-level render call using <` + H + ">.");
|
|
625
625
|
}
|
|
626
|
-
return
|
|
626
|
+
return F;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
function id(j,
|
|
629
|
+
function id(j, F) {
|
|
630
630
|
{
|
|
631
631
|
if (!j._store || j._store.validated || j.key != null)
|
|
632
632
|
return;
|
|
633
633
|
j._store.validated = !0;
|
|
634
|
-
var H = jg(
|
|
634
|
+
var H = jg(F);
|
|
635
635
|
if (rd[H])
|
|
636
636
|
return;
|
|
637
637
|
rd[H] = !0;
|
|
@@ -639,14 +639,14 @@ Check the top-level render call using <` + H + ">.");
|
|
|
639
639
|
j && j._owner && j._owner !== Ha.current && (ae = " It was passed a child from " + K(j._owner.type) + "."), Gr(j), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, ae), Gr(null);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
function sd(j,
|
|
642
|
+
function sd(j, F) {
|
|
643
643
|
{
|
|
644
644
|
if (typeof j != "object")
|
|
645
645
|
return;
|
|
646
646
|
if (Wa(j))
|
|
647
647
|
for (var H = 0; H < j.length; H++) {
|
|
648
648
|
var ae = j[H];
|
|
649
|
-
Ua(ae) && id(ae,
|
|
649
|
+
Ua(ae) && id(ae, F);
|
|
650
650
|
}
|
|
651
651
|
else if (Ua(j))
|
|
652
652
|
j._store && (j._store.validated = !0);
|
|
@@ -654,39 +654,39 @@ Check the top-level render call using <` + H + ">.");
|
|
|
654
654
|
var ke = I(j);
|
|
655
655
|
if (typeof ke == "function" && ke !== j.entries)
|
|
656
656
|
for (var $e = ke.call(j), ye; !(ye = $e.next()).done; )
|
|
657
|
-
Ua(ye.value) && id(ye.value,
|
|
657
|
+
Ua(ye.value) && id(ye.value, F);
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
function wg(j) {
|
|
662
662
|
{
|
|
663
|
-
var
|
|
664
|
-
if (
|
|
663
|
+
var F = j.type;
|
|
664
|
+
if (F == null || typeof F == "string")
|
|
665
665
|
return;
|
|
666
666
|
var H;
|
|
667
|
-
if (typeof
|
|
668
|
-
H =
|
|
669
|
-
else if (typeof
|
|
667
|
+
if (typeof F == "function")
|
|
668
|
+
H = F.propTypes;
|
|
669
|
+
else if (typeof F == "object" && (F.$$typeof === c || // Note: Memo only checks outer props here.
|
|
670
670
|
// Inner props are checked in the reconciler.
|
|
671
|
-
|
|
672
|
-
H =
|
|
671
|
+
F.$$typeof === u))
|
|
672
|
+
H = F.propTypes;
|
|
673
673
|
else
|
|
674
674
|
return;
|
|
675
675
|
if (H) {
|
|
676
|
-
var ae = K(
|
|
676
|
+
var ae = K(F);
|
|
677
677
|
cg(H, j.props, "prop", ae, j);
|
|
678
|
-
} else if (
|
|
678
|
+
} else if (F.PropTypes !== void 0 && !Qa) {
|
|
679
679
|
Qa = !0;
|
|
680
|
-
var ke = K(
|
|
680
|
+
var ke = K(F);
|
|
681
681
|
z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ke || "Unknown");
|
|
682
682
|
}
|
|
683
|
-
typeof
|
|
683
|
+
typeof F.getDefaultProps == "function" && !F.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
function Sg(j) {
|
|
687
687
|
{
|
|
688
|
-
for (var
|
|
689
|
-
var ae =
|
|
688
|
+
for (var F = Object.keys(j.props), H = 0; H < F.length; H++) {
|
|
689
|
+
var ae = F[H];
|
|
690
690
|
if (ae !== "children" && ae !== "key") {
|
|
691
691
|
Gr(j), z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ae), Gr(null);
|
|
692
692
|
break;
|
|
@@ -695,7 +695,7 @@ Check the top-level render call using <` + H + ">.");
|
|
|
695
695
|
j.ref !== null && (Gr(j), z("Invalid attribute `ref` supplied to `React.Fragment`."), Gr(null));
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
function ad(j,
|
|
698
|
+
function ad(j, F, H, ae, ke, $e) {
|
|
699
699
|
{
|
|
700
700
|
var ye = B(j);
|
|
701
701
|
if (!ye) {
|
|
@@ -706,11 +706,11 @@ Check the top-level render call using <` + H + ">.");
|
|
|
706
706
|
var Ye;
|
|
707
707
|
j === null ? Ye = "null" : Wa(j) ? Ye = "array" : j !== void 0 && j.$$typeof === t ? (Ye = "<" + (K(j.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : Ye = typeof j, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ye, fe);
|
|
708
708
|
}
|
|
709
|
-
var Xe = vg(j,
|
|
709
|
+
var Xe = vg(j, F, H, ke, $e);
|
|
710
710
|
if (Xe == null)
|
|
711
711
|
return Xe;
|
|
712
712
|
if (ye) {
|
|
713
|
-
var Yt =
|
|
713
|
+
var Yt = F.children;
|
|
714
714
|
if (Yt !== void 0)
|
|
715
715
|
if (ae)
|
|
716
716
|
if (Wa(Yt)) {
|
|
@@ -725,11 +725,11 @@ Check the top-level render call using <` + H + ">.");
|
|
|
725
725
|
return j === i ? Sg(Xe) : wg(Xe), Xe;
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
function kg(j,
|
|
729
|
-
return ad(j,
|
|
728
|
+
function kg(j, F, H) {
|
|
729
|
+
return ad(j, F, H, !0);
|
|
730
730
|
}
|
|
731
|
-
function Cg(j,
|
|
732
|
-
return ad(j,
|
|
731
|
+
function Cg(j, F, H) {
|
|
732
|
+
return ad(j, F, H, !1);
|
|
733
733
|
}
|
|
734
734
|
var Ig = Cg, Tg = kg;
|
|
735
735
|
wi.Fragment = i, wi.jsx = Ig, wi.jsxs = Tg;
|
|
@@ -740,7 +740,7 @@ var r = ko.exports;
|
|
|
740
740
|
const gn = {
|
|
741
741
|
CryptoJS: Wg,
|
|
742
742
|
d3Array: Xu,
|
|
743
|
-
dayjs:
|
|
743
|
+
dayjs: V,
|
|
744
744
|
lodash: k,
|
|
745
745
|
numbro: qs,
|
|
746
746
|
mathjs: ei,
|
|
@@ -993,7 +993,7 @@ class Zv {
|
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
const Yr = new Jv();
|
|
996
|
-
function
|
|
996
|
+
function Vh(e) {
|
|
997
997
|
Yr.baseURL !== e.apiBaseURL && (Yr.baseURL = e.apiBaseURL), e.app_id && (Yr.app_id = e.app_id), e.app_secret && (Yr.app_secret = e.app_secret), e.makeQueryENV && (Yr.makeQueryENV = e.makeQueryENV);
|
|
998
998
|
}
|
|
999
999
|
const e_ = new Zv(Yr), Nn = e_, Ws = de(function({
|
|
@@ -1110,7 +1110,7 @@ class o_ {
|
|
|
1110
1110
|
colorRange: n
|
|
1111
1111
|
}) {
|
|
1112
1112
|
U(this, "mapper");
|
|
1113
|
-
this.mapper =
|
|
1113
|
+
this.mapper = Fr(t, n);
|
|
1114
1114
|
}
|
|
1115
1115
|
getColor(t) {
|
|
1116
1116
|
return this.mapper(t);
|
|
@@ -2585,7 +2585,7 @@ class Ir extends Ot {
|
|
|
2585
2585
|
return new Ir(this.pos, this.mark);
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
|
-
return new
|
|
2588
|
+
return new Vi(this.pos, this.mark);
|
|
2589
2589
|
}
|
|
2590
2590
|
map(t) {
|
|
2591
2591
|
let n = t.mapResult(this.pos, 1);
|
|
@@ -2604,7 +2604,7 @@ class Ir extends Ot {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
2606
2606
|
Ot.jsonID("addNodeMark", Ir);
|
|
2607
|
-
class
|
|
2607
|
+
class Vi extends Ot {
|
|
2608
2608
|
/**
|
|
2609
2609
|
Create a mark-removing step.
|
|
2610
2610
|
*/
|
|
@@ -2624,7 +2624,7 @@ class Fi extends Ot {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
map(t) {
|
|
2626
2626
|
let n = t.mapResult(this.pos, 1);
|
|
2627
|
-
return n.deletedAfter ? null : new
|
|
2627
|
+
return n.deletedAfter ? null : new Vi(n.pos, this.mark);
|
|
2628
2628
|
}
|
|
2629
2629
|
toJSON() {
|
|
2630
2630
|
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -2635,10 +2635,10 @@ class Fi extends Ot {
|
|
|
2635
2635
|
static fromJSON(t, n) {
|
|
2636
2636
|
if (typeof n.pos != "number")
|
|
2637
2637
|
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
2638
|
-
return new
|
|
2638
|
+
return new Vi(n.pos, t.markFromJSON(n.mark));
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
|
-
Ot.jsonID("removeNodeMark",
|
|
2641
|
+
Ot.jsonID("removeNodeMark", Vi);
|
|
2642
2642
|
class Cn extends Ot {
|
|
2643
2643
|
/**
|
|
2644
2644
|
The given `slice` should fit the 'gap' between `from` and
|
|
@@ -3578,7 +3578,7 @@ const D_ = () => ({ editor: e, view: t }) => (requestAnimationFrame(() => {
|
|
|
3578
3578
|
}, P_ = (e) => ({ tr: t, dispatch: n }) => {
|
|
3579
3579
|
const { from: i, to: s } = e;
|
|
3580
3580
|
return n && t.delete(i, s), !0;
|
|
3581
|
-
}, O_ = () => ({ state: e, dispatch: t }) => Bb(e, t),
|
|
3581
|
+
}, O_ = () => ({ state: e, dispatch: t }) => Bb(e, t), F_ = () => ({ commands: e }) => e.keyboardShortcut("Enter"), V_ = () => ({ state: e, dispatch: t }) => Wb(e, t);
|
|
3582
3582
|
function Qs(e, t, n = { strict: !0 }) {
|
|
3583
3583
|
const i = Object.keys(t);
|
|
3584
3584
|
return i.length ? i.every((s) => n.strict ? t[s] === e[s] : C_(t[s]) ? t[s].test(e[s]) : t[s] === e[s]) : !0;
|
|
@@ -4149,11 +4149,11 @@ const Tj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: i, edit
|
|
|
4149
4149
|
}, Oj = (e, t = {}) => ({ state: n, dispatch: i }) => {
|
|
4150
4150
|
const s = wt(e, n.schema);
|
|
4151
4151
|
return ry(s, t)(n, i);
|
|
4152
|
-
},
|
|
4152
|
+
}, Fj = (e, t = {}) => ({ state: n, dispatch: i }) => {
|
|
4153
4153
|
const s = wt(e, n.schema);
|
|
4154
4154
|
return ay(s, t)(n, i);
|
|
4155
4155
|
};
|
|
4156
|
-
var
|
|
4156
|
+
var Vj = /* @__PURE__ */ Object.freeze({
|
|
4157
4157
|
__proto__: null,
|
|
4158
4158
|
blur: D_,
|
|
4159
4159
|
clearContent: M_,
|
|
@@ -4164,8 +4164,8 @@ var Fj = /* @__PURE__ */ Object.freeze({
|
|
|
4164
4164
|
deleteNode: $_,
|
|
4165
4165
|
deleteRange: P_,
|
|
4166
4166
|
deleteSelection: O_,
|
|
4167
|
-
enter:
|
|
4168
|
-
exitCode:
|
|
4167
|
+
enter: F_,
|
|
4168
|
+
exitCode: V_,
|
|
4169
4169
|
extendMarkRange: q_,
|
|
4170
4170
|
first: B_,
|
|
4171
4171
|
focus: G_,
|
|
@@ -4207,13 +4207,13 @@ var Fj = /* @__PURE__ */ Object.freeze({
|
|
|
4207
4207
|
unsetMark: $j,
|
|
4208
4208
|
updateAttributes: Pj,
|
|
4209
4209
|
wrapIn: Oj,
|
|
4210
|
-
wrapInList:
|
|
4210
|
+
wrapInList: Fj
|
|
4211
4211
|
});
|
|
4212
4212
|
En.create({
|
|
4213
4213
|
name: "commands",
|
|
4214
4214
|
addCommands() {
|
|
4215
4215
|
return {
|
|
4216
|
-
...
|
|
4216
|
+
...Vj
|
|
4217
4217
|
};
|
|
4218
4218
|
}
|
|
4219
4219
|
});
|
|
@@ -5000,7 +5000,7 @@ const li = de(({
|
|
|
5000
5000
|
Q(() => {
|
|
5001
5001
|
c(e);
|
|
5002
5002
|
}, [e]);
|
|
5003
|
-
const p =
|
|
5003
|
+
const p = Fe((b, I) => {
|
|
5004
5004
|
if (s.length === 0)
|
|
5005
5005
|
return;
|
|
5006
5006
|
const S = Xj(I), z = b.getModel();
|
|
@@ -5153,7 +5153,7 @@ const li = de(({
|
|
|
5153
5153
|
editor: e
|
|
5154
5154
|
}) => {
|
|
5155
5155
|
const t = e.getAttributes("textStyle").fontSize;
|
|
5156
|
-
return /* @__PURE__ */ r.jsx(he.ControlsGroup, { children: /* @__PURE__ */ r.jsx(
|
|
5156
|
+
return /* @__PURE__ */ r.jsx(he.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Vu, { size: "xs", icon: /* @__PURE__ */ r.jsx(il, { stroke: 1.5, size: 16 }), data: tw, styles: nw, value: t || "", onChange: (n) => {
|
|
5157
5157
|
const i = n.currentTarget.value;
|
|
5158
5158
|
i ? e.chain().focus().setFontSize(i).run() : e.chain().focus().unsetFontSize().run();
|
|
5159
5159
|
} }) });
|
|
@@ -5809,7 +5809,7 @@ var jw = Object.create, Cl = Object.defineProperty, ww = Object.getOwnPropertyDe
|
|
|
5809
5809
|
for (var n of Pd(t))
|
|
5810
5810
|
kw.call(t, n) && Eo(e, n, t[n]);
|
|
5811
5811
|
return e;
|
|
5812
|
-
},
|
|
5812
|
+
}, Fd = (e, t) => Cl(e, "name", { value: t, configurable: !0 }), Iw = (e) => {
|
|
5813
5813
|
var t;
|
|
5814
5814
|
return [, , , jw((t = e == null ? void 0 : e[Rp("metadata")]) != null ? t : null)];
|
|
5815
5815
|
}, $p = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ii = (e) => e !== void 0 && typeof e != "function" ? pi("Function expected") : e, Tw = (e, t, n, i, s) => ({ kind: $p[e], name: t, metadata: i, addInitializer: (a) => n._ ? pi("Already initialized") : s.push(Ii(a || null)) }), Pp = (e, t) => Eo(t, Rp("metadata"), e[3]), _r = (e, t, n, i) => {
|
|
@@ -5818,15 +5818,15 @@ var jw = Object.create, Cl = Object.defineProperty, ww = Object.getOwnPropertyDe
|
|
|
5818
5818
|
return i;
|
|
5819
5819
|
}, is = (e, t, n, i, s, a) => {
|
|
5820
5820
|
var o, l, c, d, h, u = t & 7, p = !!(t & 8), m = !!(t & 16), f = u > 3 ? e.length + 1 : u ? p ? 1 : 2 : 0, b = $p[u + 5], I = u > 3 && (e[f - 1] = []), S = e[f] || (e[f] = []), z = u && (!m && !p && (s = s.prototype), u < 5 && (u > 3 || !m) && ww(u < 4 ? s : { get [n]() {
|
|
5821
|
-
return
|
|
5821
|
+
return Vd(this, a);
|
|
5822
5822
|
}, set [n](A) {
|
|
5823
5823
|
return Nd(this, a, A);
|
|
5824
5824
|
} }, n));
|
|
5825
|
-
u ? m && u < 4 &&
|
|
5825
|
+
u ? m && u < 4 && Fd(a, (u > 2 ? "set " : u > 1 ? "get " : "") + n) : Fd(s, n);
|
|
5826
5826
|
for (var L = i.length - 1; L >= 0; L--)
|
|
5827
|
-
d = Tw(u, n, c = {}, e[3], S), u && (d.static = p, d.private = m, h = d.access = { has: m ? (A) => zw(s, A) : (A) => n in A }, u ^ 3 && (h.get = m ? (A) => (u ^ 1 ?
|
|
5827
|
+
d = Tw(u, n, c = {}, e[3], S), u && (d.static = p, d.private = m, h = d.access = { has: m ? (A) => zw(s, A) : (A) => n in A }, u ^ 3 && (h.get = m ? (A) => (u ^ 1 ? Vd : Dw)(A, s, u ^ 4 ? a : z.get) : (A) => A[n]), u > 2 && (h.set = m ? (A, P) => Nd(A, s, P, u ^ 4 ? a : z.set) : (A, P) => A[n] = P)), l = (0, i[L])(u ? u < 4 ? m ? a : z[b] : u > 4 ? void 0 : { get: z.get, set: z.set } : s, d), c._ = 1, u ^ 4 || l === void 0 ? Ii(l) && (u > 4 ? I.unshift(l) : u ? m ? a = l : z[b] = l : s = l) : typeof l != "object" || l === null ? pi("Object expected") : (Ii(o = l.get) && (z.get = o), Ii(o = l.set) && (z.set = o), Ii(o = l.init) && I.unshift(o));
|
|
5828
5828
|
return u || Pp(e, s), z && Cl(s, n, z), m ? u ^ 4 ? a : z : s;
|
|
5829
|
-
}, Il = (e, t, n) => t.has(e) || pi("Cannot " + n), zw = (e, t) => Object(t) !== t ? pi('Cannot use the "in" operator on this value') : e.has(t),
|
|
5829
|
+
}, Il = (e, t, n) => t.has(e) || pi("Cannot " + n), zw = (e, t) => Object(t) !== t ? pi('Cannot use the "in" operator on this value') : e.has(t), Vd = (e, t, n) => (Il(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ao = (e, t, n) => t.has(e) ? pi("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Nd = (e, t, n, i) => (Il(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), Dw = (e, t, n) => (Il(e, t, "access private method"), n), qn = class Lo {
|
|
5830
5830
|
/**
|
|
5831
5831
|
* @param {number} Coordinate of the point on the horizontal axis
|
|
5832
5832
|
* @param {number} Coordinate of the point on the vertical axis
|
|
@@ -5923,8 +5923,8 @@ function Ew(e, t) {
|
|
|
5923
5923
|
const n = Math.max(t.top, e.top), i = Math.max(t.left, e.left), s = Math.min(t.left + t.width, e.left + e.width), a = Math.min(t.top + t.height, e.top + e.height), o = s - i, l = a - n;
|
|
5924
5924
|
return i < s && n < a ? o * l : 0;
|
|
5925
5925
|
}
|
|
5926
|
-
var qd = 10, Op,
|
|
5927
|
-
qp = [qe], Np = [qe],
|
|
5926
|
+
var qd = 10, Op, Fp, Vp, Np, qp, Et, Tl, zl, Dl;
|
|
5927
|
+
qp = [qe], Np = [qe], Vp = [qe], Fp = [Js], Op = [Js];
|
|
5928
5928
|
var mi = class {
|
|
5929
5929
|
constructor(e) {
|
|
5930
5930
|
_r(Et, 5, this), ao(this, Tl, _r(Et, 8, this)), _r(Et, 11, this), ao(this, zl, _r(Et, 12, this)), _r(Et, 15, this), ao(this, Dl, _r(Et, 16, this)), _r(Et, 19, this);
|
|
@@ -5964,8 +5964,8 @@ zl = /* @__PURE__ */ new WeakMap();
|
|
|
5964
5964
|
Dl = /* @__PURE__ */ new WeakMap();
|
|
5965
5965
|
is(Et, 4, "initial", qp, mi, Tl);
|
|
5966
5966
|
is(Et, 4, "previous", Np, mi, zl);
|
|
5967
|
-
is(Et, 4, "current",
|
|
5968
|
-
is(Et, 2, "delta",
|
|
5967
|
+
is(Et, 4, "current", Vp, mi, Dl);
|
|
5968
|
+
is(Et, 2, "delta", Fp, mi);
|
|
5969
5969
|
is(Et, 2, "direction", Op, mi);
|
|
5970
5970
|
Pp(Et, mi);
|
|
5971
5971
|
function oo({ x: e, y: t }, n) {
|
|
@@ -5989,7 +5989,7 @@ var Bp = /* @__PURE__ */ ((e) => (e.Horizontal = "x", e.Vertical = "y", e))(Bp |
|
|
|
5989
5989
|
for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
|
|
5990
5990
|
t & 1 ? a[s].call(n) : i = a[s].call(n, i);
|
|
5991
5991
|
return i;
|
|
5992
|
-
},
|
|
5992
|
+
}, Ft = (e, t, n, i, s, a) => {
|
|
5993
5993
|
var o, l, c, d, h, u = t & 7, p = !!(t & 8), m = !!(t & 16), f = u > 3 ? e.length + 1 : u ? p ? 1 : 2 : 0, b = Qp[u + 5], I = u > 3 && (e[f - 1] = []), S = e[f] || (e[f] = []), z = u && (!m && !p && (s = s.prototype), u < 5 && (u > 3 || !m) && Aw(u < 4 ? s : { get [n]() {
|
|
5994
5994
|
return Zs(this, a);
|
|
5995
5995
|
}, set [n](A) {
|
|
@@ -5997,9 +5997,9 @@ var Bp = /* @__PURE__ */ ((e) => (e.Horizontal = "x", e.Vertical = "y", e))(Bp |
|
|
|
5997
5997
|
} }, n));
|
|
5998
5998
|
u ? m && u < 4 && Wd(a, (u > 2 ? "set " : u > 1 ? "get " : "") + n) : Wd(s, n);
|
|
5999
5999
|
for (var L = i.length - 1; L >= 0; L--)
|
|
6000
|
-
d = Ow(u, n, c = {}, e[3], S), u && (d.static = p, d.private = m, h = d.access = { has: m ? (A) =>
|
|
6000
|
+
d = Ow(u, n, c = {}, e[3], S), u && (d.static = p, d.private = m, h = d.access = { has: m ? (A) => Fw(s, A) : (A) => n in A }, u ^ 3 && (h.get = m ? (A) => (u ^ 1 ? Zs : Vw)(A, s, u ^ 4 ? a : z.get) : (A) => A[n]), u > 2 && (h.set = m ? (A, P) => Ao(A, s, P, u ^ 4 ? a : z.set) : (A, P) => A[n] = P)), l = (0, i[L])(u ? u < 4 ? m ? a : z[b] : u > 4 ? void 0 : { get: z.get, set: z.set } : s, d), c._ = 1, u ^ 4 || l === void 0 ? Ti(l) && (u > 4 ? I.unshift(l) : u ? m ? a = l : z[b] = l : s = l) : typeof l != "object" || l === null ? fi("Object expected") : (Ti(o = l.get) && (z.get = o), Ti(o = l.set) && (z.set = o), Ti(o = l.init) && I.unshift(o));
|
|
6001
6001
|
return u || ss(e, s), z && Ml(s, n, z), m ? u ^ 4 ? a : z : s;
|
|
6002
|
-
}, El = (e, t, n) => t.has(e) || fi("Cannot " + n),
|
|
6002
|
+
}, El = (e, t, n) => t.has(e) || fi("Cannot " + n), Fw = (e, t) => Object(t) !== t ? fi('Cannot use the "in" operator on this value') : e.has(t), Zs = (e, t, n) => (El(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Bt = (e, t, n) => t.has(e) ? fi("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Ao = (e, t, n, i) => (El(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), Vw = (e, t, n) => (El(e, t, "access private method"), n);
|
|
6003
6003
|
function Up(e, t) {
|
|
6004
6004
|
return {
|
|
6005
6005
|
plugin: e,
|
|
@@ -6064,7 +6064,7 @@ var rn = class {
|
|
|
6064
6064
|
};
|
|
6065
6065
|
Bi = Sa(null);
|
|
6066
6066
|
Ll = /* @__PURE__ */ new WeakMap();
|
|
6067
|
-
|
|
6067
|
+
Ft(Bi, 4, "disabled", Kp, rn, Ll);
|
|
6068
6068
|
ss(Bi, rn);
|
|
6069
6069
|
var qw = class extends rn {
|
|
6070
6070
|
}, as = /* @__PURE__ */ ((e) => (e[e.Lowest = 0] = "Lowest", e[e.Low = 1] = "Low", e[e.Normal = 2] = "Normal", e[e.High = 3] = "High", e[e.Highest = 4] = "Highest", e))(as || {}), Xp, Jp, Zp, em, Mt, Al, Rl, $l, Pl;
|
|
@@ -6125,15 +6125,15 @@ Al = /* @__PURE__ */ new WeakMap();
|
|
|
6125
6125
|
Rl = /* @__PURE__ */ new WeakMap();
|
|
6126
6126
|
$l = /* @__PURE__ */ new WeakMap();
|
|
6127
6127
|
Pl = /* @__PURE__ */ new WeakMap();
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6128
|
+
Ft(Mt, 4, "manager", em, qr, Al);
|
|
6129
|
+
Ft(Mt, 4, "id", Zp, qr, Rl);
|
|
6130
|
+
Ft(Mt, 4, "data", Jp, qr, $l);
|
|
6131
|
+
Ft(Mt, 4, "disabled", Xp, qr, Pl);
|
|
6132
6132
|
ss(Mt, qr);
|
|
6133
|
-
var tm, nm, rm, Ro, zi, Tn, Ol,
|
|
6133
|
+
var tm, nm, rm, Ro, zi, Tn, Ol, Fl, os = class extends (Ro = qr, rm = [qe], nm = [qe], tm = [Js], Ro) {
|
|
6134
6134
|
constructor(t, n) {
|
|
6135
6135
|
var i = t, { modifiers: s, type: a, sensors: o } = i, l = Hp(i, ["modifiers", "type", "sensors"]);
|
|
6136
|
-
super(l, n), Oe(Tn, 5, this), Bt(this, zi), Bt(this, Ol, Oe(Tn, 8, this)), Oe(Tn, 11, this), Bt(this,
|
|
6136
|
+
super(l, n), Oe(Tn, 5, this), Bt(this, zi), Bt(this, Ol, Oe(Tn, 8, this)), Oe(Tn, 11, this), Bt(this, Fl, Oe(Tn, 12, this, "idle")), Oe(Tn, 15, this), this.type = a, this.sensors = o, this.modifiers = s;
|
|
6137
6137
|
}
|
|
6138
6138
|
set modifiers(t) {
|
|
6139
6139
|
var n;
|
|
@@ -6158,12 +6158,12 @@ var tm, nm, rm, Ro, zi, Tn, Ol, Vl, os = class extends (Ro = qr, rm = [qe], nm =
|
|
|
6158
6158
|
Tn = Sa(Ro);
|
|
6159
6159
|
zi = /* @__PURE__ */ new WeakMap();
|
|
6160
6160
|
Ol = /* @__PURE__ */ new WeakMap();
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6161
|
+
Fl = /* @__PURE__ */ new WeakMap();
|
|
6162
|
+
Ft(Tn, 4, "type", rm, os, Ol);
|
|
6163
|
+
Ft(Tn, 4, "status", nm, os, Fl);
|
|
6164
|
+
Ft(Tn, 2, "isDragSource", tm, os);
|
|
6165
6165
|
ss(Tn, os);
|
|
6166
|
-
var im, sm, am, om, lm, cm, $o, rt,
|
|
6166
|
+
var im, sm, am, om, lm, cm, $o, rt, Vl, Nl, ql, Bl, Wl, fr = class extends ($o = qr, cm = [qe], lm = [qe], om = [qe], am = [qe], sm = [qe], im = [Js], $o) {
|
|
6167
6167
|
constructor(t, n) {
|
|
6168
6168
|
var i = t, {
|
|
6169
6169
|
accept: s,
|
|
@@ -6176,7 +6176,7 @@ var im, sm, am, om, lm, cm, $o, rt, Fl, Nl, ql, Bl, Wl, fr = class extends ($o =
|
|
|
6176
6176
|
"collisionPriority",
|
|
6177
6177
|
"type"
|
|
6178
6178
|
]);
|
|
6179
|
-
super(c, n), Oe(rt, 5, this), Bt(this,
|
|
6179
|
+
super(c, n), Oe(rt, 5, this), Bt(this, Vl, Oe(rt, 8, this)), Oe(rt, 11, this), Bt(this, Nl, Oe(rt, 12, this)), Oe(rt, 15, this), Bt(this, ql, Oe(rt, 16, this)), Oe(rt, 19, this), Bt(this, Bl, Oe(rt, 20, this)), Oe(rt, 23, this), Bt(this, Wl, Oe(rt, 24, this)), Oe(rt, 27, this), this.accept = s, this.collisionDetector = a, this.collisionPriority = o, this.type = l;
|
|
6180
6180
|
}
|
|
6181
6181
|
/**
|
|
6182
6182
|
* Checks whether or not the droppable accepts a given draggable.
|
|
@@ -6196,17 +6196,17 @@ var im, sm, am, om, lm, cm, $o, rt, Fl, Nl, ql, Bl, Wl, fr = class extends ($o =
|
|
|
6196
6196
|
}
|
|
6197
6197
|
};
|
|
6198
6198
|
rt = Sa($o);
|
|
6199
|
-
|
|
6199
|
+
Vl = /* @__PURE__ */ new WeakMap();
|
|
6200
6200
|
Nl = /* @__PURE__ */ new WeakMap();
|
|
6201
6201
|
ql = /* @__PURE__ */ new WeakMap();
|
|
6202
6202
|
Bl = /* @__PURE__ */ new WeakMap();
|
|
6203
6203
|
Wl = /* @__PURE__ */ new WeakMap();
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6204
|
+
Ft(rt, 4, "accept", cm, fr, Vl);
|
|
6205
|
+
Ft(rt, 4, "type", lm, fr, Nl);
|
|
6206
|
+
Ft(rt, 4, "collisionDetector", om, fr, ql);
|
|
6207
|
+
Ft(rt, 4, "collisionPriority", am, fr, Bl);
|
|
6208
|
+
Ft(rt, 4, "shape", sm, fr, Wl);
|
|
6209
|
+
Ft(rt, 2, "isDropTarget", im, fr);
|
|
6210
6210
|
ss(rt, fr);
|
|
6211
6211
|
var ea = class extends rn {
|
|
6212
6212
|
constructor(e, t) {
|
|
@@ -7076,9 +7076,9 @@ var E0 = [Xt.Forward, Xt.Reverse], Yd = class {
|
|
|
7076
7076
|
function Kd(e, t) {
|
|
7077
7077
|
return Math.sign(e - t);
|
|
7078
7078
|
}
|
|
7079
|
-
var $m,
|
|
7079
|
+
var $m, Fo, Gi, Ul, tr, Vo, Ia = class extends (Fo = qw, $m = [qe], Fo) {
|
|
7080
7080
|
constructor(e) {
|
|
7081
|
-
super(e), en(this, Ul, vt(Gi, 8, this, !1)), vt(Gi, 11, this), en(this, tr), en(this,
|
|
7081
|
+
super(e), en(this, Ul, vt(Gi, 8, this, !1)), vt(Gi, 11, this), en(this, tr), en(this, Vo, () => {
|
|
7082
7082
|
if (!Dn(this, tr))
|
|
7083
7083
|
return;
|
|
7084
7084
|
const { element: a, by: o } = Dn(this, tr);
|
|
@@ -7121,7 +7121,7 @@ var $m, Vo, Gi, Ul, tr, Fo, Ia = class extends (Vo = qw, $m = [qe], Vo) {
|
|
|
7121
7121
|
x: L,
|
|
7122
7122
|
y: A
|
|
7123
7123
|
}
|
|
7124
|
-
}), ri.schedule(Dn(this,
|
|
7124
|
+
}), ri.schedule(Dn(this, Vo)), !0;
|
|
7125
7125
|
}
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
@@ -7161,10 +7161,10 @@ var $m, Vo, Gi, Ul, tr, Fo, Ia = class extends (Vo = qw, $m = [qe], Vo) {
|
|
|
7161
7161
|
});
|
|
7162
7162
|
}
|
|
7163
7163
|
};
|
|
7164
|
-
Gi = ka(
|
|
7164
|
+
Gi = ka(Fo);
|
|
7165
7165
|
Ul = /* @__PURE__ */ new WeakMap();
|
|
7166
7166
|
tr = /* @__PURE__ */ new WeakMap();
|
|
7167
|
-
|
|
7167
|
+
Vo = /* @__PURE__ */ new WeakMap();
|
|
7168
7168
|
gr(Gi, 4, "autoScrolling", $m, Ia, Ul);
|
|
7169
7169
|
Ca(Gi, Ia);
|
|
7170
7170
|
function Xd(e) {
|
|
@@ -7339,7 +7339,7 @@ var Xr, No = class extends ea {
|
|
|
7339
7339
|
l instanceof PointerEvent && this.handlePointerDown(l, t, n);
|
|
7340
7340
|
};
|
|
7341
7341
|
if (a)
|
|
7342
|
-
return
|
|
7342
|
+
return F0(a.ownerDocument.defaultView), a.addEventListener("pointerdown", o), () => {
|
|
7343
7343
|
a.removeEventListener("pointerdown", o);
|
|
7344
7344
|
};
|
|
7345
7345
|
});
|
|
@@ -7467,7 +7467,7 @@ function uo(e) {
|
|
|
7467
7467
|
function O0() {
|
|
7468
7468
|
}
|
|
7469
7469
|
var eu = /* @__PURE__ */ new WeakSet();
|
|
7470
|
-
function
|
|
7470
|
+
function F0(e) {
|
|
7471
7471
|
!e || eu.has(e) || (e.addEventListener("touchmove", O0, {
|
|
7472
7472
|
capture: !1,
|
|
7473
7473
|
passive: !1
|
|
@@ -7484,7 +7484,7 @@ P0.configure({
|
|
|
7484
7484
|
};
|
|
7485
7485
|
}
|
|
7486
7486
|
});
|
|
7487
|
-
var Om,
|
|
7487
|
+
var Om, Fm, Vm, qo, cn, Yl, Kl, Xl, ds = class extends (qo = os, Vm = [qe], Fm = [qe], Om = [qe], qo) {
|
|
7488
7488
|
constructor(e, t) {
|
|
7489
7489
|
var n = e, {
|
|
7490
7490
|
element: i,
|
|
@@ -7526,8 +7526,8 @@ cn = ka(qo);
|
|
|
7526
7526
|
Yl = /* @__PURE__ */ new WeakMap();
|
|
7527
7527
|
Kl = /* @__PURE__ */ new WeakMap();
|
|
7528
7528
|
Xl = /* @__PURE__ */ new WeakMap();
|
|
7529
|
-
gr(cn, 4, "handle",
|
|
7530
|
-
gr(cn, 4, "element",
|
|
7529
|
+
gr(cn, 4, "handle", Vm, ds, Yl);
|
|
7530
|
+
gr(cn, 4, "element", Fm, ds, Kl);
|
|
7531
7531
|
gr(cn, 4, "feedback", Om, ds, Xl);
|
|
7532
7532
|
Ca(cn, ds);
|
|
7533
7533
|
var Nm, qm, Bo, sr, Jl, Zl, Ta = class extends (Bo = fr, qm = [qe], Nm = [qe], Bo) {
|
|
@@ -7614,7 +7614,7 @@ Zl = /* @__PURE__ */ new WeakMap();
|
|
|
7614
7614
|
gr(sr, 4, "visible", qm, Ta, Jl);
|
|
7615
7615
|
gr(sr, 4, "placeholder", Nm, Ta, Zl);
|
|
7616
7616
|
Ca(sr, Ta);
|
|
7617
|
-
var
|
|
7617
|
+
var V0 = Object.create, Bm = Object.defineProperty, N0 = Object.defineProperties, q0 = Object.getOwnPropertyDescriptor, B0 = Object.getOwnPropertyDescriptors, sa = Object.getOwnPropertySymbols, Wm = Object.prototype.hasOwnProperty, Gm = Object.prototype.propertyIsEnumerable, W0 = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), us = (e) => {
|
|
7618
7618
|
throw TypeError(e);
|
|
7619
7619
|
}, Wo = (e, t, n) => t in e ? Bm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, G0 = (e, t) => {
|
|
7620
7620
|
for (var n in t || (t = {}))
|
|
@@ -7633,7 +7633,7 @@ var F0 = Object.create, Bm = Object.defineProperty, N0 = Object.defineProperties
|
|
|
7633
7633
|
return n;
|
|
7634
7634
|
}, U0 = (e) => {
|
|
7635
7635
|
var t;
|
|
7636
|
-
return [, , ,
|
|
7636
|
+
return [, , , V0((t = void 0) != null ? t : null)];
|
|
7637
7637
|
}, Hm = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ei = (e) => e !== void 0 && typeof e != "function" ? us("Function expected") : e, Y0 = (e, t, n, i, s) => ({ kind: Hm[e], name: t, metadata: i, addInitializer: (a) => n._ ? us("Already initialized") : s.push(Ei(a || null)) }), K0 = (e, t) => Wo(t, W0("metadata"), e[3]), ks = (e, t, n, i) => {
|
|
7638
7638
|
for (var s = 0, a = e[t >> 1], o = a && a.length; s < o; s++)
|
|
7639
7639
|
t & 1 ? a[s].call(n) : i = a[s].call(n, i);
|
|
@@ -8146,25 +8146,25 @@ function tf(e) {
|
|
|
8146
8146
|
get status() {
|
|
8147
8147
|
return A.value;
|
|
8148
8148
|
},
|
|
8149
|
-
handleRef:
|
|
8149
|
+
handleRef: Fe(
|
|
8150
8150
|
(P) => {
|
|
8151
8151
|
S.handle = P ?? void 0;
|
|
8152
8152
|
},
|
|
8153
8153
|
[S]
|
|
8154
8154
|
),
|
|
8155
|
-
ref:
|
|
8155
|
+
ref: Fe(
|
|
8156
8156
|
(P) => {
|
|
8157
8157
|
S.element = P ?? void 0;
|
|
8158
8158
|
},
|
|
8159
8159
|
[S]
|
|
8160
8160
|
),
|
|
8161
|
-
sourceRef:
|
|
8161
|
+
sourceRef: Fe(
|
|
8162
8162
|
(P) => {
|
|
8163
8163
|
S.source = P ?? void 0;
|
|
8164
8164
|
},
|
|
8165
8165
|
[S]
|
|
8166
8166
|
),
|
|
8167
|
-
targetRef:
|
|
8167
|
+
targetRef: Fe(
|
|
8168
8168
|
(P) => {
|
|
8169
8169
|
S.target = P ?? void 0;
|
|
8170
8170
|
},
|
|
@@ -8301,7 +8301,7 @@ function au(e, t, n) {
|
|
|
8301
8301
|
variables: t
|
|
8302
8302
|
}, {
|
|
8303
8303
|
lodash: k,
|
|
8304
|
-
interpolate:
|
|
8304
|
+
interpolate: Fr
|
|
8305
8305
|
});
|
|
8306
8306
|
return Number(s);
|
|
8307
8307
|
} catch (s) {
|
|
@@ -8575,69 +8575,66 @@ const vS = yS(), _S = ({
|
|
|
8575
8575
|
}), wS = ({
|
|
8576
8576
|
defaultValues: e,
|
|
8577
8577
|
onSubmit: t,
|
|
8578
|
-
unset: n
|
|
8579
|
-
cancel: i
|
|
8578
|
+
unset: n
|
|
8580
8579
|
}) => {
|
|
8581
8580
|
const {
|
|
8582
|
-
t:
|
|
8583
|
-
} = v(),
|
|
8581
|
+
t: i
|
|
8582
|
+
} = v(), s = Ve({
|
|
8584
8583
|
defaultValues: e
|
|
8585
8584
|
}), {
|
|
8586
|
-
control:
|
|
8587
|
-
handleSubmit:
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
reset: h
|
|
8591
|
-
} = a;
|
|
8585
|
+
control: a,
|
|
8586
|
+
handleSubmit: o,
|
|
8587
|
+
reset: l
|
|
8588
|
+
} = s;
|
|
8592
8589
|
Q(() => {
|
|
8593
|
-
|
|
8590
|
+
l(e);
|
|
8594
8591
|
}, [e]);
|
|
8595
|
-
const
|
|
8592
|
+
const c = Fe(() => l(e), [l, e]);
|
|
8596
8593
|
return /* @__PURE__ */ r.jsxs(R, { children: [
|
|
8597
8594
|
/* @__PURE__ */ r.jsx(O, { color: "rgb(206, 212, 218)", variant: "dotted", my: "1rem" }),
|
|
8598
8595
|
/* @__PURE__ */ r.jsxs(R, { px: "1rem", children: [
|
|
8599
|
-
/* @__PURE__ */ r.jsx(g, { control:
|
|
8600
|
-
field:
|
|
8601
|
-
}) => /* @__PURE__ */ r.jsx(so, { label:
|
|
8596
|
+
/* @__PURE__ */ r.jsx(g, { control: a, name: "variable", render: ({
|
|
8597
|
+
field: d
|
|
8598
|
+
}) => /* @__PURE__ */ r.jsx(so, { label: i("rich_text.color_mapping.choose_value_var"), clearable: !1, preview: "aggregated", zIndex: 340, ...d }) }),
|
|
8602
8599
|
/* @__PURE__ */ r.jsxs(y, { grow: !0, position: "apart", children: [
|
|
8603
|
-
/* @__PURE__ */ r.jsx(g, { name: "min_var", control:
|
|
8604
|
-
field:
|
|
8605
|
-
}) => /* @__PURE__ */ r.jsx(so, { label:
|
|
8600
|
+
/* @__PURE__ */ r.jsx(g, { name: "min_var", control: a, render: ({
|
|
8601
|
+
field: d
|
|
8602
|
+
}) => /* @__PURE__ */ r.jsx(so, { label: i("rich_text.color_mapping.min.var"), preview: "aggregated", sx: {
|
|
8606
8603
|
flexGrow: 1,
|
|
8607
8604
|
maxWidth: "unset"
|
|
8608
|
-
}, ...
|
|
8609
|
-
/* @__PURE__ */ r.jsx(g, { name: "min_val", control:
|
|
8610
|
-
field:
|
|
8611
|
-
}) => /* @__PURE__ */ r.jsx(E, { label:
|
|
8605
|
+
}, ...d }) }),
|
|
8606
|
+
/* @__PURE__ */ r.jsx(g, { name: "min_val", control: a, render: ({
|
|
8607
|
+
field: d
|
|
8608
|
+
}) => /* @__PURE__ */ r.jsx(E, { label: i("rich_text.color_mapping.min.val"), ...d, sx: {
|
|
8612
8609
|
maxWidth: "120px",
|
|
8613
8610
|
flexGrow: 0
|
|
8614
8611
|
} }) })
|
|
8615
8612
|
] }),
|
|
8616
8613
|
/* @__PURE__ */ r.jsxs(y, { grow: !0, position: "apart", children: [
|
|
8617
|
-
/* @__PURE__ */ r.jsx(g, { name: "max_var", control:
|
|
8618
|
-
field:
|
|
8619
|
-
}) => /* @__PURE__ */ r.jsx(so, { label:
|
|
8614
|
+
/* @__PURE__ */ r.jsx(g, { name: "max_var", control: a, render: ({
|
|
8615
|
+
field: d
|
|
8616
|
+
}) => /* @__PURE__ */ r.jsx(so, { label: i("rich_text.color_mapping.max.var"), preview: "aggregated", sx: {
|
|
8620
8617
|
flexGrow: 1,
|
|
8621
8618
|
maxWidth: "unset"
|
|
8622
|
-
}, ...
|
|
8623
|
-
/* @__PURE__ */ r.jsx(g, { name: "max_val", control:
|
|
8624
|
-
field:
|
|
8625
|
-
}) => /* @__PURE__ */ r.jsx(E, { label:
|
|
8619
|
+
}, ...d }) }),
|
|
8620
|
+
/* @__PURE__ */ r.jsx(g, { name: "max_val", control: a, render: ({
|
|
8621
|
+
field: d
|
|
8622
|
+
}) => /* @__PURE__ */ r.jsx(E, { label: i("rich_text.color_mapping.max.val"), ...d, sx: {
|
|
8626
8623
|
maxWidth: "120px",
|
|
8627
8624
|
flexGrow: 0
|
|
8628
8625
|
} }) })
|
|
8629
8626
|
] }),
|
|
8630
|
-
/* @__PURE__ */ r.jsx(g, { control:
|
|
8631
|
-
field:
|
|
8632
|
-
}) => /* @__PURE__ */ r.jsx(af, { ...
|
|
8627
|
+
/* @__PURE__ */ r.jsx(g, { control: a, name: "colors", render: ({
|
|
8628
|
+
field: d
|
|
8629
|
+
}) => /* @__PURE__ */ r.jsx(af, { ...d }) })
|
|
8633
8630
|
] }),
|
|
8634
8631
|
/* @__PURE__ */ r.jsx(O, { color: "rgb(206, 212, 218)", variant: "dotted", my: "1rem" }),
|
|
8635
8632
|
/* @__PURE__ */ r.jsxs(y, { position: "apart", px: "1rem", pb: "0.75rem", children: [
|
|
8636
8633
|
/* @__PURE__ */ r.jsxs(y, { position: "left", children: [
|
|
8637
|
-
/* @__PURE__ */ r.jsx(M, { color: "red", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(mn, { size: 18 }), children:
|
|
8638
|
-
/* @__PURE__ */ r.jsx(M, { color: "orange", size: "xs", onClick:
|
|
8634
|
+
/* @__PURE__ */ r.jsx(M, { color: "red", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(mn, { size: 18 }), children: i("common.actions.clear") }),
|
|
8635
|
+
/* @__PURE__ */ r.jsx(M, { color: "orange", size: "xs", onClick: c, leftIcon: /* @__PURE__ */ r.jsx(lb, { size: 18 }), children: i("common.actions.revert") })
|
|
8639
8636
|
] }),
|
|
8640
|
-
/* @__PURE__ */ r.jsx(M, { color: "green", size: "xs", onClick:
|
|
8637
|
+
/* @__PURE__ */ r.jsx(M, { color: "green", size: "xs", onClick: o(t), leftIcon: /* @__PURE__ */ r.jsx(et, { size: 18 }), children: i("common.actions.save_changes") })
|
|
8641
8638
|
] })
|
|
8642
8639
|
] });
|
|
8643
8640
|
}, SS = () => {
|
|
@@ -8693,9 +8690,9 @@ const vS = yS(), _S = ({
|
|
|
8693
8690
|
}] = pt(), l = e.getAttributes(mp), {
|
|
8694
8691
|
empty: c,
|
|
8695
8692
|
...d
|
|
8696
|
-
} = T(() => lw(l), [l]), h =
|
|
8693
|
+
} = T(() => lw(l), [l]), h = Fe((p) => {
|
|
8697
8694
|
e.chain().focus().setColorMapping(p).run(), a();
|
|
8698
|
-
}, [e]), u =
|
|
8695
|
+
}, [e]), u = Fe(() => {
|
|
8699
8696
|
e.chain().focus().unsetColorMapping().run();
|
|
8700
8697
|
}, [e]);
|
|
8701
8698
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -8706,7 +8703,7 @@ const vS = yS(), _S = ({
|
|
|
8706
8703
|
body: {
|
|
8707
8704
|
padding: 0
|
|
8708
8705
|
}
|
|
8709
|
-
}, children: /* @__PURE__ */ r.jsx(wS, { defaultValues: d,
|
|
8706
|
+
}, children: /* @__PURE__ */ r.jsx(wS, { defaultValues: d, unset: u, onSubmit: h }) }),
|
|
8710
8707
|
/* @__PURE__ */ r.jsxs(he.ControlsGroup, { children: [
|
|
8711
8708
|
/* @__PURE__ */ r.jsx(ve, { label: t("rich_text.color_mapping.label"), children: /* @__PURE__ */ r.jsx(re, { variant: "default", "data-rich-text-editor-control": "true", sx: {
|
|
8712
8709
|
height: "26px",
|
|
@@ -8779,7 +8776,7 @@ function of() {
|
|
|
8779
8776
|
}
|
|
8780
8777
|
}
|
|
8781
8778
|
} }) }),
|
|
8782
|
-
/* @__PURE__ */ r.jsx(M, { variant: "light", color: "violet", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(
|
|
8779
|
+
/* @__PURE__ */ r.jsx(M, { variant: "light", color: "violet", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(Vr, { size: 16 }), children: e("function_utils.trigger_text") })
|
|
8783
8780
|
] });
|
|
8784
8781
|
}
|
|
8785
8782
|
const ou = de((e, t) => {
|
|
@@ -8852,7 +8849,7 @@ const ou = de((e, t) => {
|
|
|
8852
8849
|
e.chain().focus().unsetColor().run(), a();
|
|
8853
8850
|
};
|
|
8854
8851
|
return /* @__PURE__ */ r.jsxs(Jt, { opened: i, onChange: s, shadow: "md", withinPortal: !0, zIndex: 340, withArrow: !0, children: [
|
|
8855
|
-
/* @__PURE__ */ r.jsx(Jt.Target, { children: /* @__PURE__ */ r.jsx(he.Control, { onClick: o, children: /* @__PURE__ */ r.jsx(
|
|
8852
|
+
/* @__PURE__ */ r.jsx(Jt.Target, { children: /* @__PURE__ */ r.jsx(he.Control, { onClick: o, children: /* @__PURE__ */ r.jsx(Vs, { color: c, size: 14 }) }) }),
|
|
8856
8853
|
/* @__PURE__ */ r.jsx(Jt.Dropdown, { children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
|
|
8857
8854
|
/* @__PURE__ */ r.jsxs(y, { position: "right", children: [
|
|
8858
8855
|
/* @__PURE__ */ r.jsx(ur, { value: c, onChangeEnd: (p) => h(p, !1), size: "xs", withPicker: !1, dropdownZIndex: 340, styles: {
|
|
@@ -9233,16 +9230,16 @@ class ht extends $.Component {
|
|
|
9233
9230
|
return this.props.children;
|
|
9234
9231
|
}
|
|
9235
9232
|
}
|
|
9236
|
-
function
|
|
9233
|
+
function FS(e, t = {
|
|
9237
9234
|
handleError: !0
|
|
9238
9235
|
}) {
|
|
9239
9236
|
return (n) => /* @__PURE__ */ r.jsx(ht, { ...t, children: /* @__PURE__ */ r.jsx(e, { ...n }) });
|
|
9240
9237
|
}
|
|
9241
|
-
function
|
|
9238
|
+
function VS(e, t) {
|
|
9242
9239
|
return new Function(`return ${e}`)()(t, gn);
|
|
9243
9240
|
}
|
|
9244
9241
|
function NS(e, t, n) {
|
|
9245
|
-
return
|
|
9242
|
+
return VS(e, {
|
|
9246
9243
|
context: t,
|
|
9247
9244
|
filters: n
|
|
9248
9245
|
});
|
|
@@ -9261,7 +9258,7 @@ function WS(e, t, n) {
|
|
|
9261
9258
|
return e ? new Function(`return ${e}`)()(t, gn, n) : t;
|
|
9262
9259
|
}
|
|
9263
9260
|
function uf() {
|
|
9264
|
-
ly([qy, Sy, ky, Cy, Iy, Ty, zy, Dy, My, Ey, Ly, Ay, Ry, $y, Py, Oy,
|
|
9261
|
+
ly([qy, Sy, ky, Cy, Iy, Ty, zy, Dy, My, Ey, Ly, Ay, Ry, $y, Py, Oy, Fy, Vy, Ny]);
|
|
9265
9262
|
}
|
|
9266
9263
|
const ci = (e) => Ju(e, (t, n) => {
|
|
9267
9264
|
if (n !== void 0 && t)
|
|
@@ -9593,7 +9590,7 @@ class o1 {
|
|
|
9593
9590
|
this.symbol = Symbol(t);
|
|
9594
9591
|
}
|
|
9595
9592
|
}
|
|
9596
|
-
function
|
|
9593
|
+
function Fn(e) {
|
|
9597
9594
|
return new o1(e);
|
|
9598
9595
|
}
|
|
9599
9596
|
class oc {
|
|
@@ -9633,7 +9630,7 @@ class oc {
|
|
|
9633
9630
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
9634
9631
|
}
|
|
9635
9632
|
}
|
|
9636
|
-
const gf = "13.28.
|
|
9633
|
+
const gf = "13.28.2", l1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9637
9634
|
__proto__: null,
|
|
9638
9635
|
version: gf
|
|
9639
9636
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9761,7 +9758,7 @@ const te = (e, t) => {
|
|
|
9761
9758
|
}), e.watchItem(t, (l) => {
|
|
9762
9759
|
a(l);
|
|
9763
9760
|
})));
|
|
9764
|
-
const o =
|
|
9761
|
+
const o = Fe(async (l) => {
|
|
9765
9762
|
await e.setItem(t, l), a(l);
|
|
9766
9763
|
}, [e, t]);
|
|
9767
9764
|
return {
|
|
@@ -9777,7 +9774,7 @@ const te = (e, t) => {
|
|
|
9777
9774
|
}, bn = (e) => Math.max(0, e - At.left - At.right), yn = (e) => Math.max(0, e - At.top - At.bottom), ms = (e, t) => ({
|
|
9778
9775
|
width: bn(e),
|
|
9779
9776
|
height: yn(t)
|
|
9780
|
-
}),
|
|
9777
|
+
}), Vt = ({
|
|
9781
9778
|
width: e,
|
|
9782
9779
|
height: t,
|
|
9783
9780
|
children: n
|
|
@@ -9871,7 +9868,7 @@ function h1({
|
|
|
9871
9868
|
data: u.map((z) => [z[p.columnKey], z[m.columnKey], z[f.columnKey]])
|
|
9872
9869
|
}]
|
|
9873
9870
|
};
|
|
9874
|
-
return t ? /* @__PURE__ */ r.jsx(
|
|
9871
|
+
return t ? /* @__PURE__ */ r.jsx(Vt, { width: i, height: s, children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: S, style: ms(i, s), notMerge: !0, theme: "merico-light" }) }) : null;
|
|
9875
9872
|
}
|
|
9876
9873
|
const ee = D(de(({
|
|
9877
9874
|
label: e,
|
|
@@ -9916,7 +9913,7 @@ function p1({
|
|
|
9916
9913
|
control: s,
|
|
9917
9914
|
handleSubmit: a,
|
|
9918
9915
|
reset: o
|
|
9919
|
-
} =
|
|
9916
|
+
} = Ve({
|
|
9920
9917
|
defaultValues: i
|
|
9921
9918
|
});
|
|
9922
9919
|
return Q(() => {
|
|
@@ -10557,7 +10554,7 @@ const O1 = {
|
|
|
10557
10554
|
id: "builtin:op:open_view",
|
|
10558
10555
|
configRender: $1,
|
|
10559
10556
|
run: P1
|
|
10560
|
-
},
|
|
10557
|
+
}, F1 = {
|
|
10561
10558
|
"tbody tr": {
|
|
10562
10559
|
opacity: 0.5,
|
|
10563
10560
|
transition: "opacity 200ms ease"
|
|
@@ -10565,7 +10562,7 @@ const O1 = {
|
|
|
10565
10562
|
"tr[data-affected=true]": {
|
|
10566
10563
|
opacity: 1
|
|
10567
10564
|
}
|
|
10568
|
-
},
|
|
10565
|
+
}, V1 = ({
|
|
10569
10566
|
value: e = "",
|
|
10570
10567
|
onChange: t
|
|
10571
10568
|
}) => {
|
|
@@ -10616,7 +10613,7 @@ const O1 = {
|
|
|
10616
10613
|
}
|
|
10617
10614
|
});
|
|
10618
10615
|
};
|
|
10619
|
-
return /* @__PURE__ */ r.jsxs(at, { sx:
|
|
10616
|
+
return /* @__PURE__ */ r.jsxs(at, { sx: F1, children: [
|
|
10620
10617
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
10621
10618
|
/* @__PURE__ */ r.jsx("th", { children: t("interactions.operation.set_filter_values.set_filter") }),
|
|
10622
10619
|
/* @__PURE__ */ r.jsx("th", { children: t("interactions.operation.set_filter_values.with") })
|
|
@@ -10625,7 +10622,7 @@ const O1 = {
|
|
|
10625
10622
|
const c = l.value in a;
|
|
10626
10623
|
return /* @__PURE__ */ r.jsxs("tr", { "data-affected": c, children: [
|
|
10627
10624
|
/* @__PURE__ */ r.jsx("td", { children: l.label }),
|
|
10628
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
10625
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(V1, { value: a[l.value], onChange: (d) => o(l.value, d) }) })
|
|
10629
10626
|
] }, l.value);
|
|
10630
10627
|
}) })
|
|
10631
10628
|
] });
|
|
@@ -11679,7 +11676,7 @@ function Aa(e, t) {
|
|
|
11679
11676
|
minSpan: 1
|
|
11680
11677
|
}), n;
|
|
11681
11678
|
}
|
|
11682
|
-
function
|
|
11679
|
+
function Fk({
|
|
11683
11680
|
min: e,
|
|
11684
11681
|
max: t
|
|
11685
11682
|
}) {
|
|
@@ -11690,7 +11687,7 @@ function Vk({
|
|
|
11690
11687
|
const n = ei.floor(ei.log10(e)), i = Math.pow(10, n), s = Math.pow(10, n - 1);
|
|
11691
11688
|
return e / i <= 2 ? k.round(e, -1 * (n - 1)) - s : k.round(e, -1 * n) - i;
|
|
11692
11689
|
}
|
|
11693
|
-
function
|
|
11690
|
+
function Vk(e) {
|
|
11694
11691
|
return {
|
|
11695
11692
|
Box: e("viz.boxplot.box"),
|
|
11696
11693
|
Scatter: e("viz.boxplot.scatter"),
|
|
@@ -11707,7 +11704,7 @@ function Nk({
|
|
|
11707
11704
|
x_axis: s,
|
|
11708
11705
|
y_axis: a,
|
|
11709
11706
|
reference_lines: o
|
|
11710
|
-
} = e, l = jk(e, t), c = sn(s.axisLabel.overflow.on_axis), d =
|
|
11707
|
+
} = e, l = jk(e, t), c = sn(s.axisLabel.overflow.on_axis), d = Vk(i), h = Ek(e, l).map((u) => ({
|
|
11711
11708
|
...u,
|
|
11712
11709
|
name: k.get(d, u.name, u.name)
|
|
11713
11710
|
}));
|
|
@@ -11745,7 +11742,7 @@ function Nk({
|
|
|
11745
11742
|
return ge(u, a.label_formatter);
|
|
11746
11743
|
}
|
|
11747
11744
|
},
|
|
11748
|
-
min:
|
|
11745
|
+
min: Fk
|
|
11749
11746
|
})],
|
|
11750
11747
|
series: [...h, ...kk(o, n, t)]
|
|
11751
11748
|
};
|
|
@@ -11766,7 +11763,7 @@ function qk({
|
|
|
11766
11763
|
} = e.viewport, c = Pe({}, i, cc), d = Ut({
|
|
11767
11764
|
vizManager: e.vizManager,
|
|
11768
11765
|
instance: t
|
|
11769
|
-
}), h = Qt(d.triggerManager, yf.id), u = Wr(a, c.x_axis.data_key), p =
|
|
11766
|
+
}), h = Qt(d.triggerManager, yf.id), u = Wr(a, c.x_axis.data_key), p = Fe((b) => {
|
|
11770
11767
|
const I = k.get(u, b.name, {
|
|
11771
11768
|
error: "rowData is not found"
|
|
11772
11769
|
});
|
|
@@ -11784,7 +11781,7 @@ function qk({
|
|
|
11784
11781
|
variables: s,
|
|
11785
11782
|
t: n
|
|
11786
11783
|
}), [c, a, s, n]);
|
|
11787
|
-
return !i || !o || !l ? null : /* @__PURE__ */ r.jsx(
|
|
11784
|
+
return !i || !o || !l ? null : /* @__PURE__ */ r.jsx(Vt, { width: o, height: l, children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: f, style: ms(o, l), onEvents: m, notMerge: !0, theme: "merico-light" }) });
|
|
11788
11785
|
}
|
|
11789
11786
|
function Bk({
|
|
11790
11787
|
value: e,
|
|
@@ -11807,7 +11804,7 @@ function Bk({
|
|
|
11807
11804
|
placeholder: i("chart.color.set_any_color"),
|
|
11808
11805
|
value: o ? "" : e,
|
|
11809
11806
|
onChange: (l) => t(l.currentTarget.value),
|
|
11810
|
-
rightSection: /* @__PURE__ */ r.jsx(
|
|
11807
|
+
rightSection: /* @__PURE__ */ r.jsx(Vs, { color: o ? "transparent" : e, radius: 4 }),
|
|
11811
11808
|
variant: o ? "filled" : "default",
|
|
11812
11809
|
sx: {
|
|
11813
11810
|
maxWidth: "46%",
|
|
@@ -11826,7 +11823,7 @@ function Bk({
|
|
|
11826
11823
|
onChange: t,
|
|
11827
11824
|
variant: o ? "default" : "filled",
|
|
11828
11825
|
placeholder: i("chart.color.pick_a_theme_color"),
|
|
11829
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
11826
|
+
icon: /* @__PURE__ */ r.jsx(Vs, { color: o ? e : "transparent", radius: 4 }),
|
|
11830
11827
|
sx: {
|
|
11831
11828
|
maxWidth: "46%",
|
|
11832
11829
|
flexGrow: 1
|
|
@@ -12629,7 +12626,7 @@ function pC({
|
|
|
12629
12626
|
watch: c,
|
|
12630
12627
|
getValues: d,
|
|
12631
12628
|
reset: h
|
|
12632
|
-
} =
|
|
12629
|
+
} = Ve({
|
|
12633
12630
|
defaultValues: a
|
|
12634
12631
|
});
|
|
12635
12632
|
Q(() => {
|
|
@@ -12988,14 +12985,14 @@ const mc = {
|
|
|
12988
12985
|
onChange: t,
|
|
12989
12986
|
label: n
|
|
12990
12987
|
}) => {
|
|
12991
|
-
const i = Hi(), s =
|
|
12988
|
+
const i = Hi(), s = Fe((o) => () => t(o), [t]), a = (o) => e === o;
|
|
12992
12989
|
return /* @__PURE__ */ r.jsxs(C, { spacing: 2, children: [
|
|
12993
12990
|
/* @__PURE__ */ r.jsx(w, { size: 14, sx: {
|
|
12994
12991
|
fontWeight: 500
|
|
12995
12992
|
}, children: n }),
|
|
12996
12993
|
/* @__PURE__ */ r.jsx(y, { position: "left", spacing: "xs", children: Object.keys(i.colors).map((o) => {
|
|
12997
12994
|
const l = i.colors[o][6];
|
|
12998
|
-
return /* @__PURE__ */ r.jsx(
|
|
12995
|
+
return /* @__PURE__ */ r.jsx(Vs, { color: l, onClick: s(o), radius: 4, size: 26, sx: {
|
|
12999
12996
|
cursor: "pointer"
|
|
13000
12997
|
}, children: a(o) && /* @__PURE__ */ r.jsx(Ag, { width: 10, color: "white" }) }, o);
|
|
13001
12998
|
}) })
|
|
@@ -13053,7 +13050,7 @@ function EC({
|
|
|
13053
13050
|
watch: l,
|
|
13054
13051
|
getValues: c,
|
|
13055
13052
|
reset: d
|
|
13056
|
-
} =
|
|
13053
|
+
} = Ve({
|
|
13057
13054
|
defaultValues: s
|
|
13058
13055
|
});
|
|
13059
13056
|
Q(() => {
|
|
@@ -13167,7 +13164,7 @@ const PC = {
|
|
|
13167
13164
|
}, fc = {
|
|
13168
13165
|
id: "builtin:echarts:click-echart:series",
|
|
13169
13166
|
displayName: "viz.cartesian_chart.click_series.label",
|
|
13170
|
-
nameRender:
|
|
13167
|
+
nameRender: FC,
|
|
13171
13168
|
configRender: OC,
|
|
13172
13169
|
payload: [{
|
|
13173
13170
|
name: "seriesType",
|
|
@@ -13198,7 +13195,7 @@ const PC = {
|
|
|
13198
13195
|
function OC(e) {
|
|
13199
13196
|
return /* @__PURE__ */ r.jsx(r.Fragment, {});
|
|
13200
13197
|
}
|
|
13201
|
-
function
|
|
13198
|
+
function FC(e) {
|
|
13202
13199
|
const {
|
|
13203
13200
|
t
|
|
13204
13201
|
} = v();
|
|
@@ -13239,7 +13236,7 @@ const xc = {
|
|
|
13239
13236
|
reference_areas: [],
|
|
13240
13237
|
dataZoom: Br
|
|
13241
13238
|
};
|
|
13242
|
-
function
|
|
13239
|
+
function VC(e) {
|
|
13243
13240
|
const t = e.y_axes.some((s) => !!s.name);
|
|
13244
13241
|
let n = 15;
|
|
13245
13242
|
t && (n += 20), e.dataZoom.x_axis_slider && (n += 20);
|
|
@@ -13487,7 +13484,7 @@ function ZC({
|
|
|
13487
13484
|
variables: s
|
|
13488
13485
|
}, {
|
|
13489
13486
|
lodash: k,
|
|
13490
|
-
interpolate:
|
|
13487
|
+
interpolate: Fr
|
|
13491
13488
|
});
|
|
13492
13489
|
} catch (p) {
|
|
13493
13490
|
return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${p.message}`), 10;
|
|
@@ -13757,7 +13754,7 @@ function uI(e, t, n) {
|
|
|
13757
13754
|
yAxis: cI(e, s, o),
|
|
13758
13755
|
series: [...o, ...l],
|
|
13759
13756
|
tooltip: iI(e, t, o, s),
|
|
13760
|
-
grid:
|
|
13757
|
+
grid: VC(e),
|
|
13761
13758
|
legend: BC(o),
|
|
13762
13759
|
dataZoom: Aa(e.dataZoom)
|
|
13763
13760
|
};
|
|
@@ -13786,7 +13783,7 @@ function hI({
|
|
|
13786
13783
|
interactionManager: s,
|
|
13787
13784
|
variables: a
|
|
13788
13785
|
}) {
|
|
13789
|
-
const o = Wr(t, e.x_axis_data_key), l = Qt(s.triggerManager, fc.id), c =
|
|
13786
|
+
const o = Wr(t, e.x_axis_data_key), l = Qt(s.triggerManager, fc.id), c = Fe((m) => {
|
|
13790
13787
|
const f = k.get(o, m.name, {
|
|
13791
13788
|
error: "rowData is not found"
|
|
13792
13789
|
});
|
|
@@ -13825,10 +13822,10 @@ function pI({
|
|
|
13825
13822
|
} = e.viewport, {
|
|
13826
13823
|
ref: d,
|
|
13827
13824
|
height: h
|
|
13828
|
-
} =
|
|
13825
|
+
} = Fi(), {
|
|
13829
13826
|
ref: u,
|
|
13830
13827
|
height: p
|
|
13831
|
-
} =
|
|
13828
|
+
} = Fi(), m = $.useMemo(() => {
|
|
13832
13829
|
const {
|
|
13833
13830
|
stats: {
|
|
13834
13831
|
templates: I
|
|
@@ -13839,7 +13836,7 @@ function pI({
|
|
|
13839
13836
|
bottom: aa(I.bottom, s, o)
|
|
13840
13837
|
};
|
|
13841
13838
|
}, [a, o]), f = Math.max(0, yn(c) - h - p), b = bn(l);
|
|
13842
|
-
return /* @__PURE__ */ r.jsxs(
|
|
13839
|
+
return /* @__PURE__ */ r.jsxs(Vt, { width: l, height: c, children: [
|
|
13843
13840
|
/* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
13844
13841
|
display: uu(a.stats.templates.top) ? "block" : "none"
|
|
13845
13842
|
}, children: Object.values(m.top).map((I, S) => /* @__PURE__ */ r.jsx($.Fragment, { children: I }, S)) }),
|
|
@@ -14886,7 +14883,7 @@ const AI = () => {
|
|
|
14886
14883
|
/* @__PURE__ */ r.jsxs(Ke, { width: 340, shadow: "md", position: "top", children: [
|
|
14887
14884
|
/* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(re, { size: "xs", sx: {
|
|
14888
14885
|
transform: "none !important"
|
|
14889
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
14886
|
+
}, children: /* @__PURE__ */ r.jsx(Vr, {}) }) }),
|
|
14890
14887
|
/* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: /* @__PURE__ */ r.jsxs(ma, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
|
|
14891
14888
|
"Click",
|
|
14892
14889
|
/* @__PURE__ */ r.jsx(Ns, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 3, children: "here" }),
|
|
@@ -15088,7 +15085,7 @@ function OI({
|
|
|
15088
15085
|
watch: c,
|
|
15089
15086
|
getValues: d,
|
|
15090
15087
|
reset: h
|
|
15091
|
-
} =
|
|
15088
|
+
} = Ve({
|
|
15092
15089
|
defaultValues: a
|
|
15093
15090
|
});
|
|
15094
15091
|
Q(() => {
|
|
@@ -15132,11 +15129,11 @@ function OI({
|
|
|
15132
15129
|
] })
|
|
15133
15130
|
] }) });
|
|
15134
15131
|
}
|
|
15135
|
-
function
|
|
15132
|
+
function FI(e) {
|
|
15136
15133
|
const t = mt(Lr(e, "variables"));
|
|
15137
15134
|
return t.stats = Lr(t.stats, "variables"), t;
|
|
15138
15135
|
}
|
|
15139
|
-
function
|
|
15136
|
+
function VI(e) {
|
|
15140
15137
|
const {
|
|
15141
15138
|
rotate: t,
|
|
15142
15139
|
formatter: n = St()
|
|
@@ -15510,12 +15507,12 @@ class aT extends Qe {
|
|
|
15510
15507
|
}), {
|
|
15511
15508
|
...n,
|
|
15512
15509
|
version: 2,
|
|
15513
|
-
config:
|
|
15510
|
+
config: FI(s)
|
|
15514
15511
|
};
|
|
15515
15512
|
}), this.version(3, (n) => ({
|
|
15516
15513
|
...n,
|
|
15517
15514
|
version: 3,
|
|
15518
|
-
config:
|
|
15515
|
+
config: VI(n.config)
|
|
15519
15516
|
})), this.version(4, (n) => ({
|
|
15520
15517
|
...n,
|
|
15521
15518
|
version: 4,
|
|
@@ -15773,7 +15770,7 @@ function bT({
|
|
|
15773
15770
|
width: s,
|
|
15774
15771
|
height: a
|
|
15775
15772
|
} = e.viewport;
|
|
15776
|
-
return !s || !a ? null : /* @__PURE__ */ r.jsx(
|
|
15773
|
+
return !s || !a ? null : /* @__PURE__ */ r.jsx(Vt, { width: s, height: a, children: /* @__PURE__ */ r.jsx(gT, { width: bn(s), height: yn(a), data: i, conf: n }) });
|
|
15777
15774
|
}
|
|
15778
15775
|
const yT = ({
|
|
15779
15776
|
item: e,
|
|
@@ -15962,7 +15959,7 @@ function _T({
|
|
|
15962
15959
|
watch: o,
|
|
15963
15960
|
getValues: l,
|
|
15964
15961
|
reset: c
|
|
15965
|
-
} =
|
|
15962
|
+
} = Ve({
|
|
15966
15963
|
defaultValues: i
|
|
15967
15964
|
});
|
|
15968
15965
|
Q(() => {
|
|
@@ -16388,7 +16385,7 @@ const Is = ({
|
|
|
16388
16385
|
field: n
|
|
16389
16386
|
}) => /* @__PURE__ */ r.jsx(Is, { field: n, label: t("chart.visual_map.skip_range.gt_max") }) })
|
|
16390
16387
|
] });
|
|
16391
|
-
},
|
|
16388
|
+
}, FT = ({
|
|
16392
16389
|
form: e
|
|
16393
16390
|
}) => {
|
|
16394
16391
|
const {
|
|
@@ -16440,7 +16437,7 @@ const Is = ({
|
|
|
16440
16437
|
}) => /* @__PURE__ */ r.jsx(af, { ...d }) }),
|
|
16441
16438
|
/* @__PURE__ */ r.jsx(OT, { form: e })
|
|
16442
16439
|
] });
|
|
16443
|
-
},
|
|
16440
|
+
}, VT = ({
|
|
16444
16441
|
visualMap: e
|
|
16445
16442
|
}) => {
|
|
16446
16443
|
const {
|
|
@@ -16639,7 +16636,7 @@ const Is = ({
|
|
|
16639
16636
|
}
|
|
16640
16637
|
};
|
|
16641
16638
|
return /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsxs(C, { children: [
|
|
16642
|
-
/* @__PURE__ */ r.jsx(
|
|
16639
|
+
/* @__PURE__ */ r.jsx(VT, { visualMap: s }),
|
|
16643
16640
|
/* @__PURE__ */ r.jsx(g, { name: "visualMap.type", control: i, render: ({
|
|
16644
16641
|
field: l
|
|
16645
16642
|
}) => /* @__PURE__ */ r.jsx(qu, { mt: -10, data: a, sx: {
|
|
@@ -16654,7 +16651,7 @@ const Is = ({
|
|
|
16654
16651
|
}) => /* @__PURE__ */ r.jsx(su, { label: t("chart.visual_map.max_value"), ...l }) })
|
|
16655
16652
|
] }),
|
|
16656
16653
|
/* @__PURE__ */ r.jsx(O, { variant: "dashed" }),
|
|
16657
|
-
/* @__PURE__ */ r.jsx(
|
|
16654
|
+
/* @__PURE__ */ r.jsx(FT, { form: e }),
|
|
16658
16655
|
/* @__PURE__ */ r.jsx(WT, { form: e })
|
|
16659
16656
|
] }) });
|
|
16660
16657
|
};
|
|
@@ -16774,7 +16771,7 @@ function YT({
|
|
|
16774
16771
|
const o = T(() => {
|
|
16775
16772
|
const u = W(e.x_axis.data_key), p = W(e.y_axis.data_key);
|
|
16776
16773
|
return k.keyBy(t[u.queryID], (m) => `${m[u.columnKey]}---${m[p.columnKey]}`);
|
|
16777
|
-
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = Qt(s.triggerManager, zf.id), c =
|
|
16774
|
+
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = Qt(s.triggerManager, zf.id), c = Fe((u) => {
|
|
16778
16775
|
const [p, m] = u.value, f = k.get(o, `${p}---${m}`, {
|
|
16779
16776
|
error: "rowData is not found"
|
|
16780
16777
|
});
|
|
@@ -16807,7 +16804,7 @@ function KT({
|
|
|
16807
16804
|
width: l,
|
|
16808
16805
|
height: c
|
|
16809
16806
|
} = e.viewport;
|
|
16810
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(
|
|
16807
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(Vt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(YT, { variables: s, width: bn(l), height: yn(c), data: o, conf: a, interactionManager: n }) });
|
|
16811
16808
|
}
|
|
16812
16809
|
function XT({
|
|
16813
16810
|
control: e,
|
|
@@ -16996,7 +16993,7 @@ function rz({
|
|
|
16996
16993
|
Q(() => {
|
|
16997
16994
|
!Le(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
|
|
16998
16995
|
}, [s, a]);
|
|
16999
|
-
const o =
|
|
16996
|
+
const o = Ve({
|
|
17000
16997
|
defaultValues: a
|
|
17001
16998
|
}), {
|
|
17002
16999
|
control: l,
|
|
@@ -17600,7 +17597,7 @@ function Dz({
|
|
|
17600
17597
|
} = e.viewport, l = Pe({}, i, kc), c = zz(l, s, n), d = Ut({
|
|
17601
17598
|
vizManager: e.vizManager,
|
|
17602
17599
|
instance: t
|
|
17603
|
-
}), h = Qt(d.triggerManager, Df.id), u = Wr(s, l.x_axis.data_key), p =
|
|
17600
|
+
}), h = Qt(d.triggerManager, Df.id), u = Wr(s, l.x_axis.data_key), p = Fe((f) => {
|
|
17604
17601
|
const b = k.get(u, f.name, {
|
|
17605
17602
|
error: "rowData is not found"
|
|
17606
17603
|
});
|
|
@@ -17613,7 +17610,7 @@ function Dz({
|
|
|
17613
17610
|
}, [u, h, d]), m = T(() => ({
|
|
17614
17611
|
click: p
|
|
17615
17612
|
}), [p]);
|
|
17616
|
-
return !l || !a || !o ? null : /* @__PURE__ */ r.jsx(
|
|
17613
|
+
return !l || !a || !o ? null : /* @__PURE__ */ r.jsx(Vt, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: c, style: ms(a, o), onEvents: m, notMerge: !0, theme: "merico-light" }) });
|
|
17617
17614
|
}
|
|
17618
17615
|
function Mz({
|
|
17619
17616
|
control: e,
|
|
@@ -17862,7 +17859,7 @@ function Oz({
|
|
|
17862
17859
|
] })
|
|
17863
17860
|
] });
|
|
17864
17861
|
}
|
|
17865
|
-
function
|
|
17862
|
+
function Fz({
|
|
17866
17863
|
control: e,
|
|
17867
17864
|
watch: t,
|
|
17868
17865
|
variables: n
|
|
@@ -17896,7 +17893,7 @@ function Vz({
|
|
|
17896
17893
|
index: h
|
|
17897
17894
|
}) => /* @__PURE__ */ r.jsx(Oz, { control: e, index: h, watch: t, variableOptions: o, yAxisOptions: c }) });
|
|
17898
17895
|
}
|
|
17899
|
-
function
|
|
17896
|
+
function Vz({
|
|
17900
17897
|
context: e
|
|
17901
17898
|
}) {
|
|
17902
17899
|
const {
|
|
@@ -17912,7 +17909,7 @@ function Fz({
|
|
|
17912
17909
|
watch: c,
|
|
17913
17910
|
getValues: d,
|
|
17914
17911
|
reset: h
|
|
17915
|
-
} =
|
|
17912
|
+
} = Ve({
|
|
17916
17913
|
defaultValues: a
|
|
17917
17914
|
});
|
|
17918
17915
|
Q(() => {
|
|
@@ -17945,7 +17942,7 @@ function Fz({
|
|
|
17945
17942
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Bar", children: /* @__PURE__ */ r.jsx(Mz, { control: o, watch: c }) }),
|
|
17946
17943
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Line", children: /* @__PURE__ */ r.jsx(Ez, { control: o, watch: c }) }),
|
|
17947
17944
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "80-20 Line", children: /* @__PURE__ */ r.jsx(Rz, { control: o, watch: c }) }),
|
|
17948
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(
|
|
17945
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(Fz, { variables: s, control: o, watch: c }) }),
|
|
17949
17946
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Zooming", children: /* @__PURE__ */ r.jsx(g, { name: "dataZoom", control: o, render: ({
|
|
17950
17947
|
field: m
|
|
17951
17948
|
}) => /* @__PURE__ */ r.jsx(Ra, { ...m }) }) })
|
|
@@ -18120,7 +18117,7 @@ const Kz = {
|
|
|
18120
18117
|
migrator: new Yz(),
|
|
18121
18118
|
name: "paretoChart",
|
|
18122
18119
|
viewRender: Dz,
|
|
18123
|
-
configRender:
|
|
18120
|
+
configRender: Vz,
|
|
18124
18121
|
createConfig() {
|
|
18125
18122
|
return {
|
|
18126
18123
|
version: 9,
|
|
@@ -18275,7 +18272,7 @@ function nD({
|
|
|
18275
18272
|
width: o,
|
|
18276
18273
|
height: l
|
|
18277
18274
|
} = e.viewport;
|
|
18278
|
-
return !o || !l ? null : /* @__PURE__ */ r.jsx(
|
|
18275
|
+
return !o || !l ? null : /* @__PURE__ */ r.jsx(Vt, { width: o, height: l, children: /* @__PURE__ */ r.jsx(tD, { conf: s, width: bn(o), height: yn(l), data: a, interactionManager: n }) });
|
|
18279
18276
|
}
|
|
18280
18277
|
function rD({
|
|
18281
18278
|
context: e
|
|
@@ -18291,7 +18288,7 @@ function rD({
|
|
|
18291
18288
|
watch: c,
|
|
18292
18289
|
getValues: d,
|
|
18293
18290
|
reset: h
|
|
18294
|
-
} =
|
|
18291
|
+
} = Ve({
|
|
18295
18292
|
defaultValues: a
|
|
18296
18293
|
});
|
|
18297
18294
|
Q(() => {
|
|
@@ -18662,7 +18659,7 @@ function _D({
|
|
|
18662
18659
|
...m,
|
|
18663
18660
|
...f
|
|
18664
18661
|
};
|
|
18665
|
-
}, [t, e.series_name_key, e.additional_series]), l = Qt(s.triggerManager, Lf.id), c =
|
|
18662
|
+
}, [t, e.series_name_key, e.additional_series]), l = Qt(s.triggerManager, Lf.id), c = Fe((u) => {
|
|
18666
18663
|
const p = k.get(o, u.name, {
|
|
18667
18664
|
error: "rowData is not found"
|
|
18668
18665
|
});
|
|
@@ -18695,7 +18692,7 @@ function jD({
|
|
|
18695
18692
|
width: l,
|
|
18696
18693
|
height: c
|
|
18697
18694
|
} = e.viewport;
|
|
18698
|
-
return !l || !c || !a || nh(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ r.jsx(
|
|
18695
|
+
return !l || !c || !a || nh(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ r.jsx(Vt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(_D, { variables: s, width: bn(l), height: yn(c), data: o, conf: a, interactionManager: n }) });
|
|
18699
18696
|
}
|
|
18700
18697
|
function wD({
|
|
18701
18698
|
control: e,
|
|
@@ -18732,7 +18729,7 @@ function SD({
|
|
|
18732
18729
|
color_key: ""
|
|
18733
18730
|
}), s = (a, o) => o + 1;
|
|
18734
18731
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
18735
|
-
/* @__PURE__ */ r.jsx(Qi, { icon: /* @__PURE__ */ r.jsx(
|
|
18732
|
+
/* @__PURE__ */ r.jsx(Qi, { icon: /* @__PURE__ */ r.jsx(Vr, { size: 16 }), title: n("viz.radar_chart.additional_series.label"), children: /* @__PURE__ */ r.jsxs(ma, { i18nKey: "viz.radar_chart.additional_series.intro", children: [
|
|
18736
18733
|
"By setting ",
|
|
18737
18734
|
/* @__PURE__ */ r.jsx(Wu, { children: "Series Name Key" }),
|
|
18738
18735
|
", you may add series from more queries to the chart."
|
|
@@ -18827,7 +18824,7 @@ function ID({
|
|
|
18827
18824
|
getValues: c,
|
|
18828
18825
|
reset: d,
|
|
18829
18826
|
formState: h
|
|
18830
|
-
} =
|
|
18827
|
+
} = Ve({
|
|
18831
18828
|
defaultValues: s,
|
|
18832
18829
|
mode: "all"
|
|
18833
18830
|
});
|
|
@@ -19090,7 +19087,7 @@ const OD = {
|
|
|
19090
19087
|
triggers: [Lf],
|
|
19091
19088
|
translation: DD
|
|
19092
19089
|
};
|
|
19093
|
-
function
|
|
19090
|
+
function FD(e, t) {
|
|
19094
19091
|
const {
|
|
19095
19092
|
plot: n,
|
|
19096
19093
|
transform: i
|
|
@@ -19116,7 +19113,7 @@ function Pf(e, t) {
|
|
|
19116
19113
|
const n = W(e.x_axis.data_key), i = W(e.regression.y_axis_data_key);
|
|
19117
19114
|
return k.uniqBy(t.map((s) => [s[n.columnKey], s[i.columnKey]]), 0);
|
|
19118
19115
|
}
|
|
19119
|
-
function
|
|
19116
|
+
function VD(e, t) {
|
|
19120
19117
|
const {
|
|
19121
19118
|
plot: n,
|
|
19122
19119
|
transform: i
|
|
@@ -19166,7 +19163,7 @@ function qD(e, t) {
|
|
|
19166
19163
|
const {
|
|
19167
19164
|
group_by_key: n
|
|
19168
19165
|
} = e.regression;
|
|
19169
|
-
return n ? ND(e, t) :
|
|
19166
|
+
return n ? ND(e, t) : VD(e, t);
|
|
19170
19167
|
}
|
|
19171
19168
|
function BD(e) {
|
|
19172
19169
|
return Array.isArray(e) || (e = [e]), e.map((t) => ({
|
|
@@ -19257,7 +19254,7 @@ const HD = {
|
|
|
19257
19254
|
}]
|
|
19258
19255
|
};
|
|
19259
19256
|
function QD(e, t) {
|
|
19260
|
-
const n = qD(e, t), i =
|
|
19257
|
+
const n = qD(e, t), i = FD(e, n), s = {
|
|
19261
19258
|
xAxis: GD(e),
|
|
19262
19259
|
yAxis: De.getYAxis({
|
|
19263
19260
|
name: e.y_axis.name ?? "",
|
|
@@ -19475,7 +19472,7 @@ function tM({
|
|
|
19475
19472
|
t: n
|
|
19476
19473
|
} = v();
|
|
19477
19474
|
return /* @__PURE__ */ r.jsxs(Ke, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
19478
|
-
/* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(
|
|
19475
|
+
/* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Vr, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
|
|
19479
19476
|
/* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(eM, { conf: e, queryData: t }) }) })
|
|
19480
19477
|
] });
|
|
19481
19478
|
}
|
|
@@ -19547,7 +19544,7 @@ function rM({
|
|
|
19547
19544
|
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = T(() => QD(ot({}, t, Ic), s), [t, s]), o = lr(null), l = (c) => {
|
|
19548
19545
|
o.current = c;
|
|
19549
19546
|
};
|
|
19550
|
-
return !n || !i || !t ? null : /* @__PURE__ */ r.jsxs(
|
|
19547
|
+
return !n || !i || !t ? null : /* @__PURE__ */ r.jsxs(Vt, { width: n, height: i, children: [
|
|
19551
19548
|
/* @__PURE__ */ r.jsx(nM, { conf: t, queryData: s }),
|
|
19552
19549
|
/* @__PURE__ */ r.jsx(Ct, { echarts: xt, onChartReady: l, option: a, style: ms(n, i), notMerge: !0, theme: "merico-light" })
|
|
19553
19550
|
] });
|
|
@@ -19686,7 +19683,7 @@ function oM({
|
|
|
19686
19683
|
watch: o,
|
|
19687
19684
|
getValues: l,
|
|
19688
19685
|
reset: c
|
|
19689
|
-
} =
|
|
19686
|
+
} = Ve({
|
|
19690
19687
|
defaultValues: i
|
|
19691
19688
|
});
|
|
19692
19689
|
Q(() => {
|
|
@@ -19816,7 +19813,7 @@ const mM = {
|
|
|
19816
19813
|
};
|
|
19817
19814
|
},
|
|
19818
19815
|
translation: hM
|
|
19819
|
-
},
|
|
19816
|
+
}, Fa = {
|
|
19820
19817
|
content: ""
|
|
19821
19818
|
}, fM = D(({
|
|
19822
19819
|
context: e
|
|
@@ -19829,7 +19826,7 @@ const mM = {
|
|
|
19829
19826
|
variables: s,
|
|
19830
19827
|
data: a
|
|
19831
19828
|
} = e, o = T(() => {
|
|
19832
|
-
const l = Pe({}, i,
|
|
19829
|
+
const l = Pe({}, i, Fa);
|
|
19833
19830
|
return l.content ? hf(l.content, s, t.payloadForViz, a) : "";
|
|
19834
19831
|
}, [a, i, s, t.payloadForViz]);
|
|
19835
19832
|
return o ? /* @__PURE__ */ r.jsx(hs, { value: o, styles: {
|
|
@@ -19850,12 +19847,12 @@ function xM({
|
|
|
19850
19847
|
} = v(), {
|
|
19851
19848
|
value: n,
|
|
19852
19849
|
set: i
|
|
19853
|
-
} = te(e.instanceData, "config"), s = T(() => Pe({}, n,
|
|
19850
|
+
} = te(e.instanceData, "config"), s = T(() => Pe({}, n, Fa), [n]), {
|
|
19854
19851
|
control: a,
|
|
19855
19852
|
handleSubmit: o,
|
|
19856
19853
|
watch: l,
|
|
19857
19854
|
reset: c
|
|
19858
|
-
} =
|
|
19855
|
+
} = Ve({
|
|
19859
19856
|
defaultValues: s
|
|
19860
19857
|
});
|
|
19861
19858
|
l("content"), Q(() => {
|
|
@@ -19913,7 +19910,7 @@ class vM extends Qe {
|
|
|
19913
19910
|
U(this, "VERSION", 1);
|
|
19914
19911
|
}
|
|
19915
19912
|
fixMalformedConfig(n) {
|
|
19916
|
-
return Pe({}, n,
|
|
19913
|
+
return Pe({}, n, Fa);
|
|
19917
19914
|
}
|
|
19918
19915
|
configVersions() {
|
|
19919
19916
|
this.version(1, (n) => ({
|
|
@@ -19932,7 +19929,7 @@ const _M = {
|
|
|
19932
19929
|
createConfig() {
|
|
19933
19930
|
return {
|
|
19934
19931
|
version: 1,
|
|
19935
|
-
config: mt(
|
|
19932
|
+
config: mt(Fa)
|
|
19936
19933
|
};
|
|
19937
19934
|
},
|
|
19938
19935
|
translation: yM
|
|
@@ -19986,7 +19983,7 @@ function wM(e) {
|
|
|
19986
19983
|
} = v();
|
|
19987
19984
|
return /* @__PURE__ */ r.jsx(w, { children: t("viz.scatter_chart.click_scatter.trigger") });
|
|
19988
19985
|
}
|
|
19989
|
-
function
|
|
19986
|
+
function Ff() {
|
|
19990
19987
|
const {
|
|
19991
19988
|
on_axis: e,
|
|
19992
19989
|
in_tooltip: t
|
|
@@ -20006,7 +20003,7 @@ const Tc = {
|
|
|
20006
20003
|
},
|
|
20007
20004
|
color: fs.static,
|
|
20008
20005
|
label_position: "right",
|
|
20009
|
-
label_overflow:
|
|
20006
|
+
label_overflow: Ff()
|
|
20010
20007
|
},
|
|
20011
20008
|
stats: {
|
|
20012
20009
|
templates: {
|
|
@@ -20119,7 +20116,7 @@ function TM({
|
|
|
20119
20116
|
variables: n
|
|
20120
20117
|
}, {
|
|
20121
20118
|
lodash: k,
|
|
20122
|
-
interpolate:
|
|
20119
|
+
interpolate: Fr
|
|
20123
20120
|
});
|
|
20124
20121
|
} catch (l) {
|
|
20125
20122
|
return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${l.message}`), 10;
|
|
@@ -20150,7 +20147,7 @@ function zM({
|
|
|
20150
20147
|
variables: n
|
|
20151
20148
|
}, {
|
|
20152
20149
|
lodash: k,
|
|
20153
|
-
interpolate:
|
|
20150
|
+
interpolate: Fr
|
|
20154
20151
|
});
|
|
20155
20152
|
} catch (a) {
|
|
20156
20153
|
return console.error(`[getSeriesColor] failed parsing custom function, error: ${a.message}`), 10;
|
|
@@ -20372,7 +20369,7 @@ const OM = {
|
|
|
20372
20369
|
containLabel: !0
|
|
20373
20370
|
}
|
|
20374
20371
|
};
|
|
20375
|
-
function
|
|
20372
|
+
function FM(e, t, n) {
|
|
20376
20373
|
const i = n.reduce((c, d) => {
|
|
20377
20374
|
const h = $n(d, t);
|
|
20378
20375
|
return c[d.name] = Ht(d, h), c;
|
|
@@ -20406,7 +20403,7 @@ function VM(e, t, n) {
|
|
|
20406
20403
|
function yu(e) {
|
|
20407
20404
|
return e.trim().length > 0;
|
|
20408
20405
|
}
|
|
20409
|
-
function
|
|
20406
|
+
function VM({
|
|
20410
20407
|
conf: e,
|
|
20411
20408
|
data: t,
|
|
20412
20409
|
width: n,
|
|
@@ -20414,7 +20411,7 @@ function FM({
|
|
|
20414
20411
|
interactionManager: s,
|
|
20415
20412
|
variables: a
|
|
20416
20413
|
}) {
|
|
20417
|
-
const o = Wr(t, e.x_axis.data_key), l = Qt(s.triggerManager, Of.id), c =
|
|
20414
|
+
const o = Wr(t, e.x_axis.data_key), l = Qt(s.triggerManager, Of.id), c = Fe((u) => {
|
|
20418
20415
|
const p = u.data;
|
|
20419
20416
|
l.forEach((m) => {
|
|
20420
20417
|
s.runInteraction(m.id, {
|
|
@@ -20424,7 +20421,7 @@ function FM({
|
|
|
20424
20421
|
});
|
|
20425
20422
|
}, [o, l, s]), d = T(() => ({
|
|
20426
20423
|
click: c
|
|
20427
|
-
}), [c]), h = $.useMemo(() =>
|
|
20424
|
+
}), [c]), h = $.useMemo(() => FM(e, t, a), [e, t]);
|
|
20428
20425
|
return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: h, style: {
|
|
20429
20426
|
width: n,
|
|
20430
20427
|
height: i
|
|
@@ -20447,10 +20444,10 @@ function NM({
|
|
|
20447
20444
|
} = e.viewport, {
|
|
20448
20445
|
ref: d,
|
|
20449
20446
|
height: h
|
|
20450
|
-
} =
|
|
20447
|
+
} = Fi(), {
|
|
20451
20448
|
ref: u,
|
|
20452
20449
|
height: p
|
|
20453
|
-
} =
|
|
20450
|
+
} = Fi(), m = $.useMemo(() => {
|
|
20454
20451
|
const {
|
|
20455
20452
|
stats: {
|
|
20456
20453
|
templates: b
|
|
@@ -20461,11 +20458,11 @@ function NM({
|
|
|
20461
20458
|
bottom: aa(b.bottom, s, o)
|
|
20462
20459
|
};
|
|
20463
20460
|
}, [a, o]), f = Math.max(0, yn(c) - h - p);
|
|
20464
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsxs(
|
|
20461
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsxs(Vt, { width: l, height: c, children: [
|
|
20465
20462
|
/* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
20466
20463
|
display: yu(a.stats.templates.top) ? "block" : "none"
|
|
20467
20464
|
}, children: Object.values(m.top).map((b) => b) }),
|
|
20468
|
-
/* @__PURE__ */ r.jsx(
|
|
20465
|
+
/* @__PURE__ */ r.jsx(VM, { variables: s, width: bn(l), height: f, data: o, conf: a, interactionManager: n }),
|
|
20469
20466
|
/* @__PURE__ */ r.jsx(w, { ref: u, align: "left", size: "xs", pl: "sm", sx: {
|
|
20470
20467
|
display: yu(a.stats.templates.bottom) ? "block" : "none"
|
|
20471
20468
|
}, children: Object.values(m.bottom).map((b) => b) })
|
|
@@ -21094,7 +21091,7 @@ function cE({
|
|
|
21094
21091
|
watch: d,
|
|
21095
21092
|
getValues: h,
|
|
21096
21093
|
reset: u
|
|
21097
|
-
} =
|
|
21094
|
+
} = Ve({
|
|
21098
21095
|
defaultValues: o
|
|
21099
21096
|
});
|
|
21100
21097
|
Q(() => {
|
|
@@ -21190,7 +21187,7 @@ function pE(e) {
|
|
|
21190
21187
|
function mE(e) {
|
|
21191
21188
|
const t = {
|
|
21192
21189
|
scatter: {
|
|
21193
|
-
label_overflow:
|
|
21190
|
+
label_overflow: Ff()
|
|
21194
21191
|
}
|
|
21195
21192
|
};
|
|
21196
21193
|
return k.defaultsDeep(t, e);
|
|
@@ -21525,7 +21522,7 @@ class zE extends Qe {
|
|
|
21525
21522
|
});
|
|
21526
21523
|
}
|
|
21527
21524
|
}
|
|
21528
|
-
const
|
|
21525
|
+
const Vf = {
|
|
21529
21526
|
id: "builtin:stats:click-stats",
|
|
21530
21527
|
displayName: "viz.stats.click_stats.trigger",
|
|
21531
21528
|
nameRender: ME,
|
|
@@ -21565,7 +21562,7 @@ const AE = D(({
|
|
|
21565
21562
|
const n = Ut({
|
|
21566
21563
|
vizManager: e.vizManager,
|
|
21567
21564
|
instance: t
|
|
21568
|
-
}), i = Qt(n.triggerManager,
|
|
21565
|
+
}), i = Qt(n.triggerManager, Vf.id), s = lt(), {
|
|
21569
21566
|
value: a = Yo
|
|
21570
21567
|
} = te(e.instanceData, "config"), {
|
|
21571
21568
|
panel: o
|
|
@@ -21578,7 +21575,7 @@ const AE = D(({
|
|
|
21578
21575
|
} = e.viewport, u = T(() => {
|
|
21579
21576
|
const m = Pe({}, a, Yo);
|
|
21580
21577
|
return m.content ? hf(m.content, c, s.payloadForViz, l) : "";
|
|
21581
|
-
}, [l, a, c, s.payloadForViz]), p =
|
|
21578
|
+
}, [l, a, c, s.payloadForViz]), p = Fe(() => {
|
|
21582
21579
|
i.forEach((m) => {
|
|
21583
21580
|
n.runInteraction(m.id, {
|
|
21584
21581
|
variables: o.variableValueMap
|
|
@@ -21616,7 +21613,7 @@ function RE({
|
|
|
21616
21613
|
watch: o,
|
|
21617
21614
|
getValues: l,
|
|
21618
21615
|
reset: c
|
|
21619
|
-
} =
|
|
21616
|
+
} = Ve({
|
|
21620
21617
|
defaultValues: i
|
|
21621
21618
|
});
|
|
21622
21619
|
$.useEffect(() => {
|
|
@@ -21659,13 +21656,13 @@ const PE = {
|
|
|
21659
21656
|
trigger: "点击文字"
|
|
21660
21657
|
}
|
|
21661
21658
|
}
|
|
21662
|
-
},
|
|
21659
|
+
}, FE = [{
|
|
21663
21660
|
lang: "en",
|
|
21664
21661
|
resources: PE
|
|
21665
21662
|
}, {
|
|
21666
21663
|
lang: "zh",
|
|
21667
21664
|
resources: OE
|
|
21668
|
-
}],
|
|
21665
|
+
}], VE = {
|
|
21669
21666
|
createConfig() {
|
|
21670
21667
|
return {
|
|
21671
21668
|
version: 5,
|
|
@@ -21678,8 +21675,8 @@ const PE = {
|
|
|
21678
21675
|
name: "stats",
|
|
21679
21676
|
viewRender: AE,
|
|
21680
21677
|
configRender: $E,
|
|
21681
|
-
triggers: [
|
|
21682
|
-
translation:
|
|
21678
|
+
triggers: [Vf],
|
|
21679
|
+
translation: FE
|
|
21683
21680
|
}, zc = {
|
|
21684
21681
|
label_key: "",
|
|
21685
21682
|
value_key: "",
|
|
@@ -21843,7 +21840,7 @@ function KE({
|
|
|
21843
21840
|
width: a,
|
|
21844
21841
|
height: o
|
|
21845
21842
|
} = e.viewport, l = T(() => YE(i, s, t), [i, s, t]);
|
|
21846
|
-
return !a || !o ? null : /* @__PURE__ */ r.jsx(
|
|
21843
|
+
return !a || !o ? null : /* @__PURE__ */ r.jsx(Vt, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: l, style: ms(a, o), notMerge: !0, theme: "merico-light" }) });
|
|
21847
21844
|
}
|
|
21848
21845
|
function XE({
|
|
21849
21846
|
control: e,
|
|
@@ -21973,7 +21970,7 @@ function eL({
|
|
|
21973
21970
|
watch: c,
|
|
21974
21971
|
getValues: d,
|
|
21975
21972
|
reset: h
|
|
21976
|
-
} =
|
|
21973
|
+
} = Ve({
|
|
21977
21974
|
defaultValues: a
|
|
21978
21975
|
});
|
|
21979
21976
|
Q(() => {
|
|
@@ -22386,7 +22383,7 @@ function jL({
|
|
|
22386
22383
|
const n = Qy({
|
|
22387
22384
|
parentRef: e,
|
|
22388
22385
|
size: t.length,
|
|
22389
|
-
estimateSize:
|
|
22386
|
+
estimateSize: Fe(() => 28, []),
|
|
22390
22387
|
overscan: 20
|
|
22391
22388
|
}), {
|
|
22392
22389
|
virtualItems: i,
|
|
@@ -22571,7 +22568,7 @@ const zL = (e) => {
|
|
|
22571
22568
|
const t = Ut(e), n = Qt(t.triggerManager, Dc.id), {
|
|
22572
22569
|
colorManager: i
|
|
22573
22570
|
} = Yn(Pn);
|
|
22574
|
-
return
|
|
22571
|
+
return Fe((s) => new TL(e.getColIndex, s, n, t, i), [n, t, e.getColIndex]);
|
|
22575
22572
|
};
|
|
22576
22573
|
function _u({
|
|
22577
22574
|
queryData: e,
|
|
@@ -22608,7 +22605,7 @@ function _u({
|
|
|
22608
22605
|
cellBackgroundColor: ""
|
|
22609
22606
|
}));
|
|
22610
22607
|
}, [l, c, d, e]), f = zL({
|
|
22611
|
-
getColIndex:
|
|
22608
|
+
getColIndex: Fe((Te) => m.indexOf(Te.column.columnDef.meta), [m]),
|
|
22612
22609
|
vizManager: s.vizManager,
|
|
22613
22610
|
instance: a
|
|
22614
22611
|
}), b = T(() => {
|
|
@@ -22817,7 +22814,7 @@ const $L = de((e, t) => {
|
|
|
22817
22814
|
] })
|
|
22818
22815
|
] }) })
|
|
22819
22816
|
] });
|
|
22820
|
-
}), xo = () => /* @__PURE__ */ r.jsx(w, { color: "dimmed", size: 12, children: "px" }),
|
|
22817
|
+
}), xo = () => /* @__PURE__ */ r.jsx(w, { color: "dimmed", size: 12, children: "px" }), FL = ({
|
|
22821
22818
|
control: e,
|
|
22822
22819
|
index: t,
|
|
22823
22820
|
watch: n
|
|
@@ -22863,7 +22860,7 @@ const $L = de((e, t) => {
|
|
|
22863
22860
|
field: o
|
|
22864
22861
|
}) => /* @__PURE__ */ r.jsx($L, { ...o }) })
|
|
22865
22862
|
] });
|
|
22866
|
-
},
|
|
22863
|
+
}, VL = ({
|
|
22867
22864
|
control: e,
|
|
22868
22865
|
watch: t
|
|
22869
22866
|
}) => {
|
|
@@ -22895,7 +22892,7 @@ const $L = de((e, t) => {
|
|
|
22895
22892
|
!a && /* @__PURE__ */ r.jsx(Be, { control: e, watch: t, name: "columns", getItem: i, addButtonText: n("viz.table.column.add"), deleteButtonText: n("viz.table.column.delete"), renderTabName: s, children: ({
|
|
22896
22893
|
field: o,
|
|
22897
22894
|
index: l
|
|
22898
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
22895
|
+
}) => /* @__PURE__ */ r.jsx(FL, { control: e, watch: t, index: l }) })
|
|
22899
22896
|
] });
|
|
22900
22897
|
};
|
|
22901
22898
|
function NL({
|
|
@@ -22974,7 +22971,7 @@ function BL({
|
|
|
22974
22971
|
watch: c,
|
|
22975
22972
|
getValues: d,
|
|
22976
22973
|
reset: h
|
|
22977
|
-
} =
|
|
22974
|
+
} = Ve({
|
|
22978
22975
|
defaultValues: a
|
|
22979
22976
|
});
|
|
22980
22977
|
Q(() => {
|
|
@@ -23002,7 +22999,7 @@ function BL({
|
|
|
23002
22999
|
field: m
|
|
23003
23000
|
}) => /* @__PURE__ */ r.jsx(EL, { label: t("viz.table.column.query_id"), description: t("viz.table.column.query_id_hint"), required: !0, ...m }) }),
|
|
23004
23001
|
/* @__PURE__ */ r.jsx(O, { mt: 20, mb: 10, variant: "dashed" }),
|
|
23005
|
-
/* @__PURE__ */ r.jsx(
|
|
23002
|
+
/* @__PURE__ */ r.jsx(VL, { control: o, watch: c })
|
|
23006
23003
|
] }),
|
|
23007
23004
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Style", children: /* @__PURE__ */ r.jsx(NL, { control: o, watch: c }) })
|
|
23008
23005
|
] })
|
|
@@ -23381,7 +23378,7 @@ function rA({
|
|
|
23381
23378
|
watch: c,
|
|
23382
23379
|
getValues: d,
|
|
23383
23380
|
reset: h
|
|
23384
|
-
} =
|
|
23381
|
+
} = Ve({
|
|
23385
23382
|
defaultValues: a
|
|
23386
23383
|
});
|
|
23387
23384
|
$.useEffect(() => {
|
|
@@ -23584,7 +23581,7 @@ function mA({
|
|
|
23584
23581
|
watch: o,
|
|
23585
23582
|
getValues: l,
|
|
23586
23583
|
reset: c
|
|
23587
|
-
} =
|
|
23584
|
+
} = Ve({
|
|
23588
23585
|
defaultValues: i
|
|
23589
23586
|
});
|
|
23590
23587
|
Q(() => {
|
|
@@ -23825,7 +23822,7 @@ function TA(e, t, n) {
|
|
|
23825
23822
|
if (!e)
|
|
23826
23823
|
return n[0];
|
|
23827
23824
|
try {
|
|
23828
|
-
return [t,
|
|
23825
|
+
return [t, V(t).add(1, "year").subtract(1, "day").valueOf()];
|
|
23829
23826
|
} catch (i) {
|
|
23830
23827
|
return console.error(i), n[0];
|
|
23831
23828
|
}
|
|
@@ -23969,13 +23966,13 @@ function RA(e, t, n) {
|
|
|
23969
23966
|
}
|
|
23970
23967
|
});
|
|
23971
23968
|
}
|
|
23972
|
-
const $A = (e) =>
|
|
23969
|
+
const $A = (e) => V(e).get("year");
|
|
23973
23970
|
function PA(e) {
|
|
23974
|
-
const t = k.groupBy(e, (o) => o.value[2]), n = Object.keys(t), i = e.map((o) =>
|
|
23971
|
+
const t = k.groupBy(e, (o) => o.value[2]), n = Object.keys(t), i = e.map((o) => V(o.value[0]).valueOf()), s = k.min(i), a = k.max(i);
|
|
23975
23972
|
return {
|
|
23976
23973
|
minDate: s ?? 0,
|
|
23977
23974
|
maxDate: a ?? 0,
|
|
23978
|
-
dateSpan:
|
|
23975
|
+
dateSpan: V(a).diff(s, "day"),
|
|
23979
23976
|
dataByYear: t,
|
|
23980
23977
|
years: n
|
|
23981
23978
|
};
|
|
@@ -24019,7 +24016,7 @@ function OA(e, t, n) {
|
|
|
24019
24016
|
}
|
|
24020
24017
|
};
|
|
24021
24018
|
}
|
|
24022
|
-
function
|
|
24019
|
+
function FA({
|
|
24023
24020
|
name: e
|
|
24024
24021
|
}, t) {
|
|
24025
24022
|
const n = t.getOption();
|
|
@@ -24027,7 +24024,7 @@ function VA({
|
|
|
24027
24024
|
i.range = e;
|
|
24028
24025
|
}), t.setOption(n);
|
|
24029
24026
|
}
|
|
24030
|
-
function
|
|
24027
|
+
function VA({
|
|
24031
24028
|
conf: e,
|
|
24032
24029
|
data: t,
|
|
24033
24030
|
width: n,
|
|
@@ -24035,7 +24032,7 @@ function FA({
|
|
|
24035
24032
|
interactionManager: s,
|
|
24036
24033
|
variables: a
|
|
24037
24034
|
}) {
|
|
24038
|
-
const o = Wr(t, e.calendar.data_key), l = Qt(s.triggerManager, Xf.id), c =
|
|
24035
|
+
const o = Wr(t, e.calendar.data_key), l = Qt(s.triggerManager, Xf.id), c = Fe((u) => {
|
|
24039
24036
|
const [p, m] = u.value, f = k.get(o, p, {
|
|
24040
24037
|
error: "rowData is not found"
|
|
24041
24038
|
});
|
|
@@ -24047,7 +24044,7 @@ function FA({
|
|
|
24047
24044
|
});
|
|
24048
24045
|
}, [o, l, s]), d = T(() => ({
|
|
24049
24046
|
click: c,
|
|
24050
|
-
legendselectchanged:
|
|
24047
|
+
legendselectchanged: FA
|
|
24051
24048
|
}), [c]), h = $.useMemo(() => OA(e, t, a), [e, t]);
|
|
24052
24049
|
return /* @__PURE__ */ r.jsx(Ct, { echarts: xt, option: h, style: {
|
|
24053
24050
|
width: n,
|
|
@@ -24071,7 +24068,7 @@ function NA({
|
|
|
24071
24068
|
width: l,
|
|
24072
24069
|
height: c
|
|
24073
24070
|
} = e.viewport;
|
|
24074
|
-
return !a.calendar.data_key || !a.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ r.jsx(
|
|
24071
|
+
return !a.calendar.data_key || !a.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ r.jsx(Vt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(VA, { variables: s, width: bn(l), height: yn(c), data: o, conf: a, interactionManager: n }) });
|
|
24075
24072
|
}
|
|
24076
24073
|
const qA = [{
|
|
24077
24074
|
label: "中文",
|
|
@@ -24195,7 +24192,7 @@ function UA({
|
|
|
24195
24192
|
Q(() => {
|
|
24196
24193
|
!Le(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
|
|
24197
24194
|
}, [s, a]);
|
|
24198
|
-
const o =
|
|
24195
|
+
const o = Ve({
|
|
24199
24196
|
defaultValues: a
|
|
24200
24197
|
}), {
|
|
24201
24198
|
control: l,
|
|
@@ -24412,12 +24409,12 @@ function rR(e, t, n, i) {
|
|
|
24412
24409
|
};
|
|
24413
24410
|
});
|
|
24414
24411
|
}
|
|
24415
|
-
function
|
|
24412
|
+
function Va(e, t, n) {
|
|
24416
24413
|
const i = fn(e, t), s = fn(e, n);
|
|
24417
24414
|
return k.zip(s, i);
|
|
24418
24415
|
}
|
|
24419
24416
|
function iR(e, t, n, i) {
|
|
24420
|
-
const s =
|
|
24417
|
+
const s = Va(t, n, i);
|
|
24421
24418
|
return k.unionBy(s, e, 0);
|
|
24422
24419
|
}
|
|
24423
24420
|
function sR({
|
|
@@ -24427,7 +24424,7 @@ function sR({
|
|
|
24427
24424
|
value_data_key: i,
|
|
24428
24425
|
valueTypedXAxis: s
|
|
24429
24426
|
}) {
|
|
24430
|
-
return s ? iR(e, t, n, i) :
|
|
24427
|
+
return s ? iR(e, t, n, i) : Va(t, n, i);
|
|
24431
24428
|
}
|
|
24432
24429
|
function aR({
|
|
24433
24430
|
dataTemplate: e,
|
|
@@ -24445,7 +24442,7 @@ function aR({
|
|
|
24445
24442
|
value_data_key: s,
|
|
24446
24443
|
valueTypedXAxis: a
|
|
24447
24444
|
});
|
|
24448
|
-
const o =
|
|
24445
|
+
const o = Va(t, i, s), l = k.groupBy(o, "0");
|
|
24449
24446
|
return e.map(([d]) => {
|
|
24450
24447
|
const u = l[d].map((m) => m[1]), p = ul(u, n);
|
|
24451
24448
|
return [d, p];
|
|
@@ -24462,7 +24459,7 @@ function oR({
|
|
|
24462
24459
|
columnKey: a
|
|
24463
24460
|
} = W(e), o = k.groupBy(t[s], a);
|
|
24464
24461
|
return Object.entries(o).forEach(([l, c]) => {
|
|
24465
|
-
o[l] =
|
|
24462
|
+
o[l] = Va({
|
|
24466
24463
|
[s]: c
|
|
24467
24464
|
}, i, n);
|
|
24468
24465
|
}), o;
|
|
@@ -24676,7 +24673,7 @@ function gR({
|
|
|
24676
24673
|
interactionManager: s,
|
|
24677
24674
|
variables: a
|
|
24678
24675
|
}) {
|
|
24679
|
-
const o = Wr(t, e.y_axis.data_key), l = Qt(s.triggerManager, fc.id), c =
|
|
24676
|
+
const o = Wr(t, e.y_axis.data_key), l = Qt(s.triggerManager, fc.id), c = Fe((u) => {
|
|
24680
24677
|
const p = k.get(o, u.name, {
|
|
24681
24678
|
error: "rowData is not found"
|
|
24682
24679
|
});
|
|
@@ -24709,7 +24706,7 @@ function bR({
|
|
|
24709
24706
|
width: l,
|
|
24710
24707
|
height: c
|
|
24711
24708
|
} = e.viewport;
|
|
24712
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(
|
|
24709
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(Vt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(gR, { variables: s, width: bn(l), height: yn(c), data: o, conf: a, interactionManager: n }) });
|
|
24713
24710
|
}
|
|
24714
24711
|
function yR({
|
|
24715
24712
|
control: e,
|
|
@@ -25071,7 +25068,7 @@ function TR({
|
|
|
25071
25068
|
watch: c,
|
|
25072
25069
|
getValues: d,
|
|
25073
25070
|
reset: h
|
|
25074
|
-
} =
|
|
25071
|
+
} = Ve({
|
|
25075
25072
|
defaultValues: a
|
|
25076
25073
|
});
|
|
25077
25074
|
Q(() => {
|
|
@@ -25341,7 +25338,7 @@ function OR(e, t, n, i) {
|
|
|
25341
25338
|
const s = t.map((h) => {
|
|
25342
25339
|
const u = n[h], p = k.sumBy(u, (m) => m.level.diff);
|
|
25343
25340
|
return [h, p / u.length];
|
|
25344
|
-
}), a = Number(((c = k.maxBy(s, (h) => h[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = k.minBy(s, (h) => h[1])) == null ? void 0 : d[1]) ?? 0), l =
|
|
25341
|
+
}), a = Number(((c = k.maxBy(s, (h) => h[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = k.minBy(s, (h) => h[1])) == null ? void 0 : d[1]) ?? 0), l = Fr([a, 0, o], ["#D15A40", "#FFF", "#418AAF"]);
|
|
25345
25342
|
return {
|
|
25346
25343
|
type: "bar",
|
|
25347
25344
|
name: "平均偏差",
|
|
@@ -25416,7 +25413,7 @@ function OR(e, t, n, i) {
|
|
|
25416
25413
|
show_in_legend: !1
|
|
25417
25414
|
};
|
|
25418
25415
|
}
|
|
25419
|
-
function
|
|
25416
|
+
function FR([e, t, n, i]) {
|
|
25420
25417
|
const s = {
|
|
25421
25418
|
x: e,
|
|
25422
25419
|
percentage: `${t}`,
|
|
@@ -25434,7 +25431,7 @@ function VR([e, t, n, i]) {
|
|
|
25434
25431
|
}
|
|
25435
25432
|
return s;
|
|
25436
25433
|
}
|
|
25437
|
-
function
|
|
25434
|
+
function VR(e, t, n, i) {
|
|
25438
25435
|
const s = {};
|
|
25439
25436
|
t.forEach((h) => {
|
|
25440
25437
|
const u = k.countBy(n[h], (m) => m.level.diff), p = k.sum(Object.values(u));
|
|
@@ -25444,7 +25441,7 @@ function FR(e, t, n, i) {
|
|
|
25444
25441
|
s[m].push([h, b, f, p]);
|
|
25445
25442
|
});
|
|
25446
25443
|
});
|
|
25447
|
-
const a = Object.entries(s).map(([h]) => Number(h)).sort((h, u) => h - u), o = Math.max(...a), l = Math.min(...a), c =
|
|
25444
|
+
const a = Object.entries(s).map(([h]) => Number(h)).sort((h, u) => h - u), o = Math.max(...a), l = Math.min(...a), c = Fr([o, 0, l], ["#D15A40", "#FFF", "#418AAF"]);
|
|
25448
25445
|
return a.map((h) => ({
|
|
25449
25446
|
type: "bar",
|
|
25450
25447
|
name: h,
|
|
@@ -25465,7 +25462,7 @@ function FR(e, t, n, i) {
|
|
|
25465
25462
|
percentage: f,
|
|
25466
25463
|
count: b,
|
|
25467
25464
|
sum: I
|
|
25468
|
-
} =
|
|
25465
|
+
} = FR(p);
|
|
25469
25466
|
return `
|
|
25470
25467
|
<table style="width: auto">
|
|
25471
25468
|
<thead>
|
|
@@ -25527,7 +25524,7 @@ function qR(e, t, n, i) {
|
|
|
25527
25524
|
barMinWidth: 5,
|
|
25528
25525
|
barMaxWidth: 20
|
|
25529
25526
|
};
|
|
25530
|
-
return [$R(e, n, i), OR(e, n, i, o), ...
|
|
25527
|
+
return [$R(e, n, i), OR(e, n, i, o), ...VR(e, n, i, o), NR(e, t, n, i)];
|
|
25531
25528
|
}
|
|
25532
25529
|
function BR(e, t) {
|
|
25533
25530
|
const {
|
|
@@ -25815,7 +25812,7 @@ const JR = {
|
|
|
25815
25812
|
cursor: "default",
|
|
25816
25813
|
userSelect: "none"
|
|
25817
25814
|
}, children: "基线指标" }),
|
|
25818
|
-
/* @__PURE__ */ r.jsx(
|
|
25815
|
+
/* @__PURE__ */ r.jsx(Vu, { size: "xs", data: a, value: t, onChange: (o) => n(o.currentTarget.value), styles: JR })
|
|
25819
25816
|
] });
|
|
25820
25817
|
}, e$ = {
|
|
25821
25818
|
"tbody th, tbody td": {
|
|
@@ -25827,7 +25824,7 @@ const JR = {
|
|
|
25827
25824
|
};
|
|
25828
25825
|
function t$() {
|
|
25829
25826
|
return /* @__PURE__ */ r.jsxs(Ke, { width: 400, shadow: "md", children: [
|
|
25830
|
-
/* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(
|
|
25827
|
+
/* @__PURE__ */ r.jsx(Ke.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Vr, { size: 14 }), children: "指标说明" }) }),
|
|
25831
25828
|
/* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(at, { fontSize: 14, sx: e$, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
25832
25829
|
/* @__PURE__ */ r.jsxs("tr", { children: [
|
|
25833
25830
|
/* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
|
|
@@ -26002,7 +25999,7 @@ function c$({
|
|
|
26002
25999
|
watch: o,
|
|
26003
26000
|
getValues: l,
|
|
26004
26001
|
reset: c
|
|
26005
|
-
} =
|
|
26002
|
+
} = Ve({
|
|
26006
26003
|
defaultValues: i
|
|
26007
26004
|
});
|
|
26008
26005
|
Q(() => {
|
|
@@ -26350,7 +26347,7 @@ function w$({
|
|
|
26350
26347
|
watch: l,
|
|
26351
26348
|
getValues: c,
|
|
26352
26349
|
reset: d
|
|
26353
|
-
} =
|
|
26350
|
+
} = Ve({
|
|
26354
26351
|
defaultValues: s
|
|
26355
26352
|
});
|
|
26356
26353
|
Q(() => {
|
|
@@ -26680,7 +26677,7 @@ function $$({
|
|
|
26680
26677
|
Q(() => {
|
|
26681
26678
|
!Le(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
|
|
26682
26679
|
}, [s, a]);
|
|
26683
|
-
const o =
|
|
26680
|
+
const o = Ve({
|
|
26684
26681
|
defaultValues: a
|
|
26685
26682
|
}), {
|
|
26686
26683
|
control: l,
|
|
@@ -26768,14 +26765,14 @@ const Zf = {
|
|
|
26768
26765
|
valueType: "object"
|
|
26769
26766
|
}]
|
|
26770
26767
|
};
|
|
26771
|
-
function
|
|
26768
|
+
function F$(e) {
|
|
26772
26769
|
const t = $t(e.x_axis.axisLabel.formatter), n = $t(e.y_axis.axisLabel.formatter);
|
|
26773
26770
|
return {
|
|
26774
26771
|
x_axis: t,
|
|
26775
26772
|
y_axis: n
|
|
26776
26773
|
};
|
|
26777
26774
|
}
|
|
26778
|
-
function
|
|
26775
|
+
function V$(e) {
|
|
26779
26776
|
return {
|
|
26780
26777
|
heat_block: function(i) {
|
|
26781
26778
|
if (!e.heat_block.value_formatter)
|
|
@@ -27003,7 +27000,7 @@ function U$(e, t, n) {
|
|
|
27003
27000
|
const i = n.reduce((b, I) => {
|
|
27004
27001
|
const S = $n(I, t);
|
|
27005
27002
|
return b[I.name] = Ht(I, S), b;
|
|
27006
|
-
}, {}), s =
|
|
27003
|
+
}, {}), s = F$(e), a = V$(e), o = Da(e.visualMap, i), {
|
|
27007
27004
|
min: l,
|
|
27008
27005
|
max: c
|
|
27009
27006
|
} = o, d = W(e.x_axis.data_key), h = W(e.y_axis.data_key), u = W(e.heat_block.data_key), p = k.uniq(t[d.queryID].map((b) => b[d.columnKey])), m = t[d.queryID].map((b) => {
|
|
@@ -27037,7 +27034,7 @@ function Y$({
|
|
|
27037
27034
|
const o = T(() => {
|
|
27038
27035
|
const u = W(e.x_axis.data_key), p = W(e.y_axis.data_key);
|
|
27039
27036
|
return k.keyBy(t[u.queryID], (m) => `${m[u.columnKey]}---${m[p.columnKey]}`);
|
|
27040
|
-
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = Qt(s.triggerManager, Zf.id), c =
|
|
27037
|
+
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = Qt(s.triggerManager, Zf.id), c = Fe((u) => {
|
|
27041
27038
|
const [p, m] = u.value, f = k.get(o, `${p}---${m}`, {
|
|
27042
27039
|
error: "rowData is not found"
|
|
27043
27040
|
});
|
|
@@ -27070,7 +27067,7 @@ function K$({
|
|
|
27070
27067
|
width: l,
|
|
27071
27068
|
height: c
|
|
27072
27069
|
} = e.viewport;
|
|
27073
|
-
return !l || !c ? null : /* @__PURE__ */ r.jsx(
|
|
27070
|
+
return !l || !c ? null : /* @__PURE__ */ r.jsx(Vt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(Y$, { variables: s, width: bn(l), height: yn(c), data: o, conf: a, interactionManager: n }) });
|
|
27074
27071
|
}
|
|
27075
27072
|
const X$ = {
|
|
27076
27073
|
merico_heatmap: {
|
|
@@ -27193,7 +27190,7 @@ const nP = {
|
|
|
27193
27190
|
value: e.value,
|
|
27194
27191
|
type: "single",
|
|
27195
27192
|
category: "basic"
|
|
27196
|
-
})), iP = [t1, n1, s1, i1, r1, a1], ex = [Ko,
|
|
27193
|
+
})), iP = [t1, n1, s1, i1, r1, a1], ex = [Ko, VE, lA, _M, cL, dD, AR, y1, SC, TT, hz, KA, Kz, oT, _E, OD, mM, yA, f$, nP, z$, PC], tx = () => ({
|
|
27197
27194
|
id: "dashboard",
|
|
27198
27195
|
version: gf,
|
|
27199
27196
|
manifest: {
|
|
@@ -27201,16 +27198,16 @@ const nP = {
|
|
|
27201
27198
|
color: [...rP, ...iP]
|
|
27202
27199
|
}
|
|
27203
27200
|
}), Li = new d1(), Je = {
|
|
27204
|
-
pluginManager:
|
|
27205
|
-
vizManager:
|
|
27206
|
-
colorManager:
|
|
27201
|
+
pluginManager: Fn("pluginManager"),
|
|
27202
|
+
vizManager: Fn("vizManager"),
|
|
27203
|
+
colorManager: Fn("colorManager"),
|
|
27207
27204
|
instanceScope: {
|
|
27208
|
-
panelModel:
|
|
27209
|
-
vizInstance:
|
|
27210
|
-
interactionManager:
|
|
27211
|
-
migrator:
|
|
27212
|
-
operationManager:
|
|
27213
|
-
triggerManager:
|
|
27205
|
+
panelModel: Fn("panelModel"),
|
|
27206
|
+
vizInstance: Fn("vizInstance"),
|
|
27207
|
+
interactionManager: Fn("interactionManager"),
|
|
27208
|
+
migrator: Fn("migrator"),
|
|
27209
|
+
operationManager: Fn("operationManager"),
|
|
27210
|
+
triggerManager: Fn("triggerManager")
|
|
27214
27211
|
}
|
|
27215
27212
|
}, Oc = () => {
|
|
27216
27213
|
try {
|
|
@@ -27223,12 +27220,12 @@ const nP = {
|
|
|
27223
27220
|
vizManager: e,
|
|
27224
27221
|
colorManager: t
|
|
27225
27222
|
};
|
|
27226
|
-
}, Pn =
|
|
27223
|
+
}, Pn = Fu(Oc());
|
|
27227
27224
|
try {
|
|
27228
27225
|
Li.install(tx());
|
|
27229
27226
|
} catch {
|
|
27230
27227
|
}
|
|
27231
|
-
const Zo =
|
|
27228
|
+
const Zo = Fu(null);
|
|
27232
27229
|
function Na(e) {
|
|
27233
27230
|
const t = $.useContext(Zo), n = pn(() => e.configure(t || new oc()), [e.configure]), i = Ng(n);
|
|
27234
27231
|
return i && i !== n && i.dispose(), /* @__PURE__ */ r.jsx(Zo.Provider, { value: n, children: e.children });
|
|
@@ -27254,7 +27251,7 @@ const sP = ({
|
|
|
27254
27251
|
}, withArrow: !0, children: /* @__PURE__ */ r.jsx(R, { sx: {
|
|
27255
27252
|
height: "16px",
|
|
27256
27253
|
alignSelf: "center"
|
|
27257
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
27254
|
+
}, children: /* @__PURE__ */ r.jsx(Vr, { size: 16, color: "gray" }) }) }), aP = D(({
|
|
27258
27255
|
label: e,
|
|
27259
27256
|
config: {
|
|
27260
27257
|
default_value: t,
|
|
@@ -27290,7 +27287,7 @@ const sP = ({
|
|
|
27290
27287
|
return o;
|
|
27291
27288
|
}, [o, l]), h = T(() => {
|
|
27292
27289
|
if (o && !l && i > 0)
|
|
27293
|
-
return
|
|
27290
|
+
return V(o).add(i - 1, "days").toDate();
|
|
27294
27291
|
}, [o, l, i]), u = (p) => {
|
|
27295
27292
|
const [m, f] = p;
|
|
27296
27293
|
t(p), m && f && n();
|
|
@@ -27302,7 +27299,7 @@ const sP = ({
|
|
|
27302
27299
|
}) => {
|
|
27303
27300
|
const {
|
|
27304
27301
|
t: n
|
|
27305
|
-
} = v(), i = T(() =>
|
|
27302
|
+
} = v(), i = T(() => V(t).diff(V(e), "days") + 1, [e, t]);
|
|
27306
27303
|
if (Number.isNaN(i))
|
|
27307
27304
|
return /* @__PURE__ */ r.jsx("span", { style: {
|
|
27308
27305
|
userSelect: "none",
|
|
@@ -27325,13 +27322,13 @@ const sP = ({
|
|
|
27325
27322
|
}) }) }),
|
|
27326
27323
|
/* @__PURE__ */ r.jsx(O, { variant: "dashed", my: 10 })
|
|
27327
27324
|
] }) : null;
|
|
27328
|
-
},
|
|
27325
|
+
}, Fc = () => [{
|
|
27329
27326
|
key: "d",
|
|
27330
27327
|
value: "yesterday",
|
|
27331
27328
|
group: "last",
|
|
27332
27329
|
getRange: () => {
|
|
27333
27330
|
const e = Date.now();
|
|
27334
|
-
return [
|
|
27331
|
+
return [V(e).subtract(1, "day").startOf("day").toDate(), V(e).subtract(1, "day").endOf("day").toDate()];
|
|
27335
27332
|
}
|
|
27336
27333
|
}, {
|
|
27337
27334
|
key: "w",
|
|
@@ -27339,7 +27336,7 @@ const sP = ({
|
|
|
27339
27336
|
group: "last",
|
|
27340
27337
|
getRange: () => {
|
|
27341
27338
|
const e = Date.now();
|
|
27342
|
-
return [
|
|
27339
|
+
return [V(e).subtract(1, "week").startOf("week").toDate(), V(e).subtract(1, "week").endOf("week").toDate()];
|
|
27343
27340
|
}
|
|
27344
27341
|
}, {
|
|
27345
27342
|
key: "m",
|
|
@@ -27347,7 +27344,7 @@ const sP = ({
|
|
|
27347
27344
|
group: "last",
|
|
27348
27345
|
getRange: () => {
|
|
27349
27346
|
const e = Date.now();
|
|
27350
|
-
return [
|
|
27347
|
+
return [V(e).subtract(1, "month").startOf("month").toDate(), V(e).subtract(1, "month").endOf("month").toDate()];
|
|
27351
27348
|
}
|
|
27352
27349
|
}, {
|
|
27353
27350
|
key: "m2",
|
|
@@ -27355,7 +27352,7 @@ const sP = ({
|
|
|
27355
27352
|
group: "last",
|
|
27356
27353
|
getRange: () => {
|
|
27357
27354
|
const e = Date.now();
|
|
27358
|
-
return [
|
|
27355
|
+
return [V(e).subtract(2, "month").startOf("month").toDate(), V(e).subtract(1, "month").endOf("month").toDate()];
|
|
27359
27356
|
}
|
|
27360
27357
|
}, {
|
|
27361
27358
|
key: "m3",
|
|
@@ -27363,7 +27360,7 @@ const sP = ({
|
|
|
27363
27360
|
group: "last",
|
|
27364
27361
|
getRange: () => {
|
|
27365
27362
|
const e = Date.now();
|
|
27366
|
-
return [
|
|
27363
|
+
return [V(e).subtract(3, "month").startOf("month").toDate(), V(e).subtract(1, "month").endOf("month").toDate()];
|
|
27367
27364
|
}
|
|
27368
27365
|
}, {
|
|
27369
27366
|
key: "y",
|
|
@@ -27371,7 +27368,7 @@ const sP = ({
|
|
|
27371
27368
|
group: "last",
|
|
27372
27369
|
getRange: () => {
|
|
27373
27370
|
const e = Date.now();
|
|
27374
|
-
return [
|
|
27371
|
+
return [V(e).subtract(1, "year").startOf("year").toDate(), V(e).subtract(1, "year").endOf("year").toDate()];
|
|
27375
27372
|
}
|
|
27376
27373
|
}, {
|
|
27377
27374
|
key: "d7",
|
|
@@ -27379,7 +27376,7 @@ const sP = ({
|
|
|
27379
27376
|
group: "recent",
|
|
27380
27377
|
getRange: () => {
|
|
27381
27378
|
const e = Date.now();
|
|
27382
|
-
return [
|
|
27379
|
+
return [V(e).subtract(7, "day").startOf("day").toDate(), V(e).subtract(1, "day").endOf("day").toDate()];
|
|
27383
27380
|
}
|
|
27384
27381
|
}, {
|
|
27385
27382
|
key: "d30",
|
|
@@ -27387,7 +27384,7 @@ const sP = ({
|
|
|
27387
27384
|
group: "recent",
|
|
27388
27385
|
getRange: () => {
|
|
27389
27386
|
const e = Date.now();
|
|
27390
|
-
return [
|
|
27387
|
+
return [V(e).subtract(30, "day").startOf("day").toDate(), V(e).subtract(1, "day").endOf("day").toDate()];
|
|
27391
27388
|
}
|
|
27392
27389
|
}, {
|
|
27393
27390
|
key: "d60",
|
|
@@ -27395,7 +27392,7 @@ const sP = ({
|
|
|
27395
27392
|
group: "recent",
|
|
27396
27393
|
getRange: () => {
|
|
27397
27394
|
const e = Date.now();
|
|
27398
|
-
return [
|
|
27395
|
+
return [V(e).subtract(60, "day").startOf("day").toDate(), V(e).subtract(1, "day").endOf("day").toDate()];
|
|
27399
27396
|
}
|
|
27400
27397
|
}, {
|
|
27401
27398
|
key: "d90",
|
|
@@ -27403,7 +27400,7 @@ const sP = ({
|
|
|
27403
27400
|
group: "recent",
|
|
27404
27401
|
getRange: () => {
|
|
27405
27402
|
const e = Date.now();
|
|
27406
|
-
return [
|
|
27403
|
+
return [V(e).subtract(90, "day").startOf("day").toDate(), V(e).subtract(1, "day").endOf("day").toDate()];
|
|
27407
27404
|
}
|
|
27408
27405
|
}, {
|
|
27409
27406
|
key: "d180",
|
|
@@ -27411,7 +27408,7 @@ const sP = ({
|
|
|
27411
27408
|
group: "recent",
|
|
27412
27409
|
getRange: () => {
|
|
27413
27410
|
const e = Date.now();
|
|
27414
|
-
return [
|
|
27411
|
+
return [V(e).subtract(180, "day").startOf("day").toDate(), V(e).subtract(1, "day").endOf("day").toDate()];
|
|
27415
27412
|
}
|
|
27416
27413
|
}, {
|
|
27417
27414
|
key: "d365",
|
|
@@ -27419,7 +27416,7 @@ const sP = ({
|
|
|
27419
27416
|
group: "recent",
|
|
27420
27417
|
getRange: () => {
|
|
27421
27418
|
const e = Date.now();
|
|
27422
|
-
return [
|
|
27419
|
+
return [V(e).subtract(365, "day").startOf("day").toDate(), V(e).subtract(1, "day").endOf("day").toDate()];
|
|
27423
27420
|
}
|
|
27424
27421
|
}, {
|
|
27425
27422
|
key: "d",
|
|
@@ -27427,7 +27424,7 @@ const sP = ({
|
|
|
27427
27424
|
group: "this",
|
|
27428
27425
|
getRange: () => {
|
|
27429
27426
|
const e = Date.now();
|
|
27430
|
-
return [
|
|
27427
|
+
return [V(e).startOf("day").toDate(), V(e).endOf("day").toDate()];
|
|
27431
27428
|
}
|
|
27432
27429
|
}, {
|
|
27433
27430
|
key: "w",
|
|
@@ -27435,7 +27432,7 @@ const sP = ({
|
|
|
27435
27432
|
group: "this",
|
|
27436
27433
|
getRange: () => {
|
|
27437
27434
|
const e = Date.now();
|
|
27438
|
-
return [
|
|
27435
|
+
return [V(e).startOf("week").toDate(), V(e).endOf("week").toDate()];
|
|
27439
27436
|
}
|
|
27440
27437
|
}, {
|
|
27441
27438
|
key: "m",
|
|
@@ -27443,7 +27440,7 @@ const sP = ({
|
|
|
27443
27440
|
group: "this",
|
|
27444
27441
|
getRange: () => {
|
|
27445
27442
|
const e = Date.now();
|
|
27446
|
-
return [
|
|
27443
|
+
return [V(e).startOf("month").toDate(), V(e).endOf("month").toDate()];
|
|
27447
27444
|
}
|
|
27448
27445
|
}, {
|
|
27449
27446
|
key: "y",
|
|
@@ -27451,7 +27448,7 @@ const sP = ({
|
|
|
27451
27448
|
group: "this",
|
|
27452
27449
|
getRange: () => {
|
|
27453
27450
|
const e = Date.now();
|
|
27454
|
-
return [
|
|
27451
|
+
return [V(e).startOf("year").toDate(), V(e).endOf("year").toDate()];
|
|
27455
27452
|
}
|
|
27456
27453
|
}, {
|
|
27457
27454
|
key: "w",
|
|
@@ -27459,7 +27456,7 @@ const sP = ({
|
|
|
27459
27456
|
group: "this_so_far",
|
|
27460
27457
|
getRange: () => {
|
|
27461
27458
|
const e = Date.now();
|
|
27462
|
-
return [
|
|
27459
|
+
return [V(e).startOf("week").toDate(), V(e).toDate()];
|
|
27463
27460
|
}
|
|
27464
27461
|
}, {
|
|
27465
27462
|
key: "m",
|
|
@@ -27467,7 +27464,7 @@ const sP = ({
|
|
|
27467
27464
|
group: "this_so_far",
|
|
27468
27465
|
getRange: () => {
|
|
27469
27466
|
const e = Date.now();
|
|
27470
|
-
return [
|
|
27467
|
+
return [V(e).startOf("month").toDate(), V(e).toDate()];
|
|
27471
27468
|
}
|
|
27472
27469
|
}, {
|
|
27473
27470
|
key: "y",
|
|
@@ -27475,11 +27472,11 @@ const sP = ({
|
|
|
27475
27472
|
group: "this_so_far",
|
|
27476
27473
|
getRange: () => {
|
|
27477
27474
|
const e = Date.now();
|
|
27478
|
-
return [
|
|
27475
|
+
return [V(e).startOf("year").toDate(), V(e).toDate()];
|
|
27479
27476
|
}
|
|
27480
27477
|
}];
|
|
27481
27478
|
function rx(e) {
|
|
27482
|
-
const n =
|
|
27479
|
+
const n = Fc().find((i) => i.value === e);
|
|
27483
27480
|
return n ? n.getRange() : null;
|
|
27484
27481
|
}
|
|
27485
27482
|
const dP = ({
|
|
@@ -27491,7 +27488,7 @@ const dP = ({
|
|
|
27491
27488
|
} = v(), i = (o) => () => {
|
|
27492
27489
|
const l = o();
|
|
27493
27490
|
e(l);
|
|
27494
|
-
}, s = T(() => k.groupBy(
|
|
27491
|
+
}, s = T(() => k.groupBy(Fc(), "group"), []), a = n.language === "zh";
|
|
27495
27492
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
27496
27493
|
/* @__PURE__ */ r.jsx(O, { variant: "dashed", my: 10 }),
|
|
27497
27494
|
/* @__PURE__ */ r.jsx(at, { withBorder: !1, sx: {
|
|
@@ -27537,7 +27534,7 @@ const dP = ({
|
|
|
27537
27534
|
} = v(), [c, {
|
|
27538
27535
|
open: d,
|
|
27539
27536
|
close: h
|
|
27540
|
-
}] = pr(!1), [u, p] = n, m = u ?
|
|
27537
|
+
}] = pr(!1), [u, p] = n, m = u ? V(u).format(o) : "", f = p ? V(p).format(o) : "";
|
|
27541
27538
|
return /* @__PURE__ */ r.jsxs(Jt, { opened: c, onClose: h, position: "bottom-start", shadow: "md", children: [
|
|
27542
27539
|
/* @__PURE__ */ r.jsxs(y, { position: "left", grow: !0, noWrap: !0, spacing: 0, w: "288px", sx: {
|
|
27543
27540
|
marginTop: "3px"
|
|
@@ -27595,8 +27592,8 @@ const dP = ({
|
|
|
27595
27592
|
required: a,
|
|
27596
27593
|
max_days: o,
|
|
27597
27594
|
allowSingleDateInRange: l
|
|
27598
|
-
} = t, c = Array.isArray(n) ? n.map((h) => h ?
|
|
27599
|
-
i(h.map((u) => u &&
|
|
27595
|
+
} = t, c = Array.isArray(n) ? n.map((h) => h ? V(h).toDate() : null) : [null, null], d = (h) => {
|
|
27596
|
+
i(h.map((u) => u && V(u).format(s)));
|
|
27600
27597
|
};
|
|
27601
27598
|
return /* @__PURE__ */ r.jsx(uP, { label: e, value: c, onChange: d, inputFormat: s, allowSingleDateInRange: l, max_days: o, required: a });
|
|
27602
27599
|
}), hP = Ui((e, {
|
|
@@ -27775,7 +27772,7 @@ const dP = ({
|
|
|
27775
27772
|
alignItems: "flex-start"
|
|
27776
27773
|
}
|
|
27777
27774
|
}
|
|
27778
|
-
})),
|
|
27775
|
+
})), Vc = ({
|
|
27779
27776
|
errorMessage: e
|
|
27780
27777
|
}) => {
|
|
27781
27778
|
const {
|
|
@@ -27831,7 +27828,7 @@ const dP = ({
|
|
|
27831
27828
|
count: l.length
|
|
27832
27829
|
}), children: /* @__PURE__ */ r.jsx(cr, { children: l.length }) })
|
|
27833
27830
|
] }),
|
|
27834
|
-
/* @__PURE__ */ r.jsx(Uy, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: S, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Mr, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(
|
|
27831
|
+
/* @__PURE__ */ r.jsx(Uy, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: S, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Mr, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Vc, { errorMessage: h }), maxTagTextLength: 10, maxTagPlaceholder: (J) => p("filter.widget.common.x_selected", {
|
|
27835
27832
|
count: J.length
|
|
27836
27833
|
}), searchValue: L, onSearch: A, filterOption: !1, children: P.map((J) => /* @__PURE__ */ r.jsxs(Yy, { title: J.label, children: [
|
|
27837
27834
|
/* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: J.label }),
|
|
@@ -27900,7 +27897,7 @@ const dP = ({
|
|
|
27900
27897
|
},
|
|
27901
27898
|
itemComponent: fP,
|
|
27902
27899
|
searchable: !l,
|
|
27903
|
-
nothingFound: /* @__PURE__ */ r.jsx(
|
|
27900
|
+
nothingFound: /* @__PURE__ */ r.jsx(Vc, { errorMessage: l }),
|
|
27904
27901
|
clearable: t.clearable
|
|
27905
27902
|
}
|
|
27906
27903
|
);
|
|
@@ -28246,7 +28243,7 @@ const bP = ({
|
|
|
28246
28243
|
maxTagTextLength: 10,
|
|
28247
28244
|
value: l,
|
|
28248
28245
|
treeData: d,
|
|
28249
|
-
notFoundContent: /* @__PURE__ */ r.jsx(
|
|
28246
|
+
notFoundContent: /* @__PURE__ */ r.jsx(Vc, { errorMessage: h }),
|
|
28250
28247
|
treeNodeFilterProp: "filterBasis",
|
|
28251
28248
|
treeCheckable: !0,
|
|
28252
28249
|
showCheckedStrategy: Xy,
|
|
@@ -28343,7 +28340,7 @@ const zP = ({
|
|
|
28343
28340
|
control: a,
|
|
28344
28341
|
handleSubmit: o,
|
|
28345
28342
|
reset: l
|
|
28346
|
-
} =
|
|
28343
|
+
} = Ve({
|
|
28347
28344
|
defaultValues: s.filters.values,
|
|
28348
28345
|
// make sure the preview value is updated when filters are changed
|
|
28349
28346
|
reValidateMode: "onBlur"
|
|
@@ -28746,7 +28743,7 @@ const PP = x.model("QueryMeta", {
|
|
|
28746
28743
|
setHeight(t) {
|
|
28747
28744
|
e.h = t;
|
|
28748
28745
|
}
|
|
28749
|
-
})),
|
|
28746
|
+
})), FP = x.model("LayoutSetMeta", {
|
|
28750
28747
|
id: x.identifier,
|
|
28751
28748
|
name: x.string,
|
|
28752
28749
|
breakpoint: x.number,
|
|
@@ -28855,7 +28852,7 @@ const PP = x.model("QueryMeta", {
|
|
|
28855
28852
|
delay: 0
|
|
28856
28853
|
}));
|
|
28857
28854
|
}
|
|
28858
|
-
})),
|
|
28855
|
+
})), VP = x.model("SQLSnippetMeta", {
|
|
28859
28856
|
key: x.string,
|
|
28860
28857
|
value: x.string
|
|
28861
28858
|
}).views((e) => ({
|
|
@@ -28916,7 +28913,7 @@ const lx = x.model("FilterCheckboxConfigMeta", {
|
|
|
28916
28913
|
function cx(e, t) {
|
|
28917
28914
|
return e.map((n) => {
|
|
28918
28915
|
try {
|
|
28919
|
-
return n ?
|
|
28916
|
+
return n ? V.tz(n, "UTC").format(t) : null;
|
|
28920
28917
|
} catch {
|
|
28921
28918
|
return console.log(`[date-range] failed parsing ${n}`), null;
|
|
28922
28919
|
}
|
|
@@ -28987,7 +28984,7 @@ const qP = x.model("FilterDateRangeConfigMeta", {
|
|
|
28987
28984
|
return;
|
|
28988
28985
|
const n = rx(e.default_shortcut);
|
|
28989
28986
|
if (console.log(n), n) {
|
|
28990
|
-
const i = n.map((s) =>
|
|
28987
|
+
const i = n.map((s) => V(s).format(e.inputFormat));
|
|
28991
28988
|
e.setFilterValue(i);
|
|
28992
28989
|
}
|
|
28993
28990
|
},
|
|
@@ -29004,7 +29001,7 @@ const qP = x.model("FilterDateRangeConfigMeta", {
|
|
|
29004
29001
|
}) {
|
|
29005
29002
|
return {
|
|
29006
29003
|
...t,
|
|
29007
|
-
default_value: e.map((n) => n === null ? null :
|
|
29004
|
+
default_value: e.map((n) => n === null ? null : V.tz(n, "UTC").toISOString())
|
|
29008
29005
|
};
|
|
29009
29006
|
},
|
|
29010
29007
|
postProcessor(e) {
|
|
@@ -29845,7 +29842,7 @@ const wx = x.compose("ViewRenderModel", t2, x.model({
|
|
|
29845
29842
|
return e.type === X.Tabs && t.push(this.tabViewID), t;
|
|
29846
29843
|
},
|
|
29847
29844
|
async downloadScreenshot(t) {
|
|
29848
|
-
const n = t.offsetWidth * 2 + 10, i = t.offsetHeight * 2 + 10, s = new
|
|
29845
|
+
const n = t.offsetWidth * 2 + 10, i = t.offsetHeight * 2 + 10, s = new Fh(), a = (/* @__PURE__ */ new Date()).getTime(), o = await Oh.toBlob(t, {
|
|
29849
29846
|
bgcolor: "white",
|
|
29850
29847
|
width: n,
|
|
29851
29848
|
height: i,
|
|
@@ -29960,7 +29957,7 @@ async function a2(e, t) {
|
|
|
29960
29957
|
ba(i, `${e}.csv`);
|
|
29961
29958
|
}
|
|
29962
29959
|
function zu(e) {
|
|
29963
|
-
const t = new
|
|
29960
|
+
const t = new Fh(), n = e.map(async ({
|
|
29964
29961
|
id: i,
|
|
29965
29962
|
data: s
|
|
29966
29963
|
}) => {
|
|
@@ -30140,10 +30137,10 @@ function Tx(e) {
|
|
|
30140
30137
|
if (t.default_shortcut) {
|
|
30141
30138
|
const s = rx(t.default_shortcut);
|
|
30142
30139
|
if (s)
|
|
30143
|
-
return s.map((a) =>
|
|
30140
|
+
return s.map((a) => V(a).format(t.inputFormat));
|
|
30144
30141
|
}
|
|
30145
30142
|
const [...i] = n;
|
|
30146
|
-
return i.map((s) => s === null ? s :
|
|
30143
|
+
return i.map((s) => s === null ? s : V.tz(s, "UTC").format(t.inputFormat) ?? s);
|
|
30147
30144
|
} catch (i) {
|
|
30148
30145
|
return console.error(i), n;
|
|
30149
30146
|
}
|
|
@@ -30464,7 +30461,9 @@ const c2 = PP.views((e) => ({
|
|
|
30464
30461
|
additionals: e.additionalQueryInfo
|
|
30465
30462
|
}, e.controller.signal)), e.state = "idle", e.error = null;
|
|
30466
30463
|
} catch (n) {
|
|
30467
|
-
if (
|
|
30464
|
+
if (zn.isCancel(n))
|
|
30465
|
+
console.debug(`🟡 Query[${e.name}] is cancelled`), e.data = [], e.state = "idle";
|
|
30466
|
+
else {
|
|
30468
30467
|
e.data = [];
|
|
30469
30468
|
const i = xe(n, "message", "unkown error");
|
|
30470
30469
|
e.error = xe(n, "response.data.detail.message", i), e.state = "error";
|
|
@@ -30493,7 +30492,9 @@ const c2 = PP.views((e) => ({
|
|
|
30493
30492
|
}, e.controller.signal)), l = BS(e.datasource, o), c = WS(s, l, e.contentModel.dashboardState);
|
|
30494
30493
|
e.data = c, e.state = "idle", e.error = null;
|
|
30495
30494
|
} catch (n) {
|
|
30496
|
-
if (console.error(n),
|
|
30495
|
+
if (console.error(n), zn.isCancel(n))
|
|
30496
|
+
console.debug(`🟡 Query[${e.name}] is cancelled`), e.data = [], e.state = "idle";
|
|
30497
|
+
else {
|
|
30497
30498
|
e.data = [];
|
|
30498
30499
|
const i = xe(n, "message", "unkown error");
|
|
30499
30500
|
e.error = xe(n, "response.data.detail.message", i), e.state = "error";
|
|
@@ -30651,7 +30652,7 @@ function Du({
|
|
|
30651
30652
|
return `[${n}, ${i})`;
|
|
30652
30653
|
}
|
|
30653
30654
|
const Rx = x.model("LayoutsRenderModel", {
|
|
30654
|
-
list: x.array(
|
|
30655
|
+
list: x.array(FP),
|
|
30655
30656
|
currentBreakpoint: x.string
|
|
30656
30657
|
}).views((e) => ({
|
|
30657
30658
|
get json() {
|
|
@@ -30753,7 +30754,7 @@ const Rx = x.model("LayoutsRenderModel", {
|
|
|
30753
30754
|
delay: 0
|
|
30754
30755
|
}));
|
|
30755
30756
|
}
|
|
30756
|
-
})), u2 =
|
|
30757
|
+
})), u2 = VP.views((e) => ({
|
|
30757
30758
|
isADuplicatedKey(t) {
|
|
30758
30759
|
return !t || t === e.key ? !1 : !!jt(e, 2).findByKey(t);
|
|
30759
30760
|
}
|
|
@@ -31013,11 +31014,11 @@ class v2 {
|
|
|
31013
31014
|
return await this.operationManager.needMigration() || await this.triggerManager.needMigration();
|
|
31014
31015
|
}
|
|
31015
31016
|
}
|
|
31016
|
-
function
|
|
31017
|
+
function Fx(e) {
|
|
31017
31018
|
const {
|
|
31018
31019
|
panel: t
|
|
31019
31020
|
} = Rn();
|
|
31020
|
-
return
|
|
31021
|
+
return Fe((n) => {
|
|
31021
31022
|
const i = n.getRequired(Je.vizManager), s = i.resolveComponent(e.viz.type);
|
|
31022
31023
|
return n.createScoped().provideFactory(Je.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(Je.instanceScope.interactionManager, (a) => {
|
|
31023
31024
|
const o = a.getRequired(Je.instanceScope.vizInstance);
|
|
@@ -31025,7 +31026,7 @@ function Vx(e) {
|
|
|
31025
31026
|
}).provideFactory(Je.instanceScope.operationManager, (a) => a.getRequired(Je.instanceScope.interactionManager).operationManager).provideFactory(Je.instanceScope.triggerManager, (a) => a.getRequired(Je.instanceScope.interactionManager).triggerManager).provideValue(Je.instanceScope.panelModel, t).provideFactory(Je.instanceScope.migrator, (a) => new v2(a));
|
|
31026
31027
|
}, [e.viz.type, e.viz.conf]);
|
|
31027
31028
|
}
|
|
31028
|
-
function
|
|
31029
|
+
function Vx(e) {
|
|
31029
31030
|
const [t, n] = Z(!1), i = nx().getRequired(Je.instanceScope.migrator);
|
|
31030
31031
|
return Ki(async () => {
|
|
31031
31032
|
const s = i.status === Os.notStarted;
|
|
@@ -31048,7 +31049,7 @@ function _2({
|
|
|
31048
31049
|
}) {
|
|
31049
31050
|
const {
|
|
31050
31051
|
panel: n
|
|
31051
|
-
} = t, i = Nx(e, n), s =
|
|
31052
|
+
} = t, i = Nx(e, n), s = Vx(() => {
|
|
31052
31053
|
$r({
|
|
31053
31054
|
title: `${n.name} - Updated`,
|
|
31054
31055
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
@@ -31067,7 +31068,7 @@ function j2(e) {
|
|
|
31067
31068
|
const {
|
|
31068
31069
|
inEditMode: i
|
|
31069
31070
|
} = Yn(jl);
|
|
31070
|
-
return
|
|
31071
|
+
return Vx(() => {
|
|
31071
31072
|
i && $r({
|
|
31072
31073
|
title: `${t.name} - Updated`,
|
|
31073
31074
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
@@ -31094,7 +31095,7 @@ function w2(e, t) {
|
|
|
31094
31095
|
description: l,
|
|
31095
31096
|
queryIDs: c,
|
|
31096
31097
|
viz: i
|
|
31097
|
-
}, u =
|
|
31098
|
+
}, u = Fx(h);
|
|
31098
31099
|
try {
|
|
31099
31100
|
return n.resolveComponent(i.type), /* @__PURE__ */ r.jsx(Na, { configure: u, children: /* @__PURE__ */ r.jsx(j2, { setVizConf: i.setConf, panel: h, measure: t, data: e, variables: d, vizManager: n }) });
|
|
31100
31101
|
} catch (p) {
|
|
@@ -31108,7 +31109,7 @@ const S2 = D(function({
|
|
|
31108
31109
|
ref: n,
|
|
31109
31110
|
width: i,
|
|
31110
31111
|
height: s
|
|
31111
|
-
} =
|
|
31112
|
+
} = Fi(), a = w2(t, {
|
|
31112
31113
|
w: i,
|
|
31113
31114
|
h: s
|
|
31114
31115
|
}), o = i > 0 && s > 0;
|
|
@@ -31283,7 +31284,7 @@ const $2 = $.forwardRef(({
|
|
|
31283
31284
|
"&:hover": {
|
|
31284
31285
|
color: "#228be6"
|
|
31285
31286
|
}
|
|
31286
|
-
}, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(vy, { size: 16 }) })), O2 = Rh($h),
|
|
31287
|
+
}, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(vy, { size: 16 }) })), O2 = Rh($h), F2 = D(({
|
|
31287
31288
|
view: e,
|
|
31288
31289
|
className: t = "layout"
|
|
31289
31290
|
}) => {
|
|
@@ -31306,12 +31307,12 @@ const $2 = $.forwardRef(({
|
|
|
31306
31307
|
/* @__PURE__ */ r.jsx($2, { h: d.h }),
|
|
31307
31308
|
/* @__PURE__ */ r.jsx(z2, { view: e, panel: d.panel })
|
|
31308
31309
|
] }, d.id)) });
|
|
31309
|
-
}),
|
|
31310
|
+
}), V2 = Rh($h), N2 = D(({
|
|
31310
31311
|
view: e,
|
|
31311
31312
|
className: t = "layout"
|
|
31312
31313
|
}) => {
|
|
31313
31314
|
const n = lt(), i = n.layouts.items(e.panelIDs), s = n.layouts.gridLayouts(e.panelIDs);
|
|
31314
|
-
return /* @__PURE__ */ r.jsx(
|
|
31315
|
+
return /* @__PURE__ */ r.jsx(V2, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: s, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: i.map((a) => /* @__PURE__ */ r.jsx("div", { "data-grid": a.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(Wx, { view: e, panel: a.panel }) }, a.id)) });
|
|
31315
31316
|
});
|
|
31316
31317
|
function Bc(e) {
|
|
31317
31318
|
const t = lr(null);
|
|
@@ -31665,7 +31666,7 @@ const U2 = D(({
|
|
|
31665
31666
|
position: "sticky",
|
|
31666
31667
|
top: "0px"
|
|
31667
31668
|
}, children: /* @__PURE__ */ r.jsx(sx, { view: t }) }),
|
|
31668
|
-
/* @__PURE__ */ r.jsx(
|
|
31669
|
+
/* @__PURE__ */ r.jsx(F2, { view: t })
|
|
31669
31670
|
] }) }) }) });
|
|
31670
31671
|
}), Wc = D(function({
|
|
31671
31672
|
view: t
|
|
@@ -35035,7 +35036,7 @@ const SO = {
|
|
|
35035
35036
|
en: SO,
|
|
35036
35037
|
zh: kO
|
|
35037
35038
|
}
|
|
35038
|
-
}).use(Pv).use(
|
|
35039
|
+
}).use(Pv).use(Fb);
|
|
35039
35040
|
da.init();
|
|
35040
35041
|
ex.forEach((e) => {
|
|
35041
35042
|
var t;
|
|
@@ -35051,7 +35052,7 @@ function Yx({
|
|
|
35051
35052
|
}) {
|
|
35052
35053
|
return Q(() => {
|
|
35053
35054
|
da.changeLanguage(e);
|
|
35054
|
-
}, [e]), /* @__PURE__ */ r.jsx(
|
|
35055
|
+
}, [e]), /* @__PURE__ */ r.jsx(Vb, { i18n: da, children: t });
|
|
35055
35056
|
}
|
|
35056
35057
|
function Ds(e) {
|
|
35057
35058
|
console.groupCollapsed("Running operation ", e.type), console.log(e), console.groupEnd();
|
|
@@ -35250,7 +35251,7 @@ const CO = D(({
|
|
|
35250
35251
|
getValues: c,
|
|
35251
35252
|
reset: d,
|
|
35252
35253
|
formState: h
|
|
35253
|
-
} =
|
|
35254
|
+
} = Ve({
|
|
35254
35255
|
defaultValues: s
|
|
35255
35256
|
}), {
|
|
35256
35257
|
fields: u,
|
|
@@ -35534,7 +35535,7 @@ const CO = D(({
|
|
|
35534
35535
|
/* @__PURE__ */ r.jsx(PO, { content: e })
|
|
35535
35536
|
] })
|
|
35536
35537
|
] }) : null;
|
|
35537
|
-
function
|
|
35538
|
+
function FO(e) {
|
|
35538
35539
|
if (e.target === null)
|
|
35539
35540
|
throw new Error("FileReader failed with null result");
|
|
35540
35541
|
if (typeof e.target.result != "string")
|
|
@@ -35544,7 +35545,7 @@ function VO(e) {
|
|
|
35544
35545
|
throw new Error("Schema version mismatch");
|
|
35545
35546
|
return t;
|
|
35546
35547
|
}
|
|
35547
|
-
const
|
|
35548
|
+
const VO = D(({
|
|
35548
35549
|
onSuccess: e,
|
|
35549
35550
|
stretchModal: t,
|
|
35550
35551
|
shrinkModal: n
|
|
@@ -35561,7 +35562,7 @@ const FO = D(({
|
|
|
35561
35562
|
watch: c,
|
|
35562
35563
|
setError: d,
|
|
35563
35564
|
clearErrors: h
|
|
35564
|
-
} =
|
|
35565
|
+
} = Ve({
|
|
35565
35566
|
defaultValues: {
|
|
35566
35567
|
content: null
|
|
35567
35568
|
}
|
|
@@ -35590,7 +35591,7 @@ const FO = D(({
|
|
|
35590
35591
|
const L = new FileReader();
|
|
35591
35592
|
L.readAsText(p, "UTF-8"), L.onload = (A) => {
|
|
35592
35593
|
try {
|
|
35593
|
-
const P =
|
|
35594
|
+
const P = FO(A);
|
|
35594
35595
|
l("content", P), h("content");
|
|
35595
35596
|
} catch (P) {
|
|
35596
35597
|
console.error(P), d("content", {
|
|
@@ -35611,7 +35612,7 @@ const FO = D(({
|
|
|
35611
35612
|
}, [f, I]), /* @__PURE__ */ r.jsx(R, { mx: "auto", sx: {
|
|
35612
35613
|
position: "relative"
|
|
35613
35614
|
}, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(u), children: [
|
|
35614
|
-
/* @__PURE__ */ r.jsx(
|
|
35615
|
+
/* @__PURE__ */ r.jsx(Fg, { label: i("import.json_file"), required: !0, value: p, onChange: m, error: (z = o == null ? void 0 : o.content) == null ? void 0 : z.message, sx: {
|
|
35615
35616
|
maxWidth: 500
|
|
35616
35617
|
} }),
|
|
35617
35618
|
I ? /* @__PURE__ */ r.jsx(at, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
@@ -35657,7 +35658,7 @@ const FO = D(({
|
|
|
35657
35658
|
}, children: e("import.label") }),
|
|
35658
35659
|
/* @__PURE__ */ r.jsx(Ge, { opened: t, onClose: i, title: e("import.title"), trapFocus: !0, onDragStart: (h) => {
|
|
35659
35660
|
h.stopPropagation();
|
|
35660
|
-
}, withinPortal: !0, zIndex: 320, size: s ? "90vw" : 500, children: /* @__PURE__ */ r.jsx(
|
|
35661
|
+
}, withinPortal: !0, zIndex: 320, size: s ? "90vw" : 500, children: /* @__PURE__ */ r.jsx(VO, { onSuccess: i, stretchModal: a, shrinkModal: o }) })
|
|
35661
35662
|
] });
|
|
35662
35663
|
}), qO = {
|
|
35663
35664
|
position: "fixed",
|
|
@@ -35764,12 +35765,12 @@ function Jx(e, t, n) {
|
|
|
35764
35765
|
function QO(e, t, n) {
|
|
35765
35766
|
return e * t + (e - 1) * n;
|
|
35766
35767
|
}
|
|
35767
|
-
const ua = 25, Gc = 40, Zx = 25, Hc = 350, UO = 150, YO = 150, eg = 150, Ru = 300,
|
|
35768
|
+
const ua = 25, Gc = 40, Zx = 25, Hc = 350, UO = 150, YO = 150, eg = 150, Ru = 300, Fs = 40, tg = 25, KO = 300;
|
|
35768
35769
|
function XO(e, t) {
|
|
35769
35770
|
const n = k.keyBy(t, (s) => s.id), i = [];
|
|
35770
35771
|
return e.current.forEach((s, a) => {
|
|
35771
35772
|
s.panelIDs.forEach((o, l) => {
|
|
35772
|
-
const c = Jx(l,
|
|
35773
|
+
const c = Jx(l, Fs, tg) + Gc, d = n[o];
|
|
35773
35774
|
if (!d) {
|
|
35774
35775
|
i.push({
|
|
35775
35776
|
id: o,
|
|
@@ -35786,7 +35787,7 @@ function XO(e, t) {
|
|
|
35786
35787
|
targetPosition: hn.Left,
|
|
35787
35788
|
style: {
|
|
35788
35789
|
width: Ru,
|
|
35789
|
-
height:
|
|
35790
|
+
height: Fs
|
|
35790
35791
|
}
|
|
35791
35792
|
});
|
|
35792
35793
|
return;
|
|
@@ -35807,7 +35808,7 @@ function XO(e, t) {
|
|
|
35807
35808
|
targetPosition: hn.Left,
|
|
35808
35809
|
style: {
|
|
35809
35810
|
width: Ru,
|
|
35810
|
-
height:
|
|
35811
|
+
height: Fs
|
|
35811
35812
|
}
|
|
35812
35813
|
});
|
|
35813
35814
|
});
|
|
@@ -35818,9 +35819,9 @@ const JO = {
|
|
|
35818
35819
|
[X.Modal]: "Modal",
|
|
35819
35820
|
[X.Tabs]: "Tabs"
|
|
35820
35821
|
}, ZO = tO;
|
|
35821
|
-
function
|
|
35822
|
+
function eF(e) {
|
|
35822
35823
|
return e.current.map((n, i) => {
|
|
35823
|
-
const s = QO(n.panelIDs.length,
|
|
35824
|
+
const s = QO(n.panelIDs.length, Fs, tg) + Gc + Zx;
|
|
35824
35825
|
let a = [];
|
|
35825
35826
|
return n.type === X.Tabs && (a = n.config.tabsInOrder.map((l) => l.view_id)), {
|
|
35826
35827
|
id: n.id,
|
|
@@ -35847,7 +35848,7 @@ function eV(e) {
|
|
|
35847
35848
|
};
|
|
35848
35849
|
});
|
|
35849
35850
|
}
|
|
35850
|
-
function
|
|
35851
|
+
function tF(e) {
|
|
35851
35852
|
const t = k.keyBy(e, (n) => n.id);
|
|
35852
35853
|
e.forEach((n) => {
|
|
35853
35854
|
n._node_type !== "view-root" || n._view_type !== X.Tabs || n._tab_view_ids.forEach((i) => {
|
|
@@ -35855,13 +35856,13 @@ function tV(e) {
|
|
|
35855
35856
|
});
|
|
35856
35857
|
});
|
|
35857
35858
|
}
|
|
35858
|
-
function
|
|
35859
|
-
const t =
|
|
35860
|
-
|
|
35859
|
+
function nF(e) {
|
|
35860
|
+
const t = eF(e.views);
|
|
35861
|
+
tF(t);
|
|
35861
35862
|
const n = XO(e.views, e.panels.list);
|
|
35862
35863
|
return [...t, ...n];
|
|
35863
35864
|
}
|
|
35864
|
-
function
|
|
35865
|
+
function rF({
|
|
35865
35866
|
nodeMap: e,
|
|
35866
35867
|
nodes: t,
|
|
35867
35868
|
edges: n
|
|
@@ -35875,7 +35876,7 @@ function rV({
|
|
|
35875
35876
|
}, Gc));
|
|
35876
35877
|
});
|
|
35877
35878
|
}
|
|
35878
|
-
function
|
|
35879
|
+
function iF({
|
|
35879
35880
|
nodeMap: e,
|
|
35880
35881
|
nodes: t,
|
|
35881
35882
|
edges: n
|
|
@@ -35888,7 +35889,7 @@ function iV({
|
|
|
35888
35889
|
o._node_type !== "view-root" || a._node_type !== "view-root" || (a._view_level += 1 + o._view_level, o._sub_view_ids.push(a.id));
|
|
35889
35890
|
}), t.sort((i, s) => i._node_type === "view-root" && s._node_type === "view-root" ? i._view_level - s._view_level : i._node_type !== "view-root" && s._node_type !== "view-root" ? 0 : i._node_type === "view-root" ? -1 : 1);
|
|
35890
35891
|
}
|
|
35891
|
-
function
|
|
35892
|
+
function sF({
|
|
35892
35893
|
nodeMap: e,
|
|
35893
35894
|
nodes: t,
|
|
35894
35895
|
edges: n
|
|
@@ -35906,7 +35907,7 @@ function sV({
|
|
|
35906
35907
|
}
|
|
35907
35908
|
});
|
|
35908
35909
|
}
|
|
35909
|
-
function
|
|
35910
|
+
function aF({
|
|
35910
35911
|
nodeMap: e,
|
|
35911
35912
|
nodes: t,
|
|
35912
35913
|
edges: n
|
|
@@ -35918,7 +35919,7 @@ function aV({
|
|
|
35918
35919
|
o.position.x = Jx(l, Hc, YO), o.position.y = 0 - UO - eg;
|
|
35919
35920
|
});
|
|
35920
35921
|
}
|
|
35921
|
-
function
|
|
35922
|
+
function oF({
|
|
35922
35923
|
nodeMap: e,
|
|
35923
35924
|
nodes: t,
|
|
35924
35925
|
edges: n
|
|
@@ -35928,13 +35929,13 @@ function oV({
|
|
|
35928
35929
|
nodes: t,
|
|
35929
35930
|
edges: n
|
|
35930
35931
|
};
|
|
35931
|
-
return
|
|
35932
|
+
return aF(i), iF(i), rF(i), sF(i), {
|
|
35932
35933
|
nodes: t,
|
|
35933
35934
|
edges: n
|
|
35934
35935
|
};
|
|
35935
35936
|
}
|
|
35936
|
-
function
|
|
35937
|
-
const t =
|
|
35937
|
+
function lF(e) {
|
|
35938
|
+
const t = nF(e), n = k.keyBy(t, (c) => c.id), {
|
|
35938
35939
|
edges: i,
|
|
35939
35940
|
edgeNodes: s
|
|
35940
35941
|
} = HO(e, n), a = [...t, ...s], o = k.keyBy(a, (c) => c.id), l = {
|
|
@@ -35942,14 +35943,14 @@ function lV(e) {
|
|
|
35942
35943
|
nodes: a,
|
|
35943
35944
|
nodeMap: o
|
|
35944
35945
|
};
|
|
35945
|
-
return
|
|
35946
|
+
return oF(l);
|
|
35946
35947
|
}
|
|
35947
35948
|
const go = {
|
|
35948
35949
|
"builtin:op:open-link": /* @__PURE__ */ r.jsx(Ya, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(Tb, { size: 14 }) }),
|
|
35949
35950
|
"builtin:op:set_filter_values": /* @__PURE__ */ r.jsx(Ya, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(zb, { size: 14 }) }),
|
|
35950
35951
|
"builtin:op:clear_filter_values": /* @__PURE__ */ r.jsx(Ya, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(oh, { size: 14 }) })
|
|
35951
35952
|
};
|
|
35952
|
-
function
|
|
35953
|
+
function cF(e) {
|
|
35953
35954
|
const t = [];
|
|
35954
35955
|
return e.forEach((n) => {
|
|
35955
35956
|
switch (n.schemaRef) {
|
|
@@ -35996,14 +35997,14 @@ function cV(e) {
|
|
|
35996
35997
|
}
|
|
35997
35998
|
}), t;
|
|
35998
35999
|
}
|
|
35999
|
-
const
|
|
36000
|
+
const dF = Eg(({
|
|
36000
36001
|
data: e,
|
|
36001
36002
|
isConnectable: t,
|
|
36002
36003
|
sourcePosition: n = hn.Right,
|
|
36003
36004
|
targetPosition: i = hn.Left,
|
|
36004
36005
|
...s
|
|
36005
36006
|
}) => {
|
|
36006
|
-
const a = T(() =>
|
|
36007
|
+
const a = T(() => cF(e.interactions), [e.interactions]);
|
|
36007
36008
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
36008
36009
|
/* @__PURE__ */ r.jsx(gd, { type: "target", position: i, isConnectable: t }),
|
|
36009
36010
|
/* @__PURE__ */ r.jsx(R, { sx: {
|
|
@@ -36018,19 +36019,19 @@ const dV = Eg(({
|
|
|
36018
36019
|
/* @__PURE__ */ r.jsx(gd, { type: "source", position: n, isConnectable: t })
|
|
36019
36020
|
] });
|
|
36020
36021
|
});
|
|
36021
|
-
const
|
|
36022
|
-
interaction:
|
|
36023
|
-
},
|
|
36022
|
+
const uF = {
|
|
36023
|
+
interaction: dF
|
|
36024
|
+
}, hF = D(() => {
|
|
36024
36025
|
const e = lt(), {
|
|
36025
36026
|
edges: t,
|
|
36026
36027
|
nodes: n
|
|
36027
|
-
} =
|
|
36028
|
-
return /* @__PURE__ */ r.jsxs(Ov, { nodes: n, edges: t, onNodesChange: k.noop, onEdgesChange: k.noop, onConnect: k.noop, className: "interactions-viewer", fitView: !0, nodeTypes:
|
|
36029
|
-
/* @__PURE__ */ r.jsx(Vv, {}),
|
|
36028
|
+
} = lF(e);
|
|
36029
|
+
return /* @__PURE__ */ r.jsxs(Ov, { nodes: n, edges: t, onNodesChange: k.noop, onEdgesChange: k.noop, onConnect: k.noop, className: "interactions-viewer", fitView: !0, nodeTypes: uF, children: [
|
|
36030
36030
|
/* @__PURE__ */ r.jsx(Fv, {}),
|
|
36031
|
+
/* @__PURE__ */ r.jsx(Vv, {}),
|
|
36031
36032
|
/* @__PURE__ */ r.jsx(Nv, {})
|
|
36032
36033
|
] });
|
|
36033
|
-
}),
|
|
36034
|
+
}), pF = D(({
|
|
36034
36035
|
opened: e,
|
|
36035
36036
|
close: t
|
|
36036
36037
|
}) => {
|
|
@@ -36057,10 +36058,10 @@ const uV = {
|
|
|
36057
36058
|
}
|
|
36058
36059
|
},
|
|
36059
36060
|
zIndex: 300,
|
|
36060
|
-
children: /* @__PURE__ */ r.jsx(
|
|
36061
|
+
children: /* @__PURE__ */ r.jsx(hF, {})
|
|
36061
36062
|
}
|
|
36062
36063
|
);
|
|
36063
|
-
}),
|
|
36064
|
+
}), mF = {
|
|
36064
36065
|
"> button": {
|
|
36065
36066
|
"&:first-of-type": {
|
|
36066
36067
|
borderTopRightRadius: 0,
|
|
@@ -36082,7 +36083,7 @@ const uV = {
|
|
|
36082
36083
|
}
|
|
36083
36084
|
}
|
|
36084
36085
|
};
|
|
36085
|
-
function
|
|
36086
|
+
function fF({
|
|
36086
36087
|
onClick: e,
|
|
36087
36088
|
name: t,
|
|
36088
36089
|
active: n,
|
|
@@ -36116,16 +36117,16 @@ function fV({
|
|
|
36116
36117
|
}, children: /* @__PURE__ */ r.jsx(Db, { size: 16 }) }) })
|
|
36117
36118
|
] });
|
|
36118
36119
|
}
|
|
36119
|
-
const
|
|
36120
|
+
const xF = D(() => {
|
|
36120
36121
|
const {
|
|
36121
36122
|
t: e
|
|
36122
|
-
} = v(), t = Ie(), n = be(), i =
|
|
36123
|
+
} = v(), t = Ie(), n = be(), i = Fe((a) => () => n.views.setIDOfVIE(a), [n]), s = (a) => {
|
|
36123
36124
|
t.editor.open(["_VIEWS_", a]);
|
|
36124
36125
|
};
|
|
36125
36126
|
return /* @__PURE__ */ r.jsxs(R, { sx: {
|
|
36126
36127
|
position: "relative"
|
|
36127
36128
|
}, children: [
|
|
36128
|
-
n.views.options.map((a) => /* @__PURE__ */ r.jsx(
|
|
36129
|
+
n.views.options.map((a) => /* @__PURE__ */ r.jsx(fF, { active: n.views.idOfVIE === a.value, name: a.label, onClick: i(a.value), openSettings: () => s(a.value) }, a.value)),
|
|
36129
36130
|
/* @__PURE__ */ r.jsx(O, { variant: "dashed" }),
|
|
36130
36131
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(xn, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: n.views.addARandomNewView, sx: {
|
|
36131
36132
|
width: "100%",
|
|
@@ -36136,7 +36137,7 @@ const xV = D(() => {
|
|
|
36136
36137
|
}
|
|
36137
36138
|
}, children: e("view.add") })
|
|
36138
36139
|
] });
|
|
36139
|
-
}),
|
|
36140
|
+
}), gF = D(() => {
|
|
36140
36141
|
const {
|
|
36141
36142
|
t: e
|
|
36142
36143
|
} = v(), t = Ie(), n = be(), i = () => {
|
|
@@ -36152,7 +36153,7 @@ const xV = D(() => {
|
|
|
36152
36153
|
}
|
|
36153
36154
|
t.editor.open(["_FILTERS_", n.filters.firstID]);
|
|
36154
36155
|
}, [a, o] = Z(!1), l = () => o(!0), c = () => o(!1);
|
|
36155
|
-
return /* @__PURE__ */ r.jsxs(
|
|
36156
|
+
return /* @__PURE__ */ r.jsxs(Vn, { p: 0, width: {
|
|
36156
36157
|
base: 200,
|
|
36157
36158
|
xs: 200,
|
|
36158
36159
|
sm: 200,
|
|
@@ -36160,9 +36161,9 @@ const xV = D(() => {
|
|
|
36160
36161
|
lg: 240,
|
|
36161
36162
|
xl: 260
|
|
36162
36163
|
}, zIndex: 299, children: [
|
|
36163
|
-
/* @__PURE__ */ r.jsxs(
|
|
36164
|
+
/* @__PURE__ */ r.jsxs(Vn.Section, { children: [
|
|
36164
36165
|
/* @__PURE__ */ r.jsxs(y, { grow: !0, spacing: 0, sx: {
|
|
36165
|
-
...
|
|
36166
|
+
...mF,
|
|
36166
36167
|
button: {
|
|
36167
36168
|
borderWidth: 0,
|
|
36168
36169
|
borderBottomWidth: 1,
|
|
@@ -36179,36 +36180,36 @@ const xV = D(() => {
|
|
|
36179
36180
|
height: "30px"
|
|
36180
36181
|
}, onClick: l, children: /* @__PURE__ */ r.jsx(Mb, { size: 18 }) }) })
|
|
36181
36182
|
] }),
|
|
36182
|
-
/* @__PURE__ */ r.jsx(
|
|
36183
|
+
/* @__PURE__ */ r.jsx(pF, { opened: a, close: c })
|
|
36183
36184
|
] }),
|
|
36184
|
-
/* @__PURE__ */ r.jsx(
|
|
36185
|
+
/* @__PURE__ */ r.jsx(Vn.Section, { py: 5, sx: {
|
|
36185
36186
|
borderBottom: "1px solid #eee"
|
|
36186
36187
|
}, children: /* @__PURE__ */ r.jsx(w, { align: "center", sx: {
|
|
36187
36188
|
userSelect: "none",
|
|
36188
36189
|
cursor: "default"
|
|
36189
36190
|
}, children: e("view.labels") }) }),
|
|
36190
|
-
/* @__PURE__ */ r.jsx(
|
|
36191
|
+
/* @__PURE__ */ r.jsx(Vn.Section, { grow: !0, sx: {
|
|
36191
36192
|
overflow: "auto"
|
|
36192
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
36193
|
-
/* @__PURE__ */ r.jsx(
|
|
36193
|
+
}, children: /* @__PURE__ */ r.jsx(xF, {}) }),
|
|
36194
|
+
/* @__PURE__ */ r.jsx(Vn.Section, { children: /* @__PURE__ */ r.jsx(y, { grow: !0, p: "md", pt: "sm", sx: {
|
|
36194
36195
|
borderTop: "1px solid #eee"
|
|
36195
36196
|
}, children: /* @__PURE__ */ r.jsx(M, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(es, { size: 20 }), onClick: () => t.editor.open([]), children: e("common.titles.settings") }) }) })
|
|
36196
36197
|
] });
|
|
36197
|
-
}),
|
|
36198
|
+
}), bF = {
|
|
36198
36199
|
[Ne.Checkbox]: "true",
|
|
36199
36200
|
[Ne.DateRange]: "[new Date('2023-01-01 00:00:00'), new Date('2024-01-01 00:00:00')]",
|
|
36200
36201
|
[Ne.MultiSelect]: "[]",
|
|
36201
36202
|
[Ne.Select]: '""',
|
|
36202
36203
|
[Ne.TreeSelect]: "[]",
|
|
36203
36204
|
[Ne.TextInput]: '""'
|
|
36204
|
-
},
|
|
36205
|
+
}, yF = (e) => ["function getDefaultValue(filter, utils, context) {", ` return ${bF[e]};`, "}"].join(`
|
|
36205
36206
|
`), vi = D(({
|
|
36206
36207
|
filter: e
|
|
36207
36208
|
}) => {
|
|
36208
36209
|
const {
|
|
36209
36210
|
t
|
|
36210
36211
|
} = v();
|
|
36211
|
-
return /* @__PURE__ */ r.jsx(vl, { label: "", title: t("filter.field.custom_default_value.title"), triggerLabel: t("filter.field.custom_default_value.trigger"), value: e.default_value_func, onChange: e.setDefaultValueFunc, defaultValue:
|
|
36212
|
+
return /* @__PURE__ */ r.jsx(vl, { label: "", title: t("filter.field.custom_default_value.title"), triggerLabel: t("filter.field.custom_default_value.trigger"), value: e.default_value_func, onChange: e.setDefaultValueFunc, defaultValue: yF(e.type), triggerButtonProps: {
|
|
36212
36213
|
size: "xs",
|
|
36213
36214
|
color: "grape",
|
|
36214
36215
|
sx: {
|
|
@@ -36220,7 +36221,7 @@ const xV = D(() => {
|
|
|
36220
36221
|
/* @__PURE__ */ r.jsx(Wt.Item, { children: t("filter.field.custom_default_value.tip_1") }),
|
|
36221
36222
|
/* @__PURE__ */ r.jsx(Wt.Item, { children: t("filter.field.custom_default_value.tip_2") })
|
|
36222
36223
|
] }) }) });
|
|
36223
|
-
}),
|
|
36224
|
+
}), vF = D(function({
|
|
36224
36225
|
filter: t
|
|
36225
36226
|
}) {
|
|
36226
36227
|
const {
|
|
@@ -36238,7 +36239,7 @@ const xV = D(() => {
|
|
|
36238
36239
|
}
|
|
36239
36240
|
} })
|
|
36240
36241
|
] });
|
|
36241
|
-
}),
|
|
36242
|
+
}), _F = [{
|
|
36242
36243
|
label: "2022",
|
|
36243
36244
|
value: "YYYY"
|
|
36244
36245
|
}, {
|
|
@@ -36253,12 +36254,12 @@ const xV = D(() => {
|
|
|
36253
36254
|
}, {
|
|
36254
36255
|
label: "2022-01-01",
|
|
36255
36256
|
value: "YYYY-MM-DD"
|
|
36256
|
-
}],
|
|
36257
|
+
}], jF = D(function({
|
|
36257
36258
|
filter: t
|
|
36258
36259
|
}) {
|
|
36259
36260
|
const {
|
|
36260
36261
|
t: n
|
|
36261
|
-
} = v(), i = t.config, s = T(() =>
|
|
36262
|
+
} = v(), i = t.config, s = T(() => Fc().map(({
|
|
36262
36263
|
key: a,
|
|
36263
36264
|
value: o,
|
|
36264
36265
|
group: l
|
|
@@ -36273,7 +36274,7 @@ const xV = D(() => {
|
|
|
36273
36274
|
/* @__PURE__ */ r.jsx(me, { checked: i.allowSingleDateInRange, onChange: (a) => i.setAllowSingleDateInRange(a.currentTarget.checked), label: n("filter.widget.date_range.allow_single_date") })
|
|
36274
36275
|
] }),
|
|
36275
36276
|
/* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
|
|
36276
|
-
/* @__PURE__ */ r.jsx(q, { data:
|
|
36277
|
+
/* @__PURE__ */ r.jsx(q, { data: _F, label: n("filter.widget.date_range.display_format"), value: i.inputFormat, onChange: i.setInputFormat }),
|
|
36277
36278
|
/* @__PURE__ */ r.jsx(pe, { label: n("filter.widget.date_range.max_days"), min: 0, value: i.max_days, onChange: i.setMaxDays, hideControls: !0 })
|
|
36278
36279
|
] }),
|
|
36279
36280
|
/* @__PURE__ */ r.jsxs(y, { children: [
|
|
@@ -36312,7 +36313,7 @@ const xV = D(() => {
|
|
|
36312
36313
|
display: "block"
|
|
36313
36314
|
}
|
|
36314
36315
|
} });
|
|
36315
|
-
}),
|
|
36316
|
+
}), wF = `
|
|
36316
36317
|
// row
|
|
36317
36318
|
{
|
|
36318
36319
|
label: string;
|
|
@@ -36325,9 +36326,9 @@ const xV = D(() => {
|
|
|
36325
36326
|
} = v(), [t, n] = Z(!1);
|
|
36326
36327
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
36327
36328
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
36328
|
-
/* @__PURE__ */ r.jsx(Yi, { in: t, children: /* @__PURE__ */ r.jsx(dr, { language: "typescript", noCopy: !0, colorScheme: "dark", children:
|
|
36329
|
+
/* @__PURE__ */ r.jsx(Yi, { in: t, children: /* @__PURE__ */ r.jsx(dr, { language: "typescript", noCopy: !0, colorScheme: "dark", children: wF }) })
|
|
36329
36330
|
] });
|
|
36330
|
-
},
|
|
36331
|
+
}, SF = D(function({
|
|
36331
36332
|
filter: t
|
|
36332
36333
|
}) {
|
|
36333
36334
|
const {
|
|
@@ -36394,7 +36395,7 @@ const xV = D(() => {
|
|
|
36394
36395
|
/* @__PURE__ */ r.jsx(Qc, { value: i.options_query_id, onChange: i.setOptionsQueryID }),
|
|
36395
36396
|
/* @__PURE__ */ r.jsx(ng, {})
|
|
36396
36397
|
] });
|
|
36397
|
-
}),
|
|
36398
|
+
}), kF = D(function({
|
|
36398
36399
|
filter: t
|
|
36399
36400
|
}) {
|
|
36400
36401
|
const {
|
|
@@ -36466,7 +36467,7 @@ const xV = D(() => {
|
|
|
36466
36467
|
/* @__PURE__ */ r.jsx(Qc, { value: s.options_query_id, onChange: s.setOptionsQueryID }),
|
|
36467
36468
|
/* @__PURE__ */ r.jsx(ng, {})
|
|
36468
36469
|
] });
|
|
36469
|
-
}),
|
|
36470
|
+
}), CF = D(function({
|
|
36470
36471
|
filter: t
|
|
36471
36472
|
}) {
|
|
36472
36473
|
const {
|
|
@@ -36483,7 +36484,7 @@ const xV = D(() => {
|
|
|
36483
36484
|
] }),
|
|
36484
36485
|
/* @__PURE__ */ r.jsx(me, { checked: i.required, onChange: (s) => i.setRequired(s.currentTarget.checked), label: n("filter.widget.text_input.required") })
|
|
36485
36486
|
] });
|
|
36486
|
-
}),
|
|
36487
|
+
}), IF = `
|
|
36487
36488
|
// row
|
|
36488
36489
|
{
|
|
36489
36490
|
label: string;
|
|
@@ -36491,15 +36492,15 @@ const xV = D(() => {
|
|
|
36491
36492
|
parent_value: string;
|
|
36492
36493
|
description?: string;
|
|
36493
36494
|
}
|
|
36494
|
-
`,
|
|
36495
|
+
`, TF = () => {
|
|
36495
36496
|
const {
|
|
36496
36497
|
t: e
|
|
36497
36498
|
} = v(), [t, n] = Z(!1);
|
|
36498
36499
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
36499
36500
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
36500
|
-
/* @__PURE__ */ r.jsx(Yi, { in: t, children: /* @__PURE__ */ r.jsx(dr, { language: "typescript", noCopy: !0, colorScheme: "dark", children:
|
|
36501
|
+
/* @__PURE__ */ r.jsx(Yi, { in: t, children: /* @__PURE__ */ r.jsx(dr, { language: "typescript", noCopy: !0, colorScheme: "dark", children: IF }) })
|
|
36501
36502
|
] });
|
|
36502
|
-
},
|
|
36503
|
+
}, zF = D(function({
|
|
36503
36504
|
filter: t
|
|
36504
36505
|
}) {
|
|
36505
36506
|
const {
|
|
@@ -36515,9 +36516,9 @@ const xV = D(() => {
|
|
|
36515
36516
|
/* @__PURE__ */ r.jsx(me, { checked: i.treeCheckStrictly, onChange: (s) => i.setTreeCheckStrictly(s.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
|
|
36516
36517
|
/* @__PURE__ */ r.jsx(pe, { value: i.default_selection_count, onChange: i.setDefaultSelectionCount, label: n("filter.widget.common.default_selection_count") }),
|
|
36517
36518
|
/* @__PURE__ */ r.jsx(Qc, { value: i.options_query_id, onChange: i.setOptionsQueryID }),
|
|
36518
|
-
/* @__PURE__ */ r.jsx(
|
|
36519
|
+
/* @__PURE__ */ r.jsx(TF, {})
|
|
36519
36520
|
] });
|
|
36520
|
-
}),
|
|
36521
|
+
}), DF = D(function({
|
|
36521
36522
|
filter: t
|
|
36522
36523
|
}) {
|
|
36523
36524
|
const {
|
|
@@ -36529,13 +36530,13 @@ const xV = D(() => {
|
|
|
36529
36530
|
/* @__PURE__ */ r.jsx(w, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
|
|
36530
36531
|
/* @__PURE__ */ r.jsx(dr, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t, null, 4) })
|
|
36531
36532
|
] });
|
|
36532
|
-
}),
|
|
36533
|
-
select:
|
|
36534
|
-
"multi-select":
|
|
36535
|
-
"tree-select":
|
|
36536
|
-
"text-input":
|
|
36537
|
-
checkbox:
|
|
36538
|
-
"date-range":
|
|
36533
|
+
}), MF = {
|
|
36534
|
+
select: kF,
|
|
36535
|
+
"multi-select": SF,
|
|
36536
|
+
"tree-select": zF,
|
|
36537
|
+
"text-input": CF,
|
|
36538
|
+
checkbox: vF,
|
|
36539
|
+
"date-range": jF
|
|
36539
36540
|
}, wr = {
|
|
36540
36541
|
select: "filter.widget.names.select",
|
|
36541
36542
|
"multi-select": "filter.widget.names.multi_select",
|
|
@@ -36543,13 +36544,13 @@ const xV = D(() => {
|
|
|
36543
36544
|
"text-input": "filter.widget.names.text_input",
|
|
36544
36545
|
checkbox: "filter.widget.names.checkbox",
|
|
36545
36546
|
"date-range": "filter.widget.names.date_range"
|
|
36546
|
-
},
|
|
36547
|
+
}, EF = D(function({
|
|
36547
36548
|
filter: t
|
|
36548
36549
|
}) {
|
|
36549
36550
|
const {
|
|
36550
36551
|
t: n,
|
|
36551
36552
|
i18n: i
|
|
36552
|
-
} = v(), s = be(), a = $.useMemo(() =>
|
|
36553
|
+
} = v(), s = be(), a = $.useMemo(() => MF[t.type], [t.type]), o = T(() => [{
|
|
36553
36554
|
label: n(wr.select),
|
|
36554
36555
|
value: "select"
|
|
36555
36556
|
}, {
|
|
@@ -36602,9 +36603,9 @@ const xV = D(() => {
|
|
|
36602
36603
|
/* @__PURE__ */ r.jsx(a, { filter: t })
|
|
36603
36604
|
] })
|
|
36604
36605
|
] }),
|
|
36605
|
-
/* @__PURE__ */ r.jsx(
|
|
36606
|
+
/* @__PURE__ */ r.jsx(DF, { filter: t })
|
|
36606
36607
|
] });
|
|
36607
|
-
}),
|
|
36608
|
+
}), LF = D(({
|
|
36608
36609
|
id: e
|
|
36609
36610
|
}) => {
|
|
36610
36611
|
const {
|
|
@@ -36647,9 +36648,9 @@ const xV = D(() => {
|
|
|
36647
36648
|
flexGrow: 1,
|
|
36648
36649
|
maxHeight: "calc(100% - 52px)",
|
|
36649
36650
|
overflow: "auto"
|
|
36650
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
36651
|
+
}, children: /* @__PURE__ */ r.jsx(EF, { filter: a }) })
|
|
36651
36652
|
] });
|
|
36652
|
-
}),
|
|
36653
|
+
}), AF = D(() => {
|
|
36653
36654
|
const {
|
|
36654
36655
|
t: e
|
|
36655
36656
|
} = v(), [t, n] = Z([]), i = Ie(), s = (d) => {
|
|
@@ -36722,7 +36723,7 @@ const xV = D(() => {
|
|
|
36722
36723
|
] }, d.id)) })
|
|
36723
36724
|
] }) }) })
|
|
36724
36725
|
] });
|
|
36725
|
-
}),
|
|
36726
|
+
}), RF = D(() => {
|
|
36726
36727
|
const {
|
|
36727
36728
|
t: e
|
|
36728
36729
|
} = v(), t = be(), [n, i] = Z(() => JSON.stringify(t.mock_context.current, null, 4)), s = () => {
|
|
@@ -36775,7 +36776,7 @@ const xV = D(() => {
|
|
|
36775
36776
|
}, disabled: !a, onClick: s, children: /* @__PURE__ */ r.jsx(Qn, { size: 20 }) })
|
|
36776
36777
|
] })
|
|
36777
36778
|
] });
|
|
36778
|
-
}), $
|
|
36779
|
+
}), $F = D(() => {
|
|
36779
36780
|
const {
|
|
36780
36781
|
t: e
|
|
36781
36782
|
} = v(), {
|
|
@@ -36786,7 +36787,7 @@ const xV = D(() => {
|
|
|
36786
36787
|
flexGrow: 1
|
|
36787
36788
|
}
|
|
36788
36789
|
} });
|
|
36789
|
-
}),
|
|
36790
|
+
}), PF = D(() => {
|
|
36790
36791
|
const {
|
|
36791
36792
|
t: e
|
|
36792
36793
|
} = v(), {
|
|
@@ -36819,10 +36820,10 @@ const xV = D(() => {
|
|
|
36819
36820
|
/* @__PURE__ */ r.jsx(me, { ml: 6, label: e("panel.style.border"), checked: i.border.enabled, onChange: (s) => i.border.setEnabled(s.currentTarget.checked) })
|
|
36820
36821
|
] })
|
|
36821
36822
|
] });
|
|
36822
|
-
}),
|
|
36823
|
+
}), OF = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
|
|
36823
36824
|
" ",
|
|
36824
36825
|
"*"
|
|
36825
|
-
] }),
|
|
36826
|
+
] }), FF = D(() => {
|
|
36826
36827
|
const {
|
|
36827
36828
|
t: e
|
|
36828
36829
|
} = v(), {
|
|
@@ -36840,13 +36841,13 @@ const xV = D(() => {
|
|
|
36840
36841
|
/* @__PURE__ */ r.jsxs(y, { align: "center", children: [
|
|
36841
36842
|
/* @__PURE__ */ r.jsxs(w, { size: 14, fw: 500, children: [
|
|
36842
36843
|
e("panel.panel_name"),
|
|
36843
|
-
/* @__PURE__ */ r.jsx(
|
|
36844
|
+
/* @__PURE__ */ r.jsx(OF, {})
|
|
36844
36845
|
] }),
|
|
36845
36846
|
/* @__PURE__ */ r.jsx(re, { variant: "subtle", color: "blue", disabled: !a || l, onClick: o, children: /* @__PURE__ */ r.jsx(et, { size: 18 }) })
|
|
36846
36847
|
] }),
|
|
36847
36848
|
/* @__PURE__ */ r.jsx(E, { value: i, onChange: s, required: !0 })
|
|
36848
36849
|
] });
|
|
36849
|
-
}),
|
|
36850
|
+
}), VF = D(() => {
|
|
36850
36851
|
const {
|
|
36851
36852
|
t: e
|
|
36852
36853
|
} = v(), {
|
|
@@ -36859,21 +36860,21 @@ const xV = D(() => {
|
|
|
36859
36860
|
/* @__PURE__ */ r.jsx(me, { size: "sm", checked: !0, disabled: !0, label: e("panel.use_name_as_title") })
|
|
36860
36861
|
] }) });
|
|
36861
36862
|
});
|
|
36862
|
-
function
|
|
36863
|
+
function NF() {
|
|
36863
36864
|
const {
|
|
36864
36865
|
t: e
|
|
36865
36866
|
} = v();
|
|
36866
36867
|
return /* @__PURE__ */ r.jsxs(C, { sx: {
|
|
36867
36868
|
height: "100%"
|
|
36868
36869
|
}, children: [
|
|
36869
|
-
/* @__PURE__ */ r.jsx(
|
|
36870
|
+
/* @__PURE__ */ r.jsx(PF, {}),
|
|
36870
36871
|
/* @__PURE__ */ r.jsx(O, { label: e("common.info"), labelPosition: "center", variant: "dashed" }),
|
|
36871
|
-
/* @__PURE__ */ r.jsx(
|
|
36872
|
-
/* @__PURE__ */ r.jsx(
|
|
36873
|
-
/* @__PURE__ */ r.jsx($
|
|
36872
|
+
/* @__PURE__ */ r.jsx(FF, {}),
|
|
36873
|
+
/* @__PURE__ */ r.jsx(VF, {}),
|
|
36874
|
+
/* @__PURE__ */ r.jsx($F, {})
|
|
36874
36875
|
] });
|
|
36875
36876
|
}
|
|
36876
|
-
const
|
|
36877
|
+
const qF = {
|
|
36877
36878
|
width: "fit-content",
|
|
36878
36879
|
minWidth: "100%",
|
|
36879
36880
|
tableLayout: "fixed",
|
|
@@ -36928,7 +36929,7 @@ function rg({
|
|
|
36928
36929
|
});
|
|
36929
36930
|
return e.length === 0 ? /* @__PURE__ */ r.jsx(R, { sx: {
|
|
36930
36931
|
height: "5em"
|
|
36931
|
-
} }) : /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsxs(at, { sx:
|
|
36932
|
+
} }) : /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsxs(at, { sx: qF, children: [
|
|
36932
36933
|
/* @__PURE__ */ r.jsx("thead", { children: n.getHeaderGroups().map((i) => /* @__PURE__ */ r.jsx("tr", { children: i.headers.map((s) => /* @__PURE__ */ r.jsxs("th", { style: {
|
|
36933
36934
|
width: s.getSize()
|
|
36934
36935
|
}, children: [
|
|
@@ -36938,7 +36939,7 @@ function rg({
|
|
|
36938
36939
|
/* @__PURE__ */ r.jsx("tbody", { children: n.getRowModel().rows.map((i) => /* @__PURE__ */ r.jsx("tr", { children: i.getVisibleCells().map((s) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(ht, { children: typeof s.getValue() == "object" ? /* @__PURE__ */ r.jsx("pre", { children: JSON.stringify(s.getValue(), null, 2) }) : Bs(s.column.columnDef.cell, s.getContext()) }) }, s.id)) }, i.id)) })
|
|
36939
36940
|
] }) });
|
|
36940
36941
|
}
|
|
36941
|
-
const
|
|
36942
|
+
const BF = [{
|
|
36942
36943
|
label: "10",
|
|
36943
36944
|
value: "10"
|
|
36944
36945
|
}, {
|
|
@@ -36950,7 +36951,7 @@ const BV = [{
|
|
|
36950
36951
|
}, {
|
|
36951
36952
|
label: "100",
|
|
36952
36953
|
value: "100"
|
|
36953
|
-
}],
|
|
36954
|
+
}], WF = {
|
|
36954
36955
|
icon: {
|
|
36955
36956
|
width: "80px",
|
|
36956
36957
|
textAlign: "center"
|
|
@@ -36960,7 +36961,7 @@ const BV = [{
|
|
|
36960
36961
|
paddingLeft: "80px"
|
|
36961
36962
|
}
|
|
36962
36963
|
}
|
|
36963
|
-
},
|
|
36964
|
+
}, GF = ({
|
|
36964
36965
|
data: e,
|
|
36965
36966
|
page: t,
|
|
36966
36967
|
setPage: n,
|
|
@@ -36987,8 +36988,8 @@ const BV = [{
|
|
|
36987
36988
|
{
|
|
36988
36989
|
icon: /* @__PURE__ */ r.jsx(w, { ta: "center", color: "dimmed", size: 14, children: a("common.pagination.page_size") }),
|
|
36989
36990
|
size: "xs",
|
|
36990
|
-
styles:
|
|
36991
|
-
data:
|
|
36991
|
+
styles: WF,
|
|
36992
|
+
data: BF,
|
|
36992
36993
|
value: String(i),
|
|
36993
36994
|
onChange: c
|
|
36994
36995
|
}
|
|
@@ -36998,7 +36999,7 @@ const BV = [{
|
|
|
36998
36999
|
total: o
|
|
36999
37000
|
}) }) })
|
|
37000
37001
|
] });
|
|
37001
|
-
},
|
|
37002
|
+
}, HF = FS(({
|
|
37002
37003
|
data: e,
|
|
37003
37004
|
loading: t
|
|
37004
37005
|
}) => {
|
|
@@ -37007,7 +37008,7 @@ const BV = [{
|
|
|
37007
37008
|
return e.slice(l, c);
|
|
37008
37009
|
}, [e, n, s]);
|
|
37009
37010
|
return /* @__PURE__ */ r.jsxs(ht, { children: [
|
|
37010
|
-
/* @__PURE__ */ r.jsx(
|
|
37011
|
+
/* @__PURE__ */ r.jsx(GF, { data: e, page: n, setPage: i, limit: s, setLimit: a }),
|
|
37011
37012
|
/* @__PURE__ */ r.jsxs(R, { py: 10, sx: {
|
|
37012
37013
|
width: "100%",
|
|
37013
37014
|
height: "calc(100% - 42px)",
|
|
@@ -37018,7 +37019,7 @@ const BV = [{
|
|
|
37018
37019
|
/* @__PURE__ */ r.jsx(rg, { data: o })
|
|
37019
37020
|
] })
|
|
37020
37021
|
] });
|
|
37021
|
-
}),
|
|
37022
|
+
}), QF = ({
|
|
37022
37023
|
queryID: e
|
|
37023
37024
|
}) => {
|
|
37024
37025
|
const t = lt(), {
|
|
@@ -37038,7 +37039,7 @@ const BV = [{
|
|
|
37038
37039
|
} = v(), s = lt(), {
|
|
37039
37040
|
data: a,
|
|
37040
37041
|
state: o
|
|
37041
|
-
} = s.getDataStuffByID(e), l = o === "loading", c =
|
|
37042
|
+
} = s.getDataStuffByID(e), l = o === "loading", c = Fe(() => {
|
|
37042
37043
|
s.queries.refetchDataByQueryID(e);
|
|
37043
37044
|
}, [e, s]), d = () => {
|
|
37044
37045
|
s.queries.downloadDataByQueryID(e);
|
|
@@ -37067,11 +37068,11 @@ const BV = [{
|
|
|
37067
37068
|
flexGrow: 1,
|
|
37068
37069
|
overflow: "auto"
|
|
37069
37070
|
}, children: [
|
|
37070
|
-
/* @__PURE__ */ r.jsx(
|
|
37071
|
-
/* @__PURE__ */ r.jsx(
|
|
37071
|
+
/* @__PURE__ */ r.jsx(QF, { queryID: e }),
|
|
37072
|
+
/* @__PURE__ */ r.jsx(HF, { data: a, loading: l })
|
|
37072
37073
|
] })
|
|
37073
37074
|
] });
|
|
37074
|
-
}),
|
|
37075
|
+
}), UF = D(function() {
|
|
37075
37076
|
const {
|
|
37076
37077
|
t
|
|
37077
37078
|
} = v(), n = Ie(), i = be(), {
|
|
@@ -37080,7 +37081,7 @@ const BV = [{
|
|
|
37080
37081
|
n.editor.setPath(["_QUERIES_", d]);
|
|
37081
37082
|
}, c = s.queryIDs.length;
|
|
37082
37083
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
37083
|
-
/* @__PURE__ */ r.jsx(
|
|
37084
|
+
/* @__PURE__ */ r.jsx(Vg, { opened: a, onClose: () => o(!1), title: t("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(me.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(C, { spacing: "lg", children: i.queries.options.map((d) => /* @__PURE__ */ r.jsx(me, { label: d.label, value: d.value }, d.value)) }) }) }),
|
|
37084
37085
|
/* @__PURE__ */ r.jsxs(C, { spacing: 6, children: [
|
|
37085
37086
|
/* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(M, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(Eb, { size: 16 }), onClick: () => o(!0), children: t(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
|
|
37086
37087
|
c === 1 && /* @__PURE__ */ r.jsx(tl, { id: s.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(ve, { label: t("query.open"), children: /* @__PURE__ */ r.jsx(re, { variant: "subtle", color: "blue", onClick: () => l(s.queryIDs[0]), children: /* @__PURE__ */ r.jsx(wo, { size: 16 }) }) }) }),
|
|
@@ -37090,7 +37091,7 @@ const BV = [{
|
|
|
37090
37091
|
] })
|
|
37091
37092
|
] })
|
|
37092
37093
|
] });
|
|
37093
|
-
}),
|
|
37094
|
+
}), YF = D(() => {
|
|
37094
37095
|
const {
|
|
37095
37096
|
panel: e
|
|
37096
37097
|
} = Rn();
|
|
@@ -37145,7 +37146,7 @@ const BV = [{
|
|
|
37145
37146
|
average: !1
|
|
37146
37147
|
}
|
|
37147
37148
|
};
|
|
37148
|
-
class
|
|
37149
|
+
class KF {
|
|
37149
37150
|
constructor(t) {
|
|
37150
37151
|
U(this, "panel");
|
|
37151
37152
|
U(this, "selected");
|
|
@@ -37195,13 +37196,13 @@ class KV {
|
|
|
37195
37196
|
}
|
|
37196
37197
|
}
|
|
37197
37198
|
}
|
|
37198
|
-
function
|
|
37199
|
+
function XF() {
|
|
37199
37200
|
const {
|
|
37200
37201
|
panel: e
|
|
37201
37202
|
} = zt();
|
|
37202
|
-
return pn(() => new
|
|
37203
|
+
return pn(() => new KF(e), [e]);
|
|
37203
37204
|
}
|
|
37204
|
-
function
|
|
37205
|
+
function JF({
|
|
37205
37206
|
label: e,
|
|
37206
37207
|
value: t,
|
|
37207
37208
|
onChange: n
|
|
@@ -37228,8 +37229,8 @@ function JV({
|
|
|
37228
37229
|
] })
|
|
37229
37230
|
] });
|
|
37230
37231
|
}
|
|
37231
|
-
const
|
|
37232
|
-
function
|
|
37232
|
+
const ZF = $.forwardRef(JF);
|
|
37233
|
+
function eV({
|
|
37233
37234
|
label: e,
|
|
37234
37235
|
value: t,
|
|
37235
37236
|
onChange: n,
|
|
@@ -37258,7 +37259,7 @@ function eF({
|
|
|
37258
37259
|
] })
|
|
37259
37260
|
] });
|
|
37260
37261
|
}
|
|
37261
|
-
const
|
|
37262
|
+
const tV = $.forwardRef(eV), nV = $.forwardRef(function({
|
|
37262
37263
|
value: t,
|
|
37263
37264
|
onChange: n
|
|
37264
37265
|
}, i) {
|
|
@@ -37308,12 +37309,12 @@ const tF = $.forwardRef(eF), nF = $.forwardRef(function({
|
|
|
37308
37309
|
}], value: t.color.type, onChange: l }),
|
|
37309
37310
|
a === "static" && /* @__PURE__ */ r.jsx(kt, { value: t.color.staticColor, onChange: (c) => o("color.staticColor", c) }),
|
|
37310
37311
|
a === "continuous" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
37311
|
-
/* @__PURE__ */ r.jsx(
|
|
37312
|
-
/* @__PURE__ */ r.jsx(
|
|
37312
|
+
/* @__PURE__ */ r.jsx(tV, { label: "Value Range", value: t.color.valueRange, type: "number", onChange: (c) => o("color.valueRange", c) }),
|
|
37313
|
+
/* @__PURE__ */ r.jsx(ZF, { label: "Color Range", value: t.color.colorRange, onChange: (c) => o("color.colorRange", c) })
|
|
37313
37314
|
] })
|
|
37314
37315
|
] })
|
|
37315
37316
|
] });
|
|
37316
|
-
}),
|
|
37317
|
+
}), rV = $.forwardRef(function({
|
|
37317
37318
|
value: t,
|
|
37318
37319
|
onChange: n,
|
|
37319
37320
|
withStyle: i = !0,
|
|
@@ -37341,11 +37342,11 @@ const tF = $.forwardRef(eF), nF = $.forwardRef(function({
|
|
|
37341
37342
|
] }),
|
|
37342
37343
|
i && /* @__PURE__ */ r.jsx(ys, { variant: "contained", children: /* @__PURE__ */ r.jsxs(ys.Item, { value: "Styles", children: [
|
|
37343
37344
|
/* @__PURE__ */ r.jsx(ys.Control, { icon: /* @__PURE__ */ r.jsx(w, { size: "xl", children: "🖼️" }), children: o("style.label") }),
|
|
37344
|
-
/* @__PURE__ */ r.jsx(ys.Panel, { children: /* @__PURE__ */ r.jsx(
|
|
37345
|
+
/* @__PURE__ */ r.jsx(ys.Panel, { children: /* @__PURE__ */ r.jsx(nV, { value: t, onChange: n }) })
|
|
37345
37346
|
] }) }),
|
|
37346
37347
|
/* @__PURE__ */ r.jsx(M, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(mn, { size: 16 }), color: "red", variant: "light", onClick: s, children: o("panel.variable.delete") })
|
|
37347
37348
|
] });
|
|
37348
|
-
}),
|
|
37349
|
+
}), iV = D((e) => {
|
|
37349
37350
|
const {
|
|
37350
37351
|
t
|
|
37351
37352
|
} = v(), n = pn(() => m2(e.variable), [e.variable]), i = () => e.uiModel.remove(e.variable);
|
|
@@ -37354,7 +37355,7 @@ const tF = $.forwardRef(eF), nF = $.forwardRef(function({
|
|
|
37354
37355
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(Ji, { size: 18 }), children: t("common.actions.revert_changes") }),
|
|
37355
37356
|
/* @__PURE__ */ r.jsx(M, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx(et, { size: 18 }), children: t("common.actions.save_changes") })
|
|
37356
37357
|
] }),
|
|
37357
|
-
/* @__PURE__ */ r.jsx(
|
|
37358
|
+
/* @__PURE__ */ r.jsx(rV, { value: In(n.copy), onChange: n.update, remove: i })
|
|
37358
37359
|
] });
|
|
37359
37360
|
});
|
|
37360
37361
|
D((e) => {
|
|
@@ -37363,7 +37364,7 @@ D((e) => {
|
|
|
37363
37364
|
} = e;
|
|
37364
37365
|
return /* @__PURE__ */ r.jsx(C, { className: "var-list", children: t.variables.map((n) => /* @__PURE__ */ r.jsx(M, { variant: t.selected === n ? "filled" : "subtle", color: "gray", onClick: () => t.select(n), children: n.name }, n.name)) });
|
|
37365
37366
|
});
|
|
37366
|
-
const
|
|
37367
|
+
const sV = D(({
|
|
37367
37368
|
model: e
|
|
37368
37369
|
}) => {
|
|
37369
37370
|
const {
|
|
@@ -37377,12 +37378,12 @@ const sF = D(({
|
|
|
37377
37378
|
alignSelf: "flex-end",
|
|
37378
37379
|
height: "38px"
|
|
37379
37380
|
}, children: t("panel.variable.add") }) });
|
|
37380
|
-
}),
|
|
37381
|
+
}), aV = D(() => {
|
|
37381
37382
|
var n;
|
|
37382
37383
|
const {
|
|
37383
37384
|
t: e
|
|
37384
|
-
} = v(), t =
|
|
37385
|
-
return t.variableOptions.length === 0 ? /* @__PURE__ */ r.jsx(
|
|
37385
|
+
} = v(), t = XF();
|
|
37386
|
+
return t.variableOptions.length === 0 ? /* @__PURE__ */ r.jsx(sV, { model: t }) : /* @__PURE__ */ r.jsxs(C, { pb: 20, children: [
|
|
37386
37387
|
/* @__PURE__ */ r.jsxs(y, { position: "left", children: [
|
|
37387
37388
|
/* @__PURE__ */ r.jsx(q, { label: e("panel.variable.labels"), data: t.variableOptions, value: (n = t.selected) == null ? void 0 : n.name, onChange: t.selectByName, maxDropdownHeight: 600, sx: {
|
|
37388
37389
|
flexGrow: 1
|
|
@@ -37395,9 +37396,9 @@ const sF = D(({
|
|
|
37395
37396
|
}, children: e("panel.variable.add") })
|
|
37396
37397
|
] }),
|
|
37397
37398
|
/* @__PURE__ */ r.jsx(O, { variant: "dashed" }),
|
|
37398
|
-
t.selected ? /* @__PURE__ */ r.jsx(
|
|
37399
|
+
t.selected ? /* @__PURE__ */ r.jsx(iV, { uiModel: t, variable: t.selected }) : /* @__PURE__ */ r.jsx("span", { children: "Select or create a new variable on right side" })
|
|
37399
37400
|
] });
|
|
37400
|
-
}),
|
|
37401
|
+
}), oV = D(() => {
|
|
37401
37402
|
const {
|
|
37402
37403
|
t: e
|
|
37403
37404
|
} = v(), {
|
|
@@ -37408,7 +37409,7 @@ const sF = D(({
|
|
|
37408
37409
|
/* @__PURE__ */ r.jsx(dr, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t.variableStrings, null, 4) })
|
|
37409
37410
|
] });
|
|
37410
37411
|
});
|
|
37411
|
-
function
|
|
37412
|
+
function lV() {
|
|
37412
37413
|
const {
|
|
37413
37414
|
t: e
|
|
37414
37415
|
} = v(), {
|
|
@@ -37423,7 +37424,7 @@ function lF() {
|
|
|
37423
37424
|
return k.orderBy(n, [(i) => i.group, (i) => i.label], ["asc", "asc"]);
|
|
37424
37425
|
}, [t]);
|
|
37425
37426
|
}
|
|
37426
|
-
const
|
|
37427
|
+
const cV = D(({
|
|
37427
37428
|
value: e,
|
|
37428
37429
|
submit: t
|
|
37429
37430
|
}) => {
|
|
@@ -37433,17 +37434,17 @@ const cF = D(({
|
|
|
37433
37434
|
Q(() => {
|
|
37434
37435
|
s(e);
|
|
37435
37436
|
}, [e]);
|
|
37436
|
-
const a =
|
|
37437
|
+
const a = lV(), o = e !== i;
|
|
37437
37438
|
return /* @__PURE__ */ r.jsx(q, { label: n("visualization.component"), value: i, searchable: !0, onChange: s, data: a, rightSection: /* @__PURE__ */ r.jsx(re, { variant: "filled", color: "green", disabled: !o, onClick: () => t(i), children: /* @__PURE__ */ r.jsx(Qn, { size: 20 }) }), maxDropdownHeight: 600 });
|
|
37438
37439
|
}), $u = [];
|
|
37439
|
-
function
|
|
37440
|
+
function dV(e, t) {
|
|
37440
37441
|
try {
|
|
37441
37442
|
return e.resolveComponent(t).createConfig();
|
|
37442
37443
|
} catch {
|
|
37443
37444
|
return null;
|
|
37444
37445
|
}
|
|
37445
37446
|
}
|
|
37446
|
-
function
|
|
37447
|
+
function uV() {
|
|
37447
37448
|
const {
|
|
37448
37449
|
data: e,
|
|
37449
37450
|
panel: {
|
|
@@ -37464,14 +37465,14 @@ function uF() {
|
|
|
37464
37465
|
viz: n,
|
|
37465
37466
|
queryIDs: a,
|
|
37466
37467
|
id: l
|
|
37467
|
-
}, h =
|
|
37468
|
+
}, h = Fx(d);
|
|
37468
37469
|
try {
|
|
37469
37470
|
return c.resolveComponent(d.viz.type), /* @__PURE__ */ r.jsx(Na, { configure: h, children: /* @__PURE__ */ r.jsx(_2, { variables: t, setVizConf: n.setConf, panel: d, vizManager: c, data: e }) });
|
|
37470
37471
|
} catch (u) {
|
|
37471
37472
|
return console.info(xe(u, "message")), null;
|
|
37472
37473
|
}
|
|
37473
37474
|
}
|
|
37474
|
-
const
|
|
37475
|
+
const hV = D(() => {
|
|
37475
37476
|
const {
|
|
37476
37477
|
data: e,
|
|
37477
37478
|
panel: {
|
|
@@ -37482,7 +37483,7 @@ const hF = D(() => {
|
|
|
37482
37483
|
} = Yn(Pn), i = $.useCallback((d) => {
|
|
37483
37484
|
if (d === t.type)
|
|
37484
37485
|
return;
|
|
37485
|
-
const h =
|
|
37486
|
+
const h = dV(n, d);
|
|
37486
37487
|
t.setType(d), t.setConf(h || {});
|
|
37487
37488
|
}, [t.type]), s = (d) => {
|
|
37488
37489
|
try {
|
|
@@ -37493,7 +37494,7 @@ const hF = D(() => {
|
|
|
37493
37494
|
}, a = $.useMemo(() => {
|
|
37494
37495
|
var d;
|
|
37495
37496
|
return (d = $u.find((h) => h.value === t.type)) == null ? void 0 : d.Panel;
|
|
37496
|
-
}, [t.type, $u]), o =
|
|
37497
|
+
}, [t.type, $u]), o = uV(), l = a ? ha(a, {
|
|
37497
37498
|
data: e,
|
|
37498
37499
|
conf: t.conf,
|
|
37499
37500
|
setConf: t.setConf
|
|
@@ -37502,7 +37503,7 @@ const hF = D(() => {
|
|
|
37502
37503
|
height: "100%",
|
|
37503
37504
|
overflow: "hidden"
|
|
37504
37505
|
}, children: [
|
|
37505
|
-
/* @__PURE__ */ r.jsx(
|
|
37506
|
+
/* @__PURE__ */ r.jsx(cV, { submit: i, value: t.type }),
|
|
37506
37507
|
/* @__PURE__ */ r.jsxs(ht, { children: [
|
|
37507
37508
|
/* @__PURE__ */ r.jsx(C, { pb: 10, sx: {
|
|
37508
37509
|
flexGrow: 1,
|
|
@@ -37512,7 +37513,7 @@ const hF = D(() => {
|
|
|
37512
37513
|
!c && /* @__PURE__ */ r.jsx(Gu, { minRows: 20, label: "Config", value: JSON.stringify(t.conf, null, 2), onChange: s })
|
|
37513
37514
|
] })
|
|
37514
37515
|
] });
|
|
37515
|
-
}),
|
|
37516
|
+
}), pV = D(({
|
|
37516
37517
|
panel: e,
|
|
37517
37518
|
sourceViewID: t
|
|
37518
37519
|
}) => {
|
|
@@ -37548,7 +37549,7 @@ const hF = D(() => {
|
|
|
37548
37549
|
] })
|
|
37549
37550
|
] }) })
|
|
37550
37551
|
] });
|
|
37551
|
-
}),
|
|
37552
|
+
}), mV = {
|
|
37552
37553
|
root: {
|
|
37553
37554
|
flexGrow: 1,
|
|
37554
37555
|
width: "100%",
|
|
@@ -37580,21 +37581,21 @@ const hF = D(() => {
|
|
|
37580
37581
|
flexGrow: 0,
|
|
37581
37582
|
flexShrink: 0
|
|
37582
37583
|
}, children: [
|
|
37583
|
-
/* @__PURE__ */ r.jsx(
|
|
37584
|
+
/* @__PURE__ */ r.jsx(YF, {}),
|
|
37584
37585
|
/* @__PURE__ */ r.jsx(R, { sx: {
|
|
37585
37586
|
flexGrow: 1
|
|
37586
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
37587
|
+
}, children: /* @__PURE__ */ r.jsx(oV, {}) })
|
|
37587
37588
|
] })
|
|
37588
37589
|
] });
|
|
37589
|
-
function
|
|
37590
|
+
function fV(e) {
|
|
37590
37591
|
return !["richText", "button"].includes(e);
|
|
37591
37592
|
}
|
|
37592
|
-
const
|
|
37593
|
+
const xV = D(({
|
|
37593
37594
|
panel: e
|
|
37594
37595
|
}) => {
|
|
37595
37596
|
const {
|
|
37596
37597
|
t
|
|
37597
|
-
} = v(), n = Ln(), i = Ie(), s = be(), [a, o] = Z("Data"), l = e.queries, d =
|
|
37598
|
+
} = v(), n = Ln(), i = Ie(), s = be(), [a, o] = Z("Data"), l = e.queries, d = fV(e.viz.type) && e.dataLoading, h = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || l.length === 0, u = i.editor.path[1];
|
|
37598
37599
|
Q(() => {
|
|
37599
37600
|
o((f) => h && f === "Visualization" ? "Data" : f);
|
|
37600
37601
|
}, [e.id, h]);
|
|
@@ -37628,11 +37629,11 @@ const xF = D(({
|
|
|
37628
37629
|
}, children: [
|
|
37629
37630
|
/* @__PURE__ */ r.jsx(w, { pt: 9, pb: 8, children: e.name }),
|
|
37630
37631
|
/* @__PURE__ */ r.jsxs(y, { position: "right", noWrap: !0, children: [
|
|
37631
|
-
/* @__PURE__ */ r.jsx(
|
|
37632
|
+
/* @__PURE__ */ r.jsx(pV, { panel: e, sourceViewID: u }),
|
|
37632
37633
|
/* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", color: "red", onClick: m, leftIcon: /* @__PURE__ */ r.jsx(mn, { size: 14 }), children: t("panel.delete") })
|
|
37633
37634
|
] })
|
|
37634
37635
|
] }),
|
|
37635
|
-
/* @__PURE__ */ r.jsxs(_, { value: a, onTabChange: o, keepMounted: !1, styles:
|
|
37636
|
+
/* @__PURE__ */ r.jsxs(_, { value: a, onTabChange: o, keepMounted: !1, styles: mV, children: [
|
|
37636
37637
|
/* @__PURE__ */ r.jsxs(_.List, { children: [
|
|
37637
37638
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Data", disabled: d, children: t("data.label") }),
|
|
37638
37639
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Panel", children: t("panel.label") }),
|
|
@@ -37642,15 +37643,15 @@ const xF = D(({
|
|
|
37642
37643
|
] }),
|
|
37643
37644
|
/* @__PURE__ */ r.jsxs(_.Panel, { value: "Data", children: [
|
|
37644
37645
|
/* @__PURE__ */ r.jsx(Or, { visible: d, exitTransitionDuration: 0 }),
|
|
37645
|
-
/* @__PURE__ */ r.jsx(
|
|
37646
|
+
/* @__PURE__ */ r.jsx(UF, {})
|
|
37646
37647
|
] }),
|
|
37647
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(yo, { children: /* @__PURE__ */ r.jsx(
|
|
37648
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Variables", children: /* @__PURE__ */ r.jsx(yo, { children: /* @__PURE__ */ r.jsx(
|
|
37649
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Visualization", children: /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(yo, { children: /* @__PURE__ */ r.jsx(
|
|
37648
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(yo, { children: /* @__PURE__ */ r.jsx(NF, {}) }) }),
|
|
37649
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Variables", children: /* @__PURE__ */ r.jsx(yo, { children: /* @__PURE__ */ r.jsx(aV, {}) }) }),
|
|
37650
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Visualization", children: /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(yo, { children: /* @__PURE__ */ r.jsx(hV, {}) }) }) }),
|
|
37650
37651
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Interactions", children: /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(mk, {}) }) })
|
|
37651
37652
|
] })
|
|
37652
37653
|
] });
|
|
37653
|
-
}),
|
|
37654
|
+
}), gV = D(({
|
|
37654
37655
|
viewID: e,
|
|
37655
37656
|
panelID: t
|
|
37656
37657
|
}) => {
|
|
@@ -37662,12 +37663,12 @@ const xF = D(({
|
|
|
37662
37663
|
"] is not found"
|
|
37663
37664
|
] });
|
|
37664
37665
|
const s = n.panels.findByID(t);
|
|
37665
|
-
return s ? /* @__PURE__ */ r.jsx(
|
|
37666
|
+
return s ? /* @__PURE__ */ r.jsx(xV, { panel: s }) : /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
|
|
37666
37667
|
"Panel by ID[",
|
|
37667
37668
|
t,
|
|
37668
37669
|
"] is not found"
|
|
37669
37670
|
] });
|
|
37670
|
-
}),
|
|
37671
|
+
}), bV = D(() => {
|
|
37671
37672
|
const {
|
|
37672
37673
|
t: e
|
|
37673
37674
|
} = v(), [t, n] = Z([]), i = Ln(), s = Ie(), a = (p) => {
|
|
@@ -37774,7 +37775,7 @@ const xF = D(({
|
|
|
37774
37775
|
}) })
|
|
37775
37776
|
] }) }) })
|
|
37776
37777
|
] });
|
|
37777
|
-
}),
|
|
37778
|
+
}), yV = (e) => {
|
|
37778
37779
|
const {
|
|
37779
37780
|
t
|
|
37780
37781
|
} = v(), {
|
|
@@ -37805,7 +37806,7 @@ const xF = D(({
|
|
|
37805
37806
|
}, children: /* @__PURE__ */ r.jsx(M, { disabled: !0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(mn, { size: 16 }), children: t("query.delete") }) }) }) : /* @__PURE__ */ r.jsx(M, { color: "red", size: "xs", onClick: c, leftIcon: /* @__PURE__ */ r.jsx(mn, { size: 16 }), sx: {
|
|
37806
37807
|
alignSelf: "flex-end"
|
|
37807
37808
|
}, children: t("query.delete") });
|
|
37808
|
-
},
|
|
37809
|
+
}, vV = D(yV), ig = ({
|
|
37809
37810
|
width: e = "calc(100% - 32px)",
|
|
37810
37811
|
lastWidth: t = "50%",
|
|
37811
37812
|
height: n,
|
|
@@ -37817,7 +37818,7 @@ const xF = D(({
|
|
|
37817
37818
|
/* @__PURE__ */ r.jsx(ud, { width: t, height: n, radius: "xs" })
|
|
37818
37819
|
] }), Oi = ({
|
|
37819
37820
|
value: e
|
|
37820
|
-
}) => e === null || e === "" ? null : /* @__PURE__ */ r.jsx(ve, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ r.jsx(re, { children: /* @__PURE__ */ r.jsx(
|
|
37821
|
+
}) => e === null || e === "" ? null : /* @__PURE__ */ r.jsx(ve, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ r.jsx(re, { children: /* @__PURE__ */ r.jsx(Vr, { size: 14 }) }) }), _V = ({
|
|
37821
37822
|
column: e
|
|
37822
37823
|
}) => {
|
|
37823
37824
|
const {
|
|
@@ -37825,7 +37826,7 @@ const xF = D(({
|
|
|
37825
37826
|
column_key_text: n
|
|
37826
37827
|
} = e;
|
|
37827
37828
|
return t ? /* @__PURE__ */ r.jsx(ve, { label: n, disabled: !n, children: /* @__PURE__ */ r.jsx(cr, { children: t }) }) : null;
|
|
37828
|
-
},
|
|
37829
|
+
}, jV = D(({
|
|
37829
37830
|
dataSource: e
|
|
37830
37831
|
}) => {
|
|
37831
37832
|
const {
|
|
@@ -37879,13 +37880,13 @@ const xF = D(({
|
|
|
37879
37880
|
/* @__PURE__ */ r.jsx("td", { children: n.ordinal_position }),
|
|
37880
37881
|
/* @__PURE__ */ r.jsx("td", { children: n.column_name }),
|
|
37881
37882
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Oi, { value: n.column_comment }) }),
|
|
37882
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
37883
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(_V, { column: n }) }),
|
|
37883
37884
|
/* @__PURE__ */ r.jsx("td", { children: n.column_type }),
|
|
37884
37885
|
/* @__PURE__ */ r.jsx("td", { children: n.is_nullable }),
|
|
37885
37886
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Oi, { value: n.column_default }) })
|
|
37886
37887
|
] }, n.column_name)) })
|
|
37887
37888
|
] });
|
|
37888
|
-
}),
|
|
37889
|
+
}), wV = D(({
|
|
37889
37890
|
dataSource: e
|
|
37890
37891
|
}) => {
|
|
37891
37892
|
const {
|
|
@@ -37933,7 +37934,7 @@ const xF = D(({
|
|
|
37933
37934
|
/* @__PURE__ */ r.jsx("td", { children: i.column_name })
|
|
37934
37935
|
] }, i.index_name)) })
|
|
37935
37936
|
] });
|
|
37936
|
-
}),
|
|
37937
|
+
}), SV = D(({
|
|
37937
37938
|
dataSource: e
|
|
37938
37939
|
}) => {
|
|
37939
37940
|
const {
|
|
@@ -37986,29 +37987,29 @@ const xF = D(({
|
|
|
37986
37987
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Oi, { value: i.comment }) })
|
|
37987
37988
|
] }, i.index_name)) })
|
|
37988
37989
|
] });
|
|
37989
|
-
}),
|
|
37990
|
+
}), kV = D(({
|
|
37990
37991
|
dataSource: e
|
|
37991
37992
|
}) => {
|
|
37992
37993
|
const {
|
|
37993
37994
|
indexes: t
|
|
37994
37995
|
} = e;
|
|
37995
|
-
return t.loading || t.empty ? null : e.type === Ze.MySQL ? /* @__PURE__ */ r.jsx(
|
|
37996
|
-
}),
|
|
37996
|
+
return t.loading || t.empty ? null : e.type === Ze.MySQL ? /* @__PURE__ */ r.jsx(wV, { dataSource: e }) : e.type === Ze.Postgresql ? /* @__PURE__ */ r.jsx(SV, { dataSource: e }) : null;
|
|
37997
|
+
}), CV = D(({
|
|
37997
37998
|
dataSource: e
|
|
37998
37999
|
}) => /* @__PURE__ */ r.jsxs(C, { spacing: 40, pt: 10, sx: {
|
|
37999
38000
|
flexGrow: 1,
|
|
38000
38001
|
overflow: "auto",
|
|
38001
38002
|
position: "relative"
|
|
38002
38003
|
}, children: [
|
|
38003
|
-
/* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(
|
|
38004
|
-
/* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(
|
|
38004
|
+
/* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(jV, { dataSource: e }) }),
|
|
38005
|
+
/* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(kV, { dataSource: e }) })
|
|
38005
38006
|
] }));
|
|
38006
|
-
function
|
|
38007
|
+
function IV({
|
|
38007
38008
|
table_type: e
|
|
38008
38009
|
}) {
|
|
38009
38010
|
return e === "VIEW" ? /* @__PURE__ */ r.jsx(hh, { size: 14 }) : e === "BASE TABLE" ? /* @__PURE__ */ r.jsx(Lb, { size: 14 }) : null;
|
|
38010
38011
|
}
|
|
38011
|
-
const
|
|
38012
|
+
const TV = D(({
|
|
38012
38013
|
dataSource: e
|
|
38013
38014
|
}) => {
|
|
38014
38015
|
const {
|
|
@@ -38019,17 +38020,17 @@ const TF = D(({
|
|
|
38019
38020
|
".mantine-NavLink-label": {
|
|
38020
38021
|
fontFamily: "monospace"
|
|
38021
38022
|
}
|
|
38022
|
-
}, children: Object.entries(t.data).map(([n, i]) => /* @__PURE__ */ r.jsx(vo, { label: n, icon: /* @__PURE__ */ r.jsx(Zi, { size: 14 }), defaultOpened: e.table_schema === n, pl: 0, childrenOffset: 14, children: i.map((s) => /* @__PURE__ */ r.jsx(vo, { label: s.table_name, icon: /* @__PURE__ */ r.jsx(
|
|
38023
|
+
}, children: Object.entries(t.data).map(([n, i]) => /* @__PURE__ */ r.jsx(vo, { label: n, icon: /* @__PURE__ */ r.jsx(Zi, { size: 14 }), defaultOpened: e.table_schema === n, pl: 0, childrenOffset: 14, children: i.map((s) => /* @__PURE__ */ r.jsx(vo, { label: s.table_name, icon: /* @__PURE__ */ r.jsx(IV, { table_type: s.table_type }), onClick: () => {
|
|
38023
38024
|
e.setKeywords(n, s.table_name);
|
|
38024
38025
|
}, active: e.table_name === s.table_name }, s.table_name)) }, n)) });
|
|
38025
|
-
}),
|
|
38026
|
+
}), zV = ({
|
|
38026
38027
|
visible: e
|
|
38027
38028
|
}) => /* @__PURE__ */ r.jsx(R, { py: 10, sx: {
|
|
38028
38029
|
width: "100%",
|
|
38029
38030
|
height: "100%",
|
|
38030
38031
|
overflow: "hidden",
|
|
38031
38032
|
position: "relative"
|
|
38032
|
-
}, children: /* @__PURE__ */ r.jsx(Or, { visible: e }) }),
|
|
38033
|
+
}, children: /* @__PURE__ */ r.jsx(Or, { visible: e }) }), DV = [{
|
|
38033
38034
|
label: "10",
|
|
38034
38035
|
value: "10"
|
|
38035
38036
|
}, {
|
|
@@ -38041,7 +38042,7 @@ const TF = D(({
|
|
|
38041
38042
|
}, {
|
|
38042
38043
|
label: "100",
|
|
38043
38044
|
value: "100"
|
|
38044
|
-
}],
|
|
38045
|
+
}], MV = {
|
|
38045
38046
|
icon: {
|
|
38046
38047
|
width: "50px",
|
|
38047
38048
|
textAlign: "center"
|
|
@@ -38051,7 +38052,7 @@ const TF = D(({
|
|
|
38051
38052
|
paddingLeft: "50px"
|
|
38052
38053
|
}
|
|
38053
38054
|
}
|
|
38054
|
-
},
|
|
38055
|
+
}, EV = D(({
|
|
38055
38056
|
dataSource: e
|
|
38056
38057
|
}) => {
|
|
38057
38058
|
const {
|
|
@@ -38071,8 +38072,8 @@ const TF = D(({
|
|
|
38071
38072
|
{
|
|
38072
38073
|
icon: /* @__PURE__ */ r.jsx(w, { ta: "center", color: "dimmed", size: 14, children: t("common.pagination.page_size") }),
|
|
38073
38074
|
size: "xs",
|
|
38074
|
-
styles:
|
|
38075
|
-
data:
|
|
38075
|
+
styles: MV,
|
|
38076
|
+
data: DV,
|
|
38076
38077
|
value: String(n.limit),
|
|
38077
38078
|
onChange: (i) => n.setLimit(Number(i))
|
|
38078
38079
|
}
|
|
@@ -38082,7 +38083,7 @@ const TF = D(({
|
|
|
38082
38083
|
total: n.total
|
|
38083
38084
|
}) }) })
|
|
38084
38085
|
] });
|
|
38085
|
-
}),
|
|
38086
|
+
}), LV = D(({
|
|
38086
38087
|
dataSource: e
|
|
38087
38088
|
}) => {
|
|
38088
38089
|
const t = e.tableData;
|
|
@@ -38090,8 +38091,8 @@ const TF = D(({
|
|
|
38090
38091
|
fontFamily: "monospace"
|
|
38091
38092
|
}, children: "This table is empty" }) : t.error ? /* @__PURE__ */ r.jsx(w, { mt: 20, color: "red", size: "md", align: "center", sx: {
|
|
38092
38093
|
fontFamily: "monospace"
|
|
38093
|
-
}, children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ r.jsx(
|
|
38094
|
-
/* @__PURE__ */ r.jsx(
|
|
38094
|
+
}, children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ r.jsx(zV, { visible: !0 }) : /* @__PURE__ */ r.jsxs(ht, { children: [
|
|
38095
|
+
/* @__PURE__ */ r.jsx(EV, { dataSource: e }),
|
|
38095
38096
|
/* @__PURE__ */ r.jsxs(R, { py: 10, sx: {
|
|
38096
38097
|
width: "100%",
|
|
38097
38098
|
height: "calc(100% - 42px)",
|
|
@@ -38102,7 +38103,7 @@ const TF = D(({
|
|
|
38102
38103
|
/* @__PURE__ */ r.jsx(rg, { data: t.data })
|
|
38103
38104
|
] })
|
|
38104
38105
|
] });
|
|
38105
|
-
}),
|
|
38106
|
+
}), AV = {
|
|
38106
38107
|
root: {
|
|
38107
38108
|
flexGrow: 1,
|
|
38108
38109
|
overflow: "auto",
|
|
@@ -38114,7 +38115,7 @@ const TF = D(({
|
|
|
38114
38115
|
tab: {
|
|
38115
38116
|
minWidth: 120
|
|
38116
38117
|
}
|
|
38117
|
-
},
|
|
38118
|
+
}, RV = D(({
|
|
38118
38119
|
dataSource: e
|
|
38119
38120
|
}) => {
|
|
38120
38121
|
const {
|
|
@@ -38131,21 +38132,21 @@ const TF = D(({
|
|
|
38131
38132
|
flexGrow: 0,
|
|
38132
38133
|
flexShrink: 0,
|
|
38133
38134
|
position: "relative"
|
|
38134
|
-
}, children: /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(
|
|
38135
|
-
/* @__PURE__ */ r.jsxs(_, { defaultValue: "structure", styles:
|
|
38135
|
+
}, children: /* @__PURE__ */ r.jsx(ht, { children: /* @__PURE__ */ r.jsx(TV, { dataSource: e }) }) }),
|
|
38136
|
+
/* @__PURE__ */ r.jsxs(_, { defaultValue: "structure", styles: AV, children: [
|
|
38136
38137
|
/* @__PURE__ */ r.jsxs(_.List, { children: [
|
|
38137
38138
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "structure", icon: /* @__PURE__ */ r.jsx(Ab, { size: 14 }), children: t("data_source.table_structure_short") }),
|
|
38138
38139
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "data", icon: /* @__PURE__ */ r.jsx(Zi, { size: 14 }), children: t("data.label") })
|
|
38139
38140
|
] }),
|
|
38140
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "structure", children: /* @__PURE__ */ r.jsx(
|
|
38141
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "structure", children: /* @__PURE__ */ r.jsx(CV, { dataSource: e }) }),
|
|
38141
38142
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "data", sx: {
|
|
38142
38143
|
width: "100%",
|
|
38143
38144
|
height: "calc(100% - 36px)",
|
|
38144
38145
|
overflow: "hidden"
|
|
38145
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
38146
|
+
}, children: /* @__PURE__ */ r.jsx(LV, { dataSource: e }) })
|
|
38146
38147
|
] })
|
|
38147
38148
|
] });
|
|
38148
|
-
}), $
|
|
38149
|
+
}), $V = {
|
|
38149
38150
|
modal: {
|
|
38150
38151
|
paddingLeft: "0px !important",
|
|
38151
38152
|
paddingRight: "0px !important"
|
|
@@ -38184,16 +38185,16 @@ const TF = D(({
|
|
|
38184
38185
|
to: "red"
|
|
38185
38186
|
}, children: e.type })
|
|
38186
38187
|
] })
|
|
38187
|
-
] }), zIndex: 320, size: "96vw", styles: $
|
|
38188
|
+
] }), zIndex: 320, size: "96vw", styles: $V, children: /* @__PURE__ */ r.jsx(R, { sx: {
|
|
38188
38189
|
height: "calc(100vh - 220px)"
|
|
38189
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
38190
|
+
}, children: /* @__PURE__ */ r.jsx(RV, { dataSource: e }) }) }),
|
|
38190
38191
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", onClick: () => s(!0), px: 16, styles: {
|
|
38191
38192
|
inner: {
|
|
38192
38193
|
justifyContent: "flex-start"
|
|
38193
38194
|
}
|
|
38194
38195
|
}, ...t, children: n("data_source.see_table_structure") })
|
|
38195
38196
|
] });
|
|
38196
|
-
}),
|
|
38197
|
+
}), PV = de(({
|
|
38197
38198
|
label: e,
|
|
38198
38199
|
type: t,
|
|
38199
38200
|
...n
|
|
@@ -38212,7 +38213,7 @@ const TF = D(({
|
|
|
38212
38213
|
] }) : /* @__PURE__ */ r.jsxs(y, { position: "apart", ref: i, ...n, children: [
|
|
38213
38214
|
/* @__PURE__ */ r.jsx(w, { children: e }),
|
|
38214
38215
|
/* @__PURE__ */ r.jsx(w, { children: t })
|
|
38215
|
-
] })),
|
|
38216
|
+
] })), OV = D(({
|
|
38216
38217
|
value: e,
|
|
38217
38218
|
onChange: t
|
|
38218
38219
|
}) => {
|
|
@@ -38247,7 +38248,7 @@ const TF = D(({
|
|
|
38247
38248
|
size: "xs",
|
|
38248
38249
|
px: 10
|
|
38249
38250
|
} })
|
|
38250
|
-
] }), itemComponent:
|
|
38251
|
+
] }), itemComponent: PV, rightSection: d ? /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
|
|
38251
38252
|
root: {
|
|
38252
38253
|
flex: 1
|
|
38253
38254
|
},
|
|
@@ -38263,7 +38264,7 @@ const TF = D(({
|
|
|
38263
38264
|
}
|
|
38264
38265
|
}
|
|
38265
38266
|
}, disabled: a, value: e.key, onChange: c });
|
|
38266
|
-
}),
|
|
38267
|
+
}), FV = D(({
|
|
38267
38268
|
queryModel: e
|
|
38268
38269
|
}) => {
|
|
38269
38270
|
const {
|
|
@@ -38284,7 +38285,7 @@ const TF = D(({
|
|
|
38284
38285
|
}, rightSection: /* @__PURE__ */ r.jsx(re, { variant: "filled", color: "blue", size: "sm", onClick: () => e.setName(n), disabled: n === e.name, children: /* @__PURE__ */ r.jsx(et, { size: 16 }) }), onBlur: () => {
|
|
38285
38286
|
e.setName(n);
|
|
38286
38287
|
} }),
|
|
38287
|
-
/* @__PURE__ */ r.jsx(
|
|
38288
|
+
/* @__PURE__ */ r.jsx(OV, { value: {
|
|
38288
38289
|
type: e.type,
|
|
38289
38290
|
key: e.key
|
|
38290
38291
|
}, onChange: ({
|
|
@@ -38297,10 +38298,10 @@ const TF = D(({
|
|
|
38297
38298
|
/* @__PURE__ */ r.jsx(ai, { label: t("query.run_by_condition.label"), placeholder: t("query.run_by_condition.unset"), data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent: ou, maxDropdownHeight: 500 }),
|
|
38298
38299
|
e.typedAsHTTP && /* @__PURE__ */ r.jsx(ai, { label: t("query.re_run_condition.label"), placeholder: t("query.re_run_condition.label"), data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent: ou, maxDropdownHeight: 500 }),
|
|
38299
38300
|
/* @__PURE__ */ r.jsx(O, { mt: 20, mb: 10, variant: "dashed" }),
|
|
38300
|
-
/* @__PURE__ */ r.jsx(
|
|
38301
|
+
/* @__PURE__ */ r.jsx(vV, { queryModel: e })
|
|
38301
38302
|
] }) });
|
|
38302
38303
|
});
|
|
38303
|
-
function
|
|
38304
|
+
function VV({
|
|
38304
38305
|
content: e
|
|
38305
38306
|
}) {
|
|
38306
38307
|
return /* @__PURE__ */ r.jsxs(Ke, { width: "60vw", shadow: "md", children: [
|
|
@@ -38308,7 +38309,7 @@ function FF({
|
|
|
38308
38309
|
/* @__PURE__ */ r.jsx(Ke.Dropdown, { children: /* @__PURE__ */ r.jsx(dr, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
|
|
38309
38310
|
] });
|
|
38310
38311
|
}
|
|
38311
|
-
const
|
|
38312
|
+
const NV = D(() => {
|
|
38312
38313
|
const t = [...Ie().globalSQLSnippets.list];
|
|
38313
38314
|
return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(at, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
|
|
38314
38315
|
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
@@ -38322,11 +38323,11 @@ const NF = D(() => {
|
|
|
38322
38323
|
} = n;
|
|
38323
38324
|
return /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
38324
38325
|
/* @__PURE__ */ r.jsx("td", { children: i }),
|
|
38325
|
-
/* @__PURE__ */ r.jsx("td", { width: 200, children: /* @__PURE__ */ r.jsx(
|
|
38326
|
+
/* @__PURE__ */ r.jsx("td", { width: 200, children: /* @__PURE__ */ r.jsx(VV, { content: s }) })
|
|
38326
38327
|
] }, i);
|
|
38327
38328
|
}) })
|
|
38328
38329
|
] });
|
|
38329
|
-
}),
|
|
38330
|
+
}), qV = `
|
|
38330
38331
|
-- You may reference query variables in SQL or VizConfig.
|
|
38331
38332
|
SELECT *
|
|
38332
38333
|
FROM commit
|
|
@@ -38366,13 +38367,13 @@ WHERE
|
|
|
38366
38367
|
] }),
|
|
38367
38368
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(dr, { language: "sql", sx: {
|
|
38368
38369
|
width: "100%"
|
|
38369
|
-
}, noCopy: !0, colorScheme: "dark", children:
|
|
38370
|
+
}, noCopy: !0, colorScheme: "dark", children: qV }) }),
|
|
38370
38371
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(dr, { language: "json", sx: {
|
|
38371
38372
|
width: "100%"
|
|
38372
38373
|
}, noCopy: !0, colorScheme: "dark", children: l }) }),
|
|
38373
38374
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(C, { spacing: 10, children: [
|
|
38374
38375
|
/* @__PURE__ */ r.jsx(Qi, { icon: /* @__PURE__ */ r.jsx(jo, { size: 16 }), title: i("global_sql_snippet.labels"), children: i("global_sql_snippet.description") }),
|
|
38375
|
-
/* @__PURE__ */ r.jsx(
|
|
38376
|
+
/* @__PURE__ */ r.jsx(NV, {})
|
|
38376
38377
|
] }) })
|
|
38377
38378
|
] }) });
|
|
38378
38379
|
}), Uc = D(() => {
|
|
@@ -38392,7 +38393,7 @@ WHERE
|
|
|
38392
38393
|
`),
|
|
38393
38394
|
post: ["function process_result(resp, utils, state) {", " return resp.data", "}"].join(`
|
|
38394
38395
|
`)
|
|
38395
|
-
},
|
|
38396
|
+
}, BV = D(({
|
|
38396
38397
|
queryModel: e
|
|
38397
38398
|
}) => {
|
|
38398
38399
|
const {
|
|
@@ -38411,7 +38412,7 @@ WHERE
|
|
|
38411
38412
|
}, p: "sm", children: /* @__PURE__ */ r.jsx(li, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Pu.pre }) }),
|
|
38412
38413
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(li, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Pu.post }) })
|
|
38413
38414
|
] }) : null;
|
|
38414
|
-
}),
|
|
38415
|
+
}), WV = D(({
|
|
38415
38416
|
queryID: e,
|
|
38416
38417
|
usage: t
|
|
38417
38418
|
}) => {
|
|
@@ -38451,7 +38452,7 @@ WHERE
|
|
|
38451
38452
|
] }) })
|
|
38452
38453
|
] }, o.id)) })
|
|
38453
38454
|
] }) });
|
|
38454
|
-
}),
|
|
38455
|
+
}), GV = D(({
|
|
38455
38456
|
queryModel: e
|
|
38456
38457
|
}) => {
|
|
38457
38458
|
const {
|
|
@@ -38477,7 +38478,7 @@ WHERE
|
|
|
38477
38478
|
} }), sx: {
|
|
38478
38479
|
transform: "none !important"
|
|
38479
38480
|
}, children: t("query.dependency.label") }) });
|
|
38480
|
-
}),
|
|
38481
|
+
}), HV = "SELECT 1", QV = D(({
|
|
38481
38482
|
queryModel: e
|
|
38482
38483
|
}) => {
|
|
38483
38484
|
const {
|
|
@@ -38487,7 +38488,7 @@ WHERE
|
|
|
38487
38488
|
}, a = () => {
|
|
38488
38489
|
i(e.sql);
|
|
38489
38490
|
}, o = () => {
|
|
38490
|
-
i(
|
|
38491
|
+
i(HV);
|
|
38491
38492
|
};
|
|
38492
38493
|
Q(() => {
|
|
38493
38494
|
i(e.sql);
|
|
@@ -38500,7 +38501,7 @@ WHERE
|
|
|
38500
38501
|
flexShrink: 0,
|
|
38501
38502
|
flexGrow: 0
|
|
38502
38503
|
}, children: [
|
|
38503
|
-
/* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(
|
|
38504
|
+
/* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(GV, { queryModel: e }) }),
|
|
38504
38505
|
/* @__PURE__ */ r.jsxs(y, { position: "right", children: [
|
|
38505
38506
|
/* @__PURE__ */ r.jsx(M, { onClick: o, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(ah, { size: 16 }), children: t("common.actions.reset_to_default") }),
|
|
38506
38507
|
/* @__PURE__ */ r.jsx(M, { onClick: a, color: "red", size: "xs", disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(Ji, { size: 16 }), children: t("common.actions.revert_changes") }),
|
|
@@ -38509,7 +38510,7 @@ WHERE
|
|
|
38509
38510
|
] }),
|
|
38510
38511
|
/* @__PURE__ */ r.jsx(ic, { height: "100%", value: n, onChange: i, theme: "sql-dark", defaultLanguage: "sql" })
|
|
38511
38512
|
] });
|
|
38512
|
-
}),
|
|
38513
|
+
}), UV = ({
|
|
38513
38514
|
value: e,
|
|
38514
38515
|
height: t = "200px",
|
|
38515
38516
|
defaultLanguage: n = "sql"
|
|
@@ -38522,17 +38523,17 @@ WHERE
|
|
|
38522
38523
|
enabled: !1
|
|
38523
38524
|
},
|
|
38524
38525
|
readOnly: !0
|
|
38525
|
-
} }),
|
|
38526
|
+
} }), YV = D(({
|
|
38526
38527
|
value: e
|
|
38527
38528
|
}) => {
|
|
38528
38529
|
const n = lt().payloadForSQL, i = $.useMemo(() => dl(e, n), [e, n]);
|
|
38529
|
-
return /* @__PURE__ */ r.jsx(
|
|
38530
|
+
return /* @__PURE__ */ r.jsx(UV, { height: "100%", value: i });
|
|
38530
38531
|
}), Ou = {
|
|
38531
38532
|
pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
|
|
38532
38533
|
`),
|
|
38533
38534
|
post: ["function process_result(data, utils, state) {", " // process data and return the result", " return data", "}"].join(`
|
|
38534
38535
|
`)
|
|
38535
|
-
},
|
|
38536
|
+
}, KV = D(({
|
|
38536
38537
|
queryModel: e
|
|
38537
38538
|
}) => {
|
|
38538
38539
|
const {
|
|
@@ -38557,18 +38558,18 @@ WHERE
|
|
|
38557
38558
|
] }),
|
|
38558
38559
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Edit", sx: {
|
|
38559
38560
|
position: "relative"
|
|
38560
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(
|
|
38561
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ r.jsx(
|
|
38561
|
+
}, p: "sm", children: /* @__PURE__ */ r.jsx(QV, { queryModel: e }) }),
|
|
38562
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ r.jsx(YV, { value: e.sql }) }),
|
|
38562
38563
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "pre_process", sx: {
|
|
38563
38564
|
position: "relative"
|
|
38564
38565
|
}, p: "sm", children: /* @__PURE__ */ r.jsx(li, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Ou.pre }) }),
|
|
38565
38566
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(li, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Ou.post }) })
|
|
38566
38567
|
] }) : null;
|
|
38567
|
-
}),
|
|
38568
|
+
}), XV = {
|
|
38568
38569
|
pre: ["function transform(queries, state, utils) {", " // use queries & dashboar state to build new data", " const data = []", " return data", "}"].join(`
|
|
38569
38570
|
`),
|
|
38570
38571
|
post: ""
|
|
38571
|
-
},
|
|
38572
|
+
}, JV = D(({
|
|
38572
38573
|
queryModel: e
|
|
38573
38574
|
}) => {
|
|
38574
38575
|
const {
|
|
@@ -38582,13 +38583,13 @@ WHERE
|
|
|
38582
38583
|
/* @__PURE__ */ r.jsx(w, { size: "sm", children: t("query.transform.guide.write_function") }),
|
|
38583
38584
|
/* @__PURE__ */ r.jsx(R, { sx: {
|
|
38584
38585
|
flexGrow: 1
|
|
38585
|
-
}, children: /* @__PURE__ */ r.jsx(li, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue:
|
|
38586
|
+
}, children: /* @__PURE__ */ r.jsx(li, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: XV.pre }) })
|
|
38586
38587
|
] }) : null;
|
|
38587
38588
|
}), ki = {
|
|
38588
38589
|
height: "calc(100% - 44px)",
|
|
38589
38590
|
// Tabs.List
|
|
38590
38591
|
padding: 0
|
|
38591
|
-
},
|
|
38592
|
+
}, ZV = D(({
|
|
38592
38593
|
queryModel: e
|
|
38593
38594
|
}) => {
|
|
38594
38595
|
const {
|
|
@@ -38609,16 +38610,16 @@ WHERE
|
|
|
38609
38610
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Data", disabled: !e.canPreviewData, children: /* @__PURE__ */ r.jsx(ve, { label: e.guideToPreviewData, disabled: e.canPreviewData, withinPortal: !0, children: /* @__PURE__ */ r.jsx(w, { children: t("data.preview_data") }) }) }),
|
|
38610
38611
|
/* @__PURE__ */ r.jsx(_.Tab, { value: "Usage", disabled: l, children: /* @__PURE__ */ r.jsx(ve, { label: t("query.usage.unused_description"), disabled: !l, withinPortal: !0, children: /* @__PURE__ */ r.jsx(w, { children: t("query.usage.label") }) }) })
|
|
38611
38612
|
] }),
|
|
38612
|
-
/* @__PURE__ */ r.jsx(_.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx(
|
|
38613
|
+
/* @__PURE__ */ r.jsx(_.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx(FV, { queryModel: e }) }),
|
|
38613
38614
|
e.typedAsSQL && /* @__PURE__ */ r.jsx(_.Panel, { value: "SQL", sx: ki, children: /* @__PURE__ */ r.jsx(C, { sx: {
|
|
38614
38615
|
height: "100%"
|
|
38615
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
38616
|
+
}, children: /* @__PURE__ */ r.jsx(KV, { queryModel: e }) }) }),
|
|
38616
38617
|
e.typedAsHTTP && /* @__PURE__ */ r.jsx(_.Panel, { value: "HTTP", sx: ki, children: /* @__PURE__ */ r.jsx(C, { sx: {
|
|
38617
38618
|
height: "100%"
|
|
38618
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
38619
|
+
}, children: /* @__PURE__ */ r.jsx(BV, { queryModel: e }) }) }),
|
|
38619
38620
|
e.isTransform && /* @__PURE__ */ r.jsx(_.Panel, { value: "Transform", sx: ki, children: /* @__PURE__ */ r.jsx(C, { sx: {
|
|
38620
38621
|
height: "100%"
|
|
38621
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
38622
|
+
}, children: /* @__PURE__ */ r.jsx(JV, { queryModel: e }) }) }),
|
|
38622
38623
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Data", sx: {
|
|
38623
38624
|
...ki,
|
|
38624
38625
|
overflow: "hidden"
|
|
@@ -38626,13 +38627,13 @@ WHERE
|
|
|
38626
38627
|
/* @__PURE__ */ r.jsx(_.Panel, { value: "Usage", sx: {
|
|
38627
38628
|
...ki,
|
|
38628
38629
|
overflow: "hidden"
|
|
38629
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
38630
|
+
}, children: /* @__PURE__ */ r.jsx(WV, { queryID: e.id, usage: o }) })
|
|
38630
38631
|
] });
|
|
38631
38632
|
}), eN = D(({
|
|
38632
38633
|
id: e
|
|
38633
38634
|
}) => {
|
|
38634
38635
|
const n = be().queries.findByID(e);
|
|
38635
|
-
return e === "" ? null : n ? /* @__PURE__ */ r.jsx(
|
|
38636
|
+
return e === "" ? null : n ? /* @__PURE__ */ r.jsx(ZV, { queryModel: n }) : /* @__PURE__ */ r.jsx(w, { size: 14, color: "red", children: "Invalid Query ID" });
|
|
38636
38637
|
}), tN = D(({
|
|
38637
38638
|
value: e
|
|
38638
38639
|
}) => {
|
|
@@ -39063,7 +39064,7 @@ const wN = D(() => /* @__PURE__ */ r.jsx(C, { sx: {
|
|
|
39063
39064
|
height: "100%"
|
|
39064
39065
|
}, p: "sm", children: /* @__PURE__ */ r.jsx(ag, {}) })), SN = D(() => {
|
|
39065
39066
|
const e = Ie().editor, t = e.path;
|
|
39066
|
-
return pN(t) ? /* @__PURE__ */ r.jsx(wN, {}) : mN(t) ? /* @__PURE__ */ r.jsx(
|
|
39067
|
+
return pN(t) ? /* @__PURE__ */ r.jsx(wN, {}) : mN(t) ? /* @__PURE__ */ r.jsx(RF, {}) : fN(t) ? /* @__PURE__ */ r.jsx(AF, {}) : xN(t) ? /* @__PURE__ */ r.jsx(R, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(LF, { id: t[1] }) }) : gN(t) ? /* @__PURE__ */ r.jsx(iN, {}) : bN(t) ? /* @__PURE__ */ r.jsx(rN, { id: t[1] }) : vN(t) ? /* @__PURE__ */ r.jsx(bV, {}) : yN(t) ? /* @__PURE__ */ r.jsx(eN, { id: t[1] }) : _N(t) ? /* @__PURE__ */ r.jsx(R, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(hN, { id: t[1] }) }) : jN(t) ? /* @__PURE__ */ r.jsx(gV, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r.jsx(R, { children: e.path });
|
|
39067
39068
|
}), kN = D(() => /* @__PURE__ */ r.jsx(SN, {})), CN = D(() => {
|
|
39068
39069
|
const {
|
|
39069
39070
|
t: e
|
|
@@ -39217,7 +39218,7 @@ const wN = D(() => /* @__PURE__ */ r.jsx(C, { sx: {
|
|
|
39217
39218
|
const {
|
|
39218
39219
|
t: e
|
|
39219
39220
|
} = v(), t = Ie();
|
|
39220
|
-
return /* @__PURE__ */ r.jsxs(
|
|
39221
|
+
return /* @__PURE__ */ r.jsxs(Vn, { p: 0, width: {
|
|
39221
39222
|
base: 220,
|
|
39222
39223
|
xs: 220,
|
|
39223
39224
|
sm: 240,
|
|
@@ -39230,16 +39231,16 @@ const wN = D(() => /* @__PURE__ */ r.jsx(C, { sx: {
|
|
|
39230
39231
|
wordWrap: "break-word"
|
|
39231
39232
|
}
|
|
39232
39233
|
}, children: [
|
|
39233
|
-
/* @__PURE__ */ r.jsx(
|
|
39234
|
+
/* @__PURE__ */ r.jsx(Vn.Section, { pt: 9, pb: 8, sx: {
|
|
39234
39235
|
borderBottom: "1px solid #eee"
|
|
39235
39236
|
}, children: /* @__PURE__ */ r.jsx(w, { align: "center", sx: {
|
|
39236
39237
|
userSelect: "none",
|
|
39237
39238
|
cursor: "default"
|
|
39238
39239
|
}, children: e("common.titles.settings") }) }),
|
|
39239
|
-
/* @__PURE__ */ r.jsx(
|
|
39240
|
+
/* @__PURE__ */ r.jsx(Vn.Section, { grow: !0, sx: {
|
|
39240
39241
|
overflow: "auto"
|
|
39241
39242
|
}, children: /* @__PURE__ */ r.jsx(RN, {}) }),
|
|
39242
|
-
/* @__PURE__ */ r.jsx(
|
|
39243
|
+
/* @__PURE__ */ r.jsx(Vn.Section, { children: /* @__PURE__ */ r.jsx(y, { grow: !0, p: "md", pt: "sm", sx: {
|
|
39243
39244
|
borderTop: "1px solid #eee"
|
|
39244
39245
|
}, children: /* @__PURE__ */ r.jsx(M, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(sl, { size: 18 }), onClick: () => t.editor.close(), children: e("common.actions.close") }) }) })
|
|
39245
39246
|
] });
|
|
@@ -39278,13 +39279,13 @@ const wN = D(() => /* @__PURE__ */ r.jsx(C, { sx: {
|
|
|
39278
39279
|
overflowY: "hidden !important"
|
|
39279
39280
|
}
|
|
39280
39281
|
}, children: /* @__PURE__ */ r.jsx(Qu, { padding: 0, navbar: /* @__PURE__ */ r.jsx($N, {}), styles: PN, children: /* @__PURE__ */ r.jsx(kN, {}) }) });
|
|
39281
|
-
}),
|
|
39282
|
-
function
|
|
39282
|
+
}), FN = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
39283
|
+
function VN(e) {
|
|
39283
39284
|
Q(() => {
|
|
39284
39285
|
if (Ka.__getMonacoInstance())
|
|
39285
39286
|
return;
|
|
39286
39287
|
console.log("loading monaco for @devtable/dashboard");
|
|
39287
|
-
const n =
|
|
39288
|
+
const n = FN(e);
|
|
39288
39289
|
Ka.config({
|
|
39289
39290
|
paths: {
|
|
39290
39291
|
vs: n
|
|
@@ -39326,7 +39327,7 @@ const NN = {
|
|
|
39326
39327
|
onExit: h,
|
|
39327
39328
|
lang: u
|
|
39328
39329
|
}, p) => {
|
|
39329
|
-
|
|
39330
|
+
VN(a.monacoPath), Vh(a);
|
|
39330
39331
|
const {
|
|
39331
39332
|
data: m = []
|
|
39332
39333
|
} = Er(ac), {
|
|
@@ -39366,7 +39367,7 @@ const NN = {
|
|
|
39366
39367
|
}, children: /* @__PURE__ */ r.jsx(bp, { value: b, children: /* @__PURE__ */ r.jsx(wp, { value: b.content, children: /* @__PURE__ */ r.jsx(jl.Provider, { value: {
|
|
39367
39368
|
inEditMode: !0
|
|
39368
39369
|
}, children: /* @__PURE__ */ r.jsx(Pn.Provider, { value: S, children: /* @__PURE__ */ r.jsxs(Na, { configure: z, children: [
|
|
39369
|
-
/* @__PURE__ */ r.jsx(Qu, { padding: 0, header: /* @__PURE__ */ r.jsx(WO, { onExit: h, saveDashboardChanges: I, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(
|
|
39370
|
+
/* @__PURE__ */ r.jsx(Qu, { padding: 0, header: /* @__PURE__ */ r.jsx(WO, { onExit: h, saveDashboardChanges: I, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(gF, {}), styles: NN, children: /* @__PURE__ */ r.jsx(R, { className: `${s} dashboard-root`, sx: {
|
|
39370
39371
|
position: "relative"
|
|
39371
39372
|
}, children: b.content.views.visibleViews.map((L) => /* @__PURE__ */ r.jsx(Z2, { view: L }, L.id)) }) }),
|
|
39372
39373
|
/* @__PURE__ */ r.jsx(ON, {})
|
|
@@ -39565,7 +39566,7 @@ const HN = ({
|
|
|
39565
39566
|
onActiveTabChange: h,
|
|
39566
39567
|
lang: u
|
|
39567
39568
|
}) => {
|
|
39568
|
-
|
|
39569
|
+
Vh(s);
|
|
39569
39570
|
const {
|
|
39570
39571
|
data: p = []
|
|
39571
39572
|
} = Er(ac), {
|
|
@@ -39609,41 +39610,41 @@ const HN = ({
|
|
|
39609
39610
|
inEditMode: !1
|
|
39610
39611
|
}, children: /* @__PURE__ */ r.jsx(R, { className: `${i} dashboard-root`, children: /* @__PURE__ */ r.jsx(Pn.Provider, { value: b, children: /* @__PURE__ */ r.jsx(Na, { configure: I, children: f.content.views.visibleViews.map((S) => /* @__PURE__ */ r.jsx(Wc, { view: S }, S.id)) }) }) }) }) }) }) }) }) }) }) });
|
|
39611
39612
|
}, J3 = D(HN);
|
|
39612
|
-
|
|
39613
|
-
|
|
39614
|
-
|
|
39615
|
-
|
|
39616
|
-
|
|
39617
|
-
|
|
39618
|
-
|
|
39619
|
-
|
|
39620
|
-
|
|
39621
|
-
|
|
39622
|
-
|
|
39623
|
-
|
|
39624
|
-
|
|
39625
|
-
|
|
39626
|
-
|
|
39627
|
-
|
|
39628
|
-
|
|
39629
|
-
|
|
39630
|
-
|
|
39631
|
-
|
|
39632
|
-
|
|
39633
|
-
|
|
39634
|
-
|
|
39635
|
-
|
|
39636
|
-
|
|
39637
|
-
|
|
39638
|
-
|
|
39639
|
-
|
|
39640
|
-
|
|
39641
|
-
|
|
39642
|
-
|
|
39643
|
-
|
|
39644
|
-
|
|
39645
|
-
|
|
39646
|
-
|
|
39613
|
+
V.extend(rv);
|
|
39614
|
+
V.extend(iv);
|
|
39615
|
+
V.extend(sv);
|
|
39616
|
+
V.extend(av);
|
|
39617
|
+
V.extend(ov);
|
|
39618
|
+
V.extend(lv);
|
|
39619
|
+
V.extend(cv);
|
|
39620
|
+
V.extend(dv);
|
|
39621
|
+
V.extend(uv);
|
|
39622
|
+
V.extend(hv);
|
|
39623
|
+
V.extend(fv);
|
|
39624
|
+
V.extend(xv);
|
|
39625
|
+
V.extend(gv);
|
|
39626
|
+
V.extend(bv);
|
|
39627
|
+
V.extend(yv);
|
|
39628
|
+
V.extend(pv);
|
|
39629
|
+
V.extend(mv);
|
|
39630
|
+
V.extend(vv);
|
|
39631
|
+
V.extend(_v);
|
|
39632
|
+
V.extend(jv);
|
|
39633
|
+
V.extend(wv);
|
|
39634
|
+
V.extend(Sv);
|
|
39635
|
+
V.extend(kv);
|
|
39636
|
+
V.extend(Cv);
|
|
39637
|
+
V.extend(Iv);
|
|
39638
|
+
V.extend(Tv);
|
|
39639
|
+
V.extend(zv);
|
|
39640
|
+
V.extend(Dv);
|
|
39641
|
+
V.extend(Mv);
|
|
39642
|
+
V.extend(Ev);
|
|
39643
|
+
V.extend(Av);
|
|
39644
|
+
V.extend(Rv);
|
|
39645
|
+
V.extend(Lv);
|
|
39646
|
+
V.tz.setDefault("UTC");
|
|
39647
|
+
V.updateLocale("en", {
|
|
39647
39648
|
weekStart: 1
|
|
39648
39649
|
});
|
|
39649
39650
|
const Z3 = () => Promise.resolve().then(() => l1).then(({
|
|
@@ -39691,7 +39692,7 @@ export {
|
|
|
39691
39692
|
r2 as GlobalSQLSnippetMeta,
|
|
39692
39693
|
_x as GlobalSQLSnippetsMeta,
|
|
39693
39694
|
OP as LayoutItemMeta,
|
|
39694
|
-
|
|
39695
|
+
FP as LayoutSetMeta,
|
|
39695
39696
|
jl as LayoutStateContext,
|
|
39696
39697
|
Rx as LayoutsRenderModel,
|
|
39697
39698
|
ax as MockContextMeta,
|
|
@@ -39715,7 +39716,7 @@ export {
|
|
|
39715
39716
|
iO as QueryModel,
|
|
39716
39717
|
Lx as QueryRenderModel,
|
|
39717
39718
|
J3 as ReadOnlyDashboard,
|
|
39718
|
-
|
|
39719
|
+
VP as SQLSnippetMeta,
|
|
39719
39720
|
u2 as SQLSnippetRenderModel,
|
|
39720
39721
|
aO as SQLSnippetsModel,
|
|
39721
39722
|
$x as SQLSnippetsRenderModel,
|
|
@@ -39732,7 +39733,7 @@ export {
|
|
|
39732
39733
|
Sx as ViewsRenderModel,
|
|
39733
39734
|
S2 as Viz,
|
|
39734
39735
|
K3 as applyPartialDashboard,
|
|
39735
|
-
|
|
39736
|
+
Vh as configureAPIClient,
|
|
39736
39737
|
_O as createContentModel,
|
|
39737
39738
|
BN as createContentRenderModel,
|
|
39738
39739
|
jx as createContextMeta,
|